1 2014-12-12 Doug Evans <dje@google.com>
3 * NEWS: Mention gdb.lookup_objfile.
4 * python/python.c (GdbMethods): Add lookup_objfile.
5 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
6 * python/py-objfile.c: #include "symtab.h".
7 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
8 (objfpy_lookup_objfile_by_name): New function.
9 (objfpy_lookup_objfile_by_build_id): New function.
10 (gdbpy_lookup_objfile): New function.
12 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
14 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
15 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
16 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
18 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
21 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
23 * completer.c: Include "target.h", "reggroups.h", and
25 (reg_or_group_completer): New.
26 * completer.h (reg_or_group_completer): Declare.
27 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
28 the "info registers" and "info all-registers" commands and the
29 dbx-mode "lr" command.
31 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
33 * user-regs.c: Include "arch-utils.h", "command.h", and
35 (maintenance_print_user_registers): New.
36 (_initialize_user_regs): Register new "maint print user-registers"
38 * NEWS: Mention new GDB command "maint print user-registers".
40 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
41 Maciej W. Rozycki <macro@mips.com>
42 Pedro Alves <pedro@codesourcery.com>
44 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
45 remove `predefault' and `invalid_p' initializers.
46 (make_symbol_special): New architecture method.
47 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
48 (objfile, symbol): New declarations.
49 * arch-utils.h (default_elf_make_msymbol_special): Remove
51 (default_make_symbol_special): New prototype.
52 (default_adjust_dwarf2_addr): Likewise.
53 (default_adjust_dwarf2_line): Likewise.
54 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
55 * arch-utils.c (default_elf_make_msymbol_special): Remove
57 (default_make_symbol_special): New function.
58 (default_adjust_dwarf2_addr): Likewise.
59 (default_adjust_dwarf2_line): Likewise.
60 * dwarf2-frame.c (decode_frame_entry_1): Call
61 `gdbarch_adjust_dwarf2_addr'.
62 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
63 * dwarf2read.c (create_addrmap_from_index): Likewise.
64 (process_psymtab_comp_unit_reader): Likewise.
65 (add_partial_symbol): Likewise.
66 (add_partial_subprogram): Likewise.
67 (process_full_comp_unit): Likewise.
68 (read_file_scope): Likewise.
69 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
70 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
71 (read_call_site_scope): Likewise.
72 (dwarf2_ranges_read): Likewise.
73 (dwarf2_record_block_ranges): Likewise.
74 (read_attribute_value): Likewise.
75 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
76 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
77 * elfread.c (elf_symtab_read): Don't call
78 `gdbarch_elf_make_msymbol_special' if unset.
79 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
80 the ISA bit from the PC.
81 * mips-tdep.c (mips_unmake_compact_addr): New function.
82 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
83 address appropriately.
84 (mips_make_symbol_special): New function.
85 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
86 (mips_pc_is_mips16): Likewise.
87 (mips_pc_is_micromips): Likewise.
88 (mips_pc_isa): Likewise.
89 (mips_adjust_dwarf2_addr): New function.
90 (mips_adjust_dwarf2_line): Likewise.
91 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
92 (mips_addr_bits_remove): Likewise.
93 (mips_skip_trampoline_code): Likewise.
94 (mips_write_pc): Don't set the ISA bit.
95 (mips_eabi_push_dummy_call): Likewise.
96 (mips_o64_push_dummy_call): Likewise.
97 (mips_gdbarch_init): Install `mips_make_symbol_special',
98 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
100 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
101 target-specific symbol address adjustments.
102 * gdbarch.h: Regenerate.
103 * gdbarch.c: Regenerate.
105 2014-12-12 Yao Qi <yao@codesourcery.com>
108 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
109 'skip_pc'. Remove code skipping prologue instructions, use
110 arm_analyze_prologue instead.
111 (arm_analyze_prologue): Stop the scanning for unrecognized
112 instruction when skipping prologue.
114 2014-12-12 Yao Qi <yao@codesourcery.com>
116 * arm-tdep.c (arm_instruction_restores_sp): New function.
117 (arm_analyze_prologue): Call arm_instruction_restores_sp.
118 (arm_in_function_epilogue_p): Move code to
119 arm_instruction_restores_sp.
121 2014-12-11 Doug Evans <xdje42@gmail.com>
123 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
125 2014-12-11 Doug Evans <xdje42@gmail.com>
127 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
128 (symbol *lookup_symbol_via_quick_fns): Ditto.
129 (lookup_symbol_in_objfile): Add forward decl.
130 (lookup_global_symbol_from_objfile): Simplify, call
131 lookup_symbol_in_objfile.
133 2014-12-11 Doug Evans <xdje42@gmail.com>
135 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
137 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
140 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
141 it is marked as persistent.
143 2014-12-10 Doug Evans <xdje42@gmail.com>
145 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
146 closer to its subroutines.
148 2014-12-10 Doug Evans <xdje42@gmail.com>
150 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
152 2014-12-10 Doug Evans <xdje42@gmail.com>
154 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
155 * cp-support.c (cp_lookup_symbol_imports): Delete.
157 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
160 * target.c (cleanup_restore_target_terminal): New function.
161 (make_cleanup_restore_target_terminal): New function.
162 * target.h (make_cleanup_restore_target_terminal): New declaration.
163 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
165 2014-12-08 Doug Evans <dje@google.com>
167 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
169 2014-12-08 Doug Evans <dje@google.com>
171 * NEWS: Mention gdb.Objfile.owner.
172 * python/py-objfile.c (objfpy_get_owner): New function.
173 (objfile_getset): Add "owner".
175 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
177 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
178 (lookup_global_symbol_from_objfile): Call it.
180 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
182 Remove const from struct objfile *.
183 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
184 symtab.c, symtab.h: In these files.
186 2014-12-05 Andreas From <andreas.from@ericsson.com>
188 * MAINTAINERS (Write After Approval): Add "Andreas From"
190 2014-12-05 Doug Evans <xdje42@gmail.com>
194 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
196 2014-12-04 Doug Evans <dje@google.com>
198 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
199 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
200 (objfile_getset): Add "add_separate_debug_file".
202 2014-12-04 Doug Evans <dje@google.com>
204 * NEWS: Mention gdb.Objfile.build_id.
205 * build-id.c (build_id_bfd_get): Make non-static.
206 * build-id.h (build_id_bfd_get): Add declaration.
207 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
208 (OBJFPY_REQUIRE_VALID): New macro.
209 (objfpy_get_build_id): New function.
210 (objfile_getset): Add "build_id".
211 * utils.c (make_hex_string): New function.
212 * utils.h (make_hex_string): Add declaration.
214 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * block.c (block_lookup_symbol_primary): New function.
217 * block.h (block_lookup_symbol_primary): New declaration.
218 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
219 Call block_lookup_symbol_primary.
221 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
223 * tramp-frame.h (tramp_frame): Add `validate' member.
224 * tramp-frame.c (tramp_frame_start): Validate trampoline before
226 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
227 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
228 (mips_linux_o32_sigframe): Initialize `validate' member.
229 (mips_linux_o32_rt_sigframe): Likewise.
230 (mips_linux_n32_rt_sigframe): Likewise.
231 (mips_linux_n64_rt_sigframe): Likewise.
232 (micromips_linux_o32_sigframe): New variable.
233 (micromips_linux_o32_rt_sigframe): Likewise.
234 (micromips_linux_n32_rt_sigframe): Likewise.
235 (micromips_linux_n64_rt_sigframe): Likewise.
236 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
237 (mips_linux_n32n64_sigframe_init): Likewise.
238 (mips_linux_sigframe_validate): New function.
239 (micromips_linux_sigframe_validate): Likewise.
240 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
242 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
244 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
245 * sparc-sol2-tdep.c: Include "regset.h".
246 (sparc32_sol2_supply_core_gregset): New function.
247 (sparc32_sol2_collect_core_gregset): Likewise.
248 (sparc32_sol2_supply_core_fpregset): Likewise.
249 (sparc32_sol2_collect_core_fpregset): Likewise.
250 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
251 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
252 tdep->fpregset/sizeof_fpregset.
253 * sparc64-sol2-tdep.c: Include "regset.h".
254 (sparc64_sol2_supply_core_gregset): New function.
255 (sparc64_sol2_collect_core_gregset): Likewise.
256 (sparc64_sol2_supply_core_fpregset): Likewise.
257 (sparc64_sol2_collect_core_fpregset): Likewise.
258 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
259 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
260 tdep->fpregset/sizeof_fpregset.
262 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
264 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
267 2014-12-02 Doug Evans <dje@google.com>
269 * symtab.c (symbol_init_cplus_specific): Delete.
270 (symbol_set_demangled_name): Remove special c++ support.
271 (symbol_get_demangled_name, symbol_set_language): Ditto.
272 * symtab.h (struct cplus_specific): Delete.
273 (struct general_symbol_info) <language_specific>: Remove
276 2014-12-02 Doug Evans <dje@google.com>
279 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
281 2014-12-02 Doug Evans <dje@google.com>
284 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
287 2014-12-02 Doug Evans <dje@google.com>
289 * dwarf2read.c (peek_die_abbrev): Improve error message text.
291 2014-12-02 Doug Evans <dje@google.com>
293 * valops.c (do_search_struct_field): Remove remnant of Chill support.
294 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
296 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
298 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
300 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
302 * NEWS: Mention new Python events.
303 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
304 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
305 (py-infevents.o): New rule.
306 * doc/observer.texi (inferior_call_pre, inferior_call_post)
307 (memory_changed, register_changed): New observers.
308 * infcall.c (call_function_by_hand): Notify observer before and
310 * python/py-event.h (inferior_call_kind): New enum.
311 (emit_inferior_call_event): New prototype.
312 (emit_register_changed_event): New prototype.
313 (emit_memory_changed_event): New prototype.
314 * python/py-events.h (events_object): New registries
315 inferior_call, memory_changed and register_changed.
316 * python/py-evts.c (gdbpy_initialize_py_events): Add the
317 inferior_call, memory_changed and register_changed registries.
318 * python/py-infevents.c: New.
319 * python/py-inferior.c (python_on_inferior_call_pre)
320 (python_on_inferior_call_post, python_on_register_change)
321 (python_on_memory_change): New functions.
322 (gdbpy_initialize_inferior): Attach python handler to new
324 * python/py-infthread.c(gdbpy_create_ptid_object): New.
325 (thpy_get_ptid) Use gdbpy_create_ptid_object.
326 * python/python-internal.h:
327 (gdbpy_create_ptid_object)
328 (gdbpy_initialize_inferior_call_pre_event)
329 (gdbpy_initialize_inferior_call_post_event)
330 (gdbpy_initialize_register_changed_event)
331 (gdbpy_initialize_memory_changed_event): New prototypes.
332 * python/python.c (_initialize_python): Initialize new events.
333 * valops.c (value_assign): Notify register_changed observer.
335 2014-12-02 Doug Evans <dje@google.com>
337 * python/py-infthread.c: Whitespace fixes.
339 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
341 * features/Makefile (s390-te-linux64-expedite): Replace
342 non-existant r14 and r15 by r14l and r15l, respectively.
343 * regformats/s390-te-linux64.dat: Regenerate.
345 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
347 * objfiles.c (allocate_objfile): Remove duplicate comment.
349 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
351 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
352 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
353 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
354 (supply_gregset, supply_fpregset): Remove.
355 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
356 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
359 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
361 Add add-auto-load-scripts-directory.
362 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
363 * auto-load.c (add_auto_load_dir): New function.
364 (_initialize_auto_load): Install it.
366 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
368 Pushed by Joel Brobecker <brobecker@adacore.com>.
369 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
371 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
373 * eval.c (evaluate_subexp): Check that the thread stack temporaries
374 are not already enabled before enabling them.
376 2014-11-29 Yao Qi <yao@codesourcery.com>
378 * arm-tdep.c (arm_analyze_prologue): Move local variables
379 'framereg' and 'framesize' to inner block. Move code to
382 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
384 * eval.c: Include gdbthread.h.
385 (evaluate_subexp): Enable thread stack temporaries before
386 evaluating a complete expression and clean them up after the
387 evaluation is complete.
388 * gdbthread.h: Include common/vec.h.
389 (value_ptr): New typedef.
390 (VEC (value_ptr)): New vector type.
391 (value_vec): New typedef.
392 (struct thread_info): Add new fields stack_temporaries_enabled
393 and stack_temporaries.
394 (enable_thread_stack_temporaries)
395 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
396 (get_last_thread_stack_temporary)
397 (value_in_thread_stack_temporaries): Declare.
398 * gdbtypes.c (class_or_union_p): New function.
399 * gdbtypes.h (class_or_union_p): Declare.
400 * infcall.c (call_function_by_hand): Store return values of class
401 type as temporaries on stack.
402 * thread.c (enable_thread_stack_temporaries): New function.
403 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
404 (get_last_thread_stack_temporary): Likewise.
405 (value_in_thread_stack_temporaries): Likewise.
406 * value.c (value_force_lval): New function.
407 * value.h (value_force_lval): Declare.
409 2014-11-28 Pierre Muller <muller@sourceware.org>
411 Pushed by Joel Brobecker <brobecker@adacore.com>.
412 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
415 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
417 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
418 * config/sparc/linux.mh (NATDEPFILES): Likewise.
419 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
420 * m68klinux-nat.c (fetch_core_registers): Remove.
421 (linux_elf_core_fns): Remove.
422 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
424 2014-11-28 Joel Brobecker <brobecker@adacore.com>
426 * utils.c (gdb_realpath): Rework comment about handling on
429 2014-11-28 Yao Qi <yao@codesourcery.com>
431 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
433 * gnulib/aclocal.m4: Re-generated.
434 * gnulib/config.in: Re-generated.
435 * gnulib/configure: Re-generated.
436 * gnulib/import/Makefile.am: Re-generated.
437 * gnulib/import/Makefile.in: Re-generated.
438 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
439 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
440 * import/basename-lgpl.c: New file.
441 * import/dirname-lgpl.c: New file.
442 * import/dirname.h: New file.
443 * import/m4/dirname.m4: New file.
444 * import/m4/malloc.m4: New file.
445 * import/m4/rename.m4: New file.
446 * import/m4/rmdir.m4: New file.
447 * import/m4/stdio_h.m4: New file.
448 * import/malloc.c: New file.
449 * import/rename.c: New file.
450 * import/rmdir.c: New file.
451 * import/same-inode.h: New file.
452 * import/stdio.c: New file.
453 * import/stdio.in.h: New file.
454 * import/stripslash.c: New file.
456 2014-11-28 Yao Qi <yao@codesourcery.com>
458 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
460 * config.in: Re-generated.
461 * configure: Re-generated.
462 * utils.c (gdb_realpath): Remove code calling realpath,
463 canonicalize_file_name and pathconf.
464 [!_WIN32]: Call canonicalize_file_name.
466 2014-11-28 Yao Qi <yao@codesourcery.com>
468 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
470 * aclocal.m4: Re-generated.
471 * config.in: Re-generated.
472 * configure: Re-generated.
473 * import/Makefile.am: Re-generated.
474 * import/Makefile.in: Re-generated.
475 * import/m4/gnulib-cache.m4: Re-generated.
476 * import/m4/gnulib-comp.m4: Re-generated.
477 * import/canonicalize-lgpl.c: New file.
478 * import/extra/snippet/_Noreturn.h: New file.
479 * import/m4/canonicalize.m4: New file.
480 * import/m4/double-slash-root.m4: New file.
481 * import/m4/eealloc.m4: New file.
482 * import/m4/malloca.m4: New file.
483 * import/m4/nocrash.m4: New file.
484 * import/m4/stdlib_h.m4: New file.
485 * import/malloca.c: New file.
486 * import/malloca.h: New file.
487 * import/malloca.valgrind: New file.
489 2014-11-28 Yao Qi <yao@codesourcery.com>
491 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
492 * config.in, configure: Regenerate.
493 * symfile.c (find_separate_debug_file_by_debuglink): Remove
494 code checking HAVE_LSTAT is defined.
496 2014-11-28 Yao Qi <yao@codesourcery.com>
498 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
500 * gnulib/aclocal.m4: Re-generated.
501 * gnulib/config.in: Re-generated.
502 * gnulib/configure: Re-generated.
503 * gnulib/import/Makefile.am: Re-generated.
504 * gnulib/import/Makefile.in: Re-generated.
505 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
506 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
507 * gnulib/import/lstat.c: New file.
508 * gnulib/import/m4/lstat.m4: New file.
510 2014-11-28 Yao Qi <yao@codesourcery.com>
512 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
513 * config.in, configure: Re-generate.
514 * inf-child.c (inf_child_fileio_readlink): Don't check
515 HAVE_READLINK is defined.
517 2014-11-28 Yao Qi <yao@codesourcery.com>
519 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
520 * gnulib/aclocal.m4: Re-generated.
521 * gnulib/config.in: Likewise.
522 * gnulib/configure: Likewise.
523 * gnulib/import/Makefile.am: Likewise.
524 * gnulib/import/Makefile.in: Likewise.
525 * gnulib/import/m4/gnulib-cache.m4: Likewise.
526 * gnulib/import/m4/gnulib-comp.m4: Likewise.
527 * gnulib/import/dosname.h: New file
528 * gnulib/import/m4/largefile.m4: New file.
529 * gnulib/import/m4/readlink.m4: New file.
530 * gnulib/import/m4/stat.m4: New file.
531 * gnulib/import/readlink.c: New file.
532 * gnulib/import/stat.c: New file.
534 2014-11-26 Mark Wielaard <mjw@redhat.com>
536 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
537 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
539 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
541 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
542 that there can be only one stack adjustment in the prologue
543 with tests to detect specific disallowed stack adjustments.
545 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
547 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
550 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
552 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
553 the instruction as well as reading it from memory.
554 (nios2_match_add): New.
555 (nios2_match_sub): New.
556 (nios2_match_addi): New.
557 (nios2_match_orhi): New.
558 (nios2_match_stw): New.
559 (nios2_match_ldw): New.
560 (nios2_match_rdctl): New.
561 (enum branch_condition): New.
562 (nios2_match_branch): New.
563 (nios2_match_jmpi): New.
564 (nios2_match_calli): New.
565 (nios2_match_jmpr): New.
566 (nios2_match_callr): New.
567 (nios2_match_break): New.
568 (nios2_match_trap): New.
569 (nios2_in_epilogue_p): Rewrite to use new functions.
570 (nios2_analyze_prologue): Likewise.
571 (nios2_skip_prologue): Delete unused local limit_pc.
572 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
573 (nios2_get_next_pc): Rewrite to use new functions.
575 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
577 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
579 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
581 Pushed by Joel Brobecker <brobecker@adacore.com>
582 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
583 elements pi_len by the size of the elements before calling
585 (inf_validate_task_sc): Likewise, and properly deallocate the
588 2014-11-23 Doug Evans <xdje42@gmail.com>
590 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
591 number and name if present. All callers updated.
592 (dump_fn_fieldlists): Fix indentation of args.
594 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
596 * MAINTAINERS (Write After Approval): Add myself.
598 2014-11-23 Joel Brobecker <brobecker@adacore.com>
600 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
601 to a bp_call_dummy breakpoint type.
603 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
605 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
606 registering the signal handler.
608 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
610 * event-top.h (call_stdin_event_handler_again_p): Declare.
611 * event-top.c (call_stdin_event_handler_again_p): Define.
612 (stdin_event_handler): Use it.
613 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
614 handler again if there is pending input following a
617 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
619 Pushed by Joel Brobecker <brobecker@adacore.com>
620 * linux-fork.c (checkpoint_command): Print index of new
621 checkpoint in response message.
623 2014-11-23 Yao Qi <yao@codesourcery.com>
625 * valprint.c (read_string): Move local variables 'found_nul',
626 'chunksize' and 'limit' to inner scope. Update comments.
628 2014-11-22 Doug Evans <xdje42@gmail.com>
630 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
632 (search_symbols): Fix comments and whitespace.
634 2014-11-22 Doug Evans <xdje42@gmail.com>
636 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
638 2014-11-21 Doug Evans <dje@google.com>
640 * psymtab.c (psymtab_search_name): Fix whitespace.
642 2014-11-21 Yao Qi <yao@codesourcery.com>
644 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
646 * gnulib/import/Makefile.am: Re-generated.
647 * gnulib/import/Makefile.in: Likewise.
648 * gnulib/import/m4/gnulib-cache.m4: Likewise.
650 2014-11-21 Yao Qi <yao@codesourcery.com>
652 * gdb_wchar.h: Include wchar.h and wctype.h.
653 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
654 include wchar.h and wctype.h.
655 Don't check HAVE_WCHAR_H.
657 2014-11-21 Yao Qi <yao@codesourcery.com>
659 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
661 * gnulib/import/Makefile.am: Re-generated.
662 * gnulib/import/Makefile.in: Likewise.
663 * gnulib/import/m4/gnulib-cache.m4: Likewise.
665 2014-11-21 Yao Qi <yao@codesourcery.com>
667 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
669 * gnulib/import/Makefile.am: Re-generated.
670 * gnulib/import/Makefile.in: Likewise.
671 * gnulib/import/m4/gnulib-cache.m4: Likewise.
673 2014-11-21 Yao Qi <yao@codesourcery.com>
675 * common/common-defs.h: Include alloca.h
676 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
677 * configure: Re-generated.
678 * defs.h: Remove code handling alloca.
679 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
682 2014-11-21 Yao Qi <yao@codesourcery.com>
684 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
686 * gnulib/import/Makefile.am: Re-generated.
687 * gnulib/import/Makefile.in: Likewise..
688 * gnulib/import/m4/gnulib-cache.m4: Likewise.
690 2014-11-21 Yao Qi <yao@codesourcery.com>
692 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
695 2014-11-21 Joel Brobecker <brobecker@adacore.com>
697 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
698 flag_unsigned if HIGH_BOUND is constant and negative.
700 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
703 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
704 modifier from "struct gdbarch" when compiling without Expat (XML)
706 (get_syscall_by_number): Likewise.
707 (get_syscall_by_name): Likewise.
708 (get_syscall_names): Likewise.
710 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
713 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
714 set_xml_syscall_file_name to provide gdbarch.
715 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
716 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
717 * breakpoint.c (print_it_catch_syscall): Adjust call to
718 get_syscall_by_number to provide gdbarch.
719 (print_one_catch_syscall): Likewise.
720 (print_mention_catch_syscall): Likewise.
721 (print_recreate_catch_syscall): Likewise.
722 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
723 and get_syscall_by_name to provide gdbarch.
724 (catch_syscall_completer): Adjust call to get_syscall_names to
726 * gdbarch.c: Regenerate.
727 * gdbarch.h: Likewise.
728 * gdbarch.sh: Forward declare "struct syscalls_info".
729 (xml_syscall_file): New variable.
730 (syscalls_info): Likewise.
731 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
732 set_xml_syscall_file_name to provide gdbarch.
733 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
734 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
735 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
736 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
737 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
738 * xml-syscall.c: Include gdbarch.h.
739 (set_xml_syscall_file_name): Accept gdbarch parameter.
740 (get_syscall_by_number): Likewise.
741 (get_syscall_by_name): Likewise.
742 (get_syscall_names): Likewise.
743 (my_gdb_datadir): Delete global variable.
744 (struct syscalls_info) <my_gdb_datadir>: New variable.
745 (struct syscalls_info) <sysinfo>: Rename variable to
747 (sysinfo): Delete global variable.
748 (have_initialized_sysinfo): Likewise.
749 (xml_syscall_file): Likewise.
750 (sysinfo_free_syscalls_desc): Rename to...
751 (syscalls_info_free_syscalls_desc): ... this.
752 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
753 code to the new layout of "struct syscalls_info".
754 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
756 (syscall_create_syscall_desc): Likewise.
757 (syscall_start_syscall): Likewise.
758 (syscall_parse_xml): Likewise.
759 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
760 (init_sysinfo): Rename to...
761 (init_syscalls_info): ...this. Add gdbarch as a parameter.
762 Adjust function to deal with gdbarch.
763 (xml_get_syscall_number): Delete parameter sysinfo. Accept
764 gdbarch as a parameter. Adjust code.
765 (xml_get_syscall_name): Likewise.
766 (xml_list_of_syscalls): Likewise.
767 (set_xml_syscall_file_name): Accept gdbarch as parameter.
768 (get_syscall_by_number): Likewise.
769 (get_syscall_by_name): Likewise.
770 (get_syscall_names): Likewise.
771 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
772 (get_syscall_by_number): Likewise.
773 (get_syscall_by_name): Likewise.
774 (get_syscall_names): Likewise.
776 2014-11-20 Doug Evans <xdje42@gmail.com>
778 Split struct symtab into two: struct symtab and compunit_symtab.
779 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
780 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
781 to "struct compunit_symtab *". All callers updated.
782 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
783 "struct symtab *" argument to "struct compunit_symtab *".
785 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
786 result to "struct compunit_symtab *". All callers updated.
787 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
788 Change result to "struct compunit_symtab *". All callers updated.
789 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
790 hange type to "struct compunit_symtab *". All uses updated.
791 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
792 Change type to "struct compunit_symtab *". All uses updated.
793 * buildsym.c (struct buildsym_compunit): New struct.
794 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
795 (buildsym_compunit): New static global.
796 (finish_block_internal): Update to fetch objfile from
798 (make_blockvector): Delete objfile argument.
799 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
800 debugformat, producer.
801 (start_buildsym_compunit): New function.
802 (free_buildsym_compunit): Renamed from free_subfiles_list.
804 (patch_subfile_names): Rewrite to use buildsym_compunit.
805 (get_compunit_symtab): New function.
806 (get_macro_table): Delete argument comp_dir. All callers updated.
807 (start_symtab): Change result to "struct compunit_symtab *".
808 All callers updated. Create the subfile of the main source file.
809 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
810 (reset_symtab_globals): Update.
811 (end_symtab_get_static_block): Update to use buildsym_compunit.
812 (end_symtab_without_blockvector): Rewrite.
813 (end_symtab_with_blockvector): Change result to
814 "struct compunit_symtab *". All callers updated.
815 Update to use buildsym_compunit. Don't set symtab->dirname,
816 instead set it in the compunit.
817 Explicitly make sure main symtab is first in its list.
818 Set debugformat, producer, blockvector, block_line_section, and
819 macrotable in the compunit.
820 (end_symtab_from_static_block): Change result to
821 "struct compunit_symtab *". All callers updated.
822 (end_symtab, end_expandable_symtab): Ditto.
823 (set_missing_symtab): Change symtab argument to
824 "struct compunit_symtab *". All callers updated.
825 (augment_type_symtab): Ditto.
826 (record_debugformat): Update to use buildsym_compunit.
827 (record_producer): Update to use buildsym_compunit.
828 * buildsym.h (struct subfile) <dirname>: Delete.
829 <producer, debugformat>: Delete.
830 <buildsym_compunit>: New member.
831 (get_compunit_symtab): Declare.
832 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
833 from primary_symtab. Change type to "struct compunit_symtab *".
835 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
837 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
838 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
839 symtab. Change type to "struct compunit_symtab *". All uses updated.
840 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
842 (dw2_find_last_source_symtab): Ditto.
843 (dw2_lookup_symbol): Ditto.
844 (recursively_find_pc_sect_compunit_symtab): Renamed from
845 recursively_find_pc_sect_symtab. Change result to
846 "struct compunit_symtab *". All callers updated.
847 (dw2_find_pc_sect_compunit_symtab): Renamed from
848 dw2_find_pc_sect_symtab. Change result to
849 "struct compunit_symtab *". All callers updated.
850 (get_compunit_symtab): Renamed from get_symtab. Change result to
851 "struct compunit_symtab *". All callers updated.
852 (recursively_compute_inclusions): Change type of immediate_parent
853 argument to "struct compunit_symtab *". All callers updated.
854 (compute_compunit_symtab_includes): Renamed from
855 compute_symtab_includes. All callers updated. Rewrite to compute
856 includes of compunit_symtabs and not symtabs.
857 (process_full_comp_unit): Update to work with struct compunit_symtab.
858 (process_full_type_unit): Ditto.
859 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
860 (dwarf_decode_lines): Remove special case handling of main subfile.
861 (macro_start_file): Delete argument comp_dir. All callers updated.
862 (dwarf_decode_macro_bytes): Ditto.
863 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
864 use struct compunit_symtab.
865 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
866 * jit.c (finalize_symtab): Build compunit_symtab.
867 * jv-lang.c (get_java_class_symtab): Change result to
868 "struct compunit_symtab *". All callers updated.
869 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
870 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
871 comp_dir. Change type to "struct compunit_symtab *".
873 (new_macro_table): Change comp_dir argument to cust,
874 "struct compunit_symtab *". All callers updated.
875 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
876 nr_primary_symtabs. All uses updated.
877 (count_symtabs_and_blocks): Update to handle compunits.
878 (report_command_stats): Update output, "primary symtabs" renamed to
880 * mdebugread.c (new_symtab): Change result to
881 "struct compunit_symtab *". All callers updated.
882 (parse_procedure): Change type of search_symtab argument to
883 "struct compunit_symtab *". All callers updated.
884 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
886 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
887 symtabs. Change type to "struct compunit_symtab *". All uses updated.
888 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
890 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
892 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
893 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
894 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
895 symtab. Change type to "struct compunit_symtab *". All uses updated.
896 * psymtab.c (psymtab_to_symtab): Change result type to
897 "struct compunit_symtab *". All callers updated.
898 (find_pc_sect_compunit_symtab_from_partial): Renamed from
899 find_pc_sect_symtab_from_partial. Change result type to
900 "struct compunit_symtab *". All callers updated.
901 (lookup_symbol_aux_psymtabs): Change result type to
902 "struct compunit_symtab *". All callers updated.
903 (find_last_source_symtab_from_partial): Ditto.
904 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
905 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
906 and macro_table from compunit.
907 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
908 type to "struct compunit_symtab *". All callers updated.
909 (debug_qf_lookup_symbol): Ditto.
910 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
911 debug_qf_find_pc_sect_symtab, change result type to
912 "struct compunit_symtab *". All callers updated.
913 * symfile.c (allocate_symtab): Delete objfile argument.
915 (allocate_compunit_symtab): New function.
916 (add_compunit_symtab_to_objfile): New function.
917 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
918 Change result type to "struct compunit_symtab *". All uses updated.
919 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
920 Change result type to "struct compunit_symtab *". All uses updated.
921 * symmisc.c (print_objfile_statistics): Compute blockvector count in
923 (dump_symtab_1): Update test for primary source symtab.
924 (maintenance_info_symtabs): Update to handle compunit symtabs.
925 (maintenance_check_symtabs): Ditto.
926 * symtab.c (set_primary_symtab): Delete.
927 (compunit_primary_filetab): New function.
928 (compunit_language): New function.
929 (iterate_over_some_symtabs): Change type of arguments "first",
930 "after_last" to "struct compunit_symtab *". All callers updated.
931 Update to loop over symtabs in each compunit.
932 (error_in_psymtab_expansion): Rename symtab argument to cust,
933 and change type to "struct compunit_symtab *". All callers updated.
934 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
935 Change result type to "struct compunit_symtab *". All callers updated.
936 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
937 Change result type to "struct compunit_symtab *". All callers updated.
938 (find_pc_sect_line): Only loop over symtabs within selected compunit
939 instead of all symtabs in the objfile.
940 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
941 <compunit_symtab> New member.
942 <block_line_section>: Moved to compunit_symtab.
943 <locations_valid>: Ditto.
944 <epilogue_unwind_valid>: Ditto.
945 <macro_table>: Ditto.
947 <debugformat>: Ditto.
950 <call_site_htab>: Ditto.
954 (SYMTAB_COMPUNIT): New macro.
955 (SYMTAB_BLOCKVECTOR): Update definition.
956 (SYMTAB_OBJFILE): Update definition.
957 (SYMTAB_DIRNAME): Update definition.
958 (struct compunit_symtab): New type. Common members among all source
959 symtabs within a compilation unit moved here. All uses updated.
960 (COMPUNIT_OBJFILE): New macro.
961 (COMPUNIT_FILETABS): New macro.
962 (COMPUNIT_DEBUGFORMAT): New macro.
963 (COMPUNIT_PRODUCER): New macro.
964 (COMPUNIT_DIRNAME): New macro.
965 (COMPUNIT_BLOCKVECTOR): New macro.
966 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
967 (COMPUNIT_LOCATIONS_VALID): New macro.
968 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
969 (COMPUNIT_CALL_SITE_HTAB): New macro.
970 (COMPUNIT_MACRO_TABLE): New macro.
971 (ALL_COMPUNIT_FILETABS): New macro.
972 (compunit_symtab_ptr): New typedef.
973 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
975 2014-11-20 Joel Brobecker <brobecker@adacore.com>
977 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
978 if the TYPE_CODE of range_type's base type does not match
979 the TYPE_CODE of encoding_type's base type.
981 2014-11-19 Joel Brobecker <brobecker@adacore.com>
983 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
986 2014-11-19 Joel Brobecker <brobecker@adacore.com>
988 * ada-lang.c (ada_is_redundant_range_encoding): New function.
989 (ada_is_redundant_index_type_desc): New function.
990 (to_fixed_array_type): Ignore parallel XA type if redundant.
992 2014-11-19 Joel Brobecker <brobecker@adacore.com>
994 * ada-lang.c (constrained_packed_array_type): Set the length
995 of the return array as if both bounds where zero if that
996 returned array's index type is dynamic.
998 2014-11-19 Yao Qi <yao@codesourcery.com>
1000 * config/i386/go32.mh (CC): Remove.
1002 2014-11-18 Doug Evans <xdje42@gmail.com>
1004 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1007 2014-11-18 Doug Evans <xdje42@gmail.com>
1009 * buildsym.c (buildsym_objfile): New static global.
1010 (buildsym_comp_dir): New static global.
1011 (finish_block_internal): Delete arg objfile. All callers updated.
1012 (finish_block): Delete arg objfile. All callers updated.
1013 (start_subfile): Delete arg dirname. All callers updated.
1014 (patch_subfile_names): Update buildsym_comp_dir.
1015 (get_macro_table): Delete arg objfile. All callers updated.
1016 (start_symtab): New arg objfile. All callers updated.
1017 Rename arg dirname to comp_dir.
1018 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1019 (end_symtab_get_static_block): Delete arg objfile. All callers
1021 (end_symtab_without_blockvector): Ditto.
1022 (end_symtab_with_blockvector): Ditto.
1023 (end_symtab_from_static_block): Ditto.
1024 (end_symtab): Ditto.
1025 (end_expandable_symtab): Ditto.
1026 (augment_type_symtab): Ditto.
1027 * coffread.c (coff_start_symtab): New arg objfile. All callers
1030 2014-11-18 Doug Evans <xdje42@gmail.com>
1032 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1035 2014-11-18 Doug Evans <xdje42@gmail.com>
1037 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1038 symtab.dirname updated to use it.
1040 2014-11-18 Doug Evans <xdje42@gmail.com>
1042 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1043 symtab.objfile updated to use it.
1045 2014-11-18 Doug Evans <xdje42@gmail.com>
1047 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1049 2014-11-18 Doug Evans <xdje42@gmail.com>
1051 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1053 * findvar.c (default_read_var_value): Ditto.
1054 * jv-lang.c (add_class_symtab_symbol): Ditto.
1055 * parse.c (operator_check_standard): Ditto.
1056 * printcmd.c (address_info): Ditto.
1057 * symtab.c (fixup_symbol_section): Ditto.
1058 (skip_prologue_sal): Ditto.
1059 * tracepoint.c (scope_info): Ditto.
1060 * valops.c (find_function_in_inferior): Ditto.
1061 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1062 * python/py-symbol.c (set_symbol): Ditto.
1064 2014-11-18 Doug Evans <xdje42@gmail.com>
1066 * buildsym.c (main_subfile): New static global.
1067 (free_subfiles_list): New function.
1068 (start_symtab): Set main_subfile.
1069 (restart_symtab): Replace init of subfiles, current_subfile with
1070 call to free_subfiles_list.
1071 (watch_main_source_file_lossage): Use main_subfile.
1072 (reset_symtab_globals): Replace init of current_subfile with call
1073 to free_subfiles_list.
1074 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1075 functions, split out from ...
1076 (end_symtab_from_static_block): ... here. Rewrite to call them.
1078 2014-11-18 Doug Evans <xdje42@gmail.com>
1080 The result of symtab expansion is always a primary symtab.
1081 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1082 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1083 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1084 (psymtab_to_symtab): Add comment and assert.
1085 (map_matching_symbols_psymtab): Remove unnecessary test for
1088 2014-11-15 Doug Evans <xdje42@gmail.com>
1091 * symtab.c (find_pc_line_symtab): New function.
1092 * symtab.h (find_pc_line_symtab): Declare.
1093 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1095 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1096 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1097 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1098 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1099 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1100 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1102 2014-11-15 Doug Evans <xdje42@gmail.com>
1104 * symtab.c (expand_symtab_containing_pc): Renamed from
1105 find_pc_sect_symtab_via_partial. All callers updated.
1107 2014-11-15 Yao Qi <yao@codesourcery.com>
1109 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1111 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1113 * common/common-defs.h: Move <stdarg.h> #include ahead of
1116 2014-11-14 Pedro Alves <palves@redhat.com>
1118 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1119 [!PHONY_ICONV] (gdb_iconv): New function.
1120 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1122 2014-11-13 Doug Evans <dje@google.com>
1125 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1126 "(anonymous namespace)".
1128 2014-11-13 Doug Evans <dje@google.com>
1130 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1133 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1135 * NEWS (maint set target-async): Fix typo.
1137 2014-11-12 Pedro Alves <palves@redhat.com>
1139 * infrun.c (enum infwait_states, infwait_state): Delete.
1141 2014-11-12 Pedro Alves <palves@redhat.com>
1143 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1144 Rewrite stepping over a permanent breakpoint.
1145 (thread_still_needs_step_over, proceed): Don't set
1146 stepping_over_breakpoint for permanent breakpoints.
1147 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1148 single-step breakpoints out of the target on hardware step
1150 (process_event_stop_test): If stepping a permanent breakpoint
1151 doesn't hit the step-resume breakpoint, delete the step-resume
1153 (switch_back_to_stepped_thread): Also check if the stepped thread
1154 has advanced already on hardware step targets.
1155 (currently_stepping): Return true if the thread stepped a
1158 2014-11-12 Pedro Alves <palves@redhat.com>
1160 Mark locations as permanent, not the whole breakpoint.
1161 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1162 (mark_breakpoints_out): Don't mark permanent breakpoints as
1164 (breakpoint_init_inferior): Use mark_breakpoints_out.
1165 (breakpoint_here_p): Adjust.
1166 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1167 of permanent breakpoints.
1168 (make_breakpoint_permanent): Mark each location as permanent,
1169 instead of marking the breakpoint.
1170 (add_location_to_breakpoint): If the location is permanent, mark
1171 it as such, and as inserted.
1172 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1173 (bp_location_compare, update_global_location_list): Adjust.
1174 (update_breakpoint_locations): Don't make the breakpoint permanent
1176 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1178 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1179 (struct bp_location) <permanent>: New field.
1180 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1181 reference to bp_permanent.
1183 2014-11-12 Pedro Alves <palves@redhat.com>
1185 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1186 * arch-utils.h (default_skip_permanent_breakpoint): New
1188 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1189 Install default_skip_permanent_breakpoint as default method.
1190 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1191 (i386_gdbarch_init): Don't install it.
1192 * infrun.c (resume): Assume there's always a
1193 gdbarch_skip_permanent_breakpoint implementation.
1194 * gdbarch.h, gdbarch.c: Regenerate.
1196 2014-11-11 Daniel Colascione <dancol@dancol.org>
1198 Warn about cross-PID-namespace debugging.
1199 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1200 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1201 * linux-thread-db.c (check_pid_namespace_match): New function.
1202 (thread_db_inferior_created): Call it.
1204 2014-11-10 Doug Evans <xdje42@gmail.com>
1206 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1207 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1209 2014-11-10 Doug Evans <xdje42@gmail.com>
1211 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1213 2014-11-10 Doug Evans <xdje42@gmail.com>
1216 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1217 (lookup_static_symbol): Move definition to new location and rewrite.
1218 (lookup_symbol_in_objfile): New function.
1219 (lookup_symbol_global_iterator_cb): Call it.
1221 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1223 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1225 2014-11-07 Pedro Alves <palves@redhat.com>
1227 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1228 check if we did a "nexti" inside a prologue.
1229 * symtab.c (in_prologue): Delete function.
1230 * symtab.h (in_prologue): Delete declaration.
1232 2014-11-06 Doug Evans <xdje42@gmail.com>
1234 * symtab.h (lookup_global_symbol): Improve function comment.
1236 2014-11-06 Doug Evans <xdje42@gmail.com>
1238 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1239 All callers updated.
1240 * symtab.h (lookup_global_symbol): Update decl.
1241 (lookup_static_symbol): Move decl to better location.
1243 2014-11-06 Doug Evans <xdje42@gmail.com>
1245 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1247 2014-11-06 Doug Evans <xdje42@gmail.com>
1249 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1250 All callers updated.
1251 (lookup_symbol_in_all_objfiles): Renamed from
1252 lookup_symbol_aux_symtabs. All callers updated.
1253 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1254 All callers updated.
1255 (lookup_symbol_in_objfile_symtabs): Renamed from
1256 lookup_symbol_aux_objfile. All callers updated.
1258 2014-11-06 Doug Evans <xdje42@gmail.com>
1260 * symtab.c (lookup_symbol_in_block): Renamed from
1261 lookup_symbol_aux_block. All callers updated.
1263 2014-11-06 Doug Evans <xdje42@gmail.com>
1265 * symtab.c (lookup_static_symbol): Renamed from
1266 lookup_static_symbol_aux. All callers updated.
1267 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1268 All callers updated.
1270 2014-11-06 Doug Evans <xdje42@gmail.com>
1272 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1273 * block.c (block_lookup_symbol): Use it.
1274 * cp-support.c (make_symbol_overload_list_block): Use it.
1275 * symtab.c (iterate_over_symbols): Use it.
1277 2014-11-06 Doug Evans <xdje42@gmail.com>
1279 * symtab.c (lookup_block_symbol): Moved to ...
1280 * block.c (block_lookup_symbol): ... here and renamed.
1281 All callers updated.
1282 * block.h (block_lookup_symbol): Declare.
1283 * symtab.h (lookup_block_symbol): Delete.
1285 2014-11-06 Doug Evans <xdje42@gmail.com>
1287 * ada-lang.c (ada_make_symbol_completion_list): Use
1288 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1289 * symtab.c (lookup_objfile_from_block): Ditto.
1291 2014-11-06 Doug Evans <xdje42@gmail.com>
1293 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1296 2014-11-06 Doug Evans <xdje42@gmail.com>
1298 * objfiles.c (get_objfile_arch): Constify.
1299 * objfiles.h (get_objfile_arch): Update prototype.
1300 * solib.c (solib_global_lookup): Fetch arch from objfile,
1303 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1305 * nios2-tdep.c (wild_insn): Delete.
1306 (profiler_insn, irqentry_insn): Delete.
1307 (nios2_match_sequence): Delete.
1308 (nios2_analyze_prologue): Update comments. Remove matching
1309 of obsolete profiler_insn and irqentry_insn sequences.
1311 2014-11-05 Alan Modra <amodra@gmail.com>
1313 * charset.c (convert_between_encodings): Shrink obstack using
1315 * minsyms.c (install_minimal_symbols): Likewise.
1316 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1317 to char* before doing pointer arithmetic.
1319 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1321 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1323 2014-11-04 Pedro Alves <palves@redhat.com>
1325 * breakpoint.c (breakpoint_thread_match): Delete function.
1326 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1328 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1331 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1332 the method args also under EVAL_SKIP when evaluating method
1333 calls under EVAL_SKIP.
1335 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1337 * dwarf2loc.c (read_pieced_value): Do big endian
1338 processing only if gdb_regnum is not -1.
1339 (write_pieced_value): Ditto.
1341 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1343 * arm-linux-tdep.c (arm_linux_init_abi): Use
1344 info.byte_order_for_code to choose endianity of breakpoint
1345 instructions snippets.
1347 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1349 * arm-tdep.c (extract_arm_insn): Use
1350 gdbarch_byte_order_for_code to read arm instruction.
1352 2014-11-02 Doug Evans <xdje42@gmail.com>
1354 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1356 2014-11-02 Doug Evans <xdje42@gmail.com>
1358 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1359 main_subfile before returning.
1361 2014-10-31 Doug Evans <xdje42@gmail.com>
1363 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1364 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1366 2014-10-31 Doug Evans <xdje42@gmail.com>
1368 * valops.c (value_cast_pointers): Fix whitespace.
1369 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1372 2014-10-30 Doug Evans <dje@google.com>
1374 * NEWS: Mention ability add attributes to gdb.Objfile and
1375 gdb.Progspace objects.
1376 * python/py-objfile.c (objfile_object): New member dict.
1377 (objfpy_dealloc): Py_XDECREF dict.
1378 (objfpy_initialize): Initialize dict.
1379 (objfile_getset): Add __dict__.
1380 (objfile_object_type): Set tp_dictoffset member.
1381 * python/py-progspace.c (progspace_object): New member dict.
1382 (pspy_dealloc): Py_XDECREF dict.
1383 (pspy_initialize): Initialize dict.
1384 (pspace_getset): Add __dict__.
1385 (pspace_object_type): Set tp_dictoffset member.
1387 2014-10-30 Yao Qi <yao@codesourcery.com>
1389 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1390 replace '\\' with '\\\\'.
1392 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1396 2014-10-29 Pedro Alves <palves@redhat.com>
1399 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1400 instead of assuming a thread with a stepping range is always
1403 2014-10-29 Pedro Alves <palves@redhat.com>
1406 * event-top.c (change_line_handler): Call
1407 gdb_rl_callback_handler_remove instead of
1408 rl_callback_handler_remove.
1409 (callback_handler_installed): New global.
1410 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1411 (gdb_rl_callback_handler_reinstall): New functions.
1412 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1413 gdb_rl_callback_handler_install instead of
1414 rl_callback_handler_remove and rl_callback_handler_install.
1415 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1416 instead of rl_callback_handler_remove.
1417 * event-top.h (gdb_rl_callback_handler_remove)
1418 (gdb_rl_callback_handler_install)
1419 (gdb_rl_callback_handler_reinstall): New declarations.
1420 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1422 (fetch_inferior_event): Install it.
1423 * top.c (gdb_readline_wrapper_line) Call
1424 gdb_rl_callback_handler_remove instead of
1425 rl_callback_handler_remove.
1426 (gdb_readline_wrapper_cleanup): Don't call
1427 rl_callback_handler_install.
1429 2014-10-29 Pedro Alves <palves@redhat.com>
1431 * event-top.c (command_line_handler): Clear the first byte of
1432 linebuffer, when it is first allocated.
1434 2014-10-29 Pedro Alves <palves@redhat.com>
1436 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1439 2014-10-29 Pedro Alves <palves@redhat.com>
1443 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1444 (tui_allowed_p): Delete function.
1445 * tui/tui.c: Include "interps.h".
1446 (tui_enable): Don't use tui_allowed_p. Error out here with
1447 detailed error messages if the TUI is the top level interpreter,
1448 or if output is not a terminal. Use newterm instead of initscr,
1449 and error out if initializing the terminal fails. Also error out if
1450 the terminal doesn't support cursor addressing.
1451 * tui/tui.h (tui_allowed_p): Delete declaration.
1453 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1455 * arm-tdep.c (arm_skip_stack_protector): Return early if
1456 address loaded by first "ldr" instruction does not have
1457 a corresponding minimal symbol. Update comment.
1459 2014-10-29 Yao Qi <yao@codesourcery.com>
1461 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1462 loaded address correctly of ldr instruction.
1464 2014-10-28 Pedro Alves <palves@redhat.com>
1467 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1469 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1470 thread's stepped_breakpoint field. Skip if reverse debugging.
1472 (init_thread_stepping_state, handle_signal_stop): Clear the
1473 thread's stepped_breakpoint field.
1475 2014-10-27 Pedro Alves <palves@redhat.com>
1477 * remote.c (remote_thread_alive): New, factored out from ...
1478 (remote_thread_alive): ... this.
1479 (remote_update_thread_list): Bail out before deleting threads if
1480 the target returned an empty list, and, the current thread has a
1483 2014-10-27 Pedro Alves <palves@redhat.com>
1485 * infrun.c (handle_signal_stop): Also skip handlers when a random
1486 signal arrives while handling a "stepi" or a "nexti". Set the
1487 thread's 'step_after_step_resume_breakpoint' flag.
1489 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1491 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1492 (arm_record_ld_st_imm_offset): Reimplement to cover all
1493 load/store cases for ARM opcode 010.
1494 (arm_record_ld_st_multiple): Reimplement to cover all
1495 load/store cases for ARM opcode 100.
1497 2014-10-26 Doug Evans <xdje42@gmail.com>
1499 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1501 2014-10-26 Doug Evans <xdje42@gmail.com>
1503 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1504 parameter "kind" to "block_index".
1505 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1507 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1509 2014-10-26 Doug Evans <xdje42@gmail.com>
1511 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1513 2014-10-26 Doug Evans <xdje42@gmail.com>
1515 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1518 2014-10-26 Doug Evans <xdje42@gmail.com>
1520 * parser-defs.h (block_found): Move decl from here ...
1521 * symtab.h (block_found): ... to here.
1523 2014-10-26 Doug Evans <xdje42@gmail.com>
1525 * symtab.h (struct field_of_this_result): Fix typo in comment.
1526 (lookup_symbol_in_language): Move function comment here.
1527 (lookup_symbol): Improve function comment.
1528 (basic_lookup_symbol_nonlocal): Ditto.
1529 (lookup_symbol_static, lookup_symbol_global): Ditto.
1530 (lookup_symbol_aux_block): Ditto.
1531 (lookup_language_this): Add function comment.
1532 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1534 (lookup_block_symbol): Improve function comment.
1535 (lookup_struct): Fix capitalization in function comment.
1536 (lookup_transparent_type): Add function comment.
1537 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1538 Improve function comment.
1539 (lookup_objfile_from_block): Add function comment.
1540 * symtab.c (lookup_symbol_in_language): Update function comment.
1541 (lookup_symbol, lookup_language_this): Ditto.
1542 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1543 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1544 (basic_lookup_symbol_nonlocal): Ditto.
1545 (lookup_symbol_static, lookup_symbol_global): Ditto.
1546 (lookup_transparent_type, lookup_block_symbol): Ditto.
1548 2014-10-25 Doug Evans <xdje42@gmail.com>
1550 * symtab.c (types_info): Delete forward decl.
1551 (functions_info, variables_info, sources_info): Ditto.
1552 (_initialize_symtab): Rewrite forward decl to use
1553 initialize_file_ftype.
1555 2014-10-25 Doug Evans <xdje42@gmail.com>
1557 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1559 2014-10-25 Doug Evans <xdje42@gmail.com>
1561 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1562 of local var child_die.
1564 2014-10-24 Don Breazeal <donb@codesourcery.com>
1566 * infrun.c (follow_fork_inferior): Update fork message printing
1567 to use target_terminal_ours_for_output instead of
1568 target_terminal_ours, to use _() for all format strings, to print
1569 "vfork" instead of "fork" for vforks, and to add a detach message.
1570 (handle_vfork_child_exec_or_exit): Update message printing to use
1571 target_terminal_ours_for_output instead of target_terminal_ours, to
1572 use _() for all format strings, and to fix some formatting.
1574 2014-10-24 Pedro Alves <palves@redhat.com>
1576 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1577 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1578 * config/vax/vax.mh: Delete.
1579 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1580 obsolete configurations section.
1581 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1582 * vax-nat.c: Delete file.
1584 2014-10-24 Pedro Alves <palves@redhat.com>
1586 * NEWS (Removed targets): Add OS/arch column.
1588 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1590 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1591 on the arg type of a constructor only if it is of reference type.
1593 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1595 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1596 accessors and constants from nios2 opcodes update.
1597 (nios2_get_next_pc): Likewise.
1599 2014-10-19 Doug Evans <xdje42@gmail.com>
1601 * gdbthread.h (set_running): Fix comment.
1602 (set_executing, finish_thread_state): Fix comment.
1604 2014-10-18 Doug Evans <xdje42@gmail.com>
1606 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1608 2014-10-17 Doug Evans <dje@google.com>
1610 * NEWS: Mention new event gdb.clear_objfiles.
1611 * python/py-event.h (emit_clear_objfiles_event): Clear
1612 * python/py-events.h (events_object): New member clear_objfiles.
1613 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1615 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1616 emit clear_objfiles event.
1617 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1619 (emit_clear_objfiles_event): New function.
1620 (clear_objfiles): New event.
1621 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1623 * python/python.c (_initialize_python): Call
1624 gdbpy_initialize_clear_objfiles_event.
1626 2014-10-17 Doug Evans <dje@google.com>
1628 * NEWS: Mention new gdb.Objfile.progspace attribute.
1629 * python/py-objfile.c (objfpy_get_progspace): New function.
1630 (objfile_getset): New entry for "progspace".
1632 2014-10-17 Pedro Alves <palves@redhat.com>
1635 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1636 returns a copy of the input.
1637 (run_command_1, continue_command, step_1, jump_command)
1638 (signal_command, until_command, advance_command, finish_command)
1639 (attach_command): Adjust and install a cleanup to free the
1642 2014-10-17 Pedro Alves <palves@redhat.com>
1645 * infcmd.c (continue_1): If continuing all threads in the
1646 foreground, make sure the inferior's terminal settings are put in
1649 2014-10-17 Pedro Alves <palves@redhat.com>
1652 * annotate.c (annotate_breakpoints_invalid): Use
1653 target_terminal_our_for_output instead of target_terminal_ours.
1654 Give back the terminal to the target.
1655 (annotate_frames_invalid): Likewise.
1657 2014-10-17 Pedro Alves <palves@redhat.com>
1659 * target.c (enum terminal_state): New enum.
1660 (terminal_state): New global.
1661 (target_terminal_init): New function.
1662 (target_terminal_inferior): Skip if inferior already owns the
1664 (target_terminal_ours, target_terminal_ours_for_output): New
1666 * target.h (target_terminal_init): Convert to function prototype.
1667 (target_terminal_ours_for_output): Convert to function prototype
1669 (target_terminal_ours): Convert to function prototype and tweak
1671 * windows-nat.c (do_initial_windows_stuff): Call
1672 target_terminal_init instead of child_terminal_init_with_pgrp.
1674 2014-10-17 Pedro Alves <palves@redhat.com>
1676 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1677 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1678 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1680 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1681 * ada-lang.h [__alpha__ && __osf__]
1682 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1683 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1684 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1686 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1688 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1689 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1690 * configure: Regenerate.
1691 * configure.ac: Remove references to osf.
1692 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1693 section. Remove all other references to osf.
1694 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1695 Remove all other references to osf.
1696 * dec-thread.c: Delete file.
1697 * defs.h (GDB_OSABI_OSF1): Delete.
1698 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1700 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1701 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1703 (unconditionally_kill_inferior)
1704 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1705 * solib-osf.c: Delete file.
1707 2014-10-17 Pedro Alves <palves@redhat.com>
1709 * remote.c (clear_threads_listing_context): Move higher up, out of
1710 the HAVE_LIBEXPAT guard.
1712 2014-10-16 Tristan Gingold <gingold@adacore.com>
1714 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1715 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1718 2014-10-15 Pedro Alves <palves@redhat.com>
1720 * dec-thread.c (dec_thread_count_gdb_threads)
1721 (dec_thread_add_gdb_thread): Delete.
1722 (dec_thread_update_thread_list): Delete.
1723 (dec_thread_find_new_threads): Rename to ...
1724 (dec_thread_update_thread_list): ... this. Delete GDB-size
1725 threads that are no longer found in dec_thread_list.
1726 (resync_thread_list): Delete.
1727 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1730 2014-10-15 Pedro Alves <palves@redhat.com>
1732 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1733 * remote.c (remote_update_thread_list): Skip calling prune_threads
1734 if any thread listing method is supported, and instead walk over
1735 the set of remote threads listed, deleting those that are not
1736 found in GDB's thread list.
1738 2014-10-15 Pedro Alves <palves@redhat.com>
1740 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1741 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1742 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1743 (bsd_uthread_target): Adjust.
1744 * corelow.c (core_open): Adjust.
1745 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1746 (dec_thread_update_thread_list): New function.
1747 (init_dec_thread_ops): Adjust.
1748 * gdbthread.h (prune_threads): New declaration.
1749 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1750 (thread_db_update_thread_list): ... this. Call prune_threads.
1751 (init_thread_db_ops): Adjust.
1752 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1753 (procfs_update_thread_list): ... this. Call prune_threads.
1754 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1756 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1757 (obsd_update_thread_list): ... this. Call prune_threads.
1758 (obsd_add_target): Adjust.
1759 * procfs.c (procfs_target): Adjust.
1760 (procfs_notice_thread): Update comment.
1761 (procfs_find_new_threads): Rename to ...
1762 (procfs_update_thread_list): ... this. Call prune_threads.
1763 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1765 (ravenscar_wait): Adjust.
1766 (ravenscar_find_new_threads): Rename to ...
1767 (ravenscar_update_thread_list): ... this. Call prune_threads.
1768 (init_ravenscar_thread_ops): Adjust.
1769 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1770 (record_btrace_update_thread_list): ... this. Adjust comment.
1771 (init_record_btrace_ops): Adjust.
1772 * remote.c (remote_threads_info): Rename to ...
1773 (remote_update_thread_list): ... this. Call prune_threads.
1774 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1776 * sol-thread.c (check_for_thread_db): Adjust.
1777 (sol_find_new_threads_callback): Rename to ...
1778 (sol_update_thread_list_callback): ... this.
1779 (sol_find_new_threads): Rename to ...
1780 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1781 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1782 * target-delegates.c: Regenerate.
1783 * target.c (target_find_new_threads): Rename to ...
1784 (target_update_thread_list): ... this.
1785 * target.h (struct target_ops): Rename to_find_new_threads field
1786 to to_update_thread_list.
1787 (target_find_new_threads): Rename to ...
1788 (target_update_thread_list): ... this.
1789 * thread.c (prune_threads): Make extern.
1790 (update_thread_list): Adjust.
1792 2014-10-15 Pedro Alves <palves@redhat.com>
1794 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1795 Add describing comment. Return -1 if the qL packet is not
1797 (struct thread_item, thread_item_t): Move higher up in
1798 the file. Add comments.
1799 (struct threads_parsing_context): Move higher up in
1800 the file, add comments, and remote to ...
1801 (struct threads_listing_context): ... this.
1802 (remote_newthread_step): Don't add the thread to GDB's thread
1803 database here. Instead push it to the thread_listing_context
1805 (remote_find_new_threads): Rename to ...
1806 (remote_get_threads_with_ql): ... this. Add target_ops and
1807 targets_listing_context parameters. Pass down context.
1808 (start_thread): Adjust.
1809 (clear_threads_parsing_context): Rename to ...
1810 (clear_threads_listing_context): ... this.
1811 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1812 remote_threads_info.
1813 (remote_get_threads_with_qthreadinfo): Ditto.
1814 (remote_threads_info): Reimplement.
1816 2014-10-15 Pedro Alves <palves@redhat.com>
1818 * infrun.c (resume): Don't force displaced-stepping for all
1819 single-steps on software single-stepping archs.
1821 2014-10-15 Pedro Alves <palves@redhat.com>
1823 * breakpoint.c (single_step_breakpoints): Delete global.
1824 (insert_single_step_breakpoint): Adjust to store the breakpoint
1825 pointer in the current thread.
1826 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1827 (cancel_single_step_breakpoints): Delete functions.
1828 (breakpoint_has_location_inserted_here): Make extern.
1829 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1831 * breakpoint.h (breakpoint_has_location_inserted_here): New
1833 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1834 (cancel_single_step_breakpoints): Remove declarations.
1835 * gdbthread.h (struct thread_control_state)
1836 <single_step_breakpoints>: New field.
1837 (delete_single_step_breakpoints)
1838 (thread_has_single_step_breakpoints_set)
1839 (thread_has_single_step_breakpoint_here): New declarations.
1840 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1841 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1842 (singlestep_pc): Delete globals.
1843 (infrun_thread_ptid_changed): Remove references to removed
1845 (resume_cleanups): Delete the current thread's single-step
1847 (maybe_software_singlestep): Remove references to removed globals.
1848 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1849 delete_single_step_breakpoints.
1850 (init_wait_for_inferior): Remove references to removed globals.
1851 (delete_thread_infrun_breakpoints): Delete the thread's
1852 single-step breakpoints too.
1853 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1854 single-step breakpoints here.
1855 (delete_stopped_threads_single_step_breakpoints): New function.
1856 (adjust_pc_after_break): Adjust to use
1857 thread_has_single_step_breakpoints_set.
1858 (handle_inferior_event): Remove references to removed globals.
1859 Use delete_stopped_threads_single_step_breakpoints.
1860 (handle_signal_stop): Adjust to per-thread single-step
1861 breakpoints. Swap test order to do cheaper tests first.
1862 (switch_back_to_stepped_thread): Extend debug output. Remove
1863 references to removed globals.
1864 * record-full.c (record_full_wait_1): Adjust to per-thread
1865 single-step breakpoints.
1866 * thread.c (delete_single_step_breakpoints)
1867 (thread_has_single_step_breakpoints_set)
1868 (thread_has_single_step_breakpoint_here): New functions.
1869 (clear_thread_inferior_resources): Also delete the thread's
1870 single-step breakpoints.
1872 2014-10-15 Pedro Alves <palves@redhat.com>
1874 * thread.c (delete_thread_breakpoint): New function.
1875 (delete_step_resume_breakpoint)
1876 (delete_exception_resume_breakpoint): Use it.
1877 (delete_at_next_stop): New function.
1878 (clear_thread_inferior_resources): Use delete_at_next_stop.
1880 2014-10-15 Pedro Alves <palves@redhat.com>
1882 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1883 (breakpoint_inserted_here_p): ... here. Remove special case for
1884 software single-step breakpoints.
1885 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1886 (software_breakpoint_inserted_here_p): ... here. Remove special
1887 case for software single-step breakpoints.
1888 (bp_target_info_copy_insertion_state)
1889 (deprecated_insert_raw_breakpoint)
1890 (deprecated_remove_raw_breakpoint): Delete functions.
1891 * breakpoint.h (deprecated_insert_raw_breakpoint)
1892 (deprecated_remove_raw_breakpoint): Remove declarations.
1894 2014-10-15 Pedro Alves <palves@redhat.com>
1897 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1898 Delete array globals.
1899 (single_step_breakpoints): New global.
1900 (breakpoint_xfer_memory): Remove special handling for single-step
1902 (update_breakpoints_after_exec): Delete bp_single_step
1904 (detach_breakpoints): Remove special handling for single-step
1906 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1907 (bpstat_stop_status): Add comment.
1908 (bpstat_what, bptype_string, print_one_breakpoint_location)
1909 (adjust_breakpoint_address, init_bp_location): Handle
1911 (new_single_step_breakpoint): New function.
1912 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1913 handling for single-step breakpoints.
1914 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1915 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1917 (detach_single_step_breakpoints, find_single_step_breakpoint):
1919 (breakpoint_has_location_inserted_here): New function.
1920 (single_step_breakpoint_inserted_here_p): Rewrite.
1921 * breakpoint.h: Remove FIXME.
1922 (enum bptype) <bp_single_step>: New enum value.
1923 (insert_single_step_breakpoint): Update comment.
1924 * infrun.c (resume_cleanups)
1925 (delete_step_thread_step_resume_breakpoint): Remove single-step
1927 (fetch_inferior_event): Install a cleanup that removes infrun
1929 (switch_back_to_stepped_thread) <expect thread advanced also>:
1930 Clear step-over info.
1932 2014-10-15 Pedro Alves <palves@redhat.com>
1934 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1935 (delete_thread_infrun_breakpoints): New function, with parts
1936 salvaged from delete_step_resume_breakpoint_callback.
1937 (delete_step_thread_step_resume_breakpoint): Delete.
1938 (for_each_just_stopped_thread_callback_func): New typedef.
1939 (for_each_just_stopped_thread): New function.
1940 (delete_just_stopped_threads_infrun_breakpoints): New function.
1941 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1942 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1944 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1946 2014-10-15 Pedro Alves <palves@redhat.com>
1948 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1949 trying to step past a non-steppable watchpoint.
1950 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1952 * infrun.c (struct step_over_info): Add new field
1953 'nonsteppable_watchpoint_p' and adjust comments.
1954 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1956 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1957 (stepping_past_nonsteppable_watchpoint): New function.
1958 (step_over_info_valid_p): Also return true if stepping past a
1959 nonsteppable watchpoint.
1960 (proceed): Adjust call to set_step_over_info. Remove reference to
1962 (init_wait_for_inferior): Remove reference to init_infwait_state.
1963 (waiton_ptid): Delete global.
1964 (struct execution_control_state)
1965 <stepped_after_stopped_by_watchpoint>: Delete field.
1966 (wait_for_inferior, fetch_inferior_event): Always pass
1967 minus_one_ptid to target_wait.
1968 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1970 (init_infwait_state): Delete function.
1971 (handle_inferior_event): Remove infwait_state handling.
1972 (handle_signal_stop) <watchpoints handling>: Adjust after
1973 stepped_after_stopped_by_watchpoint removal. Don't remove
1974 breakpoints here nor set infwait_state. Set the thread's
1975 stepping_over_watchpoint flag, and call keep_going instead.
1976 (keep_going): Handle stepping_over_watchpoint. Adjust
1977 set_step_over_info calls.
1978 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1981 2014-10-15 Pedro Alves <palves@redhat.com>
1983 * infrun.c (step_over_info_valid_p): New function.
1984 (resume): Use step_over_info_valid_p instead of checking the
1985 threads's trap_expected flag.
1987 2014-10-15 Doug Evans <dje@google.com>
1988 Walfred Tedeschi <walfred.tedeschi@intel.com>
1991 * python/lib/gdb/__init__.py (packages): Add "printer".
1992 * python/lib/gdb/command/bound_registers.py: Moved to ...
1993 * python/lib/gdb/printer/bound_registers.py: ... here.
1994 Add printer to global set of builtin printers. Rename printer from
1995 "bound" to "mpx_bound128".
1996 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1997 registered as global "builtin" printer.
1998 (add_builtin_pretty_printer): New function.
1999 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2000 gdb/printer/__init__.py.
2002 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2004 * Makefile.in (SFILES): Remove d-support.c.
2005 (COMMON_OBS): Remove d-support.o.
2006 * d-lang.h (d_parse_symbol): Remove declaration.
2007 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2008 * d-support.c: Remove file.
2010 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012 * gdb/infrun.c (process_event_stop_test): Apply
2013 gdbarch_addr_bits_remove to longjmp resume address.
2015 2014-10-15 Pedro Alves <palves@redhat.com>
2017 * regformats/microblaze.dat: Delete file.
2019 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2021 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2022 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2024 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2026 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2029 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2033 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2034 with qualified args.
2036 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2038 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2039 of the case where the second operand is a pointer.
2040 <BINOP_SUB>: Likewise.
2042 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2044 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2045 only if it is not NULL.
2046 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2047 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2048 (struct probe_ops) <clear_semaphore>: Likewise.
2049 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2051 (stop_tracing): Likewise, for clear_semaphore.
2053 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2055 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2056 using language_c, instead of current_language.
2058 2014-10-13 Doug Evans <dje@google.com>
2060 * python/py-objfile.c (objfpy_initialize): New function.
2061 (objfpy_new, objfile_to_objfile_object): Call it.
2062 * python/py-progspace.c (pspy_initialize): New function.
2063 (pspy_new, pspace_to_pspace_object): Call it.
2065 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2066 Jan Kratochvil <jan.kratochvil@redhat.com>
2068 Fix "save breakpoints" for "catch" command.
2069 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2072 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2074 Fix "save breakpoints" for "disable $bpnum" command.
2075 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2077 2014-10-10 Pedro Alves <palves@redhat.com>
2079 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2080 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2081 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2082 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2084 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2085 * configure.ac: Remove references to IRIX.
2086 * configure.host: Add *-*-irix* to the obsolete hosts section.
2087 Remove all other references to irix.
2088 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2091 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2093 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2094 isn't valid, release the tdesc arch data and return NULL.
2096 2014-10-10 Pedro Alves <palves@redhat.com>
2098 * linux-tdep.c: Include observer.h.
2099 (linux_inferior_data): New global.
2100 (struct linux_info): New structure.
2101 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2102 (get_linux_inferior_data): New functions.
2103 (linux_vsyscall_range): Rename to ...
2104 (linux_vsyscall_range_raw): ... this.
2105 (linux_vsyscall_range): New function; handles caching.
2106 (_initialize_linux_tdep): Register linux_inferior_data. Install
2107 inferior_exit and inferior_appeared observers.
2109 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 Pedro Alves <palves@redhat.com>
2113 * solib-svr4.c (svr4_read_so_list): Rename to ...
2114 (svr4_current_sos_1): ... this and change the function comment.
2115 (svr4_current_sos): New function.
2117 2014-10-10 Pedro Alves <palves@redhat.com>
2119 * arch-utils.c (default_vsyscall_range): New function.
2120 * arch-utils.h (default_vsyscall_range): New declaration.
2121 * gdbarch.sh (vsyscall_range): New hook.
2122 * gdbarch.h, gdbarch.c: Regenerate.
2123 * linux-tdep.c (linux_vsyscall_range): New function.
2124 (linux_init_abi): Install linux_vsyscall_range as
2125 vsyscall_range gdbarch hook.
2126 * memrange.c (address_in_mem_range): New function.
2127 * memrange.h (address_in_mem_range): New declaration.
2128 * symfile-mem.c (find_vdso_size): Delete function.
2129 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2131 2014-10-10 Pedro Alves <palves@redhat.com>
2133 * infrun.c (normal_stop): Fix typo in comment.
2135 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2138 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2139 typo when using logical AND to determine instruction type.
2141 2014-10-09 Yao Qi <yao@codesourcery.com>
2143 * infrun.c (handle_signal_stop): Remove local variable
2146 2014-10-08 Stan Shebs <stan@codesourcery.com>
2148 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2150 2014-10-08 Gary Benson <gbenson@redhat.com>
2152 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2154 2014-10-08 Gary Benson <gbenson@redhat.com>
2156 * common/common-defs.h: Include common-exceptions.h.
2157 * exceptions.h: Do not include common-exceptions.h.
2159 2014-10-08 Gary Benson <gbenson@redhat.com>
2161 * common/common-defs.h: Include cleanups.h.
2162 * common/common-exceptions.c: Do not include cleanups.h.
2163 * utils.h: Likewise.
2165 2014-10-08 Gary Benson <gbenson@redhat.com>
2167 * ada-lang.c: Do not include exceptions.h.
2168 * ada-valprint.c: Likewise.
2169 * amd64-tdep.c: Likewise.
2170 * auto-load.c: Likewise.
2171 * block.c: Likewise.
2172 * break-catch-throw.c: Likewise.
2173 * breakpoint.c: Likewise.
2174 * btrace.c: Likewise.
2175 * c-lang.c: Likewise.
2176 * cli/cli-cmds.c: Likewise.
2177 * cli/cli-interp.c: Likewise.
2178 * cli/cli-script.c: Likewise.
2179 * completer.c: Likewise.
2180 * corefile.c: Likewise.
2181 * corelow.c: Likewise.
2182 * cp-abi.c: Likewise.
2183 * cp-support.c: Likewise.
2184 * cp-valprint.c: Likewise.
2185 * darwin-nat.c: Likewise.
2186 * dwarf2-frame-tailcall.c: Likewise.
2187 * dwarf2-frame.c: Likewise.
2188 * dwarf2loc.c: Likewise.
2189 * dwarf2read.c: Likewise.
2191 * event-loop.c: Likewise.
2192 * event-top.c: Likewise.
2193 * f-valprint.c: Likewise.
2194 * frame-unwind.c: Likewise.
2195 * frame.c: Likewise.
2196 * gdbtypes.c: Likewise.
2197 * gnu-v2-abi.c: Likewise.
2198 * gnu-v3-abi.c: Likewise.
2199 * guile/scm-auto-load.c: Likewise.
2200 * guile/scm-breakpoint.c: Likewise.
2201 * guile/scm-cmd.c: Likewise.
2202 * guile/scm-frame.c: Likewise.
2203 * guile/scm-lazy-string.c: Likewise.
2204 * guile/scm-param.c: Likewise.
2205 * guile/scm-symbol.c: Likewise.
2206 * guile/scm-type.c: Likewise.
2207 * hppa-hpux-tdep.c: Likewise.
2208 * i386-tdep.c: Likewise.
2209 * inf-loop.c: Likewise.
2210 * infcall.c: Likewise.
2211 * infcmd.c: Likewise.
2212 * infrun.c: Likewise.
2213 * interps.c: Likewise.
2214 * interps.h: Likewise.
2216 * linespec.c: Likewise.
2217 * linux-nat.c: Likewise.
2218 * linux-thread-db.c: Likewise.
2219 * m32r-rom.c: Likewise.
2221 * memory-map.c: Likewise.
2222 * mi/mi-cmd-break.c: Likewise.
2223 * mi/mi-cmd-stack.c: Likewise.
2224 * mi/mi-interp.c: Likewise.
2225 * mi/mi-main.c: Likewise.
2226 * monitor.c: Likewise.
2227 * nto-procfs.c: Likewise.
2228 * objc-lang.c: Likewise.
2229 * p-valprint.c: Likewise.
2230 * parse.c: Likewise.
2231 * ppc-linux-tdep.c: Likewise.
2232 * printcmd.c: Likewise.
2233 * probe.c: Likewise.
2234 * python/py-auto-load.c: Likewise.
2235 * python/py-breakpoint.c: Likewise.
2236 * python/py-cmd.c: Likewise.
2237 * python/py-finishbreakpoint.c: Likewise.
2238 * python/py-frame.c: Likewise.
2239 * python/py-framefilter.c: Likewise.
2240 * python/py-function.c: Likewise.
2241 * python/py-gdb-readline.c: Likewise.
2242 * python/py-inferior.c: Likewise.
2243 * python/py-infthread.c: Likewise.
2244 * python/py-lazy-string.c: Likewise.
2245 * python/py-linetable.c: Likewise.
2246 * python/py-param.c: Likewise.
2247 * python/py-prettyprint.c: Likewise.
2248 * python/py-symbol.c: Likewise.
2249 * python/py-type.c: Likewise.
2250 * python/py-value.c: Likewise.
2251 * python/python-internal.h: Likewise.
2252 * python/python.c: Likewise.
2253 * record-btrace.c: Likewise.
2254 * record-full.c: Likewise.
2255 * regcache.c: Likewise.
2256 * remote-fileio.c: Likewise.
2257 * remote-mips.c: Likewise.
2258 * remote.c: Likewise.
2259 * rs6000-aix-tdep.c: Likewise.
2260 * rs6000-nat.c: Likewise.
2262 * solib-darwin.c: Likewise.
2263 * solib-dsbt.c: Likewise.
2264 * solib-frv.c: Likewise.
2265 * solib-ia64-hpux.c: Likewise.
2266 * solib-spu.c: Likewise.
2267 * solib-svr4.c: Likewise.
2268 * solib.c: Likewise.
2269 * spu-tdep.c: Likewise.
2270 * stack.c: Likewise.
2271 * stap-probe.c: Likewise.
2272 * symfile-mem.c: Likewise.
2273 * symmisc.c: Likewise.
2274 * target.c: Likewise.
2275 * thread.c: Likewise.
2277 * tracepoint.c: Likewise.
2278 * tui/tui-interp.c: Likewise.
2279 * typeprint.c: Likewise.
2280 * utils.c: Likewise.
2281 * valarith.c: Likewise.
2282 * valops.c: Likewise.
2283 * valprint.c: Likewise.
2284 * value.c: Likewise.
2285 * varobj.c: Likewise.
2286 * windows-nat.c: Likewise.
2287 * xml-support.c: Likewise.
2289 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2291 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2293 (extended_mips16_next_pc): Update accordingly.
2295 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2297 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2299 (micromips_instruction_is_compact_branch): Likewise.
2300 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2301 or a compact jump, reaching a jump delay slot, or seeing a
2302 second non-prologue instruction.
2303 (micromips_scan_prologue): Also terminate scanning upon seeing a
2304 compact branch or jump, or reaching a branch or jump delay slot.
2305 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2306 or jump delay slot, or seeing a second non-prologue instruction.
2307 (mips32_instruction_has_delay_slot): Retain instruction
2308 examination code only, update arguments accordingly and move
2309 instruction fetch pieces to...
2310 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2311 (micromips_instruction_has_delay_slot): Likewise and to...
2312 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2313 (mips16_instruction_has_delay_slot): Likewise and to...
2314 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2315 (mips_single_step_through_delay): Update accordingly.
2316 (mips_adjust_breakpoint_address): Likewise.
2318 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2320 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2321 !mustbe32 also return 1 for 32-bit instructions.
2322 (mips16_instruction_has_delay_slot): Likewise. Add an
2323 explanatory comment.
2325 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2327 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2330 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2332 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2334 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2335 for the breakpoint's address. Don't preinitialize `placed_size'.
2336 (insert_bp_location): Set `reqstd_address' rather than
2338 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2339 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2341 (bkpt_remove_location): Likewise.
2342 (deprecated_insert_raw_breakpoint): Likewise.
2343 (deprecated_remove_raw_breakpoint): Likewise.
2344 (find_single_step_breakpoint): Likewise.
2345 * mem-break.c (default_memory_insert_breakpoint): Use
2346 `reqstd_address' for the breakpoint's address. Don't set
2347 `placed_address' or `placed_size' if breakpoint contents couldn't
2348 have been determined.
2349 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2350 the breakpoint's address.
2351 (remote_insert_hw_breakpoint): Likewise. Don't set
2352 `placed_address' or `placed_size' if breakpoint couldn't have been
2354 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2355 `reqstd_address' for the breakpoint's address.
2356 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2357 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2358 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2359 * microblaze-linux-tdep.c
2360 (microblaze_linux_memory_remove_breakpoint): Likewise.
2361 * monitor.c (monitor_insert_breakpoint): Likewise.
2362 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2363 (procfs_insert_hw_breakpoint): Likewise.
2364 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2365 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2366 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2367 * remote-mips.c (mips_insert_breakpoint): Likewise.
2368 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2370 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2372 * valops.c (value_assign): Check for bit field assignments
2373 before calling architecture-specific register value
2374 conversion functions.
2376 2014-10-03 Pierre Muller <muller@sourceware.org>
2378 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2380 2014-10-02 Pedro Alves <palves@redhat.com>
2382 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2383 threads_are_executing.
2384 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2386 * gdbthread.h (threads_are_executing): Declare.
2387 (handle_signal_stop) <random signals>: Don't print about the
2388 signal here if stopping.
2389 (end_stepping_range): Don't notify observers here.
2390 (normal_stop): Update the thread list. If stopped by a random
2391 signal or a stepping range ended, notify observers.
2392 * thread.c (threads_executing): New global.
2393 (init_thread_list): Clear 'threads_executing'.
2394 (set_executing): Set or clear 'threads_executing'.
2395 (threads_are_executing): New function.
2396 (update_threads_executing): New function.
2397 (update_thread_list): Use it.
2399 2014-10-02 Pedro Alves <palves@redhat.com>
2401 PR breakpoints/17431
2402 * breakpoint.c (update_breakpoints_after_exec): Don't create
2403 overlay, longjmp, std terminate nor exception breakpoints here.
2405 2014-10-02 Pedro Alves <palves@redhat.com>
2407 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2409 * inferior.c (find_inferior_for_program_space): Give preference to
2410 the current inferior.
2411 * inferior.h (find_inferior_for_program_space): Update comment.
2412 * progspace.c (switch_to_program_space_and_thread): Prefer the
2413 current inferior if it's bound to the program space requested. If
2414 the inferior found doesn't have a PID yet, don't bother looking up
2416 * progspace.h (switch_to_program_space_and_thread): Adjust
2418 * thread.c (any_thread_of_process, any_live_thread_of_process):
2419 Give preference to the current thread.
2421 2014-10-01 Pedro Alves <palves@redhat.com>
2423 * breakpoint.c (insert_bp_location): Error out if inserting a
2424 software breakpoint at a read-only address.
2425 * target.c (memory_xfer_check_region): New function, factored out
2427 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2429 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2430 against the memory region attributes.
2432 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2434 * NEWS: Announce new exit-code field in -list-thread-groups
2436 * inferior.c (exit_inferior_1): Don't clear exit code.
2437 (inferior_appeared): Clear exit code.
2438 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2441 2014-10-01 Pedro Alves <palves@redhat.com>
2443 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2444 GENERATED" along with emacs/vi read-only markers.
2445 * regformats/aarch64.dat: Regenerate.
2446 * regformats/arm-with-iwmmxt.dat: Regenerate.
2447 * regformats/arm-with-neon.dat: Regenerate.
2448 * regformats/arm-with-vfpv2.dat: Regenerate.
2449 * regformats/arm-with-vfpv3.dat: Regenerate.
2450 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2451 * regformats/i386/amd64-avx.dat: Regenerate.
2452 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2453 * regformats/i386/amd64-avx512.dat: Regenerate.
2454 * regformats/i386/amd64-linux.dat: Regenerate.
2455 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2456 * regformats/i386/amd64-mpx.dat: Regenerate.
2457 * regformats/i386/amd64.dat: Regenerate.
2458 * regformats/i386/i386-avx-linux.dat: Regenerate.
2459 * regformats/i386/i386-avx.dat: Regenerate.
2460 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2461 * regformats/i386/i386-avx512.dat: Regenerate.
2462 * regformats/i386/i386-linux.dat: Regenerate.
2463 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2464 * regformats/i386/i386-mmx.dat: Regenerate.
2465 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2466 * regformats/i386/i386-mpx.dat: Regenerate.
2467 * regformats/i386/i386.dat: Regenerate.
2468 * regformats/i386/x32-avx-linux.dat: Regenerate.
2469 * regformats/i386/x32-avx.dat: Regenerate.
2470 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2471 * regformats/i386/x32-avx512.dat: Regenerate.
2472 * regformats/i386/x32-linux.dat: Regenerate.
2473 * regformats/i386/x32.dat: Regenerate.
2474 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2475 * regformats/mips-dsp-linux.dat: Regenerate.
2476 * regformats/mips-linux.dat: Regenerate.
2477 * regformats/mips64-dsp-linux.dat: Regenerate.
2478 * regformats/mips64-linux.dat: Regenerate.
2479 * regformats/nios2-linux.dat: Regenerate.
2480 * regformats/rs6000/powerpc-32.dat: Regenerate.
2481 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2482 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2483 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2484 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2485 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2486 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2487 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2488 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2489 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2490 * regformats/s390-linux32.dat: Regenerate.
2491 * regformats/s390-linux32v1.dat: Regenerate.
2492 * regformats/s390-linux32v2.dat: Regenerate.
2493 * regformats/s390-linux64.dat: Regenerate.
2494 * regformats/s390-linux64v1.dat: Regenerate.
2495 * regformats/s390-linux64v2.dat: Regenerate.
2496 * regformats/s390-te-linux64.dat: Regenerate.
2497 * regformats/s390x-linux64.dat: Regenerate.
2498 * regformats/s390x-linux64v1.dat: Regenerate.
2499 * regformats/s390x-linux64v2.dat: Regenerate.
2500 * regformats/s390x-te-linux64.dat: Regenerate.
2501 * regformats/tic6x-c62x-linux.dat: Regenerate.
2502 * regformats/tic6x-c62x.dat: Regenerate.
2503 * regformats/tic6x-c64x-linux.dat: Regenerate.
2504 * regformats/tic6x-c64x.dat: Regenerate.
2505 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2506 * regformats/tic6x-c64xp.dat: Regenerate.
2508 2014-10-01 Pedro Alves <palves@redhat.com>
2510 * features/Makefile: Update comments.
2511 (XMLTOC): List all xml files we build C files from.
2512 (clean-cfiles): New rule.
2514 2014-10-01 Pedro Alves <palves@redhat.com>
2516 * features/i386/amd64-avx512-linux.c: Regenerate.
2517 * features/i386/amd64-avx512.c: Regenerate.
2518 * features/i386/x32-avx512-linux.c: Regenerate.
2519 * features/i386/x32-avx512.c: Regenerate.
2521 2014-10-01 Pedro Alves <palves@redhat.com>
2523 * features/Makefile (WHICH): Remove arm-with-m,
2524 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2526 2014-10-01 Pedro Alves <palves@redhat.com>
2528 * features/Makefile (clean): New rule.
2530 2014-10-01 Pedro Alves <palves@redhat.com>
2532 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2533 (zmm14h): Add missing end quotes.
2535 2014-10-01 Pedro Alves <palves@redhat.com>
2537 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2538 * features/aarch64.c: Regenerate.
2540 2014-09-30 Don Breazeal <donb@codesourcery.com>
2542 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2543 code so as to work with follow_fork_inferior.
2544 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2545 (inf_ttrace_create_inferior): Remove reference to
2546 inf_ttrace_vfork_ppid.
2547 (inf_ttrace_attach): Ditto.
2548 (inf_ttrace_detach): Ditto.
2549 (inf_ttrace_kill): Use current_inferior instead of
2550 inf_ttrace_vfork_ppid.
2551 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2552 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2553 inferior away from the parent.
2554 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2556 (follow_fork_inferior): New function.
2557 (follow_inferior_reset_breakpoints): Make function static.
2558 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2559 * linux-nat.c (linux_child_follow_fork): Move target-independent
2560 code to infrun.c:follow_fork_inferior.
2562 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2564 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2565 * gdbarch.c: Regenerate.
2566 * gdbarch.h: Likewise.
2567 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2568 gdbarch method 'regset_from_core_section'.
2569 (get_core_register_section): Remove handling for the case that
2570 regset == NULL and regset_from_core_section is defined.
2571 (get_core_registers): Drop check for deleted method.
2572 * procfs.c (procfs_do_thread_registers): Adjust comment.
2574 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2577 (linux_nat_make_corefile_notes): Remove.
2578 (linux_target_install_ops): Do not set target method
2579 'make_corefile_notes'.
2580 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2582 (linux_corefile_thread_callback): Instead of args->collect, call
2583 linux_collect_thread_registers.
2584 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2585 NULL unless there is a regset iterator.
2586 (linux_make_corefile_notes_1): Remove.
2587 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2588 by linux_make_corefile_notes.
2589 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2593 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2594 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2596 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2598 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2600 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2601 (xtensa_iterate_over_regset_sections): New.
2602 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2604 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2606 * vax-tdep.c (vax_regset_from_core_section): Remove.
2607 (vax_iterate_over_regset_sections): New.
2608 (vax_gdbarch_init): Adjust gdbarch initialization.
2610 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2613 (tilegx_regset_from_core_section): Remove.
2614 (tilegx_iterate_over_regset_sections): New.
2615 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2619 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2620 (sparc_iterate_over_regset_sections): New.
2621 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2622 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2624 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2625 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2626 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2627 target method 'make_corefile_notes'.
2629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2632 'sizeof_gregset' and 'sizeof_fpregset'.
2633 * sh-tdep.c (sh_regset_from_core_section): Remove.
2634 (sh_iterate_over_regset_sections): New.
2635 (sh_gdbarch_init): Adjust gdbarch initialization.
2636 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2638 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2641 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2644 (score7_linux_iterate_over_regset_sections): New.
2645 (score_gdbarch_init): Adjust gdbarch initialization.
2647 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2649 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2651 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2652 method 'make_corefile_notes'.
2653 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2654 (ppcfbsd_regset_from_core_section): Remove.
2655 (ppcfbsd_iterate_over_regset_sections): New.
2656 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2658 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2659 (ppcnbsd_iterate_over_regset_sections): New.
2660 (ppcnbsd_init_abi): Adjust.
2661 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2662 (ppcobsd_iterate_over_regset_sections): New.
2663 (ppcobsd_init_abi): Adjust.
2664 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2665 (rs6000_aix_iterate_over_regset_sections): New.
2666 (rs6000_aix_init_osabi): Adjust.
2668 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2671 (nios2_regset_from_core_section): Remove.
2672 (nios2_iterate_over_regset_sections): New.
2673 (nios2_linux_init_abi): Adjust gdbarch initialization.
2675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2678 (am33_iterate_over_regset_sections): New.
2679 (am33_linux_init_osabi): Adjust gdbarch initialization.
2681 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2683 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2684 (mips_linux_iterate_over_regset_sections): New.
2685 (mips_linux_init_abi): Adjust gdbarch initialization.
2686 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2687 (mips64obsd_iterate_over_regset_sections): New.
2688 (mips64obsd_init_abi): Adjust.
2689 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2690 (mipsnbsd_iterate_over_regset_sections): New.
2691 (mipsnbsd_init_abi): Adjust.
2693 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2696 (m88k_iterate_over_regset_sections): New.
2697 (m88k_gdbarch_init): Adjust gdbarch initialization.
2699 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2701 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2702 (ia64_linux_iterate_over_regset_sections): New.
2703 (ia64_linux_init_abi): Adjust gdbarch initialization.
2705 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2708 (m68kbsd_iterate_over_regset_sections): New.
2709 (m68kbsd_init_abi): Adjust gdbarch initialization.
2710 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2711 (m68k_linux_iterate_over_regset_sections): New.
2712 (m68k_linux_init_abi): Adjust gdbarch initialization.
2714 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2716 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2717 (m32r_linux_regset_from_core_section): Remove.
2718 (m32r_linux_iterate_over_regset_sections): New.
2719 (m32r_linux_init_abi): Adjust gdbarch initialization.
2721 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2723 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2724 (amd64obsd_iterate_over_regset_sections): New.
2725 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2726 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2728 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2729 regset_from_core_section initialization.
2730 * i386-tdep.c (i386_regset_from_core_section): Remove.
2731 (i386_iterate_over_regset_sections): New.
2732 (i386_gdbarch_init): Adjust gdbarch initialization.
2733 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2734 (i386_iterate_over_regset_sections): New prototype.
2735 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2737 (i386obsd_aout_iterate_over_regset_sections): New.
2738 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2739 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2741 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2742 (amd64fbsd_init_abi): Call fbsd_init_abi.
2743 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2744 (i386fbsd4_init_abi): Call fbsd_init_abi.
2745 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2746 target method 'make_corefile_notes'.
2747 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2749 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2752 (hppa_hpux_iterate_over_regset_sections): New.
2753 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2754 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2755 (hppa_linux_iterate_over_regset_sections): New.
2756 (hppa_linux_init_abi): Adjust.
2757 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2758 (hppanbsd_iterate_over_regset_sections): New.
2759 (hppanbsd_init_abi): Adjust.
2760 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2761 (hppaobsd_iterate_over_regset_sections): New.
2762 (hppaobsd_init_abi): Adjust.
2764 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2766 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2767 (frv_linux_iterate_over_regset_sections): New.
2768 (frv_linux_init_abi): Adjust gdbarch initialization.
2770 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2772 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2773 (armbsd_iterate_over_regset_sections): New prototype.
2774 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2775 (armbsd_iterate_over_regset_sections): New.
2776 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2779 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2781 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2782 (alpha_linux_iterate_over_regset_sections): New.
2783 (alpha_linux_init_abi): Adjust gdbarch initialization.
2784 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2786 (alphanbsd_iterate_over_regset_sections): New prototype.
2788 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2790 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2792 (aarch64_linux_iterate_over_regset_sections): New.
2793 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2795 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2797 * fbsd-tdep.c: New file.
2798 * fbsd-tdep.h: New file.
2799 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2800 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2801 (ALLDEPFILES): Add fbsd-tdep.c.
2803 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2805 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2807 * gdbarch.h: Regenerate.
2808 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2810 (get_core_register_section): Add parameter 'regset' and use it, if
2811 set. Add parameter 'min_size' and verify the bfd section size
2813 (get_core_registers_cb): Add parameter 'regset' and pass it to
2814 get_core_register section. For the "standard" register sections
2815 ".reg" and ".reg2", set an appropriate default for human_name.
2816 (get_core_registers): Don't abort when the gdbarch has an iterator
2817 but no regset_from_core_section. Add NULL/0 for parameters
2818 'regset'/'min_size' in calls to get_core_register_section.
2819 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2820 'regset' and use it instead of calling the
2821 regset_from_core_section gdbarch method.
2822 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2823 * i386-tdep.c (i386_supply_xstateregset)
2824 (i386_collect_xstateregset, i386_xstateregset): Moved to
2826 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2828 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2829 core file support only if the regset iterator hasn't been set.
2830 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2831 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2832 Moved from i386-tdep.c and renamed to *_linux*.
2833 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2834 each callback invocation. Allow any .reg-xstate size when reading
2836 * amd64-tdep.c (amd64_supply_xstateregset)
2837 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2839 (amd64_regset_from_core_section): Remove.
2840 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2841 install an amd64-specific regset_from_core_section gdbarch method.
2842 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2843 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2844 Moved from amd64-tdep.c and renamed to *_linux*.
2845 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2846 to each callback invocation. Allow any .reg-xstate size when
2847 reading from a core file.
2848 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2849 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2850 each callback invocation.
2851 (arm_linux_init_abi): No longer set the regset_from_core_section
2853 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2854 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2855 each callback invocation.
2856 (ppc_linux_init_abi): No longer set the regset_from_core_section
2858 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2859 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2860 (s390_regset_from_core_section): Remove.
2861 (s390_iterate_over_regset_sections): Add regset parameter to each
2862 callback invocation.
2863 (s390_gdbarch_init): No longer set the regset_from_core_section
2864 gdbarch method. Drop initialization of deleted tdep fields.
2866 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2868 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2869 (amd64_linux_iterate_over_regset_sections): New.
2870 (amd64_linux_init_abi_common): Don't install the regset section
2871 list, but the new iterator in gdbarch.
2872 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2873 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2874 (arm_linux_iterate_over_regset_sections): ...here. New function.
2875 (arm_linux_init_abi): Set iterator instead of section list.
2876 * corelow.c (get_core_registers_cb): New function, logic moved
2878 (get_core_registers): ...loop body here. Use new iterator method
2879 instead of walking through the regset section list.
2880 * gdbarch.sh: Remove 'core_regset_sections'. New method
2881 'iterate_over_regset_sections'. New typedef
2882 'iterate_over_regset_sections_cb'.
2883 * gdbarch.c: Regenerate.
2884 * gdbarch.h: Likewise.
2885 * i386-linux-tdep.c (i386_linux_regset_sections)
2886 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2888 (i386_linux_iterate_over_regset_sections): New.
2889 (i386_linux_init_abi): Don't choose a regset section list, but
2890 install new iterator in gdbarch.
2891 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2892 (linux_collect_regset_section_cb): New function, logic moved
2894 (linux_collect_thread_registers): ...loop body here. Use iterator
2895 method instead of walking through list.
2896 (linux_make_corefile_notes_1): Check for presence of iterator
2897 method instead of regset section list.
2898 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2899 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2900 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2901 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2902 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2903 (ppc_linux_init_abi): Don't choose from above regset section
2904 lists, but install new iterator in gdbarch.
2905 * regset.h (struct core_regset_section): Remove.
2906 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2907 have_linux_v1, have_linux_v2, and have_tdb.
2908 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2909 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2910 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2911 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2912 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2913 (s390_iterate_over_regset_sections): ...here. New function. Use
2915 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2916 regset section lists, but install new iterator.
2918 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2920 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2922 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2924 * progspace.c (print_program_space): Don't prune program spaces
2925 before printing them.
2927 2014-09-25 Pedro Alves <palves@redhat.com>
2929 * infrun.c (user_visible_resume_ptid): Don't check
2930 singlestep_breakpoints_inserted_p.
2932 2014-09-25 Pedro Alves <palves@redhat.com>
2934 * breakpoint.c (should_be_inserted): Add debug output.
2936 2014-09-25 Pedro Alves <palves@redhat.com>
2938 * infrun.c (stepping_past_instruction_at)
2939 (clear_exit_convenience_vars): Point at infrun.h instead of
2941 (handle_signal_stop): Fix typo.
2943 2014-09-24 Yao Qi <yao@codesourcery.com>
2945 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2948 2014-09-22 Gary Benson <gbenson@redhat.com>
2950 * target.c (target_stop): Updated comment.
2952 2014-09-22 Gary Benson <gbenson@redhat.com>
2954 * target/target.h (target_stop_ptid): Renamed as...
2955 (target_stop_and_wait): New function. Updated comment.
2957 (target_continue_ptid): Renamed as...
2958 (target_continue_no_signal): New function. Updated comment.
2961 2014-09-22 Pedro Alves <palves@redhat.com>
2963 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2965 * breakpoint.c (enum ugll_insert_mode): New enum.
2966 (always_inserted_mode): Now a plain boolean.
2967 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2968 (breakpoints_always_inserted_mode): Delete.
2969 (breakpoints_should_be_inserted_now): New function.
2970 (insert_breakpoints): Pass UGLL_INSERT to
2971 update_global_location_list instead of calling
2972 insert_breakpoint_locations manually.
2973 (create_solib_event_breakpoint_1): New, factored out from ...
2974 (create_solib_event_breakpoint): ... this.
2975 (create_and_insert_solib_event_breakpoint): Use
2976 create_solib_event_breakpoint_1 instead of calling
2977 insert_breakpoint_locations manually.
2978 (update_global_location_list): Change parameter type from boolean
2979 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2980 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2981 (update_global_location_list_nothrow): Change parameter type from
2982 boolean to enum ugll_insert_mode.
2983 (_initialize_breakpoint): "breakpoint always-inserted" option is
2984 now a boolean command. Update help text.
2985 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2986 (breakpoints_should_be_inserted_now): New declaration.
2987 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2988 Remove breakpoints_always_inserted_mode check.
2989 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2990 * remote.c (remote_start_remote): Likewise.
2992 2014-09-22 Pedro Alves <palves@redhat.com>
2994 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2995 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2996 Instead, pass UGLL_INSERT to update_global_location_list.
2997 (update_global_location_list): Change parameter type from boolean
2998 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2999 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3000 (create_solib_event_breakpoint_1): New, factored out from ...
3001 (create_solib_event_breakpoint): ... this.
3002 (create_and_insert_solib_event_breakpoint): Use
3003 create_solib_event_breakpoint_1 instead of calling
3004 insert_breakpoint_locations manually.
3005 (update_global_location_list): Handle UGLL_INSERT.
3007 2014-09-22 Pedro Alves <palves@redhat.com>
3009 * breakpoint.c (enum ugll_insert_mode): New enum.
3010 (update_global_location_list)
3011 (update_global_location_list_nothrow): Change parameter type from
3012 boolean to enum ugll_insert_mode. All callers adjusted.
3014 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3016 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3017 SystemTap support in GDB.
3019 2014-09-19 Don Breazeal <donb@codesourcery.com>
3021 * linux-nat.c (linux_handle_extended_wait): Call
3022 linux_ptrace_get_extended_event.
3023 (wait_lwp): Call linux_is_extended_waitstatus.
3024 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3025 and linux_is_extended_waitstatus.
3026 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3027 linux_ptrace_get_extended_event.
3028 (linux_ptrace_get_extended_event): New function.
3029 (linux_is_extended_waitstatus): New function.
3030 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3031 (linux_is_extended_waitstatus): New declarations.
3033 2014-09-19 Yao Qi <yao@codesourcery.com>
3035 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3036 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3037 comments. Callers update.
3038 (dwarf_decode_lines): Likewise.
3039 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3040 comments. Skip the line table if 'lowpc' is greater than
3041 'address'. Don't check
3042 dwarf2_per_objfile->has_section_at_zero.
3044 2014-09-18 Doug Evans <dje@google.com>
3046 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3047 * python/py-symtab.c (stpy_get_producer): New function.
3048 (symtab_object_getset): Add "producer" attribute.
3050 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3053 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3054 (do_captured_read_memory_integer): Remove.
3055 (safe_read_memory_integer): Use target_read_memory directly instead
3056 of catching errors in do_captured_read_memory_integer.
3058 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3060 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3063 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3065 * objc-lang.c (find_implementation_from_class): Remove dead code.
3067 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3070 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3071 "fprintf_unfiltered (gdb_stdlog...)".
3073 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3075 PR breakpoints/12526
3076 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3078 * breakpoint.c (watch_command_1): Use these fields to retain
3079 bitfield information.
3080 (extract_bitfield_from_watchpoint_value): New function.
3081 (watchpoint_check): Use it.
3082 (update_watchpoint): Use it. Optimize the address and length of a
3083 HW watchpoint pointing to a bitfield.
3084 * value.h (unpack_value_bitfield): New prototype.
3085 * value.c (unpack_value_bitfield): Make extern.
3087 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3089 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3091 * gnu-nat.c (inf_threads): New function.
3092 * gnu-nat.h (inf_threads_ftype): New typedef.
3093 (inf_threads): New declaration.
3094 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3095 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3096 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3097 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3098 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3099 (i386_gnu_dr_get_control): New functions.
3100 (reg_addr): New structure.
3101 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3102 i386 debugging register hooks.
3103 * NEWS: Mention this.
3105 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3107 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3108 vector data transfer instructions.
3109 (arm_record_coproc_data_proc): Updated.
3111 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3113 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3114 arm_record_exreg_ld_st_insn.
3115 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3118 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3120 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3121 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3122 processing instructions.
3124 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3126 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3127 for advance SIMD struct ld/st insn.
3128 (thumb2_record_decode_insn_handler): Replace stub handler with
3129 thumb2_record_asimd_struct_ld_st.
3131 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3133 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3134 for asimd, vfp and coprocessor insns.
3135 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3136 and coprocessor insns.
3137 (thumb2_record_coproc_insn): New function.
3138 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3140 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3143 2014-09-13 Doug Evans <xdje42@gmail.com>
3145 * NEWS: Mention new "queue-signal" command.
3146 * infcmd.c (queue_signal_command): New function.
3147 (_initialize_infcmd): Add new queue-signal command.
3149 2014-09-13 Doug Evans <xdje42@gmail.com>
3151 * linux-nat.c (wait_lwp): Add debugging printf.
3152 (linux_nat_wait_1): Ditto.
3154 2014-09-12 Pedro Alves <palves@redhat.com>
3156 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3157 (create_and_insert_solib_event_breakpoint): New functions.
3158 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3159 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3160 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3161 (remove_dbx_link_breakpoint): Delete function.
3162 (insert_dbx_link_bpt_in_file): Use
3163 create_and_insert_solib_event_breakpoint instead of
3164 deprecated_insert_raw_breakpoint.
3165 (procfs_wait): Don't check whether we hit __dbx_link here.
3166 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3168 * solib-irix.c (base_breakpoint): Delete global.
3169 (disable_break): Delete function.
3170 (enable_break): Use create_solib_event_breakpoint
3171 instead of deprecated_insert_raw_breakpoint.
3172 (irix_solib_handle_event): New function.
3173 (irix_solib_create_inferior_hook): Don't run the target or disable
3174 the mapping-complete breakpoint here.
3175 (_initialize_irix_solib): Install irix_solib_handle_event as
3176 so_ops->handle_event hook.
3178 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3179 Ulrich Weigand <uweigand@de.ibm.com>
3182 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3183 instead of read_memory_unsigned_integer.
3185 2014-09-12 Gary Benson <gbenson@redhat.com>
3187 * nat/linux-waitpid.c: Include common-defs.h.
3188 [GDBSERVER]: Add FIXME comment.
3189 [!GDBSERVER]: Don't include defs.h or signal.h.
3190 (linux_debug) [!GDBSERVER]: Remove empty block.
3192 2014-09-12 Gary Benson <gbenson@redhat.com>
3194 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3195 Don't include defs.h or server.h.
3197 2014-09-12 Gary Benson <gbenson@redhat.com>
3199 * nat/linux-btrace.c: Include common-defs.h.
3200 Don't include defs.h, server.h or gdbthread.h.
3201 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3203 2014-09-12 Gary Benson <gbenson@redhat.com>
3205 * common/agent.c: Include common-defs.h.
3206 Don't include defs.h or server.h.
3207 * common/buffer.c: Likewise.
3208 * common/common-debug.c: Likewise.
3209 * common/common-utils.c: Likewise.
3210 * common/errors.c: Likewise.
3211 * common/filestuff.c: Likewise.
3212 * common/format.c: Likewise.
3213 * common/gdb_vecs.c: Likewise.
3214 * common/print-utils.c: Likewise.
3215 * common/ptid.c: Likewise.
3216 * common/rsp-low.c: Likewise.
3217 * common/signals.c: Likewise.
3218 * common/vec.c: Likewise.
3219 * common/xml-utils.c: Likewise.
3220 * nat/linux-osdata.c: Likewise.
3221 * nat/linux-procfs.c: Likewise.
3222 * nat/linux-ptrace.c: Likewise.
3223 * nat/mips-linux-watch.c: Likewise.
3224 * target/waitstatus.c: Likewise.
3226 2014-09-12 Tom Tromey <tromey@redhat.com>
3227 Gary Benson <gbenson@redhat.com>
3229 * common/common-regcache.h: New file.
3230 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3231 * regcache.h: Include common-regcache.h.
3232 (regcache_read_pc): Don't declare.
3233 * regcache.c (get_thread_regcache_for_ptid): New function.
3234 * nat/linux-btrace.c: Don't include regcache.h.
3235 Include common-regcache.h.
3236 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3238 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3240 * regcache.h (struct regset): Declare.
3242 2014-09-11 Pedro Alves <palves@redhat.com>
3245 * main.c: Include "infrun.h".
3246 (catch_command_errors, catch_command_errors_const): Wait for the
3247 foreground command to complete.
3248 * top.c (maybe_wait_sync_command_done): New function, factored out
3250 (maybe_wait_sync_command_done): ... here.
3251 * top.h (maybe_wait_sync_command_done): New declaration.
3253 2014-09-11 Tom Tromey <tromey@redhat.com>
3254 Gary Benson <gbenson@redhat.com>
3256 * common/symbol.h: New file.
3257 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3258 * minsyms.c (find_minimal_symbol_address): New function.
3259 * common/agent.c: Include common/symbol.h.
3260 [!GDBSERVER]: Don't include objfiles.h.
3261 (agent_look_up_symbols): Use find_minimal_symbol_address.
3263 2014-09-11 Gary Benson <gbenson@redhat.com>
3265 * target/target.h (target_stop_ptid, target_continue_ptid):
3267 * target.c (target_stop_ptid, target_continue_ptid): New
3269 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3270 (agent_run_command): Always use target_stop_ptid and
3271 target_continue_ptid.
3273 2014-09-11 Tom Tromey <tromey@redhat.com>
3274 Gary Benson <gbenson@redhat.com>
3276 * target/target.h: New file.
3277 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3278 * target.h: Include target/target.h.
3279 (target_read_memory, target_write_memory): Don't declare.
3280 * target.c (target_read_uint32): New function.
3281 * common/agent.c: Include target/target.h.
3282 [!GDBSERVER]: Don't include target.h.
3283 (helper_thread_id): Type changed to uint32_t.
3284 (agent_get_helper_thread_id): Use target_read_uint32.
3285 (agent_run_command): Always use target_read_memory and
3286 target_write_memory.
3287 (agent_capability): Type changed to uint32_t.
3288 (agent_capability_check): Use target_read_uint32.
3290 2014-09-11 Gary Benson <gbenson@redhat.com>
3292 * common/common-debug.h (show_debug_regs): Declare.
3293 * common/common-debug.c (show_debug_regs): Define.
3294 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3295 all uses with show_debug_regs. Replace all uses that considered
3296 debug_hw_points as a multi-value integer with straight boolean
3298 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3299 with show_debug_regs.
3300 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3301 all uses with show_debug_regs.
3302 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3303 uses with show_debug_regs.
3305 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3307 * findvar.c (address_from_register): Handle targets requiring
3308 a special conversion routine even for plain pointer types.
3310 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3312 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3313 (store_register): Do not call exec_one_dummy_insn.
3315 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3317 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3318 dereference it first. Use value_enclosing_type instead of
3320 (ada_array_length): Likewise.
3322 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3324 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3325 Adjust function implementation and documentation accordingly.
3326 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3327 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3328 Update call to ada_value_ptr_subscript.
3330 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3332 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3333 instead of VAL's type.
3335 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3337 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3339 2014-09-09 Doug Evans <xdje42@gmail.com>
3342 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3343 last parameter to pkg-config, not first.
3344 * configure.ac: Pass --with-guile provided pkg-config path to
3345 GDB_GUILE_PROGRAM_NAMES.
3346 * configure: Regenerate.
3348 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3350 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3353 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3355 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3356 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3357 the list of sections determining GDB_OSABI_IRIX.
3359 2014-09-09 James Hogan <james.hogan@imgtec.com>
3361 * MAINTAINERS (Write After Approval): Add "James Hogan".
3363 2014-09-09 James Hogan <james.hogan@imgtec.com>
3365 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3367 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3369 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3371 2014-09-08 Doug Evans <xdje42@gmail.com>
3374 * guile.c: #include <signal.h>.
3375 (_initialize_guile): Block SIGCHLD while initializing Guile.
3377 Replaces the following, which is reverted.
3379 2014-07-26 Doug Evans <xdje42@gmail.com>
3382 * configure.ac: Add check for header gc/gc.h.
3383 Add check for function setenv.
3384 * configure: Regenerate.
3385 * config.in: Regenerate.
3386 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3388 2014-09-08 Doug Evans <xdje42@gmail.com>
3390 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3391 with named constant. Fix style of pointer comparison.
3392 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3394 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3397 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3398 decide whether we display the command on "show user".
3399 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3400 printing command name.
3401 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3402 * cli/cli-decode.c (cli_user_command_p): Create helper function
3403 to verify whether cmd_list_element is a user-defined command.
3405 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3409 Fix goto out of TRY_CATCH.
3411 2014-09-06 Doug Evans <xdje42@gmail.com>
3412 Tom Tromey <tromey@redhat.com>
3415 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3416 $_any_caller_matches.
3417 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3418 * python/lib/gdb/function/caller_is.py: New file.
3420 2014-09-06 Doug Evans <xdje42@gmail.com>
3422 * infcmd.c (program_info): Fix typo.
3424 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3427 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3428 'number'. New variable 'has_digit'. Rewrite code to deal with
3429 subexpressions on SDT probes.
3431 2014-09-04 Pedro Alves <palves@redhat.com>
3433 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3434 the input is only one character long.
3436 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3439 * f-valprint.c (f_val_print): Specify the correct print option to
3440 use when printing integer values.
3442 2014-09-04 Gary Benson <gbenson@redhat.com>
3444 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3445 Remove code to cope with LWPs wrapped as PIDs.
3446 Add assertions to ensure no wrapped LWPs are passed.
3448 2014-09-04 Pedro Alves <palves@redhat.com>
3450 * value.c (value_ranges_copy_adjusted): New function, factored out
3452 (value_contents_copy_raw): ... here.
3453 (unpack_value_bits_as_long_1): Rename back to ...
3454 (unpack_bits_as_long): ... this. Remove 'original_value' and
3455 'result' parameters. Change return type to LONGEST.
3456 (unpack_value_bits_as_long): Delete.
3457 (unpack_value_field_as_long_1): Delete.
3458 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3459 (unpack_value_bitfield): New function.
3460 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3461 (value_fetch_lazy): Use unpack_value_bitfield.
3462 * value.h (unpack_value_bits_as_long): Delete declaration.
3464 2014-09-03 Sasha Smundak <asmundak@google.com>
3466 * python/py-frame.c (frapy_read_register): New function.
3468 2014-09-03 James Hogan <james.hogan@imgtec.com>
3470 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3471 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3473 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3476 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3478 (add_cmd): Set "completer_handle_brkchars" to NULL.
3479 * cli/cli-decode.h (struct cmd_list_element)
3480 <completer_handle_brkchars>: New field.
3481 * command.h (completer_ftype_void): New typedef.
3482 (set_cmd_completer_handle_brkchars): New prototype.
3483 * completer.c (set_gdb_completion_word_break_characters): New
3485 (complete_line_internal): Call "completer_handle_brkchars"
3486 callback from command.
3487 * completer.h: Include "command.h".
3488 (set_gdb_completion_word_break_characters): New prototype.
3489 * python/py-cmd.c (cmdpy_completer_helper): New function.
3490 (cmdpy_completer_handle_brkchars): New function.
3491 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3492 (cmdpy_init): Set completer_handle_brkchars to
3493 cmdpy_completer_handle_brkchars.
3495 2014-09-03 Gary Benson <gbenson@redhat.com>
3497 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3498 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3499 Loop conditions changed to equivalent form.
3500 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3501 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3502 ALL_DEBUG_ADDRESS_REGISTERS.
3504 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3506 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3509 2014-09-02 Doug Evans <dje@google.com>
3511 * typeprint.c (find_global_typedef): Fix comment.
3513 2014-09-02 Gary Benson <gbenson@redhat.com>
3515 * i386-nat.h: Renamed as...
3516 * x86-nat.h: New file. All type, function and variable name
3517 prefixes changed from "i386_" to "x86_". All references updated.
3518 * i386-nat.c: Renamed as...
3519 * x86-nat.c: New file. All type, function and variable name
3520 prefixes changed from "i386_" to "x86_". All references updated.
3521 * common/i386-xstate.h: Renamed as...
3522 * common/x86-xstate.h: New file. All type, function and variable
3523 name prefixes changed from "i386_" to "x86_". All references
3525 * nat/i386-cpuid.h: Renamed as...
3526 * nat/x86-cpuid.h: New file. All type, function and variable name
3527 prefixes changed from "i386_" to "x86_". All references updated.
3528 * nat/i386-gcc-cpuid.h: Renamed as...
3529 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3530 name prefixes changed from "i386_" to "x86_". All references
3532 * nat/i386-dregs.h: Renamed as...
3533 * nat/x86-dregs.h: New file. All type, function and variable name
3534 prefixes changed from "i386_" to "x86_". All references updated.
3535 * nat/i386-dregs.c: Renamed as...
3536 * nat/x86-dregs.c: New file. All type, function and variable name
3537 prefixes changed from "i386_" to "x86_". All references updated.
3539 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3541 * varobj.c (_initialize_varobj): Move to the end of file.
3543 2014-08-29 Gary Benson <gbenson@redhat.com>
3545 * common/common-exceptions.h: New file.
3546 * common/common-exceptions.c: Likewise.
3547 * Makefile.in (SFILES): Add common/common-exceptions.c.
3548 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3549 (COMMON_OBS): Add common-exceptions.o.
3550 (common-exceptions.o): New rule.
3551 * exceptions.h (common-exceptions.h): Include.
3552 (gdb_setjmp.h): Do not include.
3553 (return_reason): Moved to common-exceptions.h.
3554 (enum return_reason): Likewise.
3555 (RETURN_MASK): Likewise.
3556 (typedef return_mask): Likewise.
3557 (enum errors): Likewise.
3558 (struct gdb_exception): Likewise.
3559 (exceptions_state_mc_init): Likewise.
3560 (exceptions_state_mc_action_iter): Likewise.
3561 (exceptions_state_mc_action_iter_1): Likewise.
3562 (TRY_CATCH): Likewise.
3563 (throw_exception): Likewise.
3564 (throw_verror): Likewise.
3565 (throw_vquit): Likewise.
3566 (throw_error): Likewise.
3567 (throw_quit): Likewise.
3568 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3569 (enum catcher_action): Likewise.
3570 (struct catcher): Likewise.
3571 (current_catcher): Likewise.
3572 (catcher_list_size): Likewise.
3573 (exceptions_state_mc_init): Likewise.
3574 (catcher_pop): Likewise.
3575 (exceptions_state_mc): Likewise.
3576 (exceptions_state_mc_action_iter): Likewise.
3577 (exceptions_state_mc_action_iter_1): Likewise.
3578 (throw_exception): Likewise.
3579 (exception_messages): Likewise.
3580 (exception_messages_size): Likewise.
3581 (throw_it): Likewise.
3582 (throw_verror): Likewise.
3583 (throw_vquit): Likewise.
3584 (throw_error): Likewise.
3585 (throw_quit): Likewise.
3586 (prepare_to_throw_exception): New function.
3588 2014-08-29 Gary Benson <gbenson@redhat.com>
3590 * common/gdb_setjmp.h: New file.
3591 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3592 * configure.ac: Move sigsetjmp check...
3593 * common/common.m4: ...here.
3594 * configure: Regenerate.
3595 * cp-support.c (SIGJMP_BUF): Delete.
3596 (SIGSETJMP): Likewise.
3597 (SIGLONGJMP): Likewise.
3598 * exceptions.h (gdb_setjmp.h): Include.
3599 (setjmp.h): Do not include.
3600 (EXCEPTIONS_SIGJMP_BUF): Delete.
3601 (EXCEPTIONS_SIGSETJMP): Likewise.
3602 (EXCEPTIONS_SIGLONGJMP): Likewise.
3603 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3605 * exceptions.c: Likewise.
3607 2014-08-29 Gary Benson <gbenson@redhat.com>
3609 * cleanups.h: Moved to...
3610 * common/cleanups.h: New file.
3611 * cleanups.c: Moved to...
3612 * common/cleanups.c: New file. Include common-defs.h and
3613 cleanups.h. Do not include defs.h.
3614 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3615 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3616 (cleanups.o): New rule.
3618 2014-08-29 Gary Benson <gbenson@redhat.com>
3620 * common/errors.h (internal_warning): New declaration.
3621 (internal_vwarning): Likewise.
3622 * common/errors.c (internal_warning): New function.
3623 * utils.h (internal_warning): Don't declare.
3624 (internal_vwarning): Likewise.
3625 * utils.c (internal_warning): Removed.
3627 2014-08-29 Gary Benson <gbenson@redhat.com>
3629 * main.c (captured_main): Use warning during startup.
3630 Prefix startup warning messages with command name.
3632 2014-08-29 Gary Benson <gbenson@redhat.com>
3634 * main.c (captured_main): Handle usage errors with error.
3636 2014-08-29 Gary Benson <gbenson@redhat.com>
3638 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3639 exit pair with a call to error. Wrap the message with _().
3641 2014-08-29 Gary Benson <gbenson@redhat.com>
3643 * main.c (captured_main): Replace a fprintf/exit
3644 pair with a call to error. Wrap the message with _().
3646 2014-08-29 Gary Benson <gbenson@redhat.com>
3648 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3649 pairs with calls to error. Wrap the message with _().
3651 2014-08-29 Gary Benson <gbenson@redhat.com>
3653 * utils.c (vwarning): Protect calls to target_terminal_ours
3656 2014-08-29 Gary Benson <gbenson@redhat.com>
3658 * exceptions.c (print_flush): Protect calls to
3659 target_terminal_ours and wrap_here.
3661 2014-08-29 Gary Benson <gbenson@redhat.com>
3663 * utils.h (filtered_printing_initialized): New declaration.
3664 * utils.c (abort_with_message): New function.
3665 (internal_vproblem): Use abort_with_message for first level
3666 recursive internal problems, and if gdb_stderr is not set up.
3667 Protect calls to target_terminal_ours, begin_line and query.
3669 2014-08-28 Doug Evans <dje@google.com>
3671 * symtab.c (in_prologue): Move definition to better spot.
3672 (skip_prologue_using_sal): Ditto.
3674 2014-08-28 Doug Evans <dje@google.com>
3676 * symtab.c (find_function_start_sal): Move definition to better spot.
3678 2014-08-28 Yao Qi <yao@codesourcery.com>
3680 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3681 found_stack_adjust in forward scan. Remove condition check
3682 on found_stack_adjust which is always true. Indent the code.
3684 2014-08-28 Yao Qi <yao@codesourcery.com>
3686 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3687 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3688 (dwarf_decode_lines): Remove argument
3689 want_line_info. Remove condition check on want_line_info.
3692 2014-08-27 Doug Evans <dje@google.com>
3694 * dwarf2read.c (dwarf_record_line): Fix typo.
3696 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3698 * target.h (struct target_ops::to_terminal_save_ours): Remove
3700 (target_terminal_save_ours): Remove macro.
3701 * target-delegates.c: Regenerate.
3702 * inf-child.c (inf_child_target): Don't set the nonexistent
3703 field to_terminal_save_ours.
3704 * inferior.h (child_terminal_save_ours): Remove declaration.
3705 * terminal.h (gdb_save_tty_state): New declaration.
3706 * inflow.c (child_terminal_save_ours): Rename to ...
3707 (gdb_save_tty_state): ... this.
3708 * tui/tui.c: Include terminal.h.
3709 (tui_enable): Use gdb_save_tty_state instead of
3710 target_terminal_save_ours.
3711 (tui_disable): Likewise.
3713 2014-08-25 Doug Evans <dje@google.com>
3715 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3716 Pass NULL instead of 0 for context pointer.
3718 2014-08-25 Yao Qi <yao@codesourcery.com>
3720 * dwarf2read.c: Fix grammatical error.
3722 2014-08-24 Yao Qi <yao@codesourcery.com>
3724 * dwarf2read.c (scan_partial_symbols): Update comments.
3725 Rename argument 'need_pc' with 'set_addrmap'.
3726 (add_partial_namespace): Rename argument 'need_pc' with
3728 (add_partial_module): Likewise.
3729 (add_partial_subprogram): Likewise. Update comments.
3730 (dwarf2_name): Fix typo.
3732 2014-08-22 Doug Evans <dje@google.com>
3735 * dwarf2read.c (dwarf_record_line_p): New function.
3736 (dwarf_decode_lines_1): Ignore subsequent line number entries
3737 for the same line if any entry had a non-zero discriminator.
3739 2014-08-22 Doug Evans <dje@google.com>
3741 * buildsym.h (record_line_ftype): New typedef.
3742 (record_line): Use it.
3743 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3744 (dwarf_decode_lines_1): Call them.
3746 2014-08-22 Yao Qi <yao@codesourcery.com>
3748 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3749 (ctf_end): Remove code.
3751 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3753 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3754 (linux_make_corefile_notes): call update_thread_list, protected against
3757 2014-08-21 Pedro Alves <palves@redhat.com>
3759 * infcmd.c (attach_command): Remove comment.
3761 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3763 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3764 unsigned LONGEST to ULONGEST.
3766 2014-08-20 Pedro Alves <palves@redhat.com>
3768 * Makefile.in (check-read1): New rule.
3770 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3772 * value.c (value_from_contents_and_address): Strip resolved_type's
3773 typedef layers before checking its TYPE_DATA_LOCATION.
3775 2014-08-20 Pedro Alves <palves@redhat.com>
3777 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3779 2014-08-20 Yao Qi <yao@codesourcery.com>
3781 * amd64-tdep.c (amd64_classify): Add a blank line after the
3782 example. Move "*/" to a new line.
3783 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3784 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3785 * dwarf2read.c (psymtab_include_file_name): Likewise.
3787 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3788 Pedro Alves <palves@redhat.com>
3792 * ada-lang.c (coerce_unspec_val_to_type): Use
3793 value_contents_copy_raw.
3794 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3795 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3796 * cp-valprint.c (cp_print_value_fields): Let the common printing
3797 code handle optimized out values.
3798 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3799 * d-valprint.c (dynamic_array_type): Use
3800 value_bits_any_optimized_out.
3801 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3802 check_any_valid fields.
3803 (check_pieced_value_bits): Delete and inline ...
3804 (check_pieced_synthetic_pointer): ... here.
3805 (check_pieced_value_validity): Delete.
3806 (check_pieced_value_invalid): Delete.
3807 (pieced_value_funcs): Remove check_validity and check_any_valid
3809 (read_pieced_value): Use mark_value_bits_optimized_out.
3810 (write_pieced_value): Switch to use
3811 mark_value_bytes_optimized_out.
3812 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3813 of assuming the whole value is optimized out.
3814 * findvar.c (read_frame_register_value): Remove special handling
3815 of optimized out registers.
3816 (value_from_register): Use mark_value_bytes_optimized_out.
3817 * frame-unwind.c (frame_unwind_got_optimized): Use
3818 mark_value_bytes_optimized_out.
3819 * jv-valprint.c (java_value_print): Adjust.
3820 (java_print_value_fields): Let the common printing code handle
3821 optimized out values.
3822 * mips-tdep.c (mips_print_register): Remove special handling of
3823 optimized out registers.
3824 * opencl-lang.c (lval_func_check_validity): Delete.
3825 (lval_func_check_any_valid): Delete.
3826 (opencl_value_funcs): Remove check_validity and check_any_valid
3828 * p-valprint.c (pascal_object_print_value_fields): Let the common
3829 printing code handle optimized out values.
3830 * stack.c (read_frame_arg): Remove special handling of optimized
3831 out values. Fetch both VAL and ENTRYVAL before comparing
3832 contents. Adjust to value_available_contents_eq rename.
3833 * valprint.c (valprint_check_validity)
3834 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3835 (val_print_array_elements): Adjust.
3836 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3837 (value_bits_any_optimized_out): New function.
3838 (value_entirely_covered_by_range_vector): New function, factored
3839 out from value_entirely_unavailable.
3840 (value_entirely_unavailable): Reimplement.
3841 (value_entirely_optimized_out): New function.
3842 (insert_into_bit_range_vector): New function, factored out from
3843 mark_value_bits_unavailable.
3844 (mark_value_bits_unavailable): Reimplement.
3845 (struct ranges_and_idx): New struct.
3846 (find_first_range_overlap_and_match): New function, factored out
3847 from value_available_contents_bits_eq.
3848 (value_available_contents_bits_eq): Rename to ...
3849 (value_contents_bits_eq): ... this. Check both unavailable
3850 contents and optimized out contents.
3851 (value_available_contents_eq): Rename to ...
3852 (value_contents_eq): ... this.
3853 (allocate_value_lazy): Remove reference to the old optimized_out
3855 (allocate_optimized_out_value): Use
3856 mark_value_bytes_optimized_out.
3857 (require_not_optimized_out): Adjust to check whether the
3858 optimized_out vec is empty.
3859 (ranges_copy_adjusted): New function, factored out from
3860 value_contents_copy_raw.
3861 (value_contents_copy_raw): Also copy the optimized out ranges.
3862 Assert the destination ranges aren't optimized out.
3863 (value_contents_copy): Update comment, remove call to
3864 require_not_optimized_out.
3865 (value_contents_equal): Adjust to check whether the optimized_out
3867 (set_value_optimized_out, value_optimized_out_const): Delete.
3868 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3870 (value_entirely_optimized_out, value_bits_valid): Delete.
3871 (value_copy): Take a VEC copy of the 'optimized_out' field.
3872 (value_primitive_field): Remove special handling of optimized out.
3873 (value_fetch_lazy): Assert that lazy values have no unavailable
3874 regions. Use value_bits_any_optimized_out. Remove some special
3875 handling for optimized out values.
3876 * value.h: Add intro comment about <optimized out> and
3878 (struct lval_funcs): Remove check_validity and check_any_valid
3880 (set_value_optimized_out, value_optimized_out_const): Remove.
3881 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3883 (value_bits_any_optimized_out): New declaration.
3884 (value_bits_valid): Delete declaration.
3885 (value_available_contents_eq): Rename to ...
3886 (value_contents_eq): ... this, and extend comments.
3888 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3890 Fix -fsanitize=address on unreadable inferior strings.
3891 * valprint.c (val_print_string): Fix access before BUFFER.
3893 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3895 * target.c (target_struct_size): Remove.
3896 (target_struct_allocsize): Remove.
3897 (DEFAULT_ALLOCSIZE): Remove.
3898 (target_ops_p): New typedef.
3899 (DEF_VEC_P (target_ops_p)): New vector type.
3900 (target_structs): Change type to VEC (target_ops_p).
3901 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3902 (find_default_run_target): Rewrite for loop following changes to
3905 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3907 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3908 Adjust code accordingly. Adjust function description comment.
3910 2014-08-19 Yao Qi <yao@codesourcery.com>
3912 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3915 2014-08-19 Alan Modra <amodra@gmail.com>
3917 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3918 * config.in: Regenerate.
3919 * configure: Regenerate.
3921 2014-08-19 Tom Tromey <tromey@redhat.com>
3922 Gary Benson <gbenson@redhat.com>
3924 * common/common-debug.h: New file.
3925 * common/common-debug.c: Likewise.
3926 * debug.c: Likewise.
3927 * Makefile.in (SFILES): Add common/common-debug.c.
3928 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3929 (COMMON_OBS): Add common-debug.o and debug.o.
3930 (common-debug.o): New rule.
3931 * common/common-defs.h: Include common-debug.h.
3932 * common/agent.c (debug_agent_printf): New function.
3933 (DEBUG_AGENT): Redefine.
3934 * nat/i386-dregs.c (debug_printf): Undefine.
3936 2014-08-19 Gary Benson <gbenson@redhat.com>
3938 * common/common-defs.h: Include print-utils.h.
3939 * utils.h: Do not include print-utils.h.
3941 2014-08-19 Tom Tromey <tromey@redhat.com>
3942 Gary Benson <gbenson@redhat.com>
3944 * common/common-types.h: New file.
3945 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3946 * common/common-defs.h: Include common-types.h.
3947 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3950 2014-08-19 Tom Tromey <tromey@redhat.com>
3951 Gary Benson <gbenson@redhat.com>
3953 * common/errors.h: New file.
3954 * common/errors.c: Likewise.
3955 * Makefile.in (SFILES): Add common/errors.c.
3956 (HFILES_NO_SRCDIR): Add common/errors.h.
3957 (COMMON_OBS): Add errors.o.
3958 (errors.o): New rule.
3959 * common/common-defs.h: Include errors.h.
3960 * utils.h (perror_with_name, error, verror, warning, vwarning):
3962 * common/common-utils.h: (malloc_failure, internal_error):
3965 2014-08-19 Gary Benson <gbenson@redhat.com>
3967 * utils.c (internal_vproblem): Always print the message.
3969 2014-08-18 Doug Evans <dje@google.com>
3971 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3973 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3975 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3976 Return 0 if TYPE is dynamic.
3977 (print_range): Add handling of dynamic ranges.
3979 2014-08-18 Keven Boell <keven.boell@intel.com>
3980 Joel Brobecker <brobecker@adacore.com>
3982 * gdbtypes.h (struct main_type): Add field "data_location".
3983 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3984 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3985 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3986 a dynamic data location.
3987 (resolve_dynamic_type): Add DW_AT_data_location handling.
3988 (copy_recursive, copy_type): Copy the data_location information
3990 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3991 * value.c (value_from_contents_and_address): Add
3992 DW_AT_data_location handling.
3994 2014-08-18 Keven Boell <keven.boell@intel.com>
3995 Joel Brobecker <brobecker@adacore.com>
3997 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3998 field "get_object_address".
3999 * dwarf2expr.c (execute_stack_op): Add handling for
4000 DW_OP_push_object_address.
4001 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4002 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4003 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4004 (dwarf_expr_get_obj_addr): New function.
4005 (dwarf_expr_ctx_funcs): Add get_object_address field.
4006 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4007 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4008 (dwarf2_evaluate_property): Add parameter "address". Use it.
4009 (needs_get_obj_addr): New function.
4010 (needs_frame_ctx_funcs): Add get_object_address field.
4011 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4012 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4013 (resolve_dynamic_array): Likewise.
4015 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4017 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4018 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4019 fixed value for records and unions for which some GNAT encodings
4022 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4024 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4025 rewrite to avoid "else if" and "else" constructs. Should be
4026 a no-op in practice.
4028 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4030 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4033 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4036 * eval.c: Update all calls to find_overload_match.
4037 * valarith.c: Likewise.
4038 (value_user_defined_cpp_op, value_user_defined_op): New
4039 argument NOSIDE. Update all callers.
4040 * valops.c (find_overload_match): New argument NOSIDE.
4041 * value.h (find_overload_match): Update signature.
4043 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4045 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4046 'items' methods instead of 'iteritems' method on dictionaries.
4048 2014-08-15 Doug Evans <dje@google.com>
4050 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4053 2014-08-15 Doug Evans <dje@google.com>
4055 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4057 2014-08-15 Doug Evans <dje@google.com>
4059 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4061 2014-08-15 Doug Evans <dje@google.com>
4063 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4066 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4068 * dcache.h: Include target.h, to avoid compile time warnings.
4070 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4072 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4073 frame_info" partial declaration.
4074 * gdbarch.h: Regenerate.
4076 2014-08-15 Yao Qi <yao@codesourcery.com>
4078 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4079 Add parameter 'decode_for_pst_p'. Callers update.
4081 2014-08-13 Yao Qi <yao@codesourcery.com>
4084 * configure.ac: Use local variable 'pos'.
4085 * configure: Regenerated.
4087 2014-08-11 Doug Evans <dje@google.com>
4089 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4090 message, it is redundant with "Reading symbols from ..." message.
4092 2014-08-10 Doug Evans <xdje42@gmail.com>
4094 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4096 2014-08-09 Yao Qi <yao@codesourcery.com>
4099 * remote.c (remote_xfer_partial): Remove dead code.
4101 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103 * ia64-linux-tdep.c: Include "regset.h".
4104 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4105 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4106 (ia64_linux_supply_fpregset): New function.
4107 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4108 (ia64_linux_regset_from_core_section): New function.
4109 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4112 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4114 * m68klinux-tdep.c: Include "regset.h".
4115 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4116 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4117 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4118 (m68k_linux_regset_from_core_section): New function.
4119 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4122 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4124 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4125 function. Move logic to...
4126 (tilegx_linux_regmap): ... this new register map.
4127 (tilegx_linux_regset): Refer to register map, replace supply
4128 method by regcache_supply_regset, and add collect method.
4129 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4130 TILEGX_FIRST_EASY_REGNUM.
4132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4134 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4135 that calls regcache_supply_regset and handles the EPC register
4136 separately. Move main logic to...
4137 (score7_linux_gregmap): ... this new register map.
4138 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4139 (score7_linux_gregset): Refer to register map. Add collect method.
4140 (score7_linux_regset_from_core_section): Replace
4141 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4142 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4143 (struct regset): Delete unused forward declaraction.
4144 (struct pt_regs): Delete structure definition.
4145 (elf_gregset_t): Delete typedef.
4147 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4149 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4150 (nios2_core_regset): Add collect method.
4152 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4154 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4155 platform-independent and don't write to read-only input buffer.
4156 (m32r_linux_collect_gregset): New function.
4157 (m32r_linux_gregset): Add collect method.
4159 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4161 * hppa-linux-tdep.c (greg_map): Rename to...
4162 (hppa_linux_gregmap): ... this. Also convert to
4163 regcache_map_entry format.
4164 (hppa_linux_supply_regset): Delete function.
4165 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4166 (hppa_linux_fpregmap): ... this new register map.
4167 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4168 register map, replace supply method by regcache_supply_regset, and
4169 add collect method regcache_collect_regset.
4171 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4173 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4174 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4175 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4176 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4177 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4178 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4179 (frv_linux_supply_gregset): Replace main logic by call to
4180 regcache_supply_regset, but keep clearing gr32-gr63.
4181 (frv_linux_supply_fpregset): Delete function.
4182 (frv_linux_gregset): Refer to appropriate register map and add
4183 regcache_collect_regset as the collect method.
4184 (frv_linux_fpregset): Likewise. Also exchange the supply method
4185 by regcache_supply_regset.
4187 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4189 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4190 by call to alpha_supply_int_regs.
4191 (alpha_linux_collect_gregset): New function.
4192 (alpha_linux_supply_fpregset): Replace logic by call to
4193 alpha_supply_fp_regs.
4194 (alpha_linux_collect_fpregset): New function.
4195 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4197 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4199 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4200 by call to regcache_collect_regset.
4201 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4202 instead of aarch64_linux_supply_gregset/_fpregset.
4203 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4204 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4205 header file instead.
4206 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4207 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4208 functions. Move logic to ...
4209 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4211 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4212 refer to new register maps, replace *_regset_from_core by
4213 regcache_supply_regset, and also use regcache_collect_regset.
4214 * aarch64-linux-tdep.h: Include "regset.h".
4215 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4217 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4218 macros, moved from C source file.
4219 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4220 variable declarations.
4222 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4224 * s390-linux-nat.c: Include "regset.h".
4225 (regmap_gregset): Delete macro.
4226 (s390_64_regmap_gregset): New register map for
4227 regcache_supply/_collect_regset.
4228 (s390_64_gregset): New regset.
4229 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4230 (regmap_fpregset): Delete macro.
4231 (s390_native_supply, s390_native_collect): Delete functions.
4232 (supply_gregset, fill_gregset): Replace s390-specific regmap
4233 handling by a call to regcache_supply/_collect_regset.
4234 (supply_fpregset, fill_fpregset): Call regcache_supply/
4235 _collect_regset instead of s390_native_supply/_collect.
4236 (fetch_regset, store_regset): Likewise. Also change the last
4237 parameter to a regset instead of a regmap.
4238 (s390_linux_fetch_inferior_registers)
4239 (390_linux_store_inferior_registers): Adjust last parameter in
4240 calls to fetch_regset and store_regset.
4241 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4242 (s390_gregmap): ... this. Also make static const and convert to
4243 regcache_map_entry format.
4244 (s390x_regmap_gregset): Delete.
4245 (s390_regmap_fpregset): Rename to...
4246 (s390_fpregmap): ... this. Make static const and convert to
4247 regcache_map_entry format.
4248 (s390_regmap_upper, s390_regmap_last_break)
4249 (s390x_regmap_last_break, s390_regmap_system_call)
4250 (s390_regmap_tdb): Likewise.
4251 (s390_supply_regset, s390_collect_regset): Remove functions.
4252 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4254 (s390_gregset, s390_fpregset, s390_upper_regset)
4255 (s390_last_break_regset, s390x_last_break_regset)
4256 (s390_system_call_regset, s390_tdb_regset): Make global and
4257 replace s390_supply/_collect_regset by regcache_supply/
4259 (s390x_gregset): Delete.
4260 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4261 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4262 (s390_regmap_fpregset, s390_regmap_last_break)
4263 (s390x_regmap_last_break, s390_regmap_system_call)
4264 (s390_regmap_tdb): Delete global variable declarations.
4265 (s390_gregset, s390_fpregset, s390_last_break_regset)
4266 (s390x_last_break_regset, s390_system_call_regset)
4267 (s390_tdb_regset): New global variable declarations.
4269 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4271 * regcache.c: Include "regset.h".
4272 (regcache_transfer_regset): New local function.
4273 (regcache_supply_regset, regcache_collect_regset): New functions.
4274 * regcache.h (struct regcache_map_entry): New structure.
4275 (REGCACHE_MAP_SKIP): New enum value.
4276 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4278 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4280 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4281 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4282 (ppc_linux_collect_gregset ): Likewise.
4283 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4284 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4285 (ppc_collect_vrregset): Likewise.
4286 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4289 2014-08-07 Yao Qi <yao@codesourcery.com>
4291 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4292 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4293 * remote.c (remote_read_bytes): Likewise.
4295 2014-08-07 Yao Qi <yao@codesourcery.com>
4297 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4299 2014-08-07 Yao Qi <yao@codesourcery.com>
4302 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4303 TARGET_XFER_OK instead of 0.
4305 2014-08-07 Gary Benson <gbenson@redhat.com>
4307 * common/common-defs.h: Include errno.h.
4308 * defs.h: Do not include errno.h.
4309 * ada-typeprint.c: Likewise.
4310 * c-typeprint.c: Likewise.
4311 * core-regset.c: Likewise.
4312 * corefile.c: Likewise.
4313 * corelow.c: Likewise.
4314 * event-loop.c: Likewise.
4315 * f-typeprint.c: Likewise.
4316 * gnu-nat.c: Likewise.
4317 * go32-nat.c: Likewise.
4318 * i386gnu-nat.c: Likewise.
4319 * m2-typeprint.c: Likewise.
4320 * nat/linux-btrace.c: Likewise.
4321 * p-typeprint.c: Likewise.
4322 * procfs.c: Likewise.
4323 * remote-sim.c: Likewise.
4324 * rs6000-nat.c: Likewise.
4325 * target.c: Likewise.
4326 * typeprint.c: Likewise.
4327 * ui-file.c: Likewise.
4328 * valops.c: Likewise.
4329 * valprint.c: Likewise.
4331 2014-08-07 Gary Benson <gbenson@redhat.com>
4333 * common/common-defs.h: Include string.h.
4334 * aarch64-tdep.c: Do not include string.h.
4335 * ada-exp.y: Likewise.
4336 * ada-lang.c: Likewise.
4337 * ada-lex.l: Likewise.
4338 * ada-typeprint.c: Likewise.
4339 * ada-valprint.c: Likewise.
4340 * aix-thread.c: Likewise.
4341 * alpha-linux-tdep.c: Likewise.
4342 * alpha-mdebug-tdep.c: Likewise.
4343 * alpha-nat.c: Likewise.
4344 * alpha-osf1-tdep.c: Likewise.
4345 * alpha-tdep.c: Likewise.
4346 * alphanbsd-tdep.c: Likewise.
4347 * amd64-dicos-tdep.c: Likewise.
4348 * amd64-linux-tdep.c: Likewise.
4349 * amd64-nat.c: Likewise.
4350 * amd64-sol2-tdep.c: Likewise.
4351 * amd64fbsd-tdep.c: Likewise.
4352 * amd64obsd-tdep.c: Likewise.
4353 * arch-utils.c: Likewise.
4354 * arm-linux-nat.c: Likewise.
4355 * arm-linux-tdep.c: Likewise.
4356 * arm-tdep.c: Likewise.
4357 * arm-wince-tdep.c: Likewise.
4358 * armbsd-tdep.c: Likewise.
4359 * armnbsd-nat.c: Likewise.
4360 * armnbsd-tdep.c: Likewise.
4361 * armobsd-tdep.c: Likewise.
4362 * avr-tdep.c: Likewise.
4363 * ax-gdb.c: Likewise.
4364 * ax-general.c: Likewise.
4365 * bcache.c: Likewise.
4366 * bfin-tdep.c: Likewise.
4367 * breakpoint.c: Likewise.
4368 * build-id.c: Likewise.
4369 * buildsym.c: Likewise.
4370 * c-exp.y: Likewise.
4371 * c-lang.c: Likewise.
4372 * c-typeprint.c: Likewise.
4373 * c-valprint.c: Likewise.
4374 * charset.c: Likewise.
4375 * cli-out.c: Likewise.
4376 * cli/cli-cmds.c: Likewise.
4377 * cli/cli-decode.c: Likewise.
4378 * cli/cli-dump.c: Likewise.
4379 * cli/cli-interp.c: Likewise.
4380 * cli/cli-logging.c: Likewise.
4381 * cli/cli-script.c: Likewise.
4382 * cli/cli-setshow.c: Likewise.
4383 * cli/cli-utils.c: Likewise.
4384 * coffread.c: Likewise.
4385 * common/agent.c: Likewise.
4386 * common/buffer.c: Likewise.
4387 * common/buffer.h: Likewise.
4388 * common/common-utils.c: Likewise.
4389 * common/filestuff.c: Likewise.
4390 * common/filestuff.c: Likewise.
4391 * common/format.c: Likewise.
4392 * common/print-utils.c: Likewise.
4393 * common/rsp-low.c: Likewise.
4394 * common/signals.c: Likewise.
4395 * common/vec.h: Likewise.
4396 * common/xml-utils.c: Likewise.
4397 * core-regset.c: Likewise.
4398 * corefile.c: Likewise.
4399 * corelow.c: Likewise.
4400 * cp-abi.c: Likewise.
4401 * cp-name-parser.y: Likewise.
4402 * cp-support.c: Likewise.
4403 * cp-valprint.c: Likewise.
4404 * cris-tdep.c: Likewise.
4405 * d-exp.y: Likewise.
4406 * darwin-nat.c: Likewise.
4407 * dbxread.c: Likewise.
4408 * dcache.c: Likewise.
4409 * demangle.c: Likewise.
4410 * dicos-tdep.c: Likewise.
4411 * disasm.c: Likewise.
4412 * doublest.c: Likewise.
4413 * dsrec.c: Likewise.
4414 * dummy-frame.c: Likewise.
4415 * dwarf2-frame.c: Likewise.
4416 * dwarf2loc.c: Likewise.
4417 * dwarf2read.c: Likewise.
4418 * elfread.c: Likewise.
4419 * environ.c: Likewise.
4421 * event-loop.c: Likewise.
4422 * exceptions.c: Likewise.
4424 * expprint.c: Likewise.
4425 * f-exp.y: Likewise.
4426 * f-lang.c: Likewise.
4427 * f-typeprint.c: Likewise.
4428 * f-valprint.c: Likewise.
4429 * fbsd-nat.c: Likewise.
4430 * findcmd.c: Likewise.
4431 * findvar.c: Likewise.
4432 * fork-child.c: Likewise.
4433 * frame.c: Likewise.
4434 * frv-linux-tdep.c: Likewise.
4435 * frv-tdep.c: Likewise.
4437 * gdb_bfd.c: Likewise.
4438 * gdbarch.c: Likewise.
4439 * gdbarch.sh: Likewise.
4440 * gdbtypes.c: Likewise.
4441 * gnu-nat.c: Likewise.
4442 * gnu-v2-abi.c: Likewise.
4443 * gnu-v3-abi.c: Likewise.
4444 * go-exp.y: Likewise.
4445 * go-lang.c: Likewise.
4446 * go32-nat.c: Likewise.
4447 * guile/guile.c: Likewise.
4448 * guile/scm-auto-load.c: Likewise.
4449 * hppa-hpux-tdep.c: Likewise.
4450 * hppa-linux-nat.c: Likewise.
4451 * hppanbsd-tdep.c: Likewise.
4452 * hppaobsd-tdep.c: Likewise.
4453 * i386-cygwin-tdep.c: Likewise.
4454 * i386-dicos-tdep.c: Likewise.
4455 * i386-linux-tdep.c: Likewise.
4456 * i386-nto-tdep.c: Likewise.
4457 * i386-sol2-tdep.c: Likewise.
4458 * i386-tdep.c: Likewise.
4459 * i386bsd-tdep.c: Likewise.
4460 * i386gnu-nat.c: Likewise.
4461 * i386nbsd-tdep.c: Likewise.
4462 * i386obsd-tdep.c: Likewise.
4463 * i387-tdep.c: Likewise.
4464 * ia64-libunwind-tdep.c: Likewise.
4465 * ia64-linux-nat.c: Likewise.
4466 * inf-child.c: Likewise.
4467 * inf-ptrace.c: Likewise.
4468 * inf-ttrace.c: Likewise.
4469 * infcall.c: Likewise.
4470 * infcmd.c: Likewise.
4471 * inflow.c: Likewise.
4472 * infrun.c: Likewise.
4473 * interps.c: Likewise.
4474 * iq2000-tdep.c: Likewise.
4475 * irix5-nat.c: Likewise.
4476 * jv-exp.y: Likewise.
4477 * jv-lang.c: Likewise.
4478 * jv-typeprint.c: Likewise.
4479 * jv-valprint.c: Likewise.
4480 * language.c: Likewise.
4481 * linux-fork.c: Likewise.
4482 * linux-nat.c: Likewise.
4483 * lm32-tdep.c: Likewise.
4484 * m2-exp.y: Likewise.
4485 * m2-typeprint.c: Likewise.
4486 * m32c-tdep.c: Likewise.
4487 * m32r-linux-nat.c: Likewise.
4488 * m32r-linux-tdep.c: Likewise.
4489 * m32r-rom.c: Likewise.
4490 * m32r-tdep.c: Likewise.
4491 * m68hc11-tdep.c: Likewise.
4492 * m68k-tdep.c: Likewise.
4493 * m68kbsd-tdep.c: Likewise.
4494 * m68klinux-nat.c: Likewise.
4495 * m68klinux-tdep.c: Likewise.
4496 * m88k-tdep.c: Likewise.
4497 * machoread.c: Likewise.
4498 * macrocmd.c: Likewise.
4500 * mdebugread.c: Likewise.
4501 * mem-break.c: Likewise.
4502 * memattr.c: Likewise.
4503 * memory-map.c: Likewise.
4504 * mep-tdep.c: Likewise.
4505 * mi/mi-cmd-break.c: Likewise.
4506 * mi/mi-cmd-disas.c: Likewise.
4507 * mi/mi-cmd-env.c: Likewise.
4508 * mi/mi-cmd-stack.c: Likewise.
4509 * mi/mi-cmd-var.c: Likewise.
4510 * mi/mi-cmds.c: Likewise.
4511 * mi/mi-console.c: Likewise.
4512 * mi/mi-getopt.c: Likewise.
4513 * mi/mi-interp.c: Likewise.
4514 * mi/mi-main.c: Likewise.
4515 * mi/mi-parse.c: Likewise.
4516 * microblaze-rom.c: Likewise.
4517 * microblaze-tdep.c: Likewise.
4518 * mingw-hdep.c: Likewise.
4519 * minidebug.c: Likewise.
4520 * minsyms.c: Likewise.
4521 * mips-irix-tdep.c: Likewise.
4522 * mips-linux-tdep.c: Likewise.
4523 * mips-tdep.c: Likewise.
4524 * mips64obsd-tdep.c: Likewise.
4525 * mipsnbsd-tdep.c: Likewise.
4526 * mipsread.c: Likewise.
4527 * mn10300-linux-tdep.c: Likewise.
4528 * mn10300-tdep.c: Likewise.
4529 * monitor.c: Likewise.
4530 * moxie-tdep.c: Likewise.
4531 * mt-tdep.c: Likewise.
4532 * nat/linux-btrace.c: Likewise.
4533 * nat/linux-osdata.c: Likewise.
4534 * nat/linux-procfs.c: Likewise.
4535 * nat/linux-ptrace.c: Likewise.
4536 * nat/linux-waitpid.c: Likewise.
4537 * nbsd-tdep.c: Likewise.
4538 * nios2-linux-tdep.c: Likewise.
4539 * nto-procfs.c: Likewise.
4540 * nto-tdep.c: Likewise.
4541 * objc-lang.c: Likewise.
4542 * objfiles.c: Likewise.
4543 * opencl-lang.c: Likewise.
4544 * osabi.c: Likewise.
4545 * osdata.c: Likewise.
4546 * p-exp.y: Likewise.
4547 * p-lang.c: Likewise.
4548 * p-typeprint.c: Likewise.
4549 * parse.c: Likewise.
4550 * posix-hdep.c: Likewise.
4551 * ppc-linux-nat.c: Likewise.
4552 * ppc-sysv-tdep.c: Likewise.
4553 * ppcfbsd-tdep.c: Likewise.
4554 * ppcnbsd-tdep.c: Likewise.
4555 * ppcobsd-tdep.c: Likewise.
4556 * printcmd.c: Likewise.
4557 * procfs.c: Likewise.
4558 * prologue-value.c: Likewise.
4559 * python/py-auto-load.c: Likewise.
4560 * python/py-gdb-readline.c: Likewise.
4561 * ravenscar-thread.c: Likewise.
4562 * regcache.c: Likewise.
4563 * registry.c: Likewise.
4564 * remote-fileio.c: Likewise.
4565 * remote-m32r-sdi.c: Likewise.
4566 * remote-mips.c: Likewise.
4567 * remote-notif.c: Likewise.
4568 * remote-sim.c: Likewise.
4569 * remote.c: Likewise.
4570 * reverse.c: Likewise.
4571 * rs6000-aix-tdep.c: Likewise.
4572 * ser-base.c: Likewise.
4573 * ser-go32.c: Likewise.
4574 * ser-mingw.c: Likewise.
4575 * ser-pipe.c: Likewise.
4576 * ser-tcp.c: Likewise.
4577 * ser-unix.c: Likewise.
4578 * serial.c: Likewise.
4579 * sh-tdep.c: Likewise.
4580 * sh64-tdep.c: Likewise.
4581 * shnbsd-tdep.c: Likewise.
4583 * sol-thread.c: Likewise.
4584 * solib-dsbt.c: Likewise.
4585 * solib-frv.c: Likewise.
4586 * solib-osf.c: Likewise.
4587 * solib-som.c: Likewise.
4588 * solib-spu.c: Likewise.
4589 * solib-target.c: Likewise.
4590 * solib.c: Likewise.
4591 * somread.c: Likewise.
4592 * source.c: Likewise.
4593 * sparc-nat.c: Likewise.
4594 * sparc-sol2-tdep.c: Likewise.
4595 * sparc-tdep.c: Likewise.
4596 * sparc64-tdep.c: Likewise.
4597 * sparc64fbsd-tdep.c: Likewise.
4598 * sparc64nbsd-tdep.c: Likewise.
4599 * sparcnbsd-tdep.c: Likewise.
4600 * spu-linux-nat.c: Likewise.
4601 * spu-multiarch.c: Likewise.
4602 * spu-tdep.c: Likewise.
4603 * stabsread.c: Likewise.
4604 * stack.c: Likewise.
4605 * std-regs.c: Likewise.
4606 * symfile.c: Likewise.
4607 * symmisc.c: Likewise.
4608 * symtab.c: Likewise.
4609 * target.c: Likewise.
4610 * thread.c: Likewise.
4611 * tilegx-linux-nat.c: Likewise.
4612 * tilegx-tdep.c: Likewise.
4614 * tracepoint.c: Likewise.
4615 * tui/tui-command.c: Likewise.
4616 * tui/tui-data.c: Likewise.
4617 * tui/tui-disasm.c: Likewise.
4618 * tui/tui-file.c: Likewise.
4619 * tui/tui-layout.c: Likewise.
4620 * tui/tui-out.c: Likewise.
4621 * tui/tui-regs.c: Likewise.
4622 * tui/tui-source.c: Likewise.
4623 * tui/tui-stack.c: Likewise.
4624 * tui/tui-win.c: Likewise.
4625 * tui/tui-windata.c: Likewise.
4626 * tui/tui-winsource.c: Likewise.
4627 * typeprint.c: Likewise.
4628 * ui-file.c: Likewise.
4629 * ui-out.c: Likewise.
4630 * user-regs.c: Likewise.
4631 * utils.c: Likewise.
4632 * v850-tdep.c: Likewise.
4633 * valarith.c: Likewise.
4634 * valops.c: Likewise.
4635 * valprint.c: Likewise.
4636 * value.c: Likewise.
4637 * varobj.c: Likewise.
4638 * vax-tdep.c: Likewise.
4639 * vaxnbsd-tdep.c: Likewise.
4640 * vaxobsd-tdep.c: Likewise.
4641 * windows-nat.c: Likewise.
4642 * xcoffread.c: Likewise.
4643 * xml-support.c: Likewise.
4644 * xstormy16-tdep.c: Likewise.
4645 * xtensa-linux-nat.c: Likewise.
4647 2014-08-07 Gary Benson <gbenson@redhat.com>
4649 * common/common-defs.h: Include gdb_assert.h.
4650 * aarch64-tdep.c: Do not include gdb_assert.h.
4651 * addrmap.c: Likewise.
4652 * aix-thread.c: Likewise.
4653 * alpha-linux-tdep.c: Likewise.
4654 * alpha-mdebug-tdep.c: Likewise.
4655 * alphanbsd-tdep.c: Likewise.
4656 * amd64-nat.c: Likewise.
4657 * amd64-tdep.c: Likewise.
4658 * amd64bsd-nat.c: Likewise.
4659 * amd64fbsd-nat.c: Likewise.
4660 * amd64fbsd-tdep.c: Likewise.
4661 * amd64nbsd-nat.c: Likewise.
4662 * amd64nbsd-tdep.c: Likewise.
4663 * amd64obsd-nat.c: Likewise.
4664 * amd64obsd-tdep.c: Likewise.
4665 * arch-utils.c: Likewise.
4666 * arm-tdep.c: Likewise.
4667 * armbsd-tdep.c: Likewise.
4669 * bcache.c: Likewise.
4670 * bfin-tdep.c: Likewise.
4671 * blockframe.c: Likewise.
4672 * breakpoint.c: Likewise.
4673 * bsd-kvm.c: Likewise.
4674 * bsd-uthread.c: Likewise.
4675 * buildsym.c: Likewise.
4676 * c-exp.y: Likewise.
4677 * c-lang.c: Likewise.
4678 * charset.c: Likewise.
4679 * cleanups.c: Likewise.
4680 * cli-out.c: Likewise.
4681 * cli/cli-decode.c: Likewise.
4682 * cli/cli-dump.c: Likewise.
4683 * cli/cli-logging.c: Likewise.
4684 * cli/cli-script.c: Likewise.
4685 * cli/cli-utils.c: Likewise.
4686 * coffread.c: Likewise.
4687 * common/common-utils.c: Likewise.
4688 * common/queue.h: Likewise.
4689 * common/signals.c: Likewise.
4690 * common/vec.h: Likewise.
4691 * complaints.c: Likewise.
4692 * completer.c: Likewise.
4693 * corelow.c: Likewise.
4694 * cp-abi.c: Likewise.
4695 * cp-name-parser.y: Likewise.
4696 * cp-namespace.c: Likewise.
4697 * cp-support.c: Likewise.
4698 * cris-tdep.c: Likewise.
4699 * dbxread.c: Likewise.
4700 * dictionary.c: Likewise.
4701 * doublest.c: Likewise.
4702 * dsrec.c: Likewise.
4703 * dummy-frame.c: Likewise.
4704 * dwarf2-frame-tailcall.c: Likewise.
4705 * dwarf2-frame.c: Likewise.
4706 * dwarf2expr.c: Likewise.
4707 * dwarf2loc.c: Likewise.
4708 * dwarf2read.c: Likewise.
4710 * event-loop.c: Likewise.
4711 * exceptions.c: Likewise.
4712 * expprint.c: Likewise.
4713 * f-valprint.c: Likewise.
4714 * fbsd-nat.c: Likewise.
4715 * findvar.c: Likewise.
4716 * frame-unwind.c: Likewise.
4717 * frame.c: Likewise.
4718 * frv-tdep.c: Likewise.
4719 * gcore.c: Likewise.
4720 * gdb-dlfcn.c: Likewise.
4721 * gdb_bfd.c: Likewise.
4722 * gdbarch.c: Likewise.
4723 * gdbarch.sh: Likewise.
4724 * gdbtypes.c: Likewise.
4725 * gnu-nat.c: Likewise.
4726 * gnu-v3-abi.c: Likewise.
4727 * go-lang.c: Likewise.
4728 * guile/scm-exception.c: Likewise.
4729 * guile/scm-gsmob.c: Likewise.
4730 * guile/scm-lazy-string.c: Likewise.
4731 * guile/scm-math.c: Likewise.
4732 * guile/scm-pretty-print.c: Likewise.
4733 * guile/scm-safe-call.c: Likewise.
4734 * guile/scm-utils.c: Likewise.
4735 * guile/scm-value.c: Likewise.
4736 * h8300-tdep.c: Likewise.
4737 * hppa-hpux-nat.c: Likewise.
4738 * hppa-tdep.c: Likewise.
4739 * hppanbsd-tdep.c: Likewise.
4740 * hppaobsd-tdep.c: Likewise.
4741 * i386-darwin-nat.c: Likewise.
4742 * i386-darwin-tdep.c: Likewise.
4743 * i386-nto-tdep.c: Likewise.
4744 * i386-tdep.c: Likewise.
4745 * i386bsd-nat.c: Likewise.
4746 * i386fbsd-tdep.c: Likewise.
4747 * i386gnu-nat.c: Likewise.
4748 * i386nbsd-tdep.c: Likewise.
4749 * i386obsd-tdep.c: Likewise.
4750 * i387-tdep.c: Likewise.
4751 * ia64-libunwind-tdep.c: Likewise.
4752 * ia64-tdep.c: Likewise.
4753 * inf-ptrace.c: Likewise.
4754 * inf-ttrace.c: Likewise.
4755 * infcall.c: Likewise.
4756 * infcmd.c: Likewise.
4757 * infrun.c: Likewise.
4758 * inline-frame.c: Likewise.
4759 * interps.c: Likewise.
4760 * jv-lang.c: Likewise.
4761 * jv-typeprint.c: Likewise.
4762 * linux-fork.c: Likewise.
4763 * linux-nat.c: Likewise.
4764 * linux-thread-db.c: Likewise.
4765 * m32c-tdep.c: Likewise.
4766 * m32r-linux-nat.c: Likewise.
4767 * m32r-tdep.c: Likewise.
4768 * m68k-tdep.c: Likewise.
4769 * m68kbsd-nat.c: Likewise.
4770 * m68kbsd-tdep.c: Likewise.
4771 * m88k-tdep.c: Likewise.
4772 * machoread.c: Likewise.
4773 * macroexp.c: Likewise.
4774 * macrotab.c: Likewise.
4775 * maint.c: Likewise.
4776 * mdebugread.c: Likewise.
4777 * memory-map.c: Likewise.
4778 * mep-tdep.c: Likewise.
4779 * mi/mi-common.c: Likewise.
4780 * microblaze-tdep.c: Likewise.
4781 * mingw-hdep.c: Likewise.
4782 * mips-linux-nat.c: Likewise.
4783 * mips-linux-tdep.c: Likewise.
4784 * mips-tdep.c: Likewise.
4785 * mips64obsd-tdep.c: Likewise.
4786 * mipsnbsd-tdep.c: Likewise.
4787 * mn10300-linux-tdep.c: Likewise.
4788 * mn10300-tdep.c: Likewise.
4789 * moxie-tdep.c: Likewise.
4790 * mt-tdep.c: Likewise.
4791 * nat/linux-btrace.c: Likewise.
4792 * nat/linux-osdata.c: Likewise.
4793 * nat/linux-ptrace.c: Likewise.
4794 * nat/mips-linux-watch.c: Likewise.
4795 * nios2-linux-tdep.c: Likewise.
4796 * nios2-tdep.c: Likewise.
4797 * objc-lang.c: Likewise.
4798 * objfiles.c: Likewise.
4799 * obsd-nat.c: Likewise.
4800 * opencl-lang.c: Likewise.
4801 * osabi.c: Likewise.
4802 * parse.c: Likewise.
4803 * ppc-linux-nat.c: Likewise.
4804 * ppc-sysv-tdep.c: Likewise.
4805 * ppcfbsd-nat.c: Likewise.
4806 * ppcfbsd-tdep.c: Likewise.
4807 * ppcnbsd-nat.c: Likewise.
4808 * ppcnbsd-tdep.c: Likewise.
4809 * ppcobsd-nat.c: Likewise.
4810 * ppcobsd-tdep.c: Likewise.
4811 * printcmd.c: Likewise.
4812 * procfs.c: Likewise.
4813 * prologue-value.c: Likewise.
4814 * psymtab.c: Likewise.
4815 * python/py-lazy-string.c: Likewise.
4816 * python/py-value.c: Likewise.
4817 * regcache.c: Likewise.
4818 * reggroups.c: Likewise.
4819 * registry.c: Likewise.
4820 * remote-sim.c: Likewise.
4821 * remote.c: Likewise.
4822 * rs6000-aix-tdep.c: Likewise.
4823 * rs6000-tdep.c: Likewise.
4824 * s390-linux-tdep.c: Likewise.
4825 * score-tdep.c: Likewise.
4826 * ser-base.c: Likewise.
4827 * ser-mingw.c: Likewise.
4828 * sh-tdep.c: Likewise.
4829 * sh64-tdep.c: Likewise.
4830 * solib-darwin.c: Likewise.
4831 * solib-spu.c: Likewise.
4832 * solib-svr4.c: Likewise.
4833 * source.c: Likewise.
4834 * sparc-nat.c: Likewise.
4835 * sparc-sol2-tdep.c: Likewise.
4836 * sparc-tdep.c: Likewise.
4837 * sparc64-sol2-tdep.c: Likewise.
4838 * sparc64-tdep.c: Likewise.
4839 * sparc64fbsd-tdep.c: Likewise.
4840 * sparc64nbsd-tdep.c: Likewise.
4841 * sparc64obsd-tdep.c: Likewise.
4842 * sparcnbsd-tdep.c: Likewise.
4843 * sparcobsd-tdep.c: Likewise.
4844 * spu-multiarch.c: Likewise.
4845 * spu-tdep.c: Likewise.
4846 * stabsread.c: Likewise.
4847 * stack.c: Likewise.
4848 * symfile.c: Likewise.
4849 * symtab.c: Likewise.
4850 * target-descriptions.c: Likewise.
4851 * target-memory.c: Likewise.
4852 * target.c: Likewise.
4853 * tic6x-linux-tdep.c: Likewise.
4854 * tic6x-tdep.c: Likewise.
4855 * tilegx-linux-nat.c: Likewise.
4856 * tilegx-tdep.c: Likewise.
4858 * tramp-frame.c: Likewise.
4859 * tui/tui-out.c: Likewise.
4860 * tui/tui-winsource.c: Likewise.
4861 * ui-out.c: Likewise.
4862 * user-regs.c: Likewise.
4863 * utils.c: Likewise.
4864 * v850-tdep.c: Likewise.
4865 * valops.c: Likewise.
4866 * value.c: Likewise.
4867 * varobj.c: Likewise.
4868 * vax-nat.c: Likewise.
4869 * xml-syscall.c: Likewise.
4870 * xml-tdesc.c: Likewise.
4871 * xstormy16-tdep.c: Likewise.
4872 * xtensa-linux-nat.c: Likewise.
4873 * xtensa-tdep.c: Likewise.
4875 2014-08-07 Gary Benson <gbenson@redhat.com>
4877 * common/common-defs.h: Include common-utils.h.
4878 * defs.h: Do not include common-utils.h.
4879 * common/gdb_assert.h: Likewise.
4880 * darwin-nat.h: Likewise.
4881 * nat/linux-btrace.c: Likewise.
4882 * target/waitstatus.h: Likewise.
4884 2014-08-07 Gary Benson <gbenson@redhat.com>
4886 * common/common-defs.h: Include ptid.h.
4887 * defs.h: Do not include ptid.h.
4888 * inferior.h: Likewise.
4889 * infrun.h: Likewise.
4890 * nat/linux-btrace.h: Likewise.
4891 * nat/linux-osdata.h: Likewise.
4892 * target/waitstatus.h: Likewise.
4894 2014-08-07 Gary Benson <gbenson@redhat.com>
4896 * common/common-defs.h: Include gdb_locale.h.
4897 * defs.h: Do not include gdb_locale.h.
4899 2014-08-07 Gary Benson <gbenson@redhat.com>
4901 * common/common-defs.h: Include gdb/signals.h.
4902 * defs.h: Do not include gdb/signals.h.
4904 2014-08-07 Gary Benson <gbenson@redhat.com>
4906 * common/common-defs.h: Include pathmax.h.
4907 * defs.h: Do not include pathmax.h.
4909 2014-08-07 Gary Benson <gbenson@redhat.com>
4911 * common/common-defs.h: Include libiberty.h.
4912 * defs.h: Do not include libiberty.h.
4913 * common/queue.h: Likewise.
4914 * cp-name-parser.y: Likewise.
4915 * mi/mi-cmd-catch.c: Likewise.
4916 * python/python.c: Likewise.
4918 2014-08-07 Gary Benson <gbenson@redhat.com>
4920 * common/common-defs.h: Include ansidecl.h.
4921 * defs.h: Do not include ansidecl.h.
4922 * common/buffer.h: Likewise.
4923 * common/common-utils.h: Likewise.
4925 2014-08-07 Gary Benson <gbenson@redhat.com>
4927 * common/common-defs.h: Include stddef.h.
4928 * defs.h: Do not include stddef.h.
4929 * common/common-utils.h: Likewise.
4930 * amd64fbsd-nat.c: Likewise.
4931 * bcache.c: Likewise.
4932 * charset.c: Likewise.
4933 * common/buffer.h: Likewise.
4934 * common/vec.h: Likewise.
4935 * i386bsd-nat.c: Likewise.
4936 * nat/linux-btrace.h: Likewise.
4937 * ppcfbsd-nat.c: Likewise.
4938 * ppcnbsd-tdep.h: Likewise.
4939 * ppcobsd-nat.c: Likewise.
4940 * ppcobsd-tdep.h: Likewise.
4941 * python/py-gdb-readline.c: Likewise.
4943 2014-08-07 Gary Benson <gbenson@redhat.com>
4945 * common/common-defs.h: Include stdarg.h.
4946 * defs.h: Do not include stdarg.h.
4947 * ada-lang.c: Likewise.
4948 * common/common-utils.h: Likewise.
4949 * guile/scm-string.c: Likewise.
4950 * guile/scm-utils.c: Likewise.
4951 * m32c-tdep.c: Likewise.
4953 2014-08-07 Gary Benson <gbenson@redhat.com>
4955 * common/common-defs.h: Include stdlib.h.
4956 * defs.h: Do not include stdlib.h.
4957 * addrmap.c: Likewise.
4958 * bcache.c: Likewise.
4959 * common/buffer.c: Likewise.
4960 * common/common-utils.c: Likewise.
4961 * cp-name-parser.y: Likewise.
4962 * go32-nat.c: Likewise.
4963 * mn10300-linux-tdep.c: Likewise.
4964 * nat/linux-osdata.c: Likewise.
4965 * tui/tui.c: Likewise.
4966 * windows-nat.c: Likewise.
4968 2014-08-07 Gary Benson <gbenson@redhat.com>
4970 * common/common-defs.h: Include stdio.h.
4971 * defs.h: Do not include stdio.h.
4972 * ada-lang.c: Likewise.
4973 * common/buffer.c: Likewise.
4974 * common/common-utils.c: Likewise.
4975 * cp-name-parser.y: Likewise.
4976 * gnu-nat.c: Likewise.
4977 * go32-nat.c: Likewise.
4978 * i386gnu-nat.c: Likewise.
4979 * proc-api.c: Likewise.
4980 * proc-events.c: Likewise.
4981 * proc-flags.c: Likewise.
4982 * proc-why.c: Likewise.
4983 * python/python-internal.h: Likewise.
4984 * target-memory.c: Likewise.
4985 * tui/tui-io.c: Likewise.
4986 * tui/tui.c: Likewise.
4988 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4990 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4991 (scan_dyntag_auxv): Same.
4993 2014-08-06 Yao Qi <yao@codesourcery.com>
4995 * amd64-linux-nat.c: Remove duplicated include
4997 * i386-linux-nat.c: Likewise.
4999 2014-08-06 Yao Qi <yao@codesourcery.com>
5001 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5002 operand" with "Special opcode" in comments.
5004 2014-08-05 Gary Benson <gbenson@redhat.com>
5006 * interps.c (initialize_interps): Remove prototype.
5007 (interpreter_initialized): Remove static global.
5008 (interp_add): Do not call initialize_interps.
5009 (initialize_interps): Remove function.
5011 2014-08-05 Gary Benson <gbenson@redhat.com>
5013 * utils.c (vwarning): Remove spurious va_end.
5015 2014-08-05 Alan Modra <amodra@gmail.com>
5017 * charset.c (convert_between_encodings): Cast result of obstack_base.
5018 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5019 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5020 (read_unwind_info): Use size_t for some locals.
5021 * jit.c (finalize_symtab): Likewise.
5022 * utils.c (hashtab_obstack_allocate): Likewise.
5023 * symmisc.c (print_objfile_statistics): Update format strings.
5025 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5027 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5028 (Changes in GDB 7.8): ... here.
5030 2014-08-04 Tom Tromey <tromey@redhat.com>
5032 * target.c (set_targetdebug): New function.
5033 (initialize_targets): Pass set_targetdebug when creating "set
5036 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5038 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5039 if detecting a variable-sized field that is not the last field.
5040 Fix struct type length computation.
5042 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5044 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5047 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5049 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5050 Remove "+ 8" offset in computation of CHAIN_VMA.
5052 2014-07-31 Doug Evans <dje@google.com>
5054 * inflow.c (child_terminal_inferior): Add comment.
5055 (child_terminal_ours_for_output): Add comment.
5056 (child_terminal_ours): Add comment.
5057 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5058 (linux_nat_terminal_ours): Add comment.
5060 2014-07-31 Gary Benson <gbenson@redhat.com>
5062 * common/btrace-common.h: Do not include defs.h or server.h.
5063 * nat/mips-linux-watch.h: Likewise.
5064 * gdb-dlfcn.h: Do not include defs.h.
5065 * tracefile.h: Likewise.
5067 2014-07-30 Roland McGrath <mcgrathr@google.com>
5069 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5071 2014-07-30 Tom Tromey <tromey@redhat.com>
5073 * bsd-kvm.c (bsd_kvm_open): Constify.
5074 * corelow.c (core_open): Constify.
5075 * ctf.c (ctf_open): Constify.
5076 * dbug-rom.c (dbug_open): Constify.
5077 * exec.c (exec_open): Constify.
5078 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5079 * microblaze-rom.c (picobug_open): Constify.
5080 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5082 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5083 * record-btrace.c (record_btrace_open): Constify.
5084 * record-full.c (record_full_core_open_1, record_full_open_1)
5085 (record_full_open): Constify.
5086 * remote-m32r-sdi.c (m32r_open): Constify.
5087 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5088 (rockhopper_open, lsi_open): Constify.
5089 * remote-sim.c (gdbsim_open): Constify.
5090 * remote.c (remote_open, extended_remote_open, remote_open_1):
5092 * target.h (struct target_ops) <to_open>: Make "arg" const.
5093 * tracefile-tfile.c (tfile_open): Constify.
5095 2014-07-30 Tom Tromey <tromey@redhat.com>
5097 * breakpoint.c (map_breakpoint_numbers): Update.
5098 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5099 (get_number_const): New function.
5100 (get_number): Rewrite using get_number_const.
5101 (init_number_or_range): Make "string" const.
5102 (number_is_in_list): Make "list" const.
5103 * cli/cli-utils.h (get_number_const): Declare.
5104 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5105 (init_number_or_range, number_is_in_list): Update.
5106 * printcmd.c (map_display_numbers): Update.
5107 * value.c (value_from_history_ref): Constify.
5108 * value.h (value_from_history_ref): Update.
5110 2014-07-30 Tom Tromey <tromey@redhat.com>
5112 * corefile.c (hook_type, call_extra_exec_file_hooks)
5113 (specify_exec_file_hook): Constify.
5114 * exec.c (exec_file_attach): Make "filename" const.
5115 * gdbcore.h (deprecated_exec_file_display_hook)
5116 (specify_exec_file_hook, exec_file_attach): Constify.
5117 * main.c (captured_main): Use catch_command_errors_const.
5119 2014-07-30 Tom Tromey <tromey@redhat.com>
5121 * target.c (open_target): New function.
5122 (add_target_with_completer, add_deprecated_target_alias): Use
5123 set_cmd_sfunc, set_cmd_context.
5124 (debug_to_open): Remove.
5125 (setup_target_debug): Update.
5127 2014-07-30 Yao Qi <yao@codesourcery.com>
5129 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5131 * parse.c (exp_iterate): Update comments.
5133 2014-07-30 Gary Benson <gbenson@redhat.com>
5135 * common/common-defs.h: New file.
5136 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5137 * defs.h: Include common-defs.h.
5138 Do not include config.h or build-gnulib/config.h.
5140 2014-07-30 Gary Benson <gbenson@redhat.com>
5142 * common/common-utils.h: Do not include config.h.
5143 * nat/linux-btrace.h: Likewise.
5145 2014-07-30 Gary Benson <gbenson@redhat.com>
5147 * btrace.c: Include defs.h.
5148 * common/ptid.c: Include defs.h or server.h as appropriate.
5149 * nat/mips-linux-watch.c: Likewise.
5151 2014-07-29 Tom Tromey <tromey@redhat.com>
5153 * target.c (target_is_pushed): Simplify.
5155 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5159 2014-07-29 Yao Qi <yao@codesourcery.com>
5162 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5164 2014-07-28 Doug Evans <xdje42@gmail.com>
5167 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5168 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5171 2014-07-28 Will Newton <will.newton@linaro.org>
5173 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5174 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5175 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5176 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5177 (THUMB2_EABI_SYSCALL): Likewise.
5178 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5180 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5181 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5183 2014-07-27 Doug Evans <xdje42@gmail.com>
5185 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5187 2014-07-27 Doug Evans <xdje42@gmail.com>
5189 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5191 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5192 Doug Evans <xdje42@gmail.com>
5195 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5196 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5197 * configure.ac: Try to use guild to compile an scm file, if it fails
5198 then disable guile support.
5199 * configure: Regenerate.
5200 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5202 (GUILE_COMPILED_FILES): New variable.
5203 (GUILE_FILES) Update.
5204 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5205 (stamp-guile): Compile scm files.
5206 * guile/guile.c (boot_guile_support): New function.
5207 (standard_throw_args_p): New function.
5208 (print_standard_throw_error, print_throw_error): New functions.
5209 (handle_boot_error): New function.
5210 (initialize_scheme_side): Rewrite to call boot_guile_support.
5211 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5212 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5214 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5215 Doug Evans <xdje42@gmail.com>
5218 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5219 * guile/lib/gdb/support.scm: New file.
5220 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5221 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5223 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5225 (%assert-type): Ditto, and renamed to assert-type.
5226 (%exception-print-style): Delete.
5228 2014-07-26 Doug Evans <xdje42@gmail.com>
5231 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5232 * configure: Regenerate.
5233 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5235 (PYTHON_FILES): New variable.
5236 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5237 (GUILE_FILES): New variable.
5238 (stamp-python, install-python, uninstall-python): Handle empty
5240 (stamp-guile, install-guile, uninstall-guile): Ditto.
5242 2014-07-26 Doug Evans <xdje42@gmail.com>
5245 * guile/lib/gdb.scm (pretty-printers): Export.
5246 (set-pretty-printers!): Export.
5247 * guile/lib/gdb/printing.scm (gdb module): Update.
5248 (prepend-pretty-printer!, append-pretty-printer!): Update.
5249 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5250 (pretty_printer_list_var): Delete.
5251 (pretty_printer_list): New static global.
5252 (gdbscm_pretty_printers): New function.
5253 (gdbscm_set_pretty_printers_x): New function.
5254 (ppscm_find_pretty_printer_from_gdb): Update.
5255 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5256 (gdbscm_initialize_pretty_printers): Update.
5258 2014-07-26 Doug Evans <xdje42@gmail.com>
5261 * configure.ac: Add check for header gc/gc.h.
5262 Add check for function setenv.
5263 * configure: Regenerate.
5264 * config.in: Regenerate.
5265 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5267 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5269 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5270 variation in gdbarch matching.
5272 2014-07-25 Tom Tromey <tromey@redhat.com>
5274 * exec.c (using_exec_ops): Remove.
5275 (exec_close_1): Update. Remove extraneous block, reindent.
5276 (add_target_sections): Use target_is_pushed.
5278 2014-07-25 Pedro Alves <palves@redhat.com>
5280 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5281 * monitor.c (monitor_create_inferior): Likewise.
5282 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5283 * remote-sim.c (gdbsim_create_inferior): Likewise.
5284 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5285 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5286 * windows-nat.c (do_initial_windows_stuff): Likewise.
5288 2014-07-25 Pedro Alves <palves@redhat.com>
5290 * NEWS: Mention signal passing and "signal" command changes.
5291 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5293 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5295 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5296 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5297 (jump_command): Adjust clear_proceed_status call.
5298 (signal_command): Warn if other thread that are resumed have
5299 signals that will be delivered. Adjust clear_proceed_status call.
5300 (until_next_command, finish_command)
5301 (proceed_after_attach_callback, attach_command_post_wait)
5302 (attach_command): Adjust clear_proceed_status call.
5303 * infrun.c (proceed_after_vfork_done): Likewise.
5304 (proceed_after_attach_callback): Adjust comment.
5305 (clear_proceed_status_thread): Clear stop_signal if not in pass
5307 (clear_proceed_status_callback): Delete.
5308 (clear_proceed_status): New 'step' parameter. Only clear the
5309 proceed status of threads the command being prepared is about to
5311 (proceed): If passed in an explicit signal, override stop_signal
5312 with it. Don't pass the last stop signal to the thread we're
5314 (init_wait_for_inferior): Adjust clear_proceed_status call.
5315 (switch_back_to_stepped_thread): Clear the signal if it should not
5317 * infrun.h (clear_proceed_status): New 'step' parameter.
5318 (user_visible_resume_ptid): Add comment.
5319 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5320 signal is in pass state.
5321 * remote.c (append_pending_thread_resumptions): Likewise.
5322 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5324 2014-07-25 Tom Tromey <tromey@redhat.com>
5326 * target.h (target_stopped_data_address)
5327 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5330 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5332 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5334 (avr_pointer_to_address): Likewise.
5336 2014-07-24 Tom Tromey <tromey@redhat.com>
5338 * monitor.c (compile_pattern): Update.
5339 * target.h (struct target_ops) <to_shortname, to_longname,
5342 2014-07-24 Tom Tromey <tromey@redhat.com>
5344 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5345 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5346 (add_info_alias, add_com): Make "doc" const.
5347 (print_doc_line): Make "str" const.
5348 (delete_cmd): Update.
5349 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5350 (print_doc_line): Update.
5351 * cli/cli-script.c (document_command): Update.
5352 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5353 (add_com, add_info, add_info_alias): Update.
5354 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5355 * python/py-cmd.c (cmdpy_destroyer): Update.
5357 2014-07-24 Tom Tromey <tromey@redhat.com>
5359 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5360 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5361 (help_cmd_list): Constify.
5362 (lookup_cmd): Update.
5363 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5365 (help_cmd_list, apropos_cmd): Update.
5366 * cli/cli-script.c (show_user): Update.
5367 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5368 * cli/cli-setshow.h (cmd_show_list): Update.
5369 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5370 (cmd_show_list): Update.
5371 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5372 * python/py-cmd.c (cmdpy_destroyer): Update.
5374 2014-07-24 Tom Tromey <tromey@redhat.com>
5376 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5377 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5379 * command.h (deprecate_cmd): Update.
5380 * maint.c (maintenance_do_deprecate): Add casts.
5382 2014-07-24 Tom Tromey <tromey@redhat.com>
5384 * cli/cli-decode.c (help_cmd): Make parameter "const".
5385 * cli/cli-decode.h (help_cmd): Update.
5387 2014-07-24 Tom Tromey <tromey@redhat.com>
5389 * stack.c (up_silently_base, down_silently_base): Make argument
5392 2014-07-24 Tom Tromey <tromey@redhat.com>
5394 * solib.c (solib_add): Make "pattern" const.
5395 * solib.h (solib_add): Update.
5397 2014-07-24 Tom Tromey <tromey@redhat.com>
5399 * remote.c (remote_serial_open, print_packet, putpkt)
5400 (putpkt_binary): Constify.
5401 * remote.h (putpkt): Update.
5403 2014-07-24 Tom Tromey <tromey@redhat.com>
5405 * monitor.c (monitor_open): Make "args" const.
5406 * monitor.h (monitor_open): Update.
5408 2014-07-24 Tom Tromey <tromey@redhat.com>
5410 * maint.c (match_bfd_flags): Make "string" const.
5411 (print_bfd_section_info): Remove casts.
5412 (print_objfile_section_info): Make "string" const.
5414 2014-07-24 Tom Tromey <tromey@redhat.com>
5416 * inf-child.c (inf_child_open_target): Make "arg" const.
5417 * inf-child.h (inf_child_open_target): Update.
5419 2014-07-24 Tom Tromey <tromey@redhat.com>
5421 * environ.c (unset_in_environ): Make "var" const.
5422 * environ.h (unset_in_environ): Update.
5424 2014-07-24 Tom Tromey <tromey@redhat.com>
5426 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5428 (scan_filename_with_cleanup): Likewise.
5429 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5430 Make arguments const.
5431 (restore_command): Update.
5433 2014-07-24 Pedro Alves <palves@redhat.com>
5435 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5437 2014-07-24 Tom Tromey <tromey@redhat.com>
5438 Gary Benson <gbenson@redhat.com>
5440 * nat/linux-ptrace.c (additional_flags): New global.
5441 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5442 additional_flags; don't check GDBSERVER.
5443 (linux_ptrace_set_additional_flags): New function.
5444 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5446 * linux-nat.c (_initialize_linux_nat): Call
5447 linux_ptrace_set_additional_flags.
5449 2014-07-24 Tom Tromey <tromey@redhat.com>
5451 * make-target-delegates (munge_type, write_debugmethod): New
5453 (debug_names): New global.
5454 ($TARGET_DEBUG_PRINTER): New global.
5455 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5457 Write debug methods. Generate init_debug_target.
5458 * target-debug.h: New file.
5459 * target-delegates.c: Rebuild.
5460 * target.c: Include target-debug.h.
5461 (debug_target): Hoist definition.
5462 (target_kill, target_get_section_table, target_memory_map)
5463 (target_flash_erase, target_flash_done, target_detach)
5464 (target_disconnect, target_wait, target_resume)
5465 (target_pass_signals, target_program_signals, target_follow_fork)
5466 (target_mourn_inferior, target_search_memory)
5467 (target_thread_address_space, target_close)
5468 (target_find_new_threads, target_core_of_thread)
5469 (target_verify_memory, target_insert_mask_watchpoint)
5470 (target_remove_mask_watchpoint): Remove targetdebug code.
5471 (debug_to_post_attach, debug_to_prepare_to_store)
5472 (debug_to_files_info, debug_to_insert_breakpoint)
5473 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5474 (debug_to_region_ok_for_hw_watchpoint)
5475 (debug_to_can_accel_watchpoint_condition)
5476 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5477 (debug_to_watchpoint_addr_within_range)
5478 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5479 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5480 (debug_to_terminal_init, debug_to_terminal_inferior)
5481 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5482 (debug_to_terminal_save_ours, debug_to_terminal_info)
5483 (debug_to_load, debug_to_post_startup_inferior)
5484 (debug_to_insert_fork_catchpoint)
5485 (debug_to_remove_fork_catchpoint)
5486 (debug_to_insert_vfork_catchpoint)
5487 (debug_to_remove_vfork_catchpoint)
5488 (debug_to_insert_exec_catchpoint)
5489 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5490 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5491 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5492 (setup_target_debug): Call init_debug_target.
5493 * target.h (TARGET_DEBUG_PRINTER): New macro.
5494 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5495 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5497 2014-07-24 Gary Benson <gbenson@redhat.com>
5499 * exceptions.h (throw_vfatal): Renamed to...
5500 (throw_vquit): New declaration.
5501 (throw_quit): Likewise.
5502 * exceptions.c (throw_vfatal): Renamed to...
5503 (throw_vquit): New function.
5504 (throw_quit): Likewise.
5505 (throw_error): Call throw_verror rather than throw_it.
5506 * utils.h (vfatal): Removed.
5508 * utils.c (vfatal): Removed.
5510 (internal_verror): Replaced call to fatal with call to throw_quit.
5511 (quit): Replaced calls to fatal with calls to throw_quit.
5513 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5515 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5518 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5520 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5521 less than zero in conditional expression.
5523 2014-07-23 Tom Tromey <tromey@redhat.com>
5525 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5526 ($INTRO_PART): Don't match whitespace.
5527 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5529 ($METHOD): Add $METHOD_TRAILER.
5531 (scan_target_h): New sub.
5532 Change main loop not to collect state.
5533 * target-delegates.c: Rebuild.
5535 2014-07-23 Gary Benson <gbenson@redhat.com>
5537 * cp-support.c (gdb_demangle): Fix build on systems without
5540 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5542 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5543 for reference entry value target data value.
5545 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5547 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5548 value_available_contents_eq.
5550 2014-07-22 Pedro Alves <palves@redhat.com>
5552 * value.c (allocate_optimized_out_value): Don't mark value as
5555 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5557 * MAINTAINERS (Write After Approval): Update my email address.
5559 2014-07-20 Doug Evans <dje@google.com>
5562 * remote.c (putpkt_binary): Add text to error message.
5564 2014-07-20 Yao Qi <yao@codesourcery.com>
5566 * eval.c: Remove "Chill" from comments.
5567 * gdbtypes.h: Likewise.
5568 * symtab.h: Likewise.
5570 2014-07-20 Yao Qi <yao@codesourcery.com>
5572 * std-operator.def: Update comments to TERNOP_SLICE.
5574 2014-07-20 Yao Qi <yao@codesourcery.com>
5576 * std-operator.def: Remove BINOP_RANGE.
5577 * breakpoint.c (watchpoint_exp_is_const): Update.
5578 * expprint.c (dump_subexp_body_standard): Likewise.
5579 * eval.c (init_array_element): Remove dead code.
5580 (evaluate_subexp_standard): Likewise.
5582 2014-07-20 Yao Qi <yao@codesourcery.com>
5584 * std-operator.def: Remove BINOP_IN.
5585 * breakpoint.c (watchpoint_exp_is_const): Update.
5586 * eval.c (evaluate_subexp_standard): Likewise.
5587 * expprint.c (dump_subexp_body_standard): Likewise.
5589 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5591 * microblaze-tdep.c (microblaze_register_names): Add
5592 the rshr and rslr register names.
5593 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5594 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5595 Use of tdesc_numbered_register. Use of
5596 microblaze_register_g_packet_guesses. Use of
5597 tdesc_use_registers. Use of set_gdbarch_register_type.
5598 (microblaze_register_g_packet_guesses): New.
5599 * microblaze-tdep.h (microblaze_reg_num): Add
5600 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5601 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5602 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5603 * features/microblaze-core.xml: New file.
5604 * features/microblaze-stack-protect.xml: New file.
5605 * features/microblaze-with-stack-protect.c: New file.
5606 * features/microblaze-with-stack-protect.xml: New file.
5607 * features/microblaze.xml: New file.
5608 * features/microblaze.c: New file.
5609 * features/Makefile (microblaze-with-stack-protect): Add
5610 microblaze-with-stack-protect microblaze and microblaze-expedite.
5611 * regformats/microblaze-with-stack-protect.dat: New file.
5612 * regformats/microblaze.dat: New file.
5613 * doc/gdb.texinfo (MicroBlaze Features): Added.
5615 2014-07-18 Tom Tromey <tromey@redhat.com>
5617 * exec.c (exec_ops): Now static.
5618 * exec.h (exec_ops): Don't declare.
5620 2014-07-18 Tom Tromey <tromey@redhat.com>
5622 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5623 to find_target_beneath.
5624 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5625 find_target_beneath.
5626 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5628 2014-07-18 Tom Tromey <tromey@redhat.com>
5631 * utils.c (quit): Use target_supports_terminal_ours.
5632 * target.h (target_supports_terminal_ours): Declare.
5633 * target.c (target_supports_delete_record): Don't check
5634 to_delete_record against NULL.
5635 (target_supports_terminal_ours): New function.
5637 2014-07-18 Tom Tromey <tromey@redhat.com>
5640 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5641 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5642 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5643 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5644 * windows-nat.c (windows_xfer_partial): Always delegate.
5645 * record-btrace.c (record_btrace_xfer_partial): Simplify
5647 (record_btrace_fetch_registers, record_btrace_store_registers)
5648 (record_btrace_prepare_to_store, record_btrace_resume)
5649 (record_btrace_wait, record_btrace_find_new_threads)
5650 (record_btrace_thread_alive): Likewise.
5651 * procfs.c (procfs_xfer_partial): Always delegate.
5652 * corelow.c (core_xfer_partial): Always delegate.
5653 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5655 2014-07-18 Tom Tromey <tromey@redhat.com>
5657 * exec.c (exec_make_note_section): Move earlier.
5659 2014-07-17 Doug Evans <dje@google.com>
5662 * maint.c (count_symtabs_and_blocks): Handle NULL
5663 current_program_space.
5664 (report_command_stats): Check global enabled flag in addition to
5665 recorded enabled flag.
5666 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5668 2014-07-16 Pedro Alves <palves@redhat.com>
5670 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5672 2014-07-16 Tom Tromey <tromey@redhat.com>
5674 * target.h (struct target_ops) <to_delete_record>: Reformat
5677 2014-07-16 Tom Tromey <tromey@redhat.com>
5679 * target-delegates.c: Rebuild.
5681 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5683 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5684 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5685 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5686 (avr_pointer_to_address): Likewise.
5687 (avr_address_class_type_flags): New function.
5688 (avr_address_class_type_flags_to_name): Likewise.
5689 (avr_address_class_name_to_type_flags): Likewise.
5690 (avr_gdbarch_init): Set address_class_type_flags,
5691 address_class_type_flags_to_name and
5692 address_class_name_to_type_flags.
5694 2014-07-15 Pedro Alves <palves@redhat.com>
5696 * linux-nat.c (kill_callback): Save errno and work with saved
5699 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5701 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5703 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5705 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5706 breakpoint support correctly.
5708 2014-07-14 Pedro Alves <palves@redhat.com>
5710 * utils.c (prompt_for_continue): Call target_terminal_ours.
5712 2014-07-14 Pedro Alves <palves@redhat.com>
5714 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5715 catch_errors. Don't re-enable stdin or notify observers where,
5717 (fetch_inferior_event_wrapper): Delete.
5719 2014-07-14 Pedro Alves <palves@redhat.com>
5722 * top.c: Include "inf-loop.h".
5723 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5725 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5727 (gdb_readline_wrapper): Store whether the target is async, and
5730 2014-07-14 Pedro Alves <palves@redhat.com>
5733 * top.c (gdb_readline_wrapper_line): Tweak comment.
5734 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5735 the input handler callback.
5737 2014-07-14 Pedro Alves <palves@redhat.com>
5740 * main.c: Include event-top.h.
5741 (handle_command_errors): New function.
5742 (catch_command_errors, catch_command_errors_const): Use it.
5744 2014-07-14 Pedro Alves <palves@redhat.com>
5746 * exceptions.c (catch_command_errors, catch_command_errors_const):
5748 * exceptions.h (catch_command_errors_ftype)
5749 (catch_command_errors_const_ftype): Moved to main.c.
5750 (catch_command_errors, catch_command_errors_const): Delete
5752 * main.c (catch_command_errors_ftype)
5753 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5754 (catch_command_errors, catch_command_errors_const)): Moved here
5755 from exceptions.c and make static.
5757 2014-07-14 Pedro Alves <palves@redhat.com>
5759 * exceptions.c (print_any_exception): Delete.
5760 (catch_exceptions_with_msg): Use exception_print instead of
5761 print_any_exception.
5762 (catch_errors): Use exception_fprintf instead of
5763 print_any_exception.
5764 (catch_command_errors, catch_command_errors_const): Use
5765 exception_print instead of print_any_exception.
5767 2014-07-14 Pedro Alves <palves@redhat.com>
5769 * infcall.c (run_inferior_call): Set 'sync_execution' while
5770 running the inferior call.
5772 2014-07-14 Pedro Alves <palves@redhat.com>
5774 * value.c (value_contents_equal): Delete function.
5775 * value.h (value_contents_equal): Delete declaration.
5777 2014-07-14 Tom Tromey <tromey@redhat.com>
5780 * gdbtypes.c (is_dynamic_type_internal): New function, from
5782 (is_dynamic_type): Rewrite.
5783 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5784 (resolve_dynamic_struct): Likewise.
5785 (resolve_dynamic_type_internal): New function, from
5786 resolve_dynamic_type.
5787 (resolve_dynamic_type): Rewrite.
5789 2014-07-14 Tom Tromey <tromey@redhat.com>
5791 * target.c (target_require_runnable): Also check record_stratum.
5794 2014-07-11 Yao Qi <yao@codesourcery.com>
5796 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5797 thumb_instruction_restores_sp return true.
5799 2014-07-11 Yao Qi <yao@codesourcery.com>
5801 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5802 (thumb_in_function_epilogue_p): Call
5803 thumb_instruction_restores_sp.
5805 2014-07-11 Yao Qi <yao@codesourcery.com>
5807 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5809 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5811 2014-07-11 Gary Benson <gbenson@redhat.com>
5813 * amd64-linux-nat.c (gdbcore.h): Remove include.
5814 (regset.h): Likewise.
5815 (nat/linux-btrace.h): Likewise.
5816 (btrace.h): Likewise.
5817 (gdb_assert.h): Likewise.
5818 (string.h): Likewise.
5819 (sys/uio.h): Likewise.
5820 (sys/debugreg.h): Likewise.
5821 (sys/syscall.h): Likewise.
5822 (sys/procfs.h): Likewise.
5823 (sys/user.h): Likewise.
5824 (asm/ptrace.h): Likewise.
5825 (i386-nat.h): Likewise.
5826 * i386-linux-nat.c (i386-nat.h): Likewise.
5827 (regset.h): Likewise.
5828 (target.h): Likewise.
5829 (linux-nat.h): Likewise.
5830 (nat/linux-btrace.h): Likewise.
5831 (btrace.h): Likewise.
5832 (gdb_assert.h): Likewise.
5833 (string.h): Likewise.
5834 (sys/uio.h): Likewise.
5835 (sys/user.h): Likewise.
5836 (sys/procfs.h): Likewise.
5837 (sys/reg.h): Likewise.
5838 (sys/debugreg.h): Likewise.
5839 (ORIG_EAX): Remove definition.
5841 2014-07-11 Gary Benson <gbenson@redhat.com>
5843 * i386-linux-nat.h: New file.
5844 * x86-linux-nat.h: Likewise.
5845 * x86-linux-nat.c: Likewise.
5846 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5847 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5848 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5849 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5850 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5851 (PTRACE_SETREGSET): Likewise.
5852 (arch_lwp_info): Now in x86-linux-nat.c.
5853 (have_ptrace_getregset): Now in x86-linux-nat.h.
5854 (x86_linux_dr_get): Now in x86-linux-nat.c.
5855 (x86_linux_dr_set): Likewise.
5856 (x86_linux_dr_get_addr): Likewise.
5857 (x86_linux_dr_get_control): Likewise.
5858 (x86_linux_dr_get_status): Likewise.
5859 (update_debug_registers_callback): Likewise.
5860 (x86_linux_dr_set_control): Likewise.
5861 (x86_linux_dr_set_addr): Likewise.
5862 (x86_linux_prepare_to_resume): Likewise.
5863 (x86_linux_new_thread): Likewise.
5864 (x86_linux_new_fork): Likewise.
5865 (x86_linux_get_thread_area): Likewise.
5866 (super_post_startup_inferior): Likewise.
5867 (x86_linux_child_post_startup_inferior): Likewise.
5868 (AMD64_LINUX_USER64_CS): Likewise.
5869 (AMD64_LINUX_X32_DS): Likewise.
5870 (x86_linux_read_description): Likewise.
5871 (x86_linux_enable_btrace): Likewise.
5872 (x86_linux_disable_btrace): Likewise.
5873 (x86_linux_teardown_btrace): Likewise.
5874 (x86_linux_read_btrace): Likewise.
5875 (x86_linux_create_target): Likewise.
5876 (x86_linux_add_target): Likewise.
5877 * i386-linux-nat.c (x86-linux-nat.h): New include.
5878 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5879 (PTRACE_SETREGSET): Likewise.
5880 (arch_lwp_info): Now in x86-linux-nat.c.
5881 (have_ptrace_getregset): Now in x86-linux-nat.h.
5882 (x86_linux_dr_get): Now in x86-linux-nat.c.
5883 (x86_linux_dr_set): Likewise.
5884 (x86_linux_dr_get_addr): Likewise.
5885 (x86_linux_dr_get_control): Likewise.
5886 (x86_linux_dr_get_status): Likewise.
5887 (update_debug_registers_callback): Likewise.
5888 (x86_linux_dr_set_control): Likewise.
5889 (x86_linux_dr_set_addr): Likewise.
5890 (x86_linux_prepare_to_resume): Likewise.
5891 (x86_linux_new_thread): Likewise.
5892 (x86_linux_new_fork): Likewise.
5893 (x86_linux_get_thread_area): Likewise.
5894 (super_post_startup_inferior): Likewise.
5895 (x86_linux_child_post_startup_inferior): Likewise.
5896 (AMD64_LINUX_USER64_CS): Likewise.
5897 (AMD64_LINUX_X32_DS): Likewise.
5898 (x86_linux_read_description): Likewise.
5899 (x86_linux_enable_btrace): Likewise.
5900 (x86_linux_disable_btrace): Likewise.
5901 (x86_linux_teardown_btrace): Likewise.
5902 (x86_linux_read_btrace): Likewise.
5903 (x86_linux_create_target): Likewise.
5904 (x86_linux_add_target): Likewise.
5906 2014-07-11 Gary Benson <gbenson@redhat.com>
5908 * amd64-linux-nat.c: Comment and whitespace changes.
5909 * i386-linux-nat.c: Comment and whitespace changes.
5911 2014-07-11 Gary Benson <gbenson@redhat.com>
5913 * amd64-linux-nat.c (x86_linux_create_target): New function.
5914 (x86_linux_add_target): Likewise.
5915 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5916 * i386-linux-nat.c (x86_linux_create_target): New function.
5917 (x86_linux_add_target): Likewise.
5918 (_initialize_i386_linux_nat): Delegate to the above new functions.
5920 2014-07-11 Gary Benson <gbenson@redhat.com>
5922 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5923 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5924 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5925 (ps_get_thread_area): Delegate to the above.
5927 2014-07-11 Gary Benson <gbenson@redhat.com>
5929 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5930 x86_linux_read_description. All uses updated. amd64-specific
5931 code conditionalized. Conditionalized i386-specific code added.
5932 Redundant cast removed.
5933 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5934 x86_linux_read_description. All uses updated. i386-specific
5935 code conditionalized. Conditionalized amd64-specific code added.
5936 One sizeof replaced with the actual type it is describing.
5938 2014-07-11 Gary Benson <gbenson@redhat.com>
5940 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5941 x86_linux_dr_get. All uses updated.
5942 (amd64_linux_dr_set): Renamed to
5943 x86_linux_dr_set. All uses updated.
5944 (amd64_linux_dr_get_addr): Renamed to
5945 x86_linux_dr_get_addr. All uses updated.
5946 (amd64_linux_dr_get_control): Renamed to
5947 x86_linux_dr_get_control. All uses updated.
5948 (amd64_linux_dr_get_status): Renamed to
5949 x86_linux_dr_get_status. All uses updated.
5950 (amd64_linux_dr_set_control): Renamed to
5951 x86_linux_dr_set_control. All uses updated.
5952 (amd64_linux_dr_set_addr): Renamed to
5953 x86_linux_dr_set_addr. All uses updated.
5954 (amd64_linux_prepare_to_resume): Renamed to
5955 x86_linux_prepare_to_resume. All uses updated.
5956 (amd64_linux_new_thread): Renamed to
5957 x86_linux_new_thread. All uses updated.
5958 (amd64_linux_new_fork): Renamed to
5959 x86_linux_new_fork. All uses updated.
5960 (amd64_linux_child_post_startup_inferior): Renamed to
5961 x86_linux_child_post_startup_inferior. All uses updated.
5962 (amd64_linux_enable_btrace): Renamed to
5963 x86_linux_enable_btrace. All uses updated.
5964 (amd64_linux_disable_btrace): Renamed to
5965 x86_linux_disable_btrace. All uses updated.
5966 (amd64_linux_teardown_btrace): Renamed to
5967 x86_linux_teardown_btrace. All uses updated.
5968 (amd64_linux_read_btrace): Renamed to
5969 x86_linux_read_btrace. All uses updated.
5970 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5971 x86_linux_dr_get. All uses updated.
5972 (i386_linux_dr_set): Renamed to
5973 x86_linux_dr_set. All uses updated.
5974 (i386_linux_dr_get_addr): Renamed to
5975 x86_linux_dr_get_addr. All uses updated.
5976 (i386_linux_dr_get_control): Renamed to
5977 x86_linux_dr_get_control. All uses updated.
5978 (i386_linux_dr_get_status): Renamed to
5979 x86_linux_dr_get_status. All uses updated.
5980 (i386_linux_dr_set_control): Renamed to
5981 x86_linux_dr_set_control. All uses updated.
5982 (i386_linux_dr_set_addr): Renamed to
5983 x86_linux_dr_set_addr. All uses updated.
5984 (i386_linux_prepare_to_resume): Renamed to
5985 x86_linux_prepare_to_resume. All uses updated.
5986 (i386_linux_new_thread): Renamed to
5987 x86_linux_new_thread. All uses updated.
5988 (i386_linux_new_fork): Renamed to
5989 x86_linux_new_fork. All uses updated.
5990 (i386_linux_child_post_startup_inferior): Renamed to
5991 x86_linux_child_post_startup_inferior. All uses updated.
5992 (i386_linux_enable_btrace): Renamed to
5993 x86_linux_enable_btrace. All uses updated.
5994 (i386_linux_disable_btrace): Renamed to
5995 x86_linux_disable_btrace. All uses updated.
5996 (i386_linux_teardown_btrace): Renamed to
5997 x86_linux_teardown_btrace. All uses updated.
5998 (i386_linux_read_btrace): Renamed to
5999 x86_linux_read_btrace. All uses updated.
6001 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6003 * remote.c (extended_remote_post_attach): New function.
6004 (init_extended_remote_ops): Install it as to_post_attach method.
6006 2014-07-09 Pedro Alves <palves@redhat.com>
6008 * infcmd.c (attach_command_post_wait): Don't call
6009 target_terminal_inferior here.
6010 (attach_command): Call it here instead.
6012 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6014 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6016 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6017 from varobj.c, with additional checks.
6018 (c_varobj_ops): Fill in is_path_expr_parent field.
6019 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6020 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6022 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6024 (varobj_default_is_path_expr_parent): New function.
6025 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6026 (varobj_default_is_path_expr_parent): Declare new function.
6028 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6030 * infcmd.c (finish_backward): Turn internal error into normal error.
6032 2014-07-07 Pedro Alves <palves@redhat.com>
6035 * remote.c (async_handle_remote_sigint)
6036 (async_handle_remote_sigint_twice): Call
6037 gdb_call_async_signal_handler instead of
6038 mark_async_signal_handler.
6040 2014-07-07 Tom Tromey <tromey@redhat.com>
6042 * target-delegates.c: Rebuild.
6043 * target.c (target_info_record): Remove.
6044 * record.c (info_record_command): Unconditionally call
6046 * target.h (struct target_ops) <to_info_record>: Use
6047 TARGET_DEFAULT_IGNORE.
6048 (target_info_record): Remove.
6050 2014-07-07 Tom Tromey <tromey@redhat.com>
6052 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6053 TARGET_DEFAULT_NORETURN.
6054 * target.c (generic_tls_error): New function.
6055 (target_translate_tls_address): Don't search target stack.
6056 * target-delegates.c: Rebuild.
6057 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6059 * linux-thread-db.c (thread_db_get_thread_local_address):
6060 Unconditionally call beneath target.
6062 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6064 * cli/cli-logging.c (pop_output_files): Assign targerr to
6067 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * MAINTAINERS (Write After Approval): Update my email address.
6071 2014-07-02 Gary Benson <gbenson@redhat.com>
6073 * proc-service.c (ps_xfer_memory): Update comment.
6074 (ps_pstop): Remove unused function.
6075 (ps_pcontinue): Likewise.
6076 (ps_lstop): Likewise.
6077 (ps_lcontinue): Likewise.
6078 (ps_lgetxregsize): Likewise.
6079 (ps_lgetxregs): Likewise.
6080 (ps_lsetxregs): Likewise.
6081 (ps_plog): Likewise.
6082 (ps_ptread): Likewise.
6083 (ps_ptwrite): Likewise.
6085 2014-07-01 Mark Wielaard <mjw@redhat.com>
6087 * dwarf2read.c (add_array_cv_type): New function.
6088 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6089 (read_tag_volatile_type): Likewise.
6091 2014-07-01 Tom Tromey <tromey@redhat.com>
6093 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6094 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6095 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6096 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6097 * command.h (cmd_cfunc_ftype): Move earlier.
6098 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6099 (add_com, add_info): Use cmd_cfunc_ftype.
6101 2014-06-30 Tom Tromey <tromey@redhat.com>
6103 * symtab.c (operator_chars): Make parameters and return type
6105 (file_matches): Make "files" const.
6106 (struct search_symbols_data) <files>: Now const.
6107 (search_symbols): Make "regexp" and "files" parameters const.
6109 (symtab_symbol_info): Remove cast.
6110 (rbreak_command): Update.
6111 * symtab.h (search_symbols): Update.
6113 2014-06-27 Yao Qi <yao@codesourcery.com>
6115 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6116 Change parameter type to 'struct thread_info *'. Caller
6118 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6120 * dummy-frame.c (struct dummy_frame_id): New.
6121 (dummy_frame_id_eq): New function.
6122 (struct dummy_frame) <id>: Change its type to 'struct
6124 (dummy_frame_push): Add parameter ptid and save it in
6126 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6128 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6130 (lookup_dummy_frame): Change parameter type to 'struct
6131 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6132 instead of frame_id_eq.
6133 (dummy_frame_pop): Add parameter ptid. Callers updated.
6134 Update comments. Compose dummy_frame_id and pass it to
6136 (dummy_frame_discard): Add parameter ptid.
6137 (dummy_frame_sniffer): Compose dummy_frame_id and call
6138 dummy_frame_id_eq instead of frame_id_eq.
6139 (fprint_dummy_frames): Print ptid.
6140 * dummy-frame.h: Remove comments.
6141 (dummy_frame_push): Add ptid in declaration.
6142 (dummy_frame_pop, dummy_frame_discard): Likewise.
6144 2014-06-26 Tom Tromey <tromey@redhat.com>
6146 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6147 * command.h (error_no_arg): Update.
6149 2014-06-26 Tom Tromey <tromey@redhat.com>
6151 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6152 (do_show_command): Make "arg" const.
6153 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6155 2014-06-26 Tom Tromey <tromey@redhat.com>
6157 * record-full.c (record_full_get_bookmark): Make "args" const.
6158 (record_full_goto_bookmark): Make "raw_bookmark" const.
6159 * record.c (record_goto): New function.
6160 (cmd_record_goto): Use it. Now static.
6161 * record.h (record_goto): Declare.
6162 (cmd_record_goto): Remove declaration.
6163 * target-delegates.c: Rebuild.
6164 * target.h (struct target_ops) <to_get_bookmark,
6165 to_goto_bookmark>: Make parameter const.
6167 2014-06-26 Tom Tromey <tromey@redhat.com>
6169 * defs.h (generic_load): Update.
6170 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6171 * monitor.c (monitor_load): Make "args" const.
6172 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6173 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6175 (mips_load): Make "file" const.
6176 * remote-sim.c (gdbsim_load): Make "args" const.
6177 * remote.c (remote_load): Make "name" const.
6178 * symfile.c (generic_load): Make "args" const.
6179 * target-delegates.c: Rebuild.
6180 * target.c (target_load): Make "arg" const.
6181 (debug_to_load): Make "args" const.
6182 * target.h (struct target_ops) <to_load>: Make parameter const.
6183 (target_load): Update.
6185 2014-06-26 Tom Tromey <tromey@redhat.com>
6188 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6189 (dwarf2_physname, read_partial_die)
6190 (guess_partial_die_structure_name, fixup_partial_die)
6191 (guess_full_die_structure_name, anonymous_struct_prefix)
6192 (dwarf2_name): Use per-BFD obstack.
6194 2014-06-26 Yao Qi <yao@codesourcery.com>
6196 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6197 dummyframe and this_id into inner block below.
6199 2014-06-26 Yao Qi <yao@codesourcery.com>
6201 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6202 with "signal_pass[0]" in the initialization of signal_pass.
6204 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6206 * record-btrace.c (record_btrace_generating_corefile)
6207 (record_btrace_prepare_to_generate_core)
6208 (record_btrace_done_generating_core): New.
6209 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6210 (record_btrace_store_registers, record_btrace_prepare_to_store):
6211 Forward request when generating a core file.
6212 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6213 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6214 to_done_generating_core.
6216 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6218 * target.h (target_ops) <to_prepare_to_generate_core>
6219 <to_done_generating_core>: New.
6220 (target_prepare_to_generate_core, target_done_generating_core): New.
6221 * target.c (target_prepare_to_generate_core)
6222 (target_done_generating_core): New.
6223 * target-delegates.c: Regenerate.
6224 * gcore.c: (write_gcore_file): Rename to ...
6225 (write_gcore_file_1): ...this.
6226 (write_gcore_file): Call target_prepare_to_generate_core
6227 and target_done_generating_core.
6229 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6231 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6232 * gcore.c (write_gcore_file): Free memory returned from
6233 make_corefile_notes.
6234 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6235 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6237 2014-06-24 Yao Qi <yao@codesourcery.com>
6239 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6240 (arm_linux_init_abi): Set skip_trampoline_code with
6241 gdbarch_skip_trampoline_code instead of
6242 find_solib_trampoline_target.
6244 2014-06-24 Yao Qi <yao@codesourcery.com>
6246 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6247 arm_skip_bx_reg returns non-zero.
6249 2014-06-24 Yao Qi <yao@codesourcery.com>
6251 * arm-tdep.c (arm_skip_bx_reg): New function.
6252 (arm_skip_stub): Call arm_skip_bx_reg.
6254 2014-06-23 Don Breazeal <donb@codesourcery.com>
6256 * MAINTAINERS: Add myself as write-after-approval maintainer.
6258 2014-06-23 Pedro Alves <palves@redhat.com>
6260 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6261 DR_CONTROL before setting DR0..DR3.
6262 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6263 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6264 bits of DR_CONTROL related to the debug register slot being
6265 disabled. If all slots are vacant, clear local slowdown as well,
6266 and assert DR_CONTROL is 0.
6268 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6270 * python/lib/gdb/command/xmethods.py
6271 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6272 current progspace only if the string "progspace" matches LOCUS_RE.
6274 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 Fix --with-system-readline with readline-6.3 patch 5.
6277 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6278 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6281 2014-06-20 Tom Tromey <tromey@redhat.com>
6283 * dwarf2read.c (dw2_get_real_path): Use correct type in
6285 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6287 2014-06-20 Gary Benson <gbenson@redhat.com>
6289 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6290 * common/glibc_thread_db.h: Likewise.
6291 * common/i386-cpuid.h: Likewise.
6292 * common/i386-gcc-cpuid.h: Likewise.
6293 * common/linux-btrace.h: Likewise.
6294 * common/linux-osdata.h: Likewise.
6295 * common/linux-procfs.h: Likewise.
6296 * common/linux-ptrace.h: Likewise.
6297 * common/mips-linux-watch.h: Likewise.
6298 * common/linux-btrace.c: Moved to nat.
6299 * common/linux-osdata.c: Likewise.
6300 * common/linux-procfs.c: Likewise.
6301 * common/linux-ptrace.c: Likewise.
6302 * common/mips-linux-watch.c: Likewise.
6303 * nat/gdb_thread_db.h: Moved from common.
6304 * nat/glibc_thread_db.h: Likewise.
6305 * nat/i386-cpuid.h: Likewise.
6306 * nat/i386-gcc-cpuid.h: Likewise.
6307 * nat/linux-btrace.c: Likewise.
6308 * nat/linux-btrace.h: Likewise.
6309 * nat/linux-osdata.c: Likewise.
6310 * nat/linux-osdata.h: Likewise.
6311 * nat/linux-procfs.c: Likewise.
6312 * nat/linux-procfs.h: Likewise.
6313 * nat/linux-ptrace.c: Likewise.
6314 * nat/linux-ptrace.h: Likewise.
6315 * nat/mips-linux-watch.c: Likewise.
6316 * nat/mips-linux-watch.h: Likewise.
6317 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6318 (object file files): Reordered.
6319 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6320 of glibc_thread_db.h.
6322 2014-06-20 Gary Benson <gbenson@redhat.com>
6324 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6325 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6326 (i386_dr_low): Likewise.
6327 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6328 (i386_dr_low_set_addr): Likewise.
6329 (i386_dr_low_get_addr): Likewise.
6330 (i386_dr_low_can_set_control): Likewise.
6331 (i386_dr_low_set_control): Likewise.
6332 (i386_dr_low_get_control): Likewise.
6333 (i386_dr_low_get_status): Likewise.
6334 (i386_get_debug_register_length): Likewise.
6335 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6336 (i386_dr_low): Likewise.
6337 * nat/i386-dregs.c (i386-low.h): Remove include.
6338 (i386-nat.h): Likewise.
6339 (nat/i386-dregs.h): New include.
6340 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6341 (i386_dr_low_set_addr): Likewise.
6342 (i386_dr_low_get_addr): Likewise.
6343 (i386_dr_low_can_set_control): Likewise.
6344 (i386_dr_low_set_control): Likewise.
6345 (i386_dr_low_get_control): Likewise.
6346 (i386_dr_low_get_status): Likewise.
6347 (i386_get_debug_register_length): Likewise.
6348 (debug_hw_points): Likewise.
6350 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6352 * Makefile.in (SFILES): Add d-exp.y.
6353 (YYFILES): Add d-exp.c.
6354 (YYOBJ): Add d-exp.o.
6355 (local-maintainer-clean): Delete d-exp.c.
6356 * d-exp.y: New file.
6357 * d-lang.h (d_parse): New declaration.
6358 (d_error): New declaration.
6359 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6360 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6361 PREC_ORDER operators.
6362 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6364 2014-06-19 Yao Qi <yao@codesourcery.com>
6366 * gdbthread.h (any_running): Remove the declaration.
6367 * thread.c (any_running): Remove.
6369 2014-06-19 Yao Qi <yao@codesourcery.com>
6371 * gdbthread.h (struct thread_info) <state>: Change its type to
6372 'enum thread_state'. Update comments.
6374 2014-06-19 Pedro Alves <palves@redhat.com>
6376 * gdbthread.h (ALL_THREADS): Delete.
6377 (ALL_NON_EXITED_THREADS): New macro.
6378 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6379 instead of ALL_THREADS.
6380 * infrun.c (find_thread_needs_step_over)
6381 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6382 instead of ALL_THREADS.
6383 * record-btrace.c (record_btrace_open)
6384 (record_btrace_stop_recording, record_btrace_close)
6385 (record_btrace_is_replaying, record_btrace_resume)
6386 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6387 * remote.c (append_pending_thread_resumptions): Likewise.
6388 * thread.c (thread_apply_all_command): Likewise.
6390 2014-06-19 Gary Benson <gbenson@redhat.com>
6392 * i386-nat.c (i386_stopped_by_watchpoint):
6393 Use i386_dr_stopped_by_watchpoint.
6394 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6395 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6397 2014-06-19 Gary Benson <gbenson@redhat.com>
6399 * nat/i386-dregs.c: New file.
6400 * Makefile.in (i386-dregs.o): New rule.
6401 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6402 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6403 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6404 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6405 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6406 * config/i386/go32.mh (NATDEPFILES): Likewise.
6407 * config/i386/linux.mh (NATDEPFILES): Likewise.
6408 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6409 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6410 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6411 * i386-nat.h (debug_hw_points): New declaration.
6412 * i386-nat.c (breakpoint.h): Remove include.
6413 (command.h): Likewise.
6414 (target.h): Likewise.
6415 (gdb_assert.h): Likewise.
6416 (debug_hw_points): Made nonstatic.
6417 (debug_printf): Now in i386-dregs.c.
6418 (TARGET_HAS_DR_LEN_8): Likewise.
6419 (DR_CONTROL_SHIFT): Likewise.
6420 (DR_CONTROL_SIZE): Likewise.
6421 (DR_RW_EXECUTE): Likewise.
6422 (DR_RW_WRITE): Likewise.
6423 (DR_RW_READ): Likewise.
6424 (DR_RW_IORW): Likewise.
6425 (DR_LEN_1): Likewise.
6426 (DR_LEN_2): Likewise.
6427 (DR_LEN_4): Likewise.
6428 (DR_LEN_8): Likewise.
6429 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6430 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6431 (DR_ENABLE_SIZE): Likewise.
6432 (DR_LOCAL_SLOWDOWN): Likewise.
6433 (DR_GLOBAL_SLOWDOWN): Likewise.
6434 (DR_CONTROL_RESERVED): Likewise.
6435 (I386_DR_CONTROL_MASK): Likewise.
6436 (I386_DR_VACANT): Likewise.
6437 (I386_DR_LOCAL_ENABLE): Likewise.
6438 (I386_DR_GLOBAL_ENABLE): Likewise.
6439 (I386_DR_DISABLE): Likewise.
6440 (I386_DR_SET_RW_LEN): Likewise.
6441 (I386_DR_GET_RW_LEN): Likewise.
6442 (I386_DR_WATCH_HIT): Likewise.
6443 (i386_wp_op_t): Likewise.
6444 (i386_show_dr): Likewise.
6445 (i386_length_and_rw_bits): Likewise.
6446 (i386_insert_aligned_watchpoint): Likewise.
6447 (i386_remove_aligned_watchpoint): Likewise.
6448 (i386_handle_nonaligned_watchpoint): Likewise.
6449 (i386_update_inferior_debug_regs): Likewise.
6450 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6451 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6452 (i386_region_ok_for_watchpoint):
6453 Use i386_dr_region_ok_for_watchpoint.
6454 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6456 2014-06-19 Gary Benson <gbenson@redhat.com>
6458 * i386-nat.c (i386_insert_hw_breakpoint): Use
6459 i386_insert_watchpoint.
6460 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6462 2014-06-19 Gary Benson <gbenson@redhat.com>
6464 * i386-nat.c (i386_dr_show): Renamed to
6465 i386_show_dr and made static. All uses updated.
6466 (i386_dr_length_and_rw_bits): Renamed to
6467 i386_length_and_rw_bits and made static.
6469 (i386_dr_insert_aligned_watchpoint): Renamed to
6470 i386_insert_aligned_watchpoint and made static.
6472 (i386_dr_remove_aligned_watchpoint): Renamed to
6473 i386_remove_aligned_watchpoint and made static.
6475 (i386_dr_update_inferior_debug_regs): Renamed to
6476 i386_update_inferior_debug_regs and made static.
6478 * nat/i386-dregs.h (i386_dr_show): Removed.
6479 (i386_dr_length_and_rw_bits): Likewise.
6480 (i386_dr_insert_aligned_watchpoint): Likewise.
6481 (i386_dr_remove_aligned_watchpoint): Likewise.
6482 (i386_dr_update_inferior_debug_regs): Likewise.
6484 2014-06-19 Gary Benson <gbenson@redhat.com>
6486 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6487 * configure: Regenerate.
6488 * config.in: Likewise.
6489 * main.c (signal.h): New include.
6490 (setup_alternate_signal_stack): New function.
6491 (captured_main): Call the above.
6492 * cp-support.c (signal.h): New include.
6493 (catch_demangler_crashes): New flag.
6494 (SIGJMP_BUF): New define.
6495 (SIGSETJMP): Likewise.
6496 (SIGLONGJMP): Likewise.
6497 (gdb_demangle_jmp_buf): New static global.
6498 (gdb_demangle_attempt_core_dump): Likewise.
6499 (gdb_demangle_signal_handler): New function.
6500 (gdb_demangle): If catch_demangler_crashes is set, install the
6501 above signal handler before calling bfd_demangle, and restore
6502 the original signal handler afterwards. Display the offending
6503 symbol and call demangler_warning the first time a segmentation
6505 (_initialize_cp_support): New maint set/show command.
6507 2014-06-19 Gary Benson <gbenson@redhat.com>
6509 * utils.h (resource_limit_kind): New enum.
6510 (can_dump_core): New declaration.
6511 (warn_cant_dump_core): Likewise.
6512 (dump_core): Likewise.
6513 * utils.c (dump_core): Made nonstatic. Added new
6514 parameter "limit_kind".
6515 (can_dump_core): Made nonstatic. Moved printing code to...
6516 (warn_cant_dump_core): New function.
6517 (can_dump_core_warn): Likewise.
6518 (internal_vproblem): Replace calls to can_dump_core with
6519 calls to can_dump_core_warn. Supply new argument to each.
6521 2014-06-19 Gary Benson <gbenson@redhat.com>
6523 * utils.h (demangler_vwarning): New declaration.
6524 (demangler_warning): Likewise.
6525 * utils.c (struct internal_problem)
6526 <user_settable_should_quit>: New field.
6527 <user_settable_should_dump_core>: Likewise
6528 (internal_error_problem): Add values for above new fields.
6529 (internal_warning_problem): Likewise.
6530 (demangler_warning_problem): New static global.
6531 (demangler_vwarning): New function.
6532 (demangler_warning): Likewise.
6533 (add_internal_problem_command): Selectively add commands.
6534 (_initialize_utils): New internal problem command.
6535 * maint.c (maintenance_demangler_warning): New function.
6536 (_initialize_maint_cmds): New command.
6538 2014-06-18 Tom Tromey <tromey@redhat.com>
6540 * f-valprint.c (info_common_command_for_block): Update.
6541 * symtab.h (struct general_symbol_info) <common_block>: Now
6544 2014-06-18 Tom Tromey <tromey@redhat.com>
6546 * symtab.h (struct symtab) <blockvector>: Now const.
6547 * ada-lang.c (ada_add_global_exceptions): Update.
6548 * buildsym.c (augment_type_symtab): Update.
6549 * dwarf2read.c (dw2_lookup_symbol): Update.
6550 * jit.c (finalize_symtab): Update.
6551 * jv-lang.c (add_class_symtab_symbol): Update.
6552 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6554 * objfiles.c (objfile_relocate1): Update.
6555 * psymtab.c (lookup_symbol_aux_psymtabs)
6556 (maintenance_check_psymtabs): Update.
6557 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6559 * spu-tdep.c (spu_catch_start): Update.
6560 * symmisc.c (dump_symtab_1): Update.
6561 * symtab.c (lookup_global_symbol_from_objfile)
6562 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6563 (basic_lookup_transparent_type_quick)
6564 (basic_lookup_transparent_type, find_pc_sect_symtab)
6565 (find_pc_sect_line, search_symbols): Update.
6566 * block.c (find_block_in_blockvector): Make "bl" const.
6567 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6569 (blockvector_contains_pc): Make "bv" const.
6570 (block_for_pc_sect): Update.
6571 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6572 (blockvector_contains_pc): Update.
6573 * breakpoint.c (resolve_sal_pc): Update.
6574 * inline-frame.c (block_starting_point_at): Update.
6576 2014-06-18 Tom Tromey <tromey@redhat.com>
6578 * completer.c (complete_line): Make "line_buffer" const.
6579 * completer.h (complete_line): Update.
6581 2014-06-18 Tom Tromey <tromey@redhat.com>
6583 * symtab.c (add_macro_name): Remove unneeded cast.
6585 2014-06-18 Tom Tromey <tromey@redhat.com>
6587 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6588 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6590 2014-06-18 Tom Tromey <tromey@redhat.com>
6592 * probe.c (info_probes_for_ops): Make "arg" const.
6593 * probe.h (info_probes_for_ops): Update.
6595 2014-06-18 Tom Tromey <tromey@redhat.com>
6597 * varobj.c (varobj_create): Update.
6598 * valops.c (value_of_this): Update.
6599 * tracepoint.c (add_local_symbols, scope_info): Update.
6600 * symtab.h (struct general_symbol_info) <block>: Now const.
6601 * symtab.c (skip_prologue_sal)
6602 (default_make_symbol_completion_list_break_on)
6603 (skip_prologue_using_sal): Update.
6604 * stack.h (iterate_over_block_locals)
6605 (iterate_over_block_local_vars): Update.
6606 * stack.c (print_frame_args): Update.
6607 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6609 (get_selected_block): Make return type const.
6610 * python/py-frame.c (frapy_block): Update.
6611 * python/py-block.c (gdbpy_block_for_pc): Update.
6612 * p-exp.y (%union) <bval>: Now const.
6613 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6614 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6615 * m2-exp.y (%union) <bval>: Now const.
6616 * linespec.c (get_current_search_block): Make return type const.
6617 (create_sals_line_offset, find_label_symbols): Update.
6618 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6620 (block_starting_point_at): Make "block" const.
6621 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6622 (check_exception_resume): Update.
6623 * guile/scm-frame.c (gdbscm_frame_block): Update.
6624 * guile/scm-block.c (gdbscm_lookup_block): Update.
6625 * frame.h (get_frame_block): Update.
6626 (get_selected_block): Make return type const.
6627 * frame.c (frame_id_inner): Update.
6628 * f-valprint.c (info_common_command_for_block)
6629 (info_common_command): Update.
6630 * dwarf2loc.c (dwarf2_find_location_expression)
6631 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6632 (locexpr_describe_location_piece): Update.
6633 * c-exp.y (%union) <bval>: Now const.
6634 * breakpoint.c (resolve_sal_pc): Update.
6635 * blockframe.c (get_frame_block):Make return type const.
6636 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6637 (block_innermost_frame): Update.
6638 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6639 (block_for_pc, block_for_pc_sect): Update.
6640 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6642 (block_for_pc_sect, block_for_pc): Make return type const.
6643 * ax-gdb.c (gen_expr): Update.
6644 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6645 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6646 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6647 (ada_read_var_value): Update.
6648 * ada-exp.y (struct name_info) <block>: Now const.
6650 (block_lookup): Constify.
6652 2014-06-18 Gary Benson <gbenson@redhat.com>
6654 * nat/i386-dregs.h: New file.
6655 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6656 * i386-nat.h (i386-dregs.h): New include.
6657 (DR_FIRSTADDR): Now in i386-dregs.h.
6658 (DR_LASTADDR): Likewise.
6659 (DR_NADDR): Likewise.
6660 (DR_STATUS): Likewise.
6661 (DR_CONTROL): Likewise.
6662 (i386_debug_reg_state): Likewise.
6663 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6665 2014-06-18 Don Breazeal <donb@codesourcery.com>
6667 * breakpoint.c (set_longjmp_breakpoint): Call
6668 momentary_breakpoint_from_master with additional argument.
6669 (set_longjmp_breakpoint_for_call_dummy): Call
6670 momentary_breakpoint_from_master with additional argument.
6671 (set_std_terminate_breakpoint): Call
6672 momentary_breakpoint_from_master with additional argument.
6673 (momentary_breakpoint_from_master): Add argument to function
6674 definition and use it to initialize structure member flag.
6675 (clone_momentary_breakpoint): Call
6676 momentary_breakpoint_from_master with additional argument.
6677 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6678 member flags set in momentary_breakpoint_from_master.
6680 2014-06-18 Gary Benson <gbenson@redhat.com>
6682 * i386-nat.c (i386_show_dr): Renamed to
6683 i386_dr_show and made nonstatic. All uses updated.
6684 (i386_length_and_rw_bits): Renamed to
6685 i386_dr_length_and_rw_bits and made nonstatic.
6687 (i386_insert_aligned_watchpoint): Renamed to
6688 i386_dr_insert_aligned_watchpoint and made nonstatic.
6690 (i386_remove_aligned_watchpoint): Renamed to
6691 i386_dr_remove_aligned_watchpoint and made nonstatic.
6693 (i386_update_inferior_debug_regs): Renamed to
6694 i386_dr_update_inferior_debug_regs and made nonstatic.
6697 2014-06-18 Gary Benson <gbenson@redhat.com>
6699 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6700 (i386_dr_low_can_set_control): Likewise.
6701 (i386_dr_low_set_addr): Likewise.
6702 (i386_dr_low_set_control): Likewise.
6703 (i386_dr_low_get_addr): Likewise.
6704 (i386_dr_low_get_status): Likewise.
6705 (i386_dr_low_get_control): Likewise.
6706 (i386_insert_aligned_watchpoint): Use new macros.
6707 (i386_update_inferior_debug_regs): Likewise.
6708 (i386_stopped_data_address): Likewise.
6710 2014-06-18 Gary Benson <gbenson@redhat.com>
6712 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6713 New parameter. All uses updated.
6715 2014-06-18 Gary Benson <gbenson@redhat.com>
6717 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6720 2014-06-18 Gary Benson <gbenson@redhat.com>
6722 * i386-nat.c (debug_printf): New macro.
6723 (i386_get_debug_register_length): Likewise.
6724 (TARGET_HAS_DR_LEN_8): Use above macro.
6725 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6726 and printf_unfiltered. Use phex to format values.
6728 2014-06-18 Gary Benson <gbenson@redhat.com>
6730 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6733 2014-06-18 Gary Benson <gbenson@redhat.com>
6735 * i386-nat.c: Comment changes.
6737 2014-06-18 Gary Benson <gbenson@redhat.com>
6739 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6741 2014-06-18 Gary Benson <gbenson@redhat.com>
6743 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6744 (i386_insert_aligned_watchpoint): Likewise.
6745 (i386_remove_aligned_watchpoint): Likewise.
6746 (i386_handle_nonaligned_watchpoint): Likewise.
6748 2014-06-18 Gary Benson <gbenson@redhat.com>
6750 * i386-nat.c: Whitespace changes.
6752 2014-06-17 Samuel Bronson <naesten@gmail.com>
6754 * MAINTAINERS: Update Roland McGrath's email address.
6755 Thanks to Sergio Durigan Junior for pointing out that he left
6756 Red Hat a while ago, and giving me a current address.
6758 2014-06-17 Tom Tromey <tromey@redhat.com>
6760 * utils.h (savestring): Remove declaration.
6762 2014-06-17 Tom Tromey <tromey@redhat.com>
6764 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6766 2014-06-16 Keith Seitz <keiths@redhat.com>
6769 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6770 to update the varobj if inferior_ptid is null_ptid.
6772 2014-06-16 Tom Tromey <tromey@redhat.com>
6774 * target.h (struct target_ops) <to_info_proc>: Make parameter
6776 (target_info_proc): Update.
6777 * target.c (target_info_proc): Make "args" const.
6778 * procfs.c (procfs_info_proc): Update.
6779 * linux-tdep.c (linux_info_proc): Update.
6780 (linux_core_info_proc_mappings): Make "args" const.
6781 (linux_core_info_proc): Update.
6782 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6783 * gdbarch.c: Rebuild.
6784 * gdbarch.h: Rebuild.
6785 * corelow.c (core_info_proc): Update.
6787 2014-06-16 Tom Tromey <tromey@redhat.com>
6789 * target.h (struct target_ops) <to_disconnect>: Make parameter
6791 (target_disconnect): Update.
6792 * target.c (target_disconnect): Make "args" const.
6793 * target-delegates.c: Rebuild.
6794 * remote.c (remote_disconnect): Update.
6795 * record.h (record_disconnect): Update.
6796 * record.c (record_disconnect): Update.
6797 * inf-child.c (inf_child_disconnect): Update.
6799 2014-06-16 Tom Tromey <tromey@redhat.com>
6801 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6802 * target.c (debug_to_rcmd, default_rcmd): Update.
6803 * target-delegates.c: Rebuild.
6804 * remote.c (remote_rcmd): Update.
6805 * monitor.c (monitor_rcmd): Update.
6807 2014-06-16 Pedro Alves <palves@redhat.com>
6809 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6810 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6811 have OBJF_SHARED set.
6812 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6813 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6814 instead of OBJF_USERLOADED.
6815 * objfiles.h (OBJF_SHARED): Update comment.
6816 (userloaded_objfile_contains_address_p): Rename to ...
6817 (shared_objfile_contains_address_p): ... this, and update
6819 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6821 (remove_symbol_file_command): Skip objfiles that don't have
6824 2014-06-16 Tom Tromey <tromey@redhat.com>
6826 * minsyms.h (prim_record_minimal_symbol)
6827 (prim_record_minimal_symbol_and_info): Update comments.
6829 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6831 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6832 or --without-guile, according to how GDB was built.
6834 2014-06-13 Tom Tromey <tromey@redhat.com>
6836 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6838 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6840 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6842 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6843 help_list.Pass all_commands, not -1, to help_list.
6844 * cli/cli-dump.c (dump_command, append_command)
6845 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6846 (binary_dump_command, binary_append_command): Pass all_commands,
6847 not -1, to help_list.
6848 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6850 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6852 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6854 * top.c (set_history): Pass all_commands, not -1, to help_list.
6855 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6856 all_commands, not -1, to help_list.
6857 * symfile.c (overlay_command): Pass all_commands, not -1, to
6859 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6861 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6863 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6865 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6866 not -1, to help_list.
6867 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6868 not -1, to help_list.
6869 * maint.c (maintenance_command, maintenance_info_command)
6870 (maintenance_print_command, maintenance_set_cmd): Pass
6871 all_commands, not -1, to help_list.
6872 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6874 * language.c (set_check): Pass all_commands, not -1, to help_list.
6875 * infcmd.c (unset_command): Pass all_commands, not -1, to
6877 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6879 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6881 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6883 * breakpoint.c (save_command): Pass all_commands, not -1, to
6885 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6886 all_commands, not -1, to help_list.
6888 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6890 * regcache.c (struct register_to_invalidate): New structure.
6891 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6893 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6895 2014-06-12 Yao Qi <yao@codesourcery.com>
6897 * varobj.c (varobj_get_num_children): Call
6898 varobj_is_dynamic_p.
6899 (varobj_list_children): Likewise.
6900 (varobj_update): Likewise. Update comments.
6902 2014-06-12 Yao Qi <yao@codesourcery.com>
6904 * varobj.c (varobj_pretty_printed_p): Rename to ...
6905 (varobj_is_dynamic_p): ... this. New function.
6906 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6907 (varobj_is_dynamic_p): Declare.
6908 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6909 (mi_print_value_p, varobj_update_one): Likewise.
6911 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6912 Yao Qi <yao@codesourcery.com>
6914 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6915 (varobj_get_iterator): Wrap up code for pretty-printer by
6916 "#if HAVE_PYTHON" and "#endif".
6917 (update_dynamic_varobj_children): Likewise.
6919 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6920 Yao Qi <yao@codesourcery.com>
6922 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6923 gdb_python_initialized is false. Move some code from varobj.c.
6924 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6925 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6926 (struct varobj_item): Moved to varobj-iter.h".
6927 (varobj_clear_saved_item): New function.
6928 (update_dynamic_varobj_children): Move python-related code to
6930 (free_variable): Call varobj_clear_saved_item and
6933 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6934 Yao Qi <yao@codesourcery.com>
6936 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6937 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6938 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6939 (py-varobj.o): New rule.
6940 * python/py-varobj.c: New file.
6941 * python/python-internal.h (py_varobj_get_iterator): Declare.
6942 * varobj-iter.h: New file.
6943 * varobj.c: Include "varobj-iter.h"
6944 (struct varobj) <child_iter>: Change its type from "PyObject *"
6945 to "struct varobj_iter *".
6946 <saved_item>: Likewise.
6947 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6948 [HAVE_PYTHON] (varobj_get_iterator): New function.
6949 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6950 python-specific code to python/py-varobj.c.
6951 (install_visualizer): Call varobj_iter_delete instead of
6953 * varobj.h (varobj_ensure_python_env): Declare.
6955 2014-06-12 Yao Qi <yao@codesourcery.com>
6957 * varobj.c (struct varobj_item): New structure.
6958 (create_child_with_value): Update declaration.
6959 (varobj_add_child): Replace arguments 'name' and 'value' with
6960 'item'. All callers updated.
6961 (install_dynamic_child): Likewise.
6962 (update_dynamic_varobj_children): Likewise.
6963 (varobj_add_child): Likewise.
6964 (create_child_with_value): Likewise.
6966 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6968 * NEWS: Create a new section for the next release branch.
6969 Rename the section of the current branch, now that it has
6972 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6974 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6975 * version.in: Bump version to 7.8.50.DATE-cvs.
6977 2014-06-11 Pedro Alves <palves@redhat.com>
6980 * ser-mingw.c (net_windows_socket_check_pending): New function.
6981 (net_windows_select_thread): Ignore spurious wakeups. Use
6982 net_windows_socket_check_pending.
6983 (net_windows_wait_handle): Check for pending events with
6984 ioctlsocket, through net_windows_socket_check_pending, instead of
6985 checking the socket's event.
6987 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6989 * python/python-internal.h (gdb_PyObject_GetAttrString)
6990 (gdb_PyObject_HasAttrString): New inline function definitions.
6991 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6992 char * of the second argument to PyObject_GetAttrString.
6994 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6996 * serial.c (serial_write): Fix index of character to be printed
6997 in call to serial_logchar when serial debug traces are enabled.
6999 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7001 * gdbtypes (resolve_dynamic_range): Add function description.
7003 2014-06-09 Pedro Alves <palves@redhat.com>
7005 * linux-nat.c (linux_child_follow_fork): Initialize status with
7006 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7007 inner block. Only pass the signal to PTRACE_DETACH if in pass
7010 2014-06-09 Gary Benson <gbenson@redhat.com>
7012 * common/signals.c (gdb_signal_from_host): Reorder to separate
7013 the always-available ANSI-standard signals from the signals that
7015 (do_gdb_signal_to_host): Likewise.
7016 * proc-events.c (signal_table): Likewise.
7018 2014-06-08 Hui Zhu <hui@codesourcery.com>
7020 * common/linux-ptrace.c (linux_disable_event_reporting): New
7022 * common/linux-ptrace.h (linux_disable_event_reporting): New
7024 * linux-nat.c (linux_child_follow_fork): Do a single step before
7027 2014-06-07 Keith Seitz <keiths@redhat.com>
7031 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7032 from symbol_matches_domain in symtab.c. All local callers
7033 of symbol_matches_domain updated.
7034 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7035 search STRUCT_DOMAIN.
7036 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7037 independently. standard_lookup will do that automatically.
7038 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7039 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7040 (cp_lookup_symbol_in_namespace): Likewise.
7041 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7042 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7043 may return a STRUCT_DOMAIN match.
7044 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7045 * cp-support.c: Include language.h.
7046 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7048 * psymtab.c (match_partial_symbol): Compare the requested
7049 domain with the symbol's domain directly.
7050 (lookup_partial_symbol): Likewise.
7051 * symtab.c (lookup_symbol_in_language): Explain when/why
7052 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7053 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7054 appropriate languages.
7055 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7056 and moved to ada-lang.c
7057 (lookup_block_symbol): Explain that this function only returns
7058 symbol matching the requested DOMAIN.
7059 Compare the requested domain with the symbol's domain directly.
7060 (iterate_over_symbols): Compare the requested domain with the
7061 symbol's domain directly.
7062 * symtab.h (symbol_matches_domain): Remove.
7064 2014-06-06 Doug Evans <xdje42@gmail.com>
7066 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7067 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7068 (gdbscm_guile_version_is_at_least): Declare.
7069 (gdbscm_scm_string_to_int): Declare.
7070 * guile/guile.c (gdbscm_guile_major_version): New global.
7071 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7072 (guile_datadir): New static global.
7073 (gdbscm_guile_data_directory): New function.
7074 (initialize_scheme_side): Update.
7075 (misc_guile_functions): Add guile-data-directory.
7076 (initialize_gdb_module): Fetch guile version number.
7077 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7078 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7079 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7080 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7082 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7083 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7084 * guile/scm-value.c (gdbscm_value_to_string): Only call
7085 scm_port_conversion_strategy if Guile version >= 2.0.6.
7087 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7089 * main.c (print_gdb_help): Add -q and --silent.
7091 2014-06-06 Gary Benson <gbenson@redhat.com>
7093 * common/signals.c: Remove preprocessor conditionals for
7094 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7095 SIGSEGV and SIGTERM.
7096 * proc-events.c: Likewise.
7098 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7100 * symfile.c (symfile_free_objfile): Remove restriction to
7102 * symfile-mem.c (symbol_file_add_from_memory): Call
7103 add_target_sections_of_objfile.
7105 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7107 * guile/scm-value.c (gdbscm_history_append_x): Use
7108 'vlscm_get_value_smob_arg_unsafe' instead of
7109 'vlscm_scm_to_value'.
7111 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7114 * utils.c (printchar): Don't escape at all if quoter is NUL.
7115 Update function documentation to clarify effect of parameter
7117 * remote.c (escape_buffer): Pass '\\' as the quoter to
7118 fputstrn_unfiltered.
7119 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7120 generate the output.
7121 (mi_solib_unloaded): Same.
7123 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7125 * development.sh: Delete.
7126 * Makefile.in (config.status): Adjust dependency on development.sh.
7127 * configure.ac: Adjust development.sh source call.
7128 * configure: Regenerate.
7130 2014-06-04 Doug Evans <xdje42@gmail.com>
7132 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7133 is_scheme_bkpt, spec.
7134 (bpscm_make_breakpoint_smob): Initialize new members.
7135 (gdbscm_create_breakpoint_x): Split into two ...
7136 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7137 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7138 (scheme_function breakpoint_functions): Update.
7139 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7140 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7141 register-breakpoint!.
7143 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7146 * mem-break.c (z_type_supported): Return zero if
7147 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7149 2014-06-04 Tom Tromey <tromey@redhat.com>
7151 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7152 value_from_contents_and_address_unresolved.
7153 (ada_template_to_fixed_record_type_1): Likewise.
7154 (ada_which_variant_applies): Likewise.
7155 * value.h (value_from_contents_and_address_unresolved): Declare.
7156 * value.c (value_from_contents_and_address_unresolved): New
7158 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7159 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7160 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7162 2014-06-04 Tom Tromey <tromey@redhat.com>
7164 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7166 2014-06-04 Tom Tromey <tromey@redhat.com>
7168 * procfs.c (procfs_attach): Make "args" const.
7169 * windows-nat.c (windows_attach): Make "args" const.
7170 * nto-procfs.c (procfs_attach): Make "args" const.
7171 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7172 * go32-nat.c (go32_attach): Make "args" const.
7173 * gnu-nat.c (gnu_attach): Make "args" const.
7174 * darwin-nat.c (darwin_attach): Make "args" const.
7175 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7176 * linux-nat.c (linux_nat_attach): Make "args" const.
7177 * remote.c (extended_remote_attach_1, extended_remote_attach):
7179 * target.h (struct target_ops) <to_attach>: Make "args" const.
7180 (find_default_attach): Likewise.
7181 * utils.c (parse_pid_to_attach): Make "args" const.
7182 * utils.h (parse_pid_to_attach): Update.
7184 2014-06-04 Tom Tromey <tromey@redhat.com>
7186 * target-delegates.c: Rebuild.
7187 * target.c (default_thread_address_space): New function.
7188 (target_thread_address_space): Simplify.
7189 * target.h (struct target_ops) <to_thread_address_space>: Add
7190 TARGET_DEFAULT_FUNC.
7192 2014-06-04 Doug Evans <xdje42@gmail.com>
7194 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7196 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7198 * record-btrace.c: Include event-loop.h and inf-loop.h.
7199 (record_btrace_resume_exec_dir)
7200 (record_btrace_async_inferior_event_handler)
7201 (record_btrace_handle_async_inferior_event): New.
7202 (record_btrace_open): Create async event handler.
7203 (record_btrace_close): Delete async event handler.
7204 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7205 Mark async event handler.
7206 (record_btrace_execution_direction): New.
7207 (init_record_btrace_ops): Initialize to_execution_direction.
7209 2014-06-03 Doug Evans <xdje42@gmail.com>
7211 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7212 (gdbscm_make_parameter): Ditto.
7214 2014-06-03 Doug Evans <dje@google.com>
7216 * exec.c (exec_close_1): Call clear_section_table instead of
7217 resize_section_table.
7218 (clear_section_table): New function.
7219 (resize_section_table): Make static. Rename arg num_added to
7221 * exec.h (clear_section_table): Declare.
7222 (resize_section_table): Delete.
7223 * progspace.c (release_program_space): Call clear_section_table
7224 instead of resize_section_table.
7226 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7228 * NEWS (Python Scripting): Add entry about the new xmethods
7231 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7233 * python/py-xmethods.c: New file.
7234 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7235 (objfpy_dealloc): XDECREF on the new xmethods field.
7236 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7238 (objfpy_get_xmethods): New function.
7239 (objfile_getset): New entry 'xmethods'.
7240 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7241 (pspy_dealloc): XDECREF on the new xmethods field.
7242 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7244 (pspy_get_xmethods): New function.
7245 (pspace_getset): New entry 'xmethods'.
7246 * python/python-internal.h: Add declarations for new functions.
7247 * python/python.c (_initialize_python): Invoke
7248 gdbpy_initialize_xmethods.
7249 * python/lib/gdb/__init__.py (xmethods): New
7251 * python/lib/gdb/xmethod.py: New file.
7252 * python/lib/gdb/command/xmethods.py: New file.
7254 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7256 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7257 best match method returned by find_overload_match is an xmethod.
7258 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7259 the best matching operator returned by find_overload_match is an
7261 * valops.c: #include "extension.h".
7262 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7263 Return void. The list of matching source methods is returned in
7264 "fn_list" and a vector of matching debug method workers is
7265 returned in "xm_worker_vec". Update all callers.
7266 (value_find_oload_method_list): Likewise.
7267 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7268 non-NULL, then the index of the best matching method in this
7269 vector is returned. Update all callers.
7270 (find_overload_match): Include xmethods while performing overload
7273 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7275 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7276 * extension-priv.h (struct extension_language_ops): Add the
7278 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7279 get_matching_xmethod_workers, get_xmethod_argtypes,
7280 invoke_xmethod, free_xmethod_worker,
7281 free_xmethod_worker_vec): New functions.
7282 * extension.h: #include "common/vec.h".
7283 New function declarations.
7284 (struct xmethod_worker): New struct.
7285 (VEC (xmethod_worker_ptr)): New vector type.
7286 (xmethod_worker_ptr): New typedef.
7287 (xmethod_worker_vec): Likewise.
7288 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7290 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7291 (struct builtin_type): New field "xmethod".
7292 * valarith.c (value_ptradd): Assert that the value argument is not
7294 * valops.c (value_must_coerce_to_target): Return 0 for
7295 lval_xcallable values.
7296 * value.c (struct value): New field XM_WORKER in the field
7298 (value_address, value_raw_address): Return 0 for lval_xcallable
7300 (set_value_address): Assert that the value is not an
7302 (value_free): Free the associated xmethod worker when freeing
7303 lval_xcallable values.
7304 (set_value_component_location): Assert that the WHOLE value is not
7306 (value_of_xmethod, call_xmethod): New functions.
7307 * value.h: Declare "struct xmethod_worker".
7308 Declare new functions value_of_xmethod, call_xmethod.
7310 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7311 Pedro Alves <palves@redhat.com>
7313 PR breakpoints/17000
7314 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7315 New function, extracted from software_breakpoint_inserted_here_p.
7316 (software_breakpoint_inserted_here_p): Replace factored out code
7317 by call to find_non_raw_software_breakpoint_inserted_here.
7318 (bp_target_info_copy_insertion_state): New function.
7319 (bkpt_insert_location): Handle the case of a single-step
7320 breakpoint already inserted at the same address.
7321 (bkpt_remove_location): Handle the case of a single-step
7322 breakpoint still inserted at the same address.
7323 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7324 breakpoint already inserted at the same address.
7325 (deprecated_remove_raw_breakpoint): Handle the case of a
7326 non-raw breakpoint still inserted at the same address.
7327 (find_single_step_breakpoint): New function, extracted from
7328 single_step_breakpoint_inserted_here_p.
7329 (find_single_step_breakpoint): New function,
7330 factored out from single_step_breakpoint_inserted_here_p.
7331 (single_step_breakpoint_inserted_here_p): Reimplement.
7333 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7335 Pushed by Joel Brobecker <brobecker@adacore.com>
7336 * source.c (show_substitute_path_command): Fix display of matching
7339 2014-06-03 Gary Benson <gbenson@redhat.com>
7341 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7343 2014-06-02 Doug Evans <xdje42@gmail.com>
7345 Add parameter support for Guile.
7346 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7347 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7348 (scm-param.o): New rule.
7349 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7350 (gdbscm_misc_error): Declare.
7351 (gdbscm_canonicalize_command_name): Declare.
7352 (gdbscm_scm_to_host_string): Declare.
7353 (gdbscm_scm_from_host_string): Declare.
7354 (gdbscm_initialize_parameters): Declare.
7355 * guile/guile.c (initialize_gdb_module): Call
7356 gdbscm_initialize_parameters.
7357 * guile/lib/gdb.scm: Export parameter symbols.
7358 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7359 cmdscm_canonicalize_name and made public. All callers updated.
7360 * guile/scm-exception.c (gdbscm_misc_error): New function.
7361 * guile/scm-param.c: New file.
7362 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7363 (gdbscm_scm_to_host_string): New function.
7364 (gdbscm_scm_from_host_string): New function.
7365 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7367 2014-06-02 Doug Evans <xdje42@gmail.com>
7369 Add command support for Guile.
7370 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7371 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7372 (scm-cmd.o): New rule.
7373 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7374 (gdbscm_user_error_p): Declare.
7375 (gdbscm_parse_command_name): Declare.
7376 (gdbscm_valid_command_class_p): Declare.
7377 (gdbscm_initialize_commands): Declare.
7378 * guile/guile.c (initialize_gdb_module): Call
7379 gdbscm_initialize_commands.
7380 * guile/lib/gdb.scm: Export command symbols.
7381 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7382 (throw-user-error): New function.
7383 * guile/scm-cmd.c: New file.
7384 * guile/scm-exception.c (user_error_symbol): New static global.
7385 (gdbscm_user_error_p): New function.
7386 (gdbscm_initialize_exceptions): Set user_error_symbol.
7387 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7389 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7391 * top.c (command_loop): Handle comments here...
7392 (command_line_input): ... not here.
7394 2014-06-02 Doug Evans <xdje42@gmail.com>
7396 Add progspace support for Guile.
7397 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7398 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7399 (scm-progspace.o): New rule.
7400 * guile/guile-internal.h (pspace_smob): New typedef.
7401 (psscm_pspace_smob_pretty_printers): Declare.
7402 (psscm_pspace_smob_from_pspace): Declare.
7403 (psscm_scm_from_pspace): Declare.
7404 * guile/guile.c (initialize_gdb_module): Call
7405 gdbscm_initialize_pspaces.
7406 * guile/lib/gdb.scm: Export progspace symbols.
7407 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7409 (append-pretty-printer!): Ditto.
7410 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7412 * guile/scm-progspace.c: New file.
7414 2014-06-03 Alan Modra <amodra@gmail.com>
7416 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7417 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7419 2014-06-02 Doug Evans <dje@google.com>
7421 Add support for skeletonless type units.
7422 * dwarf2read.c (struct dwarf2_per_objfile): New member
7423 n_allocated_type_units.
7424 (struct dwarf2_per_objfile) <tu_stats>: New member
7425 nr_all_type_units_reallocs.
7426 (create_signatured_type_table_from_index): Initialize
7427 n_allocated_type_units
7428 (create_all_type_units): Ditto.
7429 (add_type_unit): Move up in file. New arg slot.
7430 All callers updated. Increase space for all_type_units more
7432 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7433 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7434 (lookup_dwp_signatured_type): Ditto.
7435 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7436 All callers updated.
7437 (build_type_psymtabs_1): Leave type_unit_groups as
7438 NULL if no TUs present.
7439 (print_tu_stats): New function.
7440 (process_skeletonless_type_unit): New function.
7441 (process_dwo_file_for_skeletonless_type_units): New
7443 (process_skeletonless_type_units): New function.
7444 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7445 Call print tu_stats if debugging enabled.
7447 2014-06-02 Pedro Alves <palves@redhat.com>
7449 * breakpoint.c (build_target_command_list): Don't build a command
7450 list if we have any duplicate location that isn't a dprintf.
7452 2014-06-02 Pedro Alves <palves@redhat.com>
7454 * breakpoint.c (dprintf_breakpoint_hit): New function.
7455 (initialize_breakpoint_ops): Install it as dprintf's
7456 breakpoint_hit method.
7458 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7460 * source.c (substitute_path_rule_matches): Simplify using
7461 filename_ncmp instead of FILENAME_CMP.
7463 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7465 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7467 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7469 * configure.ac: When Guile is available, check for the
7470 availability of 'scm_new_smob'.
7471 * configure, config.h.in: Regenerate.
7472 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7475 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7477 * frame.c (struct frame_info): Add stop_string field.
7478 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7479 (get_prev_frame_always): Old content moved into
7480 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7481 TRY_CATCH, handle MEMORY_ERROR exceptions.
7482 (frame_stop_reason_string): New function definition.
7483 * frame.h (unwind_stop_reason_to_string): Extend comment to
7484 mention frame_stop_reason_string.
7485 (frame_stop_reason_string): New function declaration.
7486 * stack.c (frame_info): Switch to frame_stop_reason_string.
7487 (backtrace_command_1): Switch to frame_stop_reason_string.
7488 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7489 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7490 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7492 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7494 * frame.c (frame_stop_reason_string): Rename to ...
7495 (unwind_stop_reason_to_string): this.
7496 * frame.h (frame_stop_reason_string): Rename to ...
7497 (unwind_stop_reason_to_string): this.
7498 * stack.c (frame_info): Update call to frame_stop_reason_string.
7499 (backtrace_command_1): Likewise.
7500 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7501 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7503 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7505 * frame.c (remove_prev_frame): New function.
7506 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7509 2014-05-29 Pedro Alves <palves@redhat.com>
7511 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7512 and make it const. When a single-step decays to a continue,
7513 clear 'step', not 'hw_step'. Pass whether the caller wanted
7514 to step to user_visible_resume_ptid, not what we ask the
7517 2014-05-29 Pedro Alves <palves@redhat.com>
7519 * infrun.c (process_event_stop_test, handle_step_into_function)
7520 (handle_step_into_function_backward): Adjust.
7521 Don't set the even thread's stop_step and call stop_waiting before
7522 calling end_stepping_range. Instead do that ...
7523 (end_stepping_range): ... here. Take an ecs pointer parameter.
7525 2014-05-29 Pedro Alves <palves@redhat.com>
7527 * infrun.c (stop_stepping): Rename to ...
7528 (stop_waiting): ... this.
7529 (proceed): Update comment.
7530 (process_event_stop_test, handle_inferior_event)
7531 (handle_signal_stop, handle_step_into_function)
7532 (handle_step_into_function_backward): Update.
7534 2014-05-29 Pedro Alves <palves@redhat.com>
7536 * infcall.c (run_inferior_call): Don't check whether the current
7537 thread is running after the proceed call.
7539 2014-05-29 Pedro Alves <palves@redhat.com>
7540 Tom Tromey <tromey@redhat.com>
7542 * NEWS: Mention "maint set target-async", "set mi-async", and that
7543 background execution commands are now always available.
7544 * target.h (target_async_permitted): Update comment.
7545 * target.c (target_async_permitted, target_async_permitted_1):
7547 (set_target_async_command): Rename to ...
7548 (maint_set_target_async_command): ... this.
7549 (show_target_async_command): Rename to ...
7550 (maint_show_target_async_command): ... this.
7551 (_initialize_target): Adjust.
7552 * infcmd.c (prepare_execution_command): Make extern.
7553 * inferior.h (prepare_execution_command): Declare.
7554 * infrun.c (set_observer_mode): Leave target async alone.
7555 * mi/mi-interp.c (mi_interpreter_init): Install
7556 mi_on_sync_execution_done as sync_execution_done observer.
7557 (mi_on_sync_execution_done): New function.
7558 (mi_execute_command_input_handler): Don't print the prompt if we
7559 just started a synchronous command with an async target.
7560 (mi_on_resume): Check sync_execution before printing prompt.
7561 * mi/mi-main.h (mi_async_p): Declare.
7562 * mi/mi-main.c: Include gdbcmd.h.
7563 (mi_async_p): New function.
7564 (mi_async, mi_async_1): New globals.
7565 (set_mi_async_command, show_mi_async_command, mi_async): New
7567 (exec_continue): Call prepare_execution_command.
7568 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7569 (mi_execute_async_cli_command): Use mi_async_p.
7570 (_initialize_mi_main): Install "set mi-async". Make
7571 "target-async" a deprecated alias.
7573 2014-05-29 Pedro Alves <palves@redhat.com>
7575 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7576 (_initialize_cli_interp): Adjust.
7577 * event-loop.c: Include "observer.h".
7578 (start_event_loop): Notify 'command_error' observers instead of
7579 calling display_gdb_prompt. Remove FIXME comment.
7580 * event-top.c (display_gdb_prompt): Remove call into the
7582 * inf-loop.c: Include "observer.h".
7583 (inferior_event_handler): Notify 'command_error' observers instead
7584 of calling display_gdb_prompt.
7585 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7586 observers instead of calling display_gdb_prompt.
7587 * interps.c (interp_set): Don't call display_gdb_prompt.
7588 (current_interp_display_prompt_p): Delete.
7589 * interps.h (interp_prompt_p): Delete declaration.
7590 (interp_prompt_p_ftype): Delete.
7591 (struct interp_procs) <prompt_proc_p>: Delete field.
7592 (current_interp_display_prompt_p): Delete declaration.
7593 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7594 (_initialize_mi_interp): Adjust.
7595 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7596 'command_error' observers.
7597 (tui_on_sync_execution_done, tui_on_command_error): New
7599 (tui_display_prompt_p): Delete.
7600 (_initialize_tui_interp): Adjust.
7602 2014-05-29 Pedro Alves <palves@redhat.com>
7605 * cli/cli-interp.c: Include infrun.h and observer.h.
7606 (cli_uiout, cli_interp): New globals.
7607 (cli_on_signal_received, cli_on_end_stepping_range)
7608 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7610 (cli_interpreter_init): Install them as 'end_stepping_range',
7611 'signal_received' 'signal_exited', 'exited' and 'no_history'
7613 (_initialize_cli_interp): Remove cli_interp local.
7614 * infrun.c (handle_inferior_event): Call the several stop reason
7615 observers instead of printing the stop reason directly.
7616 (end_stepping_range): New function.
7617 (print_end_stepping_range_reason, print_signal_exited_reason)
7618 (print_exited_reason, print_signal_received_reason)
7619 (print_no_history_reason): Make static, and add an uiout
7620 parameter. Print to that instead of to CURRENT_UIOUT.
7621 * infrun.h (print_end_stepping_range_reason)
7622 (print_signal_exited_reason, print_exited_reason)
7623 (print_signal_received_reason print_no_history_reason): New
7625 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7627 <cli_uiout>: New field.
7628 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7629 uiout for CLI output. Install 'signal_received',
7630 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7632 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7633 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7634 (mi_on_no_history): New functions.
7635 (ui_out_free_cleanup): Delete function.
7636 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7637 instead use the one already stored in the MI interpreter data.
7638 (mi_ui_out): Adjust.
7639 * tui/tui-interp.c: Include infrun.h and observer.h.
7640 (tui_interp): New global.
7641 (tui_on_signal_received, tui_on_end_stepping_range)
7642 (tui_on_signal_exited, tui_on_exited)
7643 (tui_on_no_history): New functions.
7644 (tui_init): Install them as 'end_stepping_range',
7645 'signal_received' 'signal_exited', 'exited' and 'no_history'
7647 (_initialize_tui_interp): Delete tui_interp local.
7649 2014-05-29 Pedro Alves <palves@redhat.com>
7652 * linux-nat.c (linux_nat_resume_callback): Rename the second
7653 parameter to 'except'. Skip LP if it points to EXCEPT.
7654 (linux_nat_resume): Don't mark the event lwp as not stopped
7655 before resuming sibling lwps. Instead ask
7656 linux_nat_resume_callback to skip the event lwp. Mark it as not
7657 stopped after actually resuming it.
7658 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7660 (wait_lwp): Mark the lwp as stopped here.
7661 (stop_wait_callback): Mark the lwp as not stopped right after
7662 resuming it. Don't mark lwps as stopped here.
7663 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7664 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7666 2014-05-29 Pedro Alves <palves@redhat.com>
7669 * infrun.c (resume): Determine how much to resume depending on
7670 whether the caller wanted a step, not whether we can hardware step
7671 the target. Mark all threads that we intend to run as running,
7672 unless we're calling an inferior function.
7673 (normal_stop): If the thread is running an infcall, don't finish
7675 * target.c (target_resume): Don't mark threads as running here.
7677 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7679 * serial.c (_initialize_serial): Remove support for
7680 the "set remotebaud" and "show remotebaud" commands.
7681 * NEWS: Add entry documenting the removal of that command.
7683 2014-05-28 Yao Qi <yao@codesourcery.com>
7685 * charset.c: Fix typo in comments.
7687 2014-05-27 Gary Benson <gbenson@redhat.com>
7689 * utils.c (internal_vproblem): Prompt for a bug report.
7691 2014-05-26 Andy Wingo <wingo@igalia.com>
7693 * guile/scm-arch.c (arscm_mark_arch_smob):
7694 * guile/scm-block.c (bkscm_mark_block_smob)
7695 (bkscm_mark_block_syms_progress_smob):
7696 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7697 * guile/scm-exception.c (exscm_mark_exception_smob):
7698 * guile/scm-frame.c (frscm_mark_frame_smob):
7699 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7700 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7701 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7702 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7703 (ppscm_mark_pretty_printer_worker_smob):
7704 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7705 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7706 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7707 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7709 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7712 2014-05-26 Andy Wingo <wingo@igalia.com>
7713 Doug Evans <xdje42@gmail.com>
7715 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7716 empty_base_class. All uses updated.
7717 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7718 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7720 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7721 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7722 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7723 (gdbscm_gsmob_has_property_p, add_property_name)
7724 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7725 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7726 (gdb-object-has-property?, gdb-object-properties): Remove.
7727 (gdb-object-kind): Renamed from gsmob-kind.
7729 2014-05-26 Andy Wingo <wingo@igalia.com>
7731 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7732 * configure: Regenerate.
7734 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7736 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7738 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7740 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7741 (replay_memory_access_read_only, replay_memory_access_read_write)
7742 (replay_memory_access_types, replay_memory_access)
7743 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7744 (cmd_set_record_btrace, cmd_show_record_btrace)
7745 (cmd_show_replay_memory_access): New.
7746 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7747 (record_btrace_remove_breakpoint): Replace
7748 record_btrace_allow_memory_access with replay_memory_access.
7749 (_initialize_record_btrace): Add commands.
7750 * NEWS: Announce it.
7752 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7754 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7756 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7758 * MAINTAINERS (Write After Approval): Move self back from
7761 2014-05-22 Pedro Alves <palves@redhat.com>
7763 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7764 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7765 (disable_randomization, enum exec_direction_kind)
7766 (execution_direction, stop_registers, start_remote)
7767 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7768 (wait_for_inferior, normal_stop, get_last_target_status)
7769 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7770 (insert_step_resume_breakpoint_at_sal)
7771 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7772 (set_step_info, print_stop_event, signal_stop_state)
7773 (signal_print_state, signal_pass_state, signal_stop_update)
7774 (signal_print_update, signal_pass_update)
7775 (update_signals_program_target, clear_exit_convenience_vars)
7776 (displaced_step_dump_bytes, update_observer_mode)
7777 (signal_catch_update, gdb_signal_from_command): Move
7779 * infrun.h: ... to this new file.
7780 * amd64-tdep.c: Include infrun.h.
7781 * annotate.c: Include infrun.h.
7782 * arch-utils.c: Include infrun.h.
7783 * arm-linux-tdep.c: Include infrun.h.
7784 * arm-tdep.c: Include infrun.h.
7785 * break-catch-sig.c: Include infrun.h.
7786 * breakpoint.c: Include infrun.h.
7787 * common/agent.c: Include infrun.h instead of inferior.h.
7788 * corelow.c: Include infrun.h.
7789 * event-top.c: Include infrun.h.
7790 * go32-nat.c: Include infrun.h.
7791 * i386-tdep.c: Include infrun.h.
7792 * inf-loop.c: Include infrun.h.
7793 * infcall.c: Include infrun.h.
7794 * infcmd.c: Include infrun.h.
7795 * infrun.c: Include infrun.h.
7796 * linux-fork.c: Include infrun.h.
7797 * linux-nat.c: Include infrun.h.
7798 * linux-thread-db.c: Include infrun.h.
7799 * monitor.c: Include infrun.h.
7800 * nto-tdep.c: Include infrun.h.
7801 * procfs.c: Include infrun.h.
7802 * record-btrace.c: Include infrun.h.
7803 * record-full.c: Include infrun.h.
7804 * remote-m32r-sdi.c: Include infrun.h.
7805 * remote-mips.c: Include infrun.h.
7806 * remote-notif.c: Include infrun.h.
7807 * remote-sim.c: Include infrun.h.
7808 * remote.c: Include infrun.h.
7809 * reverse.c: Include infrun.h.
7810 * rs6000-tdep.c: Include infrun.h.
7811 * s390-linux-tdep.c: Include infrun.h.
7812 * solib-irix.c: Include infrun.h.
7813 * solib-osf.c: Include infrun.h.
7814 * solib-svr4.c: Include infrun.h.
7815 * target.c: Include infrun.h.
7816 * top.c: Include infrun.h.
7817 * windows-nat.c: Include infrun.h.
7818 * mi/mi-interp.c: Include infrun.h.
7819 * mi/mi-main.c: Include infrun.h.
7820 * python/py-threadevent.c: Include infrun.h.
7822 2014-05-22 Pedro Alves <palves@redhat.com>
7824 * infrun.c (handle_inferior_event): Store the exit code for
7825 --return-child-result here, instead of ...
7826 (print_exited_reason): ... here.
7828 2014-05-21 Pedro Alves <palves@redhat.com>
7831 * gdbthread.h (struct thread_control_state): New field
7833 * infrun.c (follow_fork): Copy the new thread control field to the
7835 (clear_proceed_status_thread): Clear the new thread control field.
7836 (proceed): Set the new thread control field.
7837 * interps.h (command_interp): Declare.
7838 * interps.c (command_interpreter): New global.
7839 (command_interp): New function.
7840 (interp_exec): Set `command_interpreter' while here.
7841 * cli-out.c (cli_uiout_dtor): New function.
7842 (cli_ui_out_impl): Install it.
7843 * mi/mi-interp.c: Include cli-out.h.
7844 (mi_cmd_interpreter_exec): Add comment.
7845 (restore_current_uiout_cleanup): New function.
7846 (ui_out_free_cleanup): New function.
7847 (mi_on_normal_stop): If finishing an execution command started by
7848 a CLI command, or any kind of breakpoint-like event triggered,
7849 print the stop event to the output (CLI) stream.
7850 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7852 2014-05-21 Pedro Alves <palves@redhat.com>
7854 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7855 current source line having changed.
7856 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7857 * infrun.c (normal_stop): Adjust call to
7858 set_current_sal_from_frame.
7859 * source.c (clear_lines_listed_range): New function.
7860 (set_current_source_symtab_and_line, identify_source_line): Clear
7861 the lines listed range.
7862 (line_info): Handle the first "info line" after the current source
7863 line having changed.
7864 * stack.c (print_stack_frame): Remove center handling.
7865 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7868 2014-05-21 Pedro Alves <palves@redhat.com>
7870 * inf-child.c (inf_child_mourn_inferior): New function.
7871 * inf-child.h (inf_child_mourn_inferior): New declaration.
7872 * darwin-nat.c (darwin_mourn_inferior): Use
7873 inf_child_mourn_inferior.
7874 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7875 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7876 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7877 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7878 * windows-nat.c (windows_mourn_inferior): Likewise.
7880 2014-05-21 Doug Evans <xdje42@gmail.com>
7882 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7884 2014-05-21 Doug Evans <xdje42@gmail.com>
7886 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7887 (gdbscm_out_of_range_error): Ditto.
7888 (gdbscm_memory_error): Ditto.
7889 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7890 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7891 (gdbscm_out_of_range_error): Update.
7892 (gdbscm_memory_error): Update.
7893 (gdbscm_scm_to_target_string_unsafe): Delete.
7895 2014-05-21 Pedro Alves <palves@redhat.com>
7897 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7899 (inf_child_open_target): New function.
7900 (inf_child_open): Use inf_child_open_target to push the target
7901 instead of erroring out.
7902 (inf_child_disconnect, inf_child_close)
7903 (inf_child_maybe_unpush_target): New functions.
7904 (inf_child_target): Install inf_child_disconnect and
7905 inf_child_close. Store a pointer to the returned object.
7906 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7908 * target.c (auto_connect_native_target): New global.
7909 (show_default_run_target): New function.
7910 (find_default_run_target): Return NULL if automatically connecting
7911 to the native target is disabled.
7912 (_initialize_target): Install set/show auto-connect-native-target.
7913 * NEWS: Mention "set auto-connect-native-target", and "target
7915 * linux-nat.c (super_close): New global.
7916 (linux_nat_close): Call super_close.
7917 (linux_nat_add_target): Store a pointer to the base class's
7919 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7920 inf_child_maybe_unpush.
7921 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7923 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7924 the inferior. Use inf_child_maybe_unpush_target.
7925 (inf_ttrace_attach): Don't push the target if it is already
7927 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7928 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7929 after mourning the inferior. Use inf_child_maybe_unpush_target.
7930 (darwin_attach_pid): Don't push the target if it is already
7932 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7933 mourning the inferior. Use inf_child_maybe_unpush_target.
7934 (gnu_detach): Use inf_child_maybe_unpush_target.
7935 * go32-nat.c (go32_create_inferior): Don't push the target if it
7937 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7938 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7939 (procfs_open): Rename to ...
7940 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7941 comments. Can target_preopen before changing node. Call
7942 inf_child_open_target to push the target explicitly.
7943 (procfs_attach): Don't push the target if it is already pushed.
7944 (procfs_detach): Use inf_child_maybe_unpush_target.
7945 (procfs_create_inferior): Don't push the target if it is already
7947 (nto_native_ops): New global.
7948 (procfs_open): Reimplement.
7949 (procfs_native_open): New function.
7950 (init_procfs_targets): Install procfs_native_open as to_open of
7951 "target native". Store a pointer to the "native" target in
7953 * procfs.c (procfs_attach): Don't push the target if it is already
7955 (procfs_detach): Use inf_child_maybe_unpush_target.
7956 (procfs_mourn_inferior): Only unpush the target after mourning the
7957 inferior. Use inf_child_maybe_unpush_target.
7958 (procfs_init_inferior): Don't push the target if it is already
7960 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7961 if it is already pushed.
7963 2014-05-21 Pedro Alves <palves@redhat.com>
7965 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7966 and "procfs" targets are now called "native" instead.
7968 2014-05-21 Pedro Alves <palves@redhat.com>
7970 * go32-nat.c (go32_open): Delete.
7971 (go32_target): Don't override the to_open method.
7973 2014-05-21 Pedro Alves <palves@redhat.com>
7975 * nto-procfs.c (procfs_can_run): New function.
7976 (nto_procfs_ops): New global.
7977 (init_procfs_targets): New, based on procfs_target. Install
7978 "target native" in addition to "target procfs".
7979 (_initialize_procfs): Call init_procfs_targets instead of adding
7982 2014-05-21 Pedro Alves <palves@redhat.com>
7984 * windows-nat.c (windows_target): Don't override to_shortname,
7985 to_longname or to_doc.
7987 2014-05-21 Pedro Alves <palves@redhat.com>
7989 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7992 2014-05-21 Pedro Alves <palves@redhat.com>
7994 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7995 to_shortname, to_longname or to_doc.
7997 2014-05-21 Pedro Alves <palves@redhat.com>
7999 * go32-nat.c (go32_target): Don't override to_shortname,
8000 to_longname or to_doc.
8002 2014-05-21 Pedro Alves <palves@redhat.com>
8004 * inf-child.c (inf_child_open): Remove mention of "child".
8005 (inf_child_target): Rename target to "native" instead of "child".
8007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8009 * Makefile.in (SFILES): Delete "regset.c".
8010 (COMMON_OBS): Delete "regset.o".
8012 * regset.h (regset_alloc): Delete prototype.
8014 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8016 * sparc-linux-tdep.c (sparc32_linux_gregset)
8017 (sparc32_linux_fpregset): New static regset structures.
8018 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8019 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8021 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8022 (sparc64_linux_fpregset): New static regset structures.
8023 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8024 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8025 New static regset structures.
8026 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8027 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8028 New static regset structures.
8029 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8030 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8031 New static regset structures.
8032 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8033 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8034 New static regset structures.
8035 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8037 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8039 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8040 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8041 register maps ("regmaps") from "*regset" to "*regmap". Do this
8042 for all regmap types and variables.
8043 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8044 (sparc32_linux_supply_core_gregset)
8045 (sparc32_linux_collect_core_gregset)
8046 (sparc32_linux_supply_core_fpregset)
8047 (sparc32_linux_collect_core_fpregset): Likewise.
8048 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8049 (sparc_gregmap, sparc_fpregmap): ... these.
8050 (sparc_supply_gregset, sparc_collect_gregset)
8051 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8052 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8053 (_initialize_sparc_nat): Rename regmaps.
8054 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8055 (sparc_gregmap, sparc_fpregmap): ... these.
8056 (sparc_supply_gregset, sparc_collect_gregset)
8057 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8058 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8060 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8061 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8063 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8065 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8066 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8067 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8069 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8070 (sparc32_bsd_fpregset): Rename to...
8071 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8072 (sparc32_bsd_fpregmap): ... these.
8073 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8074 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8075 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8076 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8077 (struct sparc_gregmap, struct sparc_fpregmap)
8078 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8079 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8080 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8081 (sparc32_supply_regset, sparc32_collect_gregset)
8082 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8084 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8085 (sparc64_linux_ptrace_gregmap): ... this.
8086 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8087 (_initialize_sparc64_linux_nat): Rename regmaps.
8088 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8089 (sparc64_linux_core_gregmap): ... this.
8090 (sparc64_linux_supply_core_gregset)
8091 (sparc64_linux_collect_core_gregset)
8092 (sparc64_linux_supply_core_fpregset)
8093 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8094 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8095 (sparc64_sol2_fpregset): Rename to...
8096 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8097 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8098 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8100 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8101 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8102 (sparc64_bsd_fpregset): Rename to...
8103 (struct sparc_gregmap, sparc64_sol2_gregmap)
8104 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8105 (sparc64_bsd_fpregmap): ... these.
8106 (sparc64_supply_gregset, sparc64_collect_gregset)
8107 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8109 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8110 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8111 (sparc64fbsd_gregmap): ... this.
8112 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8113 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8115 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8116 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8117 (sparc64nbsd_collect_fpregset): Likewise.
8118 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8119 (sparc64nbsd_gregmap): ... this.
8120 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8122 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8123 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8124 (sparc64obsd_gregmap): ... this.
8125 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8127 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8128 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8129 (sparc32nbsd_gregmap): ... this.
8130 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8133 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8135 * score-tdep.c (score7_linux_gregset): New static regset
8137 (score7_linux_regset_from_core_section): Remove dynamic regset
8139 (score_gdbarch_init): Drop allocation of tdep structure.
8140 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8142 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8144 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8146 (am33_regset_from_core_section): Remove dynamic regset
8149 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8151 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8152 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8154 (mips_linux_regset_from_core_section): Remove dynamic regset
8156 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8157 'gregset64', 'fpregset', and 'fpregset64'.
8158 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8159 deleted tdep fields.
8161 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8163 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8165 (amd64_regset_from_core_section): Remove dynamic regset
8167 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8169 (amd64obsd_regset_from_core_section): Remove dynamic regset
8171 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8173 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8174 x86-common regset supply function.
8175 * i386-tdep.c (i386_collect_gregset): Make static.
8176 (i386_gregset): New global regset structure.
8177 (i386_fpregset, i386_xstateregset): New static regset structures.
8178 (i386_regset_from_core_section): Remove dynamic regset
8180 (i386_gdbarch_init): Remove initialization of tdep fields
8181 'gregset', 'fpregset', and 'xstateregset'.
8182 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8183 'fpregset', and 'xstateregset'.
8184 (i386_collect_gregset): Remove prototype.
8185 (i386_gregset): New declaration.
8186 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8188 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8191 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8193 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8194 (arm_linux_vfpregset): New static regset structures.
8195 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8197 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8198 and 'vfpregset' fields.
8200 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8202 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8203 (aarch64_linux_fpregset): New static regset structures.
8204 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8205 of regset structures.
8206 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8209 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8211 * regset.h (struct regset): Remove gdbarch field.
8212 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8213 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8214 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8216 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8217 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8218 (ppc32_linux_vsxregset): Likewise.
8219 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8220 via the regcache instead of the regset.
8221 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8222 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8223 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8224 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8227 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8229 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8230 Constify structures.
8231 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8232 (alphanbsd_aout_gregset): Likewise.
8233 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8234 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8236 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8237 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8239 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8240 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8241 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8242 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8243 * m88k-tdep.c (m88k_gregset): Likewise.
8244 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8245 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8246 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8247 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8248 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8249 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8250 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8251 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8252 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8254 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8255 * sh-tdep.h (sh_corefile_gregset): Likewise.
8256 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8257 * vax-tdep.c (vax_gregset): Likewise.
8259 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8261 Fix TLS access for -static -pthread.
8262 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8263 (try_thread_db_load_1): Initialize it.
8264 (thread_db_get_thread_local_address): Call it if LM is zero.
8265 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8266 * target.h (struct target_ops) (to_get_thread_local_address): Add
8267 load_module_addr comment.
8269 2014-05-21 Pedro Alves <palves@redhat.com>
8271 * dcache.c (dcache_read_memory_partial): If reading the cache line
8272 fails, fallback to reading just the memory the caller wanted.
8274 2014-05-20 Doug Evans <dje@google.com>
8276 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8277 instead of get_current_arch.
8279 2014-05-20 Pedro Alves <palves@redhat.com>
8281 * NEWS: Mention that compare-sections now works with all targets.
8283 * remote.c (PACKET_qCRC): New enum value.
8284 (remote_verify_memory): Don't send qCRC if the target has no
8285 execution. Use packet_support/packet_ok. If the target doesn't
8286 support the qCRC packet, fallback to a deep memory copy.
8287 (compare_sections_command): Say "target image" instead of "remote
8289 (_initialize_remote): Add PACKET_qCRC to the list of config
8290 packets that have no associated command. Extend comment.
8291 * target.c (simple_verify_memory, default_verify_memory): New
8293 * target.h (struct target_ops) <to_verify_memory>: Default to
8294 default_verify_memory.
8295 (simple_verify_memory): New declaration.
8296 * target-delegates.c: Regenerate.
8298 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8300 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8302 2014-05-20 Hui Zhu <hui@codesourcery.com>
8303 Yao Qi <yao@codesourcery.com>
8306 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8307 and change address of sp and pc.
8309 2014-05-19 Tom Tromey <tromey@redhat.com>
8311 * gdbtypes.c (rank_function): Use XNEWVEC.
8312 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8314 2014-05-19 Doug Evans <dje@google.com>
8316 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8317 build_type_unit_groups and moved closer to only caller. Remove
8318 arguments. All references updated. Remove outdated .gdb_index
8320 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8321 build_type_psymtabs_1.
8323 2014-05-19 Doug Evans <dje@google.com>
8325 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8326 n_type_unit_groups, all_type_unit_groups. All uses removed.
8327 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8328 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8329 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8330 (add_type_unit_group_to_table): Delete.
8332 2014-05-19 Doug Evans <dje@google.com>
8334 * eval.c (evaluate_subexp_standard): Add some comments.
8336 2014-05-17 Doug Evans <xdje42@gmail.com>
8338 * progspace.c (remove_program_space): Delete, unused.
8339 * progspace.h (remove_program_space): Ditto.
8341 2014-05-17 Doug Evans <xdje42@gmail.com>
8343 * inferior.c (prune_inferiors): Fix comment.
8344 (remove_inferior_command): Call prune_program_spaces.
8346 2014-05-16 Doug Evans <dje@google.com>
8348 New command line option -D.
8350 * main.c (set_gdb_data_directory): New function.
8351 (captured_main): Recognize -D. Flag error for --data-directory "".
8352 Call set_gdb_data_directory.
8353 (print_gdb_help): Print --data-directory, -D.
8354 * main.h (set_gdb_data_directory): Declare.
8355 * top.c (staged_gdb_datadir): New static global.
8356 (set_gdb_datadir): Call set_gdb_data_directory
8357 (show_gdb_datadir): New function.
8358 (init_main): Update init of data-directory parameter.
8360 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8362 Import the "dirfd" gnulib module.
8363 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8364 * gnulib/aclocal.m4: Update.
8365 * gnulib/config.in: Update.
8366 * gnulib/configure: Update.
8367 * gnulib/import/Makefile.am: Update.
8368 * gnulib/import/Makefile.in: Update.
8369 * gnulib/import/dirfd.c: New.
8370 * gnulib/import/m4/dirfd.m4: New.
8371 * gnulib/import/m4/gnulib-cache.m4: Update.
8372 * gnulib/import/m4/gnulib-comp.m4: Update.
8374 2014-05-16 Pierre Muller <muller@sourceware.org>
8375 Yao Qi <yao@codesourcery.com>
8377 * valprint.c (print_wchar): Move the code on checking whether
8378 W is a printable wide char to the default branch of switch
8379 statement below. Call wchar_printable instead of gdb_iswprint.
8381 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8383 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8384 ldr.w and ldrd instructions.
8386 2014-05-15 Doug Evans <dje@google.com>
8388 * dwarf2read.c (read_structure_type): Delete outdated comments.
8390 2014-05-14 Tom Tromey <tromey@redhat.com>
8392 * macrocmd.c (print_macro_definition): Reindent.
8394 2014-05-13 Doug Evans <xdje42@gmail.com>
8396 * python/py-cmd.c (cmdpy_completer): Add comment.
8397 (completers): Make const.
8399 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8401 * infrun.c (resume): Remove should_resume (unused). Move up
8402 declaration of resume_ptid.
8404 2014-05-13 Tom Tromey <tromey@redhat.com>
8406 * language.h (unop_type_check): Remove.
8407 (binop_type_check): Don't declare.
8409 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8411 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8412 call to regcache_raw_collect.
8414 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8416 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8417 mi_console->quote as the quoting character.
8419 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8421 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8423 2014-04-29 Tom Tromey <tromey@redhat.com>
8425 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8426 "show debug varobj".
8428 2014-05-07 Kyle McMartin <kyle@redhat.com>
8430 Pushed by Joel Brobecker <brobecker@adacore.com>.
8431 * aarch64-tdep.c (aarch64_software_single_step): New function.
8432 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8433 with aarch64_software_single_step.
8435 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8439 2014-05-05 Keith Seitz <keiths@redhat.com>
8441 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8442 variable or history value is successfully parsed.
8444 2014-05-05 Yao Qi <yao@codesourcery.com>
8445 Pedro Alves <palves@redhat.com>
8447 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8448 address of blocks that intersects the requested range. Trim
8449 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8451 * ctf.c (ctf_xfer_partial): Likewise.
8453 2014-05-05 Yao Qi <yao@codesourcery.com>
8455 * printcmd.c (display_command): Remove the check to
8456 target_has_execution.
8458 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8460 * ppcobsd-nat.c: Include "obsd-nat.h".
8461 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8463 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8465 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8467 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8468 and 16-bit signed and unsigned arguments. Update comment.
8469 (stap_parse_probe_arguments): Extend code to handle such
8470 arguments. Use warning instead of complaint to notify about
8471 unrecognized bitness.
8473 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8475 PR breakpoints/16889
8476 * stap-probe.c (stap_parse_probe_arguments): Simplify
8477 check for non-prefixed probes (i.e., probes whose
8478 arguments do not start with "N@"). Always set the
8479 argument type to a sane value.
8481 2014-05-01 David Taylor <dtaylor@emc.com>
8483 * remote.c (compare_sections_command): Add -r option to compare
8484 all loadable read-only sections.
8486 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8488 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8489 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8491 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8492 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8493 Remove unused CORE_ADDR argument. Update all callers.
8495 2014-04-29 Pedro Alves <palves@redhat.com>
8497 * remote.c (struct packet_config) <detect>: Extend comment.
8498 (add_packet_config_cmd): Don't set the config's detect or support
8500 (init_all_packet_configs): Also initialize the config's 'detect'
8502 (reset_all_packet_configs_support): New function.
8503 (remote_open_1): Call reset_all_packet_configs_support instead of
8504 init_all_packet_configs.
8505 (_initialize_remote): Initialize all packet configs. Assert that
8506 all packets have an associated command, except a few known
8509 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8511 * dwarf2read.c (read_subrange_type): Handle dynamic
8512 DW_AT_lower_bound attributes.
8514 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8516 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8517 dynamic bounds before computing its upper bound.
8518 (ada_discrete_type_low_bound): Same as above with the lower bound.
8520 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8522 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8523 range types. Adjust the array handling implementation to
8524 take advantage of this change.
8525 (resolve_dynamic_range): New function, mostly extracted from
8526 resolve_dynamic_bounds.
8527 (resolve_dynamic_array): New function, mostly extracted from
8528 resolve_dynamic_bounds.
8529 (resolve_dynamic_bounds): Delete.
8530 (resolve_dynamic_type): Reimplement. Add handling of
8531 TYPE_CODE_RANGE types.
8533 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8535 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8536 handling of parallel ___XA types.
8538 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8540 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8541 unnecessary second call to static_unwrap_type.
8543 2014-04-27 Hui Zhu <hui@codesourcery.com>
8545 * stack.c (print_frame_info): Call do_gdb_disassembly with
8546 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8548 2014-04-26 Doug Evans <xdje42@gmail.com>
8550 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8552 2014-04-25 Pedro Alves <palves@redhat.com>
8555 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8556 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8557 and newline from built string.
8558 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8559 (linux_ptrace_attach_fail_reason): ... this.
8560 * linux-nat.c (linux_nat_attach): Adjust to use
8561 linux_ptrace_attach_fail_reason.
8563 2014-04-25 Pedro Alves <palves@redhat.com>
8565 * remote.c (struct remote_state): Remove multi_process_aware,
8566 non_stop_aware, cond_tracepoints, cond_breakpoints,
8567 breakpoint_commands, fast_tracepoints, static_tracepoints,
8568 install_in_trace, disconnected_tracing,
8569 enable_disable_tracepoints, string_tracing, and
8570 augmented_libraries_svr4_read fields.
8571 (remote_multi_process_p): Move further below in the file.
8572 (struct packet_config): Add comments.
8573 (update_packet_config): Delete function.
8574 (show_packet_config_cmd): Use packet_config_support.
8575 (add_packet_config_cmd): Use NULL as set callback.
8576 (packet_ok): "set remote foo-packet"-style commands no longer
8577 change config->supported -- adjust.
8578 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8579 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8580 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8581 (PACKET_QNonStop, PACKET_multiprocess_feature)
8582 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8583 (PACKET_DisconnectedTracing_feature)
8584 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8585 (set_remote_protocol_packet_cmd): Delete function.
8586 (packet_config_support, packet_support): New functions.
8587 (set_remote_protocol_Z_packet_cmd): Don't call
8588 update_packet_config.
8589 (remote_query_attached, remote_pass_signals)
8590 (remote_program_signals, remote_threads_info)
8591 (remote_threads_extra_info, remote_start_remote): Use
8593 (remote_start_remote): Use packet_config_support and
8595 (init_all_packet_configs): Set all packets to unknown support,
8596 instead of calling update_packet_config.
8597 (remote_check_symbols): Use packet_support.
8598 (remote_supported_packet): Unconditionally set the packet config's
8600 (remote_multi_process_feature, remote_non_stop_feature)
8601 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8602 (remote_breakpoint_commands_feature)
8603 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8604 (remote_install_in_trace_feature)
8605 (remote_disconnected_tracing_feature)
8606 (remote_enable_disable_tracepoint_feature)
8607 (remote_string_tracing_feature)
8608 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8609 (remote_protocol_features): Adjust to use remote_supported_packet
8610 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8611 "ConditionalTracepoints", "ConditionalBreakpoints",
8612 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8613 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8614 "EnableDisableTracepoints", and "tracenz".
8615 (remote_query_supported): Use packet_support.
8616 (remote_open_1): Adjust.
8617 (extended_remote_attach_1): Use packet_support. Switch on the
8618 result of packet_ok instead of checking whether the packet ended
8620 (remote_vcont_resume): Use packet_support.
8621 (remote_resume, remote_stop_ns, fetch_register_using_p)
8622 (remote_prepare_to_store, store_register_using_P)
8623 (check_binary_download, remote_write_bytes): Use packet_support.
8624 (remote_vkill): Use packet_support. Switch on the result of
8625 packet_ok instead of checking whether the packet ended up
8627 (extended_remote_supports_disable_randomization): Use
8629 (extended_remote_run): Switch on the result of packet_ok instead
8630 of checking whether the packet ended up disabled.
8631 (remote_insert_breakpoint, remote_remove_breakpoint)
8632 (remote_insert_watchpoint, remote_remove_watchpoint)
8633 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8635 (remote_search_memory): Use packet_config_support.
8636 (remote_get_thread_local_address, remote_get_tib_address)
8637 (remote_hostio_send_command, remote_can_execute_reverse): Use
8639 (remote_supports_cond_tracepoints)
8640 (remote_supports_cond_breakpoints)
8641 (remote_supports_fast_tracepoints)
8642 (remote_supports_static_tracepoints)
8643 (remote_supports_install_in_trace)
8644 (remote_supports_enable_disable_tracepoint)
8645 (remote_supports_string_tracing)
8646 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8647 the packet config says the feature is enabled or disabled.
8648 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8649 (remote_get_trace_status): Use packet_support.
8650 (remote_set_disconnected_tracing): Adjust to check whether the
8651 feature is enabled with packet_support.
8652 (remote_set_trace_buffer_size, remote_use_agent)
8653 (remote_can_use_agent, remote_supports_btrace): Use
8655 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8656 Use packet_config_support.
8657 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8658 the packet config says the feature is enabled or disabled.
8659 (set_range_stepping): Use packet_support.
8661 2014-04-25 Tom Tromey <tromey@redhat.com>
8663 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8666 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8668 * NEWS: Mention support for C99 variable length arrays.
8670 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8672 * ada-lang.c (standard_exc): Expand introductory comment.
8674 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8675 Walfred Tedeschi <walfred.tedeschi@intel.com>
8677 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8679 (amd64_linux_read_description): Add code to handle AVX512 xstate
8680 mask and return respective tdesc.
8681 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8682 and features/i386/x32-avx512-linux.c.
8683 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8684 (amd64_linux_core_read_description): Add code to handle AVX512
8685 xstate mask and return respective tdesc.
8686 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8687 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8689 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8690 (tdesc_amd64_avx512_linux): New prototype.
8691 (tdesc_x32_avx512_linux): Likewise.
8692 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8693 features/i386/x32-avx512.c.
8694 (amd64_ymm_avx512_names): New register names for pseudo
8696 (amd64_ymmh_avx512_names): New register names for raw registers
8698 (amd64_k_names): New register names for K registers.
8699 (amd64_zmmh_names): New register names for ZMM raw registers.
8700 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8701 (amd64_xmm_avx512_names): New register names for XMM16-31
8703 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8705 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8706 if feature is present.
8707 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8708 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8709 (AMD64_NUM_REGS): Adjust to new number of registers.
8710 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8711 registers supplied via XSTATE by AVX512 registers.
8712 (i386_linux_read_description): Add case for AVX512.
8713 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8714 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8715 (i386_linux_core_read_description): Add case for AVX512.
8716 (i386_linux_init_abi): Install supported register note section
8718 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8720 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8721 registers to be number of zmm7h + 1.
8722 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8723 * i386-tdep.c: Include features/i386/i386-avx512.c.
8724 (i386_zmm_names): Add ZMM pseudo register names array.
8725 (i386_zmmh_names): Add ZMM raw register names array.
8726 (i386_k_names): Add K raw register names array.
8727 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8728 registers. AVX512 has 16 more ZMM registers than there are YMM
8730 (i386_zmmh_regnum_p): Add function to look up register number of
8732 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8733 (i386_k_regnum_p): Likewise for K raw registers.
8734 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8735 registers added by AVX512.
8736 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8737 registers added by AVX512.
8738 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8740 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8741 (i386_pseudo_register_name): Add ZMM pseudo registers.
8742 (i386_zmm_type): Construct and return vector registers type for ZMM
8744 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8745 ZMM0-31 pseudo registers and K registers.
8746 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8747 and YMM16-31 registers from register cache.
8748 (i386_pseudo_register_write): Add code to write K, ZMM and
8750 (i386_register_reggroup_p): Add code to include/exclude AVX512
8751 registers in/from respective register groups.
8752 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8753 registers if feature is present in xcr0.
8754 (i386_gdbarch_init): Add code to initialize AVX512 feature
8755 variables in tdep structure, wire in pseudo registers and call
8756 initialize_tdesc_i386_avx512.
8757 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8759 (i386_regnum): Add AVX512 registers.
8760 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8761 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8762 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8763 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8765 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8766 (i386_ymm_avx512_regnum_p): Likewise.
8767 (i386_k_regnum_p): Likewise.
8768 (i386_zmm_regnum_p): Likewise.
8769 (i386_zmmh_regnum_p): Likewise.
8770 * i387-tdep.c : Update year in copyright notice.
8771 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8773 (XSAVE_YMM_AVX512_ADDR): New macro.
8774 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8776 (XSAVE_XMM_AVX512_ADDR): New macro.
8777 (xsave_avx512_k_offset): New table for K register offsets in
8779 (XSAVE_AVX512_K_ADDR): New macro.
8780 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8782 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8783 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8785 (i387_collect_xsave): Add code to collect AVX512 registers from
8787 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8788 of XMM16-31 registers.
8789 (I387_NUM_K_REGS): New define for number of K registers.
8790 (I387_K0_REGNUM): New define for K0 register number.
8791 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8792 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8793 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8795 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8796 (I387_XMM16_REGNUM): New define for XMM16 register number.
8797 (I387_YMM0_REGNUM): New define for YMM0 register number.
8798 (I387_KEND_REGNUM): New define for last K register number.
8799 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8800 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8802 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8804 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8806 * features/Makefile: Add AVX512 related files.
8807 * features/i386/32bit-avx512.xml: New file.
8808 * features/i386/64bit-avx512.xml: Likewise.
8809 * features/i386/amd64-avx512-linux.c: Likewise.
8810 * features/i386/amd64-avx512-linux.xml: Likewise.
8811 * features/i386/amd64-avx512.c: Likewise.
8812 * features/i386/amd64-avx512.xml: Likewise.
8813 * features/i386/i386-avx512-linux.c: Likewise.
8814 * features/i386/i386-avx512-linux.xml: Likewise.
8815 * features/i386/i386-avx512.c: Likewise.
8816 * features/i386/i386-avx512.xml: Likewise.
8817 * features/i386/x32-avx512-linux.c: Likewise.
8818 * features/i386/x32-avx512-linux.xml: Likewise.
8819 * features/i386/x32-avx512.c: Likewise.
8820 * features/i386/x32-avx512.xml: Likewise.
8821 * regformats/i386/amd64-avx512-linux.dat: New file.
8822 * regformats/i386/amd64-avx512.dat: Likewise.
8823 * regformats/i386/i386-avx512-linux.dat: Likewise.
8824 * regformats/i386/i386-avx512.dat: Likewise.
8825 * regformats/i386/x32-avx512-linux.dat: Likewise.
8826 * regformats/i386/x32-avx512.dat: Likewise.
8827 * NEWS: Add note about new support for AVX512.
8830 2014-04-23 Pedro Alves <palves@redhat.com>
8832 * breakpoint.c (insert_bp_location): Tolerate errors if the
8833 breakpoint is set in a user-loaded objfile.
8834 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8835 location is marked shlib_disabled. If the breakpoint is set in a
8836 user-loaded objfile is a GDB-side memory breakpoint, validate it
8837 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8838 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8840 * mem-break.c (memory_validate_breakpoint): New function.
8841 * objfiles.c (userloaded_objfile_contains_address_p): New
8843 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8844 * target.h (memory_validate_breakpoint): New declaration.
8846 2014-04-23 Pedro Alves <palves@redhat.com>
8848 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8849 the breakpoint is set in a shared library, only suppress
8850 errors for software breakpoints, not hardware breakpoints.
8852 2014-04-22 Pedro Alves <palves@redhat.com>
8854 * infrun.c (schedlock_applies): New function, factored out from
8855 find_thread_needs_step_over.
8856 (find_thread_needs_step_over): Use it.
8857 (switch_back_to_stepped_thread): Always clear trap_expected if the
8858 step over is finished. Return early if scheduler locking applies.
8859 Look for the stepping thread and a potential step-over thread with
8861 (currently_stepping_or_nexting_callback): Delete.
8863 2014-04-22 Nick Clifton <nickc@redhat.com>
8865 * NEWS: Mention that ARM sim now supports tracing.
8867 2014-04-22 Yao Qi <yao@codesourcery.com>
8869 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8871 * tracefile.c (tracefile_fetch_registers): ... it. New
8873 * tracefile.h (tracefile_fetch_registers): Declare.
8874 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8875 tracefile_fetch_registers.
8877 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8880 * windows-nat.c (thread_rec): Don't display a warning when
8881 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8882 fails for any reason, set th->suspended to -1, so that we don't
8883 try to resume such a thread. Also, don't return NULL in these
8884 cases, to avoid completely ruin the session due to "PC register is
8885 not available" error.
8886 (do_windows_fetch_inferior_registers): Check errors in
8887 GetThreadContext call.
8888 (windows_continue): Accept an additional argument KILLED; if not
8889 zero, ignore errors in the SetThreadContext call, since the
8890 inferior was killed and is shutting down.
8891 (windows_resume, get_windows_debug_event)
8892 (windows_create_inferior, windows_mourn_inferior)
8893 (windows_kill_inferior): All callers of windows_continue changed
8894 to adjust to its new calling sequence.
8896 2014-04-19 Yao Qi <yao@codesourcery.com>
8898 * ctf.c (ctf_open): Call post_create_inferior.
8900 2014-04-19 Yao Qi <yao@codesourcery.com>
8902 * ctf.c (handle_id): New static variable.
8903 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8904 value. Get the declaration of event "register" and get length
8905 of field "contents".
8907 2014-04-19 Yao Qi <yao@codesourcery.com>
8909 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8911 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8913 * valops.c (oload_method_static): Remove unnecessary argument
8914 METHOD. Update all callers.
8916 2014-04-18 Pedro alves <palves@redhat.com>
8917 Tom Tromey <tromey@redhat.com>
8920 * frame.c (get_prev_frame_1): Rename to ...
8921 (get_prev_frame_always): ... this, and make extern. Adjust.
8922 (skip_artificial_frames): Use get_prev_frame_always.
8923 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8924 (get_frame_unwind_stop_reason): Adjust to rename.
8925 * frame.h (get_prev_frame_always): Declare.
8926 * inline-frame.c: Include frame.h.
8927 (inline_frame_this_id): Use get_prev_frame_always.
8929 2014-04-18 Tristan Gingold <gingold@adacore.com>
8931 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8932 code by using bfd_mach_o_get_base_address.
8934 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8936 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8937 (spu_ax_pseudo_register_collect): New function.
8938 (spu_ax_pseudo_register_push_stack): Likewise.
8939 (spu_dwarf_reg_to_regnum): Likewise.
8940 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8942 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8944 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8945 Replace FRAME argument with FRAME_ID.
8946 * gdbarch.c, gdbarch.h: Regenerate.
8947 * findvar.c (default_value_from_register): Add GDBARCH argument;
8948 replace FRAME by FRAME_ID. No longer call get_frame_id.
8949 (value_from_register): Update call to gdbarch_value_from_register.
8950 * value.h (default_value_from_register): Update prototype.
8951 * s390-linux-tdep.c (s390_value_from_register): Update interface
8952 and call to default_value_from_register.
8953 * spu-tdep.c (spu_value_from_register): Likewise.
8955 * findvar.c (address_from_register): Remove TYPE argument.
8956 Do not call value_from_register; use gdbarch_value_from_register
8957 with null_frame_id instead.
8958 * value.h (address_from_register): Update prototype.
8959 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8960 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8961 address_from_register interface change.
8963 2014-04-17 Yao Qi <yao@codesourcery.com>
8965 * gdbtypes.h: Update comments to link to types and macros'
8968 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8970 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8972 2014-04-16 Keith Seitz <keiths@redhat.com>
8975 * dwarf2read.c (skip_one_die): Check that all relative-offset
8976 sibling DIEs fall within range of the current reader's buffer.
8977 (read_partial_die): Likewise.
8979 2014-04-16 Keith Seitz <keiths@redhat.com>
8982 * cp-namespace.c (lookup_symbol_file): If the type name of
8983 `this' is NULL, return immediately.
8985 2014-04-14 Keith Seitz <keiths@redhat.com>
8988 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8989 from symbol_matches_domain in symtab.c. All local callers
8990 of symbol_matches_domain updated.
8991 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8992 search STRUCT_DOMAIN.
8993 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8994 independently. standard_lookup will do that automatically.
8995 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8996 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8997 (cp_lookup_symbol_in_namespace): Likewise.
8998 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8999 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9000 may return a STRUCT_DOMAIN match.
9001 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9002 * cp-support.c: Include language.h.
9003 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9005 * psymtab.c (match_partial_symbol): Compare the requested
9006 domain with the symbol's domain directly.
9007 (lookup_partial_symbol): Likewise.
9008 * symtab.c (lookup_symbol_in_language): Explain when/why
9009 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9010 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9011 appropriate languages.
9012 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9013 and moved to ada-lang.c
9014 (lookup_block_symbol): Explain that this function only returns
9015 symbol matching the requested DOMAIN.
9016 Compare the requested domain with the symbol's domain directly.
9017 (iterate_over_symbols): Compare the requested domain with the
9018 symbol's domain directly.
9019 * symtab.h (symbol_matches_domain): Remove.
9021 2014-04-14 Tom Tromey <tromey@redhat.com>
9024 * c-exp.y (type_aggregate_p): New function.
9025 (qualified_name, classify_inner_name): Use it.
9026 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9027 and TYPE_TARGET_TYPE of an enum type.
9028 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9030 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9031 handle TYPE_DECLARED_CLASS.
9032 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9034 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9035 * valops.c (enum_constant_from_type): New function.
9036 (value_aggregate_elt): Use it.
9037 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9040 2014-04-14 Tom Tromey <tromey@redhat.com>
9042 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9043 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9045 * value.h (value_aggregate_elt): Update.
9047 2014-04-14 Tom Tromey <tromey@redhat.com>
9049 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9051 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9053 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9054 (evaluate_subexp_standard): Pass noside argument.
9055 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9056 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9057 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9058 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9059 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9061 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9063 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9064 points to a constant blob.
9066 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9068 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9069 property and store it as the high bound and flag the range accordingly.
9070 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9071 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9072 * gdbtypes.h (enum range_flags): New enum.
9073 (struct range_bounds): Add flags member.
9075 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9077 * c-typeprint.c (c_type_print_varspec_suffix): Added
9078 check for not yet resolved high bound. If unresolved, print
9079 "variable length" string to the console instead of random
9082 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9084 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9086 (ada_template_to_fixed_record_type_1): Likewise.
9087 (ada_to_fixed_type_1): Likewise.
9088 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9089 (cp_print_value): Likewise.
9090 * d-valprint.c (dynamic_array_type): Likewise.
9091 * findvar.c (address_of_variable): Likewise.
9092 * jv-valprint.c (java_value_print): Likewise.
9093 * valops.c (value_ind): Likewise.
9094 * value.c (coerce_ref): Likewise.
9096 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9098 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9099 value and retrieve the dynamic type size.
9101 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9103 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9104 passed to sizeof is dynamic evaluate the argument to compute the length.
9106 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9107 Joel Brobecker <brobecker@adacore.com>
9109 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9110 (dwarf2_evaluate_property): New function.
9111 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9112 * dwarf2read.c (attr_to_dynamic_prop): New function.
9113 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9115 * gdbtypes.c: Include dwarf2loc.h.
9116 (is_dynamic_type): New function.
9117 (resolve_dynamic_type): New function.
9118 (resolve_dynamic_bounds): New function.
9119 (get_type_length): New function.
9120 (check_typedef): Use get_type_length to compute type length.
9121 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9122 (TYPE_LOW_BOUND_KIND): New macro.
9123 (is_dynamic_type): New function prototype.
9124 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9125 to resolve dynamic properties of the type. Update comment.
9126 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9128 2014-04-14 Richard Henderson <rth@redhat.com>
9130 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9132 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9133 Doug Evans <xdje42@gmail.com>
9135 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9136 dereference TYPE_CODE_REF values.
9138 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9140 Revert the following changes due to regressions:
9142 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9143 (dwarf2_evaluate_property): New function.
9144 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9145 * dwarf2read.c (attr_to_dynamic_prop): New function.
9146 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9148 * gdbtypes.c: Include dwarf2loc.h.
9149 (is_dynamic_type): New function.
9150 (resolve_dynamic_type): New function.
9151 (resolve_dynamic_bounds): New function.
9152 (get_type_length): New function.
9153 (check_typedef): Use get_type_length to compute type length.
9154 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9155 (TYPE_LOW_BOUND_KIND): New macro.
9156 (is_dynamic_type): New function prototype.
9157 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9158 to resolve dynamic properties of the type. Update comment.
9159 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9161 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9162 passed to sizeof is dynamic evaluate the argument to compute the length.
9164 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9165 value and retrieve the dynamic type size.
9167 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9168 (ada_template_to_fixed_record_type_1): Likewise.
9169 (ada_to_fixed_type_1): Likewise.
9170 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9171 (cp_print_value): Likewise.
9172 * d-valprint.c (dynamic_array_type): Likewise.
9173 * eval.c (evaluate_subexp_with_coercion): Likewise.
9174 * findvar.c (address_of_variable): Likewise.
9175 * jv-valprint.c (java_value_print): Likewise.
9176 * valops.c (value_ind): Likewise.
9177 * value.c (coerce_ref): Likewise.
9179 * c-typeprint.c (c_type_print_varspec_suffix): Added
9180 check for not yet resolved high bound. If unresolved, print
9181 "variable length" string to the console instead of random
9184 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9185 property and store it as the high bound and flag the range accordingly.
9186 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9187 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9188 * gdbtypes.h (enum range_flags): New enum.
9189 (struct range_bounds): Add flags member.
9191 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9192 points to a constant blob.
9194 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9195 (evaluate_subexp_standard): Pass noside argument.
9196 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9197 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9198 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9199 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9200 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9202 2014-04-11 Keith Seitz <keiths@redhat.com>
9205 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9206 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9209 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9211 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9212 (evaluate_subexp_standard): Pass noside argument.
9213 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9214 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9215 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9216 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9217 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9219 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9221 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9222 points to a constant blob.
9224 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9226 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9227 property and store it as the high bound and flag the range accordingly.
9228 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9229 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9230 * gdbtypes.h (enum range_flags): New enum.
9231 (struct range_bounds): Add flags member.
9233 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9235 * c-typeprint.c (c_type_print_varspec_suffix): Added
9236 check for not yet resolved high bound. If unresolved, print
9237 "variable length" string to the console instead of random
9240 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9242 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9243 (ada_template_to_fixed_record_type_1): Likewise.
9244 (ada_to_fixed_type_1): Likewise.
9245 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9246 (cp_print_value): Likewise.
9247 * d-valprint.c (dynamic_array_type): Likewise.
9248 * eval.c (evaluate_subexp_with_coercion): Likewise.
9249 * findvar.c (address_of_variable): Likewise.
9250 * jv-valprint.c (java_value_print): Likewise.
9251 * valops.c (value_ind): Likewise.
9252 * value.c (coerce_ref): Likewise.
9254 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9256 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9257 value and retrieve the dynamic type size.
9259 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9261 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9262 passed to sizeof is dynamic evaluate the argument to compute the length.
9264 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9266 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9267 (dwarf2_evaluate_property): New function.
9268 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9269 * dwarf2read.c (attr_to_dynamic_prop): New function.
9270 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9272 * gdbtypes.c: Include dwarf2loc.h.
9273 (is_dynamic_type): New function.
9274 (resolve_dynamic_type): New function.
9275 (resolve_dynamic_bounds): New function.
9276 (get_type_length): New function.
9277 (check_typedef): Use get_type_length to compute type length.
9278 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9279 (TYPE_LOW_BOUND_KIND): New macro.
9280 (is_dynamic_type): New function prototype.
9281 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9282 to resolve dynamic properties of the type. Update comment.
9283 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9285 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9287 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9288 declaring high/low bounds and change uses accordingly. Call
9289 create_range_type instead of create_static_range_type.
9290 * gdbtypes.c (create_range_type): New function.
9291 (create_range_type): Convert bounds into struct bound_prop and pass
9292 them to create_range_type.
9293 * gdbtypes.h (struct bound_prop): New struct.
9294 (create_range_type): New function prototype.
9295 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9296 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9297 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9299 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9301 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9303 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9304 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9305 * ada-lang.c: All uses of create_range_type updated.
9306 * coffread.c: All uses of create_range_type updated.
9307 * dwarf2read.c: All uses of create_range_type updated.
9308 * f-exp.y: All uses of create_range_type updated.
9309 * m2-valprint.c: All uses of create_range_type updated.
9310 * mdebugread.c: All uses of create_range_type updated.
9311 * stabsread.c: All uses of create_range_type updated.
9312 * valops.c: All uses of create_range_type updated.
9313 * valprint.c: All uses of create_range_type updated.
9315 2014-04-10 Pedro Alves <palves@redhat.com>
9317 * breakpoint.c (single_step_breakpoints)
9318 (single_step_gdbarch): Move up in the file.
9319 (one_breakpoint_xfer_memory): New function, factored out from ...
9320 (breakpoint_xfer_memory): ... here. Also process single-step
9323 2014-04-09 Tristan Gingold <gingold@adacore.com>
9325 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9327 (darwin_decode_exception_message): Free port only after use.
9329 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9331 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9332 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9333 when setting the size of call_length.
9335 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9337 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9338 dereference TYPE_CODE_REF values.
9340 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9342 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9343 end of warning message.
9345 2014-04-03 Doug Evans <dje@google.com>
9347 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9348 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9350 2014-04-02 Alan Modra <amodra@gmail.com>
9352 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9353 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9354 (struct symbol_file_add_from_memory_args): Add size field.
9355 (find_vdso_size): New function.
9356 (add_vsyscall_page): Attempt to find vdso size.
9358 2014-04-01 Doug Evans <dje@google.com>
9360 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9362 2014-04-01 Tristan Gingold <gingold@adacore.com>
9364 * darwin-nat.c (darwin_encode_reply): Add prototype.
9365 (darwin_decode_exception_message): Reply to unknown inferiors.
9366 (darwin_decode_message): Handle message by id. Ignore message
9367 to unknown inferior.
9368 (darwin_wait): Discard unknown messages, add debug trace.
9370 2014-03-31 Doug Evans <dje@google.com>
9372 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9375 2014-03-31 Doug Evans <dje@google.com>
9377 New option "set print symbol-loading".
9379 * solib.c (solib_read_symbols): Only print symbol loading messages
9381 (solib_add): If symbol loading is in "brief" mode, notify user
9382 symbols are being loaded.
9383 (reload_shared_libraries_1): Ditto.
9384 * symfile.c (print_symbol_loading_off): New static global.
9385 (print_symbol_loading_brief): New static global.
9386 (print_symbol_loading_full): New static global.
9387 (print_symbol_loading_enums): New static global.
9388 (print_symbol_loading): New static global.
9389 (print_symbol_loading_p): New function.
9390 (symbol_file_add_with_addrs): Only print symbol loading messages
9392 (_initialize_symfile): Register "print symbol-loading" set/show
9394 * symfile.h (print_symbol_loading_p): Declare.
9396 2014-03-30 Doug Evans <xdje42@gmail.com>
9398 * infrun.c (set_last_target_status): New function.
9399 (handle_inferior_event): Call it.
9401 2014-03-30 Doug Evans <xdje42@gmail.com>
9403 * inferior.h (enum stop_kind): Improve comment.
9405 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9407 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9408 a reference, strip the reference layer before calling
9409 the lang_ops value_has_mutated callback.
9411 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9413 Remove some globals from our parser.
9414 * language.c (unk_lang_parser): Add "struct parser_state"
9416 * language.h (struct language_defn) <la_parser>: Likewise.
9417 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9418 (initialize_expout): Add "struct parser_state" argument.
9419 Rewrite function to use the parser state.
9420 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9421 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9422 write_exp_elt_longcst, write_exp_elt_dblcst,
9423 write_exp_elt_decfloatcst, write_exp_elt_type,
9424 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9425 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9426 write_dollar_variable): Likewise.
9427 (parse_exp_in_context_1): Use parser state.
9428 (insert_type_address_space): Add "struct parser_state" argument.
9430 (increase_expout_size): New function.
9431 * parser-defs.h: Forward declare "struct language_defn" and
9432 "struct parser_state".
9433 (expout, expout_size, expout_ptr): Remove extern declarations.
9434 (parse_gdbarch, parse_language): Rewrite macro declarations to
9435 accept the parser state.
9436 (struct parser_state): New struct.
9437 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9438 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9439 write_exp_elt_decfloatcst, write_exp_elt_type,
9440 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9441 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9442 write_exp_msymbol, write_dollar_variable,
9443 mark_struct_expression, insert_type_address_space): Add "struct
9444 parser_state" argument.
9445 (increase_expout_size): New function.
9446 * utils.c (do_clear_parser_state): New function.
9447 (make_cleanup_clear_parser_state): Likewise.
9448 * utils.h (make_cleanup_clear_parser_state): New function
9450 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9451 Update calls to write_exp* in order to pass the parser state.
9452 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9453 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9454 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9455 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9456 * stap-probe.c (stap_parse_register_operand): Likewise.
9457 (stap_parse_single_operand): Likewise.
9458 (stap_parse_argument_1): Likewise.
9459 (stap_parse_argument): Use parser state.
9460 * stap-probe.h: Include "parser-defs.h".
9461 (struct stap_parse_info) <pstate>: New field.
9462 * c-exp.y (parse_type): Rewrite to use parser state.
9463 (yyparse): Redefine to c_parse_internal.
9464 (pstate): New global variable.
9465 (parse_number): Add "struct parser_state" argument.
9466 (write_destructor_name): Likewise.
9467 (type_exp): Update calls to write_exp* and similars in order to
9469 (exp1, exp, variable, qualified_name, space_identifier,
9470 typename, typebase): Likewise.
9471 (write_destructor_name, parse_number, lex_one_token,
9472 classify_name, classify_inner_name, c_parse): Add "struct
9473 parser_state" argument. Update function to use parser state.
9474 * c-lang.h: Forward declare "struct parser_state".
9475 (c_parse): Add "struct parser_state" argument.
9476 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9477 (yyparse): Redefine macro to ada_parse_internal.
9478 (pstate): New variable.
9479 (write_int, write_object_renaming, write_var_or_type,
9480 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9481 type_int, type_long, type_long_long, type_float, type_double,
9482 type_long_double, type_char, type_boolean, type_system_address):
9483 Add "struct parser_state" argument.
9484 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9485 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9486 var_or_type, aggregate, aggregate_component_list,
9487 positional_list, others, component_group,
9488 component_associations): Update calls to write_exp* and similar
9489 functions in order to use parser state.
9490 (ada_parse, write_var_from_sym, write_int,
9491 write_exp_op_with_string, write_object_renaming,
9492 find_primitive_type, write_selectors, write_ambiguous_var,
9493 write_var_or_type, write_name_assoc, type_int, type_long,
9494 type_long_long, type_float, type_double, type_long_double,
9495 type_char, type_boolean, type_system_address): Add "struct
9496 parser_state" argument. Adjust function to use parser state.
9497 * ada-lang.c (parse): Likewise.
9498 * ada-lang.h: Forward declare "struct parser_state".
9499 (ada_parse): Add "struct parser_state" argument.
9500 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9501 calls to both functions.
9502 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9504 (yyparse): Redefine macro to f_parse_internal.
9505 (pstate): New variable.
9506 (parse_number): Add "struct parser_state" argument.
9507 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9508 and similars in order to use parser state.
9509 (parse_number): Adjust code to use parser state.
9511 (f_parse): New function.
9512 * f-lang.h: Forward declare "struct parser_state".
9513 (f_parse): Add "struct parser_state" argument.
9514 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9516 (yyparse): Redefine macro for java_parse_internal.
9517 (pstate): New variable.
9518 (push_expression_name, push_expression_name, insert_exp): Add
9519 "struct parser_state" argument.
9520 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9521 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9522 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9523 PostIncrementExpression, PostDecrementExpression,
9524 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9525 UnaryExpressionNotPlusMinus, CastExpression,
9526 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9527 RelationalExpression, EqualityExpression, AndExpression,
9528 ExclusiveOrExpression, InclusiveOrExpression,
9529 ConditionalAndExpression, ConditionalOrExpression,
9530 ConditionalExpression, Assignment, LeftHandSide): Update
9531 calls to write_exp* and similars in order to use parser state.
9532 (parse_number): Ajust code to use parser state.
9534 (java_parse): New function.
9535 (push_variable): Add "struct parser_state" argument. Adjust
9536 code to user parser state.
9537 (push_fieldnames, push_qualified_expression_name,
9538 push_expression_name, insert_exp): Likewise.
9539 * jv-lang.h: Forward declare "struct parser_state".
9540 (java_parse): Add "struct parser_state" argument.
9541 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9543 (yyparse): Redefine macro to m2_parse_internal.
9544 (pstate): New variable.
9545 (type_exp, exp, fblock, variable, type): Update calls to
9546 write_exp* and similars to use parser state.
9548 (m2_parse): New function.
9549 * m2-lang.h: Forward declare "struct parser_state".
9550 (m2_parse): Add "struct parser_state" argument.
9551 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9552 * objc-lang.h: Forward declare "struct parser_state".
9553 (end_msglist): Add "struct parser_state" argument.
9554 * p-exp.y (parse_type): Rewrite macro to use parser state.
9555 (yyparse): Redefine macro to pascal_parse_internal.
9556 (pstate): New variable.
9557 (parse_number): Add "struct parser_state" argument.
9558 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9559 write_exp* and similars in order to use parser state.
9560 (parse_number, yylex): Adjust code to use parser state.
9561 (pascal_parse): New function.
9562 * p-lang.h: Forward declare "struct parser_state".
9563 (pascal_parse): Add "struct parser_state" argument.
9564 * go-exp.y (parse_type): Rewrite macro to use parser state.
9565 (yyparse): Redefine macro to go_parse_internal.
9566 (pstate): New variable.
9567 (parse_number): Add "struct parser_state" argument.
9568 (type_exp, exp1, exp, variable, type): Update calls to
9569 write_exp* and similars in order to use parser state.
9570 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9571 to use parser state.
9572 (go_parse): Likewise.
9573 * go-lang.h: Forward declare "struct parser_state".
9574 (go_parse): Add "struct parser_state" argument.
9576 2014-03-27 Doug Evans <dje@google.com>
9578 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9580 2014-03-27 Doug Evans <dje@google.com>
9582 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9583 Remove argument abbrev_section. All callers updated.
9585 2014-03-27 Doug Evans <dje@google.com>
9587 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9588 addr_base, ranges_base.
9590 2014-03-26 Keith Seitz <keiths@redhat.com>
9592 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9593 types, not VAR_DOMAIN.
9595 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9597 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9599 * features/nios2-linux.c: Regenerated.
9600 * features/nios2.c: Regenerated.
9602 2014-03-25 Pedro Alves <palves@redhat.com>
9604 * cli/cli-script.c (script_from_file): Force the interpreter to
9607 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9609 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9610 small stack allocation.
9612 2014-03-24 Tristan Gingold <gingold@adacore.com>
9614 * darwin-nat.c (exc_server): Remove unused prototype.
9615 (darwin_dump_message): Correctly display data on x86_64.
9616 (darwin_encode_reply): Fix style.
9617 Add comments and fix indentation.
9619 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9621 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9623 2014-03-22 Doug Evans <xdje42@gmail.com>
9625 * infcmd.c: Whitespace fixes.
9626 (interrupt_command): Merge two function comments into one.
9628 2014-03-22 Doug Evans <xdje42@gmail.com>
9630 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9633 2014-03-22 Yao Qi <yao@codesourcery.com>
9635 * remote.c (target_read_live_memory): Remove.
9636 (memory_xfer_live_readonly_partial): Rename it to
9637 remote_xfer_live_readonly_partial. Remove argument 'object'.
9638 All callers updated. Call remote_read_bytes_1
9639 instead of target_read_live_memory.
9640 * tracepoint.c (set_traceframe_number): Remove.
9641 (make_cleanup_restore_traceframe_number): Likewise .
9642 * tracepoint.h (set_traceframe_number): Remove declaration.
9643 (make_cleanup_restore_traceframe_number): Likewise.
9645 2014-03-22 Yao Qi <yao@codesourcery.com>
9647 * remote.c (remote_read_bytes): Move code on reading from the
9649 (remote_read_bytes_1): ... here. New function.
9651 2014-03-22 Yao Qi <yao@codesourcery.com>
9653 * ctf.c (ctf_xfer_partial): Check the return value of
9654 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9655 return TARGET_XFER_UNAVAILABLE.
9656 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9657 * target.c (target_read_live_memory): Move it to remote.c.
9658 (memory_xfer_live_readonly_partial): Likewise.
9659 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9660 * remote.c (target_read_live_memory): Moved from target.c.
9661 (memory_xfer_live_readonly_partial): Likewise.
9662 (remote_read_bytes): Factored out from
9663 memory_xfer_partial_1.
9665 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9667 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9670 2014-03-21 Pedro Alves <palves@redhat.com>
9672 * infrun.c (normal_stop): Extend comment.
9674 2014-03-21 Hui Zhu <hui@codesourcery.com>
9675 Pedro Alves <palves@redhat.com>
9677 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9679 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9680 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9681 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9683 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9685 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9686 `z' formatted output modifier.
9688 2014-03-20 Tom Tromey <tromey@redhat.com>
9689 Sergio Durigan Junior <sergiodj@redhat.com>
9691 * probe.c (parse_probes): Turn assert into an ordinary error.
9692 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9693 exceptions when parsing probes. Rearrange the code for clarity.
9695 2014-03-20 Tom Tromey <tromey@redhat.com>
9698 * top.c (execute_command): Only dispatch events if the command
9701 2014-03-20 Tom Tromey <tromey@redhat.com>
9704 * infcall.c: Include event-top.h.
9705 (run_inferior_call): Call async_disable_stdin if needed.
9707 2014-03-20 Pedro Alves <palves@redhat.com>
9709 * infrun.c (prepare_to_proceed): Delete.
9710 (thread_still_needs_step_over): New function.
9711 (find_thread_needs_step_over): New function.
9712 (proceed): If the current thread needs a step-over, set its
9713 steping_over_breakpoint flag. Adjust to use
9714 find_thread_needs_step_over instead of prepare_to_proceed.
9715 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9716 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9718 (switch_back_to_stepped_thread): Step over breakpoints of all
9719 threads not the stepping thread, before switching back to the
9722 2014-03-20 Pedro Alves <palves@redhat.com>
9724 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9726 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9727 * infrun.c (saved_singlestep_ptid)
9728 (stepping_past_singlestep_breakpoint): Delete.
9729 (resume): Remove stepping_past_singlestep_breakpoint handling.
9730 (proceed): Store the prev_pc of the stepping thread too.
9731 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9733 (enum infwait_states): Delete infwait_thread_hop_state.
9734 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9736 (handle_inferior_event): Adjust.
9737 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9738 handling and the thread-hop code. Before removing single-step
9739 breakpoints, check whether the thread hit a single-step breakpoint
9740 of another thread. If it did, the trap is not a random signal.
9741 (switch_back_to_stepped_thread): If the event thread hit a
9742 single-step breakpoint, unblock it before switching to the
9743 stepping thread. Handle the case of the stepped thread having
9745 (keep_going): Handle the case of the current thread moving past a
9746 single-step breakpoint.
9748 2014-03-20 Pedro Alves <palves@redhat.com>
9751 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9752 are being stepped over.
9753 (breakpoint_address_match): Make extern.
9754 * breakpoint.h (breakpoint_address_match): New declaration.
9755 * inferior.h (stepping_past_instruction_at): New declaration.
9756 * infrun.c (struct step_over_info): New type.
9757 (step_over_info): New global.
9758 (set_step_over_info, clear_step_over_info)
9759 (stepping_past_instruction_at): New functions.
9760 (handle_inferior_event): Clear the step-over info when
9761 trap_expected is cleared.
9762 (resume): Remove now stale comment.
9763 (clear_proceed_status): Clear step-over info.
9764 (proceed): Adjust step-over handling to set or clear the step-over
9765 info instead of removing all breakpoints.
9766 (handle_signal_stop): When setting up a thread-hop, don't remove
9768 (stop_stepping): Clear step-over info.
9769 (keep_going): Adjust step-over handling to set or clear step-over
9770 info and then always inserting breakpoints, instead of removing
9771 all breakpoints when stepping over one.
9773 2014-03-20 Pedro Alves <palves@redhat.com>
9775 * infrun.c (previous_inferior_ptid): Adjust comment.
9776 (deferred_step_ptid): Delete.
9777 (infrun_thread_ptid_changed, prepare_to_proceed)
9778 (init_wait_for_inferior): Adjust.
9779 (handle_signal_stop): Delete deferred_step_ptid handling.
9781 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9784 * defs.h (sync_quit_force_run): New declaration.
9785 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9786 * event-top.c (async_sigterm_handler): New declaration.
9787 (async_sigterm_token): New variable.
9788 (async_init_signals): Create also async_sigterm_token.
9789 (async_sigterm_handler): New function.
9790 (sync_quit_force_run): New variable.
9791 (handle_sigterm): Replace quit_force call by other calls.
9792 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9794 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9796 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9797 offset into SPE pseudo registers.
9799 2014-03-18 Pedro Alves <palves@redhat.com>
9802 * inferior.h (print_stop_event): Declare.
9803 * infrun.c (print_stop_event): New, factored out from ...
9804 (normal_stop): ... this.
9805 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9806 of bpstat_print/print_stack_frame.
9808 2014-03-17 Tom Tromey <tromey@redhat.com>
9810 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9812 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9814 * ada-lang.c (decode_constrained_packed_array): Perform a
9815 minimal coercion for reference with coerce_ref instead of
9818 2014-03-17 Tristan Gingold <gingold@adacore.com>
9820 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9821 (darwin_solib_create_inferior_hook): Emit a warning if version
9824 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9826 * python/py-value.c (get_field_flag): Cast flag_name argument to
9827 PyObject_GetAttrString to support Python 2.4.
9829 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9831 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9832 (Global Maintainers): Remove Jan Kratochvil.
9834 2014-03-14 Pedro Alves <palves@redhat.com>
9836 * inferior.h (terminal_ours_for_output): Rename to ...
9837 (child_terminal_ours_for_output): ... this.
9838 (terminal_save_ours): Rename to ...
9839 (child_terminal_save_ours): ... this.
9840 (terminal_ours): Rename to ...
9841 (child_terminal_ours): ... this.
9842 (terminal_inferior): Rename to ...
9843 (child_terminal_inferior): ... this.
9844 (terminal_init_inferior): Rename to ...
9845 (child_terminal_init_inferior): ... this.
9846 (terminal_init_inferior_with_pgrp): Rename to ...
9847 (child_terminal_init_inferior_with_pgrp): ... this.
9848 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9849 (child_terminal_init_with_pgrp): ... this.
9850 (terminal_save_ours): Rename to ...
9851 (child_terminal_save_ours): ... this.
9852 (terminal_init_inferior): Rename to ...
9853 (child_terminal_init): ... this. Adjust.
9854 (terminal_inferior): Rename to ...
9855 (child_terminal_inferior): ... this.
9856 (terminal_ours_for_output): Rename to ...
9857 (child_terminal_ours_for_output): ... this. Adjust.
9858 (terminal_ours): Rename to ...
9859 (child_terminal_ours): ... this.
9860 (terminal_ours_1): Rename to ...
9861 (child_terminal_ours_1): ... this. Adjust.
9862 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9863 * windows-nat.c (do_initial_windows_stuff): Adjust.
9864 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9865 (gnu_terminal_init): ... this. Adjust.
9866 (gnu_target): Adjust.
9867 * inf-child.c (inf_child_target): Adjust.
9869 2014-03-13 Doug Evans <xdje42@gmail.com>
9872 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9875 2014-03-13 Doug Evans <xdje42@gmail.com>
9877 * value.c (record_latest_value): Call release_value_or_incref
9878 instead of release_value.
9880 2014-03-13 Pedro Alves <palves@redhat.com>
9882 * procfs.c (procfs_target): Don't override to_shortname,
9883 to_longname or to_doc.
9885 2014-03-13 Pedro Alves <palves@redhat.com>
9887 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9888 Unix in user visible strings.
9890 2014-03-12 Stan Shebs <stan@codesourcery.com>
9892 * gdbtypes.h: Annotate comments for Doxygen, add a page
9893 block comment with some general info.
9895 2014-03-12 Pedro Alves <palves@redhat.com>
9897 * infcmd.c (prepare_execution_command): New function, factored out
9898 from several execution commands.
9899 (run_command_1, continue_command, step_1, jump_command)
9900 (signal_command, until_command, advance_command, finish_command)
9901 (attach_command): Use prepare_execution_command.
9903 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9905 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9908 (struct arm_linux_thread_points): Removed.
9909 (struct arm_linux_process_info): New.
9910 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9911 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9912 (arm_linux_find_breakpoints_by_tid): Removed.
9913 (struct arch_lwp_info): New.
9914 (arm_linux_find_process_pid): New functions.
9915 (arm_linux_add_process): New functions.
9916 (arm_linux_process_info_get): New functions.
9917 (arm_linux_forget_process): New function.
9918 (arm_linux_get_debug_reg_state): New function.
9919 (struct update_registers_data): New.
9920 (update_registers_callback): New function.
9921 (arm_linux_insert_hw_breakpoint1): Updated.
9922 (arm_linux_remove_hw_breakpoint1): Updated.
9923 (arm_linux_insert_hw_breakpoint): Updated.
9924 (arm_linux_remove_hw_breakpoint): Updated.
9925 (arm_linux_insert_watchpoint): Updated.
9926 (arm_linux_remove_watchpoint): Updated.
9927 (arm_linux_new_thread): Updated.
9928 (arm_linux_prepare_to_resume): New function.
9929 (arm_linux_new_fork): New function.
9930 (_initialize_arm_linux_nat): Updated.
9932 2014-03-12 Pedro Alves <palves@redhat.com>
9934 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9936 2014-03-12 Tom Tromey <tromey@redhat.com>
9938 * inf-child.c (return_zero): New function.
9939 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9940 * aix-thread.c (aix_thread_inferior_created): New function.
9941 (aix_thread_attach): Remove.
9942 (init_aix_thread_ops): Don't set to_attach.
9943 (_initialize_aix_thread): Register inferior_created observer.
9944 * corelow.c (init_core_ops): Don't set to_attach or
9946 * exec.c (init_exec_ops): Don't set to_attach or
9948 * infcmd.c (run_command_1): Use find_run_target. Make direct
9950 (attach_command): Use find_attach_target. Make direct target
9952 * record-btrace.c (init_record_btrace_ops): Don't set
9954 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9956 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9957 set to_create_inferior.
9958 * target.c (complete_target_initialization): Add assertion.
9959 (target_create_inferior): Remove.
9960 (find_default_attach, find_default_create_inferior): Remove.
9961 (find_attach_target, find_run_target): New functions.
9962 (find_default_is_async_p, find_default_can_async_p)
9963 (target_supports_non_stop, target_attach): Remove.
9964 (init_dummy_target): Don't set to_create_inferior or
9965 to_supports_non_stop.
9966 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9967 TARGET_DEFAULT_FUNC.
9968 <to_create_inferior>: Add comment.
9969 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9970 TARGET_DEFAULT_RETURN.
9971 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9972 (find_attach_target, find_run_target): Declare.
9973 (target_create_inferior): Remove.
9974 (target_has_execution_1): Update comment.
9975 (target_supports_non_stop): Remove.
9976 * target-delegates.c: Rebuild.
9978 2014-03-12 Pedro Alves <palves@redhat.com>
9980 * inf-child.h: Update comment to not mention Unix.
9982 2014-03-12 Pedro Alves <palves@redhat.com>
9984 * inf-child.c: Update top comment to not mention Unix. Add
9985 generic comment describing how this target is meant to be used.
9986 (inf_child_post_attach, inf_child_post_startup_inferior)
9987 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9990 2014-03-12 Pedro Alves <palves@redhat.com>
9992 * nto-procfs.c: Include inf-child.h.
9993 (procfs_ops): Delete global.
9994 (procfs_can_run): Delete method.
9995 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9996 target pointer instead of referencing procfs_ops.
9997 (procfs_prepare_to_store): Delete.
9998 (init_procfs_ops): Delete function.
9999 (procfs_target): New function, based on init_procfs_ops, but
10000 inherit inf_child_target.
10001 (_initialize_procfs): Use procfs_target.
10003 2014-03-12 Pedro Alves <palves@redhat.com>
10005 * windows-nat.c: Include inf-child.h.
10006 (windows_ops): Delete global.
10007 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10009 (init_windows_ops): Delete function.
10010 (windows_target): New function, based on init_windows_ops, but
10011 inherit inf_child_target.
10012 (_initialize_windows_nat): Use windows_target. Install x86
10013 specific target methods here.
10015 2014-03-10 Doug Evans <xdje42@gmail.com>
10017 * guile/guile.c (call_initialize_gdb_module): New function.
10018 (initialize_guile): Replace call to scm_init_guile with call to
10021 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10023 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10024 in call to TYPE_CODE macro.
10026 2014-03-10 Jerome Guitton <guitton@adacore.com>
10028 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10029 Resolve tagged types to full view.
10031 2014-03-10 Hui Zhu <hui@codesourcery.com>
10033 * target.h (target_insert_breakpoint): Remove "hardware" from its
10036 2014-03-07 Doug Evans <dje@google.com>
10038 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10040 2014-03-07 Doug Evans <dje@google.com>
10042 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10043 Remove unused local comp_dir_attr. Assert exactly one of
10044 stub_comp_unit_die, stub_comp_dir is non-NULL.
10046 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10048 * target.h (complete_target_initialization, add_target):
10051 2014-03-07 Pedro Alves <palves@redhat.com>
10053 * go32-nat.c: Include inf-child.h.
10054 (go32_ops): Delete global.
10055 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10057 (go32_create_inferior): Push the passed in target pointer instead
10058 of referencing go32_ops.
10059 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10060 (go32_target): New function, based on init_go32_ops, but inherit
10062 (_initialize_go32_nat): Use go32_target. Move parts of
10063 init_go32_ops here.
10065 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10067 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10068 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10069 SYMBOL_VALUE_ADDRESS.
10070 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10072 2014-03-06 Yao Qi <yao@codesourcery.com>
10074 * breakpoint.c (get_tracepoint_by_number): Remove argument
10075 optional_p. All callers updated. Adjust comments. Update
10077 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10079 2014-03-06 Yao Qi <yao@codesourcery.com>
10081 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10082 early if get_number returns zero. Use 'p' instead of 'args'.
10084 2014-03-06 Yao Qi <yao@codesourcery.com>
10086 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10089 2014-03-06 Yao Qi <yao@codesourcery.com>
10091 PR breakpoints/16508
10092 * tracepoint.c (check_trace_running): New function.
10093 (trace_find_command): Move code to check_trace_running and
10094 call check_trace_running.
10095 (trace_find_pc_command): Likewise.
10096 (trace_find_tracepoint_command): Likewise.
10097 (trace_find_line_command): Likewise.
10098 (trace_find_range_command): Likewise.
10099 * tracepoint.h (check_trace_running): Likewise.
10100 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10102 2014-03-06 Yao Qi <yao@codesourcery.com>
10104 * target.h (struct target_ops) <to_traceframe_info>: Use
10105 TARGET_DEFAULT_NORETURN (tcomplain ()).
10106 * target-delegates.c: Regenerated.
10108 2014-03-05 Pedro Alves <palves@redhat.com>
10111 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10112 void. Update comment.
10113 (dcache_xfer_memory): Delete.
10114 (dcache_read_memory_partial): New, based on the read bits of
10115 dcache_xfer_memory.
10116 (dcache_update): Add status parameter. Use ULONGEST for len, and
10117 adjust. Discard cache lines if the reason for the update was
10119 * dcache.h (dcache_xfer_memory): Delete declaration.
10120 (dcache_read_memory_partial): New declaration.
10121 (dcache_update): Update prototype.
10122 * target.c (raw_memory_xfer_partial): Update the dcache here.
10123 (memory_xfer_partial_1): Don't handle dcache writes here.
10125 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10127 * remote-sim.c (gdbsim_load): Add const to prog.
10129 2014-03-03 Tom Tromey <tromey@redhat.com>
10131 * elfread.c (probe_key): Change to bfd_data.
10132 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10133 now per-BFD, not per-objfile.
10134 * stap-probe.c (stap_probe_destroy): Update comment.
10135 (handle_stap_probe): Allocate on the per-BFD obstack.
10137 2014-03-03 Tom Tromey <tromey@redhat.com>
10139 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10140 * breakpoint.c (create_longjmp_master_breakpoint): Use
10142 (add_location_to_breakpoint, bkpt_probe_insert_location)
10143 (bkpt_probe_remove_location): Update.
10144 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10145 * elfread.c (elf_symfile_relocate_probe): Remove.
10146 (elf_probe_fns): Update.
10147 (insert_exception_resume_breakpoint): Change type of "probe"
10148 parameter to bound_probe.
10149 (check_exception_resume): Update.
10150 * objfiles.c (objfile_relocate1): Don't relocate probes.
10151 * probe.c (bound_probe_s): New typedef.
10152 (parse_probes): Use get_probe_address. Set sal's objfile.
10153 (find_probe_by_pc): Return a bound_probe.
10154 (collect_probes): Return a VEC(bound_probe_s).
10155 (compare_probes): Update.
10156 (gen_ui_out_table_header_info): Change type of "probes"
10158 (info_probes_for_ops): Update.
10159 (get_probe_address): New function.
10160 (probe_safe_evaluate_at_pc): Update.
10161 * probe.h (struct probe_ops) <get_probe_address>: New field.
10162 <set_semaphore, clear_semaphore>: Add objfile parameter.
10163 (struct probe) <objfile>: Remove field.
10165 <address>: Update comment.
10166 (struct bound_probe): New.
10167 (find_probe_by_pc): Return a bound_probe.
10168 (get_probe_address): Declare.
10169 * solib-svr4.c (struct probe_and_action) <address>: New field.
10170 (hash_probe_and_action, equal_probe_and_action): Update.
10171 (register_solib_event_probe): Add address parameter.
10172 (solib_event_probe_at): Update.
10173 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10175 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10176 (stap_get_probe_address): New function.
10177 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10178 (compile_probe_arg): Update.
10179 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10181 (handle_stap_probe): Don't relocate the probe.
10182 (stap_relocate): Remove.
10183 (stap_gen_info_probes_table_values): Update.
10184 (stap_probe_ops): Remove stap_relocate.
10185 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10186 (debug_sym_probe_fns): Update.
10187 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10188 * symtab.c (init_sal): Use memset.
10189 * symtab.h (struct symtab_and_line) <objfile>: New field.
10190 * tracepoint.c (start_tracing, stop_tracing): Update.
10192 2014-03-03 Tom Tromey <tromey@redhat.com>
10194 * probe.h (parse_probes, find_probe_by_pc)
10195 (find_probes_in_objfile): Fix comments.
10197 2014-03-02 Doug Evans <xdje42@gmail.com>
10199 * infrun.c (handle_signal_stop): Replace test for
10200 TARGET_WAITKIND_STOPPED with an assert.
10202 2014-03-02 Doug Evans <xdje42@gmail.com>
10204 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10206 2014-03-02 Doug Evans <xdje42@gmail.com>
10208 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10210 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10212 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10214 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10216 * i386obsd-nat.c: Include "obsd-nat.h".
10217 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10219 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10221 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10223 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10225 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10227 * mips64obsd-nat.c: Include "obsd-nath".
10228 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10230 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10232 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10234 * amd64obsd-nat.c: Include "obsd-nat,h.
10235 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10237 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10239 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10241 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10242 (find_overload_match): Update call to find_oload_champ.
10243 (find_oload_champ_namespace_loop): Likewise
10245 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10247 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10249 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10250 * config/sparc/obsd64.mh: New file.
10251 * sparc64obsd-nat.c: New file.
10253 * obsd-nat.h: New file.
10254 * obsd-nat.c: New file.
10255 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10256 (ALLDEPFILES): Add obsd-nat.c.
10258 2014-02-28 Tom Tromey <tromey@redhat.com>
10260 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10261 * cli-out.h (cli_ui_out_impl): Now const.
10262 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10263 * ui-out.c (struct ui_out) <impl>: Now const.
10264 (default_ui_out_impl): Now const.
10265 (ui_out_new): Make 'impl' parameter const.
10266 * ui-out.h (ui_out_new): Update.
10268 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10270 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10272 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10274 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10276 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10278 Additional PR 8882 fix.
10279 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10281 2014-02-27 Pedro Alves <palves@redhat.com>
10283 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10286 2014-02-27 Pedro Alves <palves@redhat.com>
10289 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10290 * nat/linux-waitpid.c: Include string.h.
10291 (status_to_str): Moved here and made extern.
10292 * nat/linux-waitpid.h (status_to_str): New declaration.
10294 2014-02-27 Hui Zhu <hui@codesourcery.com>
10297 * infrun.c (ptid_match): Move ...
10298 * common/ptid.c (ptid_match): ... here.
10299 * inferior.h (ptid_match): Move ...
10300 * common/ptid.h (ptid_match): ... here.
10302 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10304 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10305 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10308 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10310 * obsd-tdep.c (obsd_auxv_parse): New function.
10311 (obsd_init_abi): Set auxv_parse.
10313 * gdbarch.sh (auxv_parse): New.
10314 * gdbarch.h: Regenerated.
10315 * gdbarch.c: Regenerated.
10316 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10318 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10320 * guile/scm-value.c (gdbscm_history_append_x): New function.
10321 (value_functions): Add it.
10323 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10325 * dwarf2read.c (attr_value_as_address): New function.
10326 (dwarf2_find_base_address, read_call_site_scope): Use
10327 attr_value_as_address in place of DW_ADDR.
10328 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10329 the low and high addresses. Slight rework of the handling
10330 of the high pc being a constant form, and limit it to
10331 DWARF verson 4 or higher.
10332 (dwarf2_record_block_ranges): Likewise.
10333 (read_partial_die): Likewise.
10334 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10336 2014-02-26 Tom Tromey <tromey@redhat.com>
10338 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10340 2014-02-26 Tom Tromey <tromey@redhat.com>
10342 * elfread.c (elf_read_minimal_symbols): Return early if
10343 minimal symbols have already been read. Add "ei" parameter.
10344 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10345 * minsyms.c (prim_record_minimal_symbol_full): Update.
10346 * objfiles.h (struct objstats) <n_minsyms>: Move...
10347 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10348 * symmisc.c (print_objfile_statistics): Update.
10350 2014-02-26 Tom Tromey <tromey@redhat.com>
10352 * elfread.c (elf_read_minimal_symbols): New function, from
10354 (elf_symfile_read): Call it.
10356 2014-02-26 Tom Tromey <tromey@redhat.com>
10358 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10359 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10360 (lookup_minimal_symbol_solib_trampoline)
10361 (lookup_minimal_symbol_by_pc_section_1)
10362 (lookup_minimal_symbol_and_objfile): Update.
10363 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10364 Don't allocate a minimal symbol if minsyms have already been read.
10365 (build_minimal_symbol_hash_tables): Update.
10366 (install_minimal_symbols): Do nothing if minsyms already read.
10367 Use the per-BFD obstack.
10368 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10369 * objfiles.c (allocate_objfile): Call
10370 terminate_minimal_symbol_table later.
10371 (have_minimal_symbols): Update.
10372 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10373 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10374 Move from struct objfile.
10375 <minsyms_read>: New field.
10376 (struct objfile) <msymbols, minimal_symbol_count,
10377 msymbol_hash, msymbol_demangled_hash>: Move.
10378 (ALL_OBJFILE_MSYMBOLS): Update.
10379 * symfile.c (read_symbols): Set minsyms_read.
10380 (reread_symbols): Update.
10381 * symmisc.c (dump_objfile, dump_msymbols): Update.
10383 2014-02-26 Tom Tromey <tromey@redhat.com>
10385 * minsyms.c (msymbols_sort): Remove.
10386 * minsyms.h (msymbols_sort): Remove.
10387 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10388 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10389 * elfread.c (elf_symtab_read): Don't add section offsets.
10390 * xcoffread.c (record_minimal_symbol): Don't add section offset
10391 to minimal symbol address.
10392 * somread.c (text_offset, data_offset): Remove.
10393 (som_symtab_read): Don't add section offsets to minimal symbol
10395 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10396 Don't add section offsets to minimal symbols.
10397 * coffread.c (coff_symtab_read): Don't add section offsets
10398 to minimal symbol addresses.
10399 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10400 to minimal symbol addresses.
10401 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10402 section offset to minimal symbol addresses.
10403 * mdebugread.c (parse_partial_symbols): Don't add section
10404 offset to minimal symbol addresses.
10405 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10406 offset to minimal symbol addresses.
10408 2014-02-26 Tom Tromey <tromey@redhat.com>
10410 * ada-lang.c (ada_main_name): Update.
10411 (ada_add_standard_exceptions): Update.
10412 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10413 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10414 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10415 * auxv.c (ld_so_xfer_auxv): Update.
10416 * avr-tdep.c (avr_scan_prologue): Update.
10417 * ax-gdb.c (gen_var_ref): Update.
10418 * blockframe.c (get_pc_function_start)
10419 (find_pc_partial_function_gnu_ifunc): Update.
10420 * breakpoint.c (create_overlay_event_breakpoint)
10421 (create_longjmp_master_breakpoint)
10422 (create_std_terminate_master_breakpoint)
10423 (create_exception_master_breakpoint): Update.
10424 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10425 * c-valprint.c (c_val_print): Update.
10426 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10427 * common/agent.c (agent_look_up_symbols): Update.
10428 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10429 * dwarf2loc.c (call_site_to_target_addr): Update.
10430 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10431 * elfread.c (elf_gnu_ifunc_record_cache)
10432 (elf_gnu_ifunc_resolve_by_got): Update.
10433 * findvar.c (default_read_var_value): Update.
10434 * frame.c (inside_main_func): Update.
10435 * frv-tdep.c (frv_frame_this_id): Update.
10436 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10437 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10439 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10440 (hppa_hpux_find_dummy_bpaddr): Update.
10441 * hppa-tdep.c (hppa_symbol_address): Update.
10442 * infcmd.c (until_next_command): Update.
10443 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10445 * linespec.c (minsym_found, add_minsym): Update.
10446 * linux-nat.c (get_signo): Update.
10447 * linux-thread-db.c (inferior_has_bug): Update.
10448 * m32c-tdep.c (m32c_return_value)
10449 (m32c_m16c_address_to_pointer): Update.
10450 * m32r-tdep.c (m32r_frame_this_id): Update.
10451 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10452 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10453 * maint.c (maintenance_translate_address): Update.
10454 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10455 (frob_address): New function.
10456 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10457 frob_address. Rename parameter to "pc_in".
10458 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10460 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10462 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10463 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10464 * objc-lang.c (find_objc_msgsend): Update.
10465 * objfiles.c (objfile_relocate1): Update.
10466 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10467 * p-valprint.c (pascal_val_print): Update.
10468 * parse.c (write_exp_msymbol): Update.
10469 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10470 (ppc_elfv2_skip_entrypoint): Update.
10471 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10472 * printcmd.c (build_address_symbolic, msym_info)
10473 (address_info): Update.
10474 * proc-service.c (ps_pglobal_lookup): Update.
10475 * psymtab.c (find_pc_sect_psymtab_closer)
10476 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10477 Change msymbol parameter to bound_minimal_symbol.
10478 * ravenscar-thread.c (get_running_thread_id): Update.
10479 * remote.c (remote_check_symbols): Update.
10480 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10482 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10483 * solib-dsbt.c (lm_base): Update.
10484 * solib-frv.c (lm_base, main_got): Update.
10485 * solib-irix.c (locate_base): Update.
10486 * solib-som.c (som_solib_create_inferior_hook)
10487 (link_map_start): Update.
10488 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10489 * solib-svr4.c (elf_locate_base, enable_break): Update.
10490 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10491 (flush_ea_cache): Update.
10492 * stabsread.c (define_symbol, scan_file_globals): Update.
10493 * stack.c (find_frame_funname): Update.
10494 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10495 (debug_qf_find_pc_sect_symtab): Update.
10496 * symfile.c (simple_read_overlay_table)
10497 (simple_overlay_update): Update.
10498 * symfile.h (struct quick_symbol_functions)
10499 <find_pc_sect_symtab>: Change type of msymbol to
10500 bound_minimal_symbol.
10501 * symmisc.c (dump_msymbols): Update.
10502 * symtab.c (find_pc_sect_symtab_via_partial)
10503 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10504 (search_symbols, print_msymbol_info): Update.
10505 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10506 (MSYMBOL_VALUE_ADDRESS): Redefine.
10507 (BMSYMBOL_VALUE_ADDRESS): New macro.
10508 * tracepoint.c (scope_info): Update.
10509 * tui/tui-disasm.c (tui_find_disassembly_address)
10510 (tui_get_begin_asm_address): Update.
10511 * valops.c (find_function_in_inferior): Update.
10512 * value.c (value_static_field, value_fn_field): Update.
10514 2014-02-26 Tom Tromey <tromey@redhat.com>
10516 * ada-lang.c (ada_update_initial_language): Update.
10517 (ada_main_name, ada_has_this_exception_support): Update.
10518 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10519 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10520 * arm-tdep.c (arm_skip_stub): Update.
10521 * auxv.c (ld_so_xfer_auxv): Update.
10522 * avr-tdep.c (avr_scan_prologue): Update.
10523 * ax-gdb.c (gen_var_ref): Update.
10524 * breakpoint.c (struct breakpoint_objfile_data)
10525 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10526 type to bound_minimal_symbol.
10527 (create_overlay_event_breakpoint)
10528 (create_longjmp_master_breakpoint)
10529 (create_std_terminate_master_breakpoint)
10530 (create_exception_master_breakpoint): Update.
10531 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10532 * c-exp.y (classify_name): Update.
10533 * coffread.c (coff_symfile_read): Update.
10534 * common/agent.c (agent_look_up_symbols): Update.
10535 * d-lang.c (d_main_name): Update.
10536 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10537 * dec-thread.c (enable_dec_thread): Update.
10538 * dwarf2loc.c (call_site_to_target_addr): Update.
10539 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10540 * eval.c (evaluate_subexp_standard): Update.
10541 * findvar.c (struct minsym_lookup_data) <result>: Change type
10542 to bound_minimal_symbol.
10544 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10545 * frame.c (inside_main_func): Update.
10546 * frv-tdep.c (frv_frame_this_id): Update.
10547 * gcore.c (call_target_sbrk): Update.
10548 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10549 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10551 * go-lang.c (go_main_name): Update.
10552 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10553 (hppa_hpux_find_import_stub_for_addr): Update.
10554 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10555 Update. Change return type.
10556 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10558 * jit.c (jit_breakpoint_re_set_internal): Update.
10559 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10561 * linux-nat.c (get_signo): Update.
10562 * linux-thread-db.c (inferior_has_bug): Update
10563 * m32c-tdep.c (m32c_return_value)
10564 (m32c_m16c_address_to_pointer): Update.
10565 * m32r-tdep.c (m32r_frame_this_id): Update.
10566 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10567 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10568 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10569 lookup_minimal_symbol. Change return type.
10570 (lookup_minimal_symbol): Remove.
10571 (lookup_bound_minimal_symbol): Update.
10572 (lookup_minimal_symbol_text): Change return type.
10573 (lookup_minimal_symbol_solib_trampoline): Change return type.
10574 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10575 (lookup_minimal_symbol_solib_trampoline): Change return type.
10576 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10577 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10578 (value_nsstring, find_imps): Update.
10579 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10580 * p-lang.c (pascal_main_name): Update.
10581 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10582 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10583 * proc-service.c (ps_pglobal_lookup): Update.
10584 * ravenscar-thread.c (get_running_thread_msymbol): Change
10586 (has_ravenscar_runtime, get_running_thread_id): Update.
10587 * remote.c (remote_check_symbols): Update.
10588 * sol-thread.c (ps_pglobal_lookup): Update.
10589 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10590 * solib-dsbt.c (lm_base): Update.
10591 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10593 * solib-irix.c (locate_base): Update.
10594 * solib-som.c (som_solib_create_inferior_hook)
10595 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10597 * solib-spu.c (spu_enable_break): Update.
10598 * solib-svr4.c (elf_locate_base, enable_break): Update.
10599 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10600 (flush_ea_cache): Update.
10601 * stabsread.c (define_symbol): Update.
10602 * symfile.c (simple_read_overlay_table): Update.
10603 * symtab.c (find_pc_sect_line): Update.
10604 * tracepoint.c (scope_info): Update.
10605 * tui-disasm.c (tui_get_begin_asm_address): Update.
10606 * value.c (value_static_field): Update.
10608 2014-02-26 Tom Tromey <tromey@redhat.com>
10610 * minsyms.c (prim_record_minimal_symbol_full): Use
10611 SET_MSYMBOL_VALUE_ADDRESS.
10612 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10613 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10614 SET_MSYMBOL_VALUE_ADDRESS.
10615 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10616 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10618 2014-02-26 Tom Tromey <tromey@redhat.com>
10620 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10621 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10622 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10623 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10624 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10625 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10626 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10627 * ada-lang.c (ada_main_name): Update.
10628 (ada_lookup_simple_minsym): Update.
10629 (ada_make_symbol_completion_list): Update.
10630 (ada_add_standard_exceptions): Update.
10631 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10632 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10633 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10634 * arm-tdep.c (skip_prologue_function): Update.
10635 (arm_skip_stack_protector, arm_skip_stub): Update.
10636 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10637 (arm_wince_skip_main_prologue): Update.
10638 * auxv.c (ld_so_xfer_auxv): Update.
10639 * avr-tdep.c (avr_scan_prologue): Update.
10640 * ax-gdb.c (gen_var_ref): Update.
10641 * block.c (call_site_for_pc): Update.
10642 * blockframe.c (get_pc_function_start): Update.
10643 (find_pc_partial_function_gnu_ifunc): Update.
10644 * breakpoint.c (create_overlay_event_breakpoint): Update.
10645 (create_longjmp_master_breakpoint): Update.
10646 (create_std_terminate_master_breakpoint): Update.
10647 (create_exception_master_breakpoint): Update.
10648 (resolve_sal_pc): Update.
10649 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10650 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10652 * c-valprint.c (c_val_print): Update.
10653 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10654 * coffread.c (coff_symfile_read): Update.
10655 * common/agent.c (agent_look_up_symbols): Update.
10656 * dbxread.c (find_stab_function_addr): Update.
10657 (end_psymtab): Update.
10658 * dwarf2loc.c (call_site_to_target_addr): Update.
10659 (func_verify_no_selftailcall): Update.
10660 (tailcall_dump): Update.
10661 (call_site_find_chain_1): Update.
10662 (dwarf_expr_reg_to_entry_parameter): Update.
10663 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10664 (elf_gnu_ifunc_resolve_by_got): Update.
10665 * f-valprint.c (info_common_command): Update.
10666 * findvar.c (read_var_value): Update.
10667 * frame.c (get_prev_frame_1): Update.
10668 (inside_main_func): Update.
10669 * frv-tdep.c (frv_skip_main_prologue): Update.
10670 (frv_frame_this_id): Update.
10671 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10672 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10673 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10674 (gnuv3_skip_trampoline): Update.
10675 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10676 (hppa64_hpux_in_solib_call_trampoline): Update.
10677 (hppa_hpux_skip_trampoline_code): Update.
10678 (hppa64_hpux_search_dummy_call_sequence): Update.
10679 (hppa_hpux_find_import_stub_for_addr): Update.
10680 (hppa_hpux_find_dummy_bpaddr): Update.
10681 * hppa-tdep.c (hppa_symbol_address)
10682 (hppa_lookup_stub_minimal_symbol): Update.
10683 * i386-tdep.c (i386_skip_main_prologue): Update.
10684 (i386_pe_skip_trampoline_code): Update.
10685 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10686 * infcall.c (get_function_name): Update.
10687 * infcmd.c (until_next_command): Update.
10688 * jit.c (jit_breakpoint_re_set_internal): Update.
10689 (jit_inferior_init): Update.
10690 * linespec.c (minsym_found): Update.
10691 (add_minsym): Update.
10692 * linux-fork.c (info_checkpoints_command): Update.
10693 * linux-nat.c (get_signo): Update.
10694 * linux-thread-db.c (inferior_has_bug): Update.
10695 * m32c-tdep.c (m32c_return_value): Update.
10696 (m32c_m16c_address_to_pointer): Update.
10697 (m32c_m16c_pointer_to_address): Update.
10698 * m32r-tdep.c (m32r_frame_this_id): Update.
10699 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10700 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10701 * maint.c (maintenance_translate_address): Update.
10702 * minsyms.c (add_minsym_to_hash_table): Update.
10703 (add_minsym_to_demangled_hash_table): Update.
10704 (msymbol_objfile): Update.
10705 (lookup_minimal_symbol): Update.
10706 (iterate_over_minimal_symbols): Update.
10707 (lookup_minimal_symbol_text): Update.
10708 (lookup_minimal_symbol_by_pc_name): Update.
10709 (lookup_minimal_symbol_solib_trampoline): Update.
10710 (lookup_minimal_symbol_by_pc_section_1): Update.
10711 (lookup_minimal_symbol_and_objfile): Update.
10712 (prim_record_minimal_symbol_full): Update.
10713 (compare_minimal_symbols): Update.
10714 (compact_minimal_symbols): Update.
10715 (build_minimal_symbol_hash_tables): Update.
10716 (install_minimal_symbols): Update.
10717 (terminate_minimal_symbol_table): Update.
10718 (find_solib_trampoline_target): Update.
10719 (minimal_symbol_upper_bound): Update.
10720 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10721 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10722 (mips_skip_pic_trampoline_code): Update.
10723 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10724 * objc-lang.c (selectors_info): Update.
10725 (classes_info): Update.
10726 (find_methods): Update.
10727 (find_imps): Update.
10728 (find_objc_msgsend): Update.
10729 * objfiles.c (objfile_relocate1): Update.
10730 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10731 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10732 * p-valprint.c (pascal_val_print): Update.
10733 * parse.c (write_exp_msymbol): Update.
10734 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10735 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10736 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10737 * printcmd.c (build_address_symbolic): Update.
10738 (sym_info): Update.
10739 (address_info): Update.
10740 * proc-service.c (ps_pglobal_lookup): Update.
10741 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10742 (find_pc_sect_psymtab): Update.
10743 * python/py-framefilter.c (py_print_frame): Update.
10744 * ravenscar-thread.c (get_running_thread_id): Update.
10745 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10747 * remote.c (remote_check_symbols): Update.
10748 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10749 (rs6000_skip_trampoline_code): Update.
10750 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10751 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10752 * solib-dsbt.c (lm_base): Update.
10753 * solib-frv.c (lm_base): Update.
10754 (main_got): Update.
10755 * solib-irix.c (locate_base): Update.
10756 * solib-som.c (som_solib_create_inferior_hook): Update.
10757 (som_solib_desire_dynamic_linker_symbols): Update.
10758 (link_map_start): Update.
10759 * solib-spu.c (spu_enable_break): Update.
10760 (ocl_enable_break): Update.
10761 * solib-svr4.c (elf_locate_base): Update.
10762 (enable_break): Update.
10763 * spu-tdep.c (spu_get_overlay_table): Update.
10764 (spu_catch_start): Update.
10765 (flush_ea_cache): Update.
10766 * stabsread.c (define_symbol): Update.
10767 (scan_file_globals): Update.
10768 * stack.c (find_frame_funname): Update.
10769 (frame_info): Update.
10770 * symfile.c (simple_read_overlay_table): Update.
10771 (simple_overlay_update): Update.
10772 * symmisc.c (dump_msymbols): Update.
10773 * symtab.c (fixup_section): Update.
10774 (find_pc_sect_line): Update.
10775 (skip_prologue_sal): Update.
10776 (search_symbols): Update.
10777 (print_msymbol_info): Update.
10778 (rbreak_command): Update.
10779 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10780 (completion_list_objc_symbol): Update.
10781 (default_make_symbol_completion_list_break_on): Update.
10782 * tracepoint.c (scope_info): Update.
10783 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10784 (tui_get_begin_asm_address): Update.
10785 * valops.c (find_function_in_inferior): Update.
10786 * value.c (value_static_field): Update.
10787 (value_fn_field): Update.
10789 2014-02-26 Tom Tromey <tromey@redhat.com>
10791 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10792 bound minimal symbols. Move code that knows about minsym
10794 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10796 * minsyms.h (minimal_symbol_upper_bound): Declare.
10797 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10798 minimal_symbol_upper_bound.
10800 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10802 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10803 Use the type's name if its basic type does not have a tag.
10805 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10807 * dwarf2read.c (read_subrange_type): Add comment.
10809 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10811 * dwarf2read.c (update_enumeration_type_from_children): New
10812 function, mostly extracted from process_structure_scope.
10813 (read_enumeration_type): Call update_enumeration_type_from_children.
10814 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10815 and flag_flag_enum fields.
10817 2014-02-26 Pedro Alves <palves@redhat.com>
10819 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10820 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10821 to_xfer_partial method.
10823 2014-02-26 Pedro Alves <palves@redhat.com>
10825 * target.c (complete_target_initialization): Don't install
10826 default_xfer_partial as to_xfer_partial hook.
10827 (nomemory): Delete.
10828 (update_current_target): Don't INHERIT nor de_fault
10829 deprecated_xfer_memory. Delete de_fault macro.
10830 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10831 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10832 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10835 2014-02-26 Pedro Alves <palves@redhat.com>
10837 * go32-nat.c (my_write_child): New function.
10838 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10839 (go32_xfer_partial): New function.
10840 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10841 Instead install a to_xfer_partial hook.
10843 2014-02-26 Pedro Alves <palves@redhat.com>
10845 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10846 to_xfer_partial helper. Rewrite.
10847 (procfs_xfer_partial): New function.
10848 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10849 Install a to_xfer_partial hook.
10851 2014-02-26 Pedro Alves <palves@redhat.com>
10853 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10854 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10855 (m32r_xfer_partial): New function.
10856 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10857 Install a to_xfer_partial hook.
10859 2014-02-26 Pedro Alves <palves@redhat.com>
10861 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10863 (mips_xfer_partial): New function.
10864 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10865 hook. Install a to_xfer_partial hook.
10867 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10869 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10870 * gdbtypes.c (create_array_type_with_stride): New function,
10871 renaming create_array_type, but with an added parameter
10872 called "bit_stride".
10873 (create_array_type): Re-implement using
10874 create_array_type_with_stride.
10875 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10876 and DW_AT_bit_stride attributes.
10878 2014-02-26 Pedro Alves <palves@redhat.com>
10880 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10881 task-specific breakpoints.
10883 2014-02-25 Pedro Alves <palves@redhat.com>
10885 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10886 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10888 2014-02-25 Stan Shebs <stan@codesourcery.com>
10890 * defs.h: Annotate comments for Doxygen.
10892 2014-02-25 Tom Tromey <tromey@redhat.com>
10894 * target.h (target_ignore): Don't declare.
10895 * target.c (target_ignore): Remove.
10897 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10900 * auto-load.c (auto_load_objfile_script_1): Change filename to
10903 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10905 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10906 documentation. Adjust prototype to match the target_ops
10907 to_xfer_partial method. Adjust implementation accordingly.
10909 2014-02-25 Hui Zhu <hui@codesourcery.com>
10911 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10912 to_traceframe_info.
10914 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10916 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10917 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10918 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10919 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10920 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10921 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10922 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10923 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10925 (rl78_register_type): Use a data pointer type for SP and
10926 new pseudo registers mentioned above. Use a 16 bit integer
10927 type for all other register pairs.
10928 (rl78_register_name, rl78_g10_register_name): Update for
10929 new pseudo registers.
10930 (rl78_pseudo_register_read): Likewise.
10931 (rl78_pseudo_register_write): Likewise.
10932 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10933 to the newly added pseudo registers.
10935 2014-02-24 Doug Evans <dje@google.com>
10937 * value.c (record_latest_value): Fix comment.
10938 * printcmd.c (print_command_1): Remove code to handle -1 return from
10939 record_latest_value.
10941 2014-02-24 Pedro Alves <palves@redhat.com>
10943 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10944 deprecated_xfer_memory hook.
10945 (procfs_xfer_partial): Call procfs_xfer_memory instead
10946 of the deprecated_xfer_memory target hook.
10947 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10950 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10952 * windows-nat.c (windows_xfer_shared_libraries): Return
10953 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10954 requested object is TARGET_OBJECT_LIBRARIES.
10956 2014-02-24 Yao Qi <yao@codesourcery.com>
10958 * target.h (enum target_xfer_status)
10959 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10960 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10962 * corefile.c (memory_error_message): User updated.
10963 * exec.c (section_table_read_available_memory): Likewise.
10964 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10965 * target.c (target_xfer_status_to_string): Likewise.
10966 (raw_memory_xfer_partial): Likewise.
10967 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10968 * valops.c (read_value_memory): Likewise.
10969 * exec.h: Update comments.
10971 2014-02-24 Yao Qi <yao@codesourcery.com>
10973 * target.c (target_xfer_status_to_string): Rename argument err
10975 * target.h (target_xfer_status_to_string): Update declaration.
10976 Replace target_xfer_error_to_string with
10977 target_xfer_status_to_string in comment.
10979 2014-02-24 Yao Qi <yao@codesourcery.com>
10981 * mips-linux-nat.c (super_close): Update its type.
10982 (mips_linux_close): Pass 'self' to super_close.
10984 2014-02-24 Yao Qi <yao@codesourcery.com>
10986 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10987 * corefile.c (read_memory): Adjusted.
10988 * target.c (target_write_with_progress): Adjusted.
10990 2014-02-23 Yao Qi <yao@codesourcery.com>
10992 Revert two patches:
10994 2013-10-25 Yao Qi <yao@codesourcery.com>
10996 * remote.c (remote_traceframe_info): Return early if
10997 traceframe is not selected.
10999 2013-07-19 Yao Qi <yao@codesourcery.com>
11001 * target.c (update_current_target): Change the default action
11002 of 'to_traceframe_info' from tcomplain to return_zero.
11003 * target.h (struct target_ops) <to_traceframe_info>: Add more
11006 2014-02-23 Yao Qi <yao@codesourcery.com>
11008 * valops.c (read_value_memory): Rewrite it. Call
11009 target_xfer_partial in a loop.
11010 * exec.h (section_table_available_memory): Remove declaration.
11011 Move comments to ...
11012 * exec.c (section_table_available_memory): ... here. Make it
11015 2014-02-23 Yao Qi <yao@codesourcery.com>
11017 * exec.c (section_table_read_available_memory): New function.
11018 * exec.h (section_table_read_available_memory): Declare.
11019 * ctf.c (ctf_xfer_partial): Call
11020 section_table_read_available_memory.
11021 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11023 2014-02-23 Yao Qi <yao@codesourcery.com>
11025 * ctf.c (ctf_xfer_partial): Move code to ...
11026 * exec.c (exec_read_partial_read_only): ... it. New function.
11027 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11028 * tracefile.c: Include "exec.h".
11029 * exec.h (exec_read_partial_read_only): Declare.
11031 2014-02-23 Yao Qi <yao@codesourcery.com>
11033 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11034 (tfile_has_memory): Remove.
11035 (init_tfile_ops): Don't set fields to_has_all_memory and
11036 to_has_memory of tfile_ops.
11037 * tracefile.c (tracefile_has_all_memory): New function.
11038 (tracefile_has_memory): New function.
11039 (init_tracefile_ops): Initialize fields to_has_all_memory and
11040 to_has_memory of 'ops'.
11042 2014-02-23 Yao Qi <yao@codesourcery.com>
11044 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11045 (ctf_thread_alive, ctf_get_trace_status): Remove.
11046 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11047 init_tracefile_ops.
11048 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11049 (tfile_has_stack, tfile_has_registers): Remove.
11050 (tfile_thread_alive): Remove.
11051 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11052 init_tracefile_ops.
11053 * tracefile.c (tracefile_has_stack): New function.
11054 (tracefile_has_registers): New function.
11055 (tracefile_thread_alive): New function.
11056 (tracefile_get_trace_status): New function.
11057 (init_tracefile_ops): New function.
11058 * tracefile.h (init_tracefile_ops): Declare.
11060 2014-02-23 Yao Qi <yao@codesourcery.com>
11062 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11063 (O_LARGEFILE): Likewise.
11064 (tfile_ops): Likewise.
11065 (TRACE_HEADER_SIZE): Likewise.
11066 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11067 (cur_data_size): Likewise.
11068 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11069 (tfile_close, tfile_files_info): Likewise.
11070 (tfile_get_trace_status): Likewise.
11071 (tfile_get_tracepoint_status): Likewise.
11072 (tfile_get_traceframe_address): Likewise.
11073 (tfile_trace_find, match_blocktype): Likewise.
11074 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11075 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11076 (tfile_get_trace_state_variable_value): Likewise.
11077 (tfile_has_all_memory, tfile_has_memory): Likewise.
11078 (tfile_has_stack, tfile_has_registers): Likewise.
11079 (tfile_thread_alive, build_traceframe_info): Likewise.
11080 (tfile_traceframe_info, init_tfile_ops): Likewise.
11081 (_initialize_tracepoint): Don't call init_tfile_ops
11082 and add_target_with_completer.
11083 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11084 exec.h, completer.h and filenames.h.
11085 (_initialize_tracefile_tfile): New function.
11087 2014-02-23 Yao Qi <yao@codesourcery.com>
11089 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11091 (HFILES_NO_SRCDIR): Add tracefile.h.
11092 * ctf.c: Include "tracefile.h".
11093 * tracefile.h: New file.
11094 * tracefile.c: New file
11095 * tracefile-tfile.c: New file.
11096 * tracepoint.c: Include "tracefile.h".
11097 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11098 (stop_reason_names): Add const.
11099 (trace_file_writer_xfree): Move it to tracefile.c.
11100 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11101 (trace_save_ctf): Likewise.
11102 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11103 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11104 (tfile_write_header, tfile_write_regblock_type): Likewise.
11105 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11106 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11107 (tfile_write_raw_data, tfile_end): Likewise.
11108 (tfile_trace_file_writer_new): Likewise.
11109 (free_uploaded_tp): Make it extern.
11110 (free_uploaded_tsv): Make it extern.
11111 (_initialize_tracepoint): Move code to register command 'tsave'
11113 * tracepoint.h (stop_reason_names): Declare.
11114 (struct trace_frame_write_ops): Move it to tracefile.h.
11115 (struct trace_file_write_ops): Likewise.
11116 (struct trace_file_writer): Likewise.
11117 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11119 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11122 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11124 (get_cores_used_by_process): New parameter num_cores, use it.
11125 (linux_xfer_osdata_processes): Pass num_cores to it.
11126 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11129 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11131 * target.c (memory_xfer_partial): Fix length arg in call to
11132 breakpoint_xfer_memory.
11134 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11137 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11138 number comes after the + or - signs. Adjust length of register
11139 name to be extracted.
11141 2014-02-20 Tom Tromey <tromey@redhat.com>
11143 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11144 (ada_varobj_ops): Mark "extern".
11146 2014-02-20 Tom Tromey <tromey@redhat.com>
11148 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11150 2014-02-20 Doug Evans <xdje42@gmail.com>
11152 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11153 All callers updated.
11154 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11155 All callers updated.
11156 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11157 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11159 2014-02-20 lin zuojian <manjian2006@gmail.com>
11160 Joel Brobecker <brobecker@adacore.com>
11161 Doug Evans <xdje42@gmail.com>
11164 * dwarf2read.c (struct die_info): New member in_process.
11165 (reset_die_in_process): New function.
11166 (process_die): Set it at the start, reset when returning.
11167 (inherit_abstract_dies): Only call process_die if origin_child_die
11168 not already being processed.
11170 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11172 * windows-nat.c (handle_unload_dll): Add function documentation.
11173 (do_initial_windows_stuff): Add comment explaining why we wait
11174 until after inferior initialization has finished before
11175 processing all DLLs.
11177 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11179 * windows-nat.c (get_module_name): Delete.
11180 (windows_get_exec_module_filename): New function, mostly
11181 inspired from get_module_name.
11182 (windows_pid_to_exec_file): Replace call to get_module_name
11183 by call to windows_get_exec_module_filename.
11185 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11187 * windows-nat.c (handle_load_dll): Rewrite this function's
11188 introductory comment. Remove code using get_module_name
11189 to get the DLL's name.
11191 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11193 * windows-nat.c (get_windows_debug_event): Ignore
11194 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11195 if windows_initialization_done == 0.
11196 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11197 Adjust implementation to always load all DLLs.
11198 (do_initial_windows_stuff): Replace call to
11199 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11201 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11203 * windows-nat.c (_initialize_windows_nat): Deprecate the
11204 "dll-symbols" command. Turn the "add-shared-symbol-files"
11205 and "assf" aliases into commands, and deprecate them as well.
11206 * NEWS: Add entry explaining that "dll-symbols" and its two
11207 aliases are now deprecated.
11209 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11211 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11212 new-line in debug string. Remove trailing spaces.
11214 2014-02-19 Stan Shebs <stan@codesourcery.com>
11216 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11218 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11220 * NEWS: Add entry for the new feature
11221 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11224 2014-02-19 Stan Shebs <stan@codesourcery.com>
11226 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11228 2014-02-19 Pedro Alves <palves@redhat.com>
11230 * common/ptid.h (struct ptid): Mention that process_stratum
11231 targets should prefer ptid.lwp.
11233 2014-02-19 Pedro Alves <palves@redhat.com>
11235 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11236 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11237 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11238 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11239 store remote thread ids rather than ptid.tid.
11240 (_initialize_remote): Adjust.
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target.c (target_get_unwinder): Rewrite.
11245 (target_get_tailcall_unwinder): Rewrite.
11246 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11247 (record_btrace_to_get_tailcall_unwinder): New function.
11248 (init_record_btrace_ops): Update.
11249 * target.h (struct target_ops) <to_get_unwinder,
11250 to_get_tailcall_unwinder>: Now function pointers. Use
11251 TARGET_DEFAULT_RETURN.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11257 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11263 * target-delegates.c: Rebuild.
11264 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11265 TARGET_DEFAULT_FUNC.
11266 * target.c (default_target_decr_pc_after_break): Rename from
11267 forward_target_decr_pc_after_break. Simplify.
11268 (target_decr_pc_after_break): Rely on delegation.
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target.c (update_current_target): Do not INHERIT to_doc or
11273 to_magic. Do not de_fault to_open or to_close.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * gcore.h (objfile_find_memory_regions): Declare.
11278 * gcore.c (objfile_find_memory_regions): No longer static. Add
11280 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11281 * exec.c: Include gcore.h.
11282 (exec_set_find_memory_regions): Remove.
11283 (exec_find_memory_regions): Remove.
11284 (exec_do_find_memory_regions): Remove.
11285 (init_exec_ops): Update.
11286 * defs.h (exec_set_find_memory_regions): Remove.
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: Rebuild.
11291 * target.h (struct target_ops) <to_extra_thread_info,
11292 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11293 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11294 not 0, in TARGET_DEFAULT_RETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.c (complete_target_initialization): Remove casts. Use
11299 return_zero_has_execution.
11300 (return_zero): Add "ignore" argument.
11301 (return_zero_has_execution): New function.
11302 (init_dummy_target): Remove casts. Use
11303 return_zero_has_execution.
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target.c (update_current_target): Update comments. Do not
11308 INHERIT to_stratum.
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11312 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11314 * corelow.c (core_read_description): Delegate when needed.
11315 * remote.c (remote_read_description): Delegate when needed.
11316 * target-delegates.c: Rebuild.
11317 * target.c (target_read_description): Rewrite.
11318 * target.h (struct target_ops) <to_read_description>: Update
11319 comment. Use TARGET_DEFAULT_RETURN.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target-delegates.c: Rebuild.
11324 * target.c (update_current_target): Don't inherit or default
11326 (find_default_run_target): Check against delegate_can_run.
11327 * target.h (struct target_ops) <to_can_run>: Use
11328 TARGET_DEFAULT_RETURN.
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11332 * target-delegates.c: Rebuild.
11333 * target.c (target_disconnect): Unconditionally delegate.
11334 * target.h (struct target_ops) <to_disconnect>: Use
11335 TARGET_DEFAULT_NORETURN.
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11339 * record.c (record_stop): Unconditionally delegate.
11340 * target-delegates.c: Rebuild.
11341 * target.c (target_stop_recording): Unconditionally delegate.
11342 * target.h (struct target_ops) <to_stop_recording>: Use
11343 TARGET_DEFAULT_IGNORE.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target-delegates.c: Rebuild.
11348 * target.c (target_enable_btrace): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_enable_btrace>: Use
11350 TARGET_DEFAULT_NORETURN.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_read_btrace): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_read_btrace>: Use
11357 TARGET_DEFAULT_NORETURN.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target-delegates.c: Rebuild.
11362 * target.c (target_teardown_btrace): Unconditionally delegate.
11363 * target.h (struct target_ops) <to_teardown_btrace>: Use
11364 TARGET_DEFAULT_NORETURN.
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11368 * target-delegates.c: Rebuild.
11369 * target.c (target_disable_btrace): Unconditionally delegate.
11370 * target.h (struct target_ops) <to_disable_btrace>: Use
11371 TARGET_DEFAULT_NORETURN.
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11375 * target-delegates.c: Rebuild.
11376 * target.c (default_search_memory): New function.
11377 (simple_search_memory): Update comment.
11378 (target_search_memory): Unconditionally delegate.
11379 * target.h (struct target_ops) <to_search_memory>: Use
11380 TARGET_DEFAULT_FUNC.
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11384 * auxv.c (default_auxv_parse): No longer static.
11385 (target_auxv_parse): Unconditionally delegate.
11386 * auxv.h (default_auxv_parse): Declare.
11387 * target-delegates.c: Rebuild.
11388 * target.c: Include auxv.h.
11389 * target.h (struct target_ops) <to_auxv_parse>: Use
11390 TARGET_DEFAULT_FUNC.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target-delegates.c: Rebuild.
11395 * target.c (target_memory_map): Unconditionally delegate.
11396 * target.h (struct target_ops) <to_memory_map>: Use
11397 TARGET_DEFAULT_RETURN.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_thread_alive): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_thread_alive>: Use
11404 TARGET_DEFAULT_RETURN.
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target-delegates.c: Rebuild.
11409 * target.c (target_save_record): Unconditionally delegate.
11410 * target.h (struct target_ops) <to_save_record>: Use
11411 TARGET_DEFAULT_NORETURN.
11413 2014-02-19 Tom Tromey <tromey@redhat.com>
11415 * target-delegates.c: Rebuild.
11416 * target.c (target_delete_record): Unconditionally delegate.
11417 * target.h (struct target_ops) <to_delete_record>: Use
11418 TARGET_DEFAULT_NORETURN.
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11422 * target-delegates.c: Rebuild.
11423 * target.c (target_record_is_replaying): Unconditionally
11425 * target.h (struct target_ops) <to_record_is_replaying>: Use
11426 TARGET_DEFAULT_RETURN.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target-delegates.c: Rebuild.
11431 * target.c (target_goto_record_begin): Unconditionally delegate.
11432 * target.h (struct target_ops) <to_goto_record_begin>: Use
11433 TARGET_DEFAULT_NORETURN.
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11437 * target-delegates.c: Rebuild.
11438 * target.c (target_goto_record_end): Unconditionally delegate.
11439 * target.h (struct target_ops) <to_goto_record_end>: Use
11440 TARGET_DEFAULT_NORETURN.
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11444 * target-delegates.c: Rebuild.
11445 * target.c (target_goto_record): Unconditionally delegate.
11446 * target.h (struct target_ops) <to_goto_record>: Use
11447 TARGET_DEFAULT_NORETURN.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * target-delegates.c: Rebuild.
11452 * target.c (target_insn_history): Unconditionally delegate.
11453 * target.h (struct target_ops) <to_insn_history>: Use
11454 TARGET_DEFAULT_NORETURN.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target-delegates.c: Rebuild.
11459 * target.c (target_insn_history_from): Unconditionally delegate.
11460 * target.h (struct target_ops) <to_insn_history_from>: Use
11461 TARGET_DEFAULT_NORETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (target_insn_history_range): Unconditionally delegate.
11467 * target.h (struct target_ops) <to_insn_history_range>: Use
11468 TARGET_DEFAULT_NORETURN.
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target-delegates.c: Rebuild.
11473 * target.c (target_call_history): Unconditionally delegate.
11474 * target.h (struct target_ops) <to_call_history>: Use
11475 TARGET_DEFAULT_NORETURN.
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11479 * target-delegates.c: Rebuild.
11480 * target.c (target_call_history_from): Unconditionally delegate.
11481 * target.h (struct target_ops) <to_call_history_from>: Use
11482 TARGET_DEFAULT_NORETURN.
11484 2014-02-19 Tom Tromey <tromey@redhat.com>
11486 * target-delegates.c: Rebuild.
11487 * target.c (target_call_history_range): Unconditionally delegate.
11488 * target.h (struct target_ops) <to_call_history_range>: Use
11489 TARGET_DEFAULT_NORETURN.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (target_verify_memory): Unconditionally delegate.
11495 * target.h (struct target_ops) <to_verify_memory>: Use
11496 TARGET_DEFAULT_NORETURN.
11498 2014-02-19 Tom Tromey <tromey@redhat.com>
11500 * target-delegates.c: Rebuild.
11501 * target.c (target_core_of_thread): Unconditionally delegate.
11502 * target.h (struct target_ops) <to_core_of_thread>: Use
11503 TARGET_DEFAULT_RETURN.
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11507 * target-delegates.c: Rebuild.
11508 * target.c (target_flash_done): Unconditionally delegate.
11509 * target.h (struct target_ops) <to_flash_done>: Use
11510 TARGET_DEFAULT_NORETURN.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (target_flash_erase): Unconditionally delegate.
11516 * target.h (struct target_ops) <to_flash_erase>: Use
11517 TARGET_DEFAULT_NORETURN.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (target_get_section_table): Unconditionally delegate.
11523 * target.h (struct target_ops) <to_get_section_table>: Use
11524 TARGET_DEFAULT_RETURN.
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target-delegates.c: Rebuild.
11529 * target.c (target_pid_to_str): Unconditionally delegate.
11530 (init_dummy_target): Don't initialize to_pid_to_str.
11531 (default_pid_to_str): Rename from dummy_pid_to_str.
11532 * target.h (struct target_ops) <to_pid_to_str>: Use
11533 TARGET_DEFAULT_FUNC.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (target_find_new_threads): Unconditionally delegate.
11539 * target.h (struct target_ops) <to_find_new_threads>: Use
11540 TARGET_DEFAULT_RETURN.
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11544 * target-delegates.c: Rebuild.
11545 * target.c (target_program_signals): Unconditionally delegate.
11546 * target.h (struct target_ops) <to_program_signals>: Use
11547 TARGET_DEFAULT_IGNORE.
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target-delegates.c: Rebuild.
11552 * target.c (target_pass_signals): Unconditionally delegate.
11553 * target.h (struct target_ops) <to_pass_signals>: Use
11554 TARGET_DEFAULT_IGNORE.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target-delegates.c: Rebuild.
11559 * target.c (default_mourn_inferior): New function.
11560 (target_mourn_inferior): Unconditionally delegate.
11561 * target.h (struct target_ops) <to_mourn_inferior>: Use
11562 TARGET_DEFAULT_FUNC.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target-delegates.c: Rebuild.
11567 * target.c (default_follow_fork): New function.
11568 (target_follow_fork): Unconditionally delegate.
11569 * target.h (struct target_ops) <to_follow_fork>: Use
11570 TARGET_DEFAULT_FUNC.
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target-delegates.c: Rebuild.
11575 * target.c (target_kill): Unconditionally delegate.
11576 * target.h (struct target_ops) <to_kill>: Use
11577 TARGET_DEFAULT_NORETURN.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target-delegates.c: Rebuild.
11582 * target.c (target_masked_watch_num_registers): Unconditionally
11584 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11585 Use TARGET_DEFAULT_RETURN.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (target_remove_mask_watchpoint): Unconditionally
11592 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11593 TARGET_DEFAULT_RETURN.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (target_insert_mask_watchpoint): Unconditionally
11600 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11601 TARGET_DEFAULT_RETURN.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target-delegates.c: Rebuild.
11606 * target.c (target_ranged_break_num_registers): Unconditionally
11608 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11609 Use TARGET_DEFAULT_RETURN.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (target_fetch_registers): Unconditionally delegate.
11615 * target.h (struct target_ops) <to_fetch_registers>: Use
11616 TARGET_DEFAULT_NORETURN.
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11623 * target.h (struct target_ops) <to_stop>: Use
11624 TARGET_DEFAULT_IGNORE.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_can_run_breakpoint_commands.
11631 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11632 Use TARGET_DEFAULT_RETURN.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_supports_evaluation_of_breakpoint_conditions.
11639 * target.h (struct target_ops)
11640 <to_supports_evaluation_of_breakpoint_conditions>: Use
11641 TARGET_DEFAULT_RETURN.
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target-delegates.c: Rebuild.
11646 * target.c (update_current_target): Don't inherit or default
11647 to_augmented_libraries_svr4_read.
11648 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11649 Use TARGET_DEFAULT_RETURN.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11656 * target.h (struct target_ops) <to_can_use_agent>: Use
11657 TARGET_DEFAULT_RETURN.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11664 * target.h (struct target_ops) <to_use_agent>: Use
11665 TARGET_DEFAULT_NORETURN.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_traceframe_info.
11672 (return_null): Remove.
11673 * target.h (struct target_ops) <to_traceframe_info>: Use
11674 TARGET_DEFAULT_RETURN.
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11678 * target-delegates.c: Rebuild.
11679 * target.c (update_current_target): Don't inherit or default
11680 to_static_tracepoint_markers_by_strid.
11681 * target.h (struct target_ops)
11682 <to_static_tracepoint_markers_by_strid>: Use
11683 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
11690 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11691 Use TARGET_DEFAULT_RETURN.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target-delegates.c: Rebuild.
11696 * target.c (update_current_target): Don't inherit or default
11697 to_set_permissions.
11698 * target.h (struct target_ops) <to_set_permissions>: Use
11699 TARGET_DEFAULT_IGNORE.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target-delegates.c: Rebuild.
11704 * target.c (update_current_target): Don't inherit or default
11705 to_get_tib_address.
11706 * target.h (struct target_ops) <to_get_tib_address>: Use
11707 TARGET_DEFAULT_NORETURN.
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target-delegates.c: Rebuild.
11712 * target.c (update_current_target): Don't inherit or default
11713 to_set_trace_notes.
11714 * target.h (struct target_ops) <to_set_trace_notes>: Use
11715 TARGET_DEFAULT_RETURN.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target-delegates.c: Rebuild.
11720 * target.c (update_current_target): Don't initialize
11721 to_set_trace_buffer_size.
11722 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11723 TARGET_DEFAULT_IGNORE.
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target-delegates.c: Rebuild.
11728 * target.c (update_current_target): Don't inherit or default
11729 to_set_circular_trace_buffer.
11730 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11731 TARGET_DEFAULT_IGNORE.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_set_disconnected_tracing.
11738 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11739 TARGET_DEFAULT_IGNORE.
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_get_min_fast_tracepoint_insn_len.
11746 (return_minus_one): Remove.
11747 * target.h (struct target_ops)
11748 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't inherit or default
11754 to_get_raw_trace_data.
11755 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11756 TARGET_DEFAULT_NORETURN.
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_upload_trace_state_variables.
11763 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11764 Use TARGET_DEFAULT_RETURN.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_upload_tracepoints.
11771 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11772 TARGET_DEFAULT_RETURN.
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_save_trace_data.
11779 * target.h (struct target_ops) <to_save_trace_data>: Use
11780 TARGET_DEFAULT_NORETURN.
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * target-delegates.c: Rebuild.
11785 * target.c (update_current_target): Don't inherit or default
11786 to_get_trace_state_variable_value.
11787 * target.h (struct target_ops)
11788 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11792 * target-delegates.c: Rebuild.
11793 * target.c (update_current_target): Don't inherit or default
11795 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11797 2014-02-19 Tom Tromey <tromey@redhat.com>
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11802 * target.h (struct target_ops) <to_trace_stop>: Use
11803 TARGET_DEFAULT_NORETURN.
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_get_tracepoint_status.
11810 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11811 TARGET_DEFAULT_NORETURN.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11817 to_get_trace_status.
11818 * target.h (struct target_ops) <to_get_trace_status>: Use
11819 TARGET_DEFAULT_RETURN.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11826 * target.h (struct target_ops) <to_trace_start>: Use
11827 TARGET_DEFAULT_NORETURN.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11833 to_trace_set_readonly_regions.
11834 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11835 Use TARGET_DEFAULT_NORETURN.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11841 to_disable_tracepoint.
11842 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11843 TARGET_DEFAULT_NORETURN.
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_enable_tracepoint.
11850 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11851 TARGET_DEFAULT_NORETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_download_trace_state_variable.
11858 * target.h (struct target_ops) <to_download_trace_state_variable>:
11859 Use TARGET_DEFAULT_NORETURN.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_can_download_tracepoint.
11866 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11867 TARGET_DEFAULT_RETURN.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_download_tracepoint.
11874 * target.h (struct target_ops) <to_download_tracepoint>: Use
11875 TARGET_DEFAULT_NORETURN.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11882 * target.h (struct target_ops) <to_trace_init>: Use
11883 TARGET_DEFAULT_RETURN.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_supports_string_tracing.
11890 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11891 TARGET_DEFAULT_RETURN.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_supports_enable_disable_tracepoint.
11898 * target.h (struct target_ops)
11899 <to_supports_enable_disable_tracepoint>: Use
11900 TARGET_DEFAULT_RETURN.
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11904 * target-delegates.c: Rebuild.
11905 * target.c (update_current_target): Don't inherit or default
11906 to_supports_multi_process.
11907 * target.h (struct target_ops) <to_supports_multi_process>: Use
11908 TARGET_DEFAULT_RETURN.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * target-delegates.c: Rebuild.
11913 * target.c (update_current_target): Don't inherit or default
11914 to_get_ada_task_ptid.
11915 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11916 TARGET_DEFAULT_FUNC.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target-delegates.c: Rebuild.
11921 * target.c (update_current_target): Don't inherit or default
11922 to_thread_architecture.
11923 * target.h (struct target_ops) <to_thread_architecture>: Use
11924 TARGET_DEFAULT_FUNC.
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target-delegates.c: Rebuild.
11929 * target.c (update_current_target): Don't inherit or default
11930 to_execution_direction.
11931 * target.h (struct target_ops) <to_execution_direction>: Use
11932 TARGET_DEFAULT_FUNC.
11934 2014-02-19 Tom Tromey <tromey@redhat.com>
11936 * target-delegates.c: Rebuild.
11937 * target.c (update_current_target): Don't inherit or default
11938 to_can_execute_reverse.
11939 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11940 TARGET_DEFAULT_RETURN.
11941 (target_can_execute_reverse): Unconditionally delegate.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11948 (dummy_goto_bookmark): Remove.
11949 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11950 * target.h (struct target_ops) <to_goto_bookmark>: Use
11951 TARGET_DEFAULT_NORETURN.
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
11958 (dummy_get_bookmark): Remove.
11959 (init_dummy_target): Don't inherit or default to_get_bookmark.
11960 * target.h (struct target_ops) <to_get_bookmark>: Use
11961 TARGET_DEFAULT_NORETURN
11963 2014-02-19 Tom Tromey <tromey@redhat.com>
11965 * target-delegates.c: Rebuild.
11966 * target.c (update_current_target): Don't inherit or default
11967 to_make_corefile_notes.
11968 (init_dummy_target): Don't initialize to_make_corefile_notes.
11969 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11970 TARGET_DEFAULT_FUNC.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_find_memory_regions.
11977 (init_dummy_target): Don't initialize to_find_memory_regions.
11978 * target.h (struct target_ops) <to_find_memory_regions>: Use
11979 TARGET_DEFAULT_FUNC.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target-delegates.c: Rebuild.
11984 * target.c (update_current_target): Don't inherit or default
11986 * target.h (struct target_ops) <to_log_command>: Use
11987 TARGET_DEFAULT_IGNORE.
11988 (target_log_command): Unconditionally delegate.
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11992 * target-delegates.c: Rebuild.
11993 * target.c (update_current_target): Don't inherit or default
11994 to_pid_to_exec_file.
11995 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11996 TARGET_DEFAULT_RETURN.
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
12000 * target-delegates.c: Rebuild.
12001 * target.c (update_current_target): Don't inherit or default
12003 (target_thread_name): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_thread_name>: Use
12005 TARGET_DEFAULT_RETURN.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target-delegates.c: Rebuild.
12010 * target.c (update_current_target): Don't inherit or default
12011 to_extra_thread_info.
12012 * target.h (struct target_ops) <to_extra_thread_info>: Use
12013 TARGET_DEFAULT_RETURN.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target-delegates.c: Rebuild.
12018 * target.c (update_current_target): Don't inherit or default
12020 * target.h (struct target_ops) <to_has_exited>: Use
12021 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
12028 (return_one): Remove.
12029 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12030 TARGET_DEFAULT_RETURN.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12036 to_insert_exec_catchpoint.
12037 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12038 TARGET_DEFAULT_RETURN.
12040 2014-01-08 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_insert_exec_catchpoint.
12045 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12046 TARGET_DEFAULT_RETURN.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12052 to_remove_vfork_catchpoint.
12053 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12054 TARGET_DEFAULT_RETURN.
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_insert_vfork_catchpoint.
12061 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12062 TARGET_DEFAULT_RETURN.
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_remove_fork_catchpoint.
12069 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12070 TARGET_DEFAULT_RETURN.
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12074 * target-delegates.c: Rebuild.
12075 * target.c (update_current_target): Don't inherit or default
12076 to_insert_fork_catchpoint.
12077 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12078 TARGET_DEFAULT_RETURN.
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_post_startup_inferior.
12085 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12086 TARGET_DEFAULT_IGNORE.
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target-delegates.c: Rebuild.
12091 * target.c (update_current_target): Don't inherit or default
12093 * target.h (struct target_ops) <to_load>: Use
12094 TARGET_DEFAULT_NORETURN.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target-delegates.c: Rebuild.
12099 * target.c (update_current_target): Don't inherit or default
12101 * target.h (struct target_ops) <to_terminal_info>: Use
12102 TARGET_DEFAULT_FUNC.
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12106 * target-delegates.c: Rebuild.
12107 * target.c (update_current_target): Don't inherit or default
12108 to_terminal_save_ours.
12109 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12110 TARGET_DEFAULT_IGNORE.
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target-delegates.c: Rebuild.
12115 * target.c (update_current_target): Don't inherit or default
12117 * target.h (struct target_ops) <to_terminal_ours>: Use
12118 TARGET_DEFAULT_IGNORE.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target-delegates.c: Rebuild.
12123 * target.c (update_current_target): Don't inherit or default
12124 to_terminal_ours_for_output.
12125 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12126 TARGET_DEFAULT_IGNORE.
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * target-delegates.c: Rebuild.
12131 * target.c (update_current_target): Don't inherit or default
12132 to_terminal_inferior.
12133 * target.h (struct target_ops) <to_terminal_inferior>: Use
12134 TARGET_DEFAULT_IGNORE.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target-delegates.c: Rebuild.
12139 * target.c (update_current_target): Don't inherit or default
12141 * target.h (struct target_ops) <to_terminal_init>: Use
12142 TARGET_DEFAULT_IGNORE.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12148 to_can_accel_watchpoint_condition.
12149 * target.h (struct target_ops)
12150 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_region_ok_for_hw_watchpoint.
12157 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12158 Use TARGET_DEFAULT_FUNC.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target-delegates.c: Rebuild.
12163 * target.c (update_current_target): Don't inherit or default
12164 to_watchpoint_addr_within_range.
12165 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12166 Use TARGET_DEFAULT_FUNC.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't inherit or default
12172 to_remove_watchpoint.
12173 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12174 TARGET_DEFAULT_NORETURN.
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target-delegates.c: Rebuild.
12179 * target.c (update_current_target): Don't inherit or default
12180 to_insert_watchpoint.
12181 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12182 TARGET_DEFAULT_RETURN.
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * target-delegates.c: Rebuild.
12187 * target.c (update_current_target): Don't inherit or default
12188 to_remove_hw_breakpoint.
12189 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12190 TARGET_DEFAULT_RETURN.
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12194 * target-delegates.c: Rebuild.
12195 * target.c (update_current_target): Don't inherit or default
12196 to_insert_hw_breakpoint.
12197 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12198 TARGET_DEFAULT_RETURN.
12200 2014-02-19 Tom Tromey <tromey@redhat.com>
12202 * target-delegates.c: Rebuild.
12203 * target.c (update_current_target): Don't inherit or default
12204 to_can_use_hw_breakpoint.
12205 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12206 TARGET_DEFAULT_RETURN.
12208 2014-02-19 Tom Tromey <tromey@redhat.com>
12210 * target-delegates.c: Rebuild.
12211 * target.c (update_current_target): Don't inherit or default
12213 * target.h (struct target_ops) <to_files_info>: Use
12214 TARGET_DEFAULT_IGNORE.
12216 2014-02-19 Tom Tromey <tromey@redhat.com>
12218 * target-delegates.c: Rebuild.
12219 * target.c (update_current_target): Don't inherit or default
12221 * target.h (struct target_ops) <to_store>: Use
12222 TARGET_DEFAULT_NORETURN.
12224 2014-02-19 Tom Tromey <tromey@redhat.com>
12226 * target-delegates.c: Rebuild.
12227 * target.c (update_current_target): Don't inherit or default
12229 * target.h (struct target_ops) <to_post_attach>: Use
12230 TARGET_DEFAULT_IGNORE.
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * target-delegates.c: Rebuild.
12235 * target.c (update_current_target): Don't inherit or default
12237 (default_rcmd): New function.
12238 (do_monitor_command): Unconditionally delegate.
12239 * target.h (struct target_ops) <to_rmcd>: Use
12240 TARGET_DEFAULT_FUNC.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * target-delegates.c: Rebuild.
12245 * target.c (init_dummy_target): Don't initialize to_attach.
12246 (target_attach): Unconditionally delegate.
12247 * target.h (struct target_ops) <to_attach>: Use
12248 TARGET_DEFAULT_FUNC.
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12252 * target-delegates.c: Rebuild.
12253 * target.c (target_detach): Unconditionally delegate.
12254 (init_dummy_target): Don't initialize to_detach.
12255 * target.h (struct target_ops) <to_detach>: Use
12256 TARGET_DEFAULT_IGNORE.
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12260 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12262 (target_augmented_libraries_svr4_read): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12269 * target.h (struct target_ops) <to_call_history_range>: Add
12271 * target.c (target_call_history_range): Add argument.
12272 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12274 (record_btrace_call_history_from): Update.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target.h (struct target_ops) <to_call_history_from>: Add
12280 * target.c (target_call_history_from): Add argument.
12281 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12284 2014-02-19 Tom Tromey <tromey@redhat.com>
12286 * target.h (struct target_ops) <to_call_history>: Add argument.
12287 * target.c (target_call_history): Add argument.
12288 * record-btrace.c (record_btrace_call_history): Add 'self'
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * target.h (struct target_ops) <to_insn_history_range>: Add
12295 * target.c (target_insn_history_range): Add argument.
12296 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12298 (record_btrace_insn_history_from): Update.
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12302 * target.h (struct target_ops) <to_insn_history_from>: Add
12304 * target.c (target_insn_history_from): Add argument.
12305 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12310 * target.h (struct target_ops) <to_insn_history>: Add argument.
12311 * target.c (target_insn_history): Add argument.
12312 * record-btrace.c (record_btrace_insn_history): Add 'self'
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (struct target_ops) <to_goto_record>: Add argument.
12318 * target.c (target_goto_record): Add argument.
12319 * record-full.c (record_full_goto): Add 'self' argument.
12320 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12325 * target.c (target_goto_record_end): Add argument.
12326 * record-full.c (record_full_goto_end): Add 'self' argument.
12327 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * target.h (struct target_ops) <to_goto_record_begin>: Add
12333 * target.c (target_goto_record_begin): Add argument.
12334 * record-full.c (record_full_goto_begin): Add 'self' argument.
12335 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12338 2014-02-19 Tom Tromey <tromey@redhat.com>
12340 * target.h (struct target_ops) <to_record_is_replaying>: Add
12342 * target.c (target_record_is_replaying): Add argument.
12343 * record-full.c (record_full_is_replaying): Add 'self' argument.
12344 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12346 (record_btrace_xfer_partial, record_btrace_store_registers)
12347 (record_btrace_prepare_to_store, record_btrace_resume)
12348 (record_btrace_wait, record_btrace_decr_pc_after_break)
12349 (record_btrace_find_new_threads, record_btrace_thread_alive):
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops) <to_delete_record>: Add argument.
12355 * target.c (target_delete_record): Add argument.
12356 * record-full.c (record_full_delete): Add 'self' argument.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target.h (struct target_ops) <to_save_record>: Add argument.
12361 * target.c (target_save_record): Add argument.
12362 * record-full.c (record_full_save): Add 'self' argument.
12363 (record_full_save): Add 'self' argument.
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12367 * target.h (struct target_ops) <to_info_record>: Add argument.
12368 * target.c (target_info_record): Add argument.
12369 * record.c (info_record_command): Add argument.
12370 * record-full.c (record_full_info): Add 'self' argument.
12371 * record-btrace.c (record_btrace_info): Add 'self' argument.
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12375 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12376 * target.c (target_stop_recording): Add argument.
12377 * record.c (record_stop): Add argument.
12378 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12383 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12384 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12385 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12387 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12388 (_initialize_amd64_linux_nat): Use it.
12389 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12390 (_initialize_i386_linux_nat): Use it.
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12395 * target.c (target_teardown_btrace): Add argument.
12396 * remote.c (remote_teardown_btrace): Add 'self' argument.
12397 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12399 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12405 * target.c (target_disable_btrace): Add argument.
12406 * remote.c (remote_disable_btrace): Add 'self' argument.
12407 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12409 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12414 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12415 * target.c (target_enable_btrace): Add argument.
12416 * remote.c (remote_enable_btrace): Add 'self' argument.
12417 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12419 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12425 (target_can_use_agent): Add argument.
12426 * target.c (update_current_target): Update.
12427 * remote.c (remote_can_use_agent): Add 'self' argument.
12428 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12432 * target.h (struct target_ops) <to_use_agent>: Add argument.
12433 (target_use_agent): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_use_agent): Add 'self' argument.
12436 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12440 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12441 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12442 (target_traceframe_info): Add argument.
12443 * target.c (update_current_target): Update.
12444 * remote.c (remote_traceframe_info): Add 'self' argument.
12445 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target.h (target_static_tracepoint_markers_by_strid): Add
12451 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12453 * target.c (update_current_target): Update.
12454 * remote.c (struct target_ops)
12455 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12456 * linux-nat.c (struct target_ops)
12457 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12459 2014-02-19 Tom Tromey <tromey@redhat.com>
12461 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12463 (target_static_tracepoint_marker_at): Add argument.
12464 * target.c (update_current_target): Update.
12465 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12468 2014-02-19 Tom Tromey <tromey@redhat.com>
12470 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12471 (target_set_permissions): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_set_permissions): Add 'self' argument.
12474 (remote_start_remote): Update.
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12478 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12479 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12480 (target_get_tib_address): Add argument.
12481 * target.c (update_current_target): Update.
12482 * remote.c (remote_get_tib_address): Add 'self' argument.
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12486 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12487 (target_set_trace_notes): Add argument.
12488 * target.c (update_current_target): Update.
12489 * remote.c (remote_set_trace_notes): Add 'self' argument.
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12493 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12495 (target_set_trace_buffer_size): Add argument.
12496 * target.c (update_current_target): Update.
12497 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12503 (target_set_circular_trace_buffer): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12510 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12512 (target_set_disconnected_tracing): Add argument.
12513 * target.c (update_current_target): Update.
12514 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12518 * target.h (struct target_ops)
12519 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12520 (target_get_min_fast_tracepoint_insn_len): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12525 2014-02-19 Tom Tromey <tromey@redhat.com>
12527 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12529 (target_get_raw_trace_data): Add argument.
12530 * target.c (update_current_target): Update.
12531 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12533 2014-02-19 Tom Tromey <tromey@redhat.com>
12535 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12537 (target_upload_trace_state_variables): Add argument.
12538 * target.c (update_current_target): Update.
12539 * remote.c (remote_upload_trace_state_variables): Add 'self'
12541 (remote_start_remote): Update.
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12547 (target_upload_tracepoints): Add argument.
12548 * target.c (update_current_target): Update.
12549 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12550 (remote_start_remote): Update.
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12554 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12555 (target_save_trace_data): Add argument.
12556 * target.c (update_current_target): Update.
12557 * remote.c (remote_save_trace_data): Add 'self' argument.
12559 2014-02-19 Tom Tromey <tromey@redhat.com>
12561 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12563 * target.h (struct target_ops)
12564 <to_get_trace_state_variable_value>: Add argument.
12565 (target_get_trace_state_variable_value): Add argument.
12566 * target.c (update_current_target): Update.
12567 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12569 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12571 2014-02-19 Tom Tromey <tromey@redhat.com>
12573 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12574 * target.h (struct target_ops) <to_trace_find>: Add argument.
12575 (target_trace_find): Add argument.
12576 * target.c (update_current_target): Update.
12577 * remote.c (remote_trace_find): Add 'self' argument.
12578 * ctf.c (ctf_trace_find): Add 'self' argument.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12583 (target_trace_stop): Add argument.
12584 * target.c (update_current_target): Update.
12585 * remote.c (remote_trace_stop): Add 'self' argument.
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12589 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12590 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12592 (target_get_tracepoint_status): Add argument.
12593 * target.c (update_current_target): Update.
12594 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12596 2014-02-19 Tom Tromey <tromey@redhat.com>
12598 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12599 * target.h (struct target_ops) <to_get_trace_status>: Add
12601 (target_get_trace_status): Add argument.
12602 * target.c (update_current_target): Update.
12603 * remote.c (remote_get_trace_status): Add 'self' argument.
12604 (remote_start_remote, remote_can_download_tracepoint): Update.
12605 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target.h (struct target_ops) <to_trace_start>: Add argument.
12610 (target_trace_start): Add argument.
12611 * target.c (update_current_target): Update.
12612 * remote.c (remote_trace_start): Add 'self' argument.
12614 2014-02-19 Tom Tromey <tromey@redhat.com>
12616 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12618 (target_trace_set_readonly_regions): Add argument.
12619 * target.c (update_current_target): Update.
12620 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12627 (target_disable_tracepoint): Add argument.
12628 * target.c (update_current_target): Update.
12629 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12635 (target_enable_tracepoint): Add argument.
12636 * target.c (update_current_target): Update.
12637 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12641 * target.h (struct target_ops) <to_download_trace_state_variable>:
12643 (target_download_trace_state_variable): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_download_trace_state_variable): Add 'self'
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12650 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12652 (target_can_download_tracepoint): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_download_tracepoint>: Add
12660 (target_download_tracepoint): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_download_tracepoint): Add 'self' argument.
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12666 * target.h (struct target_ops) <to_trace_init>: Add argument.
12667 (target_trace_init): Add argument.
12668 * target.c (update_current_target): Update.
12669 * remote.c (remote_trace_init): Add 'self' argument.
12671 2014-02-19 Tom Tromey <tromey@redhat.com>
12673 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12674 * target.c (target_fileio_readlink): Add argument.
12675 * remote.c (remote_hostio_readlink): Add 'self' argument.
12676 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12680 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12681 * target.c (target_fileio_unlink): Add argument.
12682 * remote.c (remote_hostio_unlink): Add 'self' argument.
12683 (remote_file_delete): Update.
12684 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12686 2014-02-19 Tom Tromey <tromey@redhat.com>
12688 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12689 * target.c (target_fileio_close): Add argument.
12690 * remote.c (remote_hostio_close): Add 'self' argument.
12691 (remote_hostio_close_cleanup): Update.
12692 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12694 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12698 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12699 * target.c (target_fileio_pread): Add argument.
12700 * remote.c (remote_hostio_pread): Add 'self' argument.
12701 (remote_bfd_iovec_pread, remote_file_get): Update.
12702 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12707 * target.c (target_fileio_pwrite): Add argument.
12708 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12709 (remote_file_put): Update.
12710 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12715 * target.c (target_fileio_open): Add argument.
12716 * remote.c (remote_hostio_open): Add 'self' argument.
12717 (remote_bfd_iovec_open): Add 'self' argument.
12718 (remote_file_put): Add 'self' argument.
12719 (remote_file_get): Add 'self' argument.
12720 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12724 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12726 (target_can_run_breakpoint_commands): Add argument.
12727 * target.c (update_current_target): Update.
12728 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12730 (remote_insert_breakpoint): Add 'self' argument.
12731 (remote_insert_hw_breakpoint): Add 'self' argument.
12732 (remote_can_run_breakpoint_commands): Add 'self' argument.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops)
12737 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12738 (target_supports_evaluation_of_breakpoint_conditions): Add
12740 * target.c (update_current_target): Update.
12741 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12743 (remote_insert_breakpoint): Add 'self' argument.
12744 (remote_insert_hw_breakpoint): Add 'self' argument.
12745 (remote_supports_cond_breakpoints): Add 'self' argument.
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12749 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12751 (target_supports_string_tracing): Add argument.
12752 * target.c (update_current_target): Update.
12753 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * target.h (struct target_ops)
12758 <to_supports_disable_randomization>: Add argument.
12759 * target.c (find_default_supports_disable_randomization): Add
12761 (target_supports_disable_randomization): Add argument.
12762 (find_default_supports_disable_randomization): Add 'self'
12764 * remote.c (extended_remote_supports_disable_randomization): Add
12766 (remote_supports_disable_randomization): Add 'self' argument.
12767 (extended_remote_create_inferior): Update.
12768 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12771 2014-02-19 Tom Tromey <tromey@redhat.com>
12773 * target.h (struct target_ops)
12774 <to_supports_enable_disable_tracepoint>: Add argument.
12775 (target_supports_enable_disable_tracepoint): Add argument.
12776 * target.c (update_current_target): Update.
12777 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12780 2014-02-19 Tom Tromey <tromey@redhat.com>
12782 * target.h (struct target_ops) <to_supports_multi_process>: Add
12784 (target_supports_multi_process): Add argument.
12785 * target.c (update_current_target): Update.
12786 * remote.c (remote_supports_multi_process): Add 'self' argument.
12787 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12789 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12794 * target.h (struct target_ops) <to_execution_direction>: Add
12796 (target_execution_direction): Add argument.
12797 * target.c (default_execution_direction): Add 'self' argument.
12798 * record-full.c (record_full_execution_direction): Add 'self'
12801 2014-02-19 Tom Tromey <tromey@redhat.com>
12803 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12805 (target_can_execute_reverse): Add argument.
12806 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12807 * record-full.c (record_full_can_execute_reverse): Add 'self'
12809 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12814 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12815 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12817 (target_get_ada_task_ptid): Add argument.
12818 * target.c (update_current_target): Update.
12819 (default_get_ada_task_ptid): Add 'self' argument.
12820 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12821 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12822 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12824 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12826 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12828 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12830 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12831 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12837 (target_goto_bookmark): Add argument.
12838 * target.c (dummy_goto_bookmark): Add 'self' argument.
12839 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12843 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12844 (target_get_bookmark): Add argument.
12845 * target.c (dummy_get_bookmark): Add 'self' argument.
12846 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12848 2014-02-19 Tom Tromey <tromey@redhat.com>
12850 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12852 (target_make_corefile_notes): Add argument.
12853 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12854 * procfs.c (procfs_make_note_section): Add 'self' argument.
12855 (procfs_make_note_section): Add 'self' argument.
12856 (procfs_make_note_section): Add 'self' argument.
12857 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12859 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12860 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12861 * exec.c (exec_make_note_section): Add 'self' argument.
12862 (exec_make_note_section): Add 'self' argument.
12864 2014-02-19 Tom Tromey <tromey@redhat.com>
12866 * target.h (struct target_ops) <to_find_memory_regions>: Add
12868 (target_find_memory_regions): Add argument.
12869 * target.c (dummy_find_memory_regions): Add 'self' argument.
12870 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12871 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12872 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12873 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12874 * exec. (exec_do_find_memory_regions): New global.
12875 (exec_set_find_memory_regions): Rewrite.
12876 (exec_find_memory_regions): New function.
12877 (init_exec_ops): Use exec_find_memory_regions.
12879 2014-02-19 Tom Tromey <tromey@redhat.com>
12881 * target.h (struct target_ops) <to_supports_non_stop>: Add
12883 * target.c (find_default_supports_non_stop): Add argument.
12884 (target_supports_non_stop): Add argument.
12885 (find_default_supports_non_stop): Add 'self' argument.
12886 * remote.c (remote_supports_non_stop): Add 'self' argument.
12887 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12889 2014-02-19 Tom Tromey <tromey@redhat.com>
12891 * target.h (struct target_ops) <to_log_command>: Add argument.
12892 (target_log_command): Add argument.
12893 * serial.h (serial_log_command): Add 'self' argument.
12894 * serial.c (serial_log_command): Add 'self' argument.
12896 2014-02-19 Tom Tromey <tromey@redhat.com>
12898 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12899 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12901 (target_pid_to_exec_file): Add argument.
12902 * target.c (debug_to_pid_to_exec_file): Add argument.
12903 (update_current_target): Update.
12904 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12905 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12906 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12907 (linux_handle_extended_wait): Update.
12908 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12909 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12910 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12911 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12915 * target.h (struct target_ops) <to_rcmd>: Add argument.
12916 (target_rcmd): Add argument.
12917 * target.c (debug_to_rcmd): Add argument.
12918 (update_current_target, do_monitor_command): Update.
12919 * remote.c (remote_rcmd): Add 'self' argument.
12920 * monitor.c (monitor_rcmd): Add 'self' argument.
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12924 * windows-nat.c (windows_stop): Add 'self' argument.
12925 * target.h (struct target_ops) <to_stop>: Add argument.
12926 * target.c (target_stop): Add argument.
12927 (debug_to_stop): Add argument.
12928 (update_current_target): Update.
12929 * remote.c (remote_stop): Add 'self' argument.
12930 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12931 (gdbsim_cntrl_c): Update.
12932 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12933 * procfs.c (procfs_stop): Add 'self' argument.
12934 * nto-procfs.c (procfs_stop): Add 'self' argument.
12935 * monitor.c (monitor_stop): Add 'self' argument.
12936 (monitor_open): Update.
12937 * linux-nat.c (linux_nat_stop): Add argument.
12938 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12939 * gnu-nat.c (gnu_stop): Add 'self' argument.
12940 * darwin-nat.c (darwin_stop): Add 'self' argument.
12942 2014-02-19 Tom Tromey <tromey@redhat.com>
12944 * target.h (struct target_ops) <to_thread_name>: Add argument.
12945 * target.c (target_thread_name): Add argument.
12946 (update_current_target): Update.
12947 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12951 * target.h (struct target_ops) <to_extra_thread_info>: Add
12953 (target_extra_thread_info): Add argument.
12954 * target.c (update_current_target): Update.
12955 * remote.c (remote_threads_extra_info): Add 'self' argument.
12956 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12958 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12959 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12960 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12962 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12964 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12966 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12969 2014-02-19 Tom Tromey <tromey@redhat.com>
12971 * target.h (struct target_ops) <to_program_signals>: Add argument.
12972 * target.c (target_program_signals): Add argument.
12973 * remote.c (remote_program_signals): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12978 * target.c (target_pass_signals): Add argument.
12979 * remote.c (remote_pass_signals): Add 'self' argument.
12980 (remote_start_remote): Update.
12981 * procfs.c (procfs_pass_signals): Add 'self' argument.
12982 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12983 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12984 (linux_nat_create_inferior, linux_nat_attach): Update.
12986 2014-02-19 Tom Tromey <tromey@redhat.com>
12988 * windows-nat.c (windows_can_run): Add 'self' argument.
12989 * target.h (struct target_ops) <to_can_run>: Add argument.
12990 (target_can_run): Add argument.
12991 * target.c (debug_to_can_run): Add argument.
12992 (update_current_target): Update.
12993 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12994 * inf-child.c (inf_child_can_run): Add 'self' argument.
12995 * go32-nat.c (go32_can_run): Add 'self' argument.
12997 2014-02-19 Tom Tromey <tromey@redhat.com>
12999 * target.h (struct target_ops) <to_has_exited>: Add argument.
13000 (target_has_exited): Add argument.
13001 * target.c (debug_to_has_exited): Add argument.
13002 (update_current_target): Update.
13004 2014-02-19 Tom Tromey <tromey@redhat.com>
13006 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13008 (target_set_syscall_catchpoint): Add argument.
13009 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13011 * target.c (update_current_target): Update.
13013 2014-02-19 Tom Tromey <tromey@redhat.com>
13015 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13017 (target_remove_exec_catchpoint): Add argument.
13018 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13019 (update_current_target): Update.
13020 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13023 2014-02-19 Tom Tromey <tromey@redhat.com>
13025 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13027 (target_insert_exec_catchpoint): Add argument.
13028 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13029 (update_current_target): Update.
13030 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13033 2014-02-19 Tom Tromey <tromey@redhat.com>
13035 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13037 (target_remove_vfork_catchpoint): Add argument.
13038 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13039 (update_current_target): Update.
13040 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13043 2014-02-19 Tom Tromey <tromey@redhat.com>
13045 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13047 (target_insert_vfork_catchpoint): Add argument.
13048 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13049 (update_current_target): Update.
13050 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13053 2014-02-19 Tom Tromey <tromey@redhat.com>
13055 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13057 (target_remove_fork_catchpoint): Add argument.
13058 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13059 (update_current_target): Update.
13060 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13063 2014-02-19 Tom Tromey <tromey@redhat.com>
13065 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13067 (target_insert_fork_catchpoint): Add argument.
13068 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13069 (update_current_target): Update.
13070 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13075 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13077 (target_post_startup_inferior): Add argument.
13078 * target.c (debug_to_post_startup_inferior): Add argument.
13079 (update_current_target): Update.
13080 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13082 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13084 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13086 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13088 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13090 (super_post_startup_inferior): Likewise.
13091 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13093 (super_post_startup_inferior): Likewise.
13094 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13095 Add 'self' argument.
13096 (super_post_startup_inferior): Likewise.
13098 2014-02-19 Tom Tromey <tromey@redhat.com>
13100 * target.h (struct target_ops) <to_load>: Add argument.
13101 * target.c (target_load): Add argument.
13102 (debug_to_load): Add argument.
13103 (update_current_target): Update.
13104 * remote.c (remote_load): Add 'self' argument.
13105 * remote-sim.c (gdbsim_load): Add 'self' argument.
13106 * remote-mips.c (mips_load): Add 'self' argument.
13107 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13108 * monitor.c (monitor_load): Add 'self' argument.
13109 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13111 2014-02-19 Tom Tromey <tromey@redhat.com>
13113 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13114 (target_terminal_info): Add argument.
13115 * target.c (debug_to_terminal_info): Add argument.
13116 (default_terminal_info): Likewise.
13117 * inflow.c (child_terminal_info): Add 'self' argument.
13118 * inferior.h (child_terminal_info): Add 'self' argument.
13119 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13121 2014-02-19 Tom Tromey <tromey@redhat.com>
13123 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13125 (target_terminal_save_ours): Add argument.
13126 * target.c (debug_to_terminal_save_ours): Add argument.
13127 (update_current_target): Update.
13128 * inflow.c (terminal_save_ours): Add 'self' argument.
13129 * inferior.h (terminal_save_ours): Add 'self' argument.
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13133 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13134 (target_terminal_ours): Add argument.
13135 * target.c (debug_to_terminal_ours): Add argument.
13136 (update_current_target): Update.
13137 * remote.c (remote_terminal_ours): Add 'self' argument.
13138 (remote_close): Update.
13139 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13140 * inflow.c (terminal_ours): Add 'self' argument.
13141 * inferior.h (terminal_ours): Add 'self' argument.
13142 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13144 2014-02-19 Pedro Alves <palves@redhat.com>
13145 Tom Tromey <tromey@redhat.com>
13147 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13149 (target_terminal_ours_for_output): Add argument.
13150 * target.c (debug_to_terminal_ours_for_output): Add argument.
13151 (update_current_target): Update.
13152 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13153 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13154 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13158 * target.h (struct target_ops) <to_terminal_inferior>: Add
13160 * target.c (target_terminal_inferior): Add argument.
13161 (update_current_target): Update.
13162 * remote.c (remote_terminal_inferior): Add 'self' argument.
13163 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13164 * inflow.c (terminal_inferior): Add 'self' argument.
13165 * inferior.h (terminal_inferior): Add 'self' argument.
13166 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13167 (go32_terminal_inferior): Add 'self' argument.
13169 2014-02-19 Tom Tromey <tromey@redhat.com>
13171 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13172 (target_terminal_init): Add argument.
13173 * target.c (debug_to_terminal_init): Add argument.
13174 (update_current_target): Update.
13175 * inflow.c (terminal_init_inferior): Add 'self' argument.
13176 * inferior.h (terminal_init_inferior): Add 'self' argument.
13177 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13178 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13182 * target.h (struct target_ops)
13183 <to_can_accel_watchpoint_condition>: Add argument.
13184 (target_can_accel_watchpoint_condition): Add argument.
13185 * target.c (debug_to_can_accel_watchpoint_condition): Add
13187 (update_current_target): Update.
13188 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13191 2014-02-19 Tom Tromey <tromey@redhat.com>
13193 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13195 (target_region_ok_for_hw_watchpoint): Add argument.
13196 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13197 (default_region_ok_for_hw_watchpoint): Add argument.
13198 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13199 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13201 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13203 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13205 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13207 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13209 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13211 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13212 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13214 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13215 Add 'self' argument.
13217 2014-02-19 Tom Tromey <tromey@redhat.com>
13219 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13221 (target_insert_watchpoint): Add argument.
13222 * target.c (debug_to_insert_watchpoint): Add argument.
13223 (update_current_target): Update.
13224 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13225 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13226 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13227 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13228 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13229 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13231 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13232 (procfs_insert_hw_watchpoint): Add 'self' argument.
13233 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13235 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13237 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13239 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13240 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13242 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13245 2014-02-19 Tom Tromey <tromey@redhat.com>
13247 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13249 (target_remove_watchpoint): Add argument.
13250 * target.c (debug_to_remove_watchpoint): Add argument.
13251 (update_current_target): Update.
13252 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13253 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13254 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13255 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13256 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13257 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13259 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13260 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13262 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13264 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13266 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13267 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13269 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13274 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13276 (target_remove_hw_breakpoint): Add argument.
13277 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13278 (update_current_target): Update.
13279 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13280 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13282 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13283 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13285 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13292 (target_insert_hw_breakpoint): Add argument.
13293 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13294 (update_current_target): Update.
13295 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13296 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13298 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13299 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13300 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13302 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13305 2014-02-19 Tom Tromey <tromey@redhat.com>
13307 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13309 (target_can_use_hardware_watchpoint): Add argument.
13310 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13311 (update_current_target): Update.
13312 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13314 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13316 * remote.c (remote_check_watch_resources): Add 'self' argument.
13317 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13318 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13320 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13321 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13323 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13325 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13327 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13329 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13331 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13333 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13334 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13336 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13339 2014-02-19 Tom Tromey <tromey@redhat.com>
13341 * target.h (struct target_ops) <to_post_attach>: Add argument.
13342 (target_post_attach): Add argument.
13343 * target.c (debug_to_post_attach): Add argument.
13344 (update_current_target): Update.
13345 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13346 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13347 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13348 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13349 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13351 2014-02-19 Tom Tromey <tromey@redhat.com>
13353 * windows-nat.c (windows_close): Add 'self' argument.
13354 * tracepoint.c (tfile_close): Add 'self' argument.
13355 * target.h (struct target_ops) <to_close>: Add argument.
13356 * target.c (target_close): Add argument.
13357 (update_current_target): Update.
13358 * remote.c (remote_close): Add 'self' argument.
13359 * remote-sim.c (gdbsim_close): Add 'self' argument.
13360 * remote-mips.c (mips_close): Add 'self' argument.
13361 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13362 * record-full.c (record_full_close): Add 'self' argument.
13363 * record-btrace.c (record_btrace_close): Add 'self' argument.
13364 * monitor.h (monitor_close): Add 'self' argument.
13365 * monitor.c (monitor_close): Add 'self' argument.
13366 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13367 * linux-nat.c (linux_nat_close): Add argument.
13368 * go32-nat.c (go32_close): Add 'self' argument.
13369 * exec.c (exec_close_1): Add 'self' argument.
13370 * ctf.c (ctf_close): Add 'self' argument.
13371 * corelow.c (core_close): Add 'self' argument.
13372 (core_close_cleanup): Update.
13373 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13374 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13376 2014-02-19 Tom Tromey <tromey@redhat.com>
13378 * remote.c (remote_load): New function.
13379 (init_remote_ops): Use it.
13381 2014-02-19 Tom Tromey <tromey@redhat.com>
13383 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13385 * common/linux-btrace.h (linux_supports_btrace): Update.
13386 * remote.c (remote_supports_btrace): Add "self" argument.
13387 * target-delegates.c: Rebuild.
13388 * target.c (target_supports_btrace): Remove.
13389 * target.h (struct target_ops) <to_supports_btrace>: Add
13390 target_ops argument.
13391 (target_supports_btrace): New define.
13393 2014-02-19 Tom Tromey <tromey@redhat.com>
13395 * record-full.c (record_full_beneath_to_resume_ops)
13396 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13397 (record_full_beneath_to_wait)
13398 (record_full_beneath_to_store_registers_ops)
13399 (record_full_beneath_to_store_registers)
13400 (record_full_beneath_to_xfer_partial_ops)
13401 (record_full_beneath_to_xfer_partial)
13402 (record_full_beneath_to_insert_breakpoint_ops)
13403 (record_full_beneath_to_insert_breakpoint)
13404 (record_full_beneath_to_remove_breakpoint_ops)
13405 (record_full_beneath_to_remove_breakpoint)
13406 (record_full_beneath_to_stopped_by_watchpoint)
13407 (record_full_beneath_to_stopped_data_address)
13408 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13409 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13410 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13411 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13412 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13413 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13414 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13415 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13416 (record_full_resume, record_full_wait_1)
13417 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13418 (record_full_store_registers, record_full_xfer_partial)
13419 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13420 (record_full_async, record_full_core_xfer_partial): Use target
13422 * target-delegates.c: Rebuild.
13423 * target.c (current_xfer_partial): Remove.
13424 (update_current_target): Do not INHERIT or de_fault
13425 to_insert_breakpoint, to_remove_breakpoint,
13426 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13427 to_is_async_p, to_async. Do not set to_xfer_partial field.
13428 (default_xfer_partial): Simplify.
13429 (current_xfer_partial): Remove.
13430 (target_wait, target_resume): Simplify.
13431 (find_default_can_async_p, find_default_is_async_p): Update.
13432 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13433 to_xfer_partial, to_stopped_by_watchpoint,
13434 to_stopped_data_address.
13435 (target_store_registers): Simplify.
13436 (forward_target_remove_breakpoint)
13437 (forward_target_insert_breakpoint): Remove.
13438 (target_remove_breakpoint, target_insert_breakpoint)
13439 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13440 * target.h (struct target_ops) <to_resume, to_wait,
13441 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13442 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13443 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13445 (forward_target_remove_breakpoint)
13446 (forward_target_insert_breakpoint): Remove.
13447 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13449 (record_btrace_insert_breakpoint): Delegate directly.
13451 2014-02-19 Tom Tromey <tromey@redhat.com>
13454 * target-delegates.c: New file.
13455 * target.c: Include target-delegates.c.
13456 (init_dummy_target): Call install_dummy_methods.
13457 (complete_target_initialization): Call install_delegators.
13458 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13459 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13460 * make-target-delegates: New file.
13462 2014-02-19 Tom Tromey <tromey@redhat.com>
13464 * record.c (find_record_target): Use find_target_at.
13465 * target.c (find_target_at): New function.
13466 * target.h (find_target_at): Declare.
13468 2014-02-19 Tom Tromey <tromey@redhat.com>
13470 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13471 Add 'ops' argument.
13472 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13474 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13475 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13477 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13479 * linux-nat.c (save_sigtrap): Update.
13480 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13481 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13482 (linux_nat_close): Update.
13483 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13485 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13487 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13488 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13489 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13490 (tmp_to_async): Add 'ops' argument.
13491 (record_full_stopped_by_watchpoint, record_full_async)
13492 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13494 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13495 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13496 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13497 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13498 (remote_is_async_p, remote_async): Add 'ops' argument.
13499 (remote_stopped_data_address): Update.
13500 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13501 * target.c (update_current_target)
13502 (find_default_can_async_p, find_default_is_async_p): Update.
13503 (init_dummy_target): Update.
13504 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13505 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13506 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13507 (target_can_async_p, target_is_async_p, target_async)
13508 (target_stopped_by_watchpoint): Update.
13510 2014-02-19 Yao Qi <yao@codesourcery.com>
13513 * gdbarch.sh: Remove startup_gdbarch.
13514 * gdbarch.c: Regenerated.
13515 * gdbarch.h: Likewise.
13517 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13519 * rl78-tdep.c (rl78_g10_register_name): New function.
13520 (rl78_return_value): Add g10 support.
13521 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13524 2014-02-17 Doug Evans <xdje42@gmail.com>
13526 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13527 (SUBDIR_GUILE_SRCS): Ditto.
13528 (scm-gsmob.o): Ditto.
13530 2014-02-17 Yao Qi <yao@codesourcery.com>
13532 * gnu-nat.c (ILL_RPC): Declare defined function.
13534 2014-02-17 Yao Qi <yao@codesourcery.com>
13536 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13537 mach_msg_type_number_t.
13538 (gnu_write_inferior): Likewise.
13540 2014-02-17 Yao Qi <yao@codesourcery.com>
13542 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13544 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13545 (inf_validate_procs, inf_signal): Likewise.
13546 (S_exception_raise_request): Likewise.
13547 (do_mach_notify_dead_name): Likewise.
13548 (steal_exc_port): Likewise.
13549 (gnu_read_inferior): Change 'copy_count''s type to
13550 mach_msg_type_number_t.
13551 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13554 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13556 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13557 flag. Adjust all users; in particular...
13558 (gnu_wait): ..., don't decrement its value in here...
13559 (gnu_create_inferior): ..., and instead set the flag in here,
13560 around the startup_inferior call, and call that one with
13561 START_INFERIOR_TRAPS_EXPECTED.
13563 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13564 (ILL_RPC): ... new macro.
13565 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13566 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13567 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13568 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13569 functions with ILL_RPC macro.
13570 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13571 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13572 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13573 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13574 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13575 (S_proc_getlogin_reply, S_proc_getsid_reply)
13576 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13577 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13578 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13579 (S_proc_getnports_reply, S_proc_is_important_reply)
13580 (S_proc_get_code_reply): New stub functions, generated with
13583 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13584 collected the type check structures.
13586 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13588 2014-02-14 Doug Evans <dje@google.com>
13590 * target.c (target_write_partial): Fix result type.
13592 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13594 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13595 the proper offsets to access fpregset_t.
13597 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13599 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13600 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13601 * h8300-tdep.c (setmachinelist): Remove global.
13602 * hppa-tdep.c (hppa_sigtramp): Remove global.
13603 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13604 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13605 * ravenscar-thread.c (update_target_observer): Remove global.
13606 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13608 2014-02-12 Tom Tromey <tromey@redhat.com>
13610 * common/rsp-low.c: Update comments.
13611 * common/rsp-low.h: Update comments.
13613 2014-02-12 Tom Tromey <tromey@redhat.com>
13615 * common/rsp-low.c (convert_ascii_to_int): Remove.
13616 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13618 2014-02-12 Tom Tromey <tromey@redhat.com>
13620 * common/rsp-low.h (unhexify): Don't declare.
13621 * common/rsp-low.c (unhexify): Remove.
13623 2014-02-12 Tom Tromey <tromey@redhat.com>
13625 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13626 * common/rsp-low.c (convert_int_to_ascii): Remove.
13628 2014-02-12 Tom Tromey <tromey@redhat.com>
13630 * common/rsp-low.h (hexify): Don't declare.
13631 * common/rsp-low.c (hexify): Remove.
13633 2014-02-12 Tom Tromey <tromey@redhat.com>
13635 * common/rsp-low.c (hexify): Never take strlen of argument.
13637 2014-02-12 Tom Tromey <tromey@redhat.com>
13639 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13640 * remote.c (extended_remote_run, remote_rcmd)
13641 (remote_download_trace_state_variable, remote_save_trace_data)
13642 (remote_set_trace_notes): Update.
13643 * tracepoint.c (encode_source_string, tfile_write_status)
13644 (tfile_write_uploaded_tsv): Update.
13646 2014-02-12 Tom Tromey <tromey@redhat.com>
13648 * tracepoint.c: Include rsp-low.h.
13649 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13650 * remote.c: Include rsp-low.h.
13651 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13652 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13653 (remote_unescape_input): Move to common/rsp-low.c.
13654 * common/rsp-low.h: New file.
13655 * common/rsp-low.c: New file.
13656 * Makefile.in (SFILES): Add common/rsp-low.c.
13657 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13658 (COMMON_OBS): Add rsp-low.o.
13659 (rsp-low.o): New target.
13661 2014-02-12 Tom Tromey <tromey@redhat.com>
13663 * utils.h: Include print-utils.h.
13664 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13665 (int_string, core_addr_to_string, core_addr_to_string_nz)
13666 (hex_string, hex_string_custom): Don't declare.
13667 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13668 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13669 (hex_string_custom, int_string, core_addr_to_string)
13670 (core_addr_to_string_nz, host_address_to_string): Move to
13671 common/print-utils.c.
13672 * common/print-utils.h: New file.
13673 * common/print-utils.c: New file
13674 * Makefile.in (SFILES): Add common/print-utils.c.
13675 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13676 (COMMON_OBS): Add print-utils.o.
13677 (print-utils.o): New target.
13679 2014-02-12 Tom Tromey <tromey@redhat.com>
13681 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13683 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13685 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13687 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13689 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13690 if a PT_IO ptrace request returns sucessfully but indicates that 0
13691 bytes were transferred.
13693 2014-02-12 Pedro Alves <palves@redhat.com>
13694 Kevin Buettner <kevinb@redhat.com>
13696 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13697 TYPE_INSTANCE_FLAG_CODE_SPACE.
13699 2014-02-12 Pedro Alves <palves@redhat.com>
13701 * h8300-tdep.c (pseudo_from_raw_register)
13702 (raw_from_pseudo_register): New functions.
13703 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13706 2014-02-12 Pedro Alves <palves@redhat.com>
13708 * h8300-tdep.c (h8300_register_sim_regno): New function.
13709 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13710 gdbarch_register_sim_regno hook.
13712 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13714 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13716 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13718 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13720 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13722 * obsd-tdep.h (obsd_init_abi): New prototype.
13723 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13724 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13725 (obsd_init_abi): New functions.
13726 * i386obsd-tdep.c: Include "obsd-tdep.h".
13727 (i386obsd_init_abi): Call obsd_init_abi.
13728 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13729 (amd64obsd_init_abi): Call obsd_init_abi.
13730 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13731 obsd-tdep.c to gdb_target_obs.
13733 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13735 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13736 double float arguments to 16-byte in the argument slots.
13738 2014-02-11 Doug Evans <xdje42@gmail.com>
13740 * configure.ac: Don't crash if pkg-config is not found and guile
13741 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13743 * configure: Regenerate.
13745 2014-02-11 Yao Qi <yao@codesourcery.com>
13747 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13748 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13749 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13750 * gnu-nat.c (gnu_xfer_memory): Likewise.
13751 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13752 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13753 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13754 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13756 2014-02-11 Yao Qi <yao@codesourcery.com>
13758 * target.h (enum target_xfer_error): Rename to ...
13759 (enum target_xfer_status): ... it. New. All users updated.
13760 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13762 (TARGET_XFER_STATUS_ERROR_P): New macro.
13763 (target_xfer_error_to_string): Remove declaration.
13764 (target_xfer_status_to_string): Declare.
13765 (target_xfer_partial_ftype): Adjust it.
13766 (struct target_ops) <to_xfer_partial>: Return
13767 target_xfer_status. Add argument xfered_len. Update
13769 * target.c (target_xfer_error_to_string): Rename to ...
13770 (target_xfer_status_to_string): ... it. New. All callers
13772 (target_read_live_memory): Likewise. Call target_xfer_partial
13773 instead of target_read.
13774 (memory_xfer_live_readonly_partial): Return
13775 target_xfer_status. Add argument xfered_len.
13776 (raw_memory_xfer_partial): Likewise.
13777 (memory_xfer_partial_1): Likewise.
13778 (memory_xfer_partial): Likewise.
13779 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13780 properly. Update debug message.
13781 (default_xfer_partial, current_xfer_partial): Likewise.
13782 (target_write_partial): Likewise.
13783 (target_read_partial): Likewise. All callers updated.
13784 (read_whatever_is_readable): Likewise.
13785 (target_write_with_progress): Likewise.
13786 (target_read_alloc_1): Likewise.
13788 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13789 * auxv.c (procfs_xfer_auxv): Likewise.
13790 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13791 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13792 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13793 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13794 * corefile.c (read_memory): Adjust.
13795 * corelow.c (core_xfer_partial): Likewise.
13796 * ctf.c (ctf_xfer_partial): Likewise.
13797 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13799 (darwin_xfer_partial): Likewise.
13800 * exec.c (section_table_xfer_memory_partial): Likewise. All
13802 (exec_xfer_partial): Likewise.
13803 * exec.h (section_table_xfer_memory_partial): Update
13805 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13807 (gnu_xfer_partial): Likewise.
13808 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13809 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13810 (ia64_hpux_xfer_solib_got): Likewise.
13811 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13812 type of 'partial_len' to ULONGEST.
13813 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13814 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13815 (linux_nat_xfer_partial): Likewise.
13816 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13817 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13818 * monitor.c (monitor_xfer_memory): Likewise.
13819 (monitor_xfer_partial): Likewise.
13820 * procfs.c (procfs_xfer_partial): Likewise.
13821 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13822 * record-full.c (record_full_xfer_partial): Likewise.
13823 (record_full_core_xfer_partial): Likewise.
13824 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13825 (gdbsim_xfer_partial): Likewise.
13826 * remote.c (remote_write_bytes_aux): Likewise. All callers
13828 (remote_write_bytes, remote_read_bytes): Likewise. All
13830 (remote_flash_erase): Likewise. All callers updated.
13831 (remote_write_qxfer): Likewise. All callers updated.
13832 (remote_read_qxfer): Likewise. All callers updated.
13833 (remote_xfer_partial): Likewise.
13834 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13835 (rs6000_xfer_shared_libraries): Likewise.
13836 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13837 (sol_thread_xfer_partial): Likewise.
13838 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13839 (sparc_xfer_partial): Likewise.
13840 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13842 (spu_xfer_partial): Likewise.
13843 * spu-multiarch.c (spu_xfer_partial): Likewise.
13844 * tracepoint.c (tfile_xfer_partial): Likewise.
13845 * windows-nat.c (windows_xfer_memory): Likewise.
13846 (windows_xfer_shared_libraries): Likewise.
13847 (windows_xfer_partial): Likewise.
13848 * valprint.c: Replace 'target_xfer_error' with
13849 'target_xfer_status' in comments.
13851 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13853 Checked in by Joel Brobecker <brobecker@adacore.com>.
13854 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13856 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13858 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13859 function parameters.
13861 2014-02-10 Will Newton <will.newton@linaro.org>
13863 * elfread.c (elf_rel_plt_read): Look for a .got section if
13864 looking up .got.plt fails.
13865 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13866 on address passed to elf_gnu_ifunc_record_cache.
13867 (elf_gnu_ifunc_resolve_addr): Likewise.
13868 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13870 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13872 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13873 (X_RETTURN): New macro.
13874 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13876 * sparc64-tdep.c (sparc64_init_abi): Hook
13877 sparc_in_function_epilogue_p.
13879 2014-02-10 Gary Benson <gbenson@redhat.com>
13881 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13882 Rename name_matcher to symbol_matcher.
13884 2014-02-10 Gary Benson <gbenson@redhat.com>
13886 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13887 Use expand_symtabs_file_matcher_ftype and
13888 expand_symtabs_symbol_matcher_ftype.
13890 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13892 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13893 (struct ada_symbol_cache): New.
13894 (ada_free_symbol_cache): Forward declare.
13895 (struct ada_pspace_data): New.
13896 (ada_pspace_data_handle): New static global.
13897 (get_ada_pspace_data, ada_pspace_data_cleanup)
13898 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13899 (cache_space, cache): Delete, now folded inside struct
13901 (ada_get_symbol_cache): New function.
13902 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13904 (_initialize_ada_language): Remove initialization of cache_space.
13905 Move call to observer_attach_inferior_exit up, grouping it
13906 with the other observer registrations inside this function.
13907 Rename command to be more general. Add call to
13908 register_program_space_data_with_cleanup.
13910 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13912 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13913 ada_new_objfile_observer.
13914 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13915 (_initialize_tasks): Update uses of ada_new_objfile_observer
13916 and ada_tasks_normal_stop_observer.
13918 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13920 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13921 returned by the 'Length attribute to integer.
13923 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13925 * ada-lang.c (_initialize_ada_language): Initialize
13926 cache_space obstack.
13928 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13930 * ada-lang.c (HASH_SIZE): New macro.
13931 (struct cache_entry): New type.
13932 (cache_space, cache): New static globals.
13933 (ada_clear_symbol_cache, find_entry): New functions.
13934 (lookup_cached_symbol, cache_symbol): Implement.
13935 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13936 (_initialize_ada_language): Attach ada_new_objfile_observer
13937 and ada_free_objfile_observer.
13939 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13941 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13942 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13943 struct block * parameter.
13944 (ada_lookup_symbol_list_worker): Constify local variable "block".
13945 Remove cast which is no longer necessary.
13947 2014-02-10 Doug Evans <xdje42@gmail.com>
13949 Add Guile as an extension language.
13950 * NEWS: Mention Guile scripting.
13951 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13952 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13953 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13954 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13955 (CLIBS): Add GUILE_LIBS.
13956 (install-guile): New rule.
13957 (guile.o): New rule.
13958 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13959 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13960 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13961 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13962 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13963 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13964 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13965 * configure.ac: New option --with-guile.
13966 * configure: Regenerate.
13967 * config.in: Regenerate.
13968 * auto-load.c: Remove #include "python/python.h". Add #include
13969 "gdb/section-scripts.h".
13970 (source_section_scripts): Handle Guile scripts.
13971 (_initialize_auto_load): Add name of Guile objfile script to
13972 scripts-directory help text.
13973 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13974 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13975 (struct breakpoint): New member scm_bp_object.
13976 * defs.h (enum command_control_type): New value guile_control.
13977 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13979 (show_user): Update comment.
13980 (_initialize_cli_cmds): Update help text for "show user". Update help
13981 text for max-user-call-depth.
13982 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13984 (multi_line_command_p): Add guile_control.
13985 (print_command_lines): Handle guile_control.
13986 (execute_control_command, recurse_read_control_structure): Ditto.
13987 (process_next_line): Recognize "guile" commands.
13988 * disasm.c (gdb_disassemble_info): Make non-static.
13989 * disasm.h: #include "dis-asm.h".
13990 (struct gdbarch): Add forward decl.
13991 (gdb_disassemble_info): Declare.
13992 * extension.c: #include "guile/guile.h".
13993 (extension_languages): Add guile.
13994 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13995 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13996 * gdbtypes.c (get_unsigned_type_max): New function.
13997 (get_signed_type_minmax): New function.
13998 * gdbtypes.h (get_unsigned_type_max): Declare.
13999 (get_signed_type_minmax): Declare.
14000 * guile/README: New file.
14001 * guile/guile-internal.h: New file.
14002 * guile/guile.c: New file.
14003 * guile/guile.h: New file.
14004 * guile/scm-arch.c: New file.
14005 * guile/scm-auto-load.c: New file.
14006 * guile/scm-block.c: New file.
14007 * guile/scm-breakpoint.c: New file.
14008 * guile/scm-disasm.c: New file.
14009 * guile/scm-exception.c: New file.
14010 * guile/scm-frame.c: New file.
14011 * guile/scm-gsmob.c: New file.
14012 * guile/scm-iterator.c: New file.
14013 * guile/scm-lazy-string.c: New file.
14014 * guile/scm-math.c: New file.
14015 * guile/scm-objfile.c: New file.
14016 * guile/scm-ports.c: New file.
14017 * guile/scm-pretty-print.c: New file.
14018 * guile/scm-safe-call.c: New file.
14019 * guile/scm-string.c: New file.
14020 * guile/scm-symbol.c: New file.
14021 * guile/scm-symtab.c: New file.
14022 * guile/scm-type.c: New file.
14023 * guile/scm-utils.c: New file.
14024 * guile/scm-value.c: New file.
14025 * guile/lib/gdb.scm: New file.
14026 * guile/lib/gdb/boot.scm: New file.
14027 * guile/lib/gdb/experimental.scm: New file.
14028 * guile/lib/gdb/init.scm: New file.
14029 * guile/lib/gdb/iterator.scm: New file.
14030 * guile/lib/gdb/printing.scm: New file.
14031 * guile/lib/gdb/types.scm: New file.
14032 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14033 (VPATH): Add $(GUILE_SRCDIR).
14034 (GUILE_DIR): New variable.
14035 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14036 (all): Add stamp-guile dependency.
14037 (stamp-guile): New rule.
14038 (clean-guile, install-guile, uninstall-guile): New rules.
14039 (install-only): Add install-guile dependency.
14040 (uninstall): Add uninstall-guile dependency.
14041 (clean): Add clean-guile dependency.
14043 2014-02-09 Doug Evans <xdje42@gmail.com>
14045 Revert this patch (which I approved, mea culpa).
14047 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14049 * Makefile.in (all-lib): Remove.
14050 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14052 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14054 Fix Python stack corruption.
14055 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14058 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14060 * Makefile.in (all-lib): Remove.
14061 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14063 2014-02-07 Doug Evans <dje@google.com>
14065 * extension-priv.h (extension_language_script_ops): Add comment.
14066 (extension_language_ops): Add comment.
14067 (active_ext_lang_state): Fix typo in comment.
14069 2014-02-07 Pedro Alves <palves@redhat.com>
14071 PR breakpoints/16292
14072 * infrun.c (handle_signal_stop) <signal arrives while stepping
14073 over a breakpoint>: Switch back to the stepping thread.
14075 2014-02-07 Yao Qi <yao@codesourcery.com>
14077 * target.c (target_xfer_partial): Return zero if LEN is zero.
14079 2014-02-07 Yao Qi <yao@codesourcery.com>
14081 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14082 (ld_so_xfer_auxv): Likewise.
14083 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14084 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14085 * corelow.c (core_xfer_partial): Likewise.
14086 * ctf.c (ctf_xfer_partial): Likewise.
14087 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14088 (darwin_xfer_partial): Likewise.
14089 * exec.c (exec_xfer_partial): Likewise.
14090 * gnu-nat.c (gnu_xfer_partial): Likewise.
14091 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14092 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14093 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14094 * linux-nat.c (linux_xfer_siginfo): Likewise.
14095 (linux_proc_xfer_spu): Likewise.
14096 * procfs.c (procfs_xfer_partial): Likewise.
14097 * record-full.c (record_full_xfer_partial): Likewise.
14098 (record_full_core_xfer_partial): Likewise.
14099 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14100 * remote.c (remote_write_qxfer): Likewise.
14101 (remote_write_qxfer, remote_read_qxfer): Likewise.
14102 (remote_xfer_partial): Likewise.
14103 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14104 (rs6000_xfer_shared_libraries): Likewise.
14105 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14106 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14107 (spu_xfer_partial): Likewise.
14108 * target.c (memory_xfer_partial_1): Likewise.
14109 * tracepoint.c (tfile_xfer_partial): Likewise.
14110 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14111 (windows_xfer_partial): Likewise.
14113 2014-02-07 Yao Qi <yao@codesourcery.com>
14115 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14117 (core_xfer_shared_libraries_aix): Likewise.
14118 * gdbarch.c, gdbarch.h: Regenerated.
14119 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14120 ULONGEST. Change 'len_avail' type to ULONGEST.
14121 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14122 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14124 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14126 2014-02-07 Yao Qi <yao@codesourcery.com>
14128 * corefile.c (memory_error): Get 'exception' from ERR and pass
14129 'exception' to throw_error.
14131 2014-02-06 Doug Evans <xdje42@gmail.com>
14133 * configure.ac (libpython checking): Remove all but python.o from
14134 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14135 * configure: Regenerate.
14137 * Makefile.in (SFILES): Add extension.c.
14138 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14139 (COMMON_OBS): Add extension.o.
14140 * extension.h: New file.
14141 * extension-priv.h: New file.
14142 * extension.c: New file.
14144 * python/python-internal.h: #include "extension.h".
14145 (gdbpy_auto_load_enabled): Declare.
14146 (gdbpy_apply_val_pretty_printer): Declare.
14147 (gdbpy_apply_frame_filter): Declare.
14148 (gdbpy_preserve_values): Declare.
14149 (gdbpy_breakpoint_cond_says_stop): Declare.
14150 (gdbpy_breakpoint_has_cond): Declare.
14151 (void source_python_script_for_objfile): Delete.
14152 * python/python.c: #include "extension-priv.h".
14153 Delete inclusion of "observer.h".
14154 (extension_language_python): Moved here and renamed from
14155 script_language_python in py-auto-load.c.
14156 Redefined to be of type extension_language_defn.
14157 (python_extension_script_ops): New global.
14158 (python_extension_ops): New global.
14159 (struct python_env): New member previous_active.
14160 (restore_python_env): Call restore_active_ext_lang.
14161 (ensure_python_env): Call set_active_ext_lang.
14162 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14164 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14166 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14168 (gdbpy_eval_from_control_command): Renamed from
14169 eval_python_from_control_command, made static. New arg extlang.
14170 (gdbpy_source_script) Renamed from source_python_script, made static.
14172 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14173 result to int. New arg extlang.
14174 (gdbpy_source_objfile_script): Renamed from
14175 source_python_script_for_objfile, made static. New arg extlang.
14176 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14177 static. New args extlang, extlang_printers. Change result type to
14179 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14180 static. New arg extlang. Rename arg printers to extlang_printers
14181 and change type to ext_lang_type_printers *.
14182 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14183 static. Replace argument arg with extlang, extlang_printers.
14184 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14185 (!HAVE_PYTHON, source_python_script): Delete.
14186 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14187 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14188 (!HAVE_PYTHON, start_type_printers): Delete.
14189 (!HAVE_PYTHON, apply_type_printers): Delete.
14190 (!HAVE_PYTHON, free_type_printers): Delete.
14191 (_initialize_python): Delete call to observer_attach_before_prompt.
14192 (finalize_python): Set/restore active extension language.
14193 (gdbpy_finish_initialization) Renamed from
14194 finish_python_initialization, made static. New arg extlang.
14195 (gdbpy_initialized): New function.
14196 * python/python.h: #include "extension.h". Delete #include
14197 "value.h", "mi/mi-cmds.h".
14198 (extension_language_python): Declare.
14199 (GDBPY_AUTO_FILE_NAME): Delete.
14200 (enum py_bt_status): Moved to extension.h and renamed to
14201 ext_lang_bt_status.
14202 (enum frame_filter_flags): Moved to extension.h.
14203 (enum py_frame_args): Moved to extension.h and renamed to
14204 ext_lang_frame_args.
14205 (finish_python_initialization): Delete.
14206 (eval_python_from_control_command): Delete.
14207 (source_python_script): Delete.
14208 (apply_val_pretty_printer): Delete.
14209 (apply_frame_filter): Delete.
14210 (preserve_python_values): Delete.
14211 (gdbpy_script_language_defn): Delete.
14212 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14213 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14215 * auto-load.c: #include "extension.h".
14216 (GDB_AUTO_FILE_NAME): Delete.
14217 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14218 (script_language_gdb): Delete, moved to extension.c and renamed to
14219 extension_language_gdb.
14220 (source_gdb_script_for_objfile): Delete.
14221 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14222 (loaded_script): Change type of language member to
14223 struct extension_language_defn *.
14224 (init_loaded_scripts_info): Initialize
14225 unsupported_script_warning_printed.
14226 (maybe_add_script): Make static. Change type of language arg to
14227 struct extension_language_defn *.
14228 (clear_section_scripts): Reset unsupported_script_warning_printed.
14229 (auto_load_objfile_script_1): Rewrite to use extension language API.
14230 (auto_load_objfile_script): Make public. Remove support-compiled-in
14231 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14232 (source_section_scripts): Rewrite to use extension language API.
14233 (load_auto_scripts_for_objfile): Rewrite to use
14234 auto_load_scripts_for_objfile.
14235 (collect_matching_scripts_data): Change type of language member to
14236 struct extension_language_defn *.
14237 (auto_load_info_scripts): Change type of language arg to
14238 struct extension_language_defn *.
14239 (unsupported_script_warning_print): New function.
14240 (script_not_found_warning_print): Make static.
14241 (_initialize_auto_load): Rewrite construction of scripts-directory
14243 * auto-load.h (struct objfile): Add forward decl.
14244 (struct script_language): Delete.
14245 (struct auto_load_pspace_info): Add forward decl.
14246 (struct extension_language_defn): Add forward decl.
14247 (maybe_add_script): Delete.
14248 (auto_load_objfile_script): Declare.
14249 (script_not_found_warning_print): Delete.
14250 (auto_load_info_scripts): Update prototype.
14251 (auto_load_gdb_scripts_enabled): Declare.
14252 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14253 auto_load_python_scripts_enabled and made public.
14254 (script_language_python): Delete, moved to python.c.
14255 (gdbpy_script_language_defn): Delete.
14256 (info_auto_load_python_scripts): Update to use
14257 extension_language_python.
14259 * breakpoint.c (condition_command): Replace call to
14260 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14261 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14262 with call to breakpoint_ext_lang_cond_says_stop.
14263 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14264 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14265 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14266 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14268 (local_setattro): Print name of extension language with existing
14271 * valprint.c (val_print, value_print): Update to call
14272 apply_ext_lang_val_pretty_printer.
14273 * cp-valprint.c (cp_print_value): Update call to
14274 apply_ext_lang_val_pretty_printer.
14275 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14276 (gdbpy_apply_val_pretty_printer): Renamed from
14277 apply_val_pretty_printer. New arg extlang.
14278 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14280 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14281 extension language API.
14282 * cli/cli-script.c (execute_control_command): Update to call
14283 eval_ext_lang_from_control_command.
14285 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14286 enum ext_lang_bt_status values. Update call to
14287 apply_ext_lang_frame_filter.
14288 (mi_cmd_stack_list_locals): Ditto.
14289 (mi_cmd_stack_list_args): Ditto.
14290 (mi_cmd_stack_list_variables): Ditto.
14291 * mi/mi-main.c: Delete #include "python/python-internal.h".
14292 Add #include "extension.h".
14293 (mi_cmd_list_features): Replace reference to python internal variable
14294 gdb_python_initialized with call to ext_lang_initialized_p.
14296 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14297 Update to use enum ext_lang_frame_args. Update to call
14298 apply_ext_lang_frame_filter.
14299 * python/py-framefilter.c (extract_sym): Update to use enum
14300 ext_lang_bt_status.
14301 (extract_value, py_print_type, py_print_value): Ditto.
14302 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14303 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14304 (py_print_frame): Ditto.
14305 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14306 New arg extlang. Update to use enum ext_lang_bt_status.
14308 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14309 finish_python_initialization. Replace with call to
14310 finish_ext_lang_initialization.
14312 * typeprint.c (do_free_global_table): Update to call
14313 free_ext_lang_type_printers.
14314 (create_global_typedef_table): Update to call
14315 start_ext_lang_type_printers.
14316 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14317 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14318 (type_print_options): Change type of global_printers from "void *"
14319 to "struct ext_lang_type_printers *".
14321 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14322 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14323 (gdbpy_preserve_values): Renamed from preserve_python_values.
14325 (!HAVE_PYTHON, preserve_python_values): Delete.
14327 * utils.c (quit_flag): Delete, moved to extension.c.
14328 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14331 * eval.c: Delete #include "python/python.h".
14332 * main.c: Delete #include "python/python.h".
14334 * defs.h: Update comment.
14336 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14340 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14342 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14345 2014-02-05 Yao Qi <yao@codesourcery.com>
14347 * remote.c (remote_pass_signals): Remove local 'buf' and use
14349 (remote_program_signals): Likewise.
14351 2014-02-05 Yao Qi <yao@codesourcery.com>
14353 * ctf.c: Include "inferior.h" and "gdbthread.h".
14354 (CTF_PID): A new macro.
14355 (ctf_open): Call inferior_appeared and add_thread_silent.
14356 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14357 (ctf_thread_alive): New function.
14358 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14360 2014-02-05 Yao Qi <yao@codesourcery.com>
14364 2013-05-24 Yao Qi <yao@codesourcery.com>
14366 * tracepoint.c (TFILE_PID): Remove.
14367 (tfile_open): Don't add thread and inferior.
14368 (tfile_close): Don't set 'inferior_ptid'. Don't call
14369 exit_inferior_silent.
14370 (tfile_thread_alive): Remove.
14371 (init_tfile_ops): Don't set field 'to_thread_alive' of
14374 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14376 * remote.c (remote_start_remote): Call remote_check_symbols even
14377 if only symbol-file (not file) has been given.
14379 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14381 * gdbarch.sh (skip_entrypoint): New callback.
14382 * gdbarch.c, gdbarch.h: Regenerate.
14383 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14384 * infrun.c (fill_in_stop_func): Likewise.
14385 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14386 (ppc_elfv2_elf_make_msymbol_special): New function.
14387 (ppc_elfv2_skip_entrypoint): Likewise.
14388 (ppc_linux_init_abi): Install them for ELFv2.
14390 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14392 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14393 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14394 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14395 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14396 structures returned in GPRs.
14398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14400 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14401 offset to the stack parameter list for the ELFv2 ABI.
14403 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14405 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14406 set_gdbarch_convert_from_func_ptr_addr and
14407 set_gdbarch_elf_make_msymbol_special for ELFv1.
14408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14409 function descriptors on ELFv1.
14410 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14411 set up r12 at function entry.
14413 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14415 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14416 (struct gdbarch_tdep): New member elf_abi.
14418 * rs6000-tdep.c: Include "elf/ppc64.h".
14419 (rs6000_gdbarch_init): Detect ELF ABI version.
14421 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14423 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14424 within a register pair holding a DFP 128-bit value on little-endian.
14425 (ppc64_sysv_abi_return_value_base): Likewise.
14426 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14427 (dfp_pseudo_register_write): Likewise.
14429 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14432 offset on little-endian when passing _Decimal32.
14433 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14435 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14437 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14438 of the overlapped FP register within the VSX register on little-
14440 (efpr_pseudo_register_write): Likewise.
14442 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14444 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14445 offset on little-endian when passing small structures.
14447 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14449 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14450 (struct ppc64_sysv_argpos): New data structure.
14451 (ppc64_sysv_abi_push_float): Remove.
14452 (ppc64_sysv_abi_push_val): New function.
14453 (ppc64_sysv_abi_push_integer): Likewise.
14454 (ppc64_sysv_abi_push_freg): Likewise.
14455 (ppc64_sysv_abi_push_vreg): Likewise.
14456 (ppc64_sysv_abi_push_param): Likewise.
14457 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14458 (ppc64_sysv_abi_return_value_base): New function.
14459 (ppc64_sysv_abi_return_value): Refactor to use it.
14461 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14463 * NEWS: Document new target powerpc64le-*-linux*.
14465 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14467 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14468 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14470 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14471 register set used in ELF core dumps. Add floating-point register set.
14473 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14475 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14476 dwarf2_to_gdb[] table using symbolic constants. Adjust
14477 penultimate entry from number representing the PC register
14478 to symbolic constant representing the MDR register. Add
14479 constant for the PC register to the end of the table.
14481 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14483 * bsd-kvm.c: Include <sys/param.h>
14485 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14487 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14489 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14491 * ada-lang.h (clear_ada_sym_cache): Delete.
14493 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14495 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14497 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14499 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14500 the sigreturn register save area only if the syscall is
14503 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14505 * valops.c (value_slice): Minor reformatting.
14507 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14509 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14511 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14513 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14514 New static globals.
14515 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14516 (ada_ignore_descriptive_types_p): New static global.
14517 (find_parallel_type_by_descriptive_type): Return immediately
14518 if ada_ignore_descriptive_types_p is set.
14519 (_initialize_ada_language): Register new commands "maintenance
14520 set ada", "maintenance show ada", "maintenance set ada
14521 ignore-descriptive-types" and "maintenance show ada
14522 ignore-descriptive-types".
14523 * NEWS: Add entry for new "maint ada set/show
14524 ignore-descriptive-types" commands.
14526 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14528 * record-btrace.c (record_btrace_close): Call btrace_teardown
14531 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14533 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14536 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14538 * ada-typeprint (type_is_full_subrange_of_target_type):
14540 (print_range): Add parameter bounds_prefered_p. If not set,
14541 try printing range types using the name of their base type.
14542 (print_range_type): Add parameter bounds_prefered_p.
14543 Use it in call to print_range.
14544 (print_array_type, ada_print_type): Update calls to print_range
14545 and print_range_type.
14547 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14549 * ada-typeprint.c (print_array_type, print_choices, print_range)
14550 (print_range_bound, print_dynamic_range_bound, print_range_type):
14551 Remove declaration.
14553 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14555 * ada-typeprint.c (print_range): Add missing empty line
14556 after local declaration.
14558 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14560 * ada-valprint.c (print_optional_low_bound): Get index_type's
14561 target type for as long as it is a TYPE_CODE_RANGE.
14563 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14565 * procfs.c (procfs_make_note_section): Remove assertion and
14566 associated comment.
14568 2014-01-24 Yao Qi <yao@codesourcery.com>
14570 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14571 * corelow.c (get_core_siginfo): Likewise.
14573 2014-01-24 Yao Qi <yao@codesourcery.com>
14575 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14576 ULONGEST. Don't check 'len' is negative.
14577 (remote_write_bytes): Change type of 'len' to ULONGEST.
14579 2014-01-23 Tom Tromey <tromey@redhat.com>
14582 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14583 Handle exception from frame.block.
14584 (FrameVars.fetch_frame_locals): Likewise.
14586 2014-01-23 Tom Tromey <tromey@redhat.com>
14589 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14590 on a NULL pointer. Move "goto error" to correct place.
14592 2014-01-23 Tom Tromey <tromey@redhat.com>
14595 * python/py-framefilter.c (apply_frame_filter): Call
14596 ensure_python_env after computing gdbarch.
14598 2014-01-23 Yao Qi <yao@codesourcery.com>
14600 * target.c (raw_memory_xfer_partial): Change argument type
14601 from void * to gdb_byte *.
14602 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14604 2014-01-22 Doug Evans <dje@google.com>
14606 New gdbserver option --debug-format=timestamp.
14607 * NEWS: Mention it.
14609 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14611 * syscalls/s390x-linux.xml: New file.
14612 * syscalls/s390-linux.xml: New file.
14613 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14614 (XML_SYSCALL_FILENAME_S390X): Likewise.
14615 (op_svc): New enum value for SVC opcode.
14616 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14617 (s390_linux_get_syscall_number): New function.
14618 (s390_gdbarch_init): Register '*get_syscall_number' and the
14619 syscall xml file name.
14620 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14621 "s390-linux.xml" and "s390x-linux.xml".
14622 * NEWS: Announce new feature.
14624 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14626 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14628 2014-01-22 Pedro Alves <palves@redhat.com>
14630 * xtensa-config.c: Include defs.h.
14632 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14634 * common/common-utils.h: Add "ARI:" comment beside __func__
14637 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14639 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14640 documentation a bit.
14642 2014-01-21 Roland McGrath <mcgrathr@google.com>
14644 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14645 * configure: Regenerate.
14646 * aclocal.m4: Regenerate.
14647 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14648 New substituted variables.
14649 (install-strip): New target.
14650 (INSTALL_SCRIPT): New substituted variable.
14651 (FLAGS_TO_PASS): Add it.
14652 (install-only): Use $(INSTALL_SCRIPT) rather than
14653 $(INSTALL_PROGRAM) for gcore.
14655 2014-01-20 Tom Tromey <tromey@redhat.com>
14657 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14660 2014-01-20 Tom Tromey <tromey@redhat.com>
14662 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14663 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14664 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14665 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14666 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14667 (struct cmd_list_element) <flags>: Remove.
14668 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14669 doc_allocated>: New fields.
14670 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14672 * maint.c (maintenance_do_deprecate): Update.
14673 * top.c (execute_command): Update.
14675 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14677 * xtensa-linux-nat.c: Include asm/ptrace.h.
14679 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14681 * Makefile.in (SFILES): Add d-support.c.
14682 (COMMON_OBS): Add d-support.o.
14683 * d-lang.h (d_parse_symbol): Add comment, now defined in
14685 * d-lang.c (parse_call_convention)
14686 (parse_attributes, parse_function_types)
14687 (parse_function_args, parse_type, parse_identifier)
14688 (call_convention_p, d_parse_symbol): Move functions to ...
14689 * d-support.c: ... New file.
14691 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14693 * d-lang.h (d_parse_symbol): Add declaration.
14694 * d-lang.c (extract_identifiers)
14695 (extract_type_info): Remove functions.
14696 (parse_call_convention, parse_attributes)
14697 (parse_function_types, parse_function_args)
14698 (parse_type, parse_identifier, call_convention_p)
14699 (d_parse_symbol): New functions.
14700 (d_demangle): Use d_parse_symbol to demangle D symbols.
14702 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14704 * d-lang.h (struct builtin_d_type): New data type.
14705 (builtin_d_type): Add declaration.
14706 * d-lang.c (d_language_arch_info, build_d_types)
14707 (builtin_d_type): New functions.
14708 (enum d_primitive_types): New data type.
14709 (d_language_defn): Change c_language_arch_info to
14710 d_language_arch_info.
14711 (d_type_data): New static variable.
14712 (_initialize_d_language): Initialize d_type_data.
14714 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14716 * d-lang.h (d_main_name): Add declaration.
14717 * d-lang.c (d_main_name): New function.
14718 * symtab.c (find_main_name): Add call to d_main_name.
14720 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14722 * d-lang.c (d_language_defn): Change macro_expansion_c to
14723 macro_expansion_no.
14725 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14727 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14729 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14731 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14732 gdb_exception" declaration.
14733 * remote.c (getpkt_or_notif_sane): Likewise.
14735 2014-01-17 Doug Evans <dje@google.com>
14737 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14738 function, contents of dirnames_to_char_ptr_vec_append moved here.
14739 (delim_string_to_char_ptr_vec): New function.
14740 (dirnames_to_char_ptr_vec_append): Rewrite.
14741 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14743 2014-01-17 Doug Evans <dje@google.com>
14745 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14747 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14748 #include "common-utils.h".
14749 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14750 * common/vec.h (VEC_ASSERT_PASS): Update.
14751 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14752 (MACH_CHECK_ERROR): Update.
14754 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14756 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14758 * gdbarch.h: Regenerate.
14760 2014-01-16 Tom Tromey <tromey@redhat.com>
14762 * value.c (struct value) <regnum>: Move earlier.
14764 2014-01-16 Tom Tromey <tromey@redhat.com>
14766 * remote.c (extended_remote_create_inferior): Rename from
14767 extended_remote_create_inferior_1. Add "ops" argument. Remove
14768 old implementation.
14770 2014-01-16 Pedro Alves <palves@redhat.com>
14772 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14773 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14776 2014-01-16 Doug Evans <dje@google.com>
14778 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14782 * btrace.h (btrace_thread_flag): New.
14783 (struct btrace_thread_info) <flags>: New.
14784 * record-btrace.c (record_btrace_resume_thread)
14785 (record_btrace_find_thread_to_move, btrace_step_no_history)
14786 (btrace_step_stopped, record_btrace_start_replaying)
14787 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14788 (record_btrace_find_resume_thread): New.
14789 (record_btrace_resume, record_btrace_wait): Extend.
14790 (record_btrace_can_execute_reverse): New.
14791 (record_btrace_open): Fail in non-stop mode.
14792 (record_btrace_set_replay): Split into this, ...
14793 (record_btrace_stop_replaying): ... this, ...
14794 (record_btrace_clear_histories): ... and this.
14795 (init_record_btrace_ops): Init to_can_execute_reverse.
14796 * NEWS: Announce it.
14798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14800 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14801 (forward_target_decr_pc_after_break)
14802 (target_decr_pc_after_break): New.
14803 * target.c (forward_target_decr_pc_after_break)
14804 (target_decr_pc_after_break): New.
14805 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14806 instead of gdbarch_decr_pc_after_break.
14807 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14808 instead of gdbarch_decr_pc_after_break.
14809 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14810 instead of gdbarch_decr_pc_after_break.
14811 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14812 instead of gdbarch_decr_pc_after_break.
14813 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14814 instead of gdbarch_decr_pc_after_break.
14815 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14816 instead of gdbarch_decr_pc_after_break.
14818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14820 * btrace.c: Include regcache.h.
14821 (btrace_add_pc): New.
14822 (btrace_enable): Call btrace_add_pc.
14823 (btrace_is_empty): New.
14824 * btrace.h (btrace_is_empty): New.
14825 * record-btrace.c (require_btrace, record_btrace_info): Call
14828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14830 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14831 Support delta reads.
14832 (linux_disable_btrace): Change return type.
14833 * common/linux-btrace.h (linux_read_btrace): Change parameters
14834 and return type to allow error reporting. Update users.
14835 (linux_disable_btrace): Change return type. Update users.
14836 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14838 (btrace_error): New.
14839 (btrace_block) <begin>: Comment on BEGIN == 0.
14840 * btrace.c (btrace_compute_ftrace): Start from the end of
14842 (btrace_stitch_trace, btrace_clear_history): New.
14843 (btrace_fetch): Read delta trace, return if replaying.
14844 (btrace_clear): Move clear history code to btrace_clear_history.
14845 (parse_xml_btrace): Throw an error if parsing failed.
14846 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14847 and return type to allow error reporting.
14848 (target_read_btrace): Change parameters and return type to allow
14850 * target.c (target_read_btrace): Update.
14851 * remote.c (remote_read_btrace): Support delta reads. Pass
14853 * NEWS: Announce it.
14855 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14857 * record.h (record_btrace_frame_unwind)
14858 (record_btrace_tailcall_frame_unwind): New declarations.
14859 * dwarf2-frame: Include record.h
14860 (dwarf2_frame_cfa): Throw an error for btrace frames.
14861 * record-btrace.c: Include hashtab.h.
14862 (btrace_get_bfun_name): New.
14863 (btrace_call_history): Call btrace_get_bfun_name.
14864 (struct btrace_frame_cache): New.
14866 (bfcache_hash, bfcache_eq, bfcache_new): New.
14867 (btrace_get_frame_function): New.
14868 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14869 (record_btrace_frame_this_id): Compute own id.
14870 (record_btrace_frame_prev_register): Provide PC, throw_error
14871 for all other registers.
14872 (record_btrace_frame_sniffer): Detect btrace frames.
14873 (record_btrace_tailcall_frame_sniffer): New.
14874 (record_btrace_frame_dealloc_cache): New.
14875 (record_btrace_frame_unwind): Add new functions.
14876 (record_btrace_tailcall_frame_unwind): New.
14877 (_initialize_record_btrace): Allocate cache.
14878 * btrace.c (btrace_clear): Call reinit_frame_cache.
14879 * NEWS: Announce it.
14881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14883 * record-btrace.c (record_btrace_set_replay)
14884 (record_btrace_goto_begin, record_btrace_goto_end)
14885 (record_btrace_goto): New.
14886 (init_record_btrace_ops): Initialize them.
14887 * NEWS: Announce it.
14889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14891 * record-btrace.c (record_btrace_find_new_threads)
14892 (record_btrace_thread_alive): New.
14893 (init_record_btrace_ops): Initialize to_find_new_threads and
14896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898 * record-btrace.c (record_btrace_resume): New.
14899 (record_btrace_wait): New.
14900 (init_record_btrace_ops): Initialize to_wait and to_resume.
14902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14904 * record-btrace.c (record_btrace_xfer_partial)
14905 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14906 (record_btrace_allow_memory_access): New.
14907 (init_record_btrace_ops): Initialize new methods.
14908 * target.c (raw_memory_xfer_partial): Bail out if target reports
14909 that this memory is not available.
14911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14913 * target.h (target_ops) <to_insert_breakpoint>
14914 <to_remove_breakpoint>: Add target_ops parameter.
14915 (forward_target_insert_breakpoint): New.
14916 (forward_target_remove_breakpoint): New.
14917 (memory_remove_breakpoint, memory_insert_breakpoint):
14918 Add target_ops parameter.
14919 * target.c (target_insert_breakpoint): Split into this and ...
14920 (forward_target_insert_breakpoint): ... this.
14921 (target_remove_breakpoint): Split into this and ...
14922 (forward_target_remove_breakpoint): ... this.
14923 (debug_to_insert_breakpoint): Add target_ops parameter.
14924 Call forward_target_insert_breakpoint.
14925 (debug_to_remove_breakpoint): Add target_ops parameter.
14926 Call forward_target_remove_breakpoint.
14927 (update_current_target): Do not inherit or default to_insert_breakpoint
14928 and to_remove_breakpoint.
14929 * corelow.c (ignore): Add target_ops parameter.
14930 * exec.c (ignore): Add target_ops parameter.
14931 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14932 Add target_ops parameter.
14933 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14934 Add target_ops parameter.
14935 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14936 Add target_ops parameter.
14937 * record-full.c (record_full_beneath_to_insert_breakpoint)
14938 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14939 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14940 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14941 (record_full_core_remove_breakpoint): Add target_ops parameter.
14943 (record_full_beneath_to_insert_breakpoint_ops)
14944 (record_full_beneath_to_remove_breakpoint_ops)
14945 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14946 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14947 tmp_to_remove_breakpoint_ops,
14948 record_full_beneath_to_insert_breakpoint_ops, and
14949 record_full_beneath_to_remove_breakpoint_ops.
14950 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14951 (m32r_remove_breakpoint): Add target_ops parameter.
14952 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14953 Add target_ops parameter.
14954 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14955 Add target_ops parameter.
14957 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14958 Markus Metzger <markus.t.metzger@intel.com>
14960 * record-btrace.c: Include frame-unwind.h.
14961 (record_btrace_frame_unwind_stop_reason)
14962 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14963 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14965 (init_record_btrace_ops): Install it.
14967 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14969 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14972 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14974 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14977 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14979 * frame-unwind.c: Include target.h.
14980 (frame_unwind_try_unwinder): New function with code from ...
14981 (frame_unwind_find_by_frame): ... here. New variable
14982 unwinder_from_target, call also target_get_unwinder)
14983 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14984 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14985 * target.h (struct target_ops): New fields to_get_unwinder and
14986 to_get_tailcall_unwinder.
14987 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14991 * record-btrace.c (record_btrace_fetch_registers)
14992 (record_btrace_store_registers)
14993 (record_btrace_to_prepare_to_store): New.
14994 (init_record_btrace_ops): Add the above.
14996 2014-01-16 Tom Tromey <tromey@redhat.com>
14998 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14999 * target.h (struct target_ops) <to_prepare_to_store>: Add
15001 (target_prepare_to_store): Add argument.
15002 * target.c (debug_to_prepare_to_store): Add argument.
15003 (update_current_target): Update.
15004 * remote.c (remote_prepare_to_store): Add 'self' argument.
15005 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15006 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15007 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15008 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15010 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15011 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15012 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15013 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15014 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15018 * btrace.h (replay) <replay>: New.
15019 (btrace_is_replaying): New.
15020 * btrace.c (btrace_clear): Free replay iterator.
15021 (btrace_is_replaying): New.
15022 * record-btrace.c (record_btrace_is_replaying): New.
15023 (record_btrace_info): Print insn number if replaying.
15024 (record_btrace_insn_history): Start at replay position.
15025 (record_btrace_call_history): Start at replay position.
15026 (init_record_btrace_ops): Init to_record_is_replaying.
15028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15030 * record-btrace.c (record_btrace_insn_history_range): Include
15032 (record_btrace_insn_history_from): Adjust range.
15033 (record_btrace_call_history_range): Include
15035 (record_btrace_call_history_from): Adjust range.
15036 * NEWS: Announce changes.
15038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15040 * record.h (enum record_print_flag)
15041 <record_print_indent_calls>: New.
15042 * record.c (get_call_history_modifiers): Recognize /c modifier.
15043 (_initialize_record): Document /c modifier.
15044 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15045 Reorder fields. Optionally indent the function name. Update
15047 * NEWS: Announce changes.
15049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15051 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15053 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15055 * btrace.c (ftrace_new_function): Start counting at one.
15056 * record-btrace.c (record_btrace_info): Adjust number of calls
15058 * NEWS: Announce it.
15060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15062 * record-btrace.c (btrace_call_history_insn_range): Print
15063 insn range as [begin, end].
15065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15067 * btrace.h (struct btrace_func_link): New.
15068 (enum btrace_function_flag): New.
15069 (struct btrace_inst): Rename to ...
15070 (struct btrace_insn): ...this. Update all users.
15071 (struct btrace_func) <ibegin, iend>: Remove.
15072 (struct btrace_func_link): New.
15073 (struct btrace_func): Rename to ...
15074 (struct btrace_function): ...this. Update all users.
15075 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15076 (number, level, flags>: New.
15077 (struct btrace_insn_iterator): Rename to ...
15078 (struct btrace_insn_history): ...this.
15080 (struct btrace_insn_iterator, btrace_call_iterator): New.
15081 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15082 (struct btrace_target_info) <begin, end, level>
15083 <insn_history, call_history>: New.
15084 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15085 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15086 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15087 (btrace_call_number, btrace_call_begin, btrace_call_end)
15088 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15089 (btrace_find_function_by_number, btrace_set_insn_history)
15090 (btrace_set_call_history): New.
15091 * btrace.c (btrace_init_insn_iterator)
15092 (btrace_init_func_iterator, compute_itrace): Remove.
15093 (ftrace_print_function_name, ftrace_print_filename)
15094 (ftrace_skip_file): Change
15095 parameter to const.
15096 (ftrace_init_func): Remove.
15097 (ftrace_debug): Use new btrace_function fields.
15098 (ftrace_function_switched): Also consider gaining and
15099 losing symbol information).
15100 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15101 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15102 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15104 (ftrace_new_function): Move. Remove debug print.
15105 (ftrace_update_lines, ftrace_update_insns): New.
15106 (ftrace_update_function): Check for call, ret, and jump.
15107 (compute_ftrace): Renamed to ...
15108 (btrace_compute_ftrace): ...this. Rewritten to compute call
15110 (btrace_fetch, btrace_clear): Updated.
15111 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15112 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15113 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15114 (btrace_call_number, btrace_call_begin, btrace_call_end)
15115 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15116 (btrace_find_function_by_number, btrace_set_insn_history)
15117 (btrace_set_call_history): New.
15118 * record-btrace.c (require_btrace): Use new btrace thread
15120 (record_btrace_info, btrace_insn_history)
15121 (record_btrace_insn_history, record_btrace_insn_history_range):
15122 Use new btrace thread info fields and new iterator.
15123 (btrace_func_history_src_line): Rename to ...
15124 (btrace_call_history_src_line): ...this. Use new btrace
15125 thread info fields.
15126 (btrace_func_history): Rename to ...
15127 (btrace_call_history): ...this. Use new btrace thread info
15128 fields and new iterator.
15129 (record_btrace_call_history, record_btrace_call_history_range):
15130 Use new btrace thread info fields and new iterator.
15132 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15134 * frame.h (frame_id_build_unavailable_stack_special): New.
15135 * frame.c (frame_id_build_unavailable_stack_special): New.
15137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15139 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15140 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15141 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15143 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15144 (i386_insn_is_jump, i386_jmp_p): New.
15145 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15146 insn_is_jump to gdbarch.
15147 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15148 * gdbarch.h: Regenerated.
15149 * gdbarch.c: Regenerated.
15150 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15151 (default_insn_is_jump): New.
15152 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15153 (default_insn_is_jump): New.
15155 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15157 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15159 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15160 (btrace_read_type) <btrace_read_new>: Change to ...
15161 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15165 * common/linux-btrace.c (linux_read_btrace): Free trace from
15166 previous iteration.
15168 2014-01-15 Doug Evans <dje@google.com>
15170 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15173 2014-01-15 Tom Tromey <tromey@redhat.com>
15175 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15176 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15177 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15178 (set_objfile_main_name): New function.
15179 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15180 language_of_main>: New fields.
15181 (set_objfile_main_name): Declare.
15182 * symtab.c (find_main_name): Loop over objfiles to find the main
15184 (set_main_name): Now static.
15185 (get_main_info): Add comment.
15186 * symtab.h (set_main_name): Don't declare.
15188 2014-01-15 Tom Tromey <tromey@redhat.com>
15190 * symtab.c (main_progspace_key): New global.
15191 (struct main_info): New.
15192 (name_of_main, language_of_main): Remove.
15193 (get_main_info, main_info_cleanup): New function.
15194 (set_main_name, main_name, main_language): Use get_main_info.
15195 (_initialize_symtab): Initialize main_progspace_key.
15197 2014-01-15 Tom Tromey <tromey@redhat.com>
15199 * dbxread.c (process_one_symbol): Update.
15200 * dwarf2read.c (read_partial_die): Update.
15201 * symfile.c (set_initial_language): Call main_language.
15202 * symtab.c (language_of_main): Now static.
15203 (set_main_name): Add 'lang' parameter.
15204 (find_main_name): Update.
15205 (main_language): New function.
15206 (symtab_observer_executable_changed): Update.
15207 * symtab.h (set_main_name): Update.
15208 (language_of_main): Remove.
15209 (main_language): Declare.
15211 2014-01-15 Tom Tromey <tromey@redhat.com>
15213 * symfile.c (init_entry_point_info): Use new "initialized" field.
15215 * objfiles.h (struct entry_point) <initialized>: New field.
15216 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15217 (struct objfile) <ei>: ...here. Remove.
15218 * objfiles.c (entry_point_address_query): Update.
15220 2014-01-15 Tom Tromey <tromey@redhat.com>
15222 * objfiles.c (entry_point_address_query): Relocate entry point
15224 (objfile_relocate1): Do not relocate entry point address.
15225 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15226 <the_bfd_section_index>: New field.
15227 * symfile.c (init_entry_point_info): Find the entry point's
15230 2014-01-15 Tom Tromey <tromey@redhat.com>
15232 * solib-frv.c (enable_break): Use entry_point_address_query.
15234 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15236 * NEWS: Add note on improved process record-replay on
15237 arm*-linux* targets.
15239 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15241 * arm-tdep.c (enum arm_record_result): New enum.
15242 (arm_record_unsupported_insn): New function.
15243 (arm_record_coproc_data_proc): Removed.
15244 (thumb2_record_ld_st_multiple): New function.
15245 (thumb2_record_ld_st_dual_ex_tbb): New function.
15246 (thumb2_record_data_proc_sreg_mimm): New function.
15247 (thumb2_record_ps_dest_generic): New function.
15248 (thumb2_record_branch_misc_cntrl): New function.
15249 (thumb2_record_str_single_data): New function.
15250 (thumb2_record_ld_mem_hints): New function.
15251 (thumb2_record_ld_word): New function.
15252 (thumb2_record_lmul_lmla_div): New function.
15253 (thumb2_record_decode_insn_handler): New function.
15254 (decode_insn): Add thumb32 instruction handlers.
15256 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15258 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15259 (struct arm_linux_record_tdep): Declare.
15260 (arm_canonicalize_syscall): New function.
15261 (arm_all_but_pc_registers_record): New function.
15262 (arm_linux_syscall_record): New function.
15263 (arm_linux_init_abi): Add syscall recording constructs.
15264 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15265 decoding. (arm_record_coproc_data_proc): Update arm syscall
15267 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15268 <arm_syscall_record>: New field.
15269 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15272 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15274 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15275 register for push instruction recording.
15277 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15279 * arm-tdep.c (thumb_record_misc): Update to correct logical
15280 error while recording ldm, ldmia and pop instructions.
15282 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15284 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15286 2014-01-15 Pedro Alves <palves@redhat.com>
15288 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15289 (go32_resume, go32_fetch_registers, store_register)
15290 (go32_store_registers, go32_prepare_to_store)
15291 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15292 (go32_create_inferior, go32_can_run, go32_terminal_init)
15293 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15296 2014-01-15 Tom Tromey <tromey@redhat.com>
15298 * target.h (async_callback_ftype): New typedef.
15299 (struct target_ops) <to_async>: Use it.
15301 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15303 * python/py-value.c (get_field_type): Remove unnecessary curly
15304 braces for single-statement if block.
15306 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15308 * python/py-type.c (convert_field): Add missing empty line
15309 after declarations.
15311 2014-01-14 Doug Evans <dje@google.com>
15313 * symfile.h (expand_symtabs_matching): Renamed from
15314 expand_partial_symbol_names. Update prototype.
15315 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15316 * symfile.c (expand_symtabs_matching): Renamed from
15317 expand_partial_symbol_names. New args file_matcher, kind.
15318 Rename arg fun to symbol_matcher.
15319 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15320 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15321 ada_expand_partial_symbol_name.
15322 (ada_make_symbol_completion_list): Update to call
15323 expand_symtabs_matching.
15324 (ada_add_global_exceptions): Call expand_symtabs_matching.
15325 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15326 call map_symbol_filenames.
15327 * symtab.c (sources_info): Update to call map_symbol_filenames.
15328 (search_symbols): Call expand_symtabs_matching.
15329 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15330 (default_make_symbol_completion_list_break_on): Update to call
15331 expand_symtabs_matching.
15332 (make_source_files_completion_list): Update to call
15333 map_symbol_filenames.
15335 2014-01-14 Doug Evans <dje@google.com>
15337 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15338 (expand_symtabs_symbol_matcher_ftype): New typedef.
15339 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15340 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15341 * symfile.c (expand_partial_symbol_names): Update to use
15342 expand_symtabs_symbol_matcher_ftype.
15343 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15344 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15345 Arg name_matcher renamed to symbol_matcher.
15346 * psymtab.c (recursively_search_psymtabs): Update to use
15347 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15349 (expand_symtabs_matching_via_partial): Update to use
15350 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15351 Arg name_matcher renamed to symbol_matcher.
15353 2014-01-14 Doug Evans <dje@google.com>
15355 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15356 (map_partial_symbol_filenames): Ditto.
15357 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15358 (map_partial_symbol_filenames): Ditto.
15359 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15360 (map_partial_symbol_filenames): Ditto.
15361 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15362 (map_partial_symbol_filenames): Ditto.
15363 * symtab.c: Delete #include "psymtab.h".
15365 2014-01-14 Pedro Alves <palves@redhat.com>
15366 Tom Tromey <tromey@redhat.com>
15368 * infrun.c (use_displaced_stepping): Use find_record_target
15369 instead of RECORD_IS_USED.
15370 (adjust_pc_after_break): Use record_full_is_used instead of
15372 * record-btrace.c (record_btrace_open): Call record_preopen
15373 instead of checking RECORD_IS_USED.
15374 * record-full.c (record_full_shortname)
15375 (record_full_core_shortname): New globals.
15376 (record_full_is_used): New function.
15377 (find_full_open): Call record_preopen instead of checking
15379 (init_record_full_ops): Set the target's shortname to
15380 record_full_shortname.
15381 (init_record_full_core_ops): Set the target's shortname to
15382 record_full_core_shortname.
15383 * record-full.h (record_full_is_used): Declare.
15384 * record.c (find_record_target): Make extern.
15385 (record_preopen): New function.
15386 * record.h (RECORD_IS_USED): Delete macro.
15387 (find_record_target, record_preopen): Declare functions.
15389 2014-01-14 Yao Qi <yao@codesourcery.com>
15391 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15392 'len''s type to ULONGEST.
15393 (core_xfer_shared_libraries_aix): Likewise.
15394 * gdbarch.c, gdbarch.h: Regenerated.
15395 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15396 Change type of 'len' to ULONGEST.
15397 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15398 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15400 2014-01-14 Yao Qi <yao@codesourcery.com>
15402 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15403 type of 'len' to ULONGEST.
15404 (linux_xfer_osdata_processgroups): Likewise.
15405 (linux_xfer_osdata_threads): Likewise.
15406 (linux_xfer_osdata_fds): Likewise.
15407 (linux_xfer_osdata_isockets): Likewise.
15408 (linux_xfer_osdata_shm): Likewise.
15409 (linux_xfer_osdata_sem): Likewise.
15410 (linux_xfer_osdata_msg): Likewise.
15411 (linux_common_xfer_osdata): Likewise.
15412 (struct osdata_type) <getter>: Likewise.
15413 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15416 2014-01-14 Yao Qi <yao@codesourcery.com>
15418 * target.h (target_xfer_partial_ftype): Update.
15419 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15421 * aix-thread.c (aix_thread_xfer_partial): Change type of
15422 argument 'len' to ULONGEST.
15423 * auxv.c (procfs_xfer_auxv): Likewise.
15424 (ld_so_xfer_auxv): Likewise.
15425 (memory_xfer_auxv): Likewise.
15426 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15427 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15428 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15429 * corelow.c (core_xfer_partial): Likewise.
15430 * ctf.c (ctf_xfer_partial): Likewise.
15431 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15433 (darwin_read_dyld_info): Likewise.
15434 (darwin_xfer_partial): Likewise.
15435 * exec.c (section_table_xfer_memory_partial): Likewise.
15436 (exec_xfer_partial): Likewise.
15437 * exec.h (section_table_xfer_memory_partial): Update
15439 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15440 instead of plongest.
15441 (gnu_xfer_partial): Likewise.
15442 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15443 (ia64_hpux_xfer_solib_got): Likewise.
15444 (ia64_hpux_xfer_partial): Likewise.
15445 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15446 * inf-ptrace.c (inf_ptrace_xfer_partial):
15447 * inf-ttrace.c (inf_ttrace_xfer_partial):
15448 * linux-nat.c (linux_xfer_siginfo): Likewise.
15449 (linux_nat_xfer_partial): Likewise.
15450 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15451 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15452 * monitor.c (monitor_xfer_memory): Likewise.
15453 (monitor_xfer_partial): Likewise.
15454 * procfs.c (procfs_xfer_partial): Likewise.
15455 * record-full.c (record_full_xfer_partial): Likewise.
15456 (record_full_core_xfer_partial): Likewise.
15457 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15458 instead of plongest.
15459 (gdbsim_xfer_partial): Likewise.
15460 * remote.c (remote_xfer_partial): Likewise.
15461 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15462 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15465 (rs6000_xfer_shared_libraries): Likewise.
15466 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15467 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15468 (sparc_xfer_partial): Likewise.
15469 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15470 (spu_xfer_partial): Likewise.
15471 * spu-multiarch.c (spu_xfer_partial): Likewise.
15472 * target.c (target_read_live_memory): Likewise.
15473 (memory_xfer_live_readonly_partial): Likewise.
15474 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15475 (target_xfer_partial, default_xfer_partial): Likewise.
15476 (current_xfer_partial): Likewise.
15477 * tracepoint.c (tfile_xfer_partial): Likewise.
15478 * windows-nat.c (windows_xfer_memory): Likewise. Call
15479 pulongest instead of plongest.
15480 (windows_xfer_partial): Likewise.
15481 (windows_xfer_shared_libraries): Likewise.
15483 2014-01-14 Yao Qi <yao@codesourcery.com>
15485 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15486 target_xfer_partial_ftype.
15488 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15492 * valops.c (value_struct_elt_bitpos): New function
15493 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15494 object to 'None' if the field name is an empty string ("").
15495 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15496 attribute to look for a field when 'name' is 'None'.
15497 (get_field_type): New function
15499 2014-01-13 Doug Evans <dje@google.com>
15502 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15503 (try_open_dwop_file): Ditto.
15504 * gdb_bfd.c: #include "vec.h".
15505 (bfdp): New typedef.
15506 (struct gdb_bfd_data): New member included_bfds.
15507 (gdb_bfd_unref): Unref all included bfds.
15508 (gdb_bfd_record_inclusion): New function.
15509 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15511 2014-01-13 Tom Tromey <tromey@redhat.com>
15513 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15515 2014-01-13 Tom Tromey <tromey@redhat.com>
15517 * defs.h (use_windows): Remove.
15518 * gdb.c (main): Update.
15519 * main.c (captured_main, gdb_main): Update.
15520 * main.h (struct captured_main_args) <use_windows>: Remove.
15521 * top.c (use_windows): Remove.
15523 2014-01-13 Tom Tromey <tromey@redhat.com>
15525 * defs.h (deprecated_flush_hook): Remove.
15527 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15530 * linux-thread-db.c (try_thread_db_load): Add parameter
15531 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15532 (try_thread_db_load_from_pdir_1): Move it there from here.
15533 (try_thread_db_load_from_sdir): Update caller.
15534 (try_thread_db_load_from_dir): Move it there from here.
15536 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15538 * regformats/regdat.sh: Always rewrite the register file.
15540 2014-01-13 Pedro Alves <palves@redhat.com>
15542 * Makefile.in (CHECK_HEADERS): New variable.
15543 (check-headers:): New rule.
15545 2014-01-13 Tom Tromey <tromey@redhat.com>
15547 * cli/cli-setshow.c (do_set_command): Update.
15548 * defs.h (deprecated_set_hook): Remove.
15549 * top.c (deprecated_set_hook): Remove.
15551 2014-01-13 Pedro Alves <palves@redhat.com>
15553 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15554 the tracepoint if the PC is a pseudo-register.
15556 2014-01-13 Tom Tromey <tromey@redhat.com>
15558 * defs.h (XCALLOC): Remove.
15559 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15560 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15561 * dwarf2loc.c (allocate_piece_closure): Likewise.
15562 * elfread.c (elf_symfile_segments): Likewise.
15563 (elf_symfile_segments): Likewise.
15564 * gdbtypes.c (copy_type_recursive): Likewise.
15565 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15566 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15567 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15569 * mt-tdep.c (mt_gdbarch_init): Likewise.
15570 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15572 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15573 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15574 * registry.c (registry_alloc_data): Likewise.
15575 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15576 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15577 * serial.c (serial_fdopen_ops): Likewise.
15578 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15580 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15581 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15584 2014-01-13 Tom Tromey <tromey@redhat.com>
15586 * defs.h (XMALLOC): Remove.
15587 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15588 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15589 * cli-out.c (struct ui_out *): Likewise.
15590 * cli/cli-dump.c (add_dump_command): Likewise.
15591 (add_dump_command): Likewise.
15592 * complaints.c (get_complaints): Likewise.
15593 (find_complaint): Likewise.
15594 * dwarf2-frame.c (execute_cfa_program): Likewise.
15595 * dwarf2read.c (abbrev_table_read_table): Likewise.
15596 * gdbarch.sh: Likewise.
15597 * gdbarch.c: Rebuild.
15598 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15599 * interps.c (interp_new): Likewise.
15600 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15601 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15602 * mi/mi-console.c (mi_console_file_new): Likewise.
15603 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15604 * mi/mi-out.c (mi_out_new): Likewise.
15605 * mi/mi-parse.c (mi_parse): Likewise.
15606 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15607 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15608 * observer.c (xalloc_observer_list_node): Likewise.
15609 * regcache.c (regcache_xmalloc_1): Likewise.
15610 * reggroups.c (reggroup_new): Likewise.
15611 (_initialize_reggroup): Likewise.
15612 * registry.c (register_data_with_cleanup): Likewise.
15613 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15614 * ser-base.c (serial_ttystate): Likewise.
15615 * ser-mingw.c (make_pipe_state): Likewise.
15616 * ser-pipe.c (pipe_open): Likewise.
15617 * serial.c (serial_open): Likewise.
15618 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15619 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15620 (tui_alloc_win_info): Likewise.
15621 (tui_add_content_elements): Likewise.
15622 * tui/tui-file.c (tui_file_new): Likewise.
15623 * tui/tui-out.c (tui_out_new): Likewise.
15624 * ui-file.c (mem_file_new): Likewise.
15625 * ui-out.c (push_level): Likewise.
15626 (make_cleanup_ui_out_end): Likewise.
15627 (append_header_to_list): Likewise.
15628 (ui_out_new): Likewise.
15629 * user-regs.c (user_reg_add_builtin): Likewise.
15631 2014-01-13 Tom Tromey <tromey@redhat.com>
15633 * defs.h (XZALLOC): Remove.
15634 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15635 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15636 (get_ada_tasks_inferior_data): Likewise.
15637 * auto-load.c (get_auto_load_pspace_data): Likewise.
15638 * auxv.c (get_auxv_inferior_data): Likewise.
15639 * bfd-target.c (target_bfd_reopen): Likewise.
15640 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15641 (deprecated_insert_raw_breakpoint): Likewise.
15642 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15643 * corelow.c (core_open): Likewise.
15644 * darwin-nat.c (darwin_check_new_threads): Likewise.
15645 (darwin_attach_pid): Likewise.
15646 * dummy-frame.c (dummy_frame_push): Likewise.
15647 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15648 * dwarf2loc.c (allocate_piece_closure): Likewise.
15649 * elfread.c (elf_symfile_segments): Likewise.
15650 * eval.c (ptrmath_type_p): Likewise.
15651 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15652 * gdbtypes.c (alloc_type_arch): Likewise.
15653 (alloc_type_instance): Likewise.
15654 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15655 * inf-child.c (inf_child_can_use_agent): Likewise.
15656 * inflow.c (get_inflow_inferior_data): Likewise.
15657 * infrun.c (save_infcall_suspend_state): Likewise.
15658 * jit.c (jit_reader_load): Likewise.
15659 (get_jit_objfile_data): Likewise.
15660 (get_jit_program_space_data): Likewise.
15661 (jit_object_open_impl): Likewise.
15662 (jit_symtab_open_impl): Likewise.
15663 (jit_block_open_impl): Likewise.
15664 (jit_frame_sniffer): Likewise.
15665 * linux-fork.c (add_fork): Likewise.
15666 * maint.c (make_command_stats_cleanup): Likewise.
15667 * objfiles.c (get_objfile_pspace_data): Likewise.
15668 * opencl-lang.c (struct lval_closure): Likewise.
15669 * osdata.c (osdata_start_osdata): Likewise.
15670 * progspace.c (new_address_space): Likewise.
15671 (add_program_space): Likewise.
15672 * remote-sim.c (get_sim_inferior_data): Likewise.
15673 * sh-tdep.c (sh_gdbarch_init): Likewise.
15674 * skip.c (Ignore): Likewise.
15675 (skip_delete_command): Likewise.
15676 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15677 (library_list_start_library): Likewise.
15678 (solib_aix_current_sos): Likewise.
15679 * solib-darwin.c (get_darwin_info): Likewise.
15680 (darwin_current_sos): Likewise.
15681 * solib-dsbt.c (get_dsbt_info): Likewise.
15682 * solib-ia64-hpux.c (new_so_list): Likewise.
15683 (ia64_hpux_get_solib_linkage_addr): Likewise.
15684 * solib-spu.c (append_ocl_sos): Likewise.
15685 (spu_current_sos): Likewise.
15686 * solib-svr4.c (get_svr4_info): Likewise.
15687 (svr4_keep_data_in_core): Likewise.
15688 (library_list_start_library): Likewise.
15689 (svr4_default_sos): Likewise.
15690 (svr4_read_so_list): Likewise.
15691 * solib-target.c (library_list_start_library): Likewise.
15692 (solib_target_current_sos): Likewise.
15693 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15694 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15695 * symfile.c (default_symfile_segments): Likewise.
15696 * target-descriptions.c (tdesc_data_init): Likewise.
15697 (tdesc_create_reg): Likewise.
15698 (struct tdesc_type *): Likewise.
15699 (tdesc_create_vector): Likewise.
15700 (tdesc_set_struct_size): Likewise.
15701 (struct tdesc_type *): Likewise.
15702 (tdesc_free_feature): Likewise.
15703 (tdesc_create_feature): Likewise.
15704 * windows-nat.c (windows_add_thread): Likewise.
15705 (windows_make_so): Likewise.
15706 * xml-support.c (gdb_xml_body_text): Likewise.
15707 (gdb_xml_create_parser_and_cleanup): Likewise.
15708 (xml_process_xincludes): Likewise.
15709 * xml-syscall.c (allocate_syscalls_info): Likewise.
15710 (syscall_create_syscall_desc): Likewise.
15712 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15714 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15715 function, with code from i386_stap_parse_special_token.
15716 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15717 (i386_stap_parse_special_token): Move code to the two functions
15718 above; simplify it.
15720 2014-01-09 Pedro Alves <palves@redhat.com>
15721 Hui Zhu <hui@codesourcery.com>
15724 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15725 bp_err_string. Don't mark the location shlib_disabled if the
15726 error thrown wasn't a generic or memory error. Catch errors
15727 thrown while inserting breakpoints in overlayed code. Output
15728 error message of software breakpoints.
15729 * remote.c (remote_insert_breakpoint): If this breakpoint has
15730 target-side commands but this stub doesn't support Z0 packets,
15731 throw NOT_SUPPORTED_ERROR error.
15732 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15733 * target.h (target_insert_breakpoint): Extend comment.
15734 (target_insert_hw_breakpoint): Add comment.
15736 2014-01-08 Pedro Alves <palves@redhat.com>
15738 * remote.c (remote_add_thread): Add threads silently if starting
15740 (remote_notice_new_inferior): If in all-stop, and starting up,
15741 don't call notice_new_inferior.
15742 (get_current_thread): New function, factored out from ...
15743 (add_current_inferior_and_thread): ... this. Adjust.
15744 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15745 found any thread, then select the remote's current thread as GDB's
15746 current thread too.
15748 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15750 * NEWS: Create a new section for the next release branch.
15751 Rename the section of the current branch, now that it has
15754 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15756 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15757 * version.in: Bump version to 7.7.50.DATE-cvs.
15759 2014-01-08 Yao Qi <yao@codesourcery.com>
15761 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15762 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15763 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15765 2014-01-08 Yao Qi <yao@codesourcery.com>
15767 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15768 return value of bfd_get_filename to symbol_file_add_from_bfd.
15770 2014-01-08 Pierre Muller <muller@sourceware.org>
15773 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15774 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15775 to prim_record_mininal_symbol_and_info.
15776 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15777 in call to prim_record_minimal_symbol_and_info.
15778 (read_pe_exported_syms): Set index field of section_data.
15780 2014-01-07 Andrew Pinski <apinski@cavium.com>
15782 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15783 * features/aarch64.c: Regenerate.
15785 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15787 * target.c (return_null): Define.
15788 (update_current_target): Use it instead of return_zero for
15789 functions that return a pointer.
15791 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15793 * source.c (add_path): Fix check for duplicated paths in the previously
15796 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15798 * ada-lang.c: Remove duplicated include statements.
15799 * alphabsd-nat.c: Ditto.
15800 * amd64-darwin-tdep.c: Ditto.
15801 * amd64fbsd-nat.c: Ditto.
15802 * auto-load.c: Ditto.
15804 * breakpoint.c: Ditto.
15805 * dbxread.c: Ditto.
15806 * fork-child.c: Ditto.
15807 * gdb_usleep.c: Ditto.
15808 * i386-darwin-tdep.c: Ditto.
15809 * i386fbsd-nat.c: Ditto.
15811 * inferior.c: Ditto.
15812 * jv-lang.c: Ditto.
15813 * linux-nat.c: Ditto.
15814 * linux-tdep.c: Ditto.
15815 * m68kbsd-nat.c: Ditto.
15816 * m68klinux-nat.c: Ditto.
15817 * microblaze-tdep.c: Ditto.
15818 * mips-linux-tdep.c: Ditto.
15819 * mn10300-tdep.c: Ditto.
15820 * nto-tdep.c: Ditto.
15821 * opencl-lang.c: Ditto.
15823 * printcmd.c: Ditto.
15824 * regcache.c: Ditto.
15825 * remote-m32r-sdi.c: Ditto.
15827 * symfile.c: Ditto.
15829 * tilegx-linux-nat.c: Ditto.
15830 * tilegx-tdep.c: Ditto.
15831 * tracepoint.c: Ditto.
15833 * vaxbsd-nat.c: Ditto.
15834 * windows-nat.c: Ditto.
15835 * xtensa-tdep.c: Ditto.
15837 2014-01-07 Yao Qi <yao@codesourcery.com>
15839 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15841 2014-01-07 Yao Qi <yao@codesourcery.com>
15842 Joel Brobecker <brobecker@adacore.com>
15844 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15845 (pdc_write_regs): Likewise.
15846 (fetch_regs_kernel_thread): Likewise.
15847 (store_regs_kernel_thread): Likewise.
15849 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15851 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15852 tagged type objects to their actual type.
15854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15856 * ada-valprint.c (print_field_values): Add "language" parameter.
15857 Update calls to print_field_values and print_variant_part.
15858 Pass new parameter "language" in call to val_print instead
15859 of "current_language". Replace call to ada_val_print by call
15861 (print_variant_part): Add "language" parameter.
15862 (ada_val_print_struct_union): Update call to print_field_values.
15864 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15866 * ada-valprint.c (ui_memcpy): Delete.
15867 (ada_print_floating): Update documentation. Add empty line
15868 between between function documentation and implementation.
15869 Delete variable "buffer". Use ui_file_xstrdup in place of
15870 ui_file_put. Minor adjustments following this change.
15872 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15874 * ada-valprint.c (ada_val_print_string): New function,
15875 extracted from ada_val_print_array.
15876 (ada_val_print_array): Replace extracted code by call
15877 to ada_val_print_string followed by a return. Move
15878 "else" branch to the function's top block.
15880 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15882 * ada-valprint.c (ada_val_print_array): Move implementation
15883 down. Rename parameter "offset" and "val" into "offset_aligned"
15884 and "original_value" respectively. Add parameter "offset".
15886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15888 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15889 re-organizing the code. Change the "???" message printed
15890 when target type is a TYPE_CODE_UNDEF into
15891 "<ref to undefined type>".
15893 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15895 * ada-valprint.c (print_record): Delete, implementation inlined...
15896 (ada_val_print_struct_union): ... here. Remove call to
15897 ada_check_typedef in inlined implementation.
15899 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15901 * ada-valprint.c (ada_val_print_gnat_array): New function,
15902 extracted from ada_val_print_1;
15903 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15904 (ada_val_print_flt, ada_val_print_struct_union)
15905 (ada_val_print_ref): Likewise.
15906 (ada_val_print_1): Delete variables i and elttype.
15907 Replace extracted-out code by call to corresponding
15910 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15912 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15914 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15916 * ada-valprint.c (ada_val_print_1): Replace calls to
15917 ada_val_print_1 by calls to val_print.
15919 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15921 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15922 Update calls to self accordingly. Replace calls to c_val_print
15923 by calls to val_print.
15925 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15927 * ada-valprint.c (print_record): Delete declaration.
15928 (adjust_type_signedness, ada_val_print_1): Likewise.
15929 (ada_val_print): Move function implementation down.
15930 (print_variant_part, print_field_values, print_record):
15931 Move function implementation up.
15933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15935 * python/py-type.c (typy_get_name): New function.
15936 (type_object_getset): Add entry for attribute "name".
15937 * NEWS: Add entry mentioning this new attribute.
15939 2014-01-07 Yao Qi <yao@codesourcery.com>
15941 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15944 2014-01-07 Yao Qi <yao@codesourcery.com>
15946 * gnu-nat.c (info_port_rights): Add qualifier const to
15949 2014-01-07 Yao Qi <yao@codesourcery.com>
15951 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15953 2014-01-07 Yao Qi <yao@codesourcery.com>
15955 * gnu-nat.c (make_inf) Update declaration.
15956 (make_inf): Make it static.
15957 (inf_set_traced): Likewise.
15958 (inf_port_to_thread, inf_task_died_status): Likewise.
15960 2014-01-07 Yao Qi <yao@codesourcery.com>
15962 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15964 2014-01-07 Yao Qi <yao@codesourcery.com>
15966 * gnu-nat.c (_initialize_gnu_nat): Declare.
15968 2014-01-07 Yao Qi <yao@codesourcery.com>
15970 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15972 (struct gdbarch_info) <byte_order>: Change type to
15974 <byte_order_for_code>: Likewise.
15975 * gdbarch.c, gdbarch.h: Regenerated.
15977 2014-01-06 Sasha Smundak <asmundak@google.com>
15979 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15981 2014-01-06 Tom Tromey <tromey@redhat.com>
15983 * doublest.c (convert_doublest_to_floatformat): Use const, not
15985 * somread.c (som_symtab_read): Likewise.
15987 2014-01-07 Hui Zhu <hui@codesourcery.com>
15989 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15990 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15991 (gdb_bfd_fopen): Ditto.
15992 (gdb_bfd_openr): Ditto.
15993 (gdb_bfd_openw): Ditto.
15994 (gdb_bfd_openr_iovec): Ditto.
15995 (gdb_bfd_fdopenr): Ditto.
15996 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15997 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15999 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16001 * symfile-mem.c (symbol_file_add_from_memory): Removed
16002 gdb_bfd_stash_filename.
16004 2014-01-03 Doug Evans <dje@google.com>
16006 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16009 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16011 Update year range in copyright notice of all files.
16013 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16015 * top.c (print_gdb_version): Set copyright year to 2014.
16017 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16019 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16021 For older changes see ChangeLog-2013.
16027 version-control: never