1 2014-12-12 Tom Tromey <tromey@redhat.com>
3 * gdbtypes.h (make_unqualified_type): Declare.
4 * gdbtypes.c (make_unqualified_type): New function.
6 2014-12-12 Tom Tromey <tromey@redhat.com>
8 * ui-file.h (ui_file_write_for_put): Declare.
9 * ui-file.c (ui_file_write_for_put): New function.
10 * mi/mi-out.c (do_write): Remove.
11 (mi_out_put): Use ui_file_write_for_put.
13 2014-12-12 Doug Evans <dje@google.com>
15 * NEWS: Mention gdb.lookup_objfile.
16 * python/python.c (GdbMethods): Add lookup_objfile.
17 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
18 * python/py-objfile.c: #include "symtab.h".
19 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
20 (objfpy_lookup_objfile_by_name): New function.
21 (objfpy_lookup_objfile_by_build_id): New function.
22 (gdbpy_lookup_objfile): New function.
24 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
26 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
27 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
28 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
30 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
33 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
35 * completer.c: Include "target.h", "reggroups.h", and
37 (reg_or_group_completer): New.
38 * completer.h (reg_or_group_completer): Declare.
39 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
40 the "info registers" and "info all-registers" commands and the
41 dbx-mode "lr" command.
43 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
45 * user-regs.c: Include "arch-utils.h", "command.h", and
47 (maintenance_print_user_registers): New.
48 (_initialize_user_regs): Register new "maint print user-registers"
50 * NEWS: Mention new GDB command "maint print user-registers".
52 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
53 Maciej W. Rozycki <macro@mips.com>
54 Pedro Alves <pedro@codesourcery.com>
56 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
57 remove `predefault' and `invalid_p' initializers.
58 (make_symbol_special): New architecture method.
59 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
60 (objfile, symbol): New declarations.
61 * arch-utils.h (default_elf_make_msymbol_special): Remove
63 (default_make_symbol_special): New prototype.
64 (default_adjust_dwarf2_addr): Likewise.
65 (default_adjust_dwarf2_line): Likewise.
66 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
67 * arch-utils.c (default_elf_make_msymbol_special): Remove
69 (default_make_symbol_special): New function.
70 (default_adjust_dwarf2_addr): Likewise.
71 (default_adjust_dwarf2_line): Likewise.
72 * dwarf2-frame.c (decode_frame_entry_1): Call
73 `gdbarch_adjust_dwarf2_addr'.
74 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
75 * dwarf2read.c (create_addrmap_from_index): Likewise.
76 (process_psymtab_comp_unit_reader): Likewise.
77 (add_partial_symbol): Likewise.
78 (add_partial_subprogram): Likewise.
79 (process_full_comp_unit): Likewise.
80 (read_file_scope): Likewise.
81 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
82 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
83 (read_call_site_scope): Likewise.
84 (dwarf2_ranges_read): Likewise.
85 (dwarf2_record_block_ranges): Likewise.
86 (read_attribute_value): Likewise.
87 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
88 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
89 * elfread.c (elf_symtab_read): Don't call
90 `gdbarch_elf_make_msymbol_special' if unset.
91 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
92 the ISA bit from the PC.
93 * mips-tdep.c (mips_unmake_compact_addr): New function.
94 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
95 address appropriately.
96 (mips_make_symbol_special): New function.
97 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
98 (mips_pc_is_mips16): Likewise.
99 (mips_pc_is_micromips): Likewise.
100 (mips_pc_isa): Likewise.
101 (mips_adjust_dwarf2_addr): New function.
102 (mips_adjust_dwarf2_line): Likewise.
103 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
104 (mips_addr_bits_remove): Likewise.
105 (mips_skip_trampoline_code): Likewise.
106 (mips_write_pc): Don't set the ISA bit.
107 (mips_eabi_push_dummy_call): Likewise.
108 (mips_o64_push_dummy_call): Likewise.
109 (mips_gdbarch_init): Install `mips_make_symbol_special',
110 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
112 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
113 target-specific symbol address adjustments.
114 * gdbarch.h: Regenerate.
115 * gdbarch.c: Regenerate.
117 2014-12-12 Yao Qi <yao@codesourcery.com>
120 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
121 'skip_pc'. Remove code skipping prologue instructions, use
122 arm_analyze_prologue instead.
123 (arm_analyze_prologue): Stop the scanning for unrecognized
124 instruction when skipping prologue.
126 2014-12-12 Yao Qi <yao@codesourcery.com>
128 * arm-tdep.c (arm_instruction_restores_sp): New function.
129 (arm_analyze_prologue): Call arm_instruction_restores_sp.
130 (arm_in_function_epilogue_p): Move code to
131 arm_instruction_restores_sp.
133 2014-12-11 Doug Evans <xdje42@gmail.com>
135 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
137 2014-12-11 Doug Evans <xdje42@gmail.com>
139 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
140 (symbol *lookup_symbol_via_quick_fns): Ditto.
141 (lookup_symbol_in_objfile): Add forward decl.
142 (lookup_global_symbol_from_objfile): Simplify, call
143 lookup_symbol_in_objfile.
145 2014-12-11 Doug Evans <xdje42@gmail.com>
147 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
149 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
152 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
153 it is marked as persistent.
155 2014-12-10 Doug Evans <xdje42@gmail.com>
157 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
158 closer to its subroutines.
160 2014-12-10 Doug Evans <xdje42@gmail.com>
162 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
164 2014-12-10 Doug Evans <xdje42@gmail.com>
166 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
167 * cp-support.c (cp_lookup_symbol_imports): Delete.
169 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
172 * target.c (cleanup_restore_target_terminal): New function.
173 (make_cleanup_restore_target_terminal): New function.
174 * target.h (make_cleanup_restore_target_terminal): New declaration.
175 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
177 2014-12-08 Doug Evans <dje@google.com>
179 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
181 2014-12-08 Doug Evans <dje@google.com>
183 * NEWS: Mention gdb.Objfile.owner.
184 * python/py-objfile.c (objfpy_get_owner): New function.
185 (objfile_getset): Add "owner".
187 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
189 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
190 (lookup_global_symbol_from_objfile): Call it.
192 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
194 Remove const from struct objfile *.
195 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
196 symtab.c, symtab.h: In these files.
198 2014-12-05 Andreas From <andreas.from@ericsson.com>
200 * MAINTAINERS (Write After Approval): Add "Andreas From"
202 2014-12-05 Doug Evans <xdje42@gmail.com>
206 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
208 2014-12-04 Doug Evans <dje@google.com>
210 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
211 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
212 (objfile_getset): Add "add_separate_debug_file".
214 2014-12-04 Doug Evans <dje@google.com>
216 * NEWS: Mention gdb.Objfile.build_id.
217 * build-id.c (build_id_bfd_get): Make non-static.
218 * build-id.h (build_id_bfd_get): Add declaration.
219 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
220 (OBJFPY_REQUIRE_VALID): New macro.
221 (objfpy_get_build_id): New function.
222 (objfile_getset): Add "build_id".
223 * utils.c (make_hex_string): New function.
224 * utils.h (make_hex_string): Add declaration.
226 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
228 * block.c (block_lookup_symbol_primary): New function.
229 * block.h (block_lookup_symbol_primary): New declaration.
230 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
231 Call block_lookup_symbol_primary.
233 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
235 * tramp-frame.h (tramp_frame): Add `validate' member.
236 * tramp-frame.c (tramp_frame_start): Validate trampoline before
238 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
239 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
240 (mips_linux_o32_sigframe): Initialize `validate' member.
241 (mips_linux_o32_rt_sigframe): Likewise.
242 (mips_linux_n32_rt_sigframe): Likewise.
243 (mips_linux_n64_rt_sigframe): Likewise.
244 (micromips_linux_o32_sigframe): New variable.
245 (micromips_linux_o32_rt_sigframe): Likewise.
246 (micromips_linux_n32_rt_sigframe): Likewise.
247 (micromips_linux_n64_rt_sigframe): Likewise.
248 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
249 (mips_linux_n32n64_sigframe_init): Likewise.
250 (mips_linux_sigframe_validate): New function.
251 (micromips_linux_sigframe_validate): Likewise.
252 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
254 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
256 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
257 * sparc-sol2-tdep.c: Include "regset.h".
258 (sparc32_sol2_supply_core_gregset): New function.
259 (sparc32_sol2_collect_core_gregset): Likewise.
260 (sparc32_sol2_supply_core_fpregset): Likewise.
261 (sparc32_sol2_collect_core_fpregset): Likewise.
262 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
263 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
264 tdep->fpregset/sizeof_fpregset.
265 * sparc64-sol2-tdep.c: Include "regset.h".
266 (sparc64_sol2_supply_core_gregset): New function.
267 (sparc64_sol2_collect_core_gregset): Likewise.
268 (sparc64_sol2_supply_core_fpregset): Likewise.
269 (sparc64_sol2_collect_core_fpregset): Likewise.
270 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
271 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
272 tdep->fpregset/sizeof_fpregset.
274 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
276 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
279 2014-12-02 Doug Evans <dje@google.com>
281 * symtab.c (symbol_init_cplus_specific): Delete.
282 (symbol_set_demangled_name): Remove special c++ support.
283 (symbol_get_demangled_name, symbol_set_language): Ditto.
284 * symtab.h (struct cplus_specific): Delete.
285 (struct general_symbol_info) <language_specific>: Remove
288 2014-12-02 Doug Evans <dje@google.com>
291 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
293 2014-12-02 Doug Evans <dje@google.com>
296 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
299 2014-12-02 Doug Evans <dje@google.com>
301 * dwarf2read.c (peek_die_abbrev): Improve error message text.
303 2014-12-02 Doug Evans <dje@google.com>
305 * valops.c (do_search_struct_field): Remove remnant of Chill support.
306 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
308 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
310 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
312 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
314 * NEWS: Mention new Python events.
315 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
316 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
317 (py-infevents.o): New rule.
318 * doc/observer.texi (inferior_call_pre, inferior_call_post)
319 (memory_changed, register_changed): New observers.
320 * infcall.c (call_function_by_hand): Notify observer before and
322 * python/py-event.h (inferior_call_kind): New enum.
323 (emit_inferior_call_event): New prototype.
324 (emit_register_changed_event): New prototype.
325 (emit_memory_changed_event): New prototype.
326 * python/py-events.h (events_object): New registries
327 inferior_call, memory_changed and register_changed.
328 * python/py-evts.c (gdbpy_initialize_py_events): Add the
329 inferior_call, memory_changed and register_changed registries.
330 * python/py-infevents.c: New.
331 * python/py-inferior.c (python_on_inferior_call_pre)
332 (python_on_inferior_call_post, python_on_register_change)
333 (python_on_memory_change): New functions.
334 (gdbpy_initialize_inferior): Attach python handler to new
336 * python/py-infthread.c(gdbpy_create_ptid_object): New.
337 (thpy_get_ptid) Use gdbpy_create_ptid_object.
338 * python/python-internal.h:
339 (gdbpy_create_ptid_object)
340 (gdbpy_initialize_inferior_call_pre_event)
341 (gdbpy_initialize_inferior_call_post_event)
342 (gdbpy_initialize_register_changed_event)
343 (gdbpy_initialize_memory_changed_event): New prototypes.
344 * python/python.c (_initialize_python): Initialize new events.
345 * valops.c (value_assign): Notify register_changed observer.
347 2014-12-02 Doug Evans <dje@google.com>
349 * python/py-infthread.c: Whitespace fixes.
351 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
353 * features/Makefile (s390-te-linux64-expedite): Replace
354 non-existant r14 and r15 by r14l and r15l, respectively.
355 * regformats/s390-te-linux64.dat: Regenerate.
357 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
359 * objfiles.c (allocate_objfile): Remove duplicate comment.
361 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
363 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
364 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
365 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
366 (supply_gregset, supply_fpregset): Remove.
367 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
368 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
371 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
373 Add add-auto-load-scripts-directory.
374 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
375 * auto-load.c (add_auto_load_dir): New function.
376 (_initialize_auto_load): Install it.
378 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
380 Pushed by Joel Brobecker <brobecker@adacore.com>.
381 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
383 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
385 * eval.c (evaluate_subexp): Check that the thread stack temporaries
386 are not already enabled before enabling them.
388 2014-11-29 Yao Qi <yao@codesourcery.com>
390 * arm-tdep.c (arm_analyze_prologue): Move local variables
391 'framereg' and 'framesize' to inner block. Move code to
394 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
396 * eval.c: Include gdbthread.h.
397 (evaluate_subexp): Enable thread stack temporaries before
398 evaluating a complete expression and clean them up after the
399 evaluation is complete.
400 * gdbthread.h: Include common/vec.h.
401 (value_ptr): New typedef.
402 (VEC (value_ptr)): New vector type.
403 (value_vec): New typedef.
404 (struct thread_info): Add new fields stack_temporaries_enabled
405 and stack_temporaries.
406 (enable_thread_stack_temporaries)
407 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
408 (get_last_thread_stack_temporary)
409 (value_in_thread_stack_temporaries): Declare.
410 * gdbtypes.c (class_or_union_p): New function.
411 * gdbtypes.h (class_or_union_p): Declare.
412 * infcall.c (call_function_by_hand): Store return values of class
413 type as temporaries on stack.
414 * thread.c (enable_thread_stack_temporaries): New function.
415 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
416 (get_last_thread_stack_temporary): Likewise.
417 (value_in_thread_stack_temporaries): Likewise.
418 * value.c (value_force_lval): New function.
419 * value.h (value_force_lval): Declare.
421 2014-11-28 Pierre Muller <muller@sourceware.org>
423 Pushed by Joel Brobecker <brobecker@adacore.com>.
424 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
427 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
429 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
430 * config/sparc/linux.mh (NATDEPFILES): Likewise.
431 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
432 * m68klinux-nat.c (fetch_core_registers): Remove.
433 (linux_elf_core_fns): Remove.
434 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
436 2014-11-28 Joel Brobecker <brobecker@adacore.com>
438 * utils.c (gdb_realpath): Rework comment about handling on
441 2014-11-28 Yao Qi <yao@codesourcery.com>
443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
445 * gnulib/aclocal.m4: Re-generated.
446 * gnulib/config.in: Re-generated.
447 * gnulib/configure: Re-generated.
448 * gnulib/import/Makefile.am: Re-generated.
449 * gnulib/import/Makefile.in: Re-generated.
450 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
451 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
452 * import/basename-lgpl.c: New file.
453 * import/dirname-lgpl.c: New file.
454 * import/dirname.h: New file.
455 * import/m4/dirname.m4: New file.
456 * import/m4/malloc.m4: New file.
457 * import/m4/rename.m4: New file.
458 * import/m4/rmdir.m4: New file.
459 * import/m4/stdio_h.m4: New file.
460 * import/malloc.c: New file.
461 * import/rename.c: New file.
462 * import/rmdir.c: New file.
463 * import/same-inode.h: New file.
464 * import/stdio.c: New file.
465 * import/stdio.in.h: New file.
466 * import/stripslash.c: New file.
468 2014-11-28 Yao Qi <yao@codesourcery.com>
470 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
472 * config.in: Re-generated.
473 * configure: Re-generated.
474 * utils.c (gdb_realpath): Remove code calling realpath,
475 canonicalize_file_name and pathconf.
476 [!_WIN32]: Call canonicalize_file_name.
478 2014-11-28 Yao Qi <yao@codesourcery.com>
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
482 * aclocal.m4: Re-generated.
483 * config.in: Re-generated.
484 * configure: Re-generated.
485 * import/Makefile.am: Re-generated.
486 * import/Makefile.in: Re-generated.
487 * import/m4/gnulib-cache.m4: Re-generated.
488 * import/m4/gnulib-comp.m4: Re-generated.
489 * import/canonicalize-lgpl.c: New file.
490 * import/extra/snippet/_Noreturn.h: New file.
491 * import/m4/canonicalize.m4: New file.
492 * import/m4/double-slash-root.m4: New file.
493 * import/m4/eealloc.m4: New file.
494 * import/m4/malloca.m4: New file.
495 * import/m4/nocrash.m4: New file.
496 * import/m4/stdlib_h.m4: New file.
497 * import/malloca.c: New file.
498 * import/malloca.h: New file.
499 * import/malloca.valgrind: New file.
501 2014-11-28 Yao Qi <yao@codesourcery.com>
503 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
504 * config.in, configure: Regenerate.
505 * symfile.c (find_separate_debug_file_by_debuglink): Remove
506 code checking HAVE_LSTAT is defined.
508 2014-11-28 Yao Qi <yao@codesourcery.com>
510 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
512 * gnulib/aclocal.m4: Re-generated.
513 * gnulib/config.in: Re-generated.
514 * gnulib/configure: Re-generated.
515 * gnulib/import/Makefile.am: Re-generated.
516 * gnulib/import/Makefile.in: Re-generated.
517 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
518 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
519 * gnulib/import/lstat.c: New file.
520 * gnulib/import/m4/lstat.m4: New file.
522 2014-11-28 Yao Qi <yao@codesourcery.com>
524 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
525 * config.in, configure: Re-generate.
526 * inf-child.c (inf_child_fileio_readlink): Don't check
527 HAVE_READLINK is defined.
529 2014-11-28 Yao Qi <yao@codesourcery.com>
531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
532 * gnulib/aclocal.m4: Re-generated.
533 * gnulib/config.in: Likewise.
534 * gnulib/configure: Likewise.
535 * gnulib/import/Makefile.am: Likewise.
536 * gnulib/import/Makefile.in: Likewise.
537 * gnulib/import/m4/gnulib-cache.m4: Likewise.
538 * gnulib/import/m4/gnulib-comp.m4: Likewise.
539 * gnulib/import/dosname.h: New file
540 * gnulib/import/m4/largefile.m4: New file.
541 * gnulib/import/m4/readlink.m4: New file.
542 * gnulib/import/m4/stat.m4: New file.
543 * gnulib/import/readlink.c: New file.
544 * gnulib/import/stat.c: New file.
546 2014-11-26 Mark Wielaard <mjw@redhat.com>
548 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
549 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
551 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
553 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
554 that there can be only one stack adjustment in the prologue
555 with tests to detect specific disallowed stack adjustments.
557 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
559 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
562 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
564 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
565 the instruction as well as reading it from memory.
566 (nios2_match_add): New.
567 (nios2_match_sub): New.
568 (nios2_match_addi): New.
569 (nios2_match_orhi): New.
570 (nios2_match_stw): New.
571 (nios2_match_ldw): New.
572 (nios2_match_rdctl): New.
573 (enum branch_condition): New.
574 (nios2_match_branch): New.
575 (nios2_match_jmpi): New.
576 (nios2_match_calli): New.
577 (nios2_match_jmpr): New.
578 (nios2_match_callr): New.
579 (nios2_match_break): New.
580 (nios2_match_trap): New.
581 (nios2_in_epilogue_p): Rewrite to use new functions.
582 (nios2_analyze_prologue): Likewise.
583 (nios2_skip_prologue): Delete unused local limit_pc.
584 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
585 (nios2_get_next_pc): Rewrite to use new functions.
587 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
591 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
593 Pushed by Joel Brobecker <brobecker@adacore.com>
594 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
595 elements pi_len by the size of the elements before calling
597 (inf_validate_task_sc): Likewise, and properly deallocate the
600 2014-11-23 Doug Evans <xdje42@gmail.com>
602 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
603 number and name if present. All callers updated.
604 (dump_fn_fieldlists): Fix indentation of args.
606 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
608 * MAINTAINERS (Write After Approval): Add myself.
610 2014-11-23 Joel Brobecker <brobecker@adacore.com>
612 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
613 to a bp_call_dummy breakpoint type.
615 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
617 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
618 registering the signal handler.
620 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
622 * event-top.h (call_stdin_event_handler_again_p): Declare.
623 * event-top.c (call_stdin_event_handler_again_p): Define.
624 (stdin_event_handler): Use it.
625 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
626 handler again if there is pending input following a
629 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
631 Pushed by Joel Brobecker <brobecker@adacore.com>
632 * linux-fork.c (checkpoint_command): Print index of new
633 checkpoint in response message.
635 2014-11-23 Yao Qi <yao@codesourcery.com>
637 * valprint.c (read_string): Move local variables 'found_nul',
638 'chunksize' and 'limit' to inner scope. Update comments.
640 2014-11-22 Doug Evans <xdje42@gmail.com>
642 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
644 (search_symbols): Fix comments and whitespace.
646 2014-11-22 Doug Evans <xdje42@gmail.com>
648 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
650 2014-11-21 Doug Evans <dje@google.com>
652 * psymtab.c (psymtab_search_name): Fix whitespace.
654 2014-11-21 Yao Qi <yao@codesourcery.com>
656 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
658 * gnulib/import/Makefile.am: Re-generated.
659 * gnulib/import/Makefile.in: Likewise.
660 * gnulib/import/m4/gnulib-cache.m4: Likewise.
662 2014-11-21 Yao Qi <yao@codesourcery.com>
664 * gdb_wchar.h: Include wchar.h and wctype.h.
665 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
666 include wchar.h and wctype.h.
667 Don't check HAVE_WCHAR_H.
669 2014-11-21 Yao Qi <yao@codesourcery.com>
671 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
673 * gnulib/import/Makefile.am: Re-generated.
674 * gnulib/import/Makefile.in: Likewise.
675 * gnulib/import/m4/gnulib-cache.m4: Likewise.
677 2014-11-21 Yao Qi <yao@codesourcery.com>
679 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
681 * gnulib/import/Makefile.am: Re-generated.
682 * gnulib/import/Makefile.in: Likewise.
683 * gnulib/import/m4/gnulib-cache.m4: Likewise.
685 2014-11-21 Yao Qi <yao@codesourcery.com>
687 * common/common-defs.h: Include alloca.h
688 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
689 * configure: Re-generated.
690 * defs.h: Remove code handling alloca.
691 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
694 2014-11-21 Yao Qi <yao@codesourcery.com>
696 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
698 * gnulib/import/Makefile.am: Re-generated.
699 * gnulib/import/Makefile.in: Likewise..
700 * gnulib/import/m4/gnulib-cache.m4: Likewise.
702 2014-11-21 Yao Qi <yao@codesourcery.com>
704 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
707 2014-11-21 Joel Brobecker <brobecker@adacore.com>
709 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
710 flag_unsigned if HIGH_BOUND is constant and negative.
712 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
715 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
716 modifier from "struct gdbarch" when compiling without Expat (XML)
718 (get_syscall_by_number): Likewise.
719 (get_syscall_by_name): Likewise.
720 (get_syscall_names): Likewise.
722 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
725 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
726 set_xml_syscall_file_name to provide gdbarch.
727 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
728 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
729 * breakpoint.c (print_it_catch_syscall): Adjust call to
730 get_syscall_by_number to provide gdbarch.
731 (print_one_catch_syscall): Likewise.
732 (print_mention_catch_syscall): Likewise.
733 (print_recreate_catch_syscall): Likewise.
734 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
735 and get_syscall_by_name to provide gdbarch.
736 (catch_syscall_completer): Adjust call to get_syscall_names to
738 * gdbarch.c: Regenerate.
739 * gdbarch.h: Likewise.
740 * gdbarch.sh: Forward declare "struct syscalls_info".
741 (xml_syscall_file): New variable.
742 (syscalls_info): Likewise.
743 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
744 set_xml_syscall_file_name to provide gdbarch.
745 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
746 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
747 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
748 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
749 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
750 * xml-syscall.c: Include gdbarch.h.
751 (set_xml_syscall_file_name): Accept gdbarch parameter.
752 (get_syscall_by_number): Likewise.
753 (get_syscall_by_name): Likewise.
754 (get_syscall_names): Likewise.
755 (my_gdb_datadir): Delete global variable.
756 (struct syscalls_info) <my_gdb_datadir>: New variable.
757 (struct syscalls_info) <sysinfo>: Rename variable to
759 (sysinfo): Delete global variable.
760 (have_initialized_sysinfo): Likewise.
761 (xml_syscall_file): Likewise.
762 (sysinfo_free_syscalls_desc): Rename to...
763 (syscalls_info_free_syscalls_desc): ... this.
764 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
765 code to the new layout of "struct syscalls_info".
766 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
768 (syscall_create_syscall_desc): Likewise.
769 (syscall_start_syscall): Likewise.
770 (syscall_parse_xml): Likewise.
771 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
772 (init_sysinfo): Rename to...
773 (init_syscalls_info): ...this. Add gdbarch as a parameter.
774 Adjust function to deal with gdbarch.
775 (xml_get_syscall_number): Delete parameter sysinfo. Accept
776 gdbarch as a parameter. Adjust code.
777 (xml_get_syscall_name): Likewise.
778 (xml_list_of_syscalls): Likewise.
779 (set_xml_syscall_file_name): Accept gdbarch as parameter.
780 (get_syscall_by_number): Likewise.
781 (get_syscall_by_name): Likewise.
782 (get_syscall_names): Likewise.
783 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
784 (get_syscall_by_number): Likewise.
785 (get_syscall_by_name): Likewise.
786 (get_syscall_names): Likewise.
788 2014-11-20 Doug Evans <xdje42@gmail.com>
790 Split struct symtab into two: struct symtab and compunit_symtab.
791 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
792 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
793 to "struct compunit_symtab *". All callers updated.
794 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
795 "struct symtab *" argument to "struct compunit_symtab *".
797 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
798 result to "struct compunit_symtab *". All callers updated.
799 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
800 Change result to "struct compunit_symtab *". All callers updated.
801 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
802 hange type to "struct compunit_symtab *". All uses updated.
803 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
804 Change type to "struct compunit_symtab *". All uses updated.
805 * buildsym.c (struct buildsym_compunit): New struct.
806 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
807 (buildsym_compunit): New static global.
808 (finish_block_internal): Update to fetch objfile from
810 (make_blockvector): Delete objfile argument.
811 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
812 debugformat, producer.
813 (start_buildsym_compunit): New function.
814 (free_buildsym_compunit): Renamed from free_subfiles_list.
816 (patch_subfile_names): Rewrite to use buildsym_compunit.
817 (get_compunit_symtab): New function.
818 (get_macro_table): Delete argument comp_dir. All callers updated.
819 (start_symtab): Change result to "struct compunit_symtab *".
820 All callers updated. Create the subfile of the main source file.
821 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
822 (reset_symtab_globals): Update.
823 (end_symtab_get_static_block): Update to use buildsym_compunit.
824 (end_symtab_without_blockvector): Rewrite.
825 (end_symtab_with_blockvector): Change result to
826 "struct compunit_symtab *". All callers updated.
827 Update to use buildsym_compunit. Don't set symtab->dirname,
828 instead set it in the compunit.
829 Explicitly make sure main symtab is first in its list.
830 Set debugformat, producer, blockvector, block_line_section, and
831 macrotable in the compunit.
832 (end_symtab_from_static_block): Change result to
833 "struct compunit_symtab *". All callers updated.
834 (end_symtab, end_expandable_symtab): Ditto.
835 (set_missing_symtab): Change symtab argument to
836 "struct compunit_symtab *". All callers updated.
837 (augment_type_symtab): Ditto.
838 (record_debugformat): Update to use buildsym_compunit.
839 (record_producer): Update to use buildsym_compunit.
840 * buildsym.h (struct subfile) <dirname>: Delete.
841 <producer, debugformat>: Delete.
842 <buildsym_compunit>: New member.
843 (get_compunit_symtab): Declare.
844 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
845 from primary_symtab. Change type to "struct compunit_symtab *".
847 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
849 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
850 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
851 symtab. Change type to "struct compunit_symtab *". All uses updated.
852 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
854 (dw2_find_last_source_symtab): Ditto.
855 (dw2_lookup_symbol): Ditto.
856 (recursively_find_pc_sect_compunit_symtab): Renamed from
857 recursively_find_pc_sect_symtab. Change result to
858 "struct compunit_symtab *". All callers updated.
859 (dw2_find_pc_sect_compunit_symtab): Renamed from
860 dw2_find_pc_sect_symtab. Change result to
861 "struct compunit_symtab *". All callers updated.
862 (get_compunit_symtab): Renamed from get_symtab. Change result to
863 "struct compunit_symtab *". All callers updated.
864 (recursively_compute_inclusions): Change type of immediate_parent
865 argument to "struct compunit_symtab *". All callers updated.
866 (compute_compunit_symtab_includes): Renamed from
867 compute_symtab_includes. All callers updated. Rewrite to compute
868 includes of compunit_symtabs and not symtabs.
869 (process_full_comp_unit): Update to work with struct compunit_symtab.
870 (process_full_type_unit): Ditto.
871 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
872 (dwarf_decode_lines): Remove special case handling of main subfile.
873 (macro_start_file): Delete argument comp_dir. All callers updated.
874 (dwarf_decode_macro_bytes): Ditto.
875 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
876 use struct compunit_symtab.
877 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
878 * jit.c (finalize_symtab): Build compunit_symtab.
879 * jv-lang.c (get_java_class_symtab): Change result to
880 "struct compunit_symtab *". All callers updated.
881 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
882 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
883 comp_dir. Change type to "struct compunit_symtab *".
885 (new_macro_table): Change comp_dir argument to cust,
886 "struct compunit_symtab *". All callers updated.
887 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
888 nr_primary_symtabs. All uses updated.
889 (count_symtabs_and_blocks): Update to handle compunits.
890 (report_command_stats): Update output, "primary symtabs" renamed to
892 * mdebugread.c (new_symtab): Change result to
893 "struct compunit_symtab *". All callers updated.
894 (parse_procedure): Change type of search_symtab argument to
895 "struct compunit_symtab *". All callers updated.
896 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
898 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
899 symtabs. Change type to "struct compunit_symtab *". All uses updated.
900 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
902 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
904 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
905 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
906 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
907 symtab. Change type to "struct compunit_symtab *". All uses updated.
908 * psymtab.c (psymtab_to_symtab): Change result type to
909 "struct compunit_symtab *". All callers updated.
910 (find_pc_sect_compunit_symtab_from_partial): Renamed from
911 find_pc_sect_symtab_from_partial. Change result type to
912 "struct compunit_symtab *". All callers updated.
913 (lookup_symbol_aux_psymtabs): Change result type to
914 "struct compunit_symtab *". All callers updated.
915 (find_last_source_symtab_from_partial): Ditto.
916 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
917 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
918 and macro_table from compunit.
919 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
920 type to "struct compunit_symtab *". All callers updated.
921 (debug_qf_lookup_symbol): Ditto.
922 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
923 debug_qf_find_pc_sect_symtab, change result type to
924 "struct compunit_symtab *". All callers updated.
925 * symfile.c (allocate_symtab): Delete objfile argument.
927 (allocate_compunit_symtab): New function.
928 (add_compunit_symtab_to_objfile): New function.
929 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
930 Change result type to "struct compunit_symtab *". All uses updated.
931 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
932 Change result type to "struct compunit_symtab *". All uses updated.
933 * symmisc.c (print_objfile_statistics): Compute blockvector count in
935 (dump_symtab_1): Update test for primary source symtab.
936 (maintenance_info_symtabs): Update to handle compunit symtabs.
937 (maintenance_check_symtabs): Ditto.
938 * symtab.c (set_primary_symtab): Delete.
939 (compunit_primary_filetab): New function.
940 (compunit_language): New function.
941 (iterate_over_some_symtabs): Change type of arguments "first",
942 "after_last" to "struct compunit_symtab *". All callers updated.
943 Update to loop over symtabs in each compunit.
944 (error_in_psymtab_expansion): Rename symtab argument to cust,
945 and change type to "struct compunit_symtab *". All callers updated.
946 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
947 Change result type to "struct compunit_symtab *". All callers updated.
948 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
949 Change result type to "struct compunit_symtab *". All callers updated.
950 (find_pc_sect_line): Only loop over symtabs within selected compunit
951 instead of all symtabs in the objfile.
952 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
953 <compunit_symtab> New member.
954 <block_line_section>: Moved to compunit_symtab.
955 <locations_valid>: Ditto.
956 <epilogue_unwind_valid>: Ditto.
957 <macro_table>: Ditto.
959 <debugformat>: Ditto.
962 <call_site_htab>: Ditto.
966 (SYMTAB_COMPUNIT): New macro.
967 (SYMTAB_BLOCKVECTOR): Update definition.
968 (SYMTAB_OBJFILE): Update definition.
969 (SYMTAB_DIRNAME): Update definition.
970 (struct compunit_symtab): New type. Common members among all source
971 symtabs within a compilation unit moved here. All uses updated.
972 (COMPUNIT_OBJFILE): New macro.
973 (COMPUNIT_FILETABS): New macro.
974 (COMPUNIT_DEBUGFORMAT): New macro.
975 (COMPUNIT_PRODUCER): New macro.
976 (COMPUNIT_DIRNAME): New macro.
977 (COMPUNIT_BLOCKVECTOR): New macro.
978 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
979 (COMPUNIT_LOCATIONS_VALID): New macro.
980 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
981 (COMPUNIT_CALL_SITE_HTAB): New macro.
982 (COMPUNIT_MACRO_TABLE): New macro.
983 (ALL_COMPUNIT_FILETABS): New macro.
984 (compunit_symtab_ptr): New typedef.
985 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
987 2014-11-20 Joel Brobecker <brobecker@adacore.com>
989 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
990 if the TYPE_CODE of range_type's base type does not match
991 the TYPE_CODE of encoding_type's base type.
993 2014-11-19 Joel Brobecker <brobecker@adacore.com>
995 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
998 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1000 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1001 (ada_is_redundant_index_type_desc): New function.
1002 (to_fixed_array_type): Ignore parallel XA type if redundant.
1004 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1006 * ada-lang.c (constrained_packed_array_type): Set the length
1007 of the return array as if both bounds where zero if that
1008 returned array's index type is dynamic.
1010 2014-11-19 Yao Qi <yao@codesourcery.com>
1012 * config/i386/go32.mh (CC): Remove.
1014 2014-11-18 Doug Evans <xdje42@gmail.com>
1016 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1019 2014-11-18 Doug Evans <xdje42@gmail.com>
1021 * buildsym.c (buildsym_objfile): New static global.
1022 (buildsym_comp_dir): New static global.
1023 (finish_block_internal): Delete arg objfile. All callers updated.
1024 (finish_block): Delete arg objfile. All callers updated.
1025 (start_subfile): Delete arg dirname. All callers updated.
1026 (patch_subfile_names): Update buildsym_comp_dir.
1027 (get_macro_table): Delete arg objfile. All callers updated.
1028 (start_symtab): New arg objfile. All callers updated.
1029 Rename arg dirname to comp_dir.
1030 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1031 (end_symtab_get_static_block): Delete arg objfile. All callers
1033 (end_symtab_without_blockvector): Ditto.
1034 (end_symtab_with_blockvector): Ditto.
1035 (end_symtab_from_static_block): Ditto.
1036 (end_symtab): Ditto.
1037 (end_expandable_symtab): Ditto.
1038 (augment_type_symtab): Ditto.
1039 * coffread.c (coff_start_symtab): New arg objfile. All callers
1042 2014-11-18 Doug Evans <xdje42@gmail.com>
1044 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1047 2014-11-18 Doug Evans <xdje42@gmail.com>
1049 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1050 symtab.dirname updated to use it.
1052 2014-11-18 Doug Evans <xdje42@gmail.com>
1054 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1055 symtab.objfile updated to use it.
1057 2014-11-18 Doug Evans <xdje42@gmail.com>
1059 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1061 2014-11-18 Doug Evans <xdje42@gmail.com>
1063 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1065 * findvar.c (default_read_var_value): Ditto.
1066 * jv-lang.c (add_class_symtab_symbol): Ditto.
1067 * parse.c (operator_check_standard): Ditto.
1068 * printcmd.c (address_info): Ditto.
1069 * symtab.c (fixup_symbol_section): Ditto.
1070 (skip_prologue_sal): Ditto.
1071 * tracepoint.c (scope_info): Ditto.
1072 * valops.c (find_function_in_inferior): Ditto.
1073 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1074 * python/py-symbol.c (set_symbol): Ditto.
1076 2014-11-18 Doug Evans <xdje42@gmail.com>
1078 * buildsym.c (main_subfile): New static global.
1079 (free_subfiles_list): New function.
1080 (start_symtab): Set main_subfile.
1081 (restart_symtab): Replace init of subfiles, current_subfile with
1082 call to free_subfiles_list.
1083 (watch_main_source_file_lossage): Use main_subfile.
1084 (reset_symtab_globals): Replace init of current_subfile with call
1085 to free_subfiles_list.
1086 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1087 functions, split out from ...
1088 (end_symtab_from_static_block): ... here. Rewrite to call them.
1090 2014-11-18 Doug Evans <xdje42@gmail.com>
1092 The result of symtab expansion is always a primary symtab.
1093 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1094 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1095 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1096 (psymtab_to_symtab): Add comment and assert.
1097 (map_matching_symbols_psymtab): Remove unnecessary test for
1100 2014-11-15 Doug Evans <xdje42@gmail.com>
1103 * symtab.c (find_pc_line_symtab): New function.
1104 * symtab.h (find_pc_line_symtab): Declare.
1105 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1107 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1108 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1109 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1110 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1111 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1112 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1114 2014-11-15 Doug Evans <xdje42@gmail.com>
1116 * symtab.c (expand_symtab_containing_pc): Renamed from
1117 find_pc_sect_symtab_via_partial. All callers updated.
1119 2014-11-15 Yao Qi <yao@codesourcery.com>
1121 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1123 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1125 * common/common-defs.h: Move <stdarg.h> #include ahead of
1128 2014-11-14 Pedro Alves <palves@redhat.com>
1130 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1131 [!PHONY_ICONV] (gdb_iconv): New function.
1132 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1134 2014-11-13 Doug Evans <dje@google.com>
1137 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1138 "(anonymous namespace)".
1140 2014-11-13 Doug Evans <dje@google.com>
1142 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1145 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1147 * NEWS (maint set target-async): Fix typo.
1149 2014-11-12 Pedro Alves <palves@redhat.com>
1151 * infrun.c (enum infwait_states, infwait_state): Delete.
1153 2014-11-12 Pedro Alves <palves@redhat.com>
1155 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1156 Rewrite stepping over a permanent breakpoint.
1157 (thread_still_needs_step_over, proceed): Don't set
1158 stepping_over_breakpoint for permanent breakpoints.
1159 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1160 single-step breakpoints out of the target on hardware step
1162 (process_event_stop_test): If stepping a permanent breakpoint
1163 doesn't hit the step-resume breakpoint, delete the step-resume
1165 (switch_back_to_stepped_thread): Also check if the stepped thread
1166 has advanced already on hardware step targets.
1167 (currently_stepping): Return true if the thread stepped a
1170 2014-11-12 Pedro Alves <palves@redhat.com>
1172 Mark locations as permanent, not the whole breakpoint.
1173 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1174 (mark_breakpoints_out): Don't mark permanent breakpoints as
1176 (breakpoint_init_inferior): Use mark_breakpoints_out.
1177 (breakpoint_here_p): Adjust.
1178 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1179 of permanent breakpoints.
1180 (make_breakpoint_permanent): Mark each location as permanent,
1181 instead of marking the breakpoint.
1182 (add_location_to_breakpoint): If the location is permanent, mark
1183 it as such, and as inserted.
1184 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1185 (bp_location_compare, update_global_location_list): Adjust.
1186 (update_breakpoint_locations): Don't make the breakpoint permanent
1188 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1190 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1191 (struct bp_location) <permanent>: New field.
1192 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1193 reference to bp_permanent.
1195 2014-11-12 Pedro Alves <palves@redhat.com>
1197 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1198 * arch-utils.h (default_skip_permanent_breakpoint): New
1200 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1201 Install default_skip_permanent_breakpoint as default method.
1202 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1203 (i386_gdbarch_init): Don't install it.
1204 * infrun.c (resume): Assume there's always a
1205 gdbarch_skip_permanent_breakpoint implementation.
1206 * gdbarch.h, gdbarch.c: Regenerate.
1208 2014-11-11 Daniel Colascione <dancol@dancol.org>
1210 Warn about cross-PID-namespace debugging.
1211 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1212 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1213 * linux-thread-db.c (check_pid_namespace_match): New function.
1214 (thread_db_inferior_created): Call it.
1216 2014-11-10 Doug Evans <xdje42@gmail.com>
1218 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1219 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1221 2014-11-10 Doug Evans <xdje42@gmail.com>
1223 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1225 2014-11-10 Doug Evans <xdje42@gmail.com>
1228 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1229 (lookup_static_symbol): Move definition to new location and rewrite.
1230 (lookup_symbol_in_objfile): New function.
1231 (lookup_symbol_global_iterator_cb): Call it.
1233 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1235 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1237 2014-11-07 Pedro Alves <palves@redhat.com>
1239 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1240 check if we did a "nexti" inside a prologue.
1241 * symtab.c (in_prologue): Delete function.
1242 * symtab.h (in_prologue): Delete declaration.
1244 2014-11-06 Doug Evans <xdje42@gmail.com>
1246 * symtab.h (lookup_global_symbol): Improve function comment.
1248 2014-11-06 Doug Evans <xdje42@gmail.com>
1250 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1251 All callers updated.
1252 * symtab.h (lookup_global_symbol): Update decl.
1253 (lookup_static_symbol): Move decl to better location.
1255 2014-11-06 Doug Evans <xdje42@gmail.com>
1257 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1259 2014-11-06 Doug Evans <xdje42@gmail.com>
1261 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1262 All callers updated.
1263 (lookup_symbol_in_all_objfiles): Renamed from
1264 lookup_symbol_aux_symtabs. All callers updated.
1265 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1266 All callers updated.
1267 (lookup_symbol_in_objfile_symtabs): Renamed from
1268 lookup_symbol_aux_objfile. All callers updated.
1270 2014-11-06 Doug Evans <xdje42@gmail.com>
1272 * symtab.c (lookup_symbol_in_block): Renamed from
1273 lookup_symbol_aux_block. All callers updated.
1275 2014-11-06 Doug Evans <xdje42@gmail.com>
1277 * symtab.c (lookup_static_symbol): Renamed from
1278 lookup_static_symbol_aux. All callers updated.
1279 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1280 All callers updated.
1282 2014-11-06 Doug Evans <xdje42@gmail.com>
1284 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1285 * block.c (block_lookup_symbol): Use it.
1286 * cp-support.c (make_symbol_overload_list_block): Use it.
1287 * symtab.c (iterate_over_symbols): Use it.
1289 2014-11-06 Doug Evans <xdje42@gmail.com>
1291 * symtab.c (lookup_block_symbol): Moved to ...
1292 * block.c (block_lookup_symbol): ... here and renamed.
1293 All callers updated.
1294 * block.h (block_lookup_symbol): Declare.
1295 * symtab.h (lookup_block_symbol): Delete.
1297 2014-11-06 Doug Evans <xdje42@gmail.com>
1299 * ada-lang.c (ada_make_symbol_completion_list): Use
1300 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1301 * symtab.c (lookup_objfile_from_block): Ditto.
1303 2014-11-06 Doug Evans <xdje42@gmail.com>
1305 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1308 2014-11-06 Doug Evans <xdje42@gmail.com>
1310 * objfiles.c (get_objfile_arch): Constify.
1311 * objfiles.h (get_objfile_arch): Update prototype.
1312 * solib.c (solib_global_lookup): Fetch arch from objfile,
1315 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1317 * nios2-tdep.c (wild_insn): Delete.
1318 (profiler_insn, irqentry_insn): Delete.
1319 (nios2_match_sequence): Delete.
1320 (nios2_analyze_prologue): Update comments. Remove matching
1321 of obsolete profiler_insn and irqentry_insn sequences.
1323 2014-11-05 Alan Modra <amodra@gmail.com>
1325 * charset.c (convert_between_encodings): Shrink obstack using
1327 * minsyms.c (install_minimal_symbols): Likewise.
1328 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1329 to char* before doing pointer arithmetic.
1331 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1333 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1335 2014-11-04 Pedro Alves <palves@redhat.com>
1337 * breakpoint.c (breakpoint_thread_match): Delete function.
1338 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1340 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1343 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1344 the method args also under EVAL_SKIP when evaluating method
1345 calls under EVAL_SKIP.
1347 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1349 * dwarf2loc.c (read_pieced_value): Do big endian
1350 processing only if gdb_regnum is not -1.
1351 (write_pieced_value): Ditto.
1353 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1355 * arm-linux-tdep.c (arm_linux_init_abi): Use
1356 info.byte_order_for_code to choose endianity of breakpoint
1357 instructions snippets.
1359 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1361 * arm-tdep.c (extract_arm_insn): Use
1362 gdbarch_byte_order_for_code to read arm instruction.
1364 2014-11-02 Doug Evans <xdje42@gmail.com>
1366 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1368 2014-11-02 Doug Evans <xdje42@gmail.com>
1370 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1371 main_subfile before returning.
1373 2014-10-31 Doug Evans <xdje42@gmail.com>
1375 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1376 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1378 2014-10-31 Doug Evans <xdje42@gmail.com>
1380 * valops.c (value_cast_pointers): Fix whitespace.
1381 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1384 2014-10-30 Doug Evans <dje@google.com>
1386 * NEWS: Mention ability add attributes to gdb.Objfile and
1387 gdb.Progspace objects.
1388 * python/py-objfile.c (objfile_object): New member dict.
1389 (objfpy_dealloc): Py_XDECREF dict.
1390 (objfpy_initialize): Initialize dict.
1391 (objfile_getset): Add __dict__.
1392 (objfile_object_type): Set tp_dictoffset member.
1393 * python/py-progspace.c (progspace_object): New member dict.
1394 (pspy_dealloc): Py_XDECREF dict.
1395 (pspy_initialize): Initialize dict.
1396 (pspace_getset): Add __dict__.
1397 (pspace_object_type): Set tp_dictoffset member.
1399 2014-10-30 Yao Qi <yao@codesourcery.com>
1401 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1402 replace '\\' with '\\\\'.
1404 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1408 2014-10-29 Pedro Alves <palves@redhat.com>
1411 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1412 instead of assuming a thread with a stepping range is always
1415 2014-10-29 Pedro Alves <palves@redhat.com>
1418 * event-top.c (change_line_handler): Call
1419 gdb_rl_callback_handler_remove instead of
1420 rl_callback_handler_remove.
1421 (callback_handler_installed): New global.
1422 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1423 (gdb_rl_callback_handler_reinstall): New functions.
1424 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1425 gdb_rl_callback_handler_install instead of
1426 rl_callback_handler_remove and rl_callback_handler_install.
1427 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1428 instead of rl_callback_handler_remove.
1429 * event-top.h (gdb_rl_callback_handler_remove)
1430 (gdb_rl_callback_handler_install)
1431 (gdb_rl_callback_handler_reinstall): New declarations.
1432 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1434 (fetch_inferior_event): Install it.
1435 * top.c (gdb_readline_wrapper_line) Call
1436 gdb_rl_callback_handler_remove instead of
1437 rl_callback_handler_remove.
1438 (gdb_readline_wrapper_cleanup): Don't call
1439 rl_callback_handler_install.
1441 2014-10-29 Pedro Alves <palves@redhat.com>
1443 * event-top.c (command_line_handler): Clear the first byte of
1444 linebuffer, when it is first allocated.
1446 2014-10-29 Pedro Alves <palves@redhat.com>
1448 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1451 2014-10-29 Pedro Alves <palves@redhat.com>
1455 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1456 (tui_allowed_p): Delete function.
1457 * tui/tui.c: Include "interps.h".
1458 (tui_enable): Don't use tui_allowed_p. Error out here with
1459 detailed error messages if the TUI is the top level interpreter,
1460 or if output is not a terminal. Use newterm instead of initscr,
1461 and error out if initializing the terminal fails. Also error out if
1462 the terminal doesn't support cursor addressing.
1463 * tui/tui.h (tui_allowed_p): Delete declaration.
1465 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1467 * arm-tdep.c (arm_skip_stack_protector): Return early if
1468 address loaded by first "ldr" instruction does not have
1469 a corresponding minimal symbol. Update comment.
1471 2014-10-29 Yao Qi <yao@codesourcery.com>
1473 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1474 loaded address correctly of ldr instruction.
1476 2014-10-28 Pedro Alves <palves@redhat.com>
1479 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1481 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1482 thread's stepped_breakpoint field. Skip if reverse debugging.
1484 (init_thread_stepping_state, handle_signal_stop): Clear the
1485 thread's stepped_breakpoint field.
1487 2014-10-27 Pedro Alves <palves@redhat.com>
1489 * remote.c (remote_thread_alive): New, factored out from ...
1490 (remote_thread_alive): ... this.
1491 (remote_update_thread_list): Bail out before deleting threads if
1492 the target returned an empty list, and, the current thread has a
1495 2014-10-27 Pedro Alves <palves@redhat.com>
1497 * infrun.c (handle_signal_stop): Also skip handlers when a random
1498 signal arrives while handling a "stepi" or a "nexti". Set the
1499 thread's 'step_after_step_resume_breakpoint' flag.
1501 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1503 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1504 (arm_record_ld_st_imm_offset): Reimplement to cover all
1505 load/store cases for ARM opcode 010.
1506 (arm_record_ld_st_multiple): Reimplement to cover all
1507 load/store cases for ARM opcode 100.
1509 2014-10-26 Doug Evans <xdje42@gmail.com>
1511 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1513 2014-10-26 Doug Evans <xdje42@gmail.com>
1515 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1516 parameter "kind" to "block_index".
1517 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1519 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1521 2014-10-26 Doug Evans <xdje42@gmail.com>
1523 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1525 2014-10-26 Doug Evans <xdje42@gmail.com>
1527 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1530 2014-10-26 Doug Evans <xdje42@gmail.com>
1532 * parser-defs.h (block_found): Move decl from here ...
1533 * symtab.h (block_found): ... to here.
1535 2014-10-26 Doug Evans <xdje42@gmail.com>
1537 * symtab.h (struct field_of_this_result): Fix typo in comment.
1538 (lookup_symbol_in_language): Move function comment here.
1539 (lookup_symbol): Improve function comment.
1540 (basic_lookup_symbol_nonlocal): Ditto.
1541 (lookup_symbol_static, lookup_symbol_global): Ditto.
1542 (lookup_symbol_aux_block): Ditto.
1543 (lookup_language_this): Add function comment.
1544 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1546 (lookup_block_symbol): Improve function comment.
1547 (lookup_struct): Fix capitalization in function comment.
1548 (lookup_transparent_type): Add function comment.
1549 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1550 Improve function comment.
1551 (lookup_objfile_from_block): Add function comment.
1552 * symtab.c (lookup_symbol_in_language): Update function comment.
1553 (lookup_symbol, lookup_language_this): Ditto.
1554 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1555 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1556 (basic_lookup_symbol_nonlocal): Ditto.
1557 (lookup_symbol_static, lookup_symbol_global): Ditto.
1558 (lookup_transparent_type, lookup_block_symbol): Ditto.
1560 2014-10-25 Doug Evans <xdje42@gmail.com>
1562 * symtab.c (types_info): Delete forward decl.
1563 (functions_info, variables_info, sources_info): Ditto.
1564 (_initialize_symtab): Rewrite forward decl to use
1565 initialize_file_ftype.
1567 2014-10-25 Doug Evans <xdje42@gmail.com>
1569 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1571 2014-10-25 Doug Evans <xdje42@gmail.com>
1573 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1574 of local var child_die.
1576 2014-10-24 Don Breazeal <donb@codesourcery.com>
1578 * infrun.c (follow_fork_inferior): Update fork message printing
1579 to use target_terminal_ours_for_output instead of
1580 target_terminal_ours, to use _() for all format strings, to print
1581 "vfork" instead of "fork" for vforks, and to add a detach message.
1582 (handle_vfork_child_exec_or_exit): Update message printing to use
1583 target_terminal_ours_for_output instead of target_terminal_ours, to
1584 use _() for all format strings, and to fix some formatting.
1586 2014-10-24 Pedro Alves <palves@redhat.com>
1588 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1589 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1590 * config/vax/vax.mh: Delete.
1591 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1592 obsolete configurations section.
1593 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1594 * vax-nat.c: Delete file.
1596 2014-10-24 Pedro Alves <palves@redhat.com>
1598 * NEWS (Removed targets): Add OS/arch column.
1600 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1602 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1603 on the arg type of a constructor only if it is of reference type.
1605 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1607 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1608 accessors and constants from nios2 opcodes update.
1609 (nios2_get_next_pc): Likewise.
1611 2014-10-19 Doug Evans <xdje42@gmail.com>
1613 * gdbthread.h (set_running): Fix comment.
1614 (set_executing, finish_thread_state): Fix comment.
1616 2014-10-18 Doug Evans <xdje42@gmail.com>
1618 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1620 2014-10-17 Doug Evans <dje@google.com>
1622 * NEWS: Mention new event gdb.clear_objfiles.
1623 * python/py-event.h (emit_clear_objfiles_event): Clear
1624 * python/py-events.h (events_object): New member clear_objfiles.
1625 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1627 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1628 emit clear_objfiles event.
1629 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1631 (emit_clear_objfiles_event): New function.
1632 (clear_objfiles): New event.
1633 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1635 * python/python.c (_initialize_python): Call
1636 gdbpy_initialize_clear_objfiles_event.
1638 2014-10-17 Doug Evans <dje@google.com>
1640 * NEWS: Mention new gdb.Objfile.progspace attribute.
1641 * python/py-objfile.c (objfpy_get_progspace): New function.
1642 (objfile_getset): New entry for "progspace".
1644 2014-10-17 Pedro Alves <palves@redhat.com>
1647 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1648 returns a copy of the input.
1649 (run_command_1, continue_command, step_1, jump_command)
1650 (signal_command, until_command, advance_command, finish_command)
1651 (attach_command): Adjust and install a cleanup to free the
1654 2014-10-17 Pedro Alves <palves@redhat.com>
1657 * infcmd.c (continue_1): If continuing all threads in the
1658 foreground, make sure the inferior's terminal settings are put in
1661 2014-10-17 Pedro Alves <palves@redhat.com>
1664 * annotate.c (annotate_breakpoints_invalid): Use
1665 target_terminal_our_for_output instead of target_terminal_ours.
1666 Give back the terminal to the target.
1667 (annotate_frames_invalid): Likewise.
1669 2014-10-17 Pedro Alves <palves@redhat.com>
1671 * target.c (enum terminal_state): New enum.
1672 (terminal_state): New global.
1673 (target_terminal_init): New function.
1674 (target_terminal_inferior): Skip if inferior already owns the
1676 (target_terminal_ours, target_terminal_ours_for_output): New
1678 * target.h (target_terminal_init): Convert to function prototype.
1679 (target_terminal_ours_for_output): Convert to function prototype
1681 (target_terminal_ours): Convert to function prototype and tweak
1683 * windows-nat.c (do_initial_windows_stuff): Call
1684 target_terminal_init instead of child_terminal_init_with_pgrp.
1686 2014-10-17 Pedro Alves <palves@redhat.com>
1688 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1689 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1690 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1692 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1693 * ada-lang.h [__alpha__ && __osf__]
1694 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1695 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1696 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1698 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1700 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1701 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1702 * configure: Regenerate.
1703 * configure.ac: Remove references to osf.
1704 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1705 section. Remove all other references to osf.
1706 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1707 Remove all other references to osf.
1708 * dec-thread.c: Delete file.
1709 * defs.h (GDB_OSABI_OSF1): Delete.
1710 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1712 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1713 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1715 (unconditionally_kill_inferior)
1716 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1717 * solib-osf.c: Delete file.
1719 2014-10-17 Pedro Alves <palves@redhat.com>
1721 * remote.c (clear_threads_listing_context): Move higher up, out of
1722 the HAVE_LIBEXPAT guard.
1724 2014-10-16 Tristan Gingold <gingold@adacore.com>
1726 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1727 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1730 2014-10-15 Pedro Alves <palves@redhat.com>
1732 * dec-thread.c (dec_thread_count_gdb_threads)
1733 (dec_thread_add_gdb_thread): Delete.
1734 (dec_thread_update_thread_list): Delete.
1735 (dec_thread_find_new_threads): Rename to ...
1736 (dec_thread_update_thread_list): ... this. Delete GDB-size
1737 threads that are no longer found in dec_thread_list.
1738 (resync_thread_list): Delete.
1739 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1742 2014-10-15 Pedro Alves <palves@redhat.com>
1744 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1745 * remote.c (remote_update_thread_list): Skip calling prune_threads
1746 if any thread listing method is supported, and instead walk over
1747 the set of remote threads listed, deleting those that are not
1748 found in GDB's thread list.
1750 2014-10-15 Pedro Alves <palves@redhat.com>
1752 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1753 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1754 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1755 (bsd_uthread_target): Adjust.
1756 * corelow.c (core_open): Adjust.
1757 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1758 (dec_thread_update_thread_list): New function.
1759 (init_dec_thread_ops): Adjust.
1760 * gdbthread.h (prune_threads): New declaration.
1761 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1762 (thread_db_update_thread_list): ... this. Call prune_threads.
1763 (init_thread_db_ops): Adjust.
1764 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1765 (procfs_update_thread_list): ... this. Call prune_threads.
1766 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1768 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1769 (obsd_update_thread_list): ... this. Call prune_threads.
1770 (obsd_add_target): Adjust.
1771 * procfs.c (procfs_target): Adjust.
1772 (procfs_notice_thread): Update comment.
1773 (procfs_find_new_threads): Rename to ...
1774 (procfs_update_thread_list): ... this. Call prune_threads.
1775 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1777 (ravenscar_wait): Adjust.
1778 (ravenscar_find_new_threads): Rename to ...
1779 (ravenscar_update_thread_list): ... this. Call prune_threads.
1780 (init_ravenscar_thread_ops): Adjust.
1781 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1782 (record_btrace_update_thread_list): ... this. Adjust comment.
1783 (init_record_btrace_ops): Adjust.
1784 * remote.c (remote_threads_info): Rename to ...
1785 (remote_update_thread_list): ... this. Call prune_threads.
1786 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1788 * sol-thread.c (check_for_thread_db): Adjust.
1789 (sol_find_new_threads_callback): Rename to ...
1790 (sol_update_thread_list_callback): ... this.
1791 (sol_find_new_threads): Rename to ...
1792 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1793 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1794 * target-delegates.c: Regenerate.
1795 * target.c (target_find_new_threads): Rename to ...
1796 (target_update_thread_list): ... this.
1797 * target.h (struct target_ops): Rename to_find_new_threads field
1798 to to_update_thread_list.
1799 (target_find_new_threads): Rename to ...
1800 (target_update_thread_list): ... this.
1801 * thread.c (prune_threads): Make extern.
1802 (update_thread_list): Adjust.
1804 2014-10-15 Pedro Alves <palves@redhat.com>
1806 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1807 Add describing comment. Return -1 if the qL packet is not
1809 (struct thread_item, thread_item_t): Move higher up in
1810 the file. Add comments.
1811 (struct threads_parsing_context): Move higher up in
1812 the file, add comments, and remote to ...
1813 (struct threads_listing_context): ... this.
1814 (remote_newthread_step): Don't add the thread to GDB's thread
1815 database here. Instead push it to the thread_listing_context
1817 (remote_find_new_threads): Rename to ...
1818 (remote_get_threads_with_ql): ... this. Add target_ops and
1819 targets_listing_context parameters. Pass down context.
1820 (start_thread): Adjust.
1821 (clear_threads_parsing_context): Rename to ...
1822 (clear_threads_listing_context): ... this.
1823 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1824 remote_threads_info.
1825 (remote_get_threads_with_qthreadinfo): Ditto.
1826 (remote_threads_info): Reimplement.
1828 2014-10-15 Pedro Alves <palves@redhat.com>
1830 * infrun.c (resume): Don't force displaced-stepping for all
1831 single-steps on software single-stepping archs.
1833 2014-10-15 Pedro Alves <palves@redhat.com>
1835 * breakpoint.c (single_step_breakpoints): Delete global.
1836 (insert_single_step_breakpoint): Adjust to store the breakpoint
1837 pointer in the current thread.
1838 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1839 (cancel_single_step_breakpoints): Delete functions.
1840 (breakpoint_has_location_inserted_here): Make extern.
1841 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1843 * breakpoint.h (breakpoint_has_location_inserted_here): New
1845 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1846 (cancel_single_step_breakpoints): Remove declarations.
1847 * gdbthread.h (struct thread_control_state)
1848 <single_step_breakpoints>: New field.
1849 (delete_single_step_breakpoints)
1850 (thread_has_single_step_breakpoints_set)
1851 (thread_has_single_step_breakpoint_here): New declarations.
1852 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1853 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1854 (singlestep_pc): Delete globals.
1855 (infrun_thread_ptid_changed): Remove references to removed
1857 (resume_cleanups): Delete the current thread's single-step
1859 (maybe_software_singlestep): Remove references to removed globals.
1860 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1861 delete_single_step_breakpoints.
1862 (init_wait_for_inferior): Remove references to removed globals.
1863 (delete_thread_infrun_breakpoints): Delete the thread's
1864 single-step breakpoints too.
1865 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1866 single-step breakpoints here.
1867 (delete_stopped_threads_single_step_breakpoints): New function.
1868 (adjust_pc_after_break): Adjust to use
1869 thread_has_single_step_breakpoints_set.
1870 (handle_inferior_event): Remove references to removed globals.
1871 Use delete_stopped_threads_single_step_breakpoints.
1872 (handle_signal_stop): Adjust to per-thread single-step
1873 breakpoints. Swap test order to do cheaper tests first.
1874 (switch_back_to_stepped_thread): Extend debug output. Remove
1875 references to removed globals.
1876 * record-full.c (record_full_wait_1): Adjust to per-thread
1877 single-step breakpoints.
1878 * thread.c (delete_single_step_breakpoints)
1879 (thread_has_single_step_breakpoints_set)
1880 (thread_has_single_step_breakpoint_here): New functions.
1881 (clear_thread_inferior_resources): Also delete the thread's
1882 single-step breakpoints.
1884 2014-10-15 Pedro Alves <palves@redhat.com>
1886 * thread.c (delete_thread_breakpoint): New function.
1887 (delete_step_resume_breakpoint)
1888 (delete_exception_resume_breakpoint): Use it.
1889 (delete_at_next_stop): New function.
1890 (clear_thread_inferior_resources): Use delete_at_next_stop.
1892 2014-10-15 Pedro Alves <palves@redhat.com>
1894 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1895 (breakpoint_inserted_here_p): ... here. Remove special case for
1896 software single-step breakpoints.
1897 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1898 (software_breakpoint_inserted_here_p): ... here. Remove special
1899 case for software single-step breakpoints.
1900 (bp_target_info_copy_insertion_state)
1901 (deprecated_insert_raw_breakpoint)
1902 (deprecated_remove_raw_breakpoint): Delete functions.
1903 * breakpoint.h (deprecated_insert_raw_breakpoint)
1904 (deprecated_remove_raw_breakpoint): Remove declarations.
1906 2014-10-15 Pedro Alves <palves@redhat.com>
1909 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1910 Delete array globals.
1911 (single_step_breakpoints): New global.
1912 (breakpoint_xfer_memory): Remove special handling for single-step
1914 (update_breakpoints_after_exec): Delete bp_single_step
1916 (detach_breakpoints): Remove special handling for single-step
1918 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1919 (bpstat_stop_status): Add comment.
1920 (bpstat_what, bptype_string, print_one_breakpoint_location)
1921 (adjust_breakpoint_address, init_bp_location): Handle
1923 (new_single_step_breakpoint): New function.
1924 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1925 handling for single-step breakpoints.
1926 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1927 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1929 (detach_single_step_breakpoints, find_single_step_breakpoint):
1931 (breakpoint_has_location_inserted_here): New function.
1932 (single_step_breakpoint_inserted_here_p): Rewrite.
1933 * breakpoint.h: Remove FIXME.
1934 (enum bptype) <bp_single_step>: New enum value.
1935 (insert_single_step_breakpoint): Update comment.
1936 * infrun.c (resume_cleanups)
1937 (delete_step_thread_step_resume_breakpoint): Remove single-step
1939 (fetch_inferior_event): Install a cleanup that removes infrun
1941 (switch_back_to_stepped_thread) <expect thread advanced also>:
1942 Clear step-over info.
1944 2014-10-15 Pedro Alves <palves@redhat.com>
1946 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1947 (delete_thread_infrun_breakpoints): New function, with parts
1948 salvaged from delete_step_resume_breakpoint_callback.
1949 (delete_step_thread_step_resume_breakpoint): Delete.
1950 (for_each_just_stopped_thread_callback_func): New typedef.
1951 (for_each_just_stopped_thread): New function.
1952 (delete_just_stopped_threads_infrun_breakpoints): New function.
1953 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1954 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1956 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1958 2014-10-15 Pedro Alves <palves@redhat.com>
1960 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1961 trying to step past a non-steppable watchpoint.
1962 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1964 * infrun.c (struct step_over_info): Add new field
1965 'nonsteppable_watchpoint_p' and adjust comments.
1966 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1968 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1969 (stepping_past_nonsteppable_watchpoint): New function.
1970 (step_over_info_valid_p): Also return true if stepping past a
1971 nonsteppable watchpoint.
1972 (proceed): Adjust call to set_step_over_info. Remove reference to
1974 (init_wait_for_inferior): Remove reference to init_infwait_state.
1975 (waiton_ptid): Delete global.
1976 (struct execution_control_state)
1977 <stepped_after_stopped_by_watchpoint>: Delete field.
1978 (wait_for_inferior, fetch_inferior_event): Always pass
1979 minus_one_ptid to target_wait.
1980 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1982 (init_infwait_state): Delete function.
1983 (handle_inferior_event): Remove infwait_state handling.
1984 (handle_signal_stop) <watchpoints handling>: Adjust after
1985 stepped_after_stopped_by_watchpoint removal. Don't remove
1986 breakpoints here nor set infwait_state. Set the thread's
1987 stepping_over_watchpoint flag, and call keep_going instead.
1988 (keep_going): Handle stepping_over_watchpoint. Adjust
1989 set_step_over_info calls.
1990 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1993 2014-10-15 Pedro Alves <palves@redhat.com>
1995 * infrun.c (step_over_info_valid_p): New function.
1996 (resume): Use step_over_info_valid_p instead of checking the
1997 threads's trap_expected flag.
1999 2014-10-15 Doug Evans <dje@google.com>
2000 Walfred Tedeschi <walfred.tedeschi@intel.com>
2003 * python/lib/gdb/__init__.py (packages): Add "printer".
2004 * python/lib/gdb/command/bound_registers.py: Moved to ...
2005 * python/lib/gdb/printer/bound_registers.py: ... here.
2006 Add printer to global set of builtin printers. Rename printer from
2007 "bound" to "mpx_bound128".
2008 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2009 registered as global "builtin" printer.
2010 (add_builtin_pretty_printer): New function.
2011 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2012 gdb/printer/__init__.py.
2014 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2016 * Makefile.in (SFILES): Remove d-support.c.
2017 (COMMON_OBS): Remove d-support.o.
2018 * d-lang.h (d_parse_symbol): Remove declaration.
2019 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2020 * d-support.c: Remove file.
2022 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2024 * gdb/infrun.c (process_event_stop_test): Apply
2025 gdbarch_addr_bits_remove to longjmp resume address.
2027 2014-10-15 Pedro Alves <palves@redhat.com>
2029 * regformats/microblaze.dat: Delete file.
2031 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2033 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2034 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2036 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2038 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2041 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2045 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2046 with qualified args.
2048 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2050 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2051 of the case where the second operand is a pointer.
2052 <BINOP_SUB>: Likewise.
2054 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2056 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2057 only if it is not NULL.
2058 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2059 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2060 (struct probe_ops) <clear_semaphore>: Likewise.
2061 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2063 (stop_tracing): Likewise, for clear_semaphore.
2065 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2067 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2068 using language_c, instead of current_language.
2070 2014-10-13 Doug Evans <dje@google.com>
2072 * python/py-objfile.c (objfpy_initialize): New function.
2073 (objfpy_new, objfile_to_objfile_object): Call it.
2074 * python/py-progspace.c (pspy_initialize): New function.
2075 (pspy_new, pspace_to_pspace_object): Call it.
2077 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2078 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 Fix "save breakpoints" for "catch" command.
2081 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2084 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2086 Fix "save breakpoints" for "disable $bpnum" command.
2087 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2089 2014-10-10 Pedro Alves <palves@redhat.com>
2091 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2092 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2093 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2094 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2096 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2097 * configure.ac: Remove references to IRIX.
2098 * configure.host: Add *-*-irix* to the obsolete hosts section.
2099 Remove all other references to irix.
2100 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2103 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2105 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2106 isn't valid, release the tdesc arch data and return NULL.
2108 2014-10-10 Pedro Alves <palves@redhat.com>
2110 * linux-tdep.c: Include observer.h.
2111 (linux_inferior_data): New global.
2112 (struct linux_info): New structure.
2113 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2114 (get_linux_inferior_data): New functions.
2115 (linux_vsyscall_range): Rename to ...
2116 (linux_vsyscall_range_raw): ... this.
2117 (linux_vsyscall_range): New function; handles caching.
2118 (_initialize_linux_tdep): Register linux_inferior_data. Install
2119 inferior_exit and inferior_appeared observers.
2121 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Pedro Alves <palves@redhat.com>
2125 * solib-svr4.c (svr4_read_so_list): Rename to ...
2126 (svr4_current_sos_1): ... this and change the function comment.
2127 (svr4_current_sos): New function.
2129 2014-10-10 Pedro Alves <palves@redhat.com>
2131 * arch-utils.c (default_vsyscall_range): New function.
2132 * arch-utils.h (default_vsyscall_range): New declaration.
2133 * gdbarch.sh (vsyscall_range): New hook.
2134 * gdbarch.h, gdbarch.c: Regenerate.
2135 * linux-tdep.c (linux_vsyscall_range): New function.
2136 (linux_init_abi): Install linux_vsyscall_range as
2137 vsyscall_range gdbarch hook.
2138 * memrange.c (address_in_mem_range): New function.
2139 * memrange.h (address_in_mem_range): New declaration.
2140 * symfile-mem.c (find_vdso_size): Delete function.
2141 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2143 2014-10-10 Pedro Alves <palves@redhat.com>
2145 * infrun.c (normal_stop): Fix typo in comment.
2147 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2150 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2151 typo when using logical AND to determine instruction type.
2153 2014-10-09 Yao Qi <yao@codesourcery.com>
2155 * infrun.c (handle_signal_stop): Remove local variable
2158 2014-10-08 Stan Shebs <stan@codesourcery.com>
2160 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2162 2014-10-08 Gary Benson <gbenson@redhat.com>
2164 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2166 2014-10-08 Gary Benson <gbenson@redhat.com>
2168 * common/common-defs.h: Include common-exceptions.h.
2169 * exceptions.h: Do not include common-exceptions.h.
2171 2014-10-08 Gary Benson <gbenson@redhat.com>
2173 * common/common-defs.h: Include cleanups.h.
2174 * common/common-exceptions.c: Do not include cleanups.h.
2175 * utils.h: Likewise.
2177 2014-10-08 Gary Benson <gbenson@redhat.com>
2179 * ada-lang.c: Do not include exceptions.h.
2180 * ada-valprint.c: Likewise.
2181 * amd64-tdep.c: Likewise.
2182 * auto-load.c: Likewise.
2183 * block.c: Likewise.
2184 * break-catch-throw.c: Likewise.
2185 * breakpoint.c: Likewise.
2186 * btrace.c: Likewise.
2187 * c-lang.c: Likewise.
2188 * cli/cli-cmds.c: Likewise.
2189 * cli/cli-interp.c: Likewise.
2190 * cli/cli-script.c: Likewise.
2191 * completer.c: Likewise.
2192 * corefile.c: Likewise.
2193 * corelow.c: Likewise.
2194 * cp-abi.c: Likewise.
2195 * cp-support.c: Likewise.
2196 * cp-valprint.c: Likewise.
2197 * darwin-nat.c: Likewise.
2198 * dwarf2-frame-tailcall.c: Likewise.
2199 * dwarf2-frame.c: Likewise.
2200 * dwarf2loc.c: Likewise.
2201 * dwarf2read.c: Likewise.
2203 * event-loop.c: Likewise.
2204 * event-top.c: Likewise.
2205 * f-valprint.c: Likewise.
2206 * frame-unwind.c: Likewise.
2207 * frame.c: Likewise.
2208 * gdbtypes.c: Likewise.
2209 * gnu-v2-abi.c: Likewise.
2210 * gnu-v3-abi.c: Likewise.
2211 * guile/scm-auto-load.c: Likewise.
2212 * guile/scm-breakpoint.c: Likewise.
2213 * guile/scm-cmd.c: Likewise.
2214 * guile/scm-frame.c: Likewise.
2215 * guile/scm-lazy-string.c: Likewise.
2216 * guile/scm-param.c: Likewise.
2217 * guile/scm-symbol.c: Likewise.
2218 * guile/scm-type.c: Likewise.
2219 * hppa-hpux-tdep.c: Likewise.
2220 * i386-tdep.c: Likewise.
2221 * inf-loop.c: Likewise.
2222 * infcall.c: Likewise.
2223 * infcmd.c: Likewise.
2224 * infrun.c: Likewise.
2225 * interps.c: Likewise.
2226 * interps.h: Likewise.
2228 * linespec.c: Likewise.
2229 * linux-nat.c: Likewise.
2230 * linux-thread-db.c: Likewise.
2231 * m32r-rom.c: Likewise.
2233 * memory-map.c: Likewise.
2234 * mi/mi-cmd-break.c: Likewise.
2235 * mi/mi-cmd-stack.c: Likewise.
2236 * mi/mi-interp.c: Likewise.
2237 * mi/mi-main.c: Likewise.
2238 * monitor.c: Likewise.
2239 * nto-procfs.c: Likewise.
2240 * objc-lang.c: Likewise.
2241 * p-valprint.c: Likewise.
2242 * parse.c: Likewise.
2243 * ppc-linux-tdep.c: Likewise.
2244 * printcmd.c: Likewise.
2245 * probe.c: Likewise.
2246 * python/py-auto-load.c: Likewise.
2247 * python/py-breakpoint.c: Likewise.
2248 * python/py-cmd.c: Likewise.
2249 * python/py-finishbreakpoint.c: Likewise.
2250 * python/py-frame.c: Likewise.
2251 * python/py-framefilter.c: Likewise.
2252 * python/py-function.c: Likewise.
2253 * python/py-gdb-readline.c: Likewise.
2254 * python/py-inferior.c: Likewise.
2255 * python/py-infthread.c: Likewise.
2256 * python/py-lazy-string.c: Likewise.
2257 * python/py-linetable.c: Likewise.
2258 * python/py-param.c: Likewise.
2259 * python/py-prettyprint.c: Likewise.
2260 * python/py-symbol.c: Likewise.
2261 * python/py-type.c: Likewise.
2262 * python/py-value.c: Likewise.
2263 * python/python-internal.h: Likewise.
2264 * python/python.c: Likewise.
2265 * record-btrace.c: Likewise.
2266 * record-full.c: Likewise.
2267 * regcache.c: Likewise.
2268 * remote-fileio.c: Likewise.
2269 * remote-mips.c: Likewise.
2270 * remote.c: Likewise.
2271 * rs6000-aix-tdep.c: Likewise.
2272 * rs6000-nat.c: Likewise.
2274 * solib-darwin.c: Likewise.
2275 * solib-dsbt.c: Likewise.
2276 * solib-frv.c: Likewise.
2277 * solib-ia64-hpux.c: Likewise.
2278 * solib-spu.c: Likewise.
2279 * solib-svr4.c: Likewise.
2280 * solib.c: Likewise.
2281 * spu-tdep.c: Likewise.
2282 * stack.c: Likewise.
2283 * stap-probe.c: Likewise.
2284 * symfile-mem.c: Likewise.
2285 * symmisc.c: Likewise.
2286 * target.c: Likewise.
2287 * thread.c: Likewise.
2289 * tracepoint.c: Likewise.
2290 * tui/tui-interp.c: Likewise.
2291 * typeprint.c: Likewise.
2292 * utils.c: Likewise.
2293 * valarith.c: Likewise.
2294 * valops.c: Likewise.
2295 * valprint.c: Likewise.
2296 * value.c: Likewise.
2297 * varobj.c: Likewise.
2298 * windows-nat.c: Likewise.
2299 * xml-support.c: Likewise.
2301 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2303 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2305 (extended_mips16_next_pc): Update accordingly.
2307 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2309 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2311 (micromips_instruction_is_compact_branch): Likewise.
2312 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2313 or a compact jump, reaching a jump delay slot, or seeing a
2314 second non-prologue instruction.
2315 (micromips_scan_prologue): Also terminate scanning upon seeing a
2316 compact branch or jump, or reaching a branch or jump delay slot.
2317 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2318 or jump delay slot, or seeing a second non-prologue instruction.
2319 (mips32_instruction_has_delay_slot): Retain instruction
2320 examination code only, update arguments accordingly and move
2321 instruction fetch pieces to...
2322 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2323 (micromips_instruction_has_delay_slot): Likewise and to...
2324 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2325 (mips16_instruction_has_delay_slot): Likewise and to...
2326 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2327 (mips_single_step_through_delay): Update accordingly.
2328 (mips_adjust_breakpoint_address): Likewise.
2330 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2332 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2333 !mustbe32 also return 1 for 32-bit instructions.
2334 (mips16_instruction_has_delay_slot): Likewise. Add an
2335 explanatory comment.
2337 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2339 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2342 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2344 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2346 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2347 for the breakpoint's address. Don't preinitialize `placed_size'.
2348 (insert_bp_location): Set `reqstd_address' rather than
2350 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2351 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2353 (bkpt_remove_location): Likewise.
2354 (deprecated_insert_raw_breakpoint): Likewise.
2355 (deprecated_remove_raw_breakpoint): Likewise.
2356 (find_single_step_breakpoint): Likewise.
2357 * mem-break.c (default_memory_insert_breakpoint): Use
2358 `reqstd_address' for the breakpoint's address. Don't set
2359 `placed_address' or `placed_size' if breakpoint contents couldn't
2360 have been determined.
2361 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2362 the breakpoint's address.
2363 (remote_insert_hw_breakpoint): Likewise. Don't set
2364 `placed_address' or `placed_size' if breakpoint couldn't have been
2366 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2367 `reqstd_address' for the breakpoint's address.
2368 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2369 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2370 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2371 * microblaze-linux-tdep.c
2372 (microblaze_linux_memory_remove_breakpoint): Likewise.
2373 * monitor.c (monitor_insert_breakpoint): Likewise.
2374 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2375 (procfs_insert_hw_breakpoint): Likewise.
2376 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2377 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2378 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2379 * remote-mips.c (mips_insert_breakpoint): Likewise.
2380 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2382 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2384 * valops.c (value_assign): Check for bit field assignments
2385 before calling architecture-specific register value
2386 conversion functions.
2388 2014-10-03 Pierre Muller <muller@sourceware.org>
2390 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2392 2014-10-02 Pedro Alves <palves@redhat.com>
2394 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2395 threads_are_executing.
2396 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2398 * gdbthread.h (threads_are_executing): Declare.
2399 (handle_signal_stop) <random signals>: Don't print about the
2400 signal here if stopping.
2401 (end_stepping_range): Don't notify observers here.
2402 (normal_stop): Update the thread list. If stopped by a random
2403 signal or a stepping range ended, notify observers.
2404 * thread.c (threads_executing): New global.
2405 (init_thread_list): Clear 'threads_executing'.
2406 (set_executing): Set or clear 'threads_executing'.
2407 (threads_are_executing): New function.
2408 (update_threads_executing): New function.
2409 (update_thread_list): Use it.
2411 2014-10-02 Pedro Alves <palves@redhat.com>
2413 PR breakpoints/17431
2414 * breakpoint.c (update_breakpoints_after_exec): Don't create
2415 overlay, longjmp, std terminate nor exception breakpoints here.
2417 2014-10-02 Pedro Alves <palves@redhat.com>
2419 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2421 * inferior.c (find_inferior_for_program_space): Give preference to
2422 the current inferior.
2423 * inferior.h (find_inferior_for_program_space): Update comment.
2424 * progspace.c (switch_to_program_space_and_thread): Prefer the
2425 current inferior if it's bound to the program space requested. If
2426 the inferior found doesn't have a PID yet, don't bother looking up
2428 * progspace.h (switch_to_program_space_and_thread): Adjust
2430 * thread.c (any_thread_of_process, any_live_thread_of_process):
2431 Give preference to the current thread.
2433 2014-10-01 Pedro Alves <palves@redhat.com>
2435 * breakpoint.c (insert_bp_location): Error out if inserting a
2436 software breakpoint at a read-only address.
2437 * target.c (memory_xfer_check_region): New function, factored out
2439 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2441 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2442 against the memory region attributes.
2444 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2446 * NEWS: Announce new exit-code field in -list-thread-groups
2448 * inferior.c (exit_inferior_1): Don't clear exit code.
2449 (inferior_appeared): Clear exit code.
2450 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2453 2014-10-01 Pedro Alves <palves@redhat.com>
2455 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2456 GENERATED" along with emacs/vi read-only markers.
2457 * regformats/aarch64.dat: Regenerate.
2458 * regformats/arm-with-iwmmxt.dat: Regenerate.
2459 * regformats/arm-with-neon.dat: Regenerate.
2460 * regformats/arm-with-vfpv2.dat: Regenerate.
2461 * regformats/arm-with-vfpv3.dat: Regenerate.
2462 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2463 * regformats/i386/amd64-avx.dat: Regenerate.
2464 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2465 * regformats/i386/amd64-avx512.dat: Regenerate.
2466 * regformats/i386/amd64-linux.dat: Regenerate.
2467 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2468 * regformats/i386/amd64-mpx.dat: Regenerate.
2469 * regformats/i386/amd64.dat: Regenerate.
2470 * regformats/i386/i386-avx-linux.dat: Regenerate.
2471 * regformats/i386/i386-avx.dat: Regenerate.
2472 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2473 * regformats/i386/i386-avx512.dat: Regenerate.
2474 * regformats/i386/i386-linux.dat: Regenerate.
2475 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2476 * regformats/i386/i386-mmx.dat: Regenerate.
2477 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2478 * regformats/i386/i386-mpx.dat: Regenerate.
2479 * regformats/i386/i386.dat: Regenerate.
2480 * regformats/i386/x32-avx-linux.dat: Regenerate.
2481 * regformats/i386/x32-avx.dat: Regenerate.
2482 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2483 * regformats/i386/x32-avx512.dat: Regenerate.
2484 * regformats/i386/x32-linux.dat: Regenerate.
2485 * regformats/i386/x32.dat: Regenerate.
2486 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2487 * regformats/mips-dsp-linux.dat: Regenerate.
2488 * regformats/mips-linux.dat: Regenerate.
2489 * regformats/mips64-dsp-linux.dat: Regenerate.
2490 * regformats/mips64-linux.dat: Regenerate.
2491 * regformats/nios2-linux.dat: Regenerate.
2492 * regformats/rs6000/powerpc-32.dat: Regenerate.
2493 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2494 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2495 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2496 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2497 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2498 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2499 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2500 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2501 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2502 * regformats/s390-linux32.dat: Regenerate.
2503 * regformats/s390-linux32v1.dat: Regenerate.
2504 * regformats/s390-linux32v2.dat: Regenerate.
2505 * regformats/s390-linux64.dat: Regenerate.
2506 * regformats/s390-linux64v1.dat: Regenerate.
2507 * regformats/s390-linux64v2.dat: Regenerate.
2508 * regformats/s390-te-linux64.dat: Regenerate.
2509 * regformats/s390x-linux64.dat: Regenerate.
2510 * regformats/s390x-linux64v1.dat: Regenerate.
2511 * regformats/s390x-linux64v2.dat: Regenerate.
2512 * regformats/s390x-te-linux64.dat: Regenerate.
2513 * regformats/tic6x-c62x-linux.dat: Regenerate.
2514 * regformats/tic6x-c62x.dat: Regenerate.
2515 * regformats/tic6x-c64x-linux.dat: Regenerate.
2516 * regformats/tic6x-c64x.dat: Regenerate.
2517 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2518 * regformats/tic6x-c64xp.dat: Regenerate.
2520 2014-10-01 Pedro Alves <palves@redhat.com>
2522 * features/Makefile: Update comments.
2523 (XMLTOC): List all xml files we build C files from.
2524 (clean-cfiles): New rule.
2526 2014-10-01 Pedro Alves <palves@redhat.com>
2528 * features/i386/amd64-avx512-linux.c: Regenerate.
2529 * features/i386/amd64-avx512.c: Regenerate.
2530 * features/i386/x32-avx512-linux.c: Regenerate.
2531 * features/i386/x32-avx512.c: Regenerate.
2533 2014-10-01 Pedro Alves <palves@redhat.com>
2535 * features/Makefile (WHICH): Remove arm-with-m,
2536 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2538 2014-10-01 Pedro Alves <palves@redhat.com>
2540 * features/Makefile (clean): New rule.
2542 2014-10-01 Pedro Alves <palves@redhat.com>
2544 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2545 (zmm14h): Add missing end quotes.
2547 2014-10-01 Pedro Alves <palves@redhat.com>
2549 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2550 * features/aarch64.c: Regenerate.
2552 2014-09-30 Don Breazeal <donb@codesourcery.com>
2554 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2555 code so as to work with follow_fork_inferior.
2556 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2557 (inf_ttrace_create_inferior): Remove reference to
2558 inf_ttrace_vfork_ppid.
2559 (inf_ttrace_attach): Ditto.
2560 (inf_ttrace_detach): Ditto.
2561 (inf_ttrace_kill): Use current_inferior instead of
2562 inf_ttrace_vfork_ppid.
2563 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2564 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2565 inferior away from the parent.
2566 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2568 (follow_fork_inferior): New function.
2569 (follow_inferior_reset_breakpoints): Make function static.
2570 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2571 * linux-nat.c (linux_child_follow_fork): Move target-independent
2572 code to infrun.c:follow_fork_inferior.
2574 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2577 * gdbarch.c: Regenerate.
2578 * gdbarch.h: Likewise.
2579 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2580 gdbarch method 'regset_from_core_section'.
2581 (get_core_register_section): Remove handling for the case that
2582 regset == NULL and regset_from_core_section is defined.
2583 (get_core_registers): Drop check for deleted method.
2584 * procfs.c (procfs_do_thread_registers): Adjust comment.
2586 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2588 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2589 (linux_nat_make_corefile_notes): Remove.
2590 (linux_target_install_ops): Do not set target method
2591 'make_corefile_notes'.
2592 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2594 (linux_corefile_thread_callback): Instead of args->collect, call
2595 linux_collect_thread_registers.
2596 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2597 NULL unless there is a regset iterator.
2598 (linux_make_corefile_notes_1): Remove.
2599 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2600 by linux_make_corefile_notes.
2601 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2603 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2605 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2606 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2608 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2610 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2613 (xtensa_iterate_over_regset_sections): New.
2614 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2616 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618 * vax-tdep.c (vax_regset_from_core_section): Remove.
2619 (vax_iterate_over_regset_sections): New.
2620 (vax_gdbarch_init): Adjust gdbarch initialization.
2622 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2624 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2625 (tilegx_regset_from_core_section): Remove.
2626 (tilegx_iterate_over_regset_sections): New.
2627 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2632 (sparc_iterate_over_regset_sections): New.
2633 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2634 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2636 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2637 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2638 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2639 target method 'make_corefile_notes'.
2641 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2644 'sizeof_gregset' and 'sizeof_fpregset'.
2645 * sh-tdep.c (sh_regset_from_core_section): Remove.
2646 (sh_iterate_over_regset_sections): New.
2647 (sh_gdbarch_init): Adjust gdbarch initialization.
2648 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2650 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2653 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2655 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2656 (score7_linux_iterate_over_regset_sections): New.
2657 (score_gdbarch_init): Adjust gdbarch initialization.
2659 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2663 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2664 method 'make_corefile_notes'.
2665 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2666 (ppcfbsd_regset_from_core_section): Remove.
2667 (ppcfbsd_iterate_over_regset_sections): New.
2668 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2670 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2671 (ppcnbsd_iterate_over_regset_sections): New.
2672 (ppcnbsd_init_abi): Adjust.
2673 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2674 (ppcobsd_iterate_over_regset_sections): New.
2675 (ppcobsd_init_abi): Adjust.
2676 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2677 (rs6000_aix_iterate_over_regset_sections): New.
2678 (rs6000_aix_init_osabi): Adjust.
2680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2682 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2683 (nios2_regset_from_core_section): Remove.
2684 (nios2_iterate_over_regset_sections): New.
2685 (nios2_linux_init_abi): Adjust gdbarch initialization.
2687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2689 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2690 (am33_iterate_over_regset_sections): New.
2691 (am33_linux_init_osabi): Adjust gdbarch initialization.
2693 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2696 (mips_linux_iterate_over_regset_sections): New.
2697 (mips_linux_init_abi): Adjust gdbarch initialization.
2698 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2699 (mips64obsd_iterate_over_regset_sections): New.
2700 (mips64obsd_init_abi): Adjust.
2701 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2702 (mipsnbsd_iterate_over_regset_sections): New.
2703 (mipsnbsd_init_abi): Adjust.
2705 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2708 (m88k_iterate_over_regset_sections): New.
2709 (m88k_gdbarch_init): Adjust gdbarch initialization.
2711 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2713 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2714 (ia64_linux_iterate_over_regset_sections): New.
2715 (ia64_linux_init_abi): Adjust gdbarch initialization.
2717 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2719 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2720 (m68kbsd_iterate_over_regset_sections): New.
2721 (m68kbsd_init_abi): Adjust gdbarch initialization.
2722 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2723 (m68k_linux_iterate_over_regset_sections): New.
2724 (m68k_linux_init_abi): Adjust gdbarch initialization.
2726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2729 (m32r_linux_regset_from_core_section): Remove.
2730 (m32r_linux_iterate_over_regset_sections): New.
2731 (m32r_linux_init_abi): Adjust gdbarch initialization.
2733 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2735 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2736 (amd64obsd_iterate_over_regset_sections): New.
2737 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2738 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2740 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2741 regset_from_core_section initialization.
2742 * i386-tdep.c (i386_regset_from_core_section): Remove.
2743 (i386_iterate_over_regset_sections): New.
2744 (i386_gdbarch_init): Adjust gdbarch initialization.
2745 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2746 (i386_iterate_over_regset_sections): New prototype.
2747 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2749 (i386obsd_aout_iterate_over_regset_sections): New.
2750 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2751 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2753 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2754 (amd64fbsd_init_abi): Call fbsd_init_abi.
2755 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2756 (i386fbsd4_init_abi): Call fbsd_init_abi.
2757 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2758 target method 'make_corefile_notes'.
2759 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2761 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2764 (hppa_hpux_iterate_over_regset_sections): New.
2765 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2766 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2767 (hppa_linux_iterate_over_regset_sections): New.
2768 (hppa_linux_init_abi): Adjust.
2769 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2770 (hppanbsd_iterate_over_regset_sections): New.
2771 (hppanbsd_init_abi): Adjust.
2772 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2773 (hppaobsd_iterate_over_regset_sections): New.
2774 (hppaobsd_init_abi): Adjust.
2776 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2778 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2779 (frv_linux_iterate_over_regset_sections): New.
2780 (frv_linux_init_abi): Adjust gdbarch initialization.
2782 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2785 (armbsd_iterate_over_regset_sections): New prototype.
2786 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2787 (armbsd_iterate_over_regset_sections): New.
2788 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2791 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2794 (alpha_linux_iterate_over_regset_sections): New.
2795 (alpha_linux_init_abi): Adjust gdbarch initialization.
2796 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2798 (alphanbsd_iterate_over_regset_sections): New prototype.
2800 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2802 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2804 (aarch64_linux_iterate_over_regset_sections): New.
2805 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2807 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2809 * fbsd-tdep.c: New file.
2810 * fbsd-tdep.h: New file.
2811 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2812 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2813 (ALLDEPFILES): Add fbsd-tdep.c.
2815 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2817 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2819 * gdbarch.h: Regenerate.
2820 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2822 (get_core_register_section): Add parameter 'regset' and use it, if
2823 set. Add parameter 'min_size' and verify the bfd section size
2825 (get_core_registers_cb): Add parameter 'regset' and pass it to
2826 get_core_register section. For the "standard" register sections
2827 ".reg" and ".reg2", set an appropriate default for human_name.
2828 (get_core_registers): Don't abort when the gdbarch has an iterator
2829 but no regset_from_core_section. Add NULL/0 for parameters
2830 'regset'/'min_size' in calls to get_core_register_section.
2831 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2832 'regset' and use it instead of calling the
2833 regset_from_core_section gdbarch method.
2834 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2835 * i386-tdep.c (i386_supply_xstateregset)
2836 (i386_collect_xstateregset, i386_xstateregset): Moved to
2838 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2840 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2841 core file support only if the regset iterator hasn't been set.
2842 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2843 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2844 Moved from i386-tdep.c and renamed to *_linux*.
2845 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2846 each callback invocation. Allow any .reg-xstate size when reading
2848 * amd64-tdep.c (amd64_supply_xstateregset)
2849 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2851 (amd64_regset_from_core_section): Remove.
2852 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2853 install an amd64-specific regset_from_core_section gdbarch method.
2854 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2855 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2856 Moved from amd64-tdep.c and renamed to *_linux*.
2857 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2858 to each callback invocation. Allow any .reg-xstate size when
2859 reading from a core file.
2860 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2861 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2862 each callback invocation.
2863 (arm_linux_init_abi): No longer set the regset_from_core_section
2865 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2866 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2867 each callback invocation.
2868 (ppc_linux_init_abi): No longer set the regset_from_core_section
2870 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2871 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2872 (s390_regset_from_core_section): Remove.
2873 (s390_iterate_over_regset_sections): Add regset parameter to each
2874 callback invocation.
2875 (s390_gdbarch_init): No longer set the regset_from_core_section
2876 gdbarch method. Drop initialization of deleted tdep fields.
2878 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2880 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2881 (amd64_linux_iterate_over_regset_sections): New.
2882 (amd64_linux_init_abi_common): Don't install the regset section
2883 list, but the new iterator in gdbarch.
2884 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2885 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2886 (arm_linux_iterate_over_regset_sections): ...here. New function.
2887 (arm_linux_init_abi): Set iterator instead of section list.
2888 * corelow.c (get_core_registers_cb): New function, logic moved
2890 (get_core_registers): ...loop body here. Use new iterator method
2891 instead of walking through the regset section list.
2892 * gdbarch.sh: Remove 'core_regset_sections'. New method
2893 'iterate_over_regset_sections'. New typedef
2894 'iterate_over_regset_sections_cb'.
2895 * gdbarch.c: Regenerate.
2896 * gdbarch.h: Likewise.
2897 * i386-linux-tdep.c (i386_linux_regset_sections)
2898 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2900 (i386_linux_iterate_over_regset_sections): New.
2901 (i386_linux_init_abi): Don't choose a regset section list, but
2902 install new iterator in gdbarch.
2903 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2904 (linux_collect_regset_section_cb): New function, logic moved
2906 (linux_collect_thread_registers): ...loop body here. Use iterator
2907 method instead of walking through list.
2908 (linux_make_corefile_notes_1): Check for presence of iterator
2909 method instead of regset section list.
2910 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2911 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2912 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2913 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2914 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2915 (ppc_linux_init_abi): Don't choose from above regset section
2916 lists, but install new iterator in gdbarch.
2917 * regset.h (struct core_regset_section): Remove.
2918 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2919 have_linux_v1, have_linux_v2, and have_tdb.
2920 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2921 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2922 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2923 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2924 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2925 (s390_iterate_over_regset_sections): ...here. New function. Use
2927 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2928 regset section lists, but install new iterator.
2930 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2934 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2936 * progspace.c (print_program_space): Don't prune program spaces
2937 before printing them.
2939 2014-09-25 Pedro Alves <palves@redhat.com>
2941 * infrun.c (user_visible_resume_ptid): Don't check
2942 singlestep_breakpoints_inserted_p.
2944 2014-09-25 Pedro Alves <palves@redhat.com>
2946 * breakpoint.c (should_be_inserted): Add debug output.
2948 2014-09-25 Pedro Alves <palves@redhat.com>
2950 * infrun.c (stepping_past_instruction_at)
2951 (clear_exit_convenience_vars): Point at infrun.h instead of
2953 (handle_signal_stop): Fix typo.
2955 2014-09-24 Yao Qi <yao@codesourcery.com>
2957 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2960 2014-09-22 Gary Benson <gbenson@redhat.com>
2962 * target.c (target_stop): Updated comment.
2964 2014-09-22 Gary Benson <gbenson@redhat.com>
2966 * target/target.h (target_stop_ptid): Renamed as...
2967 (target_stop_and_wait): New function. Updated comment.
2969 (target_continue_ptid): Renamed as...
2970 (target_continue_no_signal): New function. Updated comment.
2973 2014-09-22 Pedro Alves <palves@redhat.com>
2975 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2977 * breakpoint.c (enum ugll_insert_mode): New enum.
2978 (always_inserted_mode): Now a plain boolean.
2979 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2980 (breakpoints_always_inserted_mode): Delete.
2981 (breakpoints_should_be_inserted_now): New function.
2982 (insert_breakpoints): Pass UGLL_INSERT to
2983 update_global_location_list instead of calling
2984 insert_breakpoint_locations manually.
2985 (create_solib_event_breakpoint_1): New, factored out from ...
2986 (create_solib_event_breakpoint): ... this.
2987 (create_and_insert_solib_event_breakpoint): Use
2988 create_solib_event_breakpoint_1 instead of calling
2989 insert_breakpoint_locations manually.
2990 (update_global_location_list): Change parameter type from boolean
2991 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2992 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2993 (update_global_location_list_nothrow): Change parameter type from
2994 boolean to enum ugll_insert_mode.
2995 (_initialize_breakpoint): "breakpoint always-inserted" option is
2996 now a boolean command. Update help text.
2997 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2998 (breakpoints_should_be_inserted_now): New declaration.
2999 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3000 Remove breakpoints_always_inserted_mode check.
3001 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3002 * remote.c (remote_start_remote): Likewise.
3004 2014-09-22 Pedro Alves <palves@redhat.com>
3006 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3007 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3008 Instead, pass UGLL_INSERT to update_global_location_list.
3009 (update_global_location_list): Change parameter type from boolean
3010 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3011 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3012 (create_solib_event_breakpoint_1): New, factored out from ...
3013 (create_solib_event_breakpoint): ... this.
3014 (create_and_insert_solib_event_breakpoint): Use
3015 create_solib_event_breakpoint_1 instead of calling
3016 insert_breakpoint_locations manually.
3017 (update_global_location_list): Handle UGLL_INSERT.
3019 2014-09-22 Pedro Alves <palves@redhat.com>
3021 * breakpoint.c (enum ugll_insert_mode): New enum.
3022 (update_global_location_list)
3023 (update_global_location_list_nothrow): Change parameter type from
3024 boolean to enum ugll_insert_mode. All callers adjusted.
3026 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3028 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3029 SystemTap support in GDB.
3031 2014-09-19 Don Breazeal <donb@codesourcery.com>
3033 * linux-nat.c (linux_handle_extended_wait): Call
3034 linux_ptrace_get_extended_event.
3035 (wait_lwp): Call linux_is_extended_waitstatus.
3036 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3037 and linux_is_extended_waitstatus.
3038 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3039 linux_ptrace_get_extended_event.
3040 (linux_ptrace_get_extended_event): New function.
3041 (linux_is_extended_waitstatus): New function.
3042 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3043 (linux_is_extended_waitstatus): New declarations.
3045 2014-09-19 Yao Qi <yao@codesourcery.com>
3047 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3048 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3049 comments. Callers update.
3050 (dwarf_decode_lines): Likewise.
3051 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3052 comments. Skip the line table if 'lowpc' is greater than
3053 'address'. Don't check
3054 dwarf2_per_objfile->has_section_at_zero.
3056 2014-09-18 Doug Evans <dje@google.com>
3058 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3059 * python/py-symtab.c (stpy_get_producer): New function.
3060 (symtab_object_getset): Add "producer" attribute.
3062 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3065 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3066 (do_captured_read_memory_integer): Remove.
3067 (safe_read_memory_integer): Use target_read_memory directly instead
3068 of catching errors in do_captured_read_memory_integer.
3070 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3072 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3075 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3077 * objc-lang.c (find_implementation_from_class): Remove dead code.
3079 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3082 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3083 "fprintf_unfiltered (gdb_stdlog...)".
3085 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3087 PR breakpoints/12526
3088 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3090 * breakpoint.c (watch_command_1): Use these fields to retain
3091 bitfield information.
3092 (extract_bitfield_from_watchpoint_value): New function.
3093 (watchpoint_check): Use it.
3094 (update_watchpoint): Use it. Optimize the address and length of a
3095 HW watchpoint pointing to a bitfield.
3096 * value.h (unpack_value_bitfield): New prototype.
3097 * value.c (unpack_value_bitfield): Make extern.
3099 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3101 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3103 * gnu-nat.c (inf_threads): New function.
3104 * gnu-nat.h (inf_threads_ftype): New typedef.
3105 (inf_threads): New declaration.
3106 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3107 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3108 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3109 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3110 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3111 (i386_gnu_dr_get_control): New functions.
3112 (reg_addr): New structure.
3113 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3114 i386 debugging register hooks.
3115 * NEWS: Mention this.
3117 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3119 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3120 vector data transfer instructions.
3121 (arm_record_coproc_data_proc): Updated.
3123 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3125 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3126 arm_record_exreg_ld_st_insn.
3127 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3130 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3132 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3133 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3134 processing instructions.
3136 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3138 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3139 for advance SIMD struct ld/st insn.
3140 (thumb2_record_decode_insn_handler): Replace stub handler with
3141 thumb2_record_asimd_struct_ld_st.
3143 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3145 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3146 for asimd, vfp and coprocessor insns.
3147 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3148 and coprocessor insns.
3149 (thumb2_record_coproc_insn): New function.
3150 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3152 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3155 2014-09-13 Doug Evans <xdje42@gmail.com>
3157 * NEWS: Mention new "queue-signal" command.
3158 * infcmd.c (queue_signal_command): New function.
3159 (_initialize_infcmd): Add new queue-signal command.
3161 2014-09-13 Doug Evans <xdje42@gmail.com>
3163 * linux-nat.c (wait_lwp): Add debugging printf.
3164 (linux_nat_wait_1): Ditto.
3166 2014-09-12 Pedro Alves <palves@redhat.com>
3168 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3169 (create_and_insert_solib_event_breakpoint): New functions.
3170 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3171 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3172 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3173 (remove_dbx_link_breakpoint): Delete function.
3174 (insert_dbx_link_bpt_in_file): Use
3175 create_and_insert_solib_event_breakpoint instead of
3176 deprecated_insert_raw_breakpoint.
3177 (procfs_wait): Don't check whether we hit __dbx_link here.
3178 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3180 * solib-irix.c (base_breakpoint): Delete global.
3181 (disable_break): Delete function.
3182 (enable_break): Use create_solib_event_breakpoint
3183 instead of deprecated_insert_raw_breakpoint.
3184 (irix_solib_handle_event): New function.
3185 (irix_solib_create_inferior_hook): Don't run the target or disable
3186 the mapping-complete breakpoint here.
3187 (_initialize_irix_solib): Install irix_solib_handle_event as
3188 so_ops->handle_event hook.
3190 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3191 Ulrich Weigand <uweigand@de.ibm.com>
3194 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3195 instead of read_memory_unsigned_integer.
3197 2014-09-12 Gary Benson <gbenson@redhat.com>
3199 * nat/linux-waitpid.c: Include common-defs.h.
3200 [GDBSERVER]: Add FIXME comment.
3201 [!GDBSERVER]: Don't include defs.h or signal.h.
3202 (linux_debug) [!GDBSERVER]: Remove empty block.
3204 2014-09-12 Gary Benson <gbenson@redhat.com>
3206 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3207 Don't include defs.h or server.h.
3209 2014-09-12 Gary Benson <gbenson@redhat.com>
3211 * nat/linux-btrace.c: Include common-defs.h.
3212 Don't include defs.h, server.h or gdbthread.h.
3213 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3215 2014-09-12 Gary Benson <gbenson@redhat.com>
3217 * common/agent.c: Include common-defs.h.
3218 Don't include defs.h or server.h.
3219 * common/buffer.c: Likewise.
3220 * common/common-debug.c: Likewise.
3221 * common/common-utils.c: Likewise.
3222 * common/errors.c: Likewise.
3223 * common/filestuff.c: Likewise.
3224 * common/format.c: Likewise.
3225 * common/gdb_vecs.c: Likewise.
3226 * common/print-utils.c: Likewise.
3227 * common/ptid.c: Likewise.
3228 * common/rsp-low.c: Likewise.
3229 * common/signals.c: Likewise.
3230 * common/vec.c: Likewise.
3231 * common/xml-utils.c: Likewise.
3232 * nat/linux-osdata.c: Likewise.
3233 * nat/linux-procfs.c: Likewise.
3234 * nat/linux-ptrace.c: Likewise.
3235 * nat/mips-linux-watch.c: Likewise.
3236 * target/waitstatus.c: Likewise.
3238 2014-09-12 Tom Tromey <tromey@redhat.com>
3239 Gary Benson <gbenson@redhat.com>
3241 * common/common-regcache.h: New file.
3242 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3243 * regcache.h: Include common-regcache.h.
3244 (regcache_read_pc): Don't declare.
3245 * regcache.c (get_thread_regcache_for_ptid): New function.
3246 * nat/linux-btrace.c: Don't include regcache.h.
3247 Include common-regcache.h.
3248 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3250 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3252 * regcache.h (struct regset): Declare.
3254 2014-09-11 Pedro Alves <palves@redhat.com>
3257 * main.c: Include "infrun.h".
3258 (catch_command_errors, catch_command_errors_const): Wait for the
3259 foreground command to complete.
3260 * top.c (maybe_wait_sync_command_done): New function, factored out
3262 (maybe_wait_sync_command_done): ... here.
3263 * top.h (maybe_wait_sync_command_done): New declaration.
3265 2014-09-11 Tom Tromey <tromey@redhat.com>
3266 Gary Benson <gbenson@redhat.com>
3268 * common/symbol.h: New file.
3269 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3270 * minsyms.c (find_minimal_symbol_address): New function.
3271 * common/agent.c: Include common/symbol.h.
3272 [!GDBSERVER]: Don't include objfiles.h.
3273 (agent_look_up_symbols): Use find_minimal_symbol_address.
3275 2014-09-11 Gary Benson <gbenson@redhat.com>
3277 * target/target.h (target_stop_ptid, target_continue_ptid):
3279 * target.c (target_stop_ptid, target_continue_ptid): New
3281 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3282 (agent_run_command): Always use target_stop_ptid and
3283 target_continue_ptid.
3285 2014-09-11 Tom Tromey <tromey@redhat.com>
3286 Gary Benson <gbenson@redhat.com>
3288 * target/target.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3290 * target.h: Include target/target.h.
3291 (target_read_memory, target_write_memory): Don't declare.
3292 * target.c (target_read_uint32): New function.
3293 * common/agent.c: Include target/target.h.
3294 [!GDBSERVER]: Don't include target.h.
3295 (helper_thread_id): Type changed to uint32_t.
3296 (agent_get_helper_thread_id): Use target_read_uint32.
3297 (agent_run_command): Always use target_read_memory and
3298 target_write_memory.
3299 (agent_capability): Type changed to uint32_t.
3300 (agent_capability_check): Use target_read_uint32.
3302 2014-09-11 Gary Benson <gbenson@redhat.com>
3304 * common/common-debug.h (show_debug_regs): Declare.
3305 * common/common-debug.c (show_debug_regs): Define.
3306 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3307 all uses with show_debug_regs. Replace all uses that considered
3308 debug_hw_points as a multi-value integer with straight boolean
3310 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3311 with show_debug_regs.
3312 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3313 all uses with show_debug_regs.
3314 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3315 uses with show_debug_regs.
3317 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3319 * findvar.c (address_from_register): Handle targets requiring
3320 a special conversion routine even for plain pointer types.
3322 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3324 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3325 (store_register): Do not call exec_one_dummy_insn.
3327 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3329 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3330 dereference it first. Use value_enclosing_type instead of
3332 (ada_array_length): Likewise.
3334 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3336 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3337 Adjust function implementation and documentation accordingly.
3338 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3339 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3340 Update call to ada_value_ptr_subscript.
3342 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3344 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3345 instead of VAL's type.
3347 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3349 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3351 2014-09-09 Doug Evans <xdje42@gmail.com>
3354 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3355 last parameter to pkg-config, not first.
3356 * configure.ac: Pass --with-guile provided pkg-config path to
3357 GDB_GUILE_PROGRAM_NAMES.
3358 * configure: Regenerate.
3360 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3362 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3365 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3367 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3368 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3369 the list of sections determining GDB_OSABI_IRIX.
3371 2014-09-09 James Hogan <james.hogan@imgtec.com>
3373 * MAINTAINERS (Write After Approval): Add "James Hogan".
3375 2014-09-09 James Hogan <james.hogan@imgtec.com>
3377 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3379 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3381 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3383 2014-09-08 Doug Evans <xdje42@gmail.com>
3386 * guile.c: #include <signal.h>.
3387 (_initialize_guile): Block SIGCHLD while initializing Guile.
3389 Replaces the following, which is reverted.
3391 2014-07-26 Doug Evans <xdje42@gmail.com>
3394 * configure.ac: Add check for header gc/gc.h.
3395 Add check for function setenv.
3396 * configure: Regenerate.
3397 * config.in: Regenerate.
3398 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3400 2014-09-08 Doug Evans <xdje42@gmail.com>
3402 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3403 with named constant. Fix style of pointer comparison.
3404 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3406 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3409 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3410 decide whether we display the command on "show user".
3411 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3412 printing command name.
3413 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3414 * cli/cli-decode.c (cli_user_command_p): Create helper function
3415 to verify whether cmd_list_element is a user-defined command.
3417 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3421 Fix goto out of TRY_CATCH.
3423 2014-09-06 Doug Evans <xdje42@gmail.com>
3424 Tom Tromey <tromey@redhat.com>
3427 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3428 $_any_caller_matches.
3429 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3430 * python/lib/gdb/function/caller_is.py: New file.
3432 2014-09-06 Doug Evans <xdje42@gmail.com>
3434 * infcmd.c (program_info): Fix typo.
3436 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3439 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3440 'number'. New variable 'has_digit'. Rewrite code to deal with
3441 subexpressions on SDT probes.
3443 2014-09-04 Pedro Alves <palves@redhat.com>
3445 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3446 the input is only one character long.
3448 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3451 * f-valprint.c (f_val_print): Specify the correct print option to
3452 use when printing integer values.
3454 2014-09-04 Gary Benson <gbenson@redhat.com>
3456 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3457 Remove code to cope with LWPs wrapped as PIDs.
3458 Add assertions to ensure no wrapped LWPs are passed.
3460 2014-09-04 Pedro Alves <palves@redhat.com>
3462 * value.c (value_ranges_copy_adjusted): New function, factored out
3464 (value_contents_copy_raw): ... here.
3465 (unpack_value_bits_as_long_1): Rename back to ...
3466 (unpack_bits_as_long): ... this. Remove 'original_value' and
3467 'result' parameters. Change return type to LONGEST.
3468 (unpack_value_bits_as_long): Delete.
3469 (unpack_value_field_as_long_1): Delete.
3470 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3471 (unpack_value_bitfield): New function.
3472 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3473 (value_fetch_lazy): Use unpack_value_bitfield.
3474 * value.h (unpack_value_bits_as_long): Delete declaration.
3476 2014-09-03 Sasha Smundak <asmundak@google.com>
3478 * python/py-frame.c (frapy_read_register): New function.
3480 2014-09-03 James Hogan <james.hogan@imgtec.com>
3482 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3483 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3485 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3488 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3490 (add_cmd): Set "completer_handle_brkchars" to NULL.
3491 * cli/cli-decode.h (struct cmd_list_element)
3492 <completer_handle_brkchars>: New field.
3493 * command.h (completer_ftype_void): New typedef.
3494 (set_cmd_completer_handle_brkchars): New prototype.
3495 * completer.c (set_gdb_completion_word_break_characters): New
3497 (complete_line_internal): Call "completer_handle_brkchars"
3498 callback from command.
3499 * completer.h: Include "command.h".
3500 (set_gdb_completion_word_break_characters): New prototype.
3501 * python/py-cmd.c (cmdpy_completer_helper): New function.
3502 (cmdpy_completer_handle_brkchars): New function.
3503 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3504 (cmdpy_init): Set completer_handle_brkchars to
3505 cmdpy_completer_handle_brkchars.
3507 2014-09-03 Gary Benson <gbenson@redhat.com>
3509 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3510 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3511 Loop conditions changed to equivalent form.
3512 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3513 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3514 ALL_DEBUG_ADDRESS_REGISTERS.
3516 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3518 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3521 2014-09-02 Doug Evans <dje@google.com>
3523 * typeprint.c (find_global_typedef): Fix comment.
3525 2014-09-02 Gary Benson <gbenson@redhat.com>
3527 * i386-nat.h: Renamed as...
3528 * x86-nat.h: New file. All type, function and variable name
3529 prefixes changed from "i386_" to "x86_". All references updated.
3530 * i386-nat.c: Renamed as...
3531 * x86-nat.c: New file. All type, function and variable name
3532 prefixes changed from "i386_" to "x86_". All references updated.
3533 * common/i386-xstate.h: Renamed as...
3534 * common/x86-xstate.h: New file. All type, function and variable
3535 name prefixes changed from "i386_" to "x86_". All references
3537 * nat/i386-cpuid.h: Renamed as...
3538 * nat/x86-cpuid.h: New file. All type, function and variable name
3539 prefixes changed from "i386_" to "x86_". All references updated.
3540 * nat/i386-gcc-cpuid.h: Renamed as...
3541 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3542 name prefixes changed from "i386_" to "x86_". All references
3544 * nat/i386-dregs.h: Renamed as...
3545 * nat/x86-dregs.h: New file. All type, function and variable name
3546 prefixes changed from "i386_" to "x86_". All references updated.
3547 * nat/i386-dregs.c: Renamed as...
3548 * nat/x86-dregs.c: New file. All type, function and variable name
3549 prefixes changed from "i386_" to "x86_". All references updated.
3551 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3553 * varobj.c (_initialize_varobj): Move to the end of file.
3555 2014-08-29 Gary Benson <gbenson@redhat.com>
3557 * common/common-exceptions.h: New file.
3558 * common/common-exceptions.c: Likewise.
3559 * Makefile.in (SFILES): Add common/common-exceptions.c.
3560 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3561 (COMMON_OBS): Add common-exceptions.o.
3562 (common-exceptions.o): New rule.
3563 * exceptions.h (common-exceptions.h): Include.
3564 (gdb_setjmp.h): Do not include.
3565 (return_reason): Moved to common-exceptions.h.
3566 (enum return_reason): Likewise.
3567 (RETURN_MASK): Likewise.
3568 (typedef return_mask): Likewise.
3569 (enum errors): Likewise.
3570 (struct gdb_exception): Likewise.
3571 (exceptions_state_mc_init): Likewise.
3572 (exceptions_state_mc_action_iter): Likewise.
3573 (exceptions_state_mc_action_iter_1): Likewise.
3574 (TRY_CATCH): Likewise.
3575 (throw_exception): Likewise.
3576 (throw_verror): Likewise.
3577 (throw_vquit): Likewise.
3578 (throw_error): Likewise.
3579 (throw_quit): Likewise.
3580 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3581 (enum catcher_action): Likewise.
3582 (struct catcher): Likewise.
3583 (current_catcher): Likewise.
3584 (catcher_list_size): Likewise.
3585 (exceptions_state_mc_init): Likewise.
3586 (catcher_pop): Likewise.
3587 (exceptions_state_mc): Likewise.
3588 (exceptions_state_mc_action_iter): Likewise.
3589 (exceptions_state_mc_action_iter_1): Likewise.
3590 (throw_exception): Likewise.
3591 (exception_messages): Likewise.
3592 (exception_messages_size): Likewise.
3593 (throw_it): Likewise.
3594 (throw_verror): Likewise.
3595 (throw_vquit): Likewise.
3596 (throw_error): Likewise.
3597 (throw_quit): Likewise.
3598 (prepare_to_throw_exception): New function.
3600 2014-08-29 Gary Benson <gbenson@redhat.com>
3602 * common/gdb_setjmp.h: New file.
3603 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3604 * configure.ac: Move sigsetjmp check...
3605 * common/common.m4: ...here.
3606 * configure: Regenerate.
3607 * cp-support.c (SIGJMP_BUF): Delete.
3608 (SIGSETJMP): Likewise.
3609 (SIGLONGJMP): Likewise.
3610 * exceptions.h (gdb_setjmp.h): Include.
3611 (setjmp.h): Do not include.
3612 (EXCEPTIONS_SIGJMP_BUF): Delete.
3613 (EXCEPTIONS_SIGSETJMP): Likewise.
3614 (EXCEPTIONS_SIGLONGJMP): Likewise.
3615 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3617 * exceptions.c: Likewise.
3619 2014-08-29 Gary Benson <gbenson@redhat.com>
3621 * cleanups.h: Moved to...
3622 * common/cleanups.h: New file.
3623 * cleanups.c: Moved to...
3624 * common/cleanups.c: New file. Include common-defs.h and
3625 cleanups.h. Do not include defs.h.
3626 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3627 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3628 (cleanups.o): New rule.
3630 2014-08-29 Gary Benson <gbenson@redhat.com>
3632 * common/errors.h (internal_warning): New declaration.
3633 (internal_vwarning): Likewise.
3634 * common/errors.c (internal_warning): New function.
3635 * utils.h (internal_warning): Don't declare.
3636 (internal_vwarning): Likewise.
3637 * utils.c (internal_warning): Removed.
3639 2014-08-29 Gary Benson <gbenson@redhat.com>
3641 * main.c (captured_main): Use warning during startup.
3642 Prefix startup warning messages with command name.
3644 2014-08-29 Gary Benson <gbenson@redhat.com>
3646 * main.c (captured_main): Handle usage errors with error.
3648 2014-08-29 Gary Benson <gbenson@redhat.com>
3650 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3651 exit pair with a call to error. Wrap the message with _().
3653 2014-08-29 Gary Benson <gbenson@redhat.com>
3655 * main.c (captured_main): Replace a fprintf/exit
3656 pair with a call to error. Wrap the message with _().
3658 2014-08-29 Gary Benson <gbenson@redhat.com>
3660 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3661 pairs with calls to error. Wrap the message with _().
3663 2014-08-29 Gary Benson <gbenson@redhat.com>
3665 * utils.c (vwarning): Protect calls to target_terminal_ours
3668 2014-08-29 Gary Benson <gbenson@redhat.com>
3670 * exceptions.c (print_flush): Protect calls to
3671 target_terminal_ours and wrap_here.
3673 2014-08-29 Gary Benson <gbenson@redhat.com>
3675 * utils.h (filtered_printing_initialized): New declaration.
3676 * utils.c (abort_with_message): New function.
3677 (internal_vproblem): Use abort_with_message for first level
3678 recursive internal problems, and if gdb_stderr is not set up.
3679 Protect calls to target_terminal_ours, begin_line and query.
3681 2014-08-28 Doug Evans <dje@google.com>
3683 * symtab.c (in_prologue): Move definition to better spot.
3684 (skip_prologue_using_sal): Ditto.
3686 2014-08-28 Doug Evans <dje@google.com>
3688 * symtab.c (find_function_start_sal): Move definition to better spot.
3690 2014-08-28 Yao Qi <yao@codesourcery.com>
3692 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3693 found_stack_adjust in forward scan. Remove condition check
3694 on found_stack_adjust which is always true. Indent the code.
3696 2014-08-28 Yao Qi <yao@codesourcery.com>
3698 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3699 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3700 (dwarf_decode_lines): Remove argument
3701 want_line_info. Remove condition check on want_line_info.
3704 2014-08-27 Doug Evans <dje@google.com>
3706 * dwarf2read.c (dwarf_record_line): Fix typo.
3708 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3710 * target.h (struct target_ops::to_terminal_save_ours): Remove
3712 (target_terminal_save_ours): Remove macro.
3713 * target-delegates.c: Regenerate.
3714 * inf-child.c (inf_child_target): Don't set the nonexistent
3715 field to_terminal_save_ours.
3716 * inferior.h (child_terminal_save_ours): Remove declaration.
3717 * terminal.h (gdb_save_tty_state): New declaration.
3718 * inflow.c (child_terminal_save_ours): Rename to ...
3719 (gdb_save_tty_state): ... this.
3720 * tui/tui.c: Include terminal.h.
3721 (tui_enable): Use gdb_save_tty_state instead of
3722 target_terminal_save_ours.
3723 (tui_disable): Likewise.
3725 2014-08-25 Doug Evans <dje@google.com>
3727 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3728 Pass NULL instead of 0 for context pointer.
3730 2014-08-25 Yao Qi <yao@codesourcery.com>
3732 * dwarf2read.c: Fix grammatical error.
3734 2014-08-24 Yao Qi <yao@codesourcery.com>
3736 * dwarf2read.c (scan_partial_symbols): Update comments.
3737 Rename argument 'need_pc' with 'set_addrmap'.
3738 (add_partial_namespace): Rename argument 'need_pc' with
3740 (add_partial_module): Likewise.
3741 (add_partial_subprogram): Likewise. Update comments.
3742 (dwarf2_name): Fix typo.
3744 2014-08-22 Doug Evans <dje@google.com>
3747 * dwarf2read.c (dwarf_record_line_p): New function.
3748 (dwarf_decode_lines_1): Ignore subsequent line number entries
3749 for the same line if any entry had a non-zero discriminator.
3751 2014-08-22 Doug Evans <dje@google.com>
3753 * buildsym.h (record_line_ftype): New typedef.
3754 (record_line): Use it.
3755 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3756 (dwarf_decode_lines_1): Call them.
3758 2014-08-22 Yao Qi <yao@codesourcery.com>
3760 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3761 (ctf_end): Remove code.
3763 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3766 (linux_make_corefile_notes): call update_thread_list, protected against
3769 2014-08-21 Pedro Alves <palves@redhat.com>
3771 * infcmd.c (attach_command): Remove comment.
3773 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3775 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3776 unsigned LONGEST to ULONGEST.
3778 2014-08-20 Pedro Alves <palves@redhat.com>
3780 * Makefile.in (check-read1): New rule.
3782 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3784 * value.c (value_from_contents_and_address): Strip resolved_type's
3785 typedef layers before checking its TYPE_DATA_LOCATION.
3787 2014-08-20 Pedro Alves <palves@redhat.com>
3789 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3791 2014-08-20 Yao Qi <yao@codesourcery.com>
3793 * amd64-tdep.c (amd64_classify): Add a blank line after the
3794 example. Move "*/" to a new line.
3795 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3796 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3797 * dwarf2read.c (psymtab_include_file_name): Likewise.
3799 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3800 Pedro Alves <palves@redhat.com>
3804 * ada-lang.c (coerce_unspec_val_to_type): Use
3805 value_contents_copy_raw.
3806 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3807 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3808 * cp-valprint.c (cp_print_value_fields): Let the common printing
3809 code handle optimized out values.
3810 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3811 * d-valprint.c (dynamic_array_type): Use
3812 value_bits_any_optimized_out.
3813 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3814 check_any_valid fields.
3815 (check_pieced_value_bits): Delete and inline ...
3816 (check_pieced_synthetic_pointer): ... here.
3817 (check_pieced_value_validity): Delete.
3818 (check_pieced_value_invalid): Delete.
3819 (pieced_value_funcs): Remove check_validity and check_any_valid
3821 (read_pieced_value): Use mark_value_bits_optimized_out.
3822 (write_pieced_value): Switch to use
3823 mark_value_bytes_optimized_out.
3824 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3825 of assuming the whole value is optimized out.
3826 * findvar.c (read_frame_register_value): Remove special handling
3827 of optimized out registers.
3828 (value_from_register): Use mark_value_bytes_optimized_out.
3829 * frame-unwind.c (frame_unwind_got_optimized): Use
3830 mark_value_bytes_optimized_out.
3831 * jv-valprint.c (java_value_print): Adjust.
3832 (java_print_value_fields): Let the common printing code handle
3833 optimized out values.
3834 * mips-tdep.c (mips_print_register): Remove special handling of
3835 optimized out registers.
3836 * opencl-lang.c (lval_func_check_validity): Delete.
3837 (lval_func_check_any_valid): Delete.
3838 (opencl_value_funcs): Remove check_validity and check_any_valid
3840 * p-valprint.c (pascal_object_print_value_fields): Let the common
3841 printing code handle optimized out values.
3842 * stack.c (read_frame_arg): Remove special handling of optimized
3843 out values. Fetch both VAL and ENTRYVAL before comparing
3844 contents. Adjust to value_available_contents_eq rename.
3845 * valprint.c (valprint_check_validity)
3846 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3847 (val_print_array_elements): Adjust.
3848 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3849 (value_bits_any_optimized_out): New function.
3850 (value_entirely_covered_by_range_vector): New function, factored
3851 out from value_entirely_unavailable.
3852 (value_entirely_unavailable): Reimplement.
3853 (value_entirely_optimized_out): New function.
3854 (insert_into_bit_range_vector): New function, factored out from
3855 mark_value_bits_unavailable.
3856 (mark_value_bits_unavailable): Reimplement.
3857 (struct ranges_and_idx): New struct.
3858 (find_first_range_overlap_and_match): New function, factored out
3859 from value_available_contents_bits_eq.
3860 (value_available_contents_bits_eq): Rename to ...
3861 (value_contents_bits_eq): ... this. Check both unavailable
3862 contents and optimized out contents.
3863 (value_available_contents_eq): Rename to ...
3864 (value_contents_eq): ... this.
3865 (allocate_value_lazy): Remove reference to the old optimized_out
3867 (allocate_optimized_out_value): Use
3868 mark_value_bytes_optimized_out.
3869 (require_not_optimized_out): Adjust to check whether the
3870 optimized_out vec is empty.
3871 (ranges_copy_adjusted): New function, factored out from
3872 value_contents_copy_raw.
3873 (value_contents_copy_raw): Also copy the optimized out ranges.
3874 Assert the destination ranges aren't optimized out.
3875 (value_contents_copy): Update comment, remove call to
3876 require_not_optimized_out.
3877 (value_contents_equal): Adjust to check whether the optimized_out
3879 (set_value_optimized_out, value_optimized_out_const): Delete.
3880 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3882 (value_entirely_optimized_out, value_bits_valid): Delete.
3883 (value_copy): Take a VEC copy of the 'optimized_out' field.
3884 (value_primitive_field): Remove special handling of optimized out.
3885 (value_fetch_lazy): Assert that lazy values have no unavailable
3886 regions. Use value_bits_any_optimized_out. Remove some special
3887 handling for optimized out values.
3888 * value.h: Add intro comment about <optimized out> and
3890 (struct lval_funcs): Remove check_validity and check_any_valid
3892 (set_value_optimized_out, value_optimized_out_const): Remove.
3893 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3895 (value_bits_any_optimized_out): New declaration.
3896 (value_bits_valid): Delete declaration.
3897 (value_available_contents_eq): Rename to ...
3898 (value_contents_eq): ... this, and extend comments.
3900 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3902 Fix -fsanitize=address on unreadable inferior strings.
3903 * valprint.c (val_print_string): Fix access before BUFFER.
3905 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3907 * target.c (target_struct_size): Remove.
3908 (target_struct_allocsize): Remove.
3909 (DEFAULT_ALLOCSIZE): Remove.
3910 (target_ops_p): New typedef.
3911 (DEF_VEC_P (target_ops_p)): New vector type.
3912 (target_structs): Change type to VEC (target_ops_p).
3913 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3914 (find_default_run_target): Rewrite for loop following changes to
3917 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3919 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3920 Adjust code accordingly. Adjust function description comment.
3922 2014-08-19 Yao Qi <yao@codesourcery.com>
3924 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3927 2014-08-19 Alan Modra <amodra@gmail.com>
3929 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3930 * config.in: Regenerate.
3931 * configure: Regenerate.
3933 2014-08-19 Tom Tromey <tromey@redhat.com>
3934 Gary Benson <gbenson@redhat.com>
3936 * common/common-debug.h: New file.
3937 * common/common-debug.c: Likewise.
3938 * debug.c: Likewise.
3939 * Makefile.in (SFILES): Add common/common-debug.c.
3940 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3941 (COMMON_OBS): Add common-debug.o and debug.o.
3942 (common-debug.o): New rule.
3943 * common/common-defs.h: Include common-debug.h.
3944 * common/agent.c (debug_agent_printf): New function.
3945 (DEBUG_AGENT): Redefine.
3946 * nat/i386-dregs.c (debug_printf): Undefine.
3948 2014-08-19 Gary Benson <gbenson@redhat.com>
3950 * common/common-defs.h: Include print-utils.h.
3951 * utils.h: Do not include print-utils.h.
3953 2014-08-19 Tom Tromey <tromey@redhat.com>
3954 Gary Benson <gbenson@redhat.com>
3956 * common/common-types.h: New file.
3957 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3958 * common/common-defs.h: Include common-types.h.
3959 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3962 2014-08-19 Tom Tromey <tromey@redhat.com>
3963 Gary Benson <gbenson@redhat.com>
3965 * common/errors.h: New file.
3966 * common/errors.c: Likewise.
3967 * Makefile.in (SFILES): Add common/errors.c.
3968 (HFILES_NO_SRCDIR): Add common/errors.h.
3969 (COMMON_OBS): Add errors.o.
3970 (errors.o): New rule.
3971 * common/common-defs.h: Include errors.h.
3972 * utils.h (perror_with_name, error, verror, warning, vwarning):
3974 * common/common-utils.h: (malloc_failure, internal_error):
3977 2014-08-19 Gary Benson <gbenson@redhat.com>
3979 * utils.c (internal_vproblem): Always print the message.
3981 2014-08-18 Doug Evans <dje@google.com>
3983 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3985 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3987 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3988 Return 0 if TYPE is dynamic.
3989 (print_range): Add handling of dynamic ranges.
3991 2014-08-18 Keven Boell <keven.boell@intel.com>
3992 Joel Brobecker <brobecker@adacore.com>
3994 * gdbtypes.h (struct main_type): Add field "data_location".
3995 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3996 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3997 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3998 a dynamic data location.
3999 (resolve_dynamic_type): Add DW_AT_data_location handling.
4000 (copy_recursive, copy_type): Copy the data_location information
4002 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4003 * value.c (value_from_contents_and_address): Add
4004 DW_AT_data_location handling.
4006 2014-08-18 Keven Boell <keven.boell@intel.com>
4007 Joel Brobecker <brobecker@adacore.com>
4009 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4010 field "get_object_address".
4011 * dwarf2expr.c (execute_stack_op): Add handling for
4012 DW_OP_push_object_address.
4013 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4014 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4015 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4016 (dwarf_expr_get_obj_addr): New function.
4017 (dwarf_expr_ctx_funcs): Add get_object_address field.
4018 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4019 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4020 (dwarf2_evaluate_property): Add parameter "address". Use it.
4021 (needs_get_obj_addr): New function.
4022 (needs_frame_ctx_funcs): Add get_object_address field.
4023 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4024 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4025 (resolve_dynamic_array): Likewise.
4027 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4029 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4030 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4031 fixed value for records and unions for which some GNAT encodings
4034 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4036 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4037 rewrite to avoid "else if" and "else" constructs. Should be
4038 a no-op in practice.
4040 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4042 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4045 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4048 * eval.c: Update all calls to find_overload_match.
4049 * valarith.c: Likewise.
4050 (value_user_defined_cpp_op, value_user_defined_op): New
4051 argument NOSIDE. Update all callers.
4052 * valops.c (find_overload_match): New argument NOSIDE.
4053 * value.h (find_overload_match): Update signature.
4055 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4057 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4058 'items' methods instead of 'iteritems' method on dictionaries.
4060 2014-08-15 Doug Evans <dje@google.com>
4062 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4065 2014-08-15 Doug Evans <dje@google.com>
4067 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4069 2014-08-15 Doug Evans <dje@google.com>
4071 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4073 2014-08-15 Doug Evans <dje@google.com>
4075 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4078 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4080 * dcache.h: Include target.h, to avoid compile time warnings.
4082 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4084 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4085 frame_info" partial declaration.
4086 * gdbarch.h: Regenerate.
4088 2014-08-15 Yao Qi <yao@codesourcery.com>
4090 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4091 Add parameter 'decode_for_pst_p'. Callers update.
4093 2014-08-13 Yao Qi <yao@codesourcery.com>
4096 * configure.ac: Use local variable 'pos'.
4097 * configure: Regenerated.
4099 2014-08-11 Doug Evans <dje@google.com>
4101 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4102 message, it is redundant with "Reading symbols from ..." message.
4104 2014-08-10 Doug Evans <xdje42@gmail.com>
4106 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4108 2014-08-09 Yao Qi <yao@codesourcery.com>
4111 * remote.c (remote_xfer_partial): Remove dead code.
4113 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4115 * ia64-linux-tdep.c: Include "regset.h".
4116 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4117 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4118 (ia64_linux_supply_fpregset): New function.
4119 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4120 (ia64_linux_regset_from_core_section): New function.
4121 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4124 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4126 * m68klinux-tdep.c: Include "regset.h".
4127 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4128 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4129 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4130 (m68k_linux_regset_from_core_section): New function.
4131 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4134 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4136 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4137 function. Move logic to...
4138 (tilegx_linux_regmap): ... this new register map.
4139 (tilegx_linux_regset): Refer to register map, replace supply
4140 method by regcache_supply_regset, and add collect method.
4141 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4142 TILEGX_FIRST_EASY_REGNUM.
4144 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4146 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4147 that calls regcache_supply_regset and handles the EPC register
4148 separately. Move main logic to...
4149 (score7_linux_gregmap): ... this new register map.
4150 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4151 (score7_linux_gregset): Refer to register map. Add collect method.
4152 (score7_linux_regset_from_core_section): Replace
4153 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4154 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4155 (struct regset): Delete unused forward declaraction.
4156 (struct pt_regs): Delete structure definition.
4157 (elf_gregset_t): Delete typedef.
4159 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4161 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4162 (nios2_core_regset): Add collect method.
4164 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4166 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4167 platform-independent and don't write to read-only input buffer.
4168 (m32r_linux_collect_gregset): New function.
4169 (m32r_linux_gregset): Add collect method.
4171 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4173 * hppa-linux-tdep.c (greg_map): Rename to...
4174 (hppa_linux_gregmap): ... this. Also convert to
4175 regcache_map_entry format.
4176 (hppa_linux_supply_regset): Delete function.
4177 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4178 (hppa_linux_fpregmap): ... this new register map.
4179 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4180 register map, replace supply method by regcache_supply_regset, and
4181 add collect method regcache_collect_regset.
4183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4185 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4186 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4187 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4188 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4189 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4190 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4191 (frv_linux_supply_gregset): Replace main logic by call to
4192 regcache_supply_regset, but keep clearing gr32-gr63.
4193 (frv_linux_supply_fpregset): Delete function.
4194 (frv_linux_gregset): Refer to appropriate register map and add
4195 regcache_collect_regset as the collect method.
4196 (frv_linux_fpregset): Likewise. Also exchange the supply method
4197 by regcache_supply_regset.
4199 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4201 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4202 by call to alpha_supply_int_regs.
4203 (alpha_linux_collect_gregset): New function.
4204 (alpha_linux_supply_fpregset): Replace logic by call to
4205 alpha_supply_fp_regs.
4206 (alpha_linux_collect_fpregset): New function.
4207 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4209 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4211 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4212 by call to regcache_collect_regset.
4213 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4214 instead of aarch64_linux_supply_gregset/_fpregset.
4215 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4216 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4217 header file instead.
4218 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4219 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4220 functions. Move logic to ...
4221 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4223 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4224 refer to new register maps, replace *_regset_from_core by
4225 regcache_supply_regset, and also use regcache_collect_regset.
4226 * aarch64-linux-tdep.h: Include "regset.h".
4227 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4229 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4230 macros, moved from C source file.
4231 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4232 variable declarations.
4234 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4236 * s390-linux-nat.c: Include "regset.h".
4237 (regmap_gregset): Delete macro.
4238 (s390_64_regmap_gregset): New register map for
4239 regcache_supply/_collect_regset.
4240 (s390_64_gregset): New regset.
4241 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4242 (regmap_fpregset): Delete macro.
4243 (s390_native_supply, s390_native_collect): Delete functions.
4244 (supply_gregset, fill_gregset): Replace s390-specific regmap
4245 handling by a call to regcache_supply/_collect_regset.
4246 (supply_fpregset, fill_fpregset): Call regcache_supply/
4247 _collect_regset instead of s390_native_supply/_collect.
4248 (fetch_regset, store_regset): Likewise. Also change the last
4249 parameter to a regset instead of a regmap.
4250 (s390_linux_fetch_inferior_registers)
4251 (390_linux_store_inferior_registers): Adjust last parameter in
4252 calls to fetch_regset and store_regset.
4253 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4254 (s390_gregmap): ... this. Also make static const and convert to
4255 regcache_map_entry format.
4256 (s390x_regmap_gregset): Delete.
4257 (s390_regmap_fpregset): Rename to...
4258 (s390_fpregmap): ... this. Make static const and convert to
4259 regcache_map_entry format.
4260 (s390_regmap_upper, s390_regmap_last_break)
4261 (s390x_regmap_last_break, s390_regmap_system_call)
4262 (s390_regmap_tdb): Likewise.
4263 (s390_supply_regset, s390_collect_regset): Remove functions.
4264 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4266 (s390_gregset, s390_fpregset, s390_upper_regset)
4267 (s390_last_break_regset, s390x_last_break_regset)
4268 (s390_system_call_regset, s390_tdb_regset): Make global and
4269 replace s390_supply/_collect_regset by regcache_supply/
4271 (s390x_gregset): Delete.
4272 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4273 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4274 (s390_regmap_fpregset, s390_regmap_last_break)
4275 (s390x_regmap_last_break, s390_regmap_system_call)
4276 (s390_regmap_tdb): Delete global variable declarations.
4277 (s390_gregset, s390_fpregset, s390_last_break_regset)
4278 (s390x_last_break_regset, s390_system_call_regset)
4279 (s390_tdb_regset): New global variable declarations.
4281 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4283 * regcache.c: Include "regset.h".
4284 (regcache_transfer_regset): New local function.
4285 (regcache_supply_regset, regcache_collect_regset): New functions.
4286 * regcache.h (struct regcache_map_entry): New structure.
4287 (REGCACHE_MAP_SKIP): New enum value.
4288 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4290 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4292 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4293 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4294 (ppc_linux_collect_gregset ): Likewise.
4295 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4296 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4297 (ppc_collect_vrregset): Likewise.
4298 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4301 2014-08-07 Yao Qi <yao@codesourcery.com>
4303 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4304 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4305 * remote.c (remote_read_bytes): Likewise.
4307 2014-08-07 Yao Qi <yao@codesourcery.com>
4309 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4311 2014-08-07 Yao Qi <yao@codesourcery.com>
4314 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4315 TARGET_XFER_OK instead of 0.
4317 2014-08-07 Gary Benson <gbenson@redhat.com>
4319 * common/common-defs.h: Include errno.h.
4320 * defs.h: Do not include errno.h.
4321 * ada-typeprint.c: Likewise.
4322 * c-typeprint.c: Likewise.
4323 * core-regset.c: Likewise.
4324 * corefile.c: Likewise.
4325 * corelow.c: Likewise.
4326 * event-loop.c: Likewise.
4327 * f-typeprint.c: Likewise.
4328 * gnu-nat.c: Likewise.
4329 * go32-nat.c: Likewise.
4330 * i386gnu-nat.c: Likewise.
4331 * m2-typeprint.c: Likewise.
4332 * nat/linux-btrace.c: Likewise.
4333 * p-typeprint.c: Likewise.
4334 * procfs.c: Likewise.
4335 * remote-sim.c: Likewise.
4336 * rs6000-nat.c: Likewise.
4337 * target.c: Likewise.
4338 * typeprint.c: Likewise.
4339 * ui-file.c: Likewise.
4340 * valops.c: Likewise.
4341 * valprint.c: Likewise.
4343 2014-08-07 Gary Benson <gbenson@redhat.com>
4345 * common/common-defs.h: Include string.h.
4346 * aarch64-tdep.c: Do not include string.h.
4347 * ada-exp.y: Likewise.
4348 * ada-lang.c: Likewise.
4349 * ada-lex.l: Likewise.
4350 * ada-typeprint.c: Likewise.
4351 * ada-valprint.c: Likewise.
4352 * aix-thread.c: Likewise.
4353 * alpha-linux-tdep.c: Likewise.
4354 * alpha-mdebug-tdep.c: Likewise.
4355 * alpha-nat.c: Likewise.
4356 * alpha-osf1-tdep.c: Likewise.
4357 * alpha-tdep.c: Likewise.
4358 * alphanbsd-tdep.c: Likewise.
4359 * amd64-dicos-tdep.c: Likewise.
4360 * amd64-linux-tdep.c: Likewise.
4361 * amd64-nat.c: Likewise.
4362 * amd64-sol2-tdep.c: Likewise.
4363 * amd64fbsd-tdep.c: Likewise.
4364 * amd64obsd-tdep.c: Likewise.
4365 * arch-utils.c: Likewise.
4366 * arm-linux-nat.c: Likewise.
4367 * arm-linux-tdep.c: Likewise.
4368 * arm-tdep.c: Likewise.
4369 * arm-wince-tdep.c: Likewise.
4370 * armbsd-tdep.c: Likewise.
4371 * armnbsd-nat.c: Likewise.
4372 * armnbsd-tdep.c: Likewise.
4373 * armobsd-tdep.c: Likewise.
4374 * avr-tdep.c: Likewise.
4375 * ax-gdb.c: Likewise.
4376 * ax-general.c: Likewise.
4377 * bcache.c: Likewise.
4378 * bfin-tdep.c: Likewise.
4379 * breakpoint.c: Likewise.
4380 * build-id.c: Likewise.
4381 * buildsym.c: Likewise.
4382 * c-exp.y: Likewise.
4383 * c-lang.c: Likewise.
4384 * c-typeprint.c: Likewise.
4385 * c-valprint.c: Likewise.
4386 * charset.c: Likewise.
4387 * cli-out.c: Likewise.
4388 * cli/cli-cmds.c: Likewise.
4389 * cli/cli-decode.c: Likewise.
4390 * cli/cli-dump.c: Likewise.
4391 * cli/cli-interp.c: Likewise.
4392 * cli/cli-logging.c: Likewise.
4393 * cli/cli-script.c: Likewise.
4394 * cli/cli-setshow.c: Likewise.
4395 * cli/cli-utils.c: Likewise.
4396 * coffread.c: Likewise.
4397 * common/agent.c: Likewise.
4398 * common/buffer.c: Likewise.
4399 * common/buffer.h: Likewise.
4400 * common/common-utils.c: Likewise.
4401 * common/filestuff.c: Likewise.
4402 * common/filestuff.c: Likewise.
4403 * common/format.c: Likewise.
4404 * common/print-utils.c: Likewise.
4405 * common/rsp-low.c: Likewise.
4406 * common/signals.c: Likewise.
4407 * common/vec.h: Likewise.
4408 * common/xml-utils.c: Likewise.
4409 * core-regset.c: Likewise.
4410 * corefile.c: Likewise.
4411 * corelow.c: Likewise.
4412 * cp-abi.c: Likewise.
4413 * cp-name-parser.y: Likewise.
4414 * cp-support.c: Likewise.
4415 * cp-valprint.c: Likewise.
4416 * cris-tdep.c: Likewise.
4417 * d-exp.y: Likewise.
4418 * darwin-nat.c: Likewise.
4419 * dbxread.c: Likewise.
4420 * dcache.c: Likewise.
4421 * demangle.c: Likewise.
4422 * dicos-tdep.c: Likewise.
4423 * disasm.c: Likewise.
4424 * doublest.c: Likewise.
4425 * dsrec.c: Likewise.
4426 * dummy-frame.c: Likewise.
4427 * dwarf2-frame.c: Likewise.
4428 * dwarf2loc.c: Likewise.
4429 * dwarf2read.c: Likewise.
4430 * elfread.c: Likewise.
4431 * environ.c: Likewise.
4433 * event-loop.c: Likewise.
4434 * exceptions.c: Likewise.
4436 * expprint.c: Likewise.
4437 * f-exp.y: Likewise.
4438 * f-lang.c: Likewise.
4439 * f-typeprint.c: Likewise.
4440 * f-valprint.c: Likewise.
4441 * fbsd-nat.c: Likewise.
4442 * findcmd.c: Likewise.
4443 * findvar.c: Likewise.
4444 * fork-child.c: Likewise.
4445 * frame.c: Likewise.
4446 * frv-linux-tdep.c: Likewise.
4447 * frv-tdep.c: Likewise.
4449 * gdb_bfd.c: Likewise.
4450 * gdbarch.c: Likewise.
4451 * gdbarch.sh: Likewise.
4452 * gdbtypes.c: Likewise.
4453 * gnu-nat.c: Likewise.
4454 * gnu-v2-abi.c: Likewise.
4455 * gnu-v3-abi.c: Likewise.
4456 * go-exp.y: Likewise.
4457 * go-lang.c: Likewise.
4458 * go32-nat.c: Likewise.
4459 * guile/guile.c: Likewise.
4460 * guile/scm-auto-load.c: Likewise.
4461 * hppa-hpux-tdep.c: Likewise.
4462 * hppa-linux-nat.c: Likewise.
4463 * hppanbsd-tdep.c: Likewise.
4464 * hppaobsd-tdep.c: Likewise.
4465 * i386-cygwin-tdep.c: Likewise.
4466 * i386-dicos-tdep.c: Likewise.
4467 * i386-linux-tdep.c: Likewise.
4468 * i386-nto-tdep.c: Likewise.
4469 * i386-sol2-tdep.c: Likewise.
4470 * i386-tdep.c: Likewise.
4471 * i386bsd-tdep.c: Likewise.
4472 * i386gnu-nat.c: Likewise.
4473 * i386nbsd-tdep.c: Likewise.
4474 * i386obsd-tdep.c: Likewise.
4475 * i387-tdep.c: Likewise.
4476 * ia64-libunwind-tdep.c: Likewise.
4477 * ia64-linux-nat.c: Likewise.
4478 * inf-child.c: Likewise.
4479 * inf-ptrace.c: Likewise.
4480 * inf-ttrace.c: Likewise.
4481 * infcall.c: Likewise.
4482 * infcmd.c: Likewise.
4483 * inflow.c: Likewise.
4484 * infrun.c: Likewise.
4485 * interps.c: Likewise.
4486 * iq2000-tdep.c: Likewise.
4487 * irix5-nat.c: Likewise.
4488 * jv-exp.y: Likewise.
4489 * jv-lang.c: Likewise.
4490 * jv-typeprint.c: Likewise.
4491 * jv-valprint.c: Likewise.
4492 * language.c: Likewise.
4493 * linux-fork.c: Likewise.
4494 * linux-nat.c: Likewise.
4495 * lm32-tdep.c: Likewise.
4496 * m2-exp.y: Likewise.
4497 * m2-typeprint.c: Likewise.
4498 * m32c-tdep.c: Likewise.
4499 * m32r-linux-nat.c: Likewise.
4500 * m32r-linux-tdep.c: Likewise.
4501 * m32r-rom.c: Likewise.
4502 * m32r-tdep.c: Likewise.
4503 * m68hc11-tdep.c: Likewise.
4504 * m68k-tdep.c: Likewise.
4505 * m68kbsd-tdep.c: Likewise.
4506 * m68klinux-nat.c: Likewise.
4507 * m68klinux-tdep.c: Likewise.
4508 * m88k-tdep.c: Likewise.
4509 * machoread.c: Likewise.
4510 * macrocmd.c: Likewise.
4512 * mdebugread.c: Likewise.
4513 * mem-break.c: Likewise.
4514 * memattr.c: Likewise.
4515 * memory-map.c: Likewise.
4516 * mep-tdep.c: Likewise.
4517 * mi/mi-cmd-break.c: Likewise.
4518 * mi/mi-cmd-disas.c: Likewise.
4519 * mi/mi-cmd-env.c: Likewise.
4520 * mi/mi-cmd-stack.c: Likewise.
4521 * mi/mi-cmd-var.c: Likewise.
4522 * mi/mi-cmds.c: Likewise.
4523 * mi/mi-console.c: Likewise.
4524 * mi/mi-getopt.c: Likewise.
4525 * mi/mi-interp.c: Likewise.
4526 * mi/mi-main.c: Likewise.
4527 * mi/mi-parse.c: Likewise.
4528 * microblaze-rom.c: Likewise.
4529 * microblaze-tdep.c: Likewise.
4530 * mingw-hdep.c: Likewise.
4531 * minidebug.c: Likewise.
4532 * minsyms.c: Likewise.
4533 * mips-irix-tdep.c: Likewise.
4534 * mips-linux-tdep.c: Likewise.
4535 * mips-tdep.c: Likewise.
4536 * mips64obsd-tdep.c: Likewise.
4537 * mipsnbsd-tdep.c: Likewise.
4538 * mipsread.c: Likewise.
4539 * mn10300-linux-tdep.c: Likewise.
4540 * mn10300-tdep.c: Likewise.
4541 * monitor.c: Likewise.
4542 * moxie-tdep.c: Likewise.
4543 * mt-tdep.c: Likewise.
4544 * nat/linux-btrace.c: Likewise.
4545 * nat/linux-osdata.c: Likewise.
4546 * nat/linux-procfs.c: Likewise.
4547 * nat/linux-ptrace.c: Likewise.
4548 * nat/linux-waitpid.c: Likewise.
4549 * nbsd-tdep.c: Likewise.
4550 * nios2-linux-tdep.c: Likewise.
4551 * nto-procfs.c: Likewise.
4552 * nto-tdep.c: Likewise.
4553 * objc-lang.c: Likewise.
4554 * objfiles.c: Likewise.
4555 * opencl-lang.c: Likewise.
4556 * osabi.c: Likewise.
4557 * osdata.c: Likewise.
4558 * p-exp.y: Likewise.
4559 * p-lang.c: Likewise.
4560 * p-typeprint.c: Likewise.
4561 * parse.c: Likewise.
4562 * posix-hdep.c: Likewise.
4563 * ppc-linux-nat.c: Likewise.
4564 * ppc-sysv-tdep.c: Likewise.
4565 * ppcfbsd-tdep.c: Likewise.
4566 * ppcnbsd-tdep.c: Likewise.
4567 * ppcobsd-tdep.c: Likewise.
4568 * printcmd.c: Likewise.
4569 * procfs.c: Likewise.
4570 * prologue-value.c: Likewise.
4571 * python/py-auto-load.c: Likewise.
4572 * python/py-gdb-readline.c: Likewise.
4573 * ravenscar-thread.c: Likewise.
4574 * regcache.c: Likewise.
4575 * registry.c: Likewise.
4576 * remote-fileio.c: Likewise.
4577 * remote-m32r-sdi.c: Likewise.
4578 * remote-mips.c: Likewise.
4579 * remote-notif.c: Likewise.
4580 * remote-sim.c: Likewise.
4581 * remote.c: Likewise.
4582 * reverse.c: Likewise.
4583 * rs6000-aix-tdep.c: Likewise.
4584 * ser-base.c: Likewise.
4585 * ser-go32.c: Likewise.
4586 * ser-mingw.c: Likewise.
4587 * ser-pipe.c: Likewise.
4588 * ser-tcp.c: Likewise.
4589 * ser-unix.c: Likewise.
4590 * serial.c: Likewise.
4591 * sh-tdep.c: Likewise.
4592 * sh64-tdep.c: Likewise.
4593 * shnbsd-tdep.c: Likewise.
4595 * sol-thread.c: Likewise.
4596 * solib-dsbt.c: Likewise.
4597 * solib-frv.c: Likewise.
4598 * solib-osf.c: Likewise.
4599 * solib-som.c: Likewise.
4600 * solib-spu.c: Likewise.
4601 * solib-target.c: Likewise.
4602 * solib.c: Likewise.
4603 * somread.c: Likewise.
4604 * source.c: Likewise.
4605 * sparc-nat.c: Likewise.
4606 * sparc-sol2-tdep.c: Likewise.
4607 * sparc-tdep.c: Likewise.
4608 * sparc64-tdep.c: Likewise.
4609 * sparc64fbsd-tdep.c: Likewise.
4610 * sparc64nbsd-tdep.c: Likewise.
4611 * sparcnbsd-tdep.c: Likewise.
4612 * spu-linux-nat.c: Likewise.
4613 * spu-multiarch.c: Likewise.
4614 * spu-tdep.c: Likewise.
4615 * stabsread.c: Likewise.
4616 * stack.c: Likewise.
4617 * std-regs.c: Likewise.
4618 * symfile.c: Likewise.
4619 * symmisc.c: Likewise.
4620 * symtab.c: Likewise.
4621 * target.c: Likewise.
4622 * thread.c: Likewise.
4623 * tilegx-linux-nat.c: Likewise.
4624 * tilegx-tdep.c: Likewise.
4626 * tracepoint.c: Likewise.
4627 * tui/tui-command.c: Likewise.
4628 * tui/tui-data.c: Likewise.
4629 * tui/tui-disasm.c: Likewise.
4630 * tui/tui-file.c: Likewise.
4631 * tui/tui-layout.c: Likewise.
4632 * tui/tui-out.c: Likewise.
4633 * tui/tui-regs.c: Likewise.
4634 * tui/tui-source.c: Likewise.
4635 * tui/tui-stack.c: Likewise.
4636 * tui/tui-win.c: Likewise.
4637 * tui/tui-windata.c: Likewise.
4638 * tui/tui-winsource.c: Likewise.
4639 * typeprint.c: Likewise.
4640 * ui-file.c: Likewise.
4641 * ui-out.c: Likewise.
4642 * user-regs.c: Likewise.
4643 * utils.c: Likewise.
4644 * v850-tdep.c: Likewise.
4645 * valarith.c: Likewise.
4646 * valops.c: Likewise.
4647 * valprint.c: Likewise.
4648 * value.c: Likewise.
4649 * varobj.c: Likewise.
4650 * vax-tdep.c: Likewise.
4651 * vaxnbsd-tdep.c: Likewise.
4652 * vaxobsd-tdep.c: Likewise.
4653 * windows-nat.c: Likewise.
4654 * xcoffread.c: Likewise.
4655 * xml-support.c: Likewise.
4656 * xstormy16-tdep.c: Likewise.
4657 * xtensa-linux-nat.c: Likewise.
4659 2014-08-07 Gary Benson <gbenson@redhat.com>
4661 * common/common-defs.h: Include gdb_assert.h.
4662 * aarch64-tdep.c: Do not include gdb_assert.h.
4663 * addrmap.c: Likewise.
4664 * aix-thread.c: Likewise.
4665 * alpha-linux-tdep.c: Likewise.
4666 * alpha-mdebug-tdep.c: Likewise.
4667 * alphanbsd-tdep.c: Likewise.
4668 * amd64-nat.c: Likewise.
4669 * amd64-tdep.c: Likewise.
4670 * amd64bsd-nat.c: Likewise.
4671 * amd64fbsd-nat.c: Likewise.
4672 * amd64fbsd-tdep.c: Likewise.
4673 * amd64nbsd-nat.c: Likewise.
4674 * amd64nbsd-tdep.c: Likewise.
4675 * amd64obsd-nat.c: Likewise.
4676 * amd64obsd-tdep.c: Likewise.
4677 * arch-utils.c: Likewise.
4678 * arm-tdep.c: Likewise.
4679 * armbsd-tdep.c: Likewise.
4681 * bcache.c: Likewise.
4682 * bfin-tdep.c: Likewise.
4683 * blockframe.c: Likewise.
4684 * breakpoint.c: Likewise.
4685 * bsd-kvm.c: Likewise.
4686 * bsd-uthread.c: Likewise.
4687 * buildsym.c: Likewise.
4688 * c-exp.y: Likewise.
4689 * c-lang.c: Likewise.
4690 * charset.c: Likewise.
4691 * cleanups.c: Likewise.
4692 * cli-out.c: Likewise.
4693 * cli/cli-decode.c: Likewise.
4694 * cli/cli-dump.c: Likewise.
4695 * cli/cli-logging.c: Likewise.
4696 * cli/cli-script.c: Likewise.
4697 * cli/cli-utils.c: Likewise.
4698 * coffread.c: Likewise.
4699 * common/common-utils.c: Likewise.
4700 * common/queue.h: Likewise.
4701 * common/signals.c: Likewise.
4702 * common/vec.h: Likewise.
4703 * complaints.c: Likewise.
4704 * completer.c: Likewise.
4705 * corelow.c: Likewise.
4706 * cp-abi.c: Likewise.
4707 * cp-name-parser.y: Likewise.
4708 * cp-namespace.c: Likewise.
4709 * cp-support.c: Likewise.
4710 * cris-tdep.c: Likewise.
4711 * dbxread.c: Likewise.
4712 * dictionary.c: Likewise.
4713 * doublest.c: Likewise.
4714 * dsrec.c: Likewise.
4715 * dummy-frame.c: Likewise.
4716 * dwarf2-frame-tailcall.c: Likewise.
4717 * dwarf2-frame.c: Likewise.
4718 * dwarf2expr.c: Likewise.
4719 * dwarf2loc.c: Likewise.
4720 * dwarf2read.c: Likewise.
4722 * event-loop.c: Likewise.
4723 * exceptions.c: Likewise.
4724 * expprint.c: Likewise.
4725 * f-valprint.c: Likewise.
4726 * fbsd-nat.c: Likewise.
4727 * findvar.c: Likewise.
4728 * frame-unwind.c: Likewise.
4729 * frame.c: Likewise.
4730 * frv-tdep.c: Likewise.
4731 * gcore.c: Likewise.
4732 * gdb-dlfcn.c: Likewise.
4733 * gdb_bfd.c: Likewise.
4734 * gdbarch.c: Likewise.
4735 * gdbarch.sh: Likewise.
4736 * gdbtypes.c: Likewise.
4737 * gnu-nat.c: Likewise.
4738 * gnu-v3-abi.c: Likewise.
4739 * go-lang.c: Likewise.
4740 * guile/scm-exception.c: Likewise.
4741 * guile/scm-gsmob.c: Likewise.
4742 * guile/scm-lazy-string.c: Likewise.
4743 * guile/scm-math.c: Likewise.
4744 * guile/scm-pretty-print.c: Likewise.
4745 * guile/scm-safe-call.c: Likewise.
4746 * guile/scm-utils.c: Likewise.
4747 * guile/scm-value.c: Likewise.
4748 * h8300-tdep.c: Likewise.
4749 * hppa-hpux-nat.c: Likewise.
4750 * hppa-tdep.c: Likewise.
4751 * hppanbsd-tdep.c: Likewise.
4752 * hppaobsd-tdep.c: Likewise.
4753 * i386-darwin-nat.c: Likewise.
4754 * i386-darwin-tdep.c: Likewise.
4755 * i386-nto-tdep.c: Likewise.
4756 * i386-tdep.c: Likewise.
4757 * i386bsd-nat.c: Likewise.
4758 * i386fbsd-tdep.c: Likewise.
4759 * i386gnu-nat.c: Likewise.
4760 * i386nbsd-tdep.c: Likewise.
4761 * i386obsd-tdep.c: Likewise.
4762 * i387-tdep.c: Likewise.
4763 * ia64-libunwind-tdep.c: Likewise.
4764 * ia64-tdep.c: Likewise.
4765 * inf-ptrace.c: Likewise.
4766 * inf-ttrace.c: Likewise.
4767 * infcall.c: Likewise.
4768 * infcmd.c: Likewise.
4769 * infrun.c: Likewise.
4770 * inline-frame.c: Likewise.
4771 * interps.c: Likewise.
4772 * jv-lang.c: Likewise.
4773 * jv-typeprint.c: Likewise.
4774 * linux-fork.c: Likewise.
4775 * linux-nat.c: Likewise.
4776 * linux-thread-db.c: Likewise.
4777 * m32c-tdep.c: Likewise.
4778 * m32r-linux-nat.c: Likewise.
4779 * m32r-tdep.c: Likewise.
4780 * m68k-tdep.c: Likewise.
4781 * m68kbsd-nat.c: Likewise.
4782 * m68kbsd-tdep.c: Likewise.
4783 * m88k-tdep.c: Likewise.
4784 * machoread.c: Likewise.
4785 * macroexp.c: Likewise.
4786 * macrotab.c: Likewise.
4787 * maint.c: Likewise.
4788 * mdebugread.c: Likewise.
4789 * memory-map.c: Likewise.
4790 * mep-tdep.c: Likewise.
4791 * mi/mi-common.c: Likewise.
4792 * microblaze-tdep.c: Likewise.
4793 * mingw-hdep.c: Likewise.
4794 * mips-linux-nat.c: Likewise.
4795 * mips-linux-tdep.c: Likewise.
4796 * mips-tdep.c: Likewise.
4797 * mips64obsd-tdep.c: Likewise.
4798 * mipsnbsd-tdep.c: Likewise.
4799 * mn10300-linux-tdep.c: Likewise.
4800 * mn10300-tdep.c: Likewise.
4801 * moxie-tdep.c: Likewise.
4802 * mt-tdep.c: Likewise.
4803 * nat/linux-btrace.c: Likewise.
4804 * nat/linux-osdata.c: Likewise.
4805 * nat/linux-ptrace.c: Likewise.
4806 * nat/mips-linux-watch.c: Likewise.
4807 * nios2-linux-tdep.c: Likewise.
4808 * nios2-tdep.c: Likewise.
4809 * objc-lang.c: Likewise.
4810 * objfiles.c: Likewise.
4811 * obsd-nat.c: Likewise.
4812 * opencl-lang.c: Likewise.
4813 * osabi.c: Likewise.
4814 * parse.c: Likewise.
4815 * ppc-linux-nat.c: Likewise.
4816 * ppc-sysv-tdep.c: Likewise.
4817 * ppcfbsd-nat.c: Likewise.
4818 * ppcfbsd-tdep.c: Likewise.
4819 * ppcnbsd-nat.c: Likewise.
4820 * ppcnbsd-tdep.c: Likewise.
4821 * ppcobsd-nat.c: Likewise.
4822 * ppcobsd-tdep.c: Likewise.
4823 * printcmd.c: Likewise.
4824 * procfs.c: Likewise.
4825 * prologue-value.c: Likewise.
4826 * psymtab.c: Likewise.
4827 * python/py-lazy-string.c: Likewise.
4828 * python/py-value.c: Likewise.
4829 * regcache.c: Likewise.
4830 * reggroups.c: Likewise.
4831 * registry.c: Likewise.
4832 * remote-sim.c: Likewise.
4833 * remote.c: Likewise.
4834 * rs6000-aix-tdep.c: Likewise.
4835 * rs6000-tdep.c: Likewise.
4836 * s390-linux-tdep.c: Likewise.
4837 * score-tdep.c: Likewise.
4838 * ser-base.c: Likewise.
4839 * ser-mingw.c: Likewise.
4840 * sh-tdep.c: Likewise.
4841 * sh64-tdep.c: Likewise.
4842 * solib-darwin.c: Likewise.
4843 * solib-spu.c: Likewise.
4844 * solib-svr4.c: Likewise.
4845 * source.c: Likewise.
4846 * sparc-nat.c: Likewise.
4847 * sparc-sol2-tdep.c: Likewise.
4848 * sparc-tdep.c: Likewise.
4849 * sparc64-sol2-tdep.c: Likewise.
4850 * sparc64-tdep.c: Likewise.
4851 * sparc64fbsd-tdep.c: Likewise.
4852 * sparc64nbsd-tdep.c: Likewise.
4853 * sparc64obsd-tdep.c: Likewise.
4854 * sparcnbsd-tdep.c: Likewise.
4855 * sparcobsd-tdep.c: Likewise.
4856 * spu-multiarch.c: Likewise.
4857 * spu-tdep.c: Likewise.
4858 * stabsread.c: Likewise.
4859 * stack.c: Likewise.
4860 * symfile.c: Likewise.
4861 * symtab.c: Likewise.
4862 * target-descriptions.c: Likewise.
4863 * target-memory.c: Likewise.
4864 * target.c: Likewise.
4865 * tic6x-linux-tdep.c: Likewise.
4866 * tic6x-tdep.c: Likewise.
4867 * tilegx-linux-nat.c: Likewise.
4868 * tilegx-tdep.c: Likewise.
4870 * tramp-frame.c: Likewise.
4871 * tui/tui-out.c: Likewise.
4872 * tui/tui-winsource.c: Likewise.
4873 * ui-out.c: Likewise.
4874 * user-regs.c: Likewise.
4875 * utils.c: Likewise.
4876 * v850-tdep.c: Likewise.
4877 * valops.c: Likewise.
4878 * value.c: Likewise.
4879 * varobj.c: Likewise.
4880 * vax-nat.c: Likewise.
4881 * xml-syscall.c: Likewise.
4882 * xml-tdesc.c: Likewise.
4883 * xstormy16-tdep.c: Likewise.
4884 * xtensa-linux-nat.c: Likewise.
4885 * xtensa-tdep.c: Likewise.
4887 2014-08-07 Gary Benson <gbenson@redhat.com>
4889 * common/common-defs.h: Include common-utils.h.
4890 * defs.h: Do not include common-utils.h.
4891 * common/gdb_assert.h: Likewise.
4892 * darwin-nat.h: Likewise.
4893 * nat/linux-btrace.c: Likewise.
4894 * target/waitstatus.h: Likewise.
4896 2014-08-07 Gary Benson <gbenson@redhat.com>
4898 * common/common-defs.h: Include ptid.h.
4899 * defs.h: Do not include ptid.h.
4900 * inferior.h: Likewise.
4901 * infrun.h: Likewise.
4902 * nat/linux-btrace.h: Likewise.
4903 * nat/linux-osdata.h: Likewise.
4904 * target/waitstatus.h: Likewise.
4906 2014-08-07 Gary Benson <gbenson@redhat.com>
4908 * common/common-defs.h: Include gdb_locale.h.
4909 * defs.h: Do not include gdb_locale.h.
4911 2014-08-07 Gary Benson <gbenson@redhat.com>
4913 * common/common-defs.h: Include gdb/signals.h.
4914 * defs.h: Do not include gdb/signals.h.
4916 2014-08-07 Gary Benson <gbenson@redhat.com>
4918 * common/common-defs.h: Include pathmax.h.
4919 * defs.h: Do not include pathmax.h.
4921 2014-08-07 Gary Benson <gbenson@redhat.com>
4923 * common/common-defs.h: Include libiberty.h.
4924 * defs.h: Do not include libiberty.h.
4925 * common/queue.h: Likewise.
4926 * cp-name-parser.y: Likewise.
4927 * mi/mi-cmd-catch.c: Likewise.
4928 * python/python.c: Likewise.
4930 2014-08-07 Gary Benson <gbenson@redhat.com>
4932 * common/common-defs.h: Include ansidecl.h.
4933 * defs.h: Do not include ansidecl.h.
4934 * common/buffer.h: Likewise.
4935 * common/common-utils.h: Likewise.
4937 2014-08-07 Gary Benson <gbenson@redhat.com>
4939 * common/common-defs.h: Include stddef.h.
4940 * defs.h: Do not include stddef.h.
4941 * common/common-utils.h: Likewise.
4942 * amd64fbsd-nat.c: Likewise.
4943 * bcache.c: Likewise.
4944 * charset.c: Likewise.
4945 * common/buffer.h: Likewise.
4946 * common/vec.h: Likewise.
4947 * i386bsd-nat.c: Likewise.
4948 * nat/linux-btrace.h: Likewise.
4949 * ppcfbsd-nat.c: Likewise.
4950 * ppcnbsd-tdep.h: Likewise.
4951 * ppcobsd-nat.c: Likewise.
4952 * ppcobsd-tdep.h: Likewise.
4953 * python/py-gdb-readline.c: Likewise.
4955 2014-08-07 Gary Benson <gbenson@redhat.com>
4957 * common/common-defs.h: Include stdarg.h.
4958 * defs.h: Do not include stdarg.h.
4959 * ada-lang.c: Likewise.
4960 * common/common-utils.h: Likewise.
4961 * guile/scm-string.c: Likewise.
4962 * guile/scm-utils.c: Likewise.
4963 * m32c-tdep.c: Likewise.
4965 2014-08-07 Gary Benson <gbenson@redhat.com>
4967 * common/common-defs.h: Include stdlib.h.
4968 * defs.h: Do not include stdlib.h.
4969 * addrmap.c: Likewise.
4970 * bcache.c: Likewise.
4971 * common/buffer.c: Likewise.
4972 * common/common-utils.c: Likewise.
4973 * cp-name-parser.y: Likewise.
4974 * go32-nat.c: Likewise.
4975 * mn10300-linux-tdep.c: Likewise.
4976 * nat/linux-osdata.c: Likewise.
4977 * tui/tui.c: Likewise.
4978 * windows-nat.c: Likewise.
4980 2014-08-07 Gary Benson <gbenson@redhat.com>
4982 * common/common-defs.h: Include stdio.h.
4983 * defs.h: Do not include stdio.h.
4984 * ada-lang.c: Likewise.
4985 * common/buffer.c: Likewise.
4986 * common/common-utils.c: Likewise.
4987 * cp-name-parser.y: Likewise.
4988 * gnu-nat.c: Likewise.
4989 * go32-nat.c: Likewise.
4990 * i386gnu-nat.c: Likewise.
4991 * proc-api.c: Likewise.
4992 * proc-events.c: Likewise.
4993 * proc-flags.c: Likewise.
4994 * proc-why.c: Likewise.
4995 * python/python-internal.h: Likewise.
4996 * target-memory.c: Likewise.
4997 * tui/tui-io.c: Likewise.
4998 * tui/tui.c: Likewise.
5000 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5002 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5003 (scan_dyntag_auxv): Same.
5005 2014-08-06 Yao Qi <yao@codesourcery.com>
5007 * amd64-linux-nat.c: Remove duplicated include
5009 * i386-linux-nat.c: Likewise.
5011 2014-08-06 Yao Qi <yao@codesourcery.com>
5013 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5014 operand" with "Special opcode" in comments.
5016 2014-08-05 Gary Benson <gbenson@redhat.com>
5018 * interps.c (initialize_interps): Remove prototype.
5019 (interpreter_initialized): Remove static global.
5020 (interp_add): Do not call initialize_interps.
5021 (initialize_interps): Remove function.
5023 2014-08-05 Gary Benson <gbenson@redhat.com>
5025 * utils.c (vwarning): Remove spurious va_end.
5027 2014-08-05 Alan Modra <amodra@gmail.com>
5029 * charset.c (convert_between_encodings): Cast result of obstack_base.
5030 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5031 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5032 (read_unwind_info): Use size_t for some locals.
5033 * jit.c (finalize_symtab): Likewise.
5034 * utils.c (hashtab_obstack_allocate): Likewise.
5035 * symmisc.c (print_objfile_statistics): Update format strings.
5037 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5039 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5040 (Changes in GDB 7.8): ... here.
5042 2014-08-04 Tom Tromey <tromey@redhat.com>
5044 * target.c (set_targetdebug): New function.
5045 (initialize_targets): Pass set_targetdebug when creating "set
5048 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5050 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5051 if detecting a variable-sized field that is not the last field.
5052 Fix struct type length computation.
5054 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5056 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5059 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5061 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5062 Remove "+ 8" offset in computation of CHAIN_VMA.
5064 2014-07-31 Doug Evans <dje@google.com>
5066 * inflow.c (child_terminal_inferior): Add comment.
5067 (child_terminal_ours_for_output): Add comment.
5068 (child_terminal_ours): Add comment.
5069 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5070 (linux_nat_terminal_ours): Add comment.
5072 2014-07-31 Gary Benson <gbenson@redhat.com>
5074 * common/btrace-common.h: Do not include defs.h or server.h.
5075 * nat/mips-linux-watch.h: Likewise.
5076 * gdb-dlfcn.h: Do not include defs.h.
5077 * tracefile.h: Likewise.
5079 2014-07-30 Roland McGrath <mcgrathr@google.com>
5081 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5083 2014-07-30 Tom Tromey <tromey@redhat.com>
5085 * bsd-kvm.c (bsd_kvm_open): Constify.
5086 * corelow.c (core_open): Constify.
5087 * ctf.c (ctf_open): Constify.
5088 * dbug-rom.c (dbug_open): Constify.
5089 * exec.c (exec_open): Constify.
5090 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5091 * microblaze-rom.c (picobug_open): Constify.
5092 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5094 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5095 * record-btrace.c (record_btrace_open): Constify.
5096 * record-full.c (record_full_core_open_1, record_full_open_1)
5097 (record_full_open): Constify.
5098 * remote-m32r-sdi.c (m32r_open): Constify.
5099 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5100 (rockhopper_open, lsi_open): Constify.
5101 * remote-sim.c (gdbsim_open): Constify.
5102 * remote.c (remote_open, extended_remote_open, remote_open_1):
5104 * target.h (struct target_ops) <to_open>: Make "arg" const.
5105 * tracefile-tfile.c (tfile_open): Constify.
5107 2014-07-30 Tom Tromey <tromey@redhat.com>
5109 * breakpoint.c (map_breakpoint_numbers): Update.
5110 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5111 (get_number_const): New function.
5112 (get_number): Rewrite using get_number_const.
5113 (init_number_or_range): Make "string" const.
5114 (number_is_in_list): Make "list" const.
5115 * cli/cli-utils.h (get_number_const): Declare.
5116 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5117 (init_number_or_range, number_is_in_list): Update.
5118 * printcmd.c (map_display_numbers): Update.
5119 * value.c (value_from_history_ref): Constify.
5120 * value.h (value_from_history_ref): Update.
5122 2014-07-30 Tom Tromey <tromey@redhat.com>
5124 * corefile.c (hook_type, call_extra_exec_file_hooks)
5125 (specify_exec_file_hook): Constify.
5126 * exec.c (exec_file_attach): Make "filename" const.
5127 * gdbcore.h (deprecated_exec_file_display_hook)
5128 (specify_exec_file_hook, exec_file_attach): Constify.
5129 * main.c (captured_main): Use catch_command_errors_const.
5131 2014-07-30 Tom Tromey <tromey@redhat.com>
5133 * target.c (open_target): New function.
5134 (add_target_with_completer, add_deprecated_target_alias): Use
5135 set_cmd_sfunc, set_cmd_context.
5136 (debug_to_open): Remove.
5137 (setup_target_debug): Update.
5139 2014-07-30 Yao Qi <yao@codesourcery.com>
5141 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5143 * parse.c (exp_iterate): Update comments.
5145 2014-07-30 Gary Benson <gbenson@redhat.com>
5147 * common/common-defs.h: New file.
5148 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5149 * defs.h: Include common-defs.h.
5150 Do not include config.h or build-gnulib/config.h.
5152 2014-07-30 Gary Benson <gbenson@redhat.com>
5154 * common/common-utils.h: Do not include config.h.
5155 * nat/linux-btrace.h: Likewise.
5157 2014-07-30 Gary Benson <gbenson@redhat.com>
5159 * btrace.c: Include defs.h.
5160 * common/ptid.c: Include defs.h or server.h as appropriate.
5161 * nat/mips-linux-watch.c: Likewise.
5163 2014-07-29 Tom Tromey <tromey@redhat.com>
5165 * target.c (target_is_pushed): Simplify.
5167 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5171 2014-07-29 Yao Qi <yao@codesourcery.com>
5174 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5176 2014-07-28 Doug Evans <xdje42@gmail.com>
5179 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5180 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5183 2014-07-28 Will Newton <will.newton@linaro.org>
5185 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5186 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5187 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5188 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5189 (THUMB2_EABI_SYSCALL): Likewise.
5190 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5192 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5193 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5195 2014-07-27 Doug Evans <xdje42@gmail.com>
5197 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5199 2014-07-27 Doug Evans <xdje42@gmail.com>
5201 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5203 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5204 Doug Evans <xdje42@gmail.com>
5207 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5208 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5209 * configure.ac: Try to use guild to compile an scm file, if it fails
5210 then disable guile support.
5211 * configure: Regenerate.
5212 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5214 (GUILE_COMPILED_FILES): New variable.
5215 (GUILE_FILES) Update.
5216 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5217 (stamp-guile): Compile scm files.
5218 * guile/guile.c (boot_guile_support): New function.
5219 (standard_throw_args_p): New function.
5220 (print_standard_throw_error, print_throw_error): New functions.
5221 (handle_boot_error): New function.
5222 (initialize_scheme_side): Rewrite to call boot_guile_support.
5223 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5224 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5226 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5227 Doug Evans <xdje42@gmail.com>
5230 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5231 * guile/lib/gdb/support.scm: New file.
5232 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5233 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5235 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5237 (%assert-type): Ditto, and renamed to assert-type.
5238 (%exception-print-style): Delete.
5240 2014-07-26 Doug Evans <xdje42@gmail.com>
5243 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5244 * configure: Regenerate.
5245 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5247 (PYTHON_FILES): New variable.
5248 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5249 (GUILE_FILES): New variable.
5250 (stamp-python, install-python, uninstall-python): Handle empty
5252 (stamp-guile, install-guile, uninstall-guile): Ditto.
5254 2014-07-26 Doug Evans <xdje42@gmail.com>
5257 * guile/lib/gdb.scm (pretty-printers): Export.
5258 (set-pretty-printers!): Export.
5259 * guile/lib/gdb/printing.scm (gdb module): Update.
5260 (prepend-pretty-printer!, append-pretty-printer!): Update.
5261 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5262 (pretty_printer_list_var): Delete.
5263 (pretty_printer_list): New static global.
5264 (gdbscm_pretty_printers): New function.
5265 (gdbscm_set_pretty_printers_x): New function.
5266 (ppscm_find_pretty_printer_from_gdb): Update.
5267 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5268 (gdbscm_initialize_pretty_printers): Update.
5270 2014-07-26 Doug Evans <xdje42@gmail.com>
5273 * configure.ac: Add check for header gc/gc.h.
5274 Add check for function setenv.
5275 * configure: Regenerate.
5276 * config.in: Regenerate.
5277 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5279 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5281 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5282 variation in gdbarch matching.
5284 2014-07-25 Tom Tromey <tromey@redhat.com>
5286 * exec.c (using_exec_ops): Remove.
5287 (exec_close_1): Update. Remove extraneous block, reindent.
5288 (add_target_sections): Use target_is_pushed.
5290 2014-07-25 Pedro Alves <palves@redhat.com>
5292 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5293 * monitor.c (monitor_create_inferior): Likewise.
5294 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5295 * remote-sim.c (gdbsim_create_inferior): Likewise.
5296 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5297 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5298 * windows-nat.c (do_initial_windows_stuff): Likewise.
5300 2014-07-25 Pedro Alves <palves@redhat.com>
5302 * NEWS: Mention signal passing and "signal" command changes.
5303 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5305 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5307 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5308 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5309 (jump_command): Adjust clear_proceed_status call.
5310 (signal_command): Warn if other thread that are resumed have
5311 signals that will be delivered. Adjust clear_proceed_status call.
5312 (until_next_command, finish_command)
5313 (proceed_after_attach_callback, attach_command_post_wait)
5314 (attach_command): Adjust clear_proceed_status call.
5315 * infrun.c (proceed_after_vfork_done): Likewise.
5316 (proceed_after_attach_callback): Adjust comment.
5317 (clear_proceed_status_thread): Clear stop_signal if not in pass
5319 (clear_proceed_status_callback): Delete.
5320 (clear_proceed_status): New 'step' parameter. Only clear the
5321 proceed status of threads the command being prepared is about to
5323 (proceed): If passed in an explicit signal, override stop_signal
5324 with it. Don't pass the last stop signal to the thread we're
5326 (init_wait_for_inferior): Adjust clear_proceed_status call.
5327 (switch_back_to_stepped_thread): Clear the signal if it should not
5329 * infrun.h (clear_proceed_status): New 'step' parameter.
5330 (user_visible_resume_ptid): Add comment.
5331 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5332 signal is in pass state.
5333 * remote.c (append_pending_thread_resumptions): Likewise.
5334 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5336 2014-07-25 Tom Tromey <tromey@redhat.com>
5338 * target.h (target_stopped_data_address)
5339 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5342 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5344 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5346 (avr_pointer_to_address): Likewise.
5348 2014-07-24 Tom Tromey <tromey@redhat.com>
5350 * monitor.c (compile_pattern): Update.
5351 * target.h (struct target_ops) <to_shortname, to_longname,
5354 2014-07-24 Tom Tromey <tromey@redhat.com>
5356 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5357 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5358 (add_info_alias, add_com): Make "doc" const.
5359 (print_doc_line): Make "str" const.
5360 (delete_cmd): Update.
5361 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5362 (print_doc_line): Update.
5363 * cli/cli-script.c (document_command): Update.
5364 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5365 (add_com, add_info, add_info_alias): Update.
5366 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5367 * python/py-cmd.c (cmdpy_destroyer): Update.
5369 2014-07-24 Tom Tromey <tromey@redhat.com>
5371 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5372 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5373 (help_cmd_list): Constify.
5374 (lookup_cmd): Update.
5375 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5377 (help_cmd_list, apropos_cmd): Update.
5378 * cli/cli-script.c (show_user): Update.
5379 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5380 * cli/cli-setshow.h (cmd_show_list): Update.
5381 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5382 (cmd_show_list): Update.
5383 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5384 * python/py-cmd.c (cmdpy_destroyer): Update.
5386 2014-07-24 Tom Tromey <tromey@redhat.com>
5388 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5389 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5391 * command.h (deprecate_cmd): Update.
5392 * maint.c (maintenance_do_deprecate): Add casts.
5394 2014-07-24 Tom Tromey <tromey@redhat.com>
5396 * cli/cli-decode.c (help_cmd): Make parameter "const".
5397 * cli/cli-decode.h (help_cmd): Update.
5399 2014-07-24 Tom Tromey <tromey@redhat.com>
5401 * stack.c (up_silently_base, down_silently_base): Make argument
5404 2014-07-24 Tom Tromey <tromey@redhat.com>
5406 * solib.c (solib_add): Make "pattern" const.
5407 * solib.h (solib_add): Update.
5409 2014-07-24 Tom Tromey <tromey@redhat.com>
5411 * remote.c (remote_serial_open, print_packet, putpkt)
5412 (putpkt_binary): Constify.
5413 * remote.h (putpkt): Update.
5415 2014-07-24 Tom Tromey <tromey@redhat.com>
5417 * monitor.c (monitor_open): Make "args" const.
5418 * monitor.h (monitor_open): Update.
5420 2014-07-24 Tom Tromey <tromey@redhat.com>
5422 * maint.c (match_bfd_flags): Make "string" const.
5423 (print_bfd_section_info): Remove casts.
5424 (print_objfile_section_info): Make "string" const.
5426 2014-07-24 Tom Tromey <tromey@redhat.com>
5428 * inf-child.c (inf_child_open_target): Make "arg" const.
5429 * inf-child.h (inf_child_open_target): Update.
5431 2014-07-24 Tom Tromey <tromey@redhat.com>
5433 * environ.c (unset_in_environ): Make "var" const.
5434 * environ.h (unset_in_environ): Update.
5436 2014-07-24 Tom Tromey <tromey@redhat.com>
5438 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5440 (scan_filename_with_cleanup): Likewise.
5441 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5442 Make arguments const.
5443 (restore_command): Update.
5445 2014-07-24 Pedro Alves <palves@redhat.com>
5447 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5449 2014-07-24 Tom Tromey <tromey@redhat.com>
5450 Gary Benson <gbenson@redhat.com>
5452 * nat/linux-ptrace.c (additional_flags): New global.
5453 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5454 additional_flags; don't check GDBSERVER.
5455 (linux_ptrace_set_additional_flags): New function.
5456 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5458 * linux-nat.c (_initialize_linux_nat): Call
5459 linux_ptrace_set_additional_flags.
5461 2014-07-24 Tom Tromey <tromey@redhat.com>
5463 * make-target-delegates (munge_type, write_debugmethod): New
5465 (debug_names): New global.
5466 ($TARGET_DEBUG_PRINTER): New global.
5467 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5469 Write debug methods. Generate init_debug_target.
5470 * target-debug.h: New file.
5471 * target-delegates.c: Rebuild.
5472 * target.c: Include target-debug.h.
5473 (debug_target): Hoist definition.
5474 (target_kill, target_get_section_table, target_memory_map)
5475 (target_flash_erase, target_flash_done, target_detach)
5476 (target_disconnect, target_wait, target_resume)
5477 (target_pass_signals, target_program_signals, target_follow_fork)
5478 (target_mourn_inferior, target_search_memory)
5479 (target_thread_address_space, target_close)
5480 (target_find_new_threads, target_core_of_thread)
5481 (target_verify_memory, target_insert_mask_watchpoint)
5482 (target_remove_mask_watchpoint): Remove targetdebug code.
5483 (debug_to_post_attach, debug_to_prepare_to_store)
5484 (debug_to_files_info, debug_to_insert_breakpoint)
5485 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5486 (debug_to_region_ok_for_hw_watchpoint)
5487 (debug_to_can_accel_watchpoint_condition)
5488 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5489 (debug_to_watchpoint_addr_within_range)
5490 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5491 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5492 (debug_to_terminal_init, debug_to_terminal_inferior)
5493 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5494 (debug_to_terminal_save_ours, debug_to_terminal_info)
5495 (debug_to_load, debug_to_post_startup_inferior)
5496 (debug_to_insert_fork_catchpoint)
5497 (debug_to_remove_fork_catchpoint)
5498 (debug_to_insert_vfork_catchpoint)
5499 (debug_to_remove_vfork_catchpoint)
5500 (debug_to_insert_exec_catchpoint)
5501 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5502 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5503 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5504 (setup_target_debug): Call init_debug_target.
5505 * target.h (TARGET_DEBUG_PRINTER): New macro.
5506 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5507 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5509 2014-07-24 Gary Benson <gbenson@redhat.com>
5511 * exceptions.h (throw_vfatal): Renamed to...
5512 (throw_vquit): New declaration.
5513 (throw_quit): Likewise.
5514 * exceptions.c (throw_vfatal): Renamed to...
5515 (throw_vquit): New function.
5516 (throw_quit): Likewise.
5517 (throw_error): Call throw_verror rather than throw_it.
5518 * utils.h (vfatal): Removed.
5520 * utils.c (vfatal): Removed.
5522 (internal_verror): Replaced call to fatal with call to throw_quit.
5523 (quit): Replaced calls to fatal with calls to throw_quit.
5525 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5527 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5530 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5532 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5533 less than zero in conditional expression.
5535 2014-07-23 Tom Tromey <tromey@redhat.com>
5537 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5538 ($INTRO_PART): Don't match whitespace.
5539 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5541 ($METHOD): Add $METHOD_TRAILER.
5543 (scan_target_h): New sub.
5544 Change main loop not to collect state.
5545 * target-delegates.c: Rebuild.
5547 2014-07-23 Gary Benson <gbenson@redhat.com>
5549 * cp-support.c (gdb_demangle): Fix build on systems without
5552 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5555 for reference entry value target data value.
5557 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5560 value_available_contents_eq.
5562 2014-07-22 Pedro Alves <palves@redhat.com>
5564 * value.c (allocate_optimized_out_value): Don't mark value as
5567 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5569 * MAINTAINERS (Write After Approval): Update my email address.
5571 2014-07-20 Doug Evans <dje@google.com>
5574 * remote.c (putpkt_binary): Add text to error message.
5576 2014-07-20 Yao Qi <yao@codesourcery.com>
5578 * eval.c: Remove "Chill" from comments.
5579 * gdbtypes.h: Likewise.
5580 * symtab.h: Likewise.
5582 2014-07-20 Yao Qi <yao@codesourcery.com>
5584 * std-operator.def: Update comments to TERNOP_SLICE.
5586 2014-07-20 Yao Qi <yao@codesourcery.com>
5588 * std-operator.def: Remove BINOP_RANGE.
5589 * breakpoint.c (watchpoint_exp_is_const): Update.
5590 * expprint.c (dump_subexp_body_standard): Likewise.
5591 * eval.c (init_array_element): Remove dead code.
5592 (evaluate_subexp_standard): Likewise.
5594 2014-07-20 Yao Qi <yao@codesourcery.com>
5596 * std-operator.def: Remove BINOP_IN.
5597 * breakpoint.c (watchpoint_exp_is_const): Update.
5598 * eval.c (evaluate_subexp_standard): Likewise.
5599 * expprint.c (dump_subexp_body_standard): Likewise.
5601 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5603 * microblaze-tdep.c (microblaze_register_names): Add
5604 the rshr and rslr register names.
5605 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5606 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5607 Use of tdesc_numbered_register. Use of
5608 microblaze_register_g_packet_guesses. Use of
5609 tdesc_use_registers. Use of set_gdbarch_register_type.
5610 (microblaze_register_g_packet_guesses): New.
5611 * microblaze-tdep.h (microblaze_reg_num): Add
5612 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5613 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5614 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5615 * features/microblaze-core.xml: New file.
5616 * features/microblaze-stack-protect.xml: New file.
5617 * features/microblaze-with-stack-protect.c: New file.
5618 * features/microblaze-with-stack-protect.xml: New file.
5619 * features/microblaze.xml: New file.
5620 * features/microblaze.c: New file.
5621 * features/Makefile (microblaze-with-stack-protect): Add
5622 microblaze-with-stack-protect microblaze and microblaze-expedite.
5623 * regformats/microblaze-with-stack-protect.dat: New file.
5624 * regformats/microblaze.dat: New file.
5625 * doc/gdb.texinfo (MicroBlaze Features): Added.
5627 2014-07-18 Tom Tromey <tromey@redhat.com>
5629 * exec.c (exec_ops): Now static.
5630 * exec.h (exec_ops): Don't declare.
5632 2014-07-18 Tom Tromey <tromey@redhat.com>
5634 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5635 to find_target_beneath.
5636 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5637 find_target_beneath.
5638 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5640 2014-07-18 Tom Tromey <tromey@redhat.com>
5643 * utils.c (quit): Use target_supports_terminal_ours.
5644 * target.h (target_supports_terminal_ours): Declare.
5645 * target.c (target_supports_delete_record): Don't check
5646 to_delete_record against NULL.
5647 (target_supports_terminal_ours): New function.
5649 2014-07-18 Tom Tromey <tromey@redhat.com>
5652 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5653 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5654 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5655 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5656 * windows-nat.c (windows_xfer_partial): Always delegate.
5657 * record-btrace.c (record_btrace_xfer_partial): Simplify
5659 (record_btrace_fetch_registers, record_btrace_store_registers)
5660 (record_btrace_prepare_to_store, record_btrace_resume)
5661 (record_btrace_wait, record_btrace_find_new_threads)
5662 (record_btrace_thread_alive): Likewise.
5663 * procfs.c (procfs_xfer_partial): Always delegate.
5664 * corelow.c (core_xfer_partial): Always delegate.
5665 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5667 2014-07-18 Tom Tromey <tromey@redhat.com>
5669 * exec.c (exec_make_note_section): Move earlier.
5671 2014-07-17 Doug Evans <dje@google.com>
5674 * maint.c (count_symtabs_and_blocks): Handle NULL
5675 current_program_space.
5676 (report_command_stats): Check global enabled flag in addition to
5677 recorded enabled flag.
5678 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5680 2014-07-16 Pedro Alves <palves@redhat.com>
5682 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5684 2014-07-16 Tom Tromey <tromey@redhat.com>
5686 * target.h (struct target_ops) <to_delete_record>: Reformat
5689 2014-07-16 Tom Tromey <tromey@redhat.com>
5691 * target-delegates.c: Rebuild.
5693 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5695 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5696 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5697 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5698 (avr_pointer_to_address): Likewise.
5699 (avr_address_class_type_flags): New function.
5700 (avr_address_class_type_flags_to_name): Likewise.
5701 (avr_address_class_name_to_type_flags): Likewise.
5702 (avr_gdbarch_init): Set address_class_type_flags,
5703 address_class_type_flags_to_name and
5704 address_class_name_to_type_flags.
5706 2014-07-15 Pedro Alves <palves@redhat.com>
5708 * linux-nat.c (kill_callback): Save errno and work with saved
5711 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5713 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5715 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5717 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5718 breakpoint support correctly.
5720 2014-07-14 Pedro Alves <palves@redhat.com>
5722 * utils.c (prompt_for_continue): Call target_terminal_ours.
5724 2014-07-14 Pedro Alves <palves@redhat.com>
5726 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5727 catch_errors. Don't re-enable stdin or notify observers where,
5729 (fetch_inferior_event_wrapper): Delete.
5731 2014-07-14 Pedro Alves <palves@redhat.com>
5734 * top.c: Include "inf-loop.h".
5735 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5737 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5739 (gdb_readline_wrapper): Store whether the target is async, and
5742 2014-07-14 Pedro Alves <palves@redhat.com>
5745 * top.c (gdb_readline_wrapper_line): Tweak comment.
5746 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5747 the input handler callback.
5749 2014-07-14 Pedro Alves <palves@redhat.com>
5752 * main.c: Include event-top.h.
5753 (handle_command_errors): New function.
5754 (catch_command_errors, catch_command_errors_const): Use it.
5756 2014-07-14 Pedro Alves <palves@redhat.com>
5758 * exceptions.c (catch_command_errors, catch_command_errors_const):
5760 * exceptions.h (catch_command_errors_ftype)
5761 (catch_command_errors_const_ftype): Moved to main.c.
5762 (catch_command_errors, catch_command_errors_const): Delete
5764 * main.c (catch_command_errors_ftype)
5765 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5766 (catch_command_errors, catch_command_errors_const)): Moved here
5767 from exceptions.c and make static.
5769 2014-07-14 Pedro Alves <palves@redhat.com>
5771 * exceptions.c (print_any_exception): Delete.
5772 (catch_exceptions_with_msg): Use exception_print instead of
5773 print_any_exception.
5774 (catch_errors): Use exception_fprintf instead of
5775 print_any_exception.
5776 (catch_command_errors, catch_command_errors_const): Use
5777 exception_print instead of print_any_exception.
5779 2014-07-14 Pedro Alves <palves@redhat.com>
5781 * infcall.c (run_inferior_call): Set 'sync_execution' while
5782 running the inferior call.
5784 2014-07-14 Pedro Alves <palves@redhat.com>
5786 * value.c (value_contents_equal): Delete function.
5787 * value.h (value_contents_equal): Delete declaration.
5789 2014-07-14 Tom Tromey <tromey@redhat.com>
5792 * gdbtypes.c (is_dynamic_type_internal): New function, from
5794 (is_dynamic_type): Rewrite.
5795 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5796 (resolve_dynamic_struct): Likewise.
5797 (resolve_dynamic_type_internal): New function, from
5798 resolve_dynamic_type.
5799 (resolve_dynamic_type): Rewrite.
5801 2014-07-14 Tom Tromey <tromey@redhat.com>
5803 * target.c (target_require_runnable): Also check record_stratum.
5806 2014-07-11 Yao Qi <yao@codesourcery.com>
5808 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5809 thumb_instruction_restores_sp return true.
5811 2014-07-11 Yao Qi <yao@codesourcery.com>
5813 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5814 (thumb_in_function_epilogue_p): Call
5815 thumb_instruction_restores_sp.
5817 2014-07-11 Yao Qi <yao@codesourcery.com>
5819 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5821 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5823 2014-07-11 Gary Benson <gbenson@redhat.com>
5825 * amd64-linux-nat.c (gdbcore.h): Remove include.
5826 (regset.h): Likewise.
5827 (nat/linux-btrace.h): Likewise.
5828 (btrace.h): Likewise.
5829 (gdb_assert.h): Likewise.
5830 (string.h): Likewise.
5831 (sys/uio.h): Likewise.
5832 (sys/debugreg.h): Likewise.
5833 (sys/syscall.h): Likewise.
5834 (sys/procfs.h): Likewise.
5835 (sys/user.h): Likewise.
5836 (asm/ptrace.h): Likewise.
5837 (i386-nat.h): Likewise.
5838 * i386-linux-nat.c (i386-nat.h): Likewise.
5839 (regset.h): Likewise.
5840 (target.h): Likewise.
5841 (linux-nat.h): Likewise.
5842 (nat/linux-btrace.h): Likewise.
5843 (btrace.h): Likewise.
5844 (gdb_assert.h): Likewise.
5845 (string.h): Likewise.
5846 (sys/uio.h): Likewise.
5847 (sys/user.h): Likewise.
5848 (sys/procfs.h): Likewise.
5849 (sys/reg.h): Likewise.
5850 (sys/debugreg.h): Likewise.
5851 (ORIG_EAX): Remove definition.
5853 2014-07-11 Gary Benson <gbenson@redhat.com>
5855 * i386-linux-nat.h: New file.
5856 * x86-linux-nat.h: Likewise.
5857 * x86-linux-nat.c: Likewise.
5858 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5859 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5860 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5861 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5862 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5863 (PTRACE_SETREGSET): Likewise.
5864 (arch_lwp_info): Now in x86-linux-nat.c.
5865 (have_ptrace_getregset): Now in x86-linux-nat.h.
5866 (x86_linux_dr_get): Now in x86-linux-nat.c.
5867 (x86_linux_dr_set): Likewise.
5868 (x86_linux_dr_get_addr): Likewise.
5869 (x86_linux_dr_get_control): Likewise.
5870 (x86_linux_dr_get_status): Likewise.
5871 (update_debug_registers_callback): Likewise.
5872 (x86_linux_dr_set_control): Likewise.
5873 (x86_linux_dr_set_addr): Likewise.
5874 (x86_linux_prepare_to_resume): Likewise.
5875 (x86_linux_new_thread): Likewise.
5876 (x86_linux_new_fork): Likewise.
5877 (x86_linux_get_thread_area): Likewise.
5878 (super_post_startup_inferior): Likewise.
5879 (x86_linux_child_post_startup_inferior): Likewise.
5880 (AMD64_LINUX_USER64_CS): Likewise.
5881 (AMD64_LINUX_X32_DS): Likewise.
5882 (x86_linux_read_description): Likewise.
5883 (x86_linux_enable_btrace): Likewise.
5884 (x86_linux_disable_btrace): Likewise.
5885 (x86_linux_teardown_btrace): Likewise.
5886 (x86_linux_read_btrace): Likewise.
5887 (x86_linux_create_target): Likewise.
5888 (x86_linux_add_target): Likewise.
5889 * i386-linux-nat.c (x86-linux-nat.h): New include.
5890 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5891 (PTRACE_SETREGSET): Likewise.
5892 (arch_lwp_info): Now in x86-linux-nat.c.
5893 (have_ptrace_getregset): Now in x86-linux-nat.h.
5894 (x86_linux_dr_get): Now in x86-linux-nat.c.
5895 (x86_linux_dr_set): Likewise.
5896 (x86_linux_dr_get_addr): Likewise.
5897 (x86_linux_dr_get_control): Likewise.
5898 (x86_linux_dr_get_status): Likewise.
5899 (update_debug_registers_callback): Likewise.
5900 (x86_linux_dr_set_control): Likewise.
5901 (x86_linux_dr_set_addr): Likewise.
5902 (x86_linux_prepare_to_resume): Likewise.
5903 (x86_linux_new_thread): Likewise.
5904 (x86_linux_new_fork): Likewise.
5905 (x86_linux_get_thread_area): Likewise.
5906 (super_post_startup_inferior): Likewise.
5907 (x86_linux_child_post_startup_inferior): Likewise.
5908 (AMD64_LINUX_USER64_CS): Likewise.
5909 (AMD64_LINUX_X32_DS): Likewise.
5910 (x86_linux_read_description): Likewise.
5911 (x86_linux_enable_btrace): Likewise.
5912 (x86_linux_disable_btrace): Likewise.
5913 (x86_linux_teardown_btrace): Likewise.
5914 (x86_linux_read_btrace): Likewise.
5915 (x86_linux_create_target): Likewise.
5916 (x86_linux_add_target): Likewise.
5918 2014-07-11 Gary Benson <gbenson@redhat.com>
5920 * amd64-linux-nat.c: Comment and whitespace changes.
5921 * i386-linux-nat.c: Comment and whitespace changes.
5923 2014-07-11 Gary Benson <gbenson@redhat.com>
5925 * amd64-linux-nat.c (x86_linux_create_target): New function.
5926 (x86_linux_add_target): Likewise.
5927 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5928 * i386-linux-nat.c (x86_linux_create_target): New function.
5929 (x86_linux_add_target): Likewise.
5930 (_initialize_i386_linux_nat): Delegate to the above new functions.
5932 2014-07-11 Gary Benson <gbenson@redhat.com>
5934 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5935 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5936 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5937 (ps_get_thread_area): Delegate to the above.
5939 2014-07-11 Gary Benson <gbenson@redhat.com>
5941 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5942 x86_linux_read_description. All uses updated. amd64-specific
5943 code conditionalized. Conditionalized i386-specific code added.
5944 Redundant cast removed.
5945 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5946 x86_linux_read_description. All uses updated. i386-specific
5947 code conditionalized. Conditionalized amd64-specific code added.
5948 One sizeof replaced with the actual type it is describing.
5950 2014-07-11 Gary Benson <gbenson@redhat.com>
5952 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5953 x86_linux_dr_get. All uses updated.
5954 (amd64_linux_dr_set): Renamed to
5955 x86_linux_dr_set. All uses updated.
5956 (amd64_linux_dr_get_addr): Renamed to
5957 x86_linux_dr_get_addr. All uses updated.
5958 (amd64_linux_dr_get_control): Renamed to
5959 x86_linux_dr_get_control. All uses updated.
5960 (amd64_linux_dr_get_status): Renamed to
5961 x86_linux_dr_get_status. All uses updated.
5962 (amd64_linux_dr_set_control): Renamed to
5963 x86_linux_dr_set_control. All uses updated.
5964 (amd64_linux_dr_set_addr): Renamed to
5965 x86_linux_dr_set_addr. All uses updated.
5966 (amd64_linux_prepare_to_resume): Renamed to
5967 x86_linux_prepare_to_resume. All uses updated.
5968 (amd64_linux_new_thread): Renamed to
5969 x86_linux_new_thread. All uses updated.
5970 (amd64_linux_new_fork): Renamed to
5971 x86_linux_new_fork. All uses updated.
5972 (amd64_linux_child_post_startup_inferior): Renamed to
5973 x86_linux_child_post_startup_inferior. All uses updated.
5974 (amd64_linux_enable_btrace): Renamed to
5975 x86_linux_enable_btrace. All uses updated.
5976 (amd64_linux_disable_btrace): Renamed to
5977 x86_linux_disable_btrace. All uses updated.
5978 (amd64_linux_teardown_btrace): Renamed to
5979 x86_linux_teardown_btrace. All uses updated.
5980 (amd64_linux_read_btrace): Renamed to
5981 x86_linux_read_btrace. All uses updated.
5982 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5983 x86_linux_dr_get. All uses updated.
5984 (i386_linux_dr_set): Renamed to
5985 x86_linux_dr_set. All uses updated.
5986 (i386_linux_dr_get_addr): Renamed to
5987 x86_linux_dr_get_addr. All uses updated.
5988 (i386_linux_dr_get_control): Renamed to
5989 x86_linux_dr_get_control. All uses updated.
5990 (i386_linux_dr_get_status): Renamed to
5991 x86_linux_dr_get_status. All uses updated.
5992 (i386_linux_dr_set_control): Renamed to
5993 x86_linux_dr_set_control. All uses updated.
5994 (i386_linux_dr_set_addr): Renamed to
5995 x86_linux_dr_set_addr. All uses updated.
5996 (i386_linux_prepare_to_resume): Renamed to
5997 x86_linux_prepare_to_resume. All uses updated.
5998 (i386_linux_new_thread): Renamed to
5999 x86_linux_new_thread. All uses updated.
6000 (i386_linux_new_fork): Renamed to
6001 x86_linux_new_fork. All uses updated.
6002 (i386_linux_child_post_startup_inferior): Renamed to
6003 x86_linux_child_post_startup_inferior. All uses updated.
6004 (i386_linux_enable_btrace): Renamed to
6005 x86_linux_enable_btrace. All uses updated.
6006 (i386_linux_disable_btrace): Renamed to
6007 x86_linux_disable_btrace. All uses updated.
6008 (i386_linux_teardown_btrace): Renamed to
6009 x86_linux_teardown_btrace. All uses updated.
6010 (i386_linux_read_btrace): Renamed to
6011 x86_linux_read_btrace. All uses updated.
6013 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6015 * remote.c (extended_remote_post_attach): New function.
6016 (init_extended_remote_ops): Install it as to_post_attach method.
6018 2014-07-09 Pedro Alves <palves@redhat.com>
6020 * infcmd.c (attach_command_post_wait): Don't call
6021 target_terminal_inferior here.
6022 (attach_command): Call it here instead.
6024 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6026 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6028 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6029 from varobj.c, with additional checks.
6030 (c_varobj_ops): Fill in is_path_expr_parent field.
6031 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6032 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6034 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6036 (varobj_default_is_path_expr_parent): New function.
6037 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6038 (varobj_default_is_path_expr_parent): Declare new function.
6040 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6042 * infcmd.c (finish_backward): Turn internal error into normal error.
6044 2014-07-07 Pedro Alves <palves@redhat.com>
6047 * remote.c (async_handle_remote_sigint)
6048 (async_handle_remote_sigint_twice): Call
6049 gdb_call_async_signal_handler instead of
6050 mark_async_signal_handler.
6052 2014-07-07 Tom Tromey <tromey@redhat.com>
6054 * target-delegates.c: Rebuild.
6055 * target.c (target_info_record): Remove.
6056 * record.c (info_record_command): Unconditionally call
6058 * target.h (struct target_ops) <to_info_record>: Use
6059 TARGET_DEFAULT_IGNORE.
6060 (target_info_record): Remove.
6062 2014-07-07 Tom Tromey <tromey@redhat.com>
6064 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6065 TARGET_DEFAULT_NORETURN.
6066 * target.c (generic_tls_error): New function.
6067 (target_translate_tls_address): Don't search target stack.
6068 * target-delegates.c: Rebuild.
6069 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6071 * linux-thread-db.c (thread_db_get_thread_local_address):
6072 Unconditionally call beneath target.
6074 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6076 * cli/cli-logging.c (pop_output_files): Assign targerr to
6079 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6081 * MAINTAINERS (Write After Approval): Update my email address.
6083 2014-07-02 Gary Benson <gbenson@redhat.com>
6085 * proc-service.c (ps_xfer_memory): Update comment.
6086 (ps_pstop): Remove unused function.
6087 (ps_pcontinue): Likewise.
6088 (ps_lstop): Likewise.
6089 (ps_lcontinue): Likewise.
6090 (ps_lgetxregsize): Likewise.
6091 (ps_lgetxregs): Likewise.
6092 (ps_lsetxregs): Likewise.
6093 (ps_plog): Likewise.
6094 (ps_ptread): Likewise.
6095 (ps_ptwrite): Likewise.
6097 2014-07-01 Mark Wielaard <mjw@redhat.com>
6099 * dwarf2read.c (add_array_cv_type): New function.
6100 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6101 (read_tag_volatile_type): Likewise.
6103 2014-07-01 Tom Tromey <tromey@redhat.com>
6105 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6106 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6107 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6108 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6109 * command.h (cmd_cfunc_ftype): Move earlier.
6110 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6111 (add_com, add_info): Use cmd_cfunc_ftype.
6113 2014-06-30 Tom Tromey <tromey@redhat.com>
6115 * symtab.c (operator_chars): Make parameters and return type
6117 (file_matches): Make "files" const.
6118 (struct search_symbols_data) <files>: Now const.
6119 (search_symbols): Make "regexp" and "files" parameters const.
6121 (symtab_symbol_info): Remove cast.
6122 (rbreak_command): Update.
6123 * symtab.h (search_symbols): Update.
6125 2014-06-27 Yao Qi <yao@codesourcery.com>
6127 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6128 Change parameter type to 'struct thread_info *'. Caller
6130 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6132 * dummy-frame.c (struct dummy_frame_id): New.
6133 (dummy_frame_id_eq): New function.
6134 (struct dummy_frame) <id>: Change its type to 'struct
6136 (dummy_frame_push): Add parameter ptid and save it in
6138 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6140 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6142 (lookup_dummy_frame): Change parameter type to 'struct
6143 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6144 instead of frame_id_eq.
6145 (dummy_frame_pop): Add parameter ptid. Callers updated.
6146 Update comments. Compose dummy_frame_id and pass it to
6148 (dummy_frame_discard): Add parameter ptid.
6149 (dummy_frame_sniffer): Compose dummy_frame_id and call
6150 dummy_frame_id_eq instead of frame_id_eq.
6151 (fprint_dummy_frames): Print ptid.
6152 * dummy-frame.h: Remove comments.
6153 (dummy_frame_push): Add ptid in declaration.
6154 (dummy_frame_pop, dummy_frame_discard): Likewise.
6156 2014-06-26 Tom Tromey <tromey@redhat.com>
6158 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6159 * command.h (error_no_arg): Update.
6161 2014-06-26 Tom Tromey <tromey@redhat.com>
6163 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6164 (do_show_command): Make "arg" const.
6165 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6167 2014-06-26 Tom Tromey <tromey@redhat.com>
6169 * record-full.c (record_full_get_bookmark): Make "args" const.
6170 (record_full_goto_bookmark): Make "raw_bookmark" const.
6171 * record.c (record_goto): New function.
6172 (cmd_record_goto): Use it. Now static.
6173 * record.h (record_goto): Declare.
6174 (cmd_record_goto): Remove declaration.
6175 * target-delegates.c: Rebuild.
6176 * target.h (struct target_ops) <to_get_bookmark,
6177 to_goto_bookmark>: Make parameter const.
6179 2014-06-26 Tom Tromey <tromey@redhat.com>
6181 * defs.h (generic_load): Update.
6182 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6183 * monitor.c (monitor_load): Make "args" const.
6184 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6185 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6187 (mips_load): Make "file" const.
6188 * remote-sim.c (gdbsim_load): Make "args" const.
6189 * remote.c (remote_load): Make "name" const.
6190 * symfile.c (generic_load): Make "args" const.
6191 * target-delegates.c: Rebuild.
6192 * target.c (target_load): Make "arg" const.
6193 (debug_to_load): Make "args" const.
6194 * target.h (struct target_ops) <to_load>: Make parameter const.
6195 (target_load): Update.
6197 2014-06-26 Tom Tromey <tromey@redhat.com>
6200 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6201 (dwarf2_physname, read_partial_die)
6202 (guess_partial_die_structure_name, fixup_partial_die)
6203 (guess_full_die_structure_name, anonymous_struct_prefix)
6204 (dwarf2_name): Use per-BFD obstack.
6206 2014-06-26 Yao Qi <yao@codesourcery.com>
6208 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6209 dummyframe and this_id into inner block below.
6211 2014-06-26 Yao Qi <yao@codesourcery.com>
6213 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6214 with "signal_pass[0]" in the initialization of signal_pass.
6216 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6218 * record-btrace.c (record_btrace_generating_corefile)
6219 (record_btrace_prepare_to_generate_core)
6220 (record_btrace_done_generating_core): New.
6221 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6222 (record_btrace_store_registers, record_btrace_prepare_to_store):
6223 Forward request when generating a core file.
6224 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6225 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6226 to_done_generating_core.
6228 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6230 * target.h (target_ops) <to_prepare_to_generate_core>
6231 <to_done_generating_core>: New.
6232 (target_prepare_to_generate_core, target_done_generating_core): New.
6233 * target.c (target_prepare_to_generate_core)
6234 (target_done_generating_core): New.
6235 * target-delegates.c: Regenerate.
6236 * gcore.c: (write_gcore_file): Rename to ...
6237 (write_gcore_file_1): ...this.
6238 (write_gcore_file): Call target_prepare_to_generate_core
6239 and target_done_generating_core.
6241 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6243 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6244 * gcore.c (write_gcore_file): Free memory returned from
6245 make_corefile_notes.
6246 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6247 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6249 2014-06-24 Yao Qi <yao@codesourcery.com>
6251 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6252 (arm_linux_init_abi): Set skip_trampoline_code with
6253 gdbarch_skip_trampoline_code instead of
6254 find_solib_trampoline_target.
6256 2014-06-24 Yao Qi <yao@codesourcery.com>
6258 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6259 arm_skip_bx_reg returns non-zero.
6261 2014-06-24 Yao Qi <yao@codesourcery.com>
6263 * arm-tdep.c (arm_skip_bx_reg): New function.
6264 (arm_skip_stub): Call arm_skip_bx_reg.
6266 2014-06-23 Don Breazeal <donb@codesourcery.com>
6268 * MAINTAINERS: Add myself as write-after-approval maintainer.
6270 2014-06-23 Pedro Alves <palves@redhat.com>
6272 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6273 DR_CONTROL before setting DR0..DR3.
6274 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6275 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6276 bits of DR_CONTROL related to the debug register slot being
6277 disabled. If all slots are vacant, clear local slowdown as well,
6278 and assert DR_CONTROL is 0.
6280 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6282 * python/lib/gdb/command/xmethods.py
6283 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6284 current progspace only if the string "progspace" matches LOCUS_RE.
6286 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6288 Fix --with-system-readline with readline-6.3 patch 5.
6289 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6290 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6293 2014-06-20 Tom Tromey <tromey@redhat.com>
6295 * dwarf2read.c (dw2_get_real_path): Use correct type in
6297 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6299 2014-06-20 Gary Benson <gbenson@redhat.com>
6301 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6302 * common/glibc_thread_db.h: Likewise.
6303 * common/i386-cpuid.h: Likewise.
6304 * common/i386-gcc-cpuid.h: Likewise.
6305 * common/linux-btrace.h: Likewise.
6306 * common/linux-osdata.h: Likewise.
6307 * common/linux-procfs.h: Likewise.
6308 * common/linux-ptrace.h: Likewise.
6309 * common/mips-linux-watch.h: Likewise.
6310 * common/linux-btrace.c: Moved to nat.
6311 * common/linux-osdata.c: Likewise.
6312 * common/linux-procfs.c: Likewise.
6313 * common/linux-ptrace.c: Likewise.
6314 * common/mips-linux-watch.c: Likewise.
6315 * nat/gdb_thread_db.h: Moved from common.
6316 * nat/glibc_thread_db.h: Likewise.
6317 * nat/i386-cpuid.h: Likewise.
6318 * nat/i386-gcc-cpuid.h: Likewise.
6319 * nat/linux-btrace.c: Likewise.
6320 * nat/linux-btrace.h: Likewise.
6321 * nat/linux-osdata.c: Likewise.
6322 * nat/linux-osdata.h: Likewise.
6323 * nat/linux-procfs.c: Likewise.
6324 * nat/linux-procfs.h: Likewise.
6325 * nat/linux-ptrace.c: Likewise.
6326 * nat/linux-ptrace.h: Likewise.
6327 * nat/mips-linux-watch.c: Likewise.
6328 * nat/mips-linux-watch.h: Likewise.
6329 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6330 (object file files): Reordered.
6331 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6332 of glibc_thread_db.h.
6334 2014-06-20 Gary Benson <gbenson@redhat.com>
6336 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6337 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6338 (i386_dr_low): Likewise.
6339 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6340 (i386_dr_low_set_addr): Likewise.
6341 (i386_dr_low_get_addr): Likewise.
6342 (i386_dr_low_can_set_control): Likewise.
6343 (i386_dr_low_set_control): Likewise.
6344 (i386_dr_low_get_control): Likewise.
6345 (i386_dr_low_get_status): Likewise.
6346 (i386_get_debug_register_length): Likewise.
6347 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6348 (i386_dr_low): Likewise.
6349 * nat/i386-dregs.c (i386-low.h): Remove include.
6350 (i386-nat.h): Likewise.
6351 (nat/i386-dregs.h): New include.
6352 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6353 (i386_dr_low_set_addr): Likewise.
6354 (i386_dr_low_get_addr): Likewise.
6355 (i386_dr_low_can_set_control): Likewise.
6356 (i386_dr_low_set_control): Likewise.
6357 (i386_dr_low_get_control): Likewise.
6358 (i386_dr_low_get_status): Likewise.
6359 (i386_get_debug_register_length): Likewise.
6360 (debug_hw_points): Likewise.
6362 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6364 * Makefile.in (SFILES): Add d-exp.y.
6365 (YYFILES): Add d-exp.c.
6366 (YYOBJ): Add d-exp.o.
6367 (local-maintainer-clean): Delete d-exp.c.
6368 * d-exp.y: New file.
6369 * d-lang.h (d_parse): New declaration.
6370 (d_error): New declaration.
6371 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6372 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6373 PREC_ORDER operators.
6374 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6376 2014-06-19 Yao Qi <yao@codesourcery.com>
6378 * gdbthread.h (any_running): Remove the declaration.
6379 * thread.c (any_running): Remove.
6381 2014-06-19 Yao Qi <yao@codesourcery.com>
6383 * gdbthread.h (struct thread_info) <state>: Change its type to
6384 'enum thread_state'. Update comments.
6386 2014-06-19 Pedro Alves <palves@redhat.com>
6388 * gdbthread.h (ALL_THREADS): Delete.
6389 (ALL_NON_EXITED_THREADS): New macro.
6390 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6391 instead of ALL_THREADS.
6392 * infrun.c (find_thread_needs_step_over)
6393 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6394 instead of ALL_THREADS.
6395 * record-btrace.c (record_btrace_open)
6396 (record_btrace_stop_recording, record_btrace_close)
6397 (record_btrace_is_replaying, record_btrace_resume)
6398 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6399 * remote.c (append_pending_thread_resumptions): Likewise.
6400 * thread.c (thread_apply_all_command): Likewise.
6402 2014-06-19 Gary Benson <gbenson@redhat.com>
6404 * i386-nat.c (i386_stopped_by_watchpoint):
6405 Use i386_dr_stopped_by_watchpoint.
6406 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6407 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6409 2014-06-19 Gary Benson <gbenson@redhat.com>
6411 * nat/i386-dregs.c: New file.
6412 * Makefile.in (i386-dregs.o): New rule.
6413 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6414 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6415 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6416 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6417 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6418 * config/i386/go32.mh (NATDEPFILES): Likewise.
6419 * config/i386/linux.mh (NATDEPFILES): Likewise.
6420 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6421 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6422 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6423 * i386-nat.h (debug_hw_points): New declaration.
6424 * i386-nat.c (breakpoint.h): Remove include.
6425 (command.h): Likewise.
6426 (target.h): Likewise.
6427 (gdb_assert.h): Likewise.
6428 (debug_hw_points): Made nonstatic.
6429 (debug_printf): Now in i386-dregs.c.
6430 (TARGET_HAS_DR_LEN_8): Likewise.
6431 (DR_CONTROL_SHIFT): Likewise.
6432 (DR_CONTROL_SIZE): Likewise.
6433 (DR_RW_EXECUTE): Likewise.
6434 (DR_RW_WRITE): Likewise.
6435 (DR_RW_READ): Likewise.
6436 (DR_RW_IORW): Likewise.
6437 (DR_LEN_1): Likewise.
6438 (DR_LEN_2): Likewise.
6439 (DR_LEN_4): Likewise.
6440 (DR_LEN_8): Likewise.
6441 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6442 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6443 (DR_ENABLE_SIZE): Likewise.
6444 (DR_LOCAL_SLOWDOWN): Likewise.
6445 (DR_GLOBAL_SLOWDOWN): Likewise.
6446 (DR_CONTROL_RESERVED): Likewise.
6447 (I386_DR_CONTROL_MASK): Likewise.
6448 (I386_DR_VACANT): Likewise.
6449 (I386_DR_LOCAL_ENABLE): Likewise.
6450 (I386_DR_GLOBAL_ENABLE): Likewise.
6451 (I386_DR_DISABLE): Likewise.
6452 (I386_DR_SET_RW_LEN): Likewise.
6453 (I386_DR_GET_RW_LEN): Likewise.
6454 (I386_DR_WATCH_HIT): Likewise.
6455 (i386_wp_op_t): Likewise.
6456 (i386_show_dr): Likewise.
6457 (i386_length_and_rw_bits): Likewise.
6458 (i386_insert_aligned_watchpoint): Likewise.
6459 (i386_remove_aligned_watchpoint): Likewise.
6460 (i386_handle_nonaligned_watchpoint): Likewise.
6461 (i386_update_inferior_debug_regs): Likewise.
6462 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6463 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6464 (i386_region_ok_for_watchpoint):
6465 Use i386_dr_region_ok_for_watchpoint.
6466 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6468 2014-06-19 Gary Benson <gbenson@redhat.com>
6470 * i386-nat.c (i386_insert_hw_breakpoint): Use
6471 i386_insert_watchpoint.
6472 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6474 2014-06-19 Gary Benson <gbenson@redhat.com>
6476 * i386-nat.c (i386_dr_show): Renamed to
6477 i386_show_dr and made static. All uses updated.
6478 (i386_dr_length_and_rw_bits): Renamed to
6479 i386_length_and_rw_bits and made static.
6481 (i386_dr_insert_aligned_watchpoint): Renamed to
6482 i386_insert_aligned_watchpoint and made static.
6484 (i386_dr_remove_aligned_watchpoint): Renamed to
6485 i386_remove_aligned_watchpoint and made static.
6487 (i386_dr_update_inferior_debug_regs): Renamed to
6488 i386_update_inferior_debug_regs and made static.
6490 * nat/i386-dregs.h (i386_dr_show): Removed.
6491 (i386_dr_length_and_rw_bits): Likewise.
6492 (i386_dr_insert_aligned_watchpoint): Likewise.
6493 (i386_dr_remove_aligned_watchpoint): Likewise.
6494 (i386_dr_update_inferior_debug_regs): Likewise.
6496 2014-06-19 Gary Benson <gbenson@redhat.com>
6498 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6499 * configure: Regenerate.
6500 * config.in: Likewise.
6501 * main.c (signal.h): New include.
6502 (setup_alternate_signal_stack): New function.
6503 (captured_main): Call the above.
6504 * cp-support.c (signal.h): New include.
6505 (catch_demangler_crashes): New flag.
6506 (SIGJMP_BUF): New define.
6507 (SIGSETJMP): Likewise.
6508 (SIGLONGJMP): Likewise.
6509 (gdb_demangle_jmp_buf): New static global.
6510 (gdb_demangle_attempt_core_dump): Likewise.
6511 (gdb_demangle_signal_handler): New function.
6512 (gdb_demangle): If catch_demangler_crashes is set, install the
6513 above signal handler before calling bfd_demangle, and restore
6514 the original signal handler afterwards. Display the offending
6515 symbol and call demangler_warning the first time a segmentation
6517 (_initialize_cp_support): New maint set/show command.
6519 2014-06-19 Gary Benson <gbenson@redhat.com>
6521 * utils.h (resource_limit_kind): New enum.
6522 (can_dump_core): New declaration.
6523 (warn_cant_dump_core): Likewise.
6524 (dump_core): Likewise.
6525 * utils.c (dump_core): Made nonstatic. Added new
6526 parameter "limit_kind".
6527 (can_dump_core): Made nonstatic. Moved printing code to...
6528 (warn_cant_dump_core): New function.
6529 (can_dump_core_warn): Likewise.
6530 (internal_vproblem): Replace calls to can_dump_core with
6531 calls to can_dump_core_warn. Supply new argument to each.
6533 2014-06-19 Gary Benson <gbenson@redhat.com>
6535 * utils.h (demangler_vwarning): New declaration.
6536 (demangler_warning): Likewise.
6537 * utils.c (struct internal_problem)
6538 <user_settable_should_quit>: New field.
6539 <user_settable_should_dump_core>: Likewise
6540 (internal_error_problem): Add values for above new fields.
6541 (internal_warning_problem): Likewise.
6542 (demangler_warning_problem): New static global.
6543 (demangler_vwarning): New function.
6544 (demangler_warning): Likewise.
6545 (add_internal_problem_command): Selectively add commands.
6546 (_initialize_utils): New internal problem command.
6547 * maint.c (maintenance_demangler_warning): New function.
6548 (_initialize_maint_cmds): New command.
6550 2014-06-18 Tom Tromey <tromey@redhat.com>
6552 * f-valprint.c (info_common_command_for_block): Update.
6553 * symtab.h (struct general_symbol_info) <common_block>: Now
6556 2014-06-18 Tom Tromey <tromey@redhat.com>
6558 * symtab.h (struct symtab) <blockvector>: Now const.
6559 * ada-lang.c (ada_add_global_exceptions): Update.
6560 * buildsym.c (augment_type_symtab): Update.
6561 * dwarf2read.c (dw2_lookup_symbol): Update.
6562 * jit.c (finalize_symtab): Update.
6563 * jv-lang.c (add_class_symtab_symbol): Update.
6564 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6566 * objfiles.c (objfile_relocate1): Update.
6567 * psymtab.c (lookup_symbol_aux_psymtabs)
6568 (maintenance_check_psymtabs): Update.
6569 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6571 * spu-tdep.c (spu_catch_start): Update.
6572 * symmisc.c (dump_symtab_1): Update.
6573 * symtab.c (lookup_global_symbol_from_objfile)
6574 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6575 (basic_lookup_transparent_type_quick)
6576 (basic_lookup_transparent_type, find_pc_sect_symtab)
6577 (find_pc_sect_line, search_symbols): Update.
6578 * block.c (find_block_in_blockvector): Make "bl" const.
6579 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6581 (blockvector_contains_pc): Make "bv" const.
6582 (block_for_pc_sect): Update.
6583 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6584 (blockvector_contains_pc): Update.
6585 * breakpoint.c (resolve_sal_pc): Update.
6586 * inline-frame.c (block_starting_point_at): Update.
6588 2014-06-18 Tom Tromey <tromey@redhat.com>
6590 * completer.c (complete_line): Make "line_buffer" const.
6591 * completer.h (complete_line): Update.
6593 2014-06-18 Tom Tromey <tromey@redhat.com>
6595 * symtab.c (add_macro_name): Remove unneeded cast.
6597 2014-06-18 Tom Tromey <tromey@redhat.com>
6599 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6600 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6602 2014-06-18 Tom Tromey <tromey@redhat.com>
6604 * probe.c (info_probes_for_ops): Make "arg" const.
6605 * probe.h (info_probes_for_ops): Update.
6607 2014-06-18 Tom Tromey <tromey@redhat.com>
6609 * varobj.c (varobj_create): Update.
6610 * valops.c (value_of_this): Update.
6611 * tracepoint.c (add_local_symbols, scope_info): Update.
6612 * symtab.h (struct general_symbol_info) <block>: Now const.
6613 * symtab.c (skip_prologue_sal)
6614 (default_make_symbol_completion_list_break_on)
6615 (skip_prologue_using_sal): Update.
6616 * stack.h (iterate_over_block_locals)
6617 (iterate_over_block_local_vars): Update.
6618 * stack.c (print_frame_args): Update.
6619 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6621 (get_selected_block): Make return type const.
6622 * python/py-frame.c (frapy_block): Update.
6623 * python/py-block.c (gdbpy_block_for_pc): Update.
6624 * p-exp.y (%union) <bval>: Now const.
6625 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6626 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6627 * m2-exp.y (%union) <bval>: Now const.
6628 * linespec.c (get_current_search_block): Make return type const.
6629 (create_sals_line_offset, find_label_symbols): Update.
6630 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6632 (block_starting_point_at): Make "block" const.
6633 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6634 (check_exception_resume): Update.
6635 * guile/scm-frame.c (gdbscm_frame_block): Update.
6636 * guile/scm-block.c (gdbscm_lookup_block): Update.
6637 * frame.h (get_frame_block): Update.
6638 (get_selected_block): Make return type const.
6639 * frame.c (frame_id_inner): Update.
6640 * f-valprint.c (info_common_command_for_block)
6641 (info_common_command): Update.
6642 * dwarf2loc.c (dwarf2_find_location_expression)
6643 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6644 (locexpr_describe_location_piece): Update.
6645 * c-exp.y (%union) <bval>: Now const.
6646 * breakpoint.c (resolve_sal_pc): Update.
6647 * blockframe.c (get_frame_block):Make return type const.
6648 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6649 (block_innermost_frame): Update.
6650 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6651 (block_for_pc, block_for_pc_sect): Update.
6652 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6654 (block_for_pc_sect, block_for_pc): Make return type const.
6655 * ax-gdb.c (gen_expr): Update.
6656 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6657 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6658 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6659 (ada_read_var_value): Update.
6660 * ada-exp.y (struct name_info) <block>: Now const.
6662 (block_lookup): Constify.
6664 2014-06-18 Gary Benson <gbenson@redhat.com>
6666 * nat/i386-dregs.h: New file.
6667 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6668 * i386-nat.h (i386-dregs.h): New include.
6669 (DR_FIRSTADDR): Now in i386-dregs.h.
6670 (DR_LASTADDR): Likewise.
6671 (DR_NADDR): Likewise.
6672 (DR_STATUS): Likewise.
6673 (DR_CONTROL): Likewise.
6674 (i386_debug_reg_state): Likewise.
6675 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6677 2014-06-18 Don Breazeal <donb@codesourcery.com>
6679 * breakpoint.c (set_longjmp_breakpoint): Call
6680 momentary_breakpoint_from_master with additional argument.
6681 (set_longjmp_breakpoint_for_call_dummy): Call
6682 momentary_breakpoint_from_master with additional argument.
6683 (set_std_terminate_breakpoint): Call
6684 momentary_breakpoint_from_master with additional argument.
6685 (momentary_breakpoint_from_master): Add argument to function
6686 definition and use it to initialize structure member flag.
6687 (clone_momentary_breakpoint): Call
6688 momentary_breakpoint_from_master with additional argument.
6689 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6690 member flags set in momentary_breakpoint_from_master.
6692 2014-06-18 Gary Benson <gbenson@redhat.com>
6694 * i386-nat.c (i386_show_dr): Renamed to
6695 i386_dr_show and made nonstatic. All uses updated.
6696 (i386_length_and_rw_bits): Renamed to
6697 i386_dr_length_and_rw_bits and made nonstatic.
6699 (i386_insert_aligned_watchpoint): Renamed to
6700 i386_dr_insert_aligned_watchpoint and made nonstatic.
6702 (i386_remove_aligned_watchpoint): Renamed to
6703 i386_dr_remove_aligned_watchpoint and made nonstatic.
6705 (i386_update_inferior_debug_regs): Renamed to
6706 i386_dr_update_inferior_debug_regs and made nonstatic.
6709 2014-06-18 Gary Benson <gbenson@redhat.com>
6711 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6712 (i386_dr_low_can_set_control): Likewise.
6713 (i386_dr_low_set_addr): Likewise.
6714 (i386_dr_low_set_control): Likewise.
6715 (i386_dr_low_get_addr): Likewise.
6716 (i386_dr_low_get_status): Likewise.
6717 (i386_dr_low_get_control): Likewise.
6718 (i386_insert_aligned_watchpoint): Use new macros.
6719 (i386_update_inferior_debug_regs): Likewise.
6720 (i386_stopped_data_address): Likewise.
6722 2014-06-18 Gary Benson <gbenson@redhat.com>
6724 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6725 New parameter. All uses updated.
6727 2014-06-18 Gary Benson <gbenson@redhat.com>
6729 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6732 2014-06-18 Gary Benson <gbenson@redhat.com>
6734 * i386-nat.c (debug_printf): New macro.
6735 (i386_get_debug_register_length): Likewise.
6736 (TARGET_HAS_DR_LEN_8): Use above macro.
6737 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6738 and printf_unfiltered. Use phex to format values.
6740 2014-06-18 Gary Benson <gbenson@redhat.com>
6742 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6745 2014-06-18 Gary Benson <gbenson@redhat.com>
6747 * i386-nat.c: Comment changes.
6749 2014-06-18 Gary Benson <gbenson@redhat.com>
6751 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6753 2014-06-18 Gary Benson <gbenson@redhat.com>
6755 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6756 (i386_insert_aligned_watchpoint): Likewise.
6757 (i386_remove_aligned_watchpoint): Likewise.
6758 (i386_handle_nonaligned_watchpoint): Likewise.
6760 2014-06-18 Gary Benson <gbenson@redhat.com>
6762 * i386-nat.c: Whitespace changes.
6764 2014-06-17 Samuel Bronson <naesten@gmail.com>
6766 * MAINTAINERS: Update Roland McGrath's email address.
6767 Thanks to Sergio Durigan Junior for pointing out that he left
6768 Red Hat a while ago, and giving me a current address.
6770 2014-06-17 Tom Tromey <tromey@redhat.com>
6772 * utils.h (savestring): Remove declaration.
6774 2014-06-17 Tom Tromey <tromey@redhat.com>
6776 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6778 2014-06-16 Keith Seitz <keiths@redhat.com>
6781 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6782 to update the varobj if inferior_ptid is null_ptid.
6784 2014-06-16 Tom Tromey <tromey@redhat.com>
6786 * target.h (struct target_ops) <to_info_proc>: Make parameter
6788 (target_info_proc): Update.
6789 * target.c (target_info_proc): Make "args" const.
6790 * procfs.c (procfs_info_proc): Update.
6791 * linux-tdep.c (linux_info_proc): Update.
6792 (linux_core_info_proc_mappings): Make "args" const.
6793 (linux_core_info_proc): Update.
6794 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6795 * gdbarch.c: Rebuild.
6796 * gdbarch.h: Rebuild.
6797 * corelow.c (core_info_proc): Update.
6799 2014-06-16 Tom Tromey <tromey@redhat.com>
6801 * target.h (struct target_ops) <to_disconnect>: Make parameter
6803 (target_disconnect): Update.
6804 * target.c (target_disconnect): Make "args" const.
6805 * target-delegates.c: Rebuild.
6806 * remote.c (remote_disconnect): Update.
6807 * record.h (record_disconnect): Update.
6808 * record.c (record_disconnect): Update.
6809 * inf-child.c (inf_child_disconnect): Update.
6811 2014-06-16 Tom Tromey <tromey@redhat.com>
6813 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6814 * target.c (debug_to_rcmd, default_rcmd): Update.
6815 * target-delegates.c: Rebuild.
6816 * remote.c (remote_rcmd): Update.
6817 * monitor.c (monitor_rcmd): Update.
6819 2014-06-16 Pedro Alves <palves@redhat.com>
6821 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6822 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6823 have OBJF_SHARED set.
6824 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6825 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6826 instead of OBJF_USERLOADED.
6827 * objfiles.h (OBJF_SHARED): Update comment.
6828 (userloaded_objfile_contains_address_p): Rename to ...
6829 (shared_objfile_contains_address_p): ... this, and update
6831 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6833 (remove_symbol_file_command): Skip objfiles that don't have
6836 2014-06-16 Tom Tromey <tromey@redhat.com>
6838 * minsyms.h (prim_record_minimal_symbol)
6839 (prim_record_minimal_symbol_and_info): Update comments.
6841 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6843 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6844 or --without-guile, according to how GDB was built.
6846 2014-06-13 Tom Tromey <tromey@redhat.com>
6848 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6850 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6852 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6854 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6855 help_list.Pass all_commands, not -1, to help_list.
6856 * cli/cli-dump.c (dump_command, append_command)
6857 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6858 (binary_dump_command, binary_append_command): Pass all_commands,
6859 not -1, to help_list.
6860 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6862 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6864 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6866 * top.c (set_history): Pass all_commands, not -1, to help_list.
6867 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6868 all_commands, not -1, to help_list.
6869 * symfile.c (overlay_command): Pass all_commands, not -1, to
6871 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6873 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6875 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6877 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6878 not -1, to help_list.
6879 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6880 not -1, to help_list.
6881 * maint.c (maintenance_command, maintenance_info_command)
6882 (maintenance_print_command, maintenance_set_cmd): Pass
6883 all_commands, not -1, to help_list.
6884 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6886 * language.c (set_check): Pass all_commands, not -1, to help_list.
6887 * infcmd.c (unset_command): Pass all_commands, not -1, to
6889 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6891 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6893 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6895 * breakpoint.c (save_command): Pass all_commands, not -1, to
6897 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6898 all_commands, not -1, to help_list.
6900 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6902 * regcache.c (struct register_to_invalidate): New structure.
6903 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6905 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6907 2014-06-12 Yao Qi <yao@codesourcery.com>
6909 * varobj.c (varobj_get_num_children): Call
6910 varobj_is_dynamic_p.
6911 (varobj_list_children): Likewise.
6912 (varobj_update): Likewise. Update comments.
6914 2014-06-12 Yao Qi <yao@codesourcery.com>
6916 * varobj.c (varobj_pretty_printed_p): Rename to ...
6917 (varobj_is_dynamic_p): ... this. New function.
6918 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6919 (varobj_is_dynamic_p): Declare.
6920 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6921 (mi_print_value_p, varobj_update_one): Likewise.
6923 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6924 Yao Qi <yao@codesourcery.com>
6926 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6927 (varobj_get_iterator): Wrap up code for pretty-printer by
6928 "#if HAVE_PYTHON" and "#endif".
6929 (update_dynamic_varobj_children): Likewise.
6931 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6932 Yao Qi <yao@codesourcery.com>
6934 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6935 gdb_python_initialized is false. Move some code from varobj.c.
6936 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6937 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6938 (struct varobj_item): Moved to varobj-iter.h".
6939 (varobj_clear_saved_item): New function.
6940 (update_dynamic_varobj_children): Move python-related code to
6942 (free_variable): Call varobj_clear_saved_item and
6945 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6946 Yao Qi <yao@codesourcery.com>
6948 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6949 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6950 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6951 (py-varobj.o): New rule.
6952 * python/py-varobj.c: New file.
6953 * python/python-internal.h (py_varobj_get_iterator): Declare.
6954 * varobj-iter.h: New file.
6955 * varobj.c: Include "varobj-iter.h"
6956 (struct varobj) <child_iter>: Change its type from "PyObject *"
6957 to "struct varobj_iter *".
6958 <saved_item>: Likewise.
6959 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6960 [HAVE_PYTHON] (varobj_get_iterator): New function.
6961 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6962 python-specific code to python/py-varobj.c.
6963 (install_visualizer): Call varobj_iter_delete instead of
6965 * varobj.h (varobj_ensure_python_env): Declare.
6967 2014-06-12 Yao Qi <yao@codesourcery.com>
6969 * varobj.c (struct varobj_item): New structure.
6970 (create_child_with_value): Update declaration.
6971 (varobj_add_child): Replace arguments 'name' and 'value' with
6972 'item'. All callers updated.
6973 (install_dynamic_child): Likewise.
6974 (update_dynamic_varobj_children): Likewise.
6975 (varobj_add_child): Likewise.
6976 (create_child_with_value): Likewise.
6978 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6980 * NEWS: Create a new section for the next release branch.
6981 Rename the section of the current branch, now that it has
6984 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6986 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6987 * version.in: Bump version to 7.8.50.DATE-cvs.
6989 2014-06-11 Pedro Alves <palves@redhat.com>
6992 * ser-mingw.c (net_windows_socket_check_pending): New function.
6993 (net_windows_select_thread): Ignore spurious wakeups. Use
6994 net_windows_socket_check_pending.
6995 (net_windows_wait_handle): Check for pending events with
6996 ioctlsocket, through net_windows_socket_check_pending, instead of
6997 checking the socket's event.
6999 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7001 * python/python-internal.h (gdb_PyObject_GetAttrString)
7002 (gdb_PyObject_HasAttrString): New inline function definitions.
7003 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7004 char * of the second argument to PyObject_GetAttrString.
7006 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7008 * serial.c (serial_write): Fix index of character to be printed
7009 in call to serial_logchar when serial debug traces are enabled.
7011 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7013 * gdbtypes (resolve_dynamic_range): Add function description.
7015 2014-06-09 Pedro Alves <palves@redhat.com>
7017 * linux-nat.c (linux_child_follow_fork): Initialize status with
7018 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7019 inner block. Only pass the signal to PTRACE_DETACH if in pass
7022 2014-06-09 Gary Benson <gbenson@redhat.com>
7024 * common/signals.c (gdb_signal_from_host): Reorder to separate
7025 the always-available ANSI-standard signals from the signals that
7027 (do_gdb_signal_to_host): Likewise.
7028 * proc-events.c (signal_table): Likewise.
7030 2014-06-08 Hui Zhu <hui@codesourcery.com>
7032 * common/linux-ptrace.c (linux_disable_event_reporting): New
7034 * common/linux-ptrace.h (linux_disable_event_reporting): New
7036 * linux-nat.c (linux_child_follow_fork): Do a single step before
7039 2014-06-07 Keith Seitz <keiths@redhat.com>
7043 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7044 from symbol_matches_domain in symtab.c. All local callers
7045 of symbol_matches_domain updated.
7046 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7047 search STRUCT_DOMAIN.
7048 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7049 independently. standard_lookup will do that automatically.
7050 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7051 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7052 (cp_lookup_symbol_in_namespace): Likewise.
7053 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7054 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7055 may return a STRUCT_DOMAIN match.
7056 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7057 * cp-support.c: Include language.h.
7058 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7060 * psymtab.c (match_partial_symbol): Compare the requested
7061 domain with the symbol's domain directly.
7062 (lookup_partial_symbol): Likewise.
7063 * symtab.c (lookup_symbol_in_language): Explain when/why
7064 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7065 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7066 appropriate languages.
7067 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7068 and moved to ada-lang.c
7069 (lookup_block_symbol): Explain that this function only returns
7070 symbol matching the requested DOMAIN.
7071 Compare the requested domain with the symbol's domain directly.
7072 (iterate_over_symbols): Compare the requested domain with the
7073 symbol's domain directly.
7074 * symtab.h (symbol_matches_domain): Remove.
7076 2014-06-06 Doug Evans <xdje42@gmail.com>
7078 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7079 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7080 (gdbscm_guile_version_is_at_least): Declare.
7081 (gdbscm_scm_string_to_int): Declare.
7082 * guile/guile.c (gdbscm_guile_major_version): New global.
7083 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7084 (guile_datadir): New static global.
7085 (gdbscm_guile_data_directory): New function.
7086 (initialize_scheme_side): Update.
7087 (misc_guile_functions): Add guile-data-directory.
7088 (initialize_gdb_module): Fetch guile version number.
7089 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7090 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7091 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7092 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7094 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7095 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7096 * guile/scm-value.c (gdbscm_value_to_string): Only call
7097 scm_port_conversion_strategy if Guile version >= 2.0.6.
7099 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7101 * main.c (print_gdb_help): Add -q and --silent.
7103 2014-06-06 Gary Benson <gbenson@redhat.com>
7105 * common/signals.c: Remove preprocessor conditionals for
7106 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7107 SIGSEGV and SIGTERM.
7108 * proc-events.c: Likewise.
7110 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7112 * symfile.c (symfile_free_objfile): Remove restriction to
7114 * symfile-mem.c (symbol_file_add_from_memory): Call
7115 add_target_sections_of_objfile.
7117 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7119 * guile/scm-value.c (gdbscm_history_append_x): Use
7120 'vlscm_get_value_smob_arg_unsafe' instead of
7121 'vlscm_scm_to_value'.
7123 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7126 * utils.c (printchar): Don't escape at all if quoter is NUL.
7127 Update function documentation to clarify effect of parameter
7129 * remote.c (escape_buffer): Pass '\\' as the quoter to
7130 fputstrn_unfiltered.
7131 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7132 generate the output.
7133 (mi_solib_unloaded): Same.
7135 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7137 * development.sh: Delete.
7138 * Makefile.in (config.status): Adjust dependency on development.sh.
7139 * configure.ac: Adjust development.sh source call.
7140 * configure: Regenerate.
7142 2014-06-04 Doug Evans <xdje42@gmail.com>
7144 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7145 is_scheme_bkpt, spec.
7146 (bpscm_make_breakpoint_smob): Initialize new members.
7147 (gdbscm_create_breakpoint_x): Split into two ...
7148 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7149 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7150 (scheme_function breakpoint_functions): Update.
7151 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7152 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7153 register-breakpoint!.
7155 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7158 * mem-break.c (z_type_supported): Return zero if
7159 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7161 2014-06-04 Tom Tromey <tromey@redhat.com>
7163 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7164 value_from_contents_and_address_unresolved.
7165 (ada_template_to_fixed_record_type_1): Likewise.
7166 (ada_which_variant_applies): Likewise.
7167 * value.h (value_from_contents_and_address_unresolved): Declare.
7168 * value.c (value_from_contents_and_address_unresolved): New
7170 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7171 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7172 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7174 2014-06-04 Tom Tromey <tromey@redhat.com>
7176 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7178 2014-06-04 Tom Tromey <tromey@redhat.com>
7180 * procfs.c (procfs_attach): Make "args" const.
7181 * windows-nat.c (windows_attach): Make "args" const.
7182 * nto-procfs.c (procfs_attach): Make "args" const.
7183 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7184 * go32-nat.c (go32_attach): Make "args" const.
7185 * gnu-nat.c (gnu_attach): Make "args" const.
7186 * darwin-nat.c (darwin_attach): Make "args" const.
7187 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7188 * linux-nat.c (linux_nat_attach): Make "args" const.
7189 * remote.c (extended_remote_attach_1, extended_remote_attach):
7191 * target.h (struct target_ops) <to_attach>: Make "args" const.
7192 (find_default_attach): Likewise.
7193 * utils.c (parse_pid_to_attach): Make "args" const.
7194 * utils.h (parse_pid_to_attach): Update.
7196 2014-06-04 Tom Tromey <tromey@redhat.com>
7198 * target-delegates.c: Rebuild.
7199 * target.c (default_thread_address_space): New function.
7200 (target_thread_address_space): Simplify.
7201 * target.h (struct target_ops) <to_thread_address_space>: Add
7202 TARGET_DEFAULT_FUNC.
7204 2014-06-04 Doug Evans <xdje42@gmail.com>
7206 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7208 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7210 * record-btrace.c: Include event-loop.h and inf-loop.h.
7211 (record_btrace_resume_exec_dir)
7212 (record_btrace_async_inferior_event_handler)
7213 (record_btrace_handle_async_inferior_event): New.
7214 (record_btrace_open): Create async event handler.
7215 (record_btrace_close): Delete async event handler.
7216 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7217 Mark async event handler.
7218 (record_btrace_execution_direction): New.
7219 (init_record_btrace_ops): Initialize to_execution_direction.
7221 2014-06-03 Doug Evans <xdje42@gmail.com>
7223 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7224 (gdbscm_make_parameter): Ditto.
7226 2014-06-03 Doug Evans <dje@google.com>
7228 * exec.c (exec_close_1): Call clear_section_table instead of
7229 resize_section_table.
7230 (clear_section_table): New function.
7231 (resize_section_table): Make static. Rename arg num_added to
7233 * exec.h (clear_section_table): Declare.
7234 (resize_section_table): Delete.
7235 * progspace.c (release_program_space): Call clear_section_table
7236 instead of resize_section_table.
7238 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7240 * NEWS (Python Scripting): Add entry about the new xmethods
7243 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7245 * python/py-xmethods.c: New file.
7246 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7247 (objfpy_dealloc): XDECREF on the new xmethods field.
7248 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7250 (objfpy_get_xmethods): New function.
7251 (objfile_getset): New entry 'xmethods'.
7252 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7253 (pspy_dealloc): XDECREF on the new xmethods field.
7254 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7256 (pspy_get_xmethods): New function.
7257 (pspace_getset): New entry 'xmethods'.
7258 * python/python-internal.h: Add declarations for new functions.
7259 * python/python.c (_initialize_python): Invoke
7260 gdbpy_initialize_xmethods.
7261 * python/lib/gdb/__init__.py (xmethods): New
7263 * python/lib/gdb/xmethod.py: New file.
7264 * python/lib/gdb/command/xmethods.py: New file.
7266 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7268 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7269 best match method returned by find_overload_match is an xmethod.
7270 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7271 the best matching operator returned by find_overload_match is an
7273 * valops.c: #include "extension.h".
7274 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7275 Return void. The list of matching source methods is returned in
7276 "fn_list" and a vector of matching debug method workers is
7277 returned in "xm_worker_vec". Update all callers.
7278 (value_find_oload_method_list): Likewise.
7279 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7280 non-NULL, then the index of the best matching method in this
7281 vector is returned. Update all callers.
7282 (find_overload_match): Include xmethods while performing overload
7285 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7287 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7288 * extension-priv.h (struct extension_language_ops): Add the
7290 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7291 get_matching_xmethod_workers, get_xmethod_argtypes,
7292 invoke_xmethod, free_xmethod_worker,
7293 free_xmethod_worker_vec): New functions.
7294 * extension.h: #include "common/vec.h".
7295 New function declarations.
7296 (struct xmethod_worker): New struct.
7297 (VEC (xmethod_worker_ptr)): New vector type.
7298 (xmethod_worker_ptr): New typedef.
7299 (xmethod_worker_vec): Likewise.
7300 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7302 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7303 (struct builtin_type): New field "xmethod".
7304 * valarith.c (value_ptradd): Assert that the value argument is not
7306 * valops.c (value_must_coerce_to_target): Return 0 for
7307 lval_xcallable values.
7308 * value.c (struct value): New field XM_WORKER in the field
7310 (value_address, value_raw_address): Return 0 for lval_xcallable
7312 (set_value_address): Assert that the value is not an
7314 (value_free): Free the associated xmethod worker when freeing
7315 lval_xcallable values.
7316 (set_value_component_location): Assert that the WHOLE value is not
7318 (value_of_xmethod, call_xmethod): New functions.
7319 * value.h: Declare "struct xmethod_worker".
7320 Declare new functions value_of_xmethod, call_xmethod.
7322 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7323 Pedro Alves <palves@redhat.com>
7325 PR breakpoints/17000
7326 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7327 New function, extracted from software_breakpoint_inserted_here_p.
7328 (software_breakpoint_inserted_here_p): Replace factored out code
7329 by call to find_non_raw_software_breakpoint_inserted_here.
7330 (bp_target_info_copy_insertion_state): New function.
7331 (bkpt_insert_location): Handle the case of a single-step
7332 breakpoint already inserted at the same address.
7333 (bkpt_remove_location): Handle the case of a single-step
7334 breakpoint still inserted at the same address.
7335 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7336 breakpoint already inserted at the same address.
7337 (deprecated_remove_raw_breakpoint): Handle the case of a
7338 non-raw breakpoint still inserted at the same address.
7339 (find_single_step_breakpoint): New function, extracted from
7340 single_step_breakpoint_inserted_here_p.
7341 (find_single_step_breakpoint): New function,
7342 factored out from single_step_breakpoint_inserted_here_p.
7343 (single_step_breakpoint_inserted_here_p): Reimplement.
7345 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7347 Pushed by Joel Brobecker <brobecker@adacore.com>
7348 * source.c (show_substitute_path_command): Fix display of matching
7351 2014-06-03 Gary Benson <gbenson@redhat.com>
7353 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7355 2014-06-02 Doug Evans <xdje42@gmail.com>
7357 Add parameter support for Guile.
7358 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7359 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7360 (scm-param.o): New rule.
7361 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7362 (gdbscm_misc_error): Declare.
7363 (gdbscm_canonicalize_command_name): Declare.
7364 (gdbscm_scm_to_host_string): Declare.
7365 (gdbscm_scm_from_host_string): Declare.
7366 (gdbscm_initialize_parameters): Declare.
7367 * guile/guile.c (initialize_gdb_module): Call
7368 gdbscm_initialize_parameters.
7369 * guile/lib/gdb.scm: Export parameter symbols.
7370 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7371 cmdscm_canonicalize_name and made public. All callers updated.
7372 * guile/scm-exception.c (gdbscm_misc_error): New function.
7373 * guile/scm-param.c: New file.
7374 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7375 (gdbscm_scm_to_host_string): New function.
7376 (gdbscm_scm_from_host_string): New function.
7377 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7379 2014-06-02 Doug Evans <xdje42@gmail.com>
7381 Add command support for Guile.
7382 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7383 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7384 (scm-cmd.o): New rule.
7385 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7386 (gdbscm_user_error_p): Declare.
7387 (gdbscm_parse_command_name): Declare.
7388 (gdbscm_valid_command_class_p): Declare.
7389 (gdbscm_initialize_commands): Declare.
7390 * guile/guile.c (initialize_gdb_module): Call
7391 gdbscm_initialize_commands.
7392 * guile/lib/gdb.scm: Export command symbols.
7393 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7394 (throw-user-error): New function.
7395 * guile/scm-cmd.c: New file.
7396 * guile/scm-exception.c (user_error_symbol): New static global.
7397 (gdbscm_user_error_p): New function.
7398 (gdbscm_initialize_exceptions): Set user_error_symbol.
7399 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7401 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7403 * top.c (command_loop): Handle comments here...
7404 (command_line_input): ... not here.
7406 2014-06-02 Doug Evans <xdje42@gmail.com>
7408 Add progspace support for Guile.
7409 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7410 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7411 (scm-progspace.o): New rule.
7412 * guile/guile-internal.h (pspace_smob): New typedef.
7413 (psscm_pspace_smob_pretty_printers): Declare.
7414 (psscm_pspace_smob_from_pspace): Declare.
7415 (psscm_scm_from_pspace): Declare.
7416 * guile/guile.c (initialize_gdb_module): Call
7417 gdbscm_initialize_pspaces.
7418 * guile/lib/gdb.scm: Export progspace symbols.
7419 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7421 (append-pretty-printer!): Ditto.
7422 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7424 * guile/scm-progspace.c: New file.
7426 2014-06-03 Alan Modra <amodra@gmail.com>
7428 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7429 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7431 2014-06-02 Doug Evans <dje@google.com>
7433 Add support for skeletonless type units.
7434 * dwarf2read.c (struct dwarf2_per_objfile): New member
7435 n_allocated_type_units.
7436 (struct dwarf2_per_objfile) <tu_stats>: New member
7437 nr_all_type_units_reallocs.
7438 (create_signatured_type_table_from_index): Initialize
7439 n_allocated_type_units
7440 (create_all_type_units): Ditto.
7441 (add_type_unit): Move up in file. New arg slot.
7442 All callers updated. Increase space for all_type_units more
7444 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7445 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7446 (lookup_dwp_signatured_type): Ditto.
7447 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7448 All callers updated.
7449 (build_type_psymtabs_1): Leave type_unit_groups as
7450 NULL if no TUs present.
7451 (print_tu_stats): New function.
7452 (process_skeletonless_type_unit): New function.
7453 (process_dwo_file_for_skeletonless_type_units): New
7455 (process_skeletonless_type_units): New function.
7456 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7457 Call print tu_stats if debugging enabled.
7459 2014-06-02 Pedro Alves <palves@redhat.com>
7461 * breakpoint.c (build_target_command_list): Don't build a command
7462 list if we have any duplicate location that isn't a dprintf.
7464 2014-06-02 Pedro Alves <palves@redhat.com>
7466 * breakpoint.c (dprintf_breakpoint_hit): New function.
7467 (initialize_breakpoint_ops): Install it as dprintf's
7468 breakpoint_hit method.
7470 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7472 * source.c (substitute_path_rule_matches): Simplify using
7473 filename_ncmp instead of FILENAME_CMP.
7475 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7477 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7479 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7481 * configure.ac: When Guile is available, check for the
7482 availability of 'scm_new_smob'.
7483 * configure, config.h.in: Regenerate.
7484 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7487 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7489 * frame.c (struct frame_info): Add stop_string field.
7490 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7491 (get_prev_frame_always): Old content moved into
7492 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7493 TRY_CATCH, handle MEMORY_ERROR exceptions.
7494 (frame_stop_reason_string): New function definition.
7495 * frame.h (unwind_stop_reason_to_string): Extend comment to
7496 mention frame_stop_reason_string.
7497 (frame_stop_reason_string): New function declaration.
7498 * stack.c (frame_info): Switch to frame_stop_reason_string.
7499 (backtrace_command_1): Switch to frame_stop_reason_string.
7500 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7501 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7502 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7504 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7506 * frame.c (frame_stop_reason_string): Rename to ...
7507 (unwind_stop_reason_to_string): this.
7508 * frame.h (frame_stop_reason_string): Rename to ...
7509 (unwind_stop_reason_to_string): this.
7510 * stack.c (frame_info): Update call to frame_stop_reason_string.
7511 (backtrace_command_1): Likewise.
7512 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7513 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7515 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7517 * frame.c (remove_prev_frame): New function.
7518 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7521 2014-05-29 Pedro Alves <palves@redhat.com>
7523 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7524 and make it const. When a single-step decays to a continue,
7525 clear 'step', not 'hw_step'. Pass whether the caller wanted
7526 to step to user_visible_resume_ptid, not what we ask the
7529 2014-05-29 Pedro Alves <palves@redhat.com>
7531 * infrun.c (process_event_stop_test, handle_step_into_function)
7532 (handle_step_into_function_backward): Adjust.
7533 Don't set the even thread's stop_step and call stop_waiting before
7534 calling end_stepping_range. Instead do that ...
7535 (end_stepping_range): ... here. Take an ecs pointer parameter.
7537 2014-05-29 Pedro Alves <palves@redhat.com>
7539 * infrun.c (stop_stepping): Rename to ...
7540 (stop_waiting): ... this.
7541 (proceed): Update comment.
7542 (process_event_stop_test, handle_inferior_event)
7543 (handle_signal_stop, handle_step_into_function)
7544 (handle_step_into_function_backward): Update.
7546 2014-05-29 Pedro Alves <palves@redhat.com>
7548 * infcall.c (run_inferior_call): Don't check whether the current
7549 thread is running after the proceed call.
7551 2014-05-29 Pedro Alves <palves@redhat.com>
7552 Tom Tromey <tromey@redhat.com>
7554 * NEWS: Mention "maint set target-async", "set mi-async", and that
7555 background execution commands are now always available.
7556 * target.h (target_async_permitted): Update comment.
7557 * target.c (target_async_permitted, target_async_permitted_1):
7559 (set_target_async_command): Rename to ...
7560 (maint_set_target_async_command): ... this.
7561 (show_target_async_command): Rename to ...
7562 (maint_show_target_async_command): ... this.
7563 (_initialize_target): Adjust.
7564 * infcmd.c (prepare_execution_command): Make extern.
7565 * inferior.h (prepare_execution_command): Declare.
7566 * infrun.c (set_observer_mode): Leave target async alone.
7567 * mi/mi-interp.c (mi_interpreter_init): Install
7568 mi_on_sync_execution_done as sync_execution_done observer.
7569 (mi_on_sync_execution_done): New function.
7570 (mi_execute_command_input_handler): Don't print the prompt if we
7571 just started a synchronous command with an async target.
7572 (mi_on_resume): Check sync_execution before printing prompt.
7573 * mi/mi-main.h (mi_async_p): Declare.
7574 * mi/mi-main.c: Include gdbcmd.h.
7575 (mi_async_p): New function.
7576 (mi_async, mi_async_1): New globals.
7577 (set_mi_async_command, show_mi_async_command, mi_async): New
7579 (exec_continue): Call prepare_execution_command.
7580 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7581 (mi_execute_async_cli_command): Use mi_async_p.
7582 (_initialize_mi_main): Install "set mi-async". Make
7583 "target-async" a deprecated alias.
7585 2014-05-29 Pedro Alves <palves@redhat.com>
7587 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7588 (_initialize_cli_interp): Adjust.
7589 * event-loop.c: Include "observer.h".
7590 (start_event_loop): Notify 'command_error' observers instead of
7591 calling display_gdb_prompt. Remove FIXME comment.
7592 * event-top.c (display_gdb_prompt): Remove call into the
7594 * inf-loop.c: Include "observer.h".
7595 (inferior_event_handler): Notify 'command_error' observers instead
7596 of calling display_gdb_prompt.
7597 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7598 observers instead of calling display_gdb_prompt.
7599 * interps.c (interp_set): Don't call display_gdb_prompt.
7600 (current_interp_display_prompt_p): Delete.
7601 * interps.h (interp_prompt_p): Delete declaration.
7602 (interp_prompt_p_ftype): Delete.
7603 (struct interp_procs) <prompt_proc_p>: Delete field.
7604 (current_interp_display_prompt_p): Delete declaration.
7605 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7606 (_initialize_mi_interp): Adjust.
7607 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7608 'command_error' observers.
7609 (tui_on_sync_execution_done, tui_on_command_error): New
7611 (tui_display_prompt_p): Delete.
7612 (_initialize_tui_interp): Adjust.
7614 2014-05-29 Pedro Alves <palves@redhat.com>
7617 * cli/cli-interp.c: Include infrun.h and observer.h.
7618 (cli_uiout, cli_interp): New globals.
7619 (cli_on_signal_received, cli_on_end_stepping_range)
7620 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7622 (cli_interpreter_init): Install them as 'end_stepping_range',
7623 'signal_received' 'signal_exited', 'exited' and 'no_history'
7625 (_initialize_cli_interp): Remove cli_interp local.
7626 * infrun.c (handle_inferior_event): Call the several stop reason
7627 observers instead of printing the stop reason directly.
7628 (end_stepping_range): New function.
7629 (print_end_stepping_range_reason, print_signal_exited_reason)
7630 (print_exited_reason, print_signal_received_reason)
7631 (print_no_history_reason): Make static, and add an uiout
7632 parameter. Print to that instead of to CURRENT_UIOUT.
7633 * infrun.h (print_end_stepping_range_reason)
7634 (print_signal_exited_reason, print_exited_reason)
7635 (print_signal_received_reason print_no_history_reason): New
7637 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7639 <cli_uiout>: New field.
7640 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7641 uiout for CLI output. Install 'signal_received',
7642 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7644 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7645 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7646 (mi_on_no_history): New functions.
7647 (ui_out_free_cleanup): Delete function.
7648 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7649 instead use the one already stored in the MI interpreter data.
7650 (mi_ui_out): Adjust.
7651 * tui/tui-interp.c: Include infrun.h and observer.h.
7652 (tui_interp): New global.
7653 (tui_on_signal_received, tui_on_end_stepping_range)
7654 (tui_on_signal_exited, tui_on_exited)
7655 (tui_on_no_history): New functions.
7656 (tui_init): Install them as 'end_stepping_range',
7657 'signal_received' 'signal_exited', 'exited' and 'no_history'
7659 (_initialize_tui_interp): Delete tui_interp local.
7661 2014-05-29 Pedro Alves <palves@redhat.com>
7664 * linux-nat.c (linux_nat_resume_callback): Rename the second
7665 parameter to 'except'. Skip LP if it points to EXCEPT.
7666 (linux_nat_resume): Don't mark the event lwp as not stopped
7667 before resuming sibling lwps. Instead ask
7668 linux_nat_resume_callback to skip the event lwp. Mark it as not
7669 stopped after actually resuming it.
7670 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7672 (wait_lwp): Mark the lwp as stopped here.
7673 (stop_wait_callback): Mark the lwp as not stopped right after
7674 resuming it. Don't mark lwps as stopped here.
7675 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7676 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7678 2014-05-29 Pedro Alves <palves@redhat.com>
7681 * infrun.c (resume): Determine how much to resume depending on
7682 whether the caller wanted a step, not whether we can hardware step
7683 the target. Mark all threads that we intend to run as running,
7684 unless we're calling an inferior function.
7685 (normal_stop): If the thread is running an infcall, don't finish
7687 * target.c (target_resume): Don't mark threads as running here.
7689 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7691 * serial.c (_initialize_serial): Remove support for
7692 the "set remotebaud" and "show remotebaud" commands.
7693 * NEWS: Add entry documenting the removal of that command.
7695 2014-05-28 Yao Qi <yao@codesourcery.com>
7697 * charset.c: Fix typo in comments.
7699 2014-05-27 Gary Benson <gbenson@redhat.com>
7701 * utils.c (internal_vproblem): Prompt for a bug report.
7703 2014-05-26 Andy Wingo <wingo@igalia.com>
7705 * guile/scm-arch.c (arscm_mark_arch_smob):
7706 * guile/scm-block.c (bkscm_mark_block_smob)
7707 (bkscm_mark_block_syms_progress_smob):
7708 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7709 * guile/scm-exception.c (exscm_mark_exception_smob):
7710 * guile/scm-frame.c (frscm_mark_frame_smob):
7711 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7712 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7713 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7714 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7715 (ppscm_mark_pretty_printer_worker_smob):
7716 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7717 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7718 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7719 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7721 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7724 2014-05-26 Andy Wingo <wingo@igalia.com>
7725 Doug Evans <xdje42@gmail.com>
7727 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7728 empty_base_class. All uses updated.
7729 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7730 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7732 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7733 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7734 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7735 (gdbscm_gsmob_has_property_p, add_property_name)
7736 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7737 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7738 (gdb-object-has-property?, gdb-object-properties): Remove.
7739 (gdb-object-kind): Renamed from gsmob-kind.
7741 2014-05-26 Andy Wingo <wingo@igalia.com>
7743 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7744 * configure: Regenerate.
7746 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7748 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7750 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7752 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7753 (replay_memory_access_read_only, replay_memory_access_read_write)
7754 (replay_memory_access_types, replay_memory_access)
7755 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7756 (cmd_set_record_btrace, cmd_show_record_btrace)
7757 (cmd_show_replay_memory_access): New.
7758 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7759 (record_btrace_remove_breakpoint): Replace
7760 record_btrace_allow_memory_access with replay_memory_access.
7761 (_initialize_record_btrace): Add commands.
7762 * NEWS: Announce it.
7764 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7766 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7768 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7770 * MAINTAINERS (Write After Approval): Move self back from
7773 2014-05-22 Pedro Alves <palves@redhat.com>
7775 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7776 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7777 (disable_randomization, enum exec_direction_kind)
7778 (execution_direction, stop_registers, start_remote)
7779 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7780 (wait_for_inferior, normal_stop, get_last_target_status)
7781 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7782 (insert_step_resume_breakpoint_at_sal)
7783 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7784 (set_step_info, print_stop_event, signal_stop_state)
7785 (signal_print_state, signal_pass_state, signal_stop_update)
7786 (signal_print_update, signal_pass_update)
7787 (update_signals_program_target, clear_exit_convenience_vars)
7788 (displaced_step_dump_bytes, update_observer_mode)
7789 (signal_catch_update, gdb_signal_from_command): Move
7791 * infrun.h: ... to this new file.
7792 * amd64-tdep.c: Include infrun.h.
7793 * annotate.c: Include infrun.h.
7794 * arch-utils.c: Include infrun.h.
7795 * arm-linux-tdep.c: Include infrun.h.
7796 * arm-tdep.c: Include infrun.h.
7797 * break-catch-sig.c: Include infrun.h.
7798 * breakpoint.c: Include infrun.h.
7799 * common/agent.c: Include infrun.h instead of inferior.h.
7800 * corelow.c: Include infrun.h.
7801 * event-top.c: Include infrun.h.
7802 * go32-nat.c: Include infrun.h.
7803 * i386-tdep.c: Include infrun.h.
7804 * inf-loop.c: Include infrun.h.
7805 * infcall.c: Include infrun.h.
7806 * infcmd.c: Include infrun.h.
7807 * infrun.c: Include infrun.h.
7808 * linux-fork.c: Include infrun.h.
7809 * linux-nat.c: Include infrun.h.
7810 * linux-thread-db.c: Include infrun.h.
7811 * monitor.c: Include infrun.h.
7812 * nto-tdep.c: Include infrun.h.
7813 * procfs.c: Include infrun.h.
7814 * record-btrace.c: Include infrun.h.
7815 * record-full.c: Include infrun.h.
7816 * remote-m32r-sdi.c: Include infrun.h.
7817 * remote-mips.c: Include infrun.h.
7818 * remote-notif.c: Include infrun.h.
7819 * remote-sim.c: Include infrun.h.
7820 * remote.c: Include infrun.h.
7821 * reverse.c: Include infrun.h.
7822 * rs6000-tdep.c: Include infrun.h.
7823 * s390-linux-tdep.c: Include infrun.h.
7824 * solib-irix.c: Include infrun.h.
7825 * solib-osf.c: Include infrun.h.
7826 * solib-svr4.c: Include infrun.h.
7827 * target.c: Include infrun.h.
7828 * top.c: Include infrun.h.
7829 * windows-nat.c: Include infrun.h.
7830 * mi/mi-interp.c: Include infrun.h.
7831 * mi/mi-main.c: Include infrun.h.
7832 * python/py-threadevent.c: Include infrun.h.
7834 2014-05-22 Pedro Alves <palves@redhat.com>
7836 * infrun.c (handle_inferior_event): Store the exit code for
7837 --return-child-result here, instead of ...
7838 (print_exited_reason): ... here.
7840 2014-05-21 Pedro Alves <palves@redhat.com>
7843 * gdbthread.h (struct thread_control_state): New field
7845 * infrun.c (follow_fork): Copy the new thread control field to the
7847 (clear_proceed_status_thread): Clear the new thread control field.
7848 (proceed): Set the new thread control field.
7849 * interps.h (command_interp): Declare.
7850 * interps.c (command_interpreter): New global.
7851 (command_interp): New function.
7852 (interp_exec): Set `command_interpreter' while here.
7853 * cli-out.c (cli_uiout_dtor): New function.
7854 (cli_ui_out_impl): Install it.
7855 * mi/mi-interp.c: Include cli-out.h.
7856 (mi_cmd_interpreter_exec): Add comment.
7857 (restore_current_uiout_cleanup): New function.
7858 (ui_out_free_cleanup): New function.
7859 (mi_on_normal_stop): If finishing an execution command started by
7860 a CLI command, or any kind of breakpoint-like event triggered,
7861 print the stop event to the output (CLI) stream.
7862 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7864 2014-05-21 Pedro Alves <palves@redhat.com>
7866 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7867 current source line having changed.
7868 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7869 * infrun.c (normal_stop): Adjust call to
7870 set_current_sal_from_frame.
7871 * source.c (clear_lines_listed_range): New function.
7872 (set_current_source_symtab_and_line, identify_source_line): Clear
7873 the lines listed range.
7874 (line_info): Handle the first "info line" after the current source
7875 line having changed.
7876 * stack.c (print_stack_frame): Remove center handling.
7877 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7880 2014-05-21 Pedro Alves <palves@redhat.com>
7882 * inf-child.c (inf_child_mourn_inferior): New function.
7883 * inf-child.h (inf_child_mourn_inferior): New declaration.
7884 * darwin-nat.c (darwin_mourn_inferior): Use
7885 inf_child_mourn_inferior.
7886 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7887 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7888 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7889 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7890 * windows-nat.c (windows_mourn_inferior): Likewise.
7892 2014-05-21 Doug Evans <xdje42@gmail.com>
7894 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7896 2014-05-21 Doug Evans <xdje42@gmail.com>
7898 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7899 (gdbscm_out_of_range_error): Ditto.
7900 (gdbscm_memory_error): Ditto.
7901 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7902 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7903 (gdbscm_out_of_range_error): Update.
7904 (gdbscm_memory_error): Update.
7905 (gdbscm_scm_to_target_string_unsafe): Delete.
7907 2014-05-21 Pedro Alves <palves@redhat.com>
7909 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7911 (inf_child_open_target): New function.
7912 (inf_child_open): Use inf_child_open_target to push the target
7913 instead of erroring out.
7914 (inf_child_disconnect, inf_child_close)
7915 (inf_child_maybe_unpush_target): New functions.
7916 (inf_child_target): Install inf_child_disconnect and
7917 inf_child_close. Store a pointer to the returned object.
7918 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7920 * target.c (auto_connect_native_target): New global.
7921 (show_default_run_target): New function.
7922 (find_default_run_target): Return NULL if automatically connecting
7923 to the native target is disabled.
7924 (_initialize_target): Install set/show auto-connect-native-target.
7925 * NEWS: Mention "set auto-connect-native-target", and "target
7927 * linux-nat.c (super_close): New global.
7928 (linux_nat_close): Call super_close.
7929 (linux_nat_add_target): Store a pointer to the base class's
7931 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7932 inf_child_maybe_unpush.
7933 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7935 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7936 the inferior. Use inf_child_maybe_unpush_target.
7937 (inf_ttrace_attach): Don't push the target if it is already
7939 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7940 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7941 after mourning the inferior. Use inf_child_maybe_unpush_target.
7942 (darwin_attach_pid): Don't push the target if it is already
7944 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7945 mourning the inferior. Use inf_child_maybe_unpush_target.
7946 (gnu_detach): Use inf_child_maybe_unpush_target.
7947 * go32-nat.c (go32_create_inferior): Don't push the target if it
7949 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7950 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7951 (procfs_open): Rename to ...
7952 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7953 comments. Can target_preopen before changing node. Call
7954 inf_child_open_target to push the target explicitly.
7955 (procfs_attach): Don't push the target if it is already pushed.
7956 (procfs_detach): Use inf_child_maybe_unpush_target.
7957 (procfs_create_inferior): Don't push the target if it is already
7959 (nto_native_ops): New global.
7960 (procfs_open): Reimplement.
7961 (procfs_native_open): New function.
7962 (init_procfs_targets): Install procfs_native_open as to_open of
7963 "target native". Store a pointer to the "native" target in
7965 * procfs.c (procfs_attach): Don't push the target if it is already
7967 (procfs_detach): Use inf_child_maybe_unpush_target.
7968 (procfs_mourn_inferior): Only unpush the target after mourning the
7969 inferior. Use inf_child_maybe_unpush_target.
7970 (procfs_init_inferior): Don't push the target if it is already
7972 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7973 if it is already pushed.
7975 2014-05-21 Pedro Alves <palves@redhat.com>
7977 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7978 and "procfs" targets are now called "native" instead.
7980 2014-05-21 Pedro Alves <palves@redhat.com>
7982 * go32-nat.c (go32_open): Delete.
7983 (go32_target): Don't override the to_open method.
7985 2014-05-21 Pedro Alves <palves@redhat.com>
7987 * nto-procfs.c (procfs_can_run): New function.
7988 (nto_procfs_ops): New global.
7989 (init_procfs_targets): New, based on procfs_target. Install
7990 "target native" in addition to "target procfs".
7991 (_initialize_procfs): Call init_procfs_targets instead of adding
7994 2014-05-21 Pedro Alves <palves@redhat.com>
7996 * windows-nat.c (windows_target): Don't override to_shortname,
7997 to_longname or to_doc.
7999 2014-05-21 Pedro Alves <palves@redhat.com>
8001 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8004 2014-05-21 Pedro Alves <palves@redhat.com>
8006 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8007 to_shortname, to_longname or to_doc.
8009 2014-05-21 Pedro Alves <palves@redhat.com>
8011 * go32-nat.c (go32_target): Don't override to_shortname,
8012 to_longname or to_doc.
8014 2014-05-21 Pedro Alves <palves@redhat.com>
8016 * inf-child.c (inf_child_open): Remove mention of "child".
8017 (inf_child_target): Rename target to "native" instead of "child".
8019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8021 * Makefile.in (SFILES): Delete "regset.c".
8022 (COMMON_OBS): Delete "regset.o".
8024 * regset.h (regset_alloc): Delete prototype.
8026 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8028 * sparc-linux-tdep.c (sparc32_linux_gregset)
8029 (sparc32_linux_fpregset): New static regset structures.
8030 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8031 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8033 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8034 (sparc64_linux_fpregset): New static regset structures.
8035 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8036 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8037 New static regset structures.
8038 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8039 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8040 New static regset structures.
8041 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8042 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8043 New static regset structures.
8044 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8045 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8046 New static regset structures.
8047 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8049 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8051 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8052 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8053 register maps ("regmaps") from "*regset" to "*regmap". Do this
8054 for all regmap types and variables.
8055 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8056 (sparc32_linux_supply_core_gregset)
8057 (sparc32_linux_collect_core_gregset)
8058 (sparc32_linux_supply_core_fpregset)
8059 (sparc32_linux_collect_core_fpregset): Likewise.
8060 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8061 (sparc_gregmap, sparc_fpregmap): ... these.
8062 (sparc_supply_gregset, sparc_collect_gregset)
8063 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8064 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8065 (_initialize_sparc_nat): Rename regmaps.
8066 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8067 (sparc_gregmap, sparc_fpregmap): ... these.
8068 (sparc_supply_gregset, sparc_collect_gregset)
8069 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8070 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8072 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8073 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8075 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8077 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8078 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8079 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8081 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8082 (sparc32_bsd_fpregset): Rename to...
8083 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8084 (sparc32_bsd_fpregmap): ... these.
8085 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8086 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8087 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8088 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8089 (struct sparc_gregmap, struct sparc_fpregmap)
8090 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8091 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8092 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8093 (sparc32_supply_regset, sparc32_collect_gregset)
8094 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8096 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8097 (sparc64_linux_ptrace_gregmap): ... this.
8098 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8099 (_initialize_sparc64_linux_nat): Rename regmaps.
8100 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8101 (sparc64_linux_core_gregmap): ... this.
8102 (sparc64_linux_supply_core_gregset)
8103 (sparc64_linux_collect_core_gregset)
8104 (sparc64_linux_supply_core_fpregset)
8105 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8106 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8107 (sparc64_sol2_fpregset): Rename to...
8108 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8109 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8110 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8112 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8113 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8114 (sparc64_bsd_fpregset): Rename to...
8115 (struct sparc_gregmap, sparc64_sol2_gregmap)
8116 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8117 (sparc64_bsd_fpregmap): ... these.
8118 (sparc64_supply_gregset, sparc64_collect_gregset)
8119 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8121 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8122 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8123 (sparc64fbsd_gregmap): ... this.
8124 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8125 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8127 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8128 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8129 (sparc64nbsd_collect_fpregset): Likewise.
8130 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8131 (sparc64nbsd_gregmap): ... this.
8132 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8134 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8135 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8136 (sparc64obsd_gregmap): ... this.
8137 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8139 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8140 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8141 (sparc32nbsd_gregmap): ... this.
8142 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8145 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8147 * score-tdep.c (score7_linux_gregset): New static regset
8149 (score7_linux_regset_from_core_section): Remove dynamic regset
8151 (score_gdbarch_init): Drop allocation of tdep structure.
8152 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8154 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8156 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8158 (am33_regset_from_core_section): Remove dynamic regset
8161 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8163 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8164 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8166 (mips_linux_regset_from_core_section): Remove dynamic regset
8168 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8169 'gregset64', 'fpregset', and 'fpregset64'.
8170 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8171 deleted tdep fields.
8173 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8175 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8177 (amd64_regset_from_core_section): Remove dynamic regset
8179 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8181 (amd64obsd_regset_from_core_section): Remove dynamic regset
8183 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8185 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8186 x86-common regset supply function.
8187 * i386-tdep.c (i386_collect_gregset): Make static.
8188 (i386_gregset): New global regset structure.
8189 (i386_fpregset, i386_xstateregset): New static regset structures.
8190 (i386_regset_from_core_section): Remove dynamic regset
8192 (i386_gdbarch_init): Remove initialization of tdep fields
8193 'gregset', 'fpregset', and 'xstateregset'.
8194 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8195 'fpregset', and 'xstateregset'.
8196 (i386_collect_gregset): Remove prototype.
8197 (i386_gregset): New declaration.
8198 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8200 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8203 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8205 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8206 (arm_linux_vfpregset): New static regset structures.
8207 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8209 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8210 and 'vfpregset' fields.
8212 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8214 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8215 (aarch64_linux_fpregset): New static regset structures.
8216 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8217 of regset structures.
8218 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8221 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8223 * regset.h (struct regset): Remove gdbarch field.
8224 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8225 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8226 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8228 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8229 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8230 (ppc32_linux_vsxregset): Likewise.
8231 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8232 via the regcache instead of the regset.
8233 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8234 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8235 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8236 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8239 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8241 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8242 Constify structures.
8243 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8244 (alphanbsd_aout_gregset): Likewise.
8245 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8246 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8248 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8249 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8251 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8252 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8253 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8254 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8255 * m88k-tdep.c (m88k_gregset): Likewise.
8256 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8257 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8258 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8259 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8260 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8261 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8262 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8263 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8264 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8266 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8267 * sh-tdep.h (sh_corefile_gregset): Likewise.
8268 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8269 * vax-tdep.c (vax_gregset): Likewise.
8271 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8273 Fix TLS access for -static -pthread.
8274 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8275 (try_thread_db_load_1): Initialize it.
8276 (thread_db_get_thread_local_address): Call it if LM is zero.
8277 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8278 * target.h (struct target_ops) (to_get_thread_local_address): Add
8279 load_module_addr comment.
8281 2014-05-21 Pedro Alves <palves@redhat.com>
8283 * dcache.c (dcache_read_memory_partial): If reading the cache line
8284 fails, fallback to reading just the memory the caller wanted.
8286 2014-05-20 Doug Evans <dje@google.com>
8288 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8289 instead of get_current_arch.
8291 2014-05-20 Pedro Alves <palves@redhat.com>
8293 * NEWS: Mention that compare-sections now works with all targets.
8295 * remote.c (PACKET_qCRC): New enum value.
8296 (remote_verify_memory): Don't send qCRC if the target has no
8297 execution. Use packet_support/packet_ok. If the target doesn't
8298 support the qCRC packet, fallback to a deep memory copy.
8299 (compare_sections_command): Say "target image" instead of "remote
8301 (_initialize_remote): Add PACKET_qCRC to the list of config
8302 packets that have no associated command. Extend comment.
8303 * target.c (simple_verify_memory, default_verify_memory): New
8305 * target.h (struct target_ops) <to_verify_memory>: Default to
8306 default_verify_memory.
8307 (simple_verify_memory): New declaration.
8308 * target-delegates.c: Regenerate.
8310 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8312 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8314 2014-05-20 Hui Zhu <hui@codesourcery.com>
8315 Yao Qi <yao@codesourcery.com>
8318 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8319 and change address of sp and pc.
8321 2014-05-19 Tom Tromey <tromey@redhat.com>
8323 * gdbtypes.c (rank_function): Use XNEWVEC.
8324 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8326 2014-05-19 Doug Evans <dje@google.com>
8328 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8329 build_type_unit_groups and moved closer to only caller. Remove
8330 arguments. All references updated. Remove outdated .gdb_index
8332 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8333 build_type_psymtabs_1.
8335 2014-05-19 Doug Evans <dje@google.com>
8337 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8338 n_type_unit_groups, all_type_unit_groups. All uses removed.
8339 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8340 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8341 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8342 (add_type_unit_group_to_table): Delete.
8344 2014-05-19 Doug Evans <dje@google.com>
8346 * eval.c (evaluate_subexp_standard): Add some comments.
8348 2014-05-17 Doug Evans <xdje42@gmail.com>
8350 * progspace.c (remove_program_space): Delete, unused.
8351 * progspace.h (remove_program_space): Ditto.
8353 2014-05-17 Doug Evans <xdje42@gmail.com>
8355 * inferior.c (prune_inferiors): Fix comment.
8356 (remove_inferior_command): Call prune_program_spaces.
8358 2014-05-16 Doug Evans <dje@google.com>
8360 New command line option -D.
8362 * main.c (set_gdb_data_directory): New function.
8363 (captured_main): Recognize -D. Flag error for --data-directory "".
8364 Call set_gdb_data_directory.
8365 (print_gdb_help): Print --data-directory, -D.
8366 * main.h (set_gdb_data_directory): Declare.
8367 * top.c (staged_gdb_datadir): New static global.
8368 (set_gdb_datadir): Call set_gdb_data_directory
8369 (show_gdb_datadir): New function.
8370 (init_main): Update init of data-directory parameter.
8372 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8374 Import the "dirfd" gnulib module.
8375 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8376 * gnulib/aclocal.m4: Update.
8377 * gnulib/config.in: Update.
8378 * gnulib/configure: Update.
8379 * gnulib/import/Makefile.am: Update.
8380 * gnulib/import/Makefile.in: Update.
8381 * gnulib/import/dirfd.c: New.
8382 * gnulib/import/m4/dirfd.m4: New.
8383 * gnulib/import/m4/gnulib-cache.m4: Update.
8384 * gnulib/import/m4/gnulib-comp.m4: Update.
8386 2014-05-16 Pierre Muller <muller@sourceware.org>
8387 Yao Qi <yao@codesourcery.com>
8389 * valprint.c (print_wchar): Move the code on checking whether
8390 W is a printable wide char to the default branch of switch
8391 statement below. Call wchar_printable instead of gdb_iswprint.
8393 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8395 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8396 ldr.w and ldrd instructions.
8398 2014-05-15 Doug Evans <dje@google.com>
8400 * dwarf2read.c (read_structure_type): Delete outdated comments.
8402 2014-05-14 Tom Tromey <tromey@redhat.com>
8404 * macrocmd.c (print_macro_definition): Reindent.
8406 2014-05-13 Doug Evans <xdje42@gmail.com>
8408 * python/py-cmd.c (cmdpy_completer): Add comment.
8409 (completers): Make const.
8411 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8413 * infrun.c (resume): Remove should_resume (unused). Move up
8414 declaration of resume_ptid.
8416 2014-05-13 Tom Tromey <tromey@redhat.com>
8418 * language.h (unop_type_check): Remove.
8419 (binop_type_check): Don't declare.
8421 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8423 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8424 call to regcache_raw_collect.
8426 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8428 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8429 mi_console->quote as the quoting character.
8431 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8433 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8435 2014-04-29 Tom Tromey <tromey@redhat.com>
8437 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8438 "show debug varobj".
8440 2014-05-07 Kyle McMartin <kyle@redhat.com>
8442 Pushed by Joel Brobecker <brobecker@adacore.com>.
8443 * aarch64-tdep.c (aarch64_software_single_step): New function.
8444 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8445 with aarch64_software_single_step.
8447 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8451 2014-05-05 Keith Seitz <keiths@redhat.com>
8453 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8454 variable or history value is successfully parsed.
8456 2014-05-05 Yao Qi <yao@codesourcery.com>
8457 Pedro Alves <palves@redhat.com>
8459 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8460 address of blocks that intersects the requested range. Trim
8461 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8463 * ctf.c (ctf_xfer_partial): Likewise.
8465 2014-05-05 Yao Qi <yao@codesourcery.com>
8467 * printcmd.c (display_command): Remove the check to
8468 target_has_execution.
8470 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8472 * ppcobsd-nat.c: Include "obsd-nat.h".
8473 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8475 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8477 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8479 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8480 and 16-bit signed and unsigned arguments. Update comment.
8481 (stap_parse_probe_arguments): Extend code to handle such
8482 arguments. Use warning instead of complaint to notify about
8483 unrecognized bitness.
8485 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8487 PR breakpoints/16889
8488 * stap-probe.c (stap_parse_probe_arguments): Simplify
8489 check for non-prefixed probes (i.e., probes whose
8490 arguments do not start with "N@"). Always set the
8491 argument type to a sane value.
8493 2014-05-01 David Taylor <dtaylor@emc.com>
8495 * remote.c (compare_sections_command): Add -r option to compare
8496 all loadable read-only sections.
8498 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8500 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8501 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8503 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8504 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8505 Remove unused CORE_ADDR argument. Update all callers.
8507 2014-04-29 Pedro Alves <palves@redhat.com>
8509 * remote.c (struct packet_config) <detect>: Extend comment.
8510 (add_packet_config_cmd): Don't set the config's detect or support
8512 (init_all_packet_configs): Also initialize the config's 'detect'
8514 (reset_all_packet_configs_support): New function.
8515 (remote_open_1): Call reset_all_packet_configs_support instead of
8516 init_all_packet_configs.
8517 (_initialize_remote): Initialize all packet configs. Assert that
8518 all packets have an associated command, except a few known
8521 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8523 * dwarf2read.c (read_subrange_type): Handle dynamic
8524 DW_AT_lower_bound attributes.
8526 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8528 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8529 dynamic bounds before computing its upper bound.
8530 (ada_discrete_type_low_bound): Same as above with the lower bound.
8532 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8534 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8535 range types. Adjust the array handling implementation to
8536 take advantage of this change.
8537 (resolve_dynamic_range): New function, mostly extracted from
8538 resolve_dynamic_bounds.
8539 (resolve_dynamic_array): New function, mostly extracted from
8540 resolve_dynamic_bounds.
8541 (resolve_dynamic_bounds): Delete.
8542 (resolve_dynamic_type): Reimplement. Add handling of
8543 TYPE_CODE_RANGE types.
8545 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8547 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8548 handling of parallel ___XA types.
8550 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8552 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8553 unnecessary second call to static_unwrap_type.
8555 2014-04-27 Hui Zhu <hui@codesourcery.com>
8557 * stack.c (print_frame_info): Call do_gdb_disassembly with
8558 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8560 2014-04-26 Doug Evans <xdje42@gmail.com>
8562 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8564 2014-04-25 Pedro Alves <palves@redhat.com>
8567 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8568 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8569 and newline from built string.
8570 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8571 (linux_ptrace_attach_fail_reason): ... this.
8572 * linux-nat.c (linux_nat_attach): Adjust to use
8573 linux_ptrace_attach_fail_reason.
8575 2014-04-25 Pedro Alves <palves@redhat.com>
8577 * remote.c (struct remote_state): Remove multi_process_aware,
8578 non_stop_aware, cond_tracepoints, cond_breakpoints,
8579 breakpoint_commands, fast_tracepoints, static_tracepoints,
8580 install_in_trace, disconnected_tracing,
8581 enable_disable_tracepoints, string_tracing, and
8582 augmented_libraries_svr4_read fields.
8583 (remote_multi_process_p): Move further below in the file.
8584 (struct packet_config): Add comments.
8585 (update_packet_config): Delete function.
8586 (show_packet_config_cmd): Use packet_config_support.
8587 (add_packet_config_cmd): Use NULL as set callback.
8588 (packet_ok): "set remote foo-packet"-style commands no longer
8589 change config->supported -- adjust.
8590 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8591 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8592 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8593 (PACKET_QNonStop, PACKET_multiprocess_feature)
8594 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8595 (PACKET_DisconnectedTracing_feature)
8596 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8597 (set_remote_protocol_packet_cmd): Delete function.
8598 (packet_config_support, packet_support): New functions.
8599 (set_remote_protocol_Z_packet_cmd): Don't call
8600 update_packet_config.
8601 (remote_query_attached, remote_pass_signals)
8602 (remote_program_signals, remote_threads_info)
8603 (remote_threads_extra_info, remote_start_remote): Use
8605 (remote_start_remote): Use packet_config_support and
8607 (init_all_packet_configs): Set all packets to unknown support,
8608 instead of calling update_packet_config.
8609 (remote_check_symbols): Use packet_support.
8610 (remote_supported_packet): Unconditionally set the packet config's
8612 (remote_multi_process_feature, remote_non_stop_feature)
8613 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8614 (remote_breakpoint_commands_feature)
8615 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8616 (remote_install_in_trace_feature)
8617 (remote_disconnected_tracing_feature)
8618 (remote_enable_disable_tracepoint_feature)
8619 (remote_string_tracing_feature)
8620 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8621 (remote_protocol_features): Adjust to use remote_supported_packet
8622 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8623 "ConditionalTracepoints", "ConditionalBreakpoints",
8624 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8625 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8626 "EnableDisableTracepoints", and "tracenz".
8627 (remote_query_supported): Use packet_support.
8628 (remote_open_1): Adjust.
8629 (extended_remote_attach_1): Use packet_support. Switch on the
8630 result of packet_ok instead of checking whether the packet ended
8632 (remote_vcont_resume): Use packet_support.
8633 (remote_resume, remote_stop_ns, fetch_register_using_p)
8634 (remote_prepare_to_store, store_register_using_P)
8635 (check_binary_download, remote_write_bytes): Use packet_support.
8636 (remote_vkill): Use packet_support. Switch on the result of
8637 packet_ok instead of checking whether the packet ended up
8639 (extended_remote_supports_disable_randomization): Use
8641 (extended_remote_run): Switch on the result of packet_ok instead
8642 of checking whether the packet ended up disabled.
8643 (remote_insert_breakpoint, remote_remove_breakpoint)
8644 (remote_insert_watchpoint, remote_remove_watchpoint)
8645 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8647 (remote_search_memory): Use packet_config_support.
8648 (remote_get_thread_local_address, remote_get_tib_address)
8649 (remote_hostio_send_command, remote_can_execute_reverse): Use
8651 (remote_supports_cond_tracepoints)
8652 (remote_supports_cond_breakpoints)
8653 (remote_supports_fast_tracepoints)
8654 (remote_supports_static_tracepoints)
8655 (remote_supports_install_in_trace)
8656 (remote_supports_enable_disable_tracepoint)
8657 (remote_supports_string_tracing)
8658 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8659 the packet config says the feature is enabled or disabled.
8660 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8661 (remote_get_trace_status): Use packet_support.
8662 (remote_set_disconnected_tracing): Adjust to check whether the
8663 feature is enabled with packet_support.
8664 (remote_set_trace_buffer_size, remote_use_agent)
8665 (remote_can_use_agent, remote_supports_btrace): Use
8667 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8668 Use packet_config_support.
8669 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8670 the packet config says the feature is enabled or disabled.
8671 (set_range_stepping): Use packet_support.
8673 2014-04-25 Tom Tromey <tromey@redhat.com>
8675 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8678 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8680 * NEWS: Mention support for C99 variable length arrays.
8682 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8684 * ada-lang.c (standard_exc): Expand introductory comment.
8686 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8687 Walfred Tedeschi <walfred.tedeschi@intel.com>
8689 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8691 (amd64_linux_read_description): Add code to handle AVX512 xstate
8692 mask and return respective tdesc.
8693 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8694 and features/i386/x32-avx512-linux.c.
8695 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8696 (amd64_linux_core_read_description): Add code to handle AVX512
8697 xstate mask and return respective tdesc.
8698 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8699 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8701 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8702 (tdesc_amd64_avx512_linux): New prototype.
8703 (tdesc_x32_avx512_linux): Likewise.
8704 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8705 features/i386/x32-avx512.c.
8706 (amd64_ymm_avx512_names): New register names for pseudo
8708 (amd64_ymmh_avx512_names): New register names for raw registers
8710 (amd64_k_names): New register names for K registers.
8711 (amd64_zmmh_names): New register names for ZMM raw registers.
8712 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8713 (amd64_xmm_avx512_names): New register names for XMM16-31
8715 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8717 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8718 if feature is present.
8719 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8720 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8721 (AMD64_NUM_REGS): Adjust to new number of registers.
8722 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8723 registers supplied via XSTATE by AVX512 registers.
8724 (i386_linux_read_description): Add case for AVX512.
8725 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8726 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8727 (i386_linux_core_read_description): Add case for AVX512.
8728 (i386_linux_init_abi): Install supported register note section
8730 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8732 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8733 registers to be number of zmm7h + 1.
8734 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8735 * i386-tdep.c: Include features/i386/i386-avx512.c.
8736 (i386_zmm_names): Add ZMM pseudo register names array.
8737 (i386_zmmh_names): Add ZMM raw register names array.
8738 (i386_k_names): Add K raw register names array.
8739 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8740 registers. AVX512 has 16 more ZMM registers than there are YMM
8742 (i386_zmmh_regnum_p): Add function to look up register number of
8744 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8745 (i386_k_regnum_p): Likewise for K raw registers.
8746 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8747 registers added by AVX512.
8748 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8749 registers added by AVX512.
8750 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8752 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8753 (i386_pseudo_register_name): Add ZMM pseudo registers.
8754 (i386_zmm_type): Construct and return vector registers type for ZMM
8756 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8757 ZMM0-31 pseudo registers and K registers.
8758 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8759 and YMM16-31 registers from register cache.
8760 (i386_pseudo_register_write): Add code to write K, ZMM and
8762 (i386_register_reggroup_p): Add code to include/exclude AVX512
8763 registers in/from respective register groups.
8764 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8765 registers if feature is present in xcr0.
8766 (i386_gdbarch_init): Add code to initialize AVX512 feature
8767 variables in tdep structure, wire in pseudo registers and call
8768 initialize_tdesc_i386_avx512.
8769 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8771 (i386_regnum): Add AVX512 registers.
8772 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8773 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8774 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8775 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8777 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8778 (i386_ymm_avx512_regnum_p): Likewise.
8779 (i386_k_regnum_p): Likewise.
8780 (i386_zmm_regnum_p): Likewise.
8781 (i386_zmmh_regnum_p): Likewise.
8782 * i387-tdep.c : Update year in copyright notice.
8783 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8785 (XSAVE_YMM_AVX512_ADDR): New macro.
8786 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8788 (XSAVE_XMM_AVX512_ADDR): New macro.
8789 (xsave_avx512_k_offset): New table for K register offsets in
8791 (XSAVE_AVX512_K_ADDR): New macro.
8792 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8794 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8795 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8797 (i387_collect_xsave): Add code to collect AVX512 registers from
8799 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8800 of XMM16-31 registers.
8801 (I387_NUM_K_REGS): New define for number of K registers.
8802 (I387_K0_REGNUM): New define for K0 register number.
8803 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8804 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8805 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8807 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8808 (I387_XMM16_REGNUM): New define for XMM16 register number.
8809 (I387_YMM0_REGNUM): New define for YMM0 register number.
8810 (I387_KEND_REGNUM): New define for last K register number.
8811 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8812 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8814 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8816 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8818 * features/Makefile: Add AVX512 related files.
8819 * features/i386/32bit-avx512.xml: New file.
8820 * features/i386/64bit-avx512.xml: Likewise.
8821 * features/i386/amd64-avx512-linux.c: Likewise.
8822 * features/i386/amd64-avx512-linux.xml: Likewise.
8823 * features/i386/amd64-avx512.c: Likewise.
8824 * features/i386/amd64-avx512.xml: Likewise.
8825 * features/i386/i386-avx512-linux.c: Likewise.
8826 * features/i386/i386-avx512-linux.xml: Likewise.
8827 * features/i386/i386-avx512.c: Likewise.
8828 * features/i386/i386-avx512.xml: Likewise.
8829 * features/i386/x32-avx512-linux.c: Likewise.
8830 * features/i386/x32-avx512-linux.xml: Likewise.
8831 * features/i386/x32-avx512.c: Likewise.
8832 * features/i386/x32-avx512.xml: Likewise.
8833 * regformats/i386/amd64-avx512-linux.dat: New file.
8834 * regformats/i386/amd64-avx512.dat: Likewise.
8835 * regformats/i386/i386-avx512-linux.dat: Likewise.
8836 * regformats/i386/i386-avx512.dat: Likewise.
8837 * regformats/i386/x32-avx512-linux.dat: Likewise.
8838 * regformats/i386/x32-avx512.dat: Likewise.
8839 * NEWS: Add note about new support for AVX512.
8842 2014-04-23 Pedro Alves <palves@redhat.com>
8844 * breakpoint.c (insert_bp_location): Tolerate errors if the
8845 breakpoint is set in a user-loaded objfile.
8846 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8847 location is marked shlib_disabled. If the breakpoint is set in a
8848 user-loaded objfile is a GDB-side memory breakpoint, validate it
8849 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8850 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8852 * mem-break.c (memory_validate_breakpoint): New function.
8853 * objfiles.c (userloaded_objfile_contains_address_p): New
8855 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8856 * target.h (memory_validate_breakpoint): New declaration.
8858 2014-04-23 Pedro Alves <palves@redhat.com>
8860 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8861 the breakpoint is set in a shared library, only suppress
8862 errors for software breakpoints, not hardware breakpoints.
8864 2014-04-22 Pedro Alves <palves@redhat.com>
8866 * infrun.c (schedlock_applies): New function, factored out from
8867 find_thread_needs_step_over.
8868 (find_thread_needs_step_over): Use it.
8869 (switch_back_to_stepped_thread): Always clear trap_expected if the
8870 step over is finished. Return early if scheduler locking applies.
8871 Look for the stepping thread and a potential step-over thread with
8873 (currently_stepping_or_nexting_callback): Delete.
8875 2014-04-22 Nick Clifton <nickc@redhat.com>
8877 * NEWS: Mention that ARM sim now supports tracing.
8879 2014-04-22 Yao Qi <yao@codesourcery.com>
8881 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8883 * tracefile.c (tracefile_fetch_registers): ... it. New
8885 * tracefile.h (tracefile_fetch_registers): Declare.
8886 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8887 tracefile_fetch_registers.
8889 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8892 * windows-nat.c (thread_rec): Don't display a warning when
8893 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8894 fails for any reason, set th->suspended to -1, so that we don't
8895 try to resume such a thread. Also, don't return NULL in these
8896 cases, to avoid completely ruin the session due to "PC register is
8897 not available" error.
8898 (do_windows_fetch_inferior_registers): Check errors in
8899 GetThreadContext call.
8900 (windows_continue): Accept an additional argument KILLED; if not
8901 zero, ignore errors in the SetThreadContext call, since the
8902 inferior was killed and is shutting down.
8903 (windows_resume, get_windows_debug_event)
8904 (windows_create_inferior, windows_mourn_inferior)
8905 (windows_kill_inferior): All callers of windows_continue changed
8906 to adjust to its new calling sequence.
8908 2014-04-19 Yao Qi <yao@codesourcery.com>
8910 * ctf.c (ctf_open): Call post_create_inferior.
8912 2014-04-19 Yao Qi <yao@codesourcery.com>
8914 * ctf.c (handle_id): New static variable.
8915 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8916 value. Get the declaration of event "register" and get length
8917 of field "contents".
8919 2014-04-19 Yao Qi <yao@codesourcery.com>
8921 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8923 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8925 * valops.c (oload_method_static): Remove unnecessary argument
8926 METHOD. Update all callers.
8928 2014-04-18 Pedro alves <palves@redhat.com>
8929 Tom Tromey <tromey@redhat.com>
8932 * frame.c (get_prev_frame_1): Rename to ...
8933 (get_prev_frame_always): ... this, and make extern. Adjust.
8934 (skip_artificial_frames): Use get_prev_frame_always.
8935 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8936 (get_frame_unwind_stop_reason): Adjust to rename.
8937 * frame.h (get_prev_frame_always): Declare.
8938 * inline-frame.c: Include frame.h.
8939 (inline_frame_this_id): Use get_prev_frame_always.
8941 2014-04-18 Tristan Gingold <gingold@adacore.com>
8943 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8944 code by using bfd_mach_o_get_base_address.
8946 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8948 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8949 (spu_ax_pseudo_register_collect): New function.
8950 (spu_ax_pseudo_register_push_stack): Likewise.
8951 (spu_dwarf_reg_to_regnum): Likewise.
8952 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8954 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8956 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8957 Replace FRAME argument with FRAME_ID.
8958 * gdbarch.c, gdbarch.h: Regenerate.
8959 * findvar.c (default_value_from_register): Add GDBARCH argument;
8960 replace FRAME by FRAME_ID. No longer call get_frame_id.
8961 (value_from_register): Update call to gdbarch_value_from_register.
8962 * value.h (default_value_from_register): Update prototype.
8963 * s390-linux-tdep.c (s390_value_from_register): Update interface
8964 and call to default_value_from_register.
8965 * spu-tdep.c (spu_value_from_register): Likewise.
8967 * findvar.c (address_from_register): Remove TYPE argument.
8968 Do not call value_from_register; use gdbarch_value_from_register
8969 with null_frame_id instead.
8970 * value.h (address_from_register): Update prototype.
8971 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8972 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8973 address_from_register interface change.
8975 2014-04-17 Yao Qi <yao@codesourcery.com>
8977 * gdbtypes.h: Update comments to link to types and macros'
8980 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8982 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8984 2014-04-16 Keith Seitz <keiths@redhat.com>
8987 * dwarf2read.c (skip_one_die): Check that all relative-offset
8988 sibling DIEs fall within range of the current reader's buffer.
8989 (read_partial_die): Likewise.
8991 2014-04-16 Keith Seitz <keiths@redhat.com>
8994 * cp-namespace.c (lookup_symbol_file): If the type name of
8995 `this' is NULL, return immediately.
8997 2014-04-14 Keith Seitz <keiths@redhat.com>
9000 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9001 from symbol_matches_domain in symtab.c. All local callers
9002 of symbol_matches_domain updated.
9003 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9004 search STRUCT_DOMAIN.
9005 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9006 independently. standard_lookup will do that automatically.
9007 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9008 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9009 (cp_lookup_symbol_in_namespace): Likewise.
9010 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9011 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9012 may return a STRUCT_DOMAIN match.
9013 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9014 * cp-support.c: Include language.h.
9015 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9017 * psymtab.c (match_partial_symbol): Compare the requested
9018 domain with the symbol's domain directly.
9019 (lookup_partial_symbol): Likewise.
9020 * symtab.c (lookup_symbol_in_language): Explain when/why
9021 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9022 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9023 appropriate languages.
9024 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9025 and moved to ada-lang.c
9026 (lookup_block_symbol): Explain that this function only returns
9027 symbol matching the requested DOMAIN.
9028 Compare the requested domain with the symbol's domain directly.
9029 (iterate_over_symbols): Compare the requested domain with the
9030 symbol's domain directly.
9031 * symtab.h (symbol_matches_domain): Remove.
9033 2014-04-14 Tom Tromey <tromey@redhat.com>
9036 * c-exp.y (type_aggregate_p): New function.
9037 (qualified_name, classify_inner_name): Use it.
9038 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9039 and TYPE_TARGET_TYPE of an enum type.
9040 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9042 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9043 handle TYPE_DECLARED_CLASS.
9044 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9046 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9047 * valops.c (enum_constant_from_type): New function.
9048 (value_aggregate_elt): Use it.
9049 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9052 2014-04-14 Tom Tromey <tromey@redhat.com>
9054 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9055 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9057 * value.h (value_aggregate_elt): Update.
9059 2014-04-14 Tom Tromey <tromey@redhat.com>
9061 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9063 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9065 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9066 (evaluate_subexp_standard): Pass noside argument.
9067 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9068 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9069 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9070 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9071 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9073 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9075 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9076 points to a constant blob.
9078 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9080 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9081 property and store it as the high bound and flag the range accordingly.
9082 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9083 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9084 * gdbtypes.h (enum range_flags): New enum.
9085 (struct range_bounds): Add flags member.
9087 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9089 * c-typeprint.c (c_type_print_varspec_suffix): Added
9090 check for not yet resolved high bound. If unresolved, print
9091 "variable length" string to the console instead of random
9094 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9096 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9098 (ada_template_to_fixed_record_type_1): Likewise.
9099 (ada_to_fixed_type_1): Likewise.
9100 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9101 (cp_print_value): Likewise.
9102 * d-valprint.c (dynamic_array_type): Likewise.
9103 * findvar.c (address_of_variable): Likewise.
9104 * jv-valprint.c (java_value_print): Likewise.
9105 * valops.c (value_ind): Likewise.
9106 * value.c (coerce_ref): Likewise.
9108 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9110 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9111 value and retrieve the dynamic type size.
9113 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9115 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9116 passed to sizeof is dynamic evaluate the argument to compute the length.
9118 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9119 Joel Brobecker <brobecker@adacore.com>
9121 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9122 (dwarf2_evaluate_property): New function.
9123 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9124 * dwarf2read.c (attr_to_dynamic_prop): New function.
9125 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9127 * gdbtypes.c: Include dwarf2loc.h.
9128 (is_dynamic_type): New function.
9129 (resolve_dynamic_type): New function.
9130 (resolve_dynamic_bounds): New function.
9131 (get_type_length): New function.
9132 (check_typedef): Use get_type_length to compute type length.
9133 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9134 (TYPE_LOW_BOUND_KIND): New macro.
9135 (is_dynamic_type): New function prototype.
9136 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9137 to resolve dynamic properties of the type. Update comment.
9138 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9140 2014-04-14 Richard Henderson <rth@redhat.com>
9142 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9144 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9145 Doug Evans <xdje42@gmail.com>
9147 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9148 dereference TYPE_CODE_REF values.
9150 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9152 Revert the following changes due to regressions:
9154 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9155 (dwarf2_evaluate_property): New function.
9156 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9157 * dwarf2read.c (attr_to_dynamic_prop): New function.
9158 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9160 * gdbtypes.c: Include dwarf2loc.h.
9161 (is_dynamic_type): New function.
9162 (resolve_dynamic_type): New function.
9163 (resolve_dynamic_bounds): New function.
9164 (get_type_length): New function.
9165 (check_typedef): Use get_type_length to compute type length.
9166 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9167 (TYPE_LOW_BOUND_KIND): New macro.
9168 (is_dynamic_type): New function prototype.
9169 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9170 to resolve dynamic properties of the type. Update comment.
9171 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9173 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9174 passed to sizeof is dynamic evaluate the argument to compute the length.
9176 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9177 value and retrieve the dynamic type size.
9179 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9180 (ada_template_to_fixed_record_type_1): Likewise.
9181 (ada_to_fixed_type_1): Likewise.
9182 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9183 (cp_print_value): Likewise.
9184 * d-valprint.c (dynamic_array_type): Likewise.
9185 * eval.c (evaluate_subexp_with_coercion): Likewise.
9186 * findvar.c (address_of_variable): Likewise.
9187 * jv-valprint.c (java_value_print): Likewise.
9188 * valops.c (value_ind): Likewise.
9189 * value.c (coerce_ref): Likewise.
9191 * c-typeprint.c (c_type_print_varspec_suffix): Added
9192 check for not yet resolved high bound. If unresolved, print
9193 "variable length" string to the console instead of random
9196 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9197 property and store it as the high bound and flag the range accordingly.
9198 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9199 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9200 * gdbtypes.h (enum range_flags): New enum.
9201 (struct range_bounds): Add flags member.
9203 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9204 points to a constant blob.
9206 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9207 (evaluate_subexp_standard): Pass noside argument.
9208 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9209 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9210 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9211 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9212 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9214 2014-04-11 Keith Seitz <keiths@redhat.com>
9217 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9218 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9221 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9223 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9224 (evaluate_subexp_standard): Pass noside argument.
9225 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9226 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9227 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9228 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9229 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9231 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9233 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9234 points to a constant blob.
9236 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9238 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9239 property and store it as the high bound and flag the range accordingly.
9240 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9241 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9242 * gdbtypes.h (enum range_flags): New enum.
9243 (struct range_bounds): Add flags member.
9245 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9247 * c-typeprint.c (c_type_print_varspec_suffix): Added
9248 check for not yet resolved high bound. If unresolved, print
9249 "variable length" string to the console instead of random
9252 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9254 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9255 (ada_template_to_fixed_record_type_1): Likewise.
9256 (ada_to_fixed_type_1): Likewise.
9257 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9258 (cp_print_value): Likewise.
9259 * d-valprint.c (dynamic_array_type): Likewise.
9260 * eval.c (evaluate_subexp_with_coercion): Likewise.
9261 * findvar.c (address_of_variable): Likewise.
9262 * jv-valprint.c (java_value_print): Likewise.
9263 * valops.c (value_ind): Likewise.
9264 * value.c (coerce_ref): Likewise.
9266 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9268 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9269 value and retrieve the dynamic type size.
9271 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9273 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9274 passed to sizeof is dynamic evaluate the argument to compute the length.
9276 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9278 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9279 (dwarf2_evaluate_property): New function.
9280 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9281 * dwarf2read.c (attr_to_dynamic_prop): New function.
9282 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9284 * gdbtypes.c: Include dwarf2loc.h.
9285 (is_dynamic_type): New function.
9286 (resolve_dynamic_type): New function.
9287 (resolve_dynamic_bounds): New function.
9288 (get_type_length): New function.
9289 (check_typedef): Use get_type_length to compute type length.
9290 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9291 (TYPE_LOW_BOUND_KIND): New macro.
9292 (is_dynamic_type): New function prototype.
9293 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9294 to resolve dynamic properties of the type. Update comment.
9295 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9297 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9299 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9300 declaring high/low bounds and change uses accordingly. Call
9301 create_range_type instead of create_static_range_type.
9302 * gdbtypes.c (create_range_type): New function.
9303 (create_range_type): Convert bounds into struct bound_prop and pass
9304 them to create_range_type.
9305 * gdbtypes.h (struct bound_prop): New struct.
9306 (create_range_type): New function prototype.
9307 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9308 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9309 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9311 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9313 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9315 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9316 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9317 * ada-lang.c: All uses of create_range_type updated.
9318 * coffread.c: All uses of create_range_type updated.
9319 * dwarf2read.c: All uses of create_range_type updated.
9320 * f-exp.y: All uses of create_range_type updated.
9321 * m2-valprint.c: All uses of create_range_type updated.
9322 * mdebugread.c: All uses of create_range_type updated.
9323 * stabsread.c: All uses of create_range_type updated.
9324 * valops.c: All uses of create_range_type updated.
9325 * valprint.c: All uses of create_range_type updated.
9327 2014-04-10 Pedro Alves <palves@redhat.com>
9329 * breakpoint.c (single_step_breakpoints)
9330 (single_step_gdbarch): Move up in the file.
9331 (one_breakpoint_xfer_memory): New function, factored out from ...
9332 (breakpoint_xfer_memory): ... here. Also process single-step
9335 2014-04-09 Tristan Gingold <gingold@adacore.com>
9337 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9339 (darwin_decode_exception_message): Free port only after use.
9341 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9343 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9344 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9345 when setting the size of call_length.
9347 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9349 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9350 dereference TYPE_CODE_REF values.
9352 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9354 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9355 end of warning message.
9357 2014-04-03 Doug Evans <dje@google.com>
9359 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9360 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9362 2014-04-02 Alan Modra <amodra@gmail.com>
9364 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9365 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9366 (struct symbol_file_add_from_memory_args): Add size field.
9367 (find_vdso_size): New function.
9368 (add_vsyscall_page): Attempt to find vdso size.
9370 2014-04-01 Doug Evans <dje@google.com>
9372 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9374 2014-04-01 Tristan Gingold <gingold@adacore.com>
9376 * darwin-nat.c (darwin_encode_reply): Add prototype.
9377 (darwin_decode_exception_message): Reply to unknown inferiors.
9378 (darwin_decode_message): Handle message by id. Ignore message
9379 to unknown inferior.
9380 (darwin_wait): Discard unknown messages, add debug trace.
9382 2014-03-31 Doug Evans <dje@google.com>
9384 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9387 2014-03-31 Doug Evans <dje@google.com>
9389 New option "set print symbol-loading".
9391 * solib.c (solib_read_symbols): Only print symbol loading messages
9393 (solib_add): If symbol loading is in "brief" mode, notify user
9394 symbols are being loaded.
9395 (reload_shared_libraries_1): Ditto.
9396 * symfile.c (print_symbol_loading_off): New static global.
9397 (print_symbol_loading_brief): New static global.
9398 (print_symbol_loading_full): New static global.
9399 (print_symbol_loading_enums): New static global.
9400 (print_symbol_loading): New static global.
9401 (print_symbol_loading_p): New function.
9402 (symbol_file_add_with_addrs): Only print symbol loading messages
9404 (_initialize_symfile): Register "print symbol-loading" set/show
9406 * symfile.h (print_symbol_loading_p): Declare.
9408 2014-03-30 Doug Evans <xdje42@gmail.com>
9410 * infrun.c (set_last_target_status): New function.
9411 (handle_inferior_event): Call it.
9413 2014-03-30 Doug Evans <xdje42@gmail.com>
9415 * inferior.h (enum stop_kind): Improve comment.
9417 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9419 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9420 a reference, strip the reference layer before calling
9421 the lang_ops value_has_mutated callback.
9423 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9425 Remove some globals from our parser.
9426 * language.c (unk_lang_parser): Add "struct parser_state"
9428 * language.h (struct language_defn) <la_parser>: Likewise.
9429 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9430 (initialize_expout): Add "struct parser_state" argument.
9431 Rewrite function to use the parser state.
9432 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9433 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9434 write_exp_elt_longcst, write_exp_elt_dblcst,
9435 write_exp_elt_decfloatcst, write_exp_elt_type,
9436 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9437 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9438 write_dollar_variable): Likewise.
9439 (parse_exp_in_context_1): Use parser state.
9440 (insert_type_address_space): Add "struct parser_state" argument.
9442 (increase_expout_size): New function.
9443 * parser-defs.h: Forward declare "struct language_defn" and
9444 "struct parser_state".
9445 (expout, expout_size, expout_ptr): Remove extern declarations.
9446 (parse_gdbarch, parse_language): Rewrite macro declarations to
9447 accept the parser state.
9448 (struct parser_state): New struct.
9449 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9450 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9451 write_exp_elt_decfloatcst, write_exp_elt_type,
9452 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9453 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9454 write_exp_msymbol, write_dollar_variable,
9455 mark_struct_expression, insert_type_address_space): Add "struct
9456 parser_state" argument.
9457 (increase_expout_size): New function.
9458 * utils.c (do_clear_parser_state): New function.
9459 (make_cleanup_clear_parser_state): Likewise.
9460 * utils.h (make_cleanup_clear_parser_state): New function
9462 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9463 Update calls to write_exp* in order to pass the parser state.
9464 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9465 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9466 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9467 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9468 * stap-probe.c (stap_parse_register_operand): Likewise.
9469 (stap_parse_single_operand): Likewise.
9470 (stap_parse_argument_1): Likewise.
9471 (stap_parse_argument): Use parser state.
9472 * stap-probe.h: Include "parser-defs.h".
9473 (struct stap_parse_info) <pstate>: New field.
9474 * c-exp.y (parse_type): Rewrite to use parser state.
9475 (yyparse): Redefine to c_parse_internal.
9476 (pstate): New global variable.
9477 (parse_number): Add "struct parser_state" argument.
9478 (write_destructor_name): Likewise.
9479 (type_exp): Update calls to write_exp* and similars in order to
9481 (exp1, exp, variable, qualified_name, space_identifier,
9482 typename, typebase): Likewise.
9483 (write_destructor_name, parse_number, lex_one_token,
9484 classify_name, classify_inner_name, c_parse): Add "struct
9485 parser_state" argument. Update function to use parser state.
9486 * c-lang.h: Forward declare "struct parser_state".
9487 (c_parse): Add "struct parser_state" argument.
9488 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9489 (yyparse): Redefine macro to ada_parse_internal.
9490 (pstate): New variable.
9491 (write_int, write_object_renaming, write_var_or_type,
9492 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9493 type_int, type_long, type_long_long, type_float, type_double,
9494 type_long_double, type_char, type_boolean, type_system_address):
9495 Add "struct parser_state" argument.
9496 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9497 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9498 var_or_type, aggregate, aggregate_component_list,
9499 positional_list, others, component_group,
9500 component_associations): Update calls to write_exp* and similar
9501 functions in order to use parser state.
9502 (ada_parse, write_var_from_sym, write_int,
9503 write_exp_op_with_string, write_object_renaming,
9504 find_primitive_type, write_selectors, write_ambiguous_var,
9505 write_var_or_type, write_name_assoc, type_int, type_long,
9506 type_long_long, type_float, type_double, type_long_double,
9507 type_char, type_boolean, type_system_address): Add "struct
9508 parser_state" argument. Adjust function to use parser state.
9509 * ada-lang.c (parse): Likewise.
9510 * ada-lang.h: Forward declare "struct parser_state".
9511 (ada_parse): Add "struct parser_state" argument.
9512 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9513 calls to both functions.
9514 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9516 (yyparse): Redefine macro to f_parse_internal.
9517 (pstate): New variable.
9518 (parse_number): Add "struct parser_state" argument.
9519 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9520 and similars in order to use parser state.
9521 (parse_number): Adjust code to use parser state.
9523 (f_parse): New function.
9524 * f-lang.h: Forward declare "struct parser_state".
9525 (f_parse): Add "struct parser_state" argument.
9526 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9528 (yyparse): Redefine macro for java_parse_internal.
9529 (pstate): New variable.
9530 (push_expression_name, push_expression_name, insert_exp): Add
9531 "struct parser_state" argument.
9532 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9533 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9534 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9535 PostIncrementExpression, PostDecrementExpression,
9536 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9537 UnaryExpressionNotPlusMinus, CastExpression,
9538 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9539 RelationalExpression, EqualityExpression, AndExpression,
9540 ExclusiveOrExpression, InclusiveOrExpression,
9541 ConditionalAndExpression, ConditionalOrExpression,
9542 ConditionalExpression, Assignment, LeftHandSide): Update
9543 calls to write_exp* and similars in order to use parser state.
9544 (parse_number): Ajust code to use parser state.
9546 (java_parse): New function.
9547 (push_variable): Add "struct parser_state" argument. Adjust
9548 code to user parser state.
9549 (push_fieldnames, push_qualified_expression_name,
9550 push_expression_name, insert_exp): Likewise.
9551 * jv-lang.h: Forward declare "struct parser_state".
9552 (java_parse): Add "struct parser_state" argument.
9553 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9555 (yyparse): Redefine macro to m2_parse_internal.
9556 (pstate): New variable.
9557 (type_exp, exp, fblock, variable, type): Update calls to
9558 write_exp* and similars to use parser state.
9560 (m2_parse): New function.
9561 * m2-lang.h: Forward declare "struct parser_state".
9562 (m2_parse): Add "struct parser_state" argument.
9563 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9564 * objc-lang.h: Forward declare "struct parser_state".
9565 (end_msglist): Add "struct parser_state" argument.
9566 * p-exp.y (parse_type): Rewrite macro to use parser state.
9567 (yyparse): Redefine macro to pascal_parse_internal.
9568 (pstate): New variable.
9569 (parse_number): Add "struct parser_state" argument.
9570 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9571 write_exp* and similars in order to use parser state.
9572 (parse_number, yylex): Adjust code to use parser state.
9573 (pascal_parse): New function.
9574 * p-lang.h: Forward declare "struct parser_state".
9575 (pascal_parse): Add "struct parser_state" argument.
9576 * go-exp.y (parse_type): Rewrite macro to use parser state.
9577 (yyparse): Redefine macro to go_parse_internal.
9578 (pstate): New variable.
9579 (parse_number): Add "struct parser_state" argument.
9580 (type_exp, exp1, exp, variable, type): Update calls to
9581 write_exp* and similars in order to use parser state.
9582 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9583 to use parser state.
9584 (go_parse): Likewise.
9585 * go-lang.h: Forward declare "struct parser_state".
9586 (go_parse): Add "struct parser_state" argument.
9588 2014-03-27 Doug Evans <dje@google.com>
9590 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9592 2014-03-27 Doug Evans <dje@google.com>
9594 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9595 Remove argument abbrev_section. All callers updated.
9597 2014-03-27 Doug Evans <dje@google.com>
9599 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9600 addr_base, ranges_base.
9602 2014-03-26 Keith Seitz <keiths@redhat.com>
9604 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9605 types, not VAR_DOMAIN.
9607 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9609 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9611 * features/nios2-linux.c: Regenerated.
9612 * features/nios2.c: Regenerated.
9614 2014-03-25 Pedro Alves <palves@redhat.com>
9616 * cli/cli-script.c (script_from_file): Force the interpreter to
9619 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9621 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9622 small stack allocation.
9624 2014-03-24 Tristan Gingold <gingold@adacore.com>
9626 * darwin-nat.c (exc_server): Remove unused prototype.
9627 (darwin_dump_message): Correctly display data on x86_64.
9628 (darwin_encode_reply): Fix style.
9629 Add comments and fix indentation.
9631 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9633 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9635 2014-03-22 Doug Evans <xdje42@gmail.com>
9637 * infcmd.c: Whitespace fixes.
9638 (interrupt_command): Merge two function comments into one.
9640 2014-03-22 Doug Evans <xdje42@gmail.com>
9642 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9645 2014-03-22 Yao Qi <yao@codesourcery.com>
9647 * remote.c (target_read_live_memory): Remove.
9648 (memory_xfer_live_readonly_partial): Rename it to
9649 remote_xfer_live_readonly_partial. Remove argument 'object'.
9650 All callers updated. Call remote_read_bytes_1
9651 instead of target_read_live_memory.
9652 * tracepoint.c (set_traceframe_number): Remove.
9653 (make_cleanup_restore_traceframe_number): Likewise .
9654 * tracepoint.h (set_traceframe_number): Remove declaration.
9655 (make_cleanup_restore_traceframe_number): Likewise.
9657 2014-03-22 Yao Qi <yao@codesourcery.com>
9659 * remote.c (remote_read_bytes): Move code on reading from the
9661 (remote_read_bytes_1): ... here. New function.
9663 2014-03-22 Yao Qi <yao@codesourcery.com>
9665 * ctf.c (ctf_xfer_partial): Check the return value of
9666 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9667 return TARGET_XFER_UNAVAILABLE.
9668 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9669 * target.c (target_read_live_memory): Move it to remote.c.
9670 (memory_xfer_live_readonly_partial): Likewise.
9671 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9672 * remote.c (target_read_live_memory): Moved from target.c.
9673 (memory_xfer_live_readonly_partial): Likewise.
9674 (remote_read_bytes): Factored out from
9675 memory_xfer_partial_1.
9677 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9679 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9682 2014-03-21 Pedro Alves <palves@redhat.com>
9684 * infrun.c (normal_stop): Extend comment.
9686 2014-03-21 Hui Zhu <hui@codesourcery.com>
9687 Pedro Alves <palves@redhat.com>
9689 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9691 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9692 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9693 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9695 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9697 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9698 `z' formatted output modifier.
9700 2014-03-20 Tom Tromey <tromey@redhat.com>
9701 Sergio Durigan Junior <sergiodj@redhat.com>
9703 * probe.c (parse_probes): Turn assert into an ordinary error.
9704 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9705 exceptions when parsing probes. Rearrange the code for clarity.
9707 2014-03-20 Tom Tromey <tromey@redhat.com>
9710 * top.c (execute_command): Only dispatch events if the command
9713 2014-03-20 Tom Tromey <tromey@redhat.com>
9716 * infcall.c: Include event-top.h.
9717 (run_inferior_call): Call async_disable_stdin if needed.
9719 2014-03-20 Pedro Alves <palves@redhat.com>
9721 * infrun.c (prepare_to_proceed): Delete.
9722 (thread_still_needs_step_over): New function.
9723 (find_thread_needs_step_over): New function.
9724 (proceed): If the current thread needs a step-over, set its
9725 steping_over_breakpoint flag. Adjust to use
9726 find_thread_needs_step_over instead of prepare_to_proceed.
9727 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9728 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9730 (switch_back_to_stepped_thread): Step over breakpoints of all
9731 threads not the stepping thread, before switching back to the
9734 2014-03-20 Pedro Alves <palves@redhat.com>
9736 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9738 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9739 * infrun.c (saved_singlestep_ptid)
9740 (stepping_past_singlestep_breakpoint): Delete.
9741 (resume): Remove stepping_past_singlestep_breakpoint handling.
9742 (proceed): Store the prev_pc of the stepping thread too.
9743 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9745 (enum infwait_states): Delete infwait_thread_hop_state.
9746 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9748 (handle_inferior_event): Adjust.
9749 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9750 handling and the thread-hop code. Before removing single-step
9751 breakpoints, check whether the thread hit a single-step breakpoint
9752 of another thread. If it did, the trap is not a random signal.
9753 (switch_back_to_stepped_thread): If the event thread hit a
9754 single-step breakpoint, unblock it before switching to the
9755 stepping thread. Handle the case of the stepped thread having
9757 (keep_going): Handle the case of the current thread moving past a
9758 single-step breakpoint.
9760 2014-03-20 Pedro Alves <palves@redhat.com>
9763 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9764 are being stepped over.
9765 (breakpoint_address_match): Make extern.
9766 * breakpoint.h (breakpoint_address_match): New declaration.
9767 * inferior.h (stepping_past_instruction_at): New declaration.
9768 * infrun.c (struct step_over_info): New type.
9769 (step_over_info): New global.
9770 (set_step_over_info, clear_step_over_info)
9771 (stepping_past_instruction_at): New functions.
9772 (handle_inferior_event): Clear the step-over info when
9773 trap_expected is cleared.
9774 (resume): Remove now stale comment.
9775 (clear_proceed_status): Clear step-over info.
9776 (proceed): Adjust step-over handling to set or clear the step-over
9777 info instead of removing all breakpoints.
9778 (handle_signal_stop): When setting up a thread-hop, don't remove
9780 (stop_stepping): Clear step-over info.
9781 (keep_going): Adjust step-over handling to set or clear step-over
9782 info and then always inserting breakpoints, instead of removing
9783 all breakpoints when stepping over one.
9785 2014-03-20 Pedro Alves <palves@redhat.com>
9787 * infrun.c (previous_inferior_ptid): Adjust comment.
9788 (deferred_step_ptid): Delete.
9789 (infrun_thread_ptid_changed, prepare_to_proceed)
9790 (init_wait_for_inferior): Adjust.
9791 (handle_signal_stop): Delete deferred_step_ptid handling.
9793 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9796 * defs.h (sync_quit_force_run): New declaration.
9797 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9798 * event-top.c (async_sigterm_handler): New declaration.
9799 (async_sigterm_token): New variable.
9800 (async_init_signals): Create also async_sigterm_token.
9801 (async_sigterm_handler): New function.
9802 (sync_quit_force_run): New variable.
9803 (handle_sigterm): Replace quit_force call by other calls.
9804 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9806 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9808 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9809 offset into SPE pseudo registers.
9811 2014-03-18 Pedro Alves <palves@redhat.com>
9814 * inferior.h (print_stop_event): Declare.
9815 * infrun.c (print_stop_event): New, factored out from ...
9816 (normal_stop): ... this.
9817 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9818 of bpstat_print/print_stack_frame.
9820 2014-03-17 Tom Tromey <tromey@redhat.com>
9822 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9824 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9826 * ada-lang.c (decode_constrained_packed_array): Perform a
9827 minimal coercion for reference with coerce_ref instead of
9830 2014-03-17 Tristan Gingold <gingold@adacore.com>
9832 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9833 (darwin_solib_create_inferior_hook): Emit a warning if version
9836 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9838 * python/py-value.c (get_field_flag): Cast flag_name argument to
9839 PyObject_GetAttrString to support Python 2.4.
9841 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9843 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9844 (Global Maintainers): Remove Jan Kratochvil.
9846 2014-03-14 Pedro Alves <palves@redhat.com>
9848 * inferior.h (terminal_ours_for_output): Rename to ...
9849 (child_terminal_ours_for_output): ... this.
9850 (terminal_save_ours): Rename to ...
9851 (child_terminal_save_ours): ... this.
9852 (terminal_ours): Rename to ...
9853 (child_terminal_ours): ... this.
9854 (terminal_inferior): Rename to ...
9855 (child_terminal_inferior): ... this.
9856 (terminal_init_inferior): Rename to ...
9857 (child_terminal_init_inferior): ... this.
9858 (terminal_init_inferior_with_pgrp): Rename to ...
9859 (child_terminal_init_inferior_with_pgrp): ... this.
9860 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9861 (child_terminal_init_with_pgrp): ... this.
9862 (terminal_save_ours): Rename to ...
9863 (child_terminal_save_ours): ... this.
9864 (terminal_init_inferior): Rename to ...
9865 (child_terminal_init): ... this. Adjust.
9866 (terminal_inferior): Rename to ...
9867 (child_terminal_inferior): ... this.
9868 (terminal_ours_for_output): Rename to ...
9869 (child_terminal_ours_for_output): ... this. Adjust.
9870 (terminal_ours): Rename to ...
9871 (child_terminal_ours): ... this.
9872 (terminal_ours_1): Rename to ...
9873 (child_terminal_ours_1): ... this. Adjust.
9874 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9875 * windows-nat.c (do_initial_windows_stuff): Adjust.
9876 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9877 (gnu_terminal_init): ... this. Adjust.
9878 (gnu_target): Adjust.
9879 * inf-child.c (inf_child_target): Adjust.
9881 2014-03-13 Doug Evans <xdje42@gmail.com>
9884 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9887 2014-03-13 Doug Evans <xdje42@gmail.com>
9889 * value.c (record_latest_value): Call release_value_or_incref
9890 instead of release_value.
9892 2014-03-13 Pedro Alves <palves@redhat.com>
9894 * procfs.c (procfs_target): Don't override to_shortname,
9895 to_longname or to_doc.
9897 2014-03-13 Pedro Alves <palves@redhat.com>
9899 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9900 Unix in user visible strings.
9902 2014-03-12 Stan Shebs <stan@codesourcery.com>
9904 * gdbtypes.h: Annotate comments for Doxygen, add a page
9905 block comment with some general info.
9907 2014-03-12 Pedro Alves <palves@redhat.com>
9909 * infcmd.c (prepare_execution_command): New function, factored out
9910 from several execution commands.
9911 (run_command_1, continue_command, step_1, jump_command)
9912 (signal_command, until_command, advance_command, finish_command)
9913 (attach_command): Use prepare_execution_command.
9915 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9917 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9920 (struct arm_linux_thread_points): Removed.
9921 (struct arm_linux_process_info): New.
9922 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9923 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9924 (arm_linux_find_breakpoints_by_tid): Removed.
9925 (struct arch_lwp_info): New.
9926 (arm_linux_find_process_pid): New functions.
9927 (arm_linux_add_process): New functions.
9928 (arm_linux_process_info_get): New functions.
9929 (arm_linux_forget_process): New function.
9930 (arm_linux_get_debug_reg_state): New function.
9931 (struct update_registers_data): New.
9932 (update_registers_callback): New function.
9933 (arm_linux_insert_hw_breakpoint1): Updated.
9934 (arm_linux_remove_hw_breakpoint1): Updated.
9935 (arm_linux_insert_hw_breakpoint): Updated.
9936 (arm_linux_remove_hw_breakpoint): Updated.
9937 (arm_linux_insert_watchpoint): Updated.
9938 (arm_linux_remove_watchpoint): Updated.
9939 (arm_linux_new_thread): Updated.
9940 (arm_linux_prepare_to_resume): New function.
9941 (arm_linux_new_fork): New function.
9942 (_initialize_arm_linux_nat): Updated.
9944 2014-03-12 Pedro Alves <palves@redhat.com>
9946 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9948 2014-03-12 Tom Tromey <tromey@redhat.com>
9950 * inf-child.c (return_zero): New function.
9951 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9952 * aix-thread.c (aix_thread_inferior_created): New function.
9953 (aix_thread_attach): Remove.
9954 (init_aix_thread_ops): Don't set to_attach.
9955 (_initialize_aix_thread): Register inferior_created observer.
9956 * corelow.c (init_core_ops): Don't set to_attach or
9958 * exec.c (init_exec_ops): Don't set to_attach or
9960 * infcmd.c (run_command_1): Use find_run_target. Make direct
9962 (attach_command): Use find_attach_target. Make direct target
9964 * record-btrace.c (init_record_btrace_ops): Don't set
9966 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9968 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9969 set to_create_inferior.
9970 * target.c (complete_target_initialization): Add assertion.
9971 (target_create_inferior): Remove.
9972 (find_default_attach, find_default_create_inferior): Remove.
9973 (find_attach_target, find_run_target): New functions.
9974 (find_default_is_async_p, find_default_can_async_p)
9975 (target_supports_non_stop, target_attach): Remove.
9976 (init_dummy_target): Don't set to_create_inferior or
9977 to_supports_non_stop.
9978 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9979 TARGET_DEFAULT_FUNC.
9980 <to_create_inferior>: Add comment.
9981 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9982 TARGET_DEFAULT_RETURN.
9983 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9984 (find_attach_target, find_run_target): Declare.
9985 (target_create_inferior): Remove.
9986 (target_has_execution_1): Update comment.
9987 (target_supports_non_stop): Remove.
9988 * target-delegates.c: Rebuild.
9990 2014-03-12 Pedro Alves <palves@redhat.com>
9992 * inf-child.h: Update comment to not mention Unix.
9994 2014-03-12 Pedro Alves <palves@redhat.com>
9996 * inf-child.c: Update top comment to not mention Unix. Add
9997 generic comment describing how this target is meant to be used.
9998 (inf_child_post_attach, inf_child_post_startup_inferior)
9999 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10002 2014-03-12 Pedro Alves <palves@redhat.com>
10004 * nto-procfs.c: Include inf-child.h.
10005 (procfs_ops): Delete global.
10006 (procfs_can_run): Delete method.
10007 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10008 target pointer instead of referencing procfs_ops.
10009 (procfs_prepare_to_store): Delete.
10010 (init_procfs_ops): Delete function.
10011 (procfs_target): New function, based on init_procfs_ops, but
10012 inherit inf_child_target.
10013 (_initialize_procfs): Use procfs_target.
10015 2014-03-12 Pedro Alves <palves@redhat.com>
10017 * windows-nat.c: Include inf-child.h.
10018 (windows_ops): Delete global.
10019 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10021 (init_windows_ops): Delete function.
10022 (windows_target): New function, based on init_windows_ops, but
10023 inherit inf_child_target.
10024 (_initialize_windows_nat): Use windows_target. Install x86
10025 specific target methods here.
10027 2014-03-10 Doug Evans <xdje42@gmail.com>
10029 * guile/guile.c (call_initialize_gdb_module): New function.
10030 (initialize_guile): Replace call to scm_init_guile with call to
10033 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10035 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10036 in call to TYPE_CODE macro.
10038 2014-03-10 Jerome Guitton <guitton@adacore.com>
10040 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10041 Resolve tagged types to full view.
10043 2014-03-10 Hui Zhu <hui@codesourcery.com>
10045 * target.h (target_insert_breakpoint): Remove "hardware" from its
10048 2014-03-07 Doug Evans <dje@google.com>
10050 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10052 2014-03-07 Doug Evans <dje@google.com>
10054 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10055 Remove unused local comp_dir_attr. Assert exactly one of
10056 stub_comp_unit_die, stub_comp_dir is non-NULL.
10058 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10060 * target.h (complete_target_initialization, add_target):
10063 2014-03-07 Pedro Alves <palves@redhat.com>
10065 * go32-nat.c: Include inf-child.h.
10066 (go32_ops): Delete global.
10067 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10069 (go32_create_inferior): Push the passed in target pointer instead
10070 of referencing go32_ops.
10071 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10072 (go32_target): New function, based on init_go32_ops, but inherit
10074 (_initialize_go32_nat): Use go32_target. Move parts of
10075 init_go32_ops here.
10077 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10079 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10080 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10081 SYMBOL_VALUE_ADDRESS.
10082 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10084 2014-03-06 Yao Qi <yao@codesourcery.com>
10086 * breakpoint.c (get_tracepoint_by_number): Remove argument
10087 optional_p. All callers updated. Adjust comments. Update
10089 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10091 2014-03-06 Yao Qi <yao@codesourcery.com>
10093 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10094 early if get_number returns zero. Use 'p' instead of 'args'.
10096 2014-03-06 Yao Qi <yao@codesourcery.com>
10098 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10101 2014-03-06 Yao Qi <yao@codesourcery.com>
10103 PR breakpoints/16508
10104 * tracepoint.c (check_trace_running): New function.
10105 (trace_find_command): Move code to check_trace_running and
10106 call check_trace_running.
10107 (trace_find_pc_command): Likewise.
10108 (trace_find_tracepoint_command): Likewise.
10109 (trace_find_line_command): Likewise.
10110 (trace_find_range_command): Likewise.
10111 * tracepoint.h (check_trace_running): Likewise.
10112 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10114 2014-03-06 Yao Qi <yao@codesourcery.com>
10116 * target.h (struct target_ops) <to_traceframe_info>: Use
10117 TARGET_DEFAULT_NORETURN (tcomplain ()).
10118 * target-delegates.c: Regenerated.
10120 2014-03-05 Pedro Alves <palves@redhat.com>
10123 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10124 void. Update comment.
10125 (dcache_xfer_memory): Delete.
10126 (dcache_read_memory_partial): New, based on the read bits of
10127 dcache_xfer_memory.
10128 (dcache_update): Add status parameter. Use ULONGEST for len, and
10129 adjust. Discard cache lines if the reason for the update was
10131 * dcache.h (dcache_xfer_memory): Delete declaration.
10132 (dcache_read_memory_partial): New declaration.
10133 (dcache_update): Update prototype.
10134 * target.c (raw_memory_xfer_partial): Update the dcache here.
10135 (memory_xfer_partial_1): Don't handle dcache writes here.
10137 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10139 * remote-sim.c (gdbsim_load): Add const to prog.
10141 2014-03-03 Tom Tromey <tromey@redhat.com>
10143 * elfread.c (probe_key): Change to bfd_data.
10144 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10145 now per-BFD, not per-objfile.
10146 * stap-probe.c (stap_probe_destroy): Update comment.
10147 (handle_stap_probe): Allocate on the per-BFD obstack.
10149 2014-03-03 Tom Tromey <tromey@redhat.com>
10151 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10152 * breakpoint.c (create_longjmp_master_breakpoint): Use
10154 (add_location_to_breakpoint, bkpt_probe_insert_location)
10155 (bkpt_probe_remove_location): Update.
10156 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10157 * elfread.c (elf_symfile_relocate_probe): Remove.
10158 (elf_probe_fns): Update.
10159 (insert_exception_resume_breakpoint): Change type of "probe"
10160 parameter to bound_probe.
10161 (check_exception_resume): Update.
10162 * objfiles.c (objfile_relocate1): Don't relocate probes.
10163 * probe.c (bound_probe_s): New typedef.
10164 (parse_probes): Use get_probe_address. Set sal's objfile.
10165 (find_probe_by_pc): Return a bound_probe.
10166 (collect_probes): Return a VEC(bound_probe_s).
10167 (compare_probes): Update.
10168 (gen_ui_out_table_header_info): Change type of "probes"
10170 (info_probes_for_ops): Update.
10171 (get_probe_address): New function.
10172 (probe_safe_evaluate_at_pc): Update.
10173 * probe.h (struct probe_ops) <get_probe_address>: New field.
10174 <set_semaphore, clear_semaphore>: Add objfile parameter.
10175 (struct probe) <objfile>: Remove field.
10177 <address>: Update comment.
10178 (struct bound_probe): New.
10179 (find_probe_by_pc): Return a bound_probe.
10180 (get_probe_address): Declare.
10181 * solib-svr4.c (struct probe_and_action) <address>: New field.
10182 (hash_probe_and_action, equal_probe_and_action): Update.
10183 (register_solib_event_probe): Add address parameter.
10184 (solib_event_probe_at): Update.
10185 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10187 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10188 (stap_get_probe_address): New function.
10189 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10190 (compile_probe_arg): Update.
10191 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10193 (handle_stap_probe): Don't relocate the probe.
10194 (stap_relocate): Remove.
10195 (stap_gen_info_probes_table_values): Update.
10196 (stap_probe_ops): Remove stap_relocate.
10197 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10198 (debug_sym_probe_fns): Update.
10199 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10200 * symtab.c (init_sal): Use memset.
10201 * symtab.h (struct symtab_and_line) <objfile>: New field.
10202 * tracepoint.c (start_tracing, stop_tracing): Update.
10204 2014-03-03 Tom Tromey <tromey@redhat.com>
10206 * probe.h (parse_probes, find_probe_by_pc)
10207 (find_probes_in_objfile): Fix comments.
10209 2014-03-02 Doug Evans <xdje42@gmail.com>
10211 * infrun.c (handle_signal_stop): Replace test for
10212 TARGET_WAITKIND_STOPPED with an assert.
10214 2014-03-02 Doug Evans <xdje42@gmail.com>
10216 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10218 2014-03-02 Doug Evans <xdje42@gmail.com>
10220 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10222 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10224 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10226 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10228 * i386obsd-nat.c: Include "obsd-nat.h".
10229 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10231 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10233 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10235 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10237 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10239 * mips64obsd-nat.c: Include "obsd-nath".
10240 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10242 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10244 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10246 * amd64obsd-nat.c: Include "obsd-nat,h.
10247 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10249 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10251 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10253 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10254 (find_overload_match): Update call to find_oload_champ.
10255 (find_oload_champ_namespace_loop): Likewise
10257 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10259 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10261 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10262 * config/sparc/obsd64.mh: New file.
10263 * sparc64obsd-nat.c: New file.
10265 * obsd-nat.h: New file.
10266 * obsd-nat.c: New file.
10267 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10268 (ALLDEPFILES): Add obsd-nat.c.
10270 2014-02-28 Tom Tromey <tromey@redhat.com>
10272 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10273 * cli-out.h (cli_ui_out_impl): Now const.
10274 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10275 * ui-out.c (struct ui_out) <impl>: Now const.
10276 (default_ui_out_impl): Now const.
10277 (ui_out_new): Make 'impl' parameter const.
10278 * ui-out.h (ui_out_new): Update.
10280 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10282 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10284 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10286 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10288 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10290 Additional PR 8882 fix.
10291 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10293 2014-02-27 Pedro Alves <palves@redhat.com>
10295 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10298 2014-02-27 Pedro Alves <palves@redhat.com>
10301 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10302 * nat/linux-waitpid.c: Include string.h.
10303 (status_to_str): Moved here and made extern.
10304 * nat/linux-waitpid.h (status_to_str): New declaration.
10306 2014-02-27 Hui Zhu <hui@codesourcery.com>
10309 * infrun.c (ptid_match): Move ...
10310 * common/ptid.c (ptid_match): ... here.
10311 * inferior.h (ptid_match): Move ...
10312 * common/ptid.h (ptid_match): ... here.
10314 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10316 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10317 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10320 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10322 * obsd-tdep.c (obsd_auxv_parse): New function.
10323 (obsd_init_abi): Set auxv_parse.
10325 * gdbarch.sh (auxv_parse): New.
10326 * gdbarch.h: Regenerated.
10327 * gdbarch.c: Regenerated.
10328 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10330 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10332 * guile/scm-value.c (gdbscm_history_append_x): New function.
10333 (value_functions): Add it.
10335 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10337 * dwarf2read.c (attr_value_as_address): New function.
10338 (dwarf2_find_base_address, read_call_site_scope): Use
10339 attr_value_as_address in place of DW_ADDR.
10340 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10341 the low and high addresses. Slight rework of the handling
10342 of the high pc being a constant form, and limit it to
10343 DWARF verson 4 or higher.
10344 (dwarf2_record_block_ranges): Likewise.
10345 (read_partial_die): Likewise.
10346 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10348 2014-02-26 Tom Tromey <tromey@redhat.com>
10350 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10352 2014-02-26 Tom Tromey <tromey@redhat.com>
10354 * elfread.c (elf_read_minimal_symbols): Return early if
10355 minimal symbols have already been read. Add "ei" parameter.
10356 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10357 * minsyms.c (prim_record_minimal_symbol_full): Update.
10358 * objfiles.h (struct objstats) <n_minsyms>: Move...
10359 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10360 * symmisc.c (print_objfile_statistics): Update.
10362 2014-02-26 Tom Tromey <tromey@redhat.com>
10364 * elfread.c (elf_read_minimal_symbols): New function, from
10366 (elf_symfile_read): Call it.
10368 2014-02-26 Tom Tromey <tromey@redhat.com>
10370 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10371 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10372 (lookup_minimal_symbol_solib_trampoline)
10373 (lookup_minimal_symbol_by_pc_section_1)
10374 (lookup_minimal_symbol_and_objfile): Update.
10375 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10376 Don't allocate a minimal symbol if minsyms have already been read.
10377 (build_minimal_symbol_hash_tables): Update.
10378 (install_minimal_symbols): Do nothing if minsyms already read.
10379 Use the per-BFD obstack.
10380 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10381 * objfiles.c (allocate_objfile): Call
10382 terminate_minimal_symbol_table later.
10383 (have_minimal_symbols): Update.
10384 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10385 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10386 Move from struct objfile.
10387 <minsyms_read>: New field.
10388 (struct objfile) <msymbols, minimal_symbol_count,
10389 msymbol_hash, msymbol_demangled_hash>: Move.
10390 (ALL_OBJFILE_MSYMBOLS): Update.
10391 * symfile.c (read_symbols): Set minsyms_read.
10392 (reread_symbols): Update.
10393 * symmisc.c (dump_objfile, dump_msymbols): Update.
10395 2014-02-26 Tom Tromey <tromey@redhat.com>
10397 * minsyms.c (msymbols_sort): Remove.
10398 * minsyms.h (msymbols_sort): Remove.
10399 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10400 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10401 * elfread.c (elf_symtab_read): Don't add section offsets.
10402 * xcoffread.c (record_minimal_symbol): Don't add section offset
10403 to minimal symbol address.
10404 * somread.c (text_offset, data_offset): Remove.
10405 (som_symtab_read): Don't add section offsets to minimal symbol
10407 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10408 Don't add section offsets to minimal symbols.
10409 * coffread.c (coff_symtab_read): Don't add section offsets
10410 to minimal symbol addresses.
10411 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10412 to minimal symbol addresses.
10413 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10414 section offset to minimal symbol addresses.
10415 * mdebugread.c (parse_partial_symbols): Don't add section
10416 offset to minimal symbol addresses.
10417 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10418 offset to minimal symbol addresses.
10420 2014-02-26 Tom Tromey <tromey@redhat.com>
10422 * ada-lang.c (ada_main_name): Update.
10423 (ada_add_standard_exceptions): Update.
10424 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10425 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10426 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10427 * auxv.c (ld_so_xfer_auxv): Update.
10428 * avr-tdep.c (avr_scan_prologue): Update.
10429 * ax-gdb.c (gen_var_ref): Update.
10430 * blockframe.c (get_pc_function_start)
10431 (find_pc_partial_function_gnu_ifunc): Update.
10432 * breakpoint.c (create_overlay_event_breakpoint)
10433 (create_longjmp_master_breakpoint)
10434 (create_std_terminate_master_breakpoint)
10435 (create_exception_master_breakpoint): Update.
10436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10437 * c-valprint.c (c_val_print): Update.
10438 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10439 * common/agent.c (agent_look_up_symbols): Update.
10440 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10441 * dwarf2loc.c (call_site_to_target_addr): Update.
10442 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10443 * elfread.c (elf_gnu_ifunc_record_cache)
10444 (elf_gnu_ifunc_resolve_by_got): Update.
10445 * findvar.c (default_read_var_value): Update.
10446 * frame.c (inside_main_func): Update.
10447 * frv-tdep.c (frv_frame_this_id): Update.
10448 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10449 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10451 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10452 (hppa_hpux_find_dummy_bpaddr): Update.
10453 * hppa-tdep.c (hppa_symbol_address): Update.
10454 * infcmd.c (until_next_command): Update.
10455 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10457 * linespec.c (minsym_found, add_minsym): Update.
10458 * linux-nat.c (get_signo): Update.
10459 * linux-thread-db.c (inferior_has_bug): Update.
10460 * m32c-tdep.c (m32c_return_value)
10461 (m32c_m16c_address_to_pointer): Update.
10462 * m32r-tdep.c (m32r_frame_this_id): Update.
10463 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10464 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10465 * maint.c (maintenance_translate_address): Update.
10466 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10467 (frob_address): New function.
10468 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10469 frob_address. Rename parameter to "pc_in".
10470 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10472 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10474 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10475 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10476 * objc-lang.c (find_objc_msgsend): Update.
10477 * objfiles.c (objfile_relocate1): Update.
10478 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10479 * p-valprint.c (pascal_val_print): Update.
10480 * parse.c (write_exp_msymbol): Update.
10481 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10482 (ppc_elfv2_skip_entrypoint): Update.
10483 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10484 * printcmd.c (build_address_symbolic, msym_info)
10485 (address_info): Update.
10486 * proc-service.c (ps_pglobal_lookup): Update.
10487 * psymtab.c (find_pc_sect_psymtab_closer)
10488 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10489 Change msymbol parameter to bound_minimal_symbol.
10490 * ravenscar-thread.c (get_running_thread_id): Update.
10491 * remote.c (remote_check_symbols): Update.
10492 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10495 * solib-dsbt.c (lm_base): Update.
10496 * solib-frv.c (lm_base, main_got): Update.
10497 * solib-irix.c (locate_base): Update.
10498 * solib-som.c (som_solib_create_inferior_hook)
10499 (link_map_start): Update.
10500 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10501 * solib-svr4.c (elf_locate_base, enable_break): Update.
10502 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10503 (flush_ea_cache): Update.
10504 * stabsread.c (define_symbol, scan_file_globals): Update.
10505 * stack.c (find_frame_funname): Update.
10506 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10507 (debug_qf_find_pc_sect_symtab): Update.
10508 * symfile.c (simple_read_overlay_table)
10509 (simple_overlay_update): Update.
10510 * symfile.h (struct quick_symbol_functions)
10511 <find_pc_sect_symtab>: Change type of msymbol to
10512 bound_minimal_symbol.
10513 * symmisc.c (dump_msymbols): Update.
10514 * symtab.c (find_pc_sect_symtab_via_partial)
10515 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10516 (search_symbols, print_msymbol_info): Update.
10517 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10518 (MSYMBOL_VALUE_ADDRESS): Redefine.
10519 (BMSYMBOL_VALUE_ADDRESS): New macro.
10520 * tracepoint.c (scope_info): Update.
10521 * tui/tui-disasm.c (tui_find_disassembly_address)
10522 (tui_get_begin_asm_address): Update.
10523 * valops.c (find_function_in_inferior): Update.
10524 * value.c (value_static_field, value_fn_field): Update.
10526 2014-02-26 Tom Tromey <tromey@redhat.com>
10528 * ada-lang.c (ada_update_initial_language): Update.
10529 (ada_main_name, ada_has_this_exception_support): Update.
10530 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10531 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10532 * arm-tdep.c (arm_skip_stub): Update.
10533 * auxv.c (ld_so_xfer_auxv): Update.
10534 * avr-tdep.c (avr_scan_prologue): Update.
10535 * ax-gdb.c (gen_var_ref): Update.
10536 * breakpoint.c (struct breakpoint_objfile_data)
10537 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10538 type to bound_minimal_symbol.
10539 (create_overlay_event_breakpoint)
10540 (create_longjmp_master_breakpoint)
10541 (create_std_terminate_master_breakpoint)
10542 (create_exception_master_breakpoint): Update.
10543 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10544 * c-exp.y (classify_name): Update.
10545 * coffread.c (coff_symfile_read): Update.
10546 * common/agent.c (agent_look_up_symbols): Update.
10547 * d-lang.c (d_main_name): Update.
10548 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10549 * dec-thread.c (enable_dec_thread): Update.
10550 * dwarf2loc.c (call_site_to_target_addr): Update.
10551 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10552 * eval.c (evaluate_subexp_standard): Update.
10553 * findvar.c (struct minsym_lookup_data) <result>: Change type
10554 to bound_minimal_symbol.
10556 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10557 * frame.c (inside_main_func): Update.
10558 * frv-tdep.c (frv_frame_this_id): Update.
10559 * gcore.c (call_target_sbrk): Update.
10560 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10561 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10563 * go-lang.c (go_main_name): Update.
10564 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10565 (hppa_hpux_find_import_stub_for_addr): Update.
10566 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10567 Update. Change return type.
10568 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10570 * jit.c (jit_breakpoint_re_set_internal): Update.
10571 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10573 * linux-nat.c (get_signo): Update.
10574 * linux-thread-db.c (inferior_has_bug): Update
10575 * m32c-tdep.c (m32c_return_value)
10576 (m32c_m16c_address_to_pointer): Update.
10577 * m32r-tdep.c (m32r_frame_this_id): Update.
10578 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10579 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10580 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10581 lookup_minimal_symbol. Change return type.
10582 (lookup_minimal_symbol): Remove.
10583 (lookup_bound_minimal_symbol): Update.
10584 (lookup_minimal_symbol_text): Change return type.
10585 (lookup_minimal_symbol_solib_trampoline): Change return type.
10586 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10587 (lookup_minimal_symbol_solib_trampoline): Change return type.
10588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10589 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10590 (value_nsstring, find_imps): Update.
10591 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10592 * p-lang.c (pascal_main_name): Update.
10593 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10594 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10595 * proc-service.c (ps_pglobal_lookup): Update.
10596 * ravenscar-thread.c (get_running_thread_msymbol): Change
10598 (has_ravenscar_runtime, get_running_thread_id): Update.
10599 * remote.c (remote_check_symbols): Update.
10600 * sol-thread.c (ps_pglobal_lookup): Update.
10601 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10602 * solib-dsbt.c (lm_base): Update.
10603 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10605 * solib-irix.c (locate_base): Update.
10606 * solib-som.c (som_solib_create_inferior_hook)
10607 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10609 * solib-spu.c (spu_enable_break): Update.
10610 * solib-svr4.c (elf_locate_base, enable_break): Update.
10611 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10612 (flush_ea_cache): Update.
10613 * stabsread.c (define_symbol): Update.
10614 * symfile.c (simple_read_overlay_table): Update.
10615 * symtab.c (find_pc_sect_line): Update.
10616 * tracepoint.c (scope_info): Update.
10617 * tui-disasm.c (tui_get_begin_asm_address): Update.
10618 * value.c (value_static_field): Update.
10620 2014-02-26 Tom Tromey <tromey@redhat.com>
10622 * minsyms.c (prim_record_minimal_symbol_full): Use
10623 SET_MSYMBOL_VALUE_ADDRESS.
10624 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10625 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10626 SET_MSYMBOL_VALUE_ADDRESS.
10627 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10628 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10630 2014-02-26 Tom Tromey <tromey@redhat.com>
10632 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10633 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10634 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10635 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10636 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10637 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10638 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10639 * ada-lang.c (ada_main_name): Update.
10640 (ada_lookup_simple_minsym): Update.
10641 (ada_make_symbol_completion_list): Update.
10642 (ada_add_standard_exceptions): Update.
10643 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10644 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10645 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10646 * arm-tdep.c (skip_prologue_function): Update.
10647 (arm_skip_stack_protector, arm_skip_stub): Update.
10648 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10649 (arm_wince_skip_main_prologue): Update.
10650 * auxv.c (ld_so_xfer_auxv): Update.
10651 * avr-tdep.c (avr_scan_prologue): Update.
10652 * ax-gdb.c (gen_var_ref): Update.
10653 * block.c (call_site_for_pc): Update.
10654 * blockframe.c (get_pc_function_start): Update.
10655 (find_pc_partial_function_gnu_ifunc): Update.
10656 * breakpoint.c (create_overlay_event_breakpoint): Update.
10657 (create_longjmp_master_breakpoint): Update.
10658 (create_std_terminate_master_breakpoint): Update.
10659 (create_exception_master_breakpoint): Update.
10660 (resolve_sal_pc): Update.
10661 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10662 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10664 * c-valprint.c (c_val_print): Update.
10665 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10666 * coffread.c (coff_symfile_read): Update.
10667 * common/agent.c (agent_look_up_symbols): Update.
10668 * dbxread.c (find_stab_function_addr): Update.
10669 (end_psymtab): Update.
10670 * dwarf2loc.c (call_site_to_target_addr): Update.
10671 (func_verify_no_selftailcall): Update.
10672 (tailcall_dump): Update.
10673 (call_site_find_chain_1): Update.
10674 (dwarf_expr_reg_to_entry_parameter): Update.
10675 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10676 (elf_gnu_ifunc_resolve_by_got): Update.
10677 * f-valprint.c (info_common_command): Update.
10678 * findvar.c (read_var_value): Update.
10679 * frame.c (get_prev_frame_1): Update.
10680 (inside_main_func): Update.
10681 * frv-tdep.c (frv_skip_main_prologue): Update.
10682 (frv_frame_this_id): Update.
10683 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10684 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10685 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10686 (gnuv3_skip_trampoline): Update.
10687 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10688 (hppa64_hpux_in_solib_call_trampoline): Update.
10689 (hppa_hpux_skip_trampoline_code): Update.
10690 (hppa64_hpux_search_dummy_call_sequence): Update.
10691 (hppa_hpux_find_import_stub_for_addr): Update.
10692 (hppa_hpux_find_dummy_bpaddr): Update.
10693 * hppa-tdep.c (hppa_symbol_address)
10694 (hppa_lookup_stub_minimal_symbol): Update.
10695 * i386-tdep.c (i386_skip_main_prologue): Update.
10696 (i386_pe_skip_trampoline_code): Update.
10697 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10698 * infcall.c (get_function_name): Update.
10699 * infcmd.c (until_next_command): Update.
10700 * jit.c (jit_breakpoint_re_set_internal): Update.
10701 (jit_inferior_init): Update.
10702 * linespec.c (minsym_found): Update.
10703 (add_minsym): Update.
10704 * linux-fork.c (info_checkpoints_command): Update.
10705 * linux-nat.c (get_signo): Update.
10706 * linux-thread-db.c (inferior_has_bug): Update.
10707 * m32c-tdep.c (m32c_return_value): Update.
10708 (m32c_m16c_address_to_pointer): Update.
10709 (m32c_m16c_pointer_to_address): Update.
10710 * m32r-tdep.c (m32r_frame_this_id): Update.
10711 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10712 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10713 * maint.c (maintenance_translate_address): Update.
10714 * minsyms.c (add_minsym_to_hash_table): Update.
10715 (add_minsym_to_demangled_hash_table): Update.
10716 (msymbol_objfile): Update.
10717 (lookup_minimal_symbol): Update.
10718 (iterate_over_minimal_symbols): Update.
10719 (lookup_minimal_symbol_text): Update.
10720 (lookup_minimal_symbol_by_pc_name): Update.
10721 (lookup_minimal_symbol_solib_trampoline): Update.
10722 (lookup_minimal_symbol_by_pc_section_1): Update.
10723 (lookup_minimal_symbol_and_objfile): Update.
10724 (prim_record_minimal_symbol_full): Update.
10725 (compare_minimal_symbols): Update.
10726 (compact_minimal_symbols): Update.
10727 (build_minimal_symbol_hash_tables): Update.
10728 (install_minimal_symbols): Update.
10729 (terminate_minimal_symbol_table): Update.
10730 (find_solib_trampoline_target): Update.
10731 (minimal_symbol_upper_bound): Update.
10732 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10733 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10734 (mips_skip_pic_trampoline_code): Update.
10735 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10736 * objc-lang.c (selectors_info): Update.
10737 (classes_info): Update.
10738 (find_methods): Update.
10739 (find_imps): Update.
10740 (find_objc_msgsend): Update.
10741 * objfiles.c (objfile_relocate1): Update.
10742 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10743 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10744 * p-valprint.c (pascal_val_print): Update.
10745 * parse.c (write_exp_msymbol): Update.
10746 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10747 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10748 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10749 * printcmd.c (build_address_symbolic): Update.
10750 (sym_info): Update.
10751 (address_info): Update.
10752 * proc-service.c (ps_pglobal_lookup): Update.
10753 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10754 (find_pc_sect_psymtab): Update.
10755 * python/py-framefilter.c (py_print_frame): Update.
10756 * ravenscar-thread.c (get_running_thread_id): Update.
10757 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10759 * remote.c (remote_check_symbols): Update.
10760 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10761 (rs6000_skip_trampoline_code): Update.
10762 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10763 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10764 * solib-dsbt.c (lm_base): Update.
10765 * solib-frv.c (lm_base): Update.
10766 (main_got): Update.
10767 * solib-irix.c (locate_base): Update.
10768 * solib-som.c (som_solib_create_inferior_hook): Update.
10769 (som_solib_desire_dynamic_linker_symbols): Update.
10770 (link_map_start): Update.
10771 * solib-spu.c (spu_enable_break): Update.
10772 (ocl_enable_break): Update.
10773 * solib-svr4.c (elf_locate_base): Update.
10774 (enable_break): Update.
10775 * spu-tdep.c (spu_get_overlay_table): Update.
10776 (spu_catch_start): Update.
10777 (flush_ea_cache): Update.
10778 * stabsread.c (define_symbol): Update.
10779 (scan_file_globals): Update.
10780 * stack.c (find_frame_funname): Update.
10781 (frame_info): Update.
10782 * symfile.c (simple_read_overlay_table): Update.
10783 (simple_overlay_update): Update.
10784 * symmisc.c (dump_msymbols): Update.
10785 * symtab.c (fixup_section): Update.
10786 (find_pc_sect_line): Update.
10787 (skip_prologue_sal): Update.
10788 (search_symbols): Update.
10789 (print_msymbol_info): Update.
10790 (rbreak_command): Update.
10791 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10792 (completion_list_objc_symbol): Update.
10793 (default_make_symbol_completion_list_break_on): Update.
10794 * tracepoint.c (scope_info): Update.
10795 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10796 (tui_get_begin_asm_address): Update.
10797 * valops.c (find_function_in_inferior): Update.
10798 * value.c (value_static_field): Update.
10799 (value_fn_field): Update.
10801 2014-02-26 Tom Tromey <tromey@redhat.com>
10803 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10804 bound minimal symbols. Move code that knows about minsym
10806 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10808 * minsyms.h (minimal_symbol_upper_bound): Declare.
10809 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10810 minimal_symbol_upper_bound.
10812 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10814 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10815 Use the type's name if its basic type does not have a tag.
10817 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10819 * dwarf2read.c (read_subrange_type): Add comment.
10821 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10823 * dwarf2read.c (update_enumeration_type_from_children): New
10824 function, mostly extracted from process_structure_scope.
10825 (read_enumeration_type): Call update_enumeration_type_from_children.
10826 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10827 and flag_flag_enum fields.
10829 2014-02-26 Pedro Alves <palves@redhat.com>
10831 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10832 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10833 to_xfer_partial method.
10835 2014-02-26 Pedro Alves <palves@redhat.com>
10837 * target.c (complete_target_initialization): Don't install
10838 default_xfer_partial as to_xfer_partial hook.
10839 (nomemory): Delete.
10840 (update_current_target): Don't INHERIT nor de_fault
10841 deprecated_xfer_memory. Delete de_fault macro.
10842 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10843 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10844 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10847 2014-02-26 Pedro Alves <palves@redhat.com>
10849 * go32-nat.c (my_write_child): New function.
10850 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10851 (go32_xfer_partial): New function.
10852 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10853 Instead install a to_xfer_partial hook.
10855 2014-02-26 Pedro Alves <palves@redhat.com>
10857 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10858 to_xfer_partial helper. Rewrite.
10859 (procfs_xfer_partial): New function.
10860 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10861 Install a to_xfer_partial hook.
10863 2014-02-26 Pedro Alves <palves@redhat.com>
10865 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10866 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10867 (m32r_xfer_partial): New function.
10868 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10869 Install a to_xfer_partial hook.
10871 2014-02-26 Pedro Alves <palves@redhat.com>
10873 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10875 (mips_xfer_partial): New function.
10876 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10877 hook. Install a to_xfer_partial hook.
10879 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10881 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10882 * gdbtypes.c (create_array_type_with_stride): New function,
10883 renaming create_array_type, but with an added parameter
10884 called "bit_stride".
10885 (create_array_type): Re-implement using
10886 create_array_type_with_stride.
10887 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10888 and DW_AT_bit_stride attributes.
10890 2014-02-26 Pedro Alves <palves@redhat.com>
10892 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10893 task-specific breakpoints.
10895 2014-02-25 Pedro Alves <palves@redhat.com>
10897 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10898 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10900 2014-02-25 Stan Shebs <stan@codesourcery.com>
10902 * defs.h: Annotate comments for Doxygen.
10904 2014-02-25 Tom Tromey <tromey@redhat.com>
10906 * target.h (target_ignore): Don't declare.
10907 * target.c (target_ignore): Remove.
10909 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10912 * auto-load.c (auto_load_objfile_script_1): Change filename to
10915 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10917 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10918 documentation. Adjust prototype to match the target_ops
10919 to_xfer_partial method. Adjust implementation accordingly.
10921 2014-02-25 Hui Zhu <hui@codesourcery.com>
10923 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10924 to_traceframe_info.
10926 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10928 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10929 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10930 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10931 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10932 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10933 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10934 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10935 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10937 (rl78_register_type): Use a data pointer type for SP and
10938 new pseudo registers mentioned above. Use a 16 bit integer
10939 type for all other register pairs.
10940 (rl78_register_name, rl78_g10_register_name): Update for
10941 new pseudo registers.
10942 (rl78_pseudo_register_read): Likewise.
10943 (rl78_pseudo_register_write): Likewise.
10944 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10945 to the newly added pseudo registers.
10947 2014-02-24 Doug Evans <dje@google.com>
10949 * value.c (record_latest_value): Fix comment.
10950 * printcmd.c (print_command_1): Remove code to handle -1 return from
10951 record_latest_value.
10953 2014-02-24 Pedro Alves <palves@redhat.com>
10955 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10956 deprecated_xfer_memory hook.
10957 (procfs_xfer_partial): Call procfs_xfer_memory instead
10958 of the deprecated_xfer_memory target hook.
10959 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10962 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10964 * windows-nat.c (windows_xfer_shared_libraries): Return
10965 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10966 requested object is TARGET_OBJECT_LIBRARIES.
10968 2014-02-24 Yao Qi <yao@codesourcery.com>
10970 * target.h (enum target_xfer_status)
10971 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10972 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10974 * corefile.c (memory_error_message): User updated.
10975 * exec.c (section_table_read_available_memory): Likewise.
10976 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10977 * target.c (target_xfer_status_to_string): Likewise.
10978 (raw_memory_xfer_partial): Likewise.
10979 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10980 * valops.c (read_value_memory): Likewise.
10981 * exec.h: Update comments.
10983 2014-02-24 Yao Qi <yao@codesourcery.com>
10985 * target.c (target_xfer_status_to_string): Rename argument err
10987 * target.h (target_xfer_status_to_string): Update declaration.
10988 Replace target_xfer_error_to_string with
10989 target_xfer_status_to_string in comment.
10991 2014-02-24 Yao Qi <yao@codesourcery.com>
10993 * mips-linux-nat.c (super_close): Update its type.
10994 (mips_linux_close): Pass 'self' to super_close.
10996 2014-02-24 Yao Qi <yao@codesourcery.com>
10998 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10999 * corefile.c (read_memory): Adjusted.
11000 * target.c (target_write_with_progress): Adjusted.
11002 2014-02-23 Yao Qi <yao@codesourcery.com>
11004 Revert two patches:
11006 2013-10-25 Yao Qi <yao@codesourcery.com>
11008 * remote.c (remote_traceframe_info): Return early if
11009 traceframe is not selected.
11011 2013-07-19 Yao Qi <yao@codesourcery.com>
11013 * target.c (update_current_target): Change the default action
11014 of 'to_traceframe_info' from tcomplain to return_zero.
11015 * target.h (struct target_ops) <to_traceframe_info>: Add more
11018 2014-02-23 Yao Qi <yao@codesourcery.com>
11020 * valops.c (read_value_memory): Rewrite it. Call
11021 target_xfer_partial in a loop.
11022 * exec.h (section_table_available_memory): Remove declaration.
11023 Move comments to ...
11024 * exec.c (section_table_available_memory): ... here. Make it
11027 2014-02-23 Yao Qi <yao@codesourcery.com>
11029 * exec.c (section_table_read_available_memory): New function.
11030 * exec.h (section_table_read_available_memory): Declare.
11031 * ctf.c (ctf_xfer_partial): Call
11032 section_table_read_available_memory.
11033 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11035 2014-02-23 Yao Qi <yao@codesourcery.com>
11037 * ctf.c (ctf_xfer_partial): Move code to ...
11038 * exec.c (exec_read_partial_read_only): ... it. New function.
11039 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11040 * tracefile.c: Include "exec.h".
11041 * exec.h (exec_read_partial_read_only): Declare.
11043 2014-02-23 Yao Qi <yao@codesourcery.com>
11045 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11046 (tfile_has_memory): Remove.
11047 (init_tfile_ops): Don't set fields to_has_all_memory and
11048 to_has_memory of tfile_ops.
11049 * tracefile.c (tracefile_has_all_memory): New function.
11050 (tracefile_has_memory): New function.
11051 (init_tracefile_ops): Initialize fields to_has_all_memory and
11052 to_has_memory of 'ops'.
11054 2014-02-23 Yao Qi <yao@codesourcery.com>
11056 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11057 (ctf_thread_alive, ctf_get_trace_status): Remove.
11058 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11059 init_tracefile_ops.
11060 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11061 (tfile_has_stack, tfile_has_registers): Remove.
11062 (tfile_thread_alive): Remove.
11063 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11064 init_tracefile_ops.
11065 * tracefile.c (tracefile_has_stack): New function.
11066 (tracefile_has_registers): New function.
11067 (tracefile_thread_alive): New function.
11068 (tracefile_get_trace_status): New function.
11069 (init_tracefile_ops): New function.
11070 * tracefile.h (init_tracefile_ops): Declare.
11072 2014-02-23 Yao Qi <yao@codesourcery.com>
11074 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11075 (O_LARGEFILE): Likewise.
11076 (tfile_ops): Likewise.
11077 (TRACE_HEADER_SIZE): Likewise.
11078 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11079 (cur_data_size): Likewise.
11080 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11081 (tfile_close, tfile_files_info): Likewise.
11082 (tfile_get_trace_status): Likewise.
11083 (tfile_get_tracepoint_status): Likewise.
11084 (tfile_get_traceframe_address): Likewise.
11085 (tfile_trace_find, match_blocktype): Likewise.
11086 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11087 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11088 (tfile_get_trace_state_variable_value): Likewise.
11089 (tfile_has_all_memory, tfile_has_memory): Likewise.
11090 (tfile_has_stack, tfile_has_registers): Likewise.
11091 (tfile_thread_alive, build_traceframe_info): Likewise.
11092 (tfile_traceframe_info, init_tfile_ops): Likewise.
11093 (_initialize_tracepoint): Don't call init_tfile_ops
11094 and add_target_with_completer.
11095 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11096 exec.h, completer.h and filenames.h.
11097 (_initialize_tracefile_tfile): New function.
11099 2014-02-23 Yao Qi <yao@codesourcery.com>
11101 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11103 (HFILES_NO_SRCDIR): Add tracefile.h.
11104 * ctf.c: Include "tracefile.h".
11105 * tracefile.h: New file.
11106 * tracefile.c: New file
11107 * tracefile-tfile.c: New file.
11108 * tracepoint.c: Include "tracefile.h".
11109 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11110 (stop_reason_names): Add const.
11111 (trace_file_writer_xfree): Move it to tracefile.c.
11112 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11113 (trace_save_ctf): Likewise.
11114 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11115 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11116 (tfile_write_header, tfile_write_regblock_type): Likewise.
11117 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11118 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11119 (tfile_write_raw_data, tfile_end): Likewise.
11120 (tfile_trace_file_writer_new): Likewise.
11121 (free_uploaded_tp): Make it extern.
11122 (free_uploaded_tsv): Make it extern.
11123 (_initialize_tracepoint): Move code to register command 'tsave'
11125 * tracepoint.h (stop_reason_names): Declare.
11126 (struct trace_frame_write_ops): Move it to tracefile.h.
11127 (struct trace_file_write_ops): Likewise.
11128 (struct trace_file_writer): Likewise.
11129 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11131 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11134 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11136 (get_cores_used_by_process): New parameter num_cores, use it.
11137 (linux_xfer_osdata_processes): Pass num_cores to it.
11138 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11141 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11143 * target.c (memory_xfer_partial): Fix length arg in call to
11144 breakpoint_xfer_memory.
11146 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11149 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11150 number comes after the + or - signs. Adjust length of register
11151 name to be extracted.
11153 2014-02-20 Tom Tromey <tromey@redhat.com>
11155 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11156 (ada_varobj_ops): Mark "extern".
11158 2014-02-20 Tom Tromey <tromey@redhat.com>
11160 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11162 2014-02-20 Doug Evans <xdje42@gmail.com>
11164 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11165 All callers updated.
11166 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11167 All callers updated.
11168 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11169 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11171 2014-02-20 lin zuojian <manjian2006@gmail.com>
11172 Joel Brobecker <brobecker@adacore.com>
11173 Doug Evans <xdje42@gmail.com>
11176 * dwarf2read.c (struct die_info): New member in_process.
11177 (reset_die_in_process): New function.
11178 (process_die): Set it at the start, reset when returning.
11179 (inherit_abstract_dies): Only call process_die if origin_child_die
11180 not already being processed.
11182 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11184 * windows-nat.c (handle_unload_dll): Add function documentation.
11185 (do_initial_windows_stuff): Add comment explaining why we wait
11186 until after inferior initialization has finished before
11187 processing all DLLs.
11189 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11191 * windows-nat.c (get_module_name): Delete.
11192 (windows_get_exec_module_filename): New function, mostly
11193 inspired from get_module_name.
11194 (windows_pid_to_exec_file): Replace call to get_module_name
11195 by call to windows_get_exec_module_filename.
11197 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11199 * windows-nat.c (handle_load_dll): Rewrite this function's
11200 introductory comment. Remove code using get_module_name
11201 to get the DLL's name.
11203 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11205 * windows-nat.c (get_windows_debug_event): Ignore
11206 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11207 if windows_initialization_done == 0.
11208 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11209 Adjust implementation to always load all DLLs.
11210 (do_initial_windows_stuff): Replace call to
11211 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11213 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11215 * windows-nat.c (_initialize_windows_nat): Deprecate the
11216 "dll-symbols" command. Turn the "add-shared-symbol-files"
11217 and "assf" aliases into commands, and deprecate them as well.
11218 * NEWS: Add entry explaining that "dll-symbols" and its two
11219 aliases are now deprecated.
11221 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11223 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11224 new-line in debug string. Remove trailing spaces.
11226 2014-02-19 Stan Shebs <stan@codesourcery.com>
11228 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11230 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11232 * NEWS: Add entry for the new feature
11233 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11236 2014-02-19 Stan Shebs <stan@codesourcery.com>
11238 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11240 2014-02-19 Pedro Alves <palves@redhat.com>
11242 * common/ptid.h (struct ptid): Mention that process_stratum
11243 targets should prefer ptid.lwp.
11245 2014-02-19 Pedro Alves <palves@redhat.com>
11247 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11248 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11249 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11250 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11251 store remote thread ids rather than ptid.tid.
11252 (_initialize_remote): Adjust.
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target.c (target_get_unwinder): Rewrite.
11257 (target_get_tailcall_unwinder): Rewrite.
11258 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11259 (record_btrace_to_get_tailcall_unwinder): New function.
11260 (init_record_btrace_ops): Update.
11261 * target.h (struct target_ops) <to_get_unwinder,
11262 to_get_tailcall_unwinder>: Now function pointers. Use
11263 TARGET_DEFAULT_RETURN.
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11269 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11275 * target-delegates.c: Rebuild.
11276 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11277 TARGET_DEFAULT_FUNC.
11278 * target.c (default_target_decr_pc_after_break): Rename from
11279 forward_target_decr_pc_after_break. Simplify.
11280 (target_decr_pc_after_break): Rely on delegation.
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target.c (update_current_target): Do not INHERIT to_doc or
11285 to_magic. Do not de_fault to_open or to_close.
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * gcore.h (objfile_find_memory_regions): Declare.
11290 * gcore.c (objfile_find_memory_regions): No longer static. Add
11292 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11293 * exec.c: Include gcore.h.
11294 (exec_set_find_memory_regions): Remove.
11295 (exec_find_memory_regions): Remove.
11296 (exec_do_find_memory_regions): Remove.
11297 (init_exec_ops): Update.
11298 * defs.h (exec_set_find_memory_regions): Remove.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target-delegates.c: Rebuild.
11303 * target.h (struct target_ops) <to_extra_thread_info,
11304 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11305 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11306 not 0, in TARGET_DEFAULT_RETURN.
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * target.c (complete_target_initialization): Remove casts. Use
11311 return_zero_has_execution.
11312 (return_zero): Add "ignore" argument.
11313 (return_zero_has_execution): New function.
11314 (init_dummy_target): Remove casts. Use
11315 return_zero_has_execution.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.c (update_current_target): Update comments. Do not
11320 INHERIT to_stratum.
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11324 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11326 * corelow.c (core_read_description): Delegate when needed.
11327 * remote.c (remote_read_description): Delegate when needed.
11328 * target-delegates.c: Rebuild.
11329 * target.c (target_read_description): Rewrite.
11330 * target.h (struct target_ops) <to_read_description>: Update
11331 comment. Use TARGET_DEFAULT_RETURN.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11338 (find_default_run_target): Check against delegate_can_run.
11339 * target.h (struct target_ops) <to_can_run>: Use
11340 TARGET_DEFAULT_RETURN.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target-delegates.c: Rebuild.
11345 * target.c (target_disconnect): Unconditionally delegate.
11346 * target.h (struct target_ops) <to_disconnect>: Use
11347 TARGET_DEFAULT_NORETURN.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * record.c (record_stop): Unconditionally delegate.
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_stop_recording): Unconditionally delegate.
11354 * target.h (struct target_ops) <to_stop_recording>: Use
11355 TARGET_DEFAULT_IGNORE.
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11359 * target-delegates.c: Rebuild.
11360 * target.c (target_enable_btrace): Unconditionally delegate.
11361 * target.h (struct target_ops) <to_enable_btrace>: Use
11362 TARGET_DEFAULT_NORETURN.
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11366 * target-delegates.c: Rebuild.
11367 * target.c (target_read_btrace): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_read_btrace>: Use
11369 TARGET_DEFAULT_NORETURN.
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_teardown_btrace): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_teardown_btrace>: Use
11376 TARGET_DEFAULT_NORETURN.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_disable_btrace): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_disable_btrace>: Use
11383 TARGET_DEFAULT_NORETURN.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (default_search_memory): New function.
11389 (simple_search_memory): Update comment.
11390 (target_search_memory): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_search_memory>: Use
11392 TARGET_DEFAULT_FUNC.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * auxv.c (default_auxv_parse): No longer static.
11397 (target_auxv_parse): Unconditionally delegate.
11398 * auxv.h (default_auxv_parse): Declare.
11399 * target-delegates.c: Rebuild.
11400 * target.c: Include auxv.h.
11401 * target.h (struct target_ops) <to_auxv_parse>: Use
11402 TARGET_DEFAULT_FUNC.
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11406 * target-delegates.c: Rebuild.
11407 * target.c (target_memory_map): Unconditionally delegate.
11408 * target.h (struct target_ops) <to_memory_map>: Use
11409 TARGET_DEFAULT_RETURN.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target-delegates.c: Rebuild.
11414 * target.c (target_thread_alive): Unconditionally delegate.
11415 * target.h (struct target_ops) <to_thread_alive>: Use
11416 TARGET_DEFAULT_RETURN.
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_save_record): Unconditionally delegate.
11422 * target.h (struct target_ops) <to_save_record>: Use
11423 TARGET_DEFAULT_NORETURN.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_delete_record): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_delete_record>: Use
11430 TARGET_DEFAULT_NORETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_record_is_replaying): Unconditionally
11437 * target.h (struct target_ops) <to_record_is_replaying>: Use
11438 TARGET_DEFAULT_RETURN.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (target_goto_record_begin): Unconditionally delegate.
11444 * target.h (struct target_ops) <to_goto_record_begin>: Use
11445 TARGET_DEFAULT_NORETURN.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_goto_record_end): Unconditionally delegate.
11451 * target.h (struct target_ops) <to_goto_record_end>: Use
11452 TARGET_DEFAULT_NORETURN.
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target-delegates.c: Rebuild.
11457 * target.c (target_goto_record): Unconditionally delegate.
11458 * target.h (struct target_ops) <to_goto_record>: Use
11459 TARGET_DEFAULT_NORETURN.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_insn_history): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_insn_history>: Use
11466 TARGET_DEFAULT_NORETURN.
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_insn_history_from): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_insn_history_from>: Use
11473 TARGET_DEFAULT_NORETURN.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_insn_history_range): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_insn_history_range>: Use
11480 TARGET_DEFAULT_NORETURN.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_call_history): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_call_history>: Use
11487 TARGET_DEFAULT_NORETURN.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_call_history_from): Unconditionally delegate.
11493 * target.h (struct target_ops) <to_call_history_from>: Use
11494 TARGET_DEFAULT_NORETURN.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target-delegates.c: Rebuild.
11499 * target.c (target_call_history_range): Unconditionally delegate.
11500 * target.h (struct target_ops) <to_call_history_range>: Use
11501 TARGET_DEFAULT_NORETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (target_verify_memory): Unconditionally delegate.
11507 * target.h (struct target_ops) <to_verify_memory>: Use
11508 TARGET_DEFAULT_NORETURN.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_core_of_thread): Unconditionally delegate.
11514 * target.h (struct target_ops) <to_core_of_thread>: Use
11515 TARGET_DEFAULT_RETURN.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target-delegates.c: Rebuild.
11520 * target.c (target_flash_done): Unconditionally delegate.
11521 * target.h (struct target_ops) <to_flash_done>: Use
11522 TARGET_DEFAULT_NORETURN.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target-delegates.c: Rebuild.
11527 * target.c (target_flash_erase): Unconditionally delegate.
11528 * target.h (struct target_ops) <to_flash_erase>: Use
11529 TARGET_DEFAULT_NORETURN.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target-delegates.c: Rebuild.
11534 * target.c (target_get_section_table): Unconditionally delegate.
11535 * target.h (struct target_ops) <to_get_section_table>: Use
11536 TARGET_DEFAULT_RETURN.
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11540 * target-delegates.c: Rebuild.
11541 * target.c (target_pid_to_str): Unconditionally delegate.
11542 (init_dummy_target): Don't initialize to_pid_to_str.
11543 (default_pid_to_str): Rename from dummy_pid_to_str.
11544 * target.h (struct target_ops) <to_pid_to_str>: Use
11545 TARGET_DEFAULT_FUNC.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target-delegates.c: Rebuild.
11550 * target.c (target_find_new_threads): Unconditionally delegate.
11551 * target.h (struct target_ops) <to_find_new_threads>: Use
11552 TARGET_DEFAULT_RETURN.
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11556 * target-delegates.c: Rebuild.
11557 * target.c (target_program_signals): Unconditionally delegate.
11558 * target.h (struct target_ops) <to_program_signals>: Use
11559 TARGET_DEFAULT_IGNORE.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (target_pass_signals): Unconditionally delegate.
11565 * target.h (struct target_ops) <to_pass_signals>: Use
11566 TARGET_DEFAULT_IGNORE.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (default_mourn_inferior): New function.
11572 (target_mourn_inferior): Unconditionally delegate.
11573 * target.h (struct target_ops) <to_mourn_inferior>: Use
11574 TARGET_DEFAULT_FUNC.
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11578 * target-delegates.c: Rebuild.
11579 * target.c (default_follow_fork): New function.
11580 (target_follow_fork): Unconditionally delegate.
11581 * target.h (struct target_ops) <to_follow_fork>: Use
11582 TARGET_DEFAULT_FUNC.
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target-delegates.c: Rebuild.
11587 * target.c (target_kill): Unconditionally delegate.
11588 * target.h (struct target_ops) <to_kill>: Use
11589 TARGET_DEFAULT_NORETURN.
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11593 * target-delegates.c: Rebuild.
11594 * target.c (target_masked_watch_num_registers): Unconditionally
11596 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11597 Use TARGET_DEFAULT_RETURN.
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target-delegates.c: Rebuild.
11602 * target.c (target_remove_mask_watchpoint): Unconditionally
11604 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11605 TARGET_DEFAULT_RETURN.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target-delegates.c: Rebuild.
11610 * target.c (target_insert_mask_watchpoint): Unconditionally
11612 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11613 TARGET_DEFAULT_RETURN.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target-delegates.c: Rebuild.
11618 * target.c (target_ranged_break_num_registers): Unconditionally
11620 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11621 Use TARGET_DEFAULT_RETURN.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target-delegates.c: Rebuild.
11626 * target.c (target_fetch_registers): Unconditionally delegate.
11627 * target.h (struct target_ops) <to_fetch_registers>: Use
11628 TARGET_DEFAULT_NORETURN.
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * target-delegates.c: Rebuild.
11633 * target.c (update_current_target): Don't inherit or default
11635 * target.h (struct target_ops) <to_stop>: Use
11636 TARGET_DEFAULT_IGNORE.
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_can_run_breakpoint_commands.
11643 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11644 Use TARGET_DEFAULT_RETURN.
11646 2014-02-19 Tom Tromey <tromey@redhat.com>
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_supports_evaluation_of_breakpoint_conditions.
11651 * target.h (struct target_ops)
11652 <to_supports_evaluation_of_breakpoint_conditions>: Use
11653 TARGET_DEFAULT_RETURN.
11655 2014-02-19 Tom Tromey <tromey@redhat.com>
11657 * target-delegates.c: Rebuild.
11658 * target.c (update_current_target): Don't inherit or default
11659 to_augmented_libraries_svr4_read.
11660 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11661 Use TARGET_DEFAULT_RETURN.
11663 2014-02-19 Tom Tromey <tromey@redhat.com>
11665 * target-delegates.c: Rebuild.
11666 * target.c (update_current_target): Don't inherit or default
11668 * target.h (struct target_ops) <to_can_use_agent>: Use
11669 TARGET_DEFAULT_RETURN.
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11673 * target-delegates.c: Rebuild.
11674 * target.c (update_current_target): Don't inherit or default
11676 * target.h (struct target_ops) <to_use_agent>: Use
11677 TARGET_DEFAULT_NORETURN.
11679 2014-02-19 Tom Tromey <tromey@redhat.com>
11681 * target-delegates.c: Rebuild.
11682 * target.c (update_current_target): Don't inherit or default
11683 to_traceframe_info.
11684 (return_null): Remove.
11685 * target.h (struct target_ops) <to_traceframe_info>: Use
11686 TARGET_DEFAULT_RETURN.
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * target-delegates.c: Rebuild.
11691 * target.c (update_current_target): Don't inherit or default
11692 to_static_tracepoint_markers_by_strid.
11693 * target.h (struct target_ops)
11694 <to_static_tracepoint_markers_by_strid>: Use
11695 TARGET_DEFAULT_NORETURN.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_static_tracepoint_marker_at.
11702 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11703 Use TARGET_DEFAULT_RETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_set_permissions.
11710 * target.h (struct target_ops) <to_set_permissions>: Use
11711 TARGET_DEFAULT_IGNORE.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_get_tib_address.
11718 * target.h (struct target_ops) <to_get_tib_address>: Use
11719 TARGET_DEFAULT_NORETURN.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_set_trace_notes.
11726 * target.h (struct target_ops) <to_set_trace_notes>: Use
11727 TARGET_DEFAULT_RETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't initialize
11733 to_set_trace_buffer_size.
11734 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11735 TARGET_DEFAULT_IGNORE.
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_set_circular_trace_buffer.
11742 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11743 TARGET_DEFAULT_IGNORE.
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_set_disconnected_tracing.
11750 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11751 TARGET_DEFAULT_IGNORE.
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_get_min_fast_tracepoint_insn_len.
11758 (return_minus_one): Remove.
11759 * target.h (struct target_ops)
11760 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_get_raw_trace_data.
11767 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11768 TARGET_DEFAULT_NORETURN.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_upload_trace_state_variables.
11775 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11776 Use TARGET_DEFAULT_RETURN.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_upload_tracepoints.
11783 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11784 TARGET_DEFAULT_RETURN.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_save_trace_data.
11791 * target.h (struct target_ops) <to_save_trace_data>: Use
11792 TARGET_DEFAULT_NORETURN.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_get_trace_state_variable_value.
11799 * target.h (struct target_ops)
11800 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11807 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11814 * target.h (struct target_ops) <to_trace_stop>: Use
11815 TARGET_DEFAULT_NORETURN.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_get_tracepoint_status.
11822 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11823 TARGET_DEFAULT_NORETURN.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_get_trace_status.
11830 * target.h (struct target_ops) <to_get_trace_status>: Use
11831 TARGET_DEFAULT_RETURN.
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11838 * target.h (struct target_ops) <to_trace_start>: Use
11839 TARGET_DEFAULT_NORETURN.
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_trace_set_readonly_regions.
11846 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11847 Use TARGET_DEFAULT_NORETURN.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_disable_tracepoint.
11854 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11855 TARGET_DEFAULT_NORETURN.
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11861 to_enable_tracepoint.
11862 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11863 TARGET_DEFAULT_NORETURN.
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11867 * target-delegates.c: Rebuild.
11868 * target.c (update_current_target): Don't inherit or default
11869 to_download_trace_state_variable.
11870 * target.h (struct target_ops) <to_download_trace_state_variable>:
11871 Use TARGET_DEFAULT_NORETURN.
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11875 * target-delegates.c: Rebuild.
11876 * target.c (update_current_target): Don't inherit or default
11877 to_can_download_tracepoint.
11878 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11879 TARGET_DEFAULT_RETURN.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target-delegates.c: Rebuild.
11884 * target.c (update_current_target): Don't inherit or default
11885 to_download_tracepoint.
11886 * target.h (struct target_ops) <to_download_tracepoint>: Use
11887 TARGET_DEFAULT_NORETURN.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target-delegates.c: Rebuild.
11892 * target.c (update_current_target): Don't inherit or default
11894 * target.h (struct target_ops) <to_trace_init>: Use
11895 TARGET_DEFAULT_RETURN.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target-delegates.c: Rebuild.
11900 * target.c (update_current_target): Don't inherit or default
11901 to_supports_string_tracing.
11902 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11903 TARGET_DEFAULT_RETURN.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target-delegates.c: Rebuild.
11908 * target.c (update_current_target): Don't inherit or default
11909 to_supports_enable_disable_tracepoint.
11910 * target.h (struct target_ops)
11911 <to_supports_enable_disable_tracepoint>: Use
11912 TARGET_DEFAULT_RETURN.
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_supports_multi_process.
11919 * target.h (struct target_ops) <to_supports_multi_process>: Use
11920 TARGET_DEFAULT_RETURN.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * target-delegates.c: Rebuild.
11925 * target.c (update_current_target): Don't inherit or default
11926 to_get_ada_task_ptid.
11927 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11928 TARGET_DEFAULT_FUNC.
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_thread_architecture.
11935 * target.h (struct target_ops) <to_thread_architecture>: Use
11936 TARGET_DEFAULT_FUNC.
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_execution_direction.
11943 * target.h (struct target_ops) <to_execution_direction>: Use
11944 TARGET_DEFAULT_FUNC.
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_can_execute_reverse.
11951 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11952 TARGET_DEFAULT_RETURN.
11953 (target_can_execute_reverse): Unconditionally delegate.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * target-delegates.c: Rebuild.
11958 * target.c (update_current_target): Don't inherit or default
11960 (dummy_goto_bookmark): Remove.
11961 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11962 * target.h (struct target_ops) <to_goto_bookmark>: Use
11963 TARGET_DEFAULT_NORETURN.
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11970 (dummy_get_bookmark): Remove.
11971 (init_dummy_target): Don't inherit or default to_get_bookmark.
11972 * target.h (struct target_ops) <to_get_bookmark>: Use
11973 TARGET_DEFAULT_NORETURN
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_make_corefile_notes.
11980 (init_dummy_target): Don't initialize to_make_corefile_notes.
11981 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11982 TARGET_DEFAULT_FUNC.
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target-delegates.c: Rebuild.
11987 * target.c (update_current_target): Don't inherit or default
11988 to_find_memory_regions.
11989 (init_dummy_target): Don't initialize to_find_memory_regions.
11990 * target.h (struct target_ops) <to_find_memory_regions>: Use
11991 TARGET_DEFAULT_FUNC.
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11995 * target-delegates.c: Rebuild.
11996 * target.c (update_current_target): Don't inherit or default
11998 * target.h (struct target_ops) <to_log_command>: Use
11999 TARGET_DEFAULT_IGNORE.
12000 (target_log_command): Unconditionally delegate.
12002 2014-02-19 Tom Tromey <tromey@redhat.com>
12004 * target-delegates.c: Rebuild.
12005 * target.c (update_current_target): Don't inherit or default
12006 to_pid_to_exec_file.
12007 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12008 TARGET_DEFAULT_RETURN.
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12012 * target-delegates.c: Rebuild.
12013 * target.c (update_current_target): Don't inherit or default
12015 (target_thread_name): Unconditionally delegate.
12016 * target.h (struct target_ops) <to_thread_name>: Use
12017 TARGET_DEFAULT_RETURN.
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't inherit or default
12023 to_extra_thread_info.
12024 * target.h (struct target_ops) <to_extra_thread_info>: Use
12025 TARGET_DEFAULT_RETURN.
12027 2014-02-19 Tom Tromey <tromey@redhat.com>
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12032 * target.h (struct target_ops) <to_has_exited>: Use
12033 TARGET_DEFAULT_RETURN..
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_set_syscall_catchpoint.
12040 (return_one): Remove.
12041 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_insert_exec_catchpoint.
12049 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12052 2014-01-08 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_insert_exec_catchpoint.
12057 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_remove_vfork_catchpoint.
12065 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_insert_vfork_catchpoint.
12073 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_remove_fork_catchpoint.
12081 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12082 TARGET_DEFAULT_RETURN.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_insert_fork_catchpoint.
12089 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12090 TARGET_DEFAULT_RETURN.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_post_startup_inferior.
12097 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12098 TARGET_DEFAULT_IGNORE.
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12105 * target.h (struct target_ops) <to_load>: Use
12106 TARGET_DEFAULT_NORETURN.
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12113 * target.h (struct target_ops) <to_terminal_info>: Use
12114 TARGET_DEFAULT_FUNC.
12116 2014-02-19 Tom Tromey <tromey@redhat.com>
12118 * target-delegates.c: Rebuild.
12119 * target.c (update_current_target): Don't inherit or default
12120 to_terminal_save_ours.
12121 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12122 TARGET_DEFAULT_IGNORE.
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12126 * target-delegates.c: Rebuild.
12127 * target.c (update_current_target): Don't inherit or default
12129 * target.h (struct target_ops) <to_terminal_ours>: Use
12130 TARGET_DEFAULT_IGNORE.
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12134 * target-delegates.c: Rebuild.
12135 * target.c (update_current_target): Don't inherit or default
12136 to_terminal_ours_for_output.
12137 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12138 TARGET_DEFAULT_IGNORE.
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12142 * target-delegates.c: Rebuild.
12143 * target.c (update_current_target): Don't inherit or default
12144 to_terminal_inferior.
12145 * target.h (struct target_ops) <to_terminal_inferior>: Use
12146 TARGET_DEFAULT_IGNORE.
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * target-delegates.c: Rebuild.
12151 * target.c (update_current_target): Don't inherit or default
12153 * target.h (struct target_ops) <to_terminal_init>: Use
12154 TARGET_DEFAULT_IGNORE.
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12158 * target-delegates.c: Rebuild.
12159 * target.c (update_current_target): Don't inherit or default
12160 to_can_accel_watchpoint_condition.
12161 * target.h (struct target_ops)
12162 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target-delegates.c: Rebuild.
12167 * target.c (update_current_target): Don't inherit or default
12168 to_region_ok_for_hw_watchpoint.
12169 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12170 Use TARGET_DEFAULT_FUNC.
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12174 * target-delegates.c: Rebuild.
12175 * target.c (update_current_target): Don't inherit or default
12176 to_watchpoint_addr_within_range.
12177 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12178 Use TARGET_DEFAULT_FUNC.
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12182 * target-delegates.c: Rebuild.
12183 * target.c (update_current_target): Don't inherit or default
12184 to_remove_watchpoint.
12185 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12186 TARGET_DEFAULT_NORETURN.
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12192 to_insert_watchpoint.
12193 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12194 TARGET_DEFAULT_RETURN.
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12198 * target-delegates.c: Rebuild.
12199 * target.c (update_current_target): Don't inherit or default
12200 to_remove_hw_breakpoint.
12201 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12202 TARGET_DEFAULT_RETURN.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_insert_hw_breakpoint.
12209 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12210 TARGET_DEFAULT_RETURN.
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12216 to_can_use_hw_breakpoint.
12217 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12218 TARGET_DEFAULT_RETURN.
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12225 * target.h (struct target_ops) <to_files_info>: Use
12226 TARGET_DEFAULT_IGNORE.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12233 * target.h (struct target_ops) <to_store>: Use
12234 TARGET_DEFAULT_NORETURN.
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12241 * target.h (struct target_ops) <to_post_attach>: Use
12242 TARGET_DEFAULT_IGNORE.
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * target-delegates.c: Rebuild.
12247 * target.c (update_current_target): Don't inherit or default
12249 (default_rcmd): New function.
12250 (do_monitor_command): Unconditionally delegate.
12251 * target.h (struct target_ops) <to_rmcd>: Use
12252 TARGET_DEFAULT_FUNC.
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12256 * target-delegates.c: Rebuild.
12257 * target.c (init_dummy_target): Don't initialize to_attach.
12258 (target_attach): Unconditionally delegate.
12259 * target.h (struct target_ops) <to_attach>: Use
12260 TARGET_DEFAULT_FUNC.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * target-delegates.c: Rebuild.
12265 * target.c (target_detach): Unconditionally delegate.
12266 (init_dummy_target): Don't initialize to_detach.
12267 * target.h (struct target_ops) <to_detach>: Use
12268 TARGET_DEFAULT_IGNORE.
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12274 (target_augmented_libraries_svr4_read): Add argument.
12275 * target.c (update_current_target): Update.
12276 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12281 * target.h (struct target_ops) <to_call_history_range>: Add
12283 * target.c (target_call_history_range): Add argument.
12284 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12286 (record_btrace_call_history_from): Update.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target.h (struct target_ops) <to_call_history_from>: Add
12292 * target.c (target_call_history_from): Add argument.
12293 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12296 2014-02-19 Tom Tromey <tromey@redhat.com>
12298 * target.h (struct target_ops) <to_call_history>: Add argument.
12299 * target.c (target_call_history): Add argument.
12300 * record-btrace.c (record_btrace_call_history): Add 'self'
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12305 * target.h (struct target_ops) <to_insn_history_range>: Add
12307 * target.c (target_insn_history_range): Add argument.
12308 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12310 (record_btrace_insn_history_from): Update.
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target.h (struct target_ops) <to_insn_history_from>: Add
12316 * target.c (target_insn_history_from): Add argument.
12317 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target.h (struct target_ops) <to_insn_history>: Add argument.
12323 * target.c (target_insn_history): Add argument.
12324 * record-btrace.c (record_btrace_insn_history): Add 'self'
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target.h (struct target_ops) <to_goto_record>: Add argument.
12330 * target.c (target_goto_record): Add argument.
12331 * record-full.c (record_full_goto): Add 'self' argument.
12332 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12336 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12337 * target.c (target_goto_record_end): Add argument.
12338 * record-full.c (record_full_goto_end): Add 'self' argument.
12339 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12343 * target.h (struct target_ops) <to_goto_record_begin>: Add
12345 * target.c (target_goto_record_begin): Add argument.
12346 * record-full.c (record_full_goto_begin): Add 'self' argument.
12347 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12352 * target.h (struct target_ops) <to_record_is_replaying>: Add
12354 * target.c (target_record_is_replaying): Add argument.
12355 * record-full.c (record_full_is_replaying): Add 'self' argument.
12356 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12358 (record_btrace_xfer_partial, record_btrace_store_registers)
12359 (record_btrace_prepare_to_store, record_btrace_resume)
12360 (record_btrace_wait, record_btrace_decr_pc_after_break)
12361 (record_btrace_find_new_threads, record_btrace_thread_alive):
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_delete_record>: Add argument.
12367 * target.c (target_delete_record): Add argument.
12368 * record-full.c (record_full_delete): Add 'self' argument.
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12372 * target.h (struct target_ops) <to_save_record>: Add argument.
12373 * target.c (target_save_record): Add argument.
12374 * record-full.c (record_full_save): Add 'self' argument.
12375 (record_full_save): Add 'self' argument.
12377 2014-02-19 Tom Tromey <tromey@redhat.com>
12379 * target.h (struct target_ops) <to_info_record>: Add argument.
12380 * target.c (target_info_record): Add argument.
12381 * record.c (info_record_command): Add argument.
12382 * record-full.c (record_full_info): Add 'self' argument.
12383 * record-btrace.c (record_btrace_info): Add 'self' argument.
12385 2014-02-19 Tom Tromey <tromey@redhat.com>
12387 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12388 * target.c (target_stop_recording): Add argument.
12389 * record.c (record_stop): Add argument.
12390 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12395 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12396 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12397 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12399 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12400 (_initialize_amd64_linux_nat): Use it.
12401 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12402 (_initialize_i386_linux_nat): Use it.
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12406 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12407 * target.c (target_teardown_btrace): Add argument.
12408 * remote.c (remote_teardown_btrace): Add 'self' argument.
12409 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12411 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12416 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12417 * target.c (target_disable_btrace): Add argument.
12418 * remote.c (remote_disable_btrace): Add 'self' argument.
12419 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12421 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12426 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12427 * target.c (target_enable_btrace): Add argument.
12428 * remote.c (remote_enable_btrace): Add 'self' argument.
12429 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12431 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12436 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12437 (target_can_use_agent): Add argument.
12438 * target.c (update_current_target): Update.
12439 * remote.c (remote_can_use_agent): Add 'self' argument.
12440 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12442 2014-02-19 Tom Tromey <tromey@redhat.com>
12444 * target.h (struct target_ops) <to_use_agent>: Add argument.
12445 (target_use_agent): Add argument.
12446 * target.c (update_current_target): Update.
12447 * remote.c (remote_use_agent): Add 'self' argument.
12448 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12450 2014-02-19 Tom Tromey <tromey@redhat.com>
12452 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12453 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12454 (target_traceframe_info): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_traceframe_info): Add 'self' argument.
12457 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12459 2014-02-19 Tom Tromey <tromey@redhat.com>
12461 * target.h (target_static_tracepoint_markers_by_strid): Add
12463 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12465 * target.c (update_current_target): Update.
12466 * remote.c (struct target_ops)
12467 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12468 * linux-nat.c (struct target_ops)
12469 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12475 (target_static_tracepoint_marker_at): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12483 (target_set_permissions): Add argument.
12484 * target.c (update_current_target): Update.
12485 * remote.c (remote_set_permissions): Add 'self' argument.
12486 (remote_start_remote): Update.
12488 2014-02-19 Tom Tromey <tromey@redhat.com>
12490 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12491 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12492 (target_get_tib_address): Add argument.
12493 * target.c (update_current_target): Update.
12494 * remote.c (remote_get_tib_address): Add 'self' argument.
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12498 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12499 (target_set_trace_notes): Add argument.
12500 * target.c (update_current_target): Update.
12501 * remote.c (remote_set_trace_notes): Add 'self' argument.
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12505 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12507 (target_set_trace_buffer_size): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12513 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12515 (target_set_circular_trace_buffer): Add argument.
12516 * target.c (update_current_target): Update.
12517 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12522 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12524 (target_set_disconnected_tracing): Add argument.
12525 * target.c (update_current_target): Update.
12526 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target.h (struct target_ops)
12531 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12532 (target_get_min_fast_tracepoint_insn_len): Add argument.
12533 * target.c (update_current_target): Update.
12534 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12537 2014-02-19 Tom Tromey <tromey@redhat.com>
12539 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12541 (target_get_raw_trace_data): Add argument.
12542 * target.c (update_current_target): Update.
12543 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12545 2014-02-19 Tom Tromey <tromey@redhat.com>
12547 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12549 (target_upload_trace_state_variables): Add argument.
12550 * target.c (update_current_target): Update.
12551 * remote.c (remote_upload_trace_state_variables): Add 'self'
12553 (remote_start_remote): Update.
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12559 (target_upload_tracepoints): Add argument.
12560 * target.c (update_current_target): Update.
12561 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12562 (remote_start_remote): Update.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12567 (target_save_trace_data): Add argument.
12568 * target.c (update_current_target): Update.
12569 * remote.c (remote_save_trace_data): Add 'self' argument.
12571 2014-02-19 Tom Tromey <tromey@redhat.com>
12573 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12575 * target.h (struct target_ops)
12576 <to_get_trace_state_variable_value>: Add argument.
12577 (target_get_trace_state_variable_value): Add argument.
12578 * target.c (update_current_target): Update.
12579 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12581 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12585 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12586 * target.h (struct target_ops) <to_trace_find>: Add argument.
12587 (target_trace_find): Add argument.
12588 * target.c (update_current_target): Update.
12589 * remote.c (remote_trace_find): Add 'self' argument.
12590 * ctf.c (ctf_trace_find): Add 'self' argument.
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12594 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12595 (target_trace_stop): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_trace_stop): Add 'self' argument.
12599 2014-02-19 Tom Tromey <tromey@redhat.com>
12601 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12602 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12604 (target_get_tracepoint_status): Add argument.
12605 * target.c (update_current_target): Update.
12606 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12611 * target.h (struct target_ops) <to_get_trace_status>: Add
12613 (target_get_trace_status): Add argument.
12614 * target.c (update_current_target): Update.
12615 * remote.c (remote_get_trace_status): Add 'self' argument.
12616 (remote_start_remote, remote_can_download_tracepoint): Update.
12617 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12619 2014-02-19 Tom Tromey <tromey@redhat.com>
12621 * target.h (struct target_ops) <to_trace_start>: Add argument.
12622 (target_trace_start): Add argument.
12623 * target.c (update_current_target): Update.
12624 * remote.c (remote_trace_start): Add 'self' argument.
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12628 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12630 (target_trace_set_readonly_regions): Add argument.
12631 * target.c (update_current_target): Update.
12632 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12639 (target_disable_tracepoint): Add argument.
12640 * target.c (update_current_target): Update.
12641 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12645 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12647 (target_enable_tracepoint): Add argument.
12648 * target.c (update_current_target): Update.
12649 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12651 2014-02-19 Tom Tromey <tromey@redhat.com>
12653 * target.h (struct target_ops) <to_download_trace_state_variable>:
12655 (target_download_trace_state_variable): Add argument.
12656 * target.c (update_current_target): Update.
12657 * remote.c (remote_download_trace_state_variable): Add 'self'
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12662 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12664 (target_can_download_tracepoint): Add argument.
12665 * target.c (update_current_target): Update.
12666 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target.h (struct target_ops) <to_download_tracepoint>: Add
12672 (target_download_tracepoint): Add argument.
12673 * target.c (update_current_target): Update.
12674 * remote.c (remote_download_tracepoint): Add 'self' argument.
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12678 * target.h (struct target_ops) <to_trace_init>: Add argument.
12679 (target_trace_init): Add argument.
12680 * target.c (update_current_target): Update.
12681 * remote.c (remote_trace_init): Add 'self' argument.
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12685 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12686 * target.c (target_fileio_readlink): Add argument.
12687 * remote.c (remote_hostio_readlink): Add 'self' argument.
12688 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12693 * target.c (target_fileio_unlink): Add argument.
12694 * remote.c (remote_hostio_unlink): Add 'self' argument.
12695 (remote_file_delete): Update.
12696 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12700 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12701 * target.c (target_fileio_close): Add argument.
12702 * remote.c (remote_hostio_close): Add 'self' argument.
12703 (remote_hostio_close_cleanup): Update.
12704 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12706 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12710 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12711 * target.c (target_fileio_pread): Add argument.
12712 * remote.c (remote_hostio_pread): Add 'self' argument.
12713 (remote_bfd_iovec_pread, remote_file_get): Update.
12714 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12718 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12719 * target.c (target_fileio_pwrite): Add argument.
12720 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12721 (remote_file_put): Update.
12722 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12727 * target.c (target_fileio_open): Add argument.
12728 * remote.c (remote_hostio_open): Add 'self' argument.
12729 (remote_bfd_iovec_open): Add 'self' argument.
12730 (remote_file_put): Add 'self' argument.
12731 (remote_file_get): Add 'self' argument.
12732 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12738 (target_can_run_breakpoint_commands): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12742 (remote_insert_breakpoint): Add 'self' argument.
12743 (remote_insert_hw_breakpoint): Add 'self' argument.
12744 (remote_can_run_breakpoint_commands): Add 'self' argument.
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12748 * target.h (struct target_ops)
12749 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12750 (target_supports_evaluation_of_breakpoint_conditions): Add
12752 * target.c (update_current_target): Update.
12753 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12755 (remote_insert_breakpoint): Add 'self' argument.
12756 (remote_insert_hw_breakpoint): Add 'self' argument.
12757 (remote_supports_cond_breakpoints): Add 'self' argument.
12759 2014-02-19 Tom Tromey <tromey@redhat.com>
12761 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12763 (target_supports_string_tracing): Add argument.
12764 * target.c (update_current_target): Update.
12765 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12769 * target.h (struct target_ops)
12770 <to_supports_disable_randomization>: Add argument.
12771 * target.c (find_default_supports_disable_randomization): Add
12773 (target_supports_disable_randomization): Add argument.
12774 (find_default_supports_disable_randomization): Add 'self'
12776 * remote.c (extended_remote_supports_disable_randomization): Add
12778 (remote_supports_disable_randomization): Add 'self' argument.
12779 (extended_remote_create_inferior): Update.
12780 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * target.h (struct target_ops)
12786 <to_supports_enable_disable_tracepoint>: Add argument.
12787 (target_supports_enable_disable_tracepoint): Add argument.
12788 * target.c (update_current_target): Update.
12789 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12794 * target.h (struct target_ops) <to_supports_multi_process>: Add
12796 (target_supports_multi_process): Add argument.
12797 * target.c (update_current_target): Update.
12798 * remote.c (remote_supports_multi_process): Add 'self' argument.
12799 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12801 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12806 * target.h (struct target_ops) <to_execution_direction>: Add
12808 (target_execution_direction): Add argument.
12809 * target.c (default_execution_direction): Add 'self' argument.
12810 * record-full.c (record_full_execution_direction): Add 'self'
12813 2014-02-19 Tom Tromey <tromey@redhat.com>
12815 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12817 (target_can_execute_reverse): Add argument.
12818 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12819 * record-full.c (record_full_can_execute_reverse): Add 'self'
12821 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12826 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12827 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12829 (target_get_ada_task_ptid): Add argument.
12830 * target.c (update_current_target): Update.
12831 (default_get_ada_task_ptid): Add 'self' argument.
12832 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12833 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12834 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12836 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12838 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12840 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12842 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12843 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12846 2014-02-19 Tom Tromey <tromey@redhat.com>
12848 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12849 (target_goto_bookmark): Add argument.
12850 * target.c (dummy_goto_bookmark): Add 'self' argument.
12851 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12853 2014-02-19 Tom Tromey <tromey@redhat.com>
12855 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12856 (target_get_bookmark): Add argument.
12857 * target.c (dummy_get_bookmark): Add 'self' argument.
12858 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12862 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12864 (target_make_corefile_notes): Add argument.
12865 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12866 * procfs.c (procfs_make_note_section): Add 'self' argument.
12867 (procfs_make_note_section): Add 'self' argument.
12868 (procfs_make_note_section): Add 'self' argument.
12869 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12871 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12872 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12873 * exec.c (exec_make_note_section): Add 'self' argument.
12874 (exec_make_note_section): Add 'self' argument.
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12878 * target.h (struct target_ops) <to_find_memory_regions>: Add
12880 (target_find_memory_regions): Add argument.
12881 * target.c (dummy_find_memory_regions): Add 'self' argument.
12882 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12883 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12884 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12885 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12886 * exec. (exec_do_find_memory_regions): New global.
12887 (exec_set_find_memory_regions): Rewrite.
12888 (exec_find_memory_regions): New function.
12889 (init_exec_ops): Use exec_find_memory_regions.
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12893 * target.h (struct target_ops) <to_supports_non_stop>: Add
12895 * target.c (find_default_supports_non_stop): Add argument.
12896 (target_supports_non_stop): Add argument.
12897 (find_default_supports_non_stop): Add 'self' argument.
12898 * remote.c (remote_supports_non_stop): Add 'self' argument.
12899 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12903 * target.h (struct target_ops) <to_log_command>: Add argument.
12904 (target_log_command): Add argument.
12905 * serial.h (serial_log_command): Add 'self' argument.
12906 * serial.c (serial_log_command): Add 'self' argument.
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12911 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12913 (target_pid_to_exec_file): Add argument.
12914 * target.c (debug_to_pid_to_exec_file): Add argument.
12915 (update_current_target): Update.
12916 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12917 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12918 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12919 (linux_handle_extended_wait): Update.
12920 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12921 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12922 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12923 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12927 * target.h (struct target_ops) <to_rcmd>: Add argument.
12928 (target_rcmd): Add argument.
12929 * target.c (debug_to_rcmd): Add argument.
12930 (update_current_target, do_monitor_command): Update.
12931 * remote.c (remote_rcmd): Add 'self' argument.
12932 * monitor.c (monitor_rcmd): Add 'self' argument.
12934 2014-02-19 Tom Tromey <tromey@redhat.com>
12936 * windows-nat.c (windows_stop): Add 'self' argument.
12937 * target.h (struct target_ops) <to_stop>: Add argument.
12938 * target.c (target_stop): Add argument.
12939 (debug_to_stop): Add argument.
12940 (update_current_target): Update.
12941 * remote.c (remote_stop): Add 'self' argument.
12942 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12943 (gdbsim_cntrl_c): Update.
12944 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12945 * procfs.c (procfs_stop): Add 'self' argument.
12946 * nto-procfs.c (procfs_stop): Add 'self' argument.
12947 * monitor.c (monitor_stop): Add 'self' argument.
12948 (monitor_open): Update.
12949 * linux-nat.c (linux_nat_stop): Add argument.
12950 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12951 * gnu-nat.c (gnu_stop): Add 'self' argument.
12952 * darwin-nat.c (darwin_stop): Add 'self' argument.
12954 2014-02-19 Tom Tromey <tromey@redhat.com>
12956 * target.h (struct target_ops) <to_thread_name>: Add argument.
12957 * target.c (target_thread_name): Add argument.
12958 (update_current_target): Update.
12959 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12961 2014-02-19 Tom Tromey <tromey@redhat.com>
12963 * target.h (struct target_ops) <to_extra_thread_info>: Add
12965 (target_extra_thread_info): Add argument.
12966 * target.c (update_current_target): Update.
12967 * remote.c (remote_threads_extra_info): Add 'self' argument.
12968 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12970 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12971 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12972 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12974 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12976 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12978 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12983 * target.h (struct target_ops) <to_program_signals>: Add argument.
12984 * target.c (target_program_signals): Add argument.
12985 * remote.c (remote_program_signals): Add 'self' argument.
12987 2014-02-19 Tom Tromey <tromey@redhat.com>
12989 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12990 * target.c (target_pass_signals): Add argument.
12991 * remote.c (remote_pass_signals): Add 'self' argument.
12992 (remote_start_remote): Update.
12993 * procfs.c (procfs_pass_signals): Add 'self' argument.
12994 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12995 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12996 (linux_nat_create_inferior, linux_nat_attach): Update.
12998 2014-02-19 Tom Tromey <tromey@redhat.com>
13000 * windows-nat.c (windows_can_run): Add 'self' argument.
13001 * target.h (struct target_ops) <to_can_run>: Add argument.
13002 (target_can_run): Add argument.
13003 * target.c (debug_to_can_run): Add argument.
13004 (update_current_target): Update.
13005 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13006 * inf-child.c (inf_child_can_run): Add 'self' argument.
13007 * go32-nat.c (go32_can_run): Add 'self' argument.
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13011 * target.h (struct target_ops) <to_has_exited>: Add argument.
13012 (target_has_exited): Add argument.
13013 * target.c (debug_to_has_exited): Add argument.
13014 (update_current_target): Update.
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13018 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13020 (target_set_syscall_catchpoint): Add argument.
13021 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13023 * target.c (update_current_target): Update.
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13027 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13029 (target_remove_exec_catchpoint): Add argument.
13030 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13031 (update_current_target): Update.
13032 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13035 2014-02-19 Tom Tromey <tromey@redhat.com>
13037 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13039 (target_insert_exec_catchpoint): Add argument.
13040 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13041 (update_current_target): Update.
13042 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13047 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13049 (target_remove_vfork_catchpoint): Add argument.
13050 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13051 (update_current_target): Update.
13052 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13057 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13059 (target_insert_vfork_catchpoint): Add argument.
13060 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13061 (update_current_target): Update.
13062 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13065 2014-02-19 Tom Tromey <tromey@redhat.com>
13067 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13069 (target_remove_fork_catchpoint): Add argument.
13070 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13071 (update_current_target): Update.
13072 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13075 2014-02-19 Tom Tromey <tromey@redhat.com>
13077 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13079 (target_insert_fork_catchpoint): Add argument.
13080 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13081 (update_current_target): Update.
13082 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13089 (target_post_startup_inferior): Add argument.
13090 * target.c (debug_to_post_startup_inferior): Add argument.
13091 (update_current_target): Update.
13092 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13094 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13096 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13098 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13100 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13102 (super_post_startup_inferior): Likewise.
13103 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13105 (super_post_startup_inferior): Likewise.
13106 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13107 Add 'self' argument.
13108 (super_post_startup_inferior): Likewise.
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13112 * target.h (struct target_ops) <to_load>: Add argument.
13113 * target.c (target_load): Add argument.
13114 (debug_to_load): Add argument.
13115 (update_current_target): Update.
13116 * remote.c (remote_load): Add 'self' argument.
13117 * remote-sim.c (gdbsim_load): Add 'self' argument.
13118 * remote-mips.c (mips_load): Add 'self' argument.
13119 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13120 * monitor.c (monitor_load): Add 'self' argument.
13121 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13123 2014-02-19 Tom Tromey <tromey@redhat.com>
13125 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13126 (target_terminal_info): Add argument.
13127 * target.c (debug_to_terminal_info): Add argument.
13128 (default_terminal_info): Likewise.
13129 * inflow.c (child_terminal_info): Add 'self' argument.
13130 * inferior.h (child_terminal_info): Add 'self' argument.
13131 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13135 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13137 (target_terminal_save_ours): Add argument.
13138 * target.c (debug_to_terminal_save_ours): Add argument.
13139 (update_current_target): Update.
13140 * inflow.c (terminal_save_ours): Add 'self' argument.
13141 * inferior.h (terminal_save_ours): Add 'self' argument.
13143 2014-02-19 Tom Tromey <tromey@redhat.com>
13145 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13146 (target_terminal_ours): Add argument.
13147 * target.c (debug_to_terminal_ours): Add argument.
13148 (update_current_target): Update.
13149 * remote.c (remote_terminal_ours): Add 'self' argument.
13150 (remote_close): Update.
13151 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13152 * inflow.c (terminal_ours): Add 'self' argument.
13153 * inferior.h (terminal_ours): Add 'self' argument.
13154 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13156 2014-02-19 Pedro Alves <palves@redhat.com>
13157 Tom Tromey <tromey@redhat.com>
13159 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13161 (target_terminal_ours_for_output): Add argument.
13162 * target.c (debug_to_terminal_ours_for_output): Add argument.
13163 (update_current_target): Update.
13164 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13165 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13166 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13168 2014-02-19 Tom Tromey <tromey@redhat.com>
13170 * target.h (struct target_ops) <to_terminal_inferior>: Add
13172 * target.c (target_terminal_inferior): Add argument.
13173 (update_current_target): Update.
13174 * remote.c (remote_terminal_inferior): Add 'self' argument.
13175 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13176 * inflow.c (terminal_inferior): Add 'self' argument.
13177 * inferior.h (terminal_inferior): Add 'self' argument.
13178 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13179 (go32_terminal_inferior): Add 'self' argument.
13181 2014-02-19 Tom Tromey <tromey@redhat.com>
13183 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13184 (target_terminal_init): Add argument.
13185 * target.c (debug_to_terminal_init): Add argument.
13186 (update_current_target): Update.
13187 * inflow.c (terminal_init_inferior): Add 'self' argument.
13188 * inferior.h (terminal_init_inferior): Add 'self' argument.
13189 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13190 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13192 2014-02-19 Tom Tromey <tromey@redhat.com>
13194 * target.h (struct target_ops)
13195 <to_can_accel_watchpoint_condition>: Add argument.
13196 (target_can_accel_watchpoint_condition): Add argument.
13197 * target.c (debug_to_can_accel_watchpoint_condition): Add
13199 (update_current_target): Update.
13200 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13203 2014-02-19 Tom Tromey <tromey@redhat.com>
13205 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13207 (target_region_ok_for_hw_watchpoint): Add argument.
13208 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13209 (default_region_ok_for_hw_watchpoint): Add argument.
13210 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13211 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13213 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13215 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13217 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13219 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13221 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13223 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13224 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13226 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13227 Add 'self' argument.
13229 2014-02-19 Tom Tromey <tromey@redhat.com>
13231 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13233 (target_insert_watchpoint): Add argument.
13234 * target.c (debug_to_insert_watchpoint): Add argument.
13235 (update_current_target): Update.
13236 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13237 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13238 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13239 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13240 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13241 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13243 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13244 (procfs_insert_hw_watchpoint): Add 'self' argument.
13245 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13247 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13249 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13251 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13252 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13254 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13257 2014-02-19 Tom Tromey <tromey@redhat.com>
13259 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13261 (target_remove_watchpoint): Add argument.
13262 * target.c (debug_to_remove_watchpoint): Add argument.
13263 (update_current_target): Update.
13264 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13265 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13266 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13267 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13268 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13269 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13271 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13272 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13274 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13276 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13278 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13279 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13281 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13284 2014-02-19 Tom Tromey <tromey@redhat.com>
13286 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13288 (target_remove_hw_breakpoint): Add argument.
13289 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13290 (update_current_target): Update.
13291 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13292 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13294 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13295 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13297 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13300 2014-02-19 Tom Tromey <tromey@redhat.com>
13302 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13304 (target_insert_hw_breakpoint): Add argument.
13305 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13306 (update_current_target): Update.
13307 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13308 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13310 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13311 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13312 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13314 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13317 2014-02-19 Tom Tromey <tromey@redhat.com>
13319 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13321 (target_can_use_hardware_watchpoint): Add argument.
13322 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13323 (update_current_target): Update.
13324 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13326 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13328 * remote.c (remote_check_watch_resources): Add 'self' argument.
13329 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13330 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13332 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13333 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13335 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13337 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13339 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13341 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13343 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13345 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13346 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13348 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13351 2014-02-19 Tom Tromey <tromey@redhat.com>
13353 * target.h (struct target_ops) <to_post_attach>: Add argument.
13354 (target_post_attach): Add argument.
13355 * target.c (debug_to_post_attach): Add argument.
13356 (update_current_target): Update.
13357 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13358 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13359 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13360 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13361 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13363 2014-02-19 Tom Tromey <tromey@redhat.com>
13365 * windows-nat.c (windows_close): Add 'self' argument.
13366 * tracepoint.c (tfile_close): Add 'self' argument.
13367 * target.h (struct target_ops) <to_close>: Add argument.
13368 * target.c (target_close): Add argument.
13369 (update_current_target): Update.
13370 * remote.c (remote_close): Add 'self' argument.
13371 * remote-sim.c (gdbsim_close): Add 'self' argument.
13372 * remote-mips.c (mips_close): Add 'self' argument.
13373 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13374 * record-full.c (record_full_close): Add 'self' argument.
13375 * record-btrace.c (record_btrace_close): Add 'self' argument.
13376 * monitor.h (monitor_close): Add 'self' argument.
13377 * monitor.c (monitor_close): Add 'self' argument.
13378 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13379 * linux-nat.c (linux_nat_close): Add argument.
13380 * go32-nat.c (go32_close): Add 'self' argument.
13381 * exec.c (exec_close_1): Add 'self' argument.
13382 * ctf.c (ctf_close): Add 'self' argument.
13383 * corelow.c (core_close): Add 'self' argument.
13384 (core_close_cleanup): Update.
13385 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13386 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13388 2014-02-19 Tom Tromey <tromey@redhat.com>
13390 * remote.c (remote_load): New function.
13391 (init_remote_ops): Use it.
13393 2014-02-19 Tom Tromey <tromey@redhat.com>
13395 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13397 * common/linux-btrace.h (linux_supports_btrace): Update.
13398 * remote.c (remote_supports_btrace): Add "self" argument.
13399 * target-delegates.c: Rebuild.
13400 * target.c (target_supports_btrace): Remove.
13401 * target.h (struct target_ops) <to_supports_btrace>: Add
13402 target_ops argument.
13403 (target_supports_btrace): New define.
13405 2014-02-19 Tom Tromey <tromey@redhat.com>
13407 * record-full.c (record_full_beneath_to_resume_ops)
13408 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13409 (record_full_beneath_to_wait)
13410 (record_full_beneath_to_store_registers_ops)
13411 (record_full_beneath_to_store_registers)
13412 (record_full_beneath_to_xfer_partial_ops)
13413 (record_full_beneath_to_xfer_partial)
13414 (record_full_beneath_to_insert_breakpoint_ops)
13415 (record_full_beneath_to_insert_breakpoint)
13416 (record_full_beneath_to_remove_breakpoint_ops)
13417 (record_full_beneath_to_remove_breakpoint)
13418 (record_full_beneath_to_stopped_by_watchpoint)
13419 (record_full_beneath_to_stopped_data_address)
13420 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13421 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13422 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13423 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13424 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13425 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13426 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13427 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13428 (record_full_resume, record_full_wait_1)
13429 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13430 (record_full_store_registers, record_full_xfer_partial)
13431 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13432 (record_full_async, record_full_core_xfer_partial): Use target
13434 * target-delegates.c: Rebuild.
13435 * target.c (current_xfer_partial): Remove.
13436 (update_current_target): Do not INHERIT or de_fault
13437 to_insert_breakpoint, to_remove_breakpoint,
13438 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13439 to_is_async_p, to_async. Do not set to_xfer_partial field.
13440 (default_xfer_partial): Simplify.
13441 (current_xfer_partial): Remove.
13442 (target_wait, target_resume): Simplify.
13443 (find_default_can_async_p, find_default_is_async_p): Update.
13444 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13445 to_xfer_partial, to_stopped_by_watchpoint,
13446 to_stopped_data_address.
13447 (target_store_registers): Simplify.
13448 (forward_target_remove_breakpoint)
13449 (forward_target_insert_breakpoint): Remove.
13450 (target_remove_breakpoint, target_insert_breakpoint)
13451 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13452 * target.h (struct target_ops) <to_resume, to_wait,
13453 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13454 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13455 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13457 (forward_target_remove_breakpoint)
13458 (forward_target_insert_breakpoint): Remove.
13459 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13461 (record_btrace_insert_breakpoint): Delegate directly.
13463 2014-02-19 Tom Tromey <tromey@redhat.com>
13466 * target-delegates.c: New file.
13467 * target.c: Include target-delegates.c.
13468 (init_dummy_target): Call install_dummy_methods.
13469 (complete_target_initialization): Call install_delegators.
13470 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13471 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13472 * make-target-delegates: New file.
13474 2014-02-19 Tom Tromey <tromey@redhat.com>
13476 * record.c (find_record_target): Use find_target_at.
13477 * target.c (find_target_at): New function.
13478 * target.h (find_target_at): Declare.
13480 2014-02-19 Tom Tromey <tromey@redhat.com>
13482 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13483 Add 'ops' argument.
13484 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13486 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13487 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13489 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13491 * linux-nat.c (save_sigtrap): Update.
13492 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13493 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13494 (linux_nat_close): Update.
13495 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13497 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13499 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13500 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13501 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13502 (tmp_to_async): Add 'ops' argument.
13503 (record_full_stopped_by_watchpoint, record_full_async)
13504 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13506 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13507 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13508 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13509 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13510 (remote_is_async_p, remote_async): Add 'ops' argument.
13511 (remote_stopped_data_address): Update.
13512 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13513 * target.c (update_current_target)
13514 (find_default_can_async_p, find_default_is_async_p): Update.
13515 (init_dummy_target): Update.
13516 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13517 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13518 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13519 (target_can_async_p, target_is_async_p, target_async)
13520 (target_stopped_by_watchpoint): Update.
13522 2014-02-19 Yao Qi <yao@codesourcery.com>
13525 * gdbarch.sh: Remove startup_gdbarch.
13526 * gdbarch.c: Regenerated.
13527 * gdbarch.h: Likewise.
13529 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13531 * rl78-tdep.c (rl78_g10_register_name): New function.
13532 (rl78_return_value): Add g10 support.
13533 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13536 2014-02-17 Doug Evans <xdje42@gmail.com>
13538 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13539 (SUBDIR_GUILE_SRCS): Ditto.
13540 (scm-gsmob.o): Ditto.
13542 2014-02-17 Yao Qi <yao@codesourcery.com>
13544 * gnu-nat.c (ILL_RPC): Declare defined function.
13546 2014-02-17 Yao Qi <yao@codesourcery.com>
13548 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13549 mach_msg_type_number_t.
13550 (gnu_write_inferior): Likewise.
13552 2014-02-17 Yao Qi <yao@codesourcery.com>
13554 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13556 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13557 (inf_validate_procs, inf_signal): Likewise.
13558 (S_exception_raise_request): Likewise.
13559 (do_mach_notify_dead_name): Likewise.
13560 (steal_exc_port): Likewise.
13561 (gnu_read_inferior): Change 'copy_count''s type to
13562 mach_msg_type_number_t.
13563 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13566 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13568 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13569 flag. Adjust all users; in particular...
13570 (gnu_wait): ..., don't decrement its value in here...
13571 (gnu_create_inferior): ..., and instead set the flag in here,
13572 around the startup_inferior call, and call that one with
13573 START_INFERIOR_TRAPS_EXPECTED.
13575 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13576 (ILL_RPC): ... new macro.
13577 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13578 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13579 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13580 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13581 functions with ILL_RPC macro.
13582 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13583 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13584 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13585 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13586 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13587 (S_proc_getlogin_reply, S_proc_getsid_reply)
13588 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13589 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13590 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13591 (S_proc_getnports_reply, S_proc_is_important_reply)
13592 (S_proc_get_code_reply): New stub functions, generated with
13595 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13596 collected the type check structures.
13598 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13600 2014-02-14 Doug Evans <dje@google.com>
13602 * target.c (target_write_partial): Fix result type.
13604 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13606 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13607 the proper offsets to access fpregset_t.
13609 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13611 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13612 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13613 * h8300-tdep.c (setmachinelist): Remove global.
13614 * hppa-tdep.c (hppa_sigtramp): Remove global.
13615 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13616 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13617 * ravenscar-thread.c (update_target_observer): Remove global.
13618 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13620 2014-02-12 Tom Tromey <tromey@redhat.com>
13622 * common/rsp-low.c: Update comments.
13623 * common/rsp-low.h: Update comments.
13625 2014-02-12 Tom Tromey <tromey@redhat.com>
13627 * common/rsp-low.c (convert_ascii_to_int): Remove.
13628 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13630 2014-02-12 Tom Tromey <tromey@redhat.com>
13632 * common/rsp-low.h (unhexify): Don't declare.
13633 * common/rsp-low.c (unhexify): Remove.
13635 2014-02-12 Tom Tromey <tromey@redhat.com>
13637 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13638 * common/rsp-low.c (convert_int_to_ascii): Remove.
13640 2014-02-12 Tom Tromey <tromey@redhat.com>
13642 * common/rsp-low.h (hexify): Don't declare.
13643 * common/rsp-low.c (hexify): Remove.
13645 2014-02-12 Tom Tromey <tromey@redhat.com>
13647 * common/rsp-low.c (hexify): Never take strlen of argument.
13649 2014-02-12 Tom Tromey <tromey@redhat.com>
13651 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13652 * remote.c (extended_remote_run, remote_rcmd)
13653 (remote_download_trace_state_variable, remote_save_trace_data)
13654 (remote_set_trace_notes): Update.
13655 * tracepoint.c (encode_source_string, tfile_write_status)
13656 (tfile_write_uploaded_tsv): Update.
13658 2014-02-12 Tom Tromey <tromey@redhat.com>
13660 * tracepoint.c: Include rsp-low.h.
13661 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13662 * remote.c: Include rsp-low.h.
13663 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13664 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13665 (remote_unescape_input): Move to common/rsp-low.c.
13666 * common/rsp-low.h: New file.
13667 * common/rsp-low.c: New file.
13668 * Makefile.in (SFILES): Add common/rsp-low.c.
13669 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13670 (COMMON_OBS): Add rsp-low.o.
13671 (rsp-low.o): New target.
13673 2014-02-12 Tom Tromey <tromey@redhat.com>
13675 * utils.h: Include print-utils.h.
13676 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13677 (int_string, core_addr_to_string, core_addr_to_string_nz)
13678 (hex_string, hex_string_custom): Don't declare.
13679 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13680 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13681 (hex_string_custom, int_string, core_addr_to_string)
13682 (core_addr_to_string_nz, host_address_to_string): Move to
13683 common/print-utils.c.
13684 * common/print-utils.h: New file.
13685 * common/print-utils.c: New file
13686 * Makefile.in (SFILES): Add common/print-utils.c.
13687 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13688 (COMMON_OBS): Add print-utils.o.
13689 (print-utils.o): New target.
13691 2014-02-12 Tom Tromey <tromey@redhat.com>
13693 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13695 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13697 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13699 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13701 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13702 if a PT_IO ptrace request returns sucessfully but indicates that 0
13703 bytes were transferred.
13705 2014-02-12 Pedro Alves <palves@redhat.com>
13706 Kevin Buettner <kevinb@redhat.com>
13708 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13709 TYPE_INSTANCE_FLAG_CODE_SPACE.
13711 2014-02-12 Pedro Alves <palves@redhat.com>
13713 * h8300-tdep.c (pseudo_from_raw_register)
13714 (raw_from_pseudo_register): New functions.
13715 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13718 2014-02-12 Pedro Alves <palves@redhat.com>
13720 * h8300-tdep.c (h8300_register_sim_regno): New function.
13721 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13722 gdbarch_register_sim_regno hook.
13724 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13726 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13728 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13730 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13732 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13734 * obsd-tdep.h (obsd_init_abi): New prototype.
13735 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13736 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13737 (obsd_init_abi): New functions.
13738 * i386obsd-tdep.c: Include "obsd-tdep.h".
13739 (i386obsd_init_abi): Call obsd_init_abi.
13740 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13741 (amd64obsd_init_abi): Call obsd_init_abi.
13742 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13743 obsd-tdep.c to gdb_target_obs.
13745 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13747 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13748 double float arguments to 16-byte in the argument slots.
13750 2014-02-11 Doug Evans <xdje42@gmail.com>
13752 * configure.ac: Don't crash if pkg-config is not found and guile
13753 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13755 * configure: Regenerate.
13757 2014-02-11 Yao Qi <yao@codesourcery.com>
13759 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13760 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13761 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13762 * gnu-nat.c (gnu_xfer_memory): Likewise.
13763 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13764 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13765 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13766 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13768 2014-02-11 Yao Qi <yao@codesourcery.com>
13770 * target.h (enum target_xfer_error): Rename to ...
13771 (enum target_xfer_status): ... it. New. All users updated.
13772 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13774 (TARGET_XFER_STATUS_ERROR_P): New macro.
13775 (target_xfer_error_to_string): Remove declaration.
13776 (target_xfer_status_to_string): Declare.
13777 (target_xfer_partial_ftype): Adjust it.
13778 (struct target_ops) <to_xfer_partial>: Return
13779 target_xfer_status. Add argument xfered_len. Update
13781 * target.c (target_xfer_error_to_string): Rename to ...
13782 (target_xfer_status_to_string): ... it. New. All callers
13784 (target_read_live_memory): Likewise. Call target_xfer_partial
13785 instead of target_read.
13786 (memory_xfer_live_readonly_partial): Return
13787 target_xfer_status. Add argument xfered_len.
13788 (raw_memory_xfer_partial): Likewise.
13789 (memory_xfer_partial_1): Likewise.
13790 (memory_xfer_partial): Likewise.
13791 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13792 properly. Update debug message.
13793 (default_xfer_partial, current_xfer_partial): Likewise.
13794 (target_write_partial): Likewise.
13795 (target_read_partial): Likewise. All callers updated.
13796 (read_whatever_is_readable): Likewise.
13797 (target_write_with_progress): Likewise.
13798 (target_read_alloc_1): Likewise.
13800 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13801 * auxv.c (procfs_xfer_auxv): Likewise.
13802 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13803 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13804 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13805 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13806 * corefile.c (read_memory): Adjust.
13807 * corelow.c (core_xfer_partial): Likewise.
13808 * ctf.c (ctf_xfer_partial): Likewise.
13809 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13811 (darwin_xfer_partial): Likewise.
13812 * exec.c (section_table_xfer_memory_partial): Likewise. All
13814 (exec_xfer_partial): Likewise.
13815 * exec.h (section_table_xfer_memory_partial): Update
13817 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13819 (gnu_xfer_partial): Likewise.
13820 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13821 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13822 (ia64_hpux_xfer_solib_got): Likewise.
13823 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13824 type of 'partial_len' to ULONGEST.
13825 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13826 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13827 (linux_nat_xfer_partial): Likewise.
13828 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13829 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13830 * monitor.c (monitor_xfer_memory): Likewise.
13831 (monitor_xfer_partial): Likewise.
13832 * procfs.c (procfs_xfer_partial): Likewise.
13833 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13834 * record-full.c (record_full_xfer_partial): Likewise.
13835 (record_full_core_xfer_partial): Likewise.
13836 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13837 (gdbsim_xfer_partial): Likewise.
13838 * remote.c (remote_write_bytes_aux): Likewise. All callers
13840 (remote_write_bytes, remote_read_bytes): Likewise. All
13842 (remote_flash_erase): Likewise. All callers updated.
13843 (remote_write_qxfer): Likewise. All callers updated.
13844 (remote_read_qxfer): Likewise. All callers updated.
13845 (remote_xfer_partial): Likewise.
13846 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13847 (rs6000_xfer_shared_libraries): Likewise.
13848 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13849 (sol_thread_xfer_partial): Likewise.
13850 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13851 (sparc_xfer_partial): Likewise.
13852 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13854 (spu_xfer_partial): Likewise.
13855 * spu-multiarch.c (spu_xfer_partial): Likewise.
13856 * tracepoint.c (tfile_xfer_partial): Likewise.
13857 * windows-nat.c (windows_xfer_memory): Likewise.
13858 (windows_xfer_shared_libraries): Likewise.
13859 (windows_xfer_partial): Likewise.
13860 * valprint.c: Replace 'target_xfer_error' with
13861 'target_xfer_status' in comments.
13863 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13865 Checked in by Joel Brobecker <brobecker@adacore.com>.
13866 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13868 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13870 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13871 function parameters.
13873 2014-02-10 Will Newton <will.newton@linaro.org>
13875 * elfread.c (elf_rel_plt_read): Look for a .got section if
13876 looking up .got.plt fails.
13877 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13878 on address passed to elf_gnu_ifunc_record_cache.
13879 (elf_gnu_ifunc_resolve_addr): Likewise.
13880 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13882 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13884 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13885 (X_RETTURN): New macro.
13886 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13888 * sparc64-tdep.c (sparc64_init_abi): Hook
13889 sparc_in_function_epilogue_p.
13891 2014-02-10 Gary Benson <gbenson@redhat.com>
13893 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13894 Rename name_matcher to symbol_matcher.
13896 2014-02-10 Gary Benson <gbenson@redhat.com>
13898 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13899 Use expand_symtabs_file_matcher_ftype and
13900 expand_symtabs_symbol_matcher_ftype.
13902 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13904 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13905 (struct ada_symbol_cache): New.
13906 (ada_free_symbol_cache): Forward declare.
13907 (struct ada_pspace_data): New.
13908 (ada_pspace_data_handle): New static global.
13909 (get_ada_pspace_data, ada_pspace_data_cleanup)
13910 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13911 (cache_space, cache): Delete, now folded inside struct
13913 (ada_get_symbol_cache): New function.
13914 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13916 (_initialize_ada_language): Remove initialization of cache_space.
13917 Move call to observer_attach_inferior_exit up, grouping it
13918 with the other observer registrations inside this function.
13919 Rename command to be more general. Add call to
13920 register_program_space_data_with_cleanup.
13922 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13924 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13925 ada_new_objfile_observer.
13926 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13927 (_initialize_tasks): Update uses of ada_new_objfile_observer
13928 and ada_tasks_normal_stop_observer.
13930 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13932 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13933 returned by the 'Length attribute to integer.
13935 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13937 * ada-lang.c (_initialize_ada_language): Initialize
13938 cache_space obstack.
13940 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13942 * ada-lang.c (HASH_SIZE): New macro.
13943 (struct cache_entry): New type.
13944 (cache_space, cache): New static globals.
13945 (ada_clear_symbol_cache, find_entry): New functions.
13946 (lookup_cached_symbol, cache_symbol): Implement.
13947 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13948 (_initialize_ada_language): Attach ada_new_objfile_observer
13949 and ada_free_objfile_observer.
13951 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13953 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13954 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13955 struct block * parameter.
13956 (ada_lookup_symbol_list_worker): Constify local variable "block".
13957 Remove cast which is no longer necessary.
13959 2014-02-10 Doug Evans <xdje42@gmail.com>
13961 Add Guile as an extension language.
13962 * NEWS: Mention Guile scripting.
13963 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13964 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13965 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13966 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13967 (CLIBS): Add GUILE_LIBS.
13968 (install-guile): New rule.
13969 (guile.o): New rule.
13970 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13971 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13972 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13973 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13974 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13975 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13976 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13977 * configure.ac: New option --with-guile.
13978 * configure: Regenerate.
13979 * config.in: Regenerate.
13980 * auto-load.c: Remove #include "python/python.h". Add #include
13981 "gdb/section-scripts.h".
13982 (source_section_scripts): Handle Guile scripts.
13983 (_initialize_auto_load): Add name of Guile objfile script to
13984 scripts-directory help text.
13985 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13986 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13987 (struct breakpoint): New member scm_bp_object.
13988 * defs.h (enum command_control_type): New value guile_control.
13989 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13991 (show_user): Update comment.
13992 (_initialize_cli_cmds): Update help text for "show user". Update help
13993 text for max-user-call-depth.
13994 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13996 (multi_line_command_p): Add guile_control.
13997 (print_command_lines): Handle guile_control.
13998 (execute_control_command, recurse_read_control_structure): Ditto.
13999 (process_next_line): Recognize "guile" commands.
14000 * disasm.c (gdb_disassemble_info): Make non-static.
14001 * disasm.h: #include "dis-asm.h".
14002 (struct gdbarch): Add forward decl.
14003 (gdb_disassemble_info): Declare.
14004 * extension.c: #include "guile/guile.h".
14005 (extension_languages): Add guile.
14006 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14007 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14008 * gdbtypes.c (get_unsigned_type_max): New function.
14009 (get_signed_type_minmax): New function.
14010 * gdbtypes.h (get_unsigned_type_max): Declare.
14011 (get_signed_type_minmax): Declare.
14012 * guile/README: New file.
14013 * guile/guile-internal.h: New file.
14014 * guile/guile.c: New file.
14015 * guile/guile.h: New file.
14016 * guile/scm-arch.c: New file.
14017 * guile/scm-auto-load.c: New file.
14018 * guile/scm-block.c: New file.
14019 * guile/scm-breakpoint.c: New file.
14020 * guile/scm-disasm.c: New file.
14021 * guile/scm-exception.c: New file.
14022 * guile/scm-frame.c: New file.
14023 * guile/scm-gsmob.c: New file.
14024 * guile/scm-iterator.c: New file.
14025 * guile/scm-lazy-string.c: New file.
14026 * guile/scm-math.c: New file.
14027 * guile/scm-objfile.c: New file.
14028 * guile/scm-ports.c: New file.
14029 * guile/scm-pretty-print.c: New file.
14030 * guile/scm-safe-call.c: New file.
14031 * guile/scm-string.c: New file.
14032 * guile/scm-symbol.c: New file.
14033 * guile/scm-symtab.c: New file.
14034 * guile/scm-type.c: New file.
14035 * guile/scm-utils.c: New file.
14036 * guile/scm-value.c: New file.
14037 * guile/lib/gdb.scm: New file.
14038 * guile/lib/gdb/boot.scm: New file.
14039 * guile/lib/gdb/experimental.scm: New file.
14040 * guile/lib/gdb/init.scm: New file.
14041 * guile/lib/gdb/iterator.scm: New file.
14042 * guile/lib/gdb/printing.scm: New file.
14043 * guile/lib/gdb/types.scm: New file.
14044 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14045 (VPATH): Add $(GUILE_SRCDIR).
14046 (GUILE_DIR): New variable.
14047 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14048 (all): Add stamp-guile dependency.
14049 (stamp-guile): New rule.
14050 (clean-guile, install-guile, uninstall-guile): New rules.
14051 (install-only): Add install-guile dependency.
14052 (uninstall): Add uninstall-guile dependency.
14053 (clean): Add clean-guile dependency.
14055 2014-02-09 Doug Evans <xdje42@gmail.com>
14057 Revert this patch (which I approved, mea culpa).
14059 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14061 * Makefile.in (all-lib): Remove.
14062 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14064 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14066 Fix Python stack corruption.
14067 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14070 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14072 * Makefile.in (all-lib): Remove.
14073 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14075 2014-02-07 Doug Evans <dje@google.com>
14077 * extension-priv.h (extension_language_script_ops): Add comment.
14078 (extension_language_ops): Add comment.
14079 (active_ext_lang_state): Fix typo in comment.
14081 2014-02-07 Pedro Alves <palves@redhat.com>
14083 PR breakpoints/16292
14084 * infrun.c (handle_signal_stop) <signal arrives while stepping
14085 over a breakpoint>: Switch back to the stepping thread.
14087 2014-02-07 Yao Qi <yao@codesourcery.com>
14089 * target.c (target_xfer_partial): Return zero if LEN is zero.
14091 2014-02-07 Yao Qi <yao@codesourcery.com>
14093 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14094 (ld_so_xfer_auxv): Likewise.
14095 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14096 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14097 * corelow.c (core_xfer_partial): Likewise.
14098 * ctf.c (ctf_xfer_partial): Likewise.
14099 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14100 (darwin_xfer_partial): Likewise.
14101 * exec.c (exec_xfer_partial): Likewise.
14102 * gnu-nat.c (gnu_xfer_partial): Likewise.
14103 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14104 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14105 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14106 * linux-nat.c (linux_xfer_siginfo): Likewise.
14107 (linux_proc_xfer_spu): Likewise.
14108 * procfs.c (procfs_xfer_partial): Likewise.
14109 * record-full.c (record_full_xfer_partial): Likewise.
14110 (record_full_core_xfer_partial): Likewise.
14111 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14112 * remote.c (remote_write_qxfer): Likewise.
14113 (remote_write_qxfer, remote_read_qxfer): Likewise.
14114 (remote_xfer_partial): Likewise.
14115 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14116 (rs6000_xfer_shared_libraries): Likewise.
14117 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14118 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14119 (spu_xfer_partial): Likewise.
14120 * target.c (memory_xfer_partial_1): Likewise.
14121 * tracepoint.c (tfile_xfer_partial): Likewise.
14122 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14123 (windows_xfer_partial): Likewise.
14125 2014-02-07 Yao Qi <yao@codesourcery.com>
14127 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14129 (core_xfer_shared_libraries_aix): Likewise.
14130 * gdbarch.c, gdbarch.h: Regenerated.
14131 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14132 ULONGEST. Change 'len_avail' type to ULONGEST.
14133 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14134 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14136 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14138 2014-02-07 Yao Qi <yao@codesourcery.com>
14140 * corefile.c (memory_error): Get 'exception' from ERR and pass
14141 'exception' to throw_error.
14143 2014-02-06 Doug Evans <xdje42@gmail.com>
14145 * configure.ac (libpython checking): Remove all but python.o from
14146 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14147 * configure: Regenerate.
14149 * Makefile.in (SFILES): Add extension.c.
14150 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14151 (COMMON_OBS): Add extension.o.
14152 * extension.h: New file.
14153 * extension-priv.h: New file.
14154 * extension.c: New file.
14156 * python/python-internal.h: #include "extension.h".
14157 (gdbpy_auto_load_enabled): Declare.
14158 (gdbpy_apply_val_pretty_printer): Declare.
14159 (gdbpy_apply_frame_filter): Declare.
14160 (gdbpy_preserve_values): Declare.
14161 (gdbpy_breakpoint_cond_says_stop): Declare.
14162 (gdbpy_breakpoint_has_cond): Declare.
14163 (void source_python_script_for_objfile): Delete.
14164 * python/python.c: #include "extension-priv.h".
14165 Delete inclusion of "observer.h".
14166 (extension_language_python): Moved here and renamed from
14167 script_language_python in py-auto-load.c.
14168 Redefined to be of type extension_language_defn.
14169 (python_extension_script_ops): New global.
14170 (python_extension_ops): New global.
14171 (struct python_env): New member previous_active.
14172 (restore_python_env): Call restore_active_ext_lang.
14173 (ensure_python_env): Call set_active_ext_lang.
14174 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14176 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14178 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14180 (gdbpy_eval_from_control_command): Renamed from
14181 eval_python_from_control_command, made static. New arg extlang.
14182 (gdbpy_source_script) Renamed from source_python_script, made static.
14184 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14185 result to int. New arg extlang.
14186 (gdbpy_source_objfile_script): Renamed from
14187 source_python_script_for_objfile, made static. New arg extlang.
14188 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14189 static. New args extlang, extlang_printers. Change result type to
14191 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14192 static. New arg extlang. Rename arg printers to extlang_printers
14193 and change type to ext_lang_type_printers *.
14194 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14195 static. Replace argument arg with extlang, extlang_printers.
14196 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14197 (!HAVE_PYTHON, source_python_script): Delete.
14198 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14199 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14200 (!HAVE_PYTHON, start_type_printers): Delete.
14201 (!HAVE_PYTHON, apply_type_printers): Delete.
14202 (!HAVE_PYTHON, free_type_printers): Delete.
14203 (_initialize_python): Delete call to observer_attach_before_prompt.
14204 (finalize_python): Set/restore active extension language.
14205 (gdbpy_finish_initialization) Renamed from
14206 finish_python_initialization, made static. New arg extlang.
14207 (gdbpy_initialized): New function.
14208 * python/python.h: #include "extension.h". Delete #include
14209 "value.h", "mi/mi-cmds.h".
14210 (extension_language_python): Declare.
14211 (GDBPY_AUTO_FILE_NAME): Delete.
14212 (enum py_bt_status): Moved to extension.h and renamed to
14213 ext_lang_bt_status.
14214 (enum frame_filter_flags): Moved to extension.h.
14215 (enum py_frame_args): Moved to extension.h and renamed to
14216 ext_lang_frame_args.
14217 (finish_python_initialization): Delete.
14218 (eval_python_from_control_command): Delete.
14219 (source_python_script): Delete.
14220 (apply_val_pretty_printer): Delete.
14221 (apply_frame_filter): Delete.
14222 (preserve_python_values): Delete.
14223 (gdbpy_script_language_defn): Delete.
14224 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14225 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14227 * auto-load.c: #include "extension.h".
14228 (GDB_AUTO_FILE_NAME): Delete.
14229 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14230 (script_language_gdb): Delete, moved to extension.c and renamed to
14231 extension_language_gdb.
14232 (source_gdb_script_for_objfile): Delete.
14233 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14234 (loaded_script): Change type of language member to
14235 struct extension_language_defn *.
14236 (init_loaded_scripts_info): Initialize
14237 unsupported_script_warning_printed.
14238 (maybe_add_script): Make static. Change type of language arg to
14239 struct extension_language_defn *.
14240 (clear_section_scripts): Reset unsupported_script_warning_printed.
14241 (auto_load_objfile_script_1): Rewrite to use extension language API.
14242 (auto_load_objfile_script): Make public. Remove support-compiled-in
14243 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14244 (source_section_scripts): Rewrite to use extension language API.
14245 (load_auto_scripts_for_objfile): Rewrite to use
14246 auto_load_scripts_for_objfile.
14247 (collect_matching_scripts_data): Change type of language member to
14248 struct extension_language_defn *.
14249 (auto_load_info_scripts): Change type of language arg to
14250 struct extension_language_defn *.
14251 (unsupported_script_warning_print): New function.
14252 (script_not_found_warning_print): Make static.
14253 (_initialize_auto_load): Rewrite construction of scripts-directory
14255 * auto-load.h (struct objfile): Add forward decl.
14256 (struct script_language): Delete.
14257 (struct auto_load_pspace_info): Add forward decl.
14258 (struct extension_language_defn): Add forward decl.
14259 (maybe_add_script): Delete.
14260 (auto_load_objfile_script): Declare.
14261 (script_not_found_warning_print): Delete.
14262 (auto_load_info_scripts): Update prototype.
14263 (auto_load_gdb_scripts_enabled): Declare.
14264 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14265 auto_load_python_scripts_enabled and made public.
14266 (script_language_python): Delete, moved to python.c.
14267 (gdbpy_script_language_defn): Delete.
14268 (info_auto_load_python_scripts): Update to use
14269 extension_language_python.
14271 * breakpoint.c (condition_command): Replace call to
14272 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14273 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14274 with call to breakpoint_ext_lang_cond_says_stop.
14275 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14276 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14277 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14278 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14280 (local_setattro): Print name of extension language with existing
14283 * valprint.c (val_print, value_print): Update to call
14284 apply_ext_lang_val_pretty_printer.
14285 * cp-valprint.c (cp_print_value): Update call to
14286 apply_ext_lang_val_pretty_printer.
14287 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14288 (gdbpy_apply_val_pretty_printer): Renamed from
14289 apply_val_pretty_printer. New arg extlang.
14290 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14292 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14293 extension language API.
14294 * cli/cli-script.c (execute_control_command): Update to call
14295 eval_ext_lang_from_control_command.
14297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14298 enum ext_lang_bt_status values. Update call to
14299 apply_ext_lang_frame_filter.
14300 (mi_cmd_stack_list_locals): Ditto.
14301 (mi_cmd_stack_list_args): Ditto.
14302 (mi_cmd_stack_list_variables): Ditto.
14303 * mi/mi-main.c: Delete #include "python/python-internal.h".
14304 Add #include "extension.h".
14305 (mi_cmd_list_features): Replace reference to python internal variable
14306 gdb_python_initialized with call to ext_lang_initialized_p.
14308 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14309 Update to use enum ext_lang_frame_args. Update to call
14310 apply_ext_lang_frame_filter.
14311 * python/py-framefilter.c (extract_sym): Update to use enum
14312 ext_lang_bt_status.
14313 (extract_value, py_print_type, py_print_value): Ditto.
14314 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14315 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14316 (py_print_frame): Ditto.
14317 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14318 New arg extlang. Update to use enum ext_lang_bt_status.
14320 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14321 finish_python_initialization. Replace with call to
14322 finish_ext_lang_initialization.
14324 * typeprint.c (do_free_global_table): Update to call
14325 free_ext_lang_type_printers.
14326 (create_global_typedef_table): Update to call
14327 start_ext_lang_type_printers.
14328 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14329 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14330 (type_print_options): Change type of global_printers from "void *"
14331 to "struct ext_lang_type_printers *".
14333 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14334 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14335 (gdbpy_preserve_values): Renamed from preserve_python_values.
14337 (!HAVE_PYTHON, preserve_python_values): Delete.
14339 * utils.c (quit_flag): Delete, moved to extension.c.
14340 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14343 * eval.c: Delete #include "python/python.h".
14344 * main.c: Delete #include "python/python.h".
14346 * defs.h: Update comment.
14348 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14352 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14354 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14357 2014-02-05 Yao Qi <yao@codesourcery.com>
14359 * remote.c (remote_pass_signals): Remove local 'buf' and use
14361 (remote_program_signals): Likewise.
14363 2014-02-05 Yao Qi <yao@codesourcery.com>
14365 * ctf.c: Include "inferior.h" and "gdbthread.h".
14366 (CTF_PID): A new macro.
14367 (ctf_open): Call inferior_appeared and add_thread_silent.
14368 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14369 (ctf_thread_alive): New function.
14370 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14372 2014-02-05 Yao Qi <yao@codesourcery.com>
14376 2013-05-24 Yao Qi <yao@codesourcery.com>
14378 * tracepoint.c (TFILE_PID): Remove.
14379 (tfile_open): Don't add thread and inferior.
14380 (tfile_close): Don't set 'inferior_ptid'. Don't call
14381 exit_inferior_silent.
14382 (tfile_thread_alive): Remove.
14383 (init_tfile_ops): Don't set field 'to_thread_alive' of
14386 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14388 * remote.c (remote_start_remote): Call remote_check_symbols even
14389 if only symbol-file (not file) has been given.
14391 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14393 * gdbarch.sh (skip_entrypoint): New callback.
14394 * gdbarch.c, gdbarch.h: Regenerate.
14395 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14396 * infrun.c (fill_in_stop_func): Likewise.
14397 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14398 (ppc_elfv2_elf_make_msymbol_special): New function.
14399 (ppc_elfv2_skip_entrypoint): Likewise.
14400 (ppc_linux_init_abi): Install them for ELFv2.
14402 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14404 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14405 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14406 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14407 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14408 structures returned in GPRs.
14410 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14412 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14413 offset to the stack parameter list for the ELFv2 ABI.
14415 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14417 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14418 set_gdbarch_convert_from_func_ptr_addr and
14419 set_gdbarch_elf_make_msymbol_special for ELFv1.
14420 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14421 function descriptors on ELFv1.
14422 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14423 set up r12 at function entry.
14425 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14427 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14428 (struct gdbarch_tdep): New member elf_abi.
14430 * rs6000-tdep.c: Include "elf/ppc64.h".
14431 (rs6000_gdbarch_init): Detect ELF ABI version.
14433 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14436 within a register pair holding a DFP 128-bit value on little-endian.
14437 (ppc64_sysv_abi_return_value_base): Likewise.
14438 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14439 (dfp_pseudo_register_write): Likewise.
14441 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14443 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14444 offset on little-endian when passing _Decimal32.
14445 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14447 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14449 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14450 of the overlapped FP register within the VSX register on little-
14452 (efpr_pseudo_register_write): Likewise.
14454 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14457 offset on little-endian when passing small structures.
14459 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14461 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14462 (struct ppc64_sysv_argpos): New data structure.
14463 (ppc64_sysv_abi_push_float): Remove.
14464 (ppc64_sysv_abi_push_val): New function.
14465 (ppc64_sysv_abi_push_integer): Likewise.
14466 (ppc64_sysv_abi_push_freg): Likewise.
14467 (ppc64_sysv_abi_push_vreg): Likewise.
14468 (ppc64_sysv_abi_push_param): Likewise.
14469 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14470 (ppc64_sysv_abi_return_value_base): New function.
14471 (ppc64_sysv_abi_return_value): Refactor to use it.
14473 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14475 * NEWS: Document new target powerpc64le-*-linux*.
14477 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14479 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14480 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14482 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14483 register set used in ELF core dumps. Add floating-point register set.
14485 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14487 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14488 dwarf2_to_gdb[] table using symbolic constants. Adjust
14489 penultimate entry from number representing the PC register
14490 to symbolic constant representing the MDR register. Add
14491 constant for the PC register to the end of the table.
14493 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14495 * bsd-kvm.c: Include <sys/param.h>
14497 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14499 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14501 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14503 * ada-lang.h (clear_ada_sym_cache): Delete.
14505 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14507 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14509 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14511 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14512 the sigreturn register save area only if the syscall is
14515 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14517 * valops.c (value_slice): Minor reformatting.
14519 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14521 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14523 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14525 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14526 New static globals.
14527 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14528 (ada_ignore_descriptive_types_p): New static global.
14529 (find_parallel_type_by_descriptive_type): Return immediately
14530 if ada_ignore_descriptive_types_p is set.
14531 (_initialize_ada_language): Register new commands "maintenance
14532 set ada", "maintenance show ada", "maintenance set ada
14533 ignore-descriptive-types" and "maintenance show ada
14534 ignore-descriptive-types".
14535 * NEWS: Add entry for new "maint ada set/show
14536 ignore-descriptive-types" commands.
14538 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14540 * record-btrace.c (record_btrace_close): Call btrace_teardown
14543 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14545 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14548 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14550 * ada-typeprint (type_is_full_subrange_of_target_type):
14552 (print_range): Add parameter bounds_prefered_p. If not set,
14553 try printing range types using the name of their base type.
14554 (print_range_type): Add parameter bounds_prefered_p.
14555 Use it in call to print_range.
14556 (print_array_type, ada_print_type): Update calls to print_range
14557 and print_range_type.
14559 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14561 * ada-typeprint.c (print_array_type, print_choices, print_range)
14562 (print_range_bound, print_dynamic_range_bound, print_range_type):
14563 Remove declaration.
14565 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14567 * ada-typeprint.c (print_range): Add missing empty line
14568 after local declaration.
14570 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14572 * ada-valprint.c (print_optional_low_bound): Get index_type's
14573 target type for as long as it is a TYPE_CODE_RANGE.
14575 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14577 * procfs.c (procfs_make_note_section): Remove assertion and
14578 associated comment.
14580 2014-01-24 Yao Qi <yao@codesourcery.com>
14582 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14583 * corelow.c (get_core_siginfo): Likewise.
14585 2014-01-24 Yao Qi <yao@codesourcery.com>
14587 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14588 ULONGEST. Don't check 'len' is negative.
14589 (remote_write_bytes): Change type of 'len' to ULONGEST.
14591 2014-01-23 Tom Tromey <tromey@redhat.com>
14594 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14595 Handle exception from frame.block.
14596 (FrameVars.fetch_frame_locals): Likewise.
14598 2014-01-23 Tom Tromey <tromey@redhat.com>
14601 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14602 on a NULL pointer. Move "goto error" to correct place.
14604 2014-01-23 Tom Tromey <tromey@redhat.com>
14607 * python/py-framefilter.c (apply_frame_filter): Call
14608 ensure_python_env after computing gdbarch.
14610 2014-01-23 Yao Qi <yao@codesourcery.com>
14612 * target.c (raw_memory_xfer_partial): Change argument type
14613 from void * to gdb_byte *.
14614 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14616 2014-01-22 Doug Evans <dje@google.com>
14618 New gdbserver option --debug-format=timestamp.
14619 * NEWS: Mention it.
14621 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14623 * syscalls/s390x-linux.xml: New file.
14624 * syscalls/s390-linux.xml: New file.
14625 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14626 (XML_SYSCALL_FILENAME_S390X): Likewise.
14627 (op_svc): New enum value for SVC opcode.
14628 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14629 (s390_linux_get_syscall_number): New function.
14630 (s390_gdbarch_init): Register '*get_syscall_number' and the
14631 syscall xml file name.
14632 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14633 "s390-linux.xml" and "s390x-linux.xml".
14634 * NEWS: Announce new feature.
14636 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14638 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14640 2014-01-22 Pedro Alves <palves@redhat.com>
14642 * xtensa-config.c: Include defs.h.
14644 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14646 * common/common-utils.h: Add "ARI:" comment beside __func__
14649 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14651 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14652 documentation a bit.
14654 2014-01-21 Roland McGrath <mcgrathr@google.com>
14656 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14657 * configure: Regenerate.
14658 * aclocal.m4: Regenerate.
14659 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14660 New substituted variables.
14661 (install-strip): New target.
14662 (INSTALL_SCRIPT): New substituted variable.
14663 (FLAGS_TO_PASS): Add it.
14664 (install-only): Use $(INSTALL_SCRIPT) rather than
14665 $(INSTALL_PROGRAM) for gcore.
14667 2014-01-20 Tom Tromey <tromey@redhat.com>
14669 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14672 2014-01-20 Tom Tromey <tromey@redhat.com>
14674 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14675 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14676 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14677 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14678 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14679 (struct cmd_list_element) <flags>: Remove.
14680 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14681 doc_allocated>: New fields.
14682 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14684 * maint.c (maintenance_do_deprecate): Update.
14685 * top.c (execute_command): Update.
14687 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14689 * xtensa-linux-nat.c: Include asm/ptrace.h.
14691 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14693 * Makefile.in (SFILES): Add d-support.c.
14694 (COMMON_OBS): Add d-support.o.
14695 * d-lang.h (d_parse_symbol): Add comment, now defined in
14697 * d-lang.c (parse_call_convention)
14698 (parse_attributes, parse_function_types)
14699 (parse_function_args, parse_type, parse_identifier)
14700 (call_convention_p, d_parse_symbol): Move functions to ...
14701 * d-support.c: ... New file.
14703 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14705 * d-lang.h (d_parse_symbol): Add declaration.
14706 * d-lang.c (extract_identifiers)
14707 (extract_type_info): Remove functions.
14708 (parse_call_convention, parse_attributes)
14709 (parse_function_types, parse_function_args)
14710 (parse_type, parse_identifier, call_convention_p)
14711 (d_parse_symbol): New functions.
14712 (d_demangle): Use d_parse_symbol to demangle D symbols.
14714 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14716 * d-lang.h (struct builtin_d_type): New data type.
14717 (builtin_d_type): Add declaration.
14718 * d-lang.c (d_language_arch_info, build_d_types)
14719 (builtin_d_type): New functions.
14720 (enum d_primitive_types): New data type.
14721 (d_language_defn): Change c_language_arch_info to
14722 d_language_arch_info.
14723 (d_type_data): New static variable.
14724 (_initialize_d_language): Initialize d_type_data.
14726 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14728 * d-lang.h (d_main_name): Add declaration.
14729 * d-lang.c (d_main_name): New function.
14730 * symtab.c (find_main_name): Add call to d_main_name.
14732 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14734 * d-lang.c (d_language_defn): Change macro_expansion_c to
14735 macro_expansion_no.
14737 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14739 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14741 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14743 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14744 gdb_exception" declaration.
14745 * remote.c (getpkt_or_notif_sane): Likewise.
14747 2014-01-17 Doug Evans <dje@google.com>
14749 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14750 function, contents of dirnames_to_char_ptr_vec_append moved here.
14751 (delim_string_to_char_ptr_vec): New function.
14752 (dirnames_to_char_ptr_vec_append): Rewrite.
14753 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14755 2014-01-17 Doug Evans <dje@google.com>
14757 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14759 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14760 #include "common-utils.h".
14761 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14762 * common/vec.h (VEC_ASSERT_PASS): Update.
14763 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14764 (MACH_CHECK_ERROR): Update.
14766 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14768 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14770 * gdbarch.h: Regenerate.
14772 2014-01-16 Tom Tromey <tromey@redhat.com>
14774 * value.c (struct value) <regnum>: Move earlier.
14776 2014-01-16 Tom Tromey <tromey@redhat.com>
14778 * remote.c (extended_remote_create_inferior): Rename from
14779 extended_remote_create_inferior_1. Add "ops" argument. Remove
14780 old implementation.
14782 2014-01-16 Pedro Alves <palves@redhat.com>
14784 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14785 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14788 2014-01-16 Doug Evans <dje@google.com>
14790 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14794 * btrace.h (btrace_thread_flag): New.
14795 (struct btrace_thread_info) <flags>: New.
14796 * record-btrace.c (record_btrace_resume_thread)
14797 (record_btrace_find_thread_to_move, btrace_step_no_history)
14798 (btrace_step_stopped, record_btrace_start_replaying)
14799 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14800 (record_btrace_find_resume_thread): New.
14801 (record_btrace_resume, record_btrace_wait): Extend.
14802 (record_btrace_can_execute_reverse): New.
14803 (record_btrace_open): Fail in non-stop mode.
14804 (record_btrace_set_replay): Split into this, ...
14805 (record_btrace_stop_replaying): ... this, ...
14806 (record_btrace_clear_histories): ... and this.
14807 (init_record_btrace_ops): Init to_can_execute_reverse.
14808 * NEWS: Announce it.
14810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14812 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14813 (forward_target_decr_pc_after_break)
14814 (target_decr_pc_after_break): New.
14815 * target.c (forward_target_decr_pc_after_break)
14816 (target_decr_pc_after_break): New.
14817 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14818 instead of gdbarch_decr_pc_after_break.
14819 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14820 instead of gdbarch_decr_pc_after_break.
14821 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14822 instead of gdbarch_decr_pc_after_break.
14823 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14824 instead of gdbarch_decr_pc_after_break.
14825 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14826 instead of gdbarch_decr_pc_after_break.
14827 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14828 instead of gdbarch_decr_pc_after_break.
14830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14832 * btrace.c: Include regcache.h.
14833 (btrace_add_pc): New.
14834 (btrace_enable): Call btrace_add_pc.
14835 (btrace_is_empty): New.
14836 * btrace.h (btrace_is_empty): New.
14837 * record-btrace.c (require_btrace, record_btrace_info): Call
14840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14842 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14843 Support delta reads.
14844 (linux_disable_btrace): Change return type.
14845 * common/linux-btrace.h (linux_read_btrace): Change parameters
14846 and return type to allow error reporting. Update users.
14847 (linux_disable_btrace): Change return type. Update users.
14848 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14850 (btrace_error): New.
14851 (btrace_block) <begin>: Comment on BEGIN == 0.
14852 * btrace.c (btrace_compute_ftrace): Start from the end of
14854 (btrace_stitch_trace, btrace_clear_history): New.
14855 (btrace_fetch): Read delta trace, return if replaying.
14856 (btrace_clear): Move clear history code to btrace_clear_history.
14857 (parse_xml_btrace): Throw an error if parsing failed.
14858 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14859 and return type to allow error reporting.
14860 (target_read_btrace): Change parameters and return type to allow
14862 * target.c (target_read_btrace): Update.
14863 * remote.c (remote_read_btrace): Support delta reads. Pass
14865 * NEWS: Announce it.
14867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14869 * record.h (record_btrace_frame_unwind)
14870 (record_btrace_tailcall_frame_unwind): New declarations.
14871 * dwarf2-frame: Include record.h
14872 (dwarf2_frame_cfa): Throw an error for btrace frames.
14873 * record-btrace.c: Include hashtab.h.
14874 (btrace_get_bfun_name): New.
14875 (btrace_call_history): Call btrace_get_bfun_name.
14876 (struct btrace_frame_cache): New.
14878 (bfcache_hash, bfcache_eq, bfcache_new): New.
14879 (btrace_get_frame_function): New.
14880 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14881 (record_btrace_frame_this_id): Compute own id.
14882 (record_btrace_frame_prev_register): Provide PC, throw_error
14883 for all other registers.
14884 (record_btrace_frame_sniffer): Detect btrace frames.
14885 (record_btrace_tailcall_frame_sniffer): New.
14886 (record_btrace_frame_dealloc_cache): New.
14887 (record_btrace_frame_unwind): Add new functions.
14888 (record_btrace_tailcall_frame_unwind): New.
14889 (_initialize_record_btrace): Allocate cache.
14890 * btrace.c (btrace_clear): Call reinit_frame_cache.
14891 * NEWS: Announce it.
14893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14895 * record-btrace.c (record_btrace_set_replay)
14896 (record_btrace_goto_begin, record_btrace_goto_end)
14897 (record_btrace_goto): New.
14898 (init_record_btrace_ops): Initialize them.
14899 * NEWS: Announce it.
14901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14903 * record-btrace.c (record_btrace_find_new_threads)
14904 (record_btrace_thread_alive): New.
14905 (init_record_btrace_ops): Initialize to_find_new_threads and
14908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14910 * record-btrace.c (record_btrace_resume): New.
14911 (record_btrace_wait): New.
14912 (init_record_btrace_ops): Initialize to_wait and to_resume.
14914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14916 * record-btrace.c (record_btrace_xfer_partial)
14917 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14918 (record_btrace_allow_memory_access): New.
14919 (init_record_btrace_ops): Initialize new methods.
14920 * target.c (raw_memory_xfer_partial): Bail out if target reports
14921 that this memory is not available.
14923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14925 * target.h (target_ops) <to_insert_breakpoint>
14926 <to_remove_breakpoint>: Add target_ops parameter.
14927 (forward_target_insert_breakpoint): New.
14928 (forward_target_remove_breakpoint): New.
14929 (memory_remove_breakpoint, memory_insert_breakpoint):
14930 Add target_ops parameter.
14931 * target.c (target_insert_breakpoint): Split into this and ...
14932 (forward_target_insert_breakpoint): ... this.
14933 (target_remove_breakpoint): Split into this and ...
14934 (forward_target_remove_breakpoint): ... this.
14935 (debug_to_insert_breakpoint): Add target_ops parameter.
14936 Call forward_target_insert_breakpoint.
14937 (debug_to_remove_breakpoint): Add target_ops parameter.
14938 Call forward_target_remove_breakpoint.
14939 (update_current_target): Do not inherit or default to_insert_breakpoint
14940 and to_remove_breakpoint.
14941 * corelow.c (ignore): Add target_ops parameter.
14942 * exec.c (ignore): Add target_ops parameter.
14943 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14944 Add target_ops parameter.
14945 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14946 Add target_ops parameter.
14947 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14948 Add target_ops parameter.
14949 * record-full.c (record_full_beneath_to_insert_breakpoint)
14950 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14951 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14952 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14953 (record_full_core_remove_breakpoint): Add target_ops parameter.
14955 (record_full_beneath_to_insert_breakpoint_ops)
14956 (record_full_beneath_to_remove_breakpoint_ops)
14957 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14958 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14959 tmp_to_remove_breakpoint_ops,
14960 record_full_beneath_to_insert_breakpoint_ops, and
14961 record_full_beneath_to_remove_breakpoint_ops.
14962 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14963 (m32r_remove_breakpoint): Add target_ops parameter.
14964 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14965 Add target_ops parameter.
14966 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14967 Add target_ops parameter.
14969 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14970 Markus Metzger <markus.t.metzger@intel.com>
14972 * record-btrace.c: Include frame-unwind.h.
14973 (record_btrace_frame_unwind_stop_reason)
14974 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14975 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14977 (init_record_btrace_ops): Install it.
14979 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14981 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14984 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14986 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14989 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14991 * frame-unwind.c: Include target.h.
14992 (frame_unwind_try_unwinder): New function with code from ...
14993 (frame_unwind_find_by_frame): ... here. New variable
14994 unwinder_from_target, call also target_get_unwinder)
14995 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14996 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14997 * target.h (struct target_ops): New fields to_get_unwinder and
14998 to_get_tailcall_unwinder.
14999 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15003 * record-btrace.c (record_btrace_fetch_registers)
15004 (record_btrace_store_registers)
15005 (record_btrace_to_prepare_to_store): New.
15006 (init_record_btrace_ops): Add the above.
15008 2014-01-16 Tom Tromey <tromey@redhat.com>
15010 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15011 * target.h (struct target_ops) <to_prepare_to_store>: Add
15013 (target_prepare_to_store): Add argument.
15014 * target.c (debug_to_prepare_to_store): Add argument.
15015 (update_current_target): Update.
15016 * remote.c (remote_prepare_to_store): Add 'self' argument.
15017 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15018 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15019 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15020 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15022 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15023 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15024 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15025 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15026 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15030 * btrace.h (replay) <replay>: New.
15031 (btrace_is_replaying): New.
15032 * btrace.c (btrace_clear): Free replay iterator.
15033 (btrace_is_replaying): New.
15034 * record-btrace.c (record_btrace_is_replaying): New.
15035 (record_btrace_info): Print insn number if replaying.
15036 (record_btrace_insn_history): Start at replay position.
15037 (record_btrace_call_history): Start at replay position.
15038 (init_record_btrace_ops): Init to_record_is_replaying.
15040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15042 * record-btrace.c (record_btrace_insn_history_range): Include
15044 (record_btrace_insn_history_from): Adjust range.
15045 (record_btrace_call_history_range): Include
15047 (record_btrace_call_history_from): Adjust range.
15048 * NEWS: Announce changes.
15050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15052 * record.h (enum record_print_flag)
15053 <record_print_indent_calls>: New.
15054 * record.c (get_call_history_modifiers): Recognize /c modifier.
15055 (_initialize_record): Document /c modifier.
15056 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15057 Reorder fields. Optionally indent the function name. Update
15059 * NEWS: Announce changes.
15061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15063 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15067 * btrace.c (ftrace_new_function): Start counting at one.
15068 * record-btrace.c (record_btrace_info): Adjust number of calls
15070 * NEWS: Announce it.
15072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15074 * record-btrace.c (btrace_call_history_insn_range): Print
15075 insn range as [begin, end].
15077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15079 * btrace.h (struct btrace_func_link): New.
15080 (enum btrace_function_flag): New.
15081 (struct btrace_inst): Rename to ...
15082 (struct btrace_insn): ...this. Update all users.
15083 (struct btrace_func) <ibegin, iend>: Remove.
15084 (struct btrace_func_link): New.
15085 (struct btrace_func): Rename to ...
15086 (struct btrace_function): ...this. Update all users.
15087 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15088 (number, level, flags>: New.
15089 (struct btrace_insn_iterator): Rename to ...
15090 (struct btrace_insn_history): ...this.
15092 (struct btrace_insn_iterator, btrace_call_iterator): New.
15093 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15094 (struct btrace_target_info) <begin, end, level>
15095 <insn_history, call_history>: New.
15096 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15097 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15098 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15099 (btrace_call_number, btrace_call_begin, btrace_call_end)
15100 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15101 (btrace_find_function_by_number, btrace_set_insn_history)
15102 (btrace_set_call_history): New.
15103 * btrace.c (btrace_init_insn_iterator)
15104 (btrace_init_func_iterator, compute_itrace): Remove.
15105 (ftrace_print_function_name, ftrace_print_filename)
15106 (ftrace_skip_file): Change
15107 parameter to const.
15108 (ftrace_init_func): Remove.
15109 (ftrace_debug): Use new btrace_function fields.
15110 (ftrace_function_switched): Also consider gaining and
15111 losing symbol information).
15112 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15113 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15114 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15116 (ftrace_new_function): Move. Remove debug print.
15117 (ftrace_update_lines, ftrace_update_insns): New.
15118 (ftrace_update_function): Check for call, ret, and jump.
15119 (compute_ftrace): Renamed to ...
15120 (btrace_compute_ftrace): ...this. Rewritten to compute call
15122 (btrace_fetch, btrace_clear): Updated.
15123 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15124 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15125 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15126 (btrace_call_number, btrace_call_begin, btrace_call_end)
15127 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15128 (btrace_find_function_by_number, btrace_set_insn_history)
15129 (btrace_set_call_history): New.
15130 * record-btrace.c (require_btrace): Use new btrace thread
15132 (record_btrace_info, btrace_insn_history)
15133 (record_btrace_insn_history, record_btrace_insn_history_range):
15134 Use new btrace thread info fields and new iterator.
15135 (btrace_func_history_src_line): Rename to ...
15136 (btrace_call_history_src_line): ...this. Use new btrace
15137 thread info fields.
15138 (btrace_func_history): Rename to ...
15139 (btrace_call_history): ...this. Use new btrace thread info
15140 fields and new iterator.
15141 (record_btrace_call_history, record_btrace_call_history_range):
15142 Use new btrace thread info fields and new iterator.
15144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15146 * frame.h (frame_id_build_unavailable_stack_special): New.
15147 * frame.c (frame_id_build_unavailable_stack_special): New.
15149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15151 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15152 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15153 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15155 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15156 (i386_insn_is_jump, i386_jmp_p): New.
15157 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15158 insn_is_jump to gdbarch.
15159 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15160 * gdbarch.h: Regenerated.
15161 * gdbarch.c: Regenerated.
15162 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15163 (default_insn_is_jump): New.
15164 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15165 (default_insn_is_jump): New.
15167 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15169 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15171 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15172 (btrace_read_type) <btrace_read_new>: Change to ...
15173 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15175 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15177 * common/linux-btrace.c (linux_read_btrace): Free trace from
15178 previous iteration.
15180 2014-01-15 Doug Evans <dje@google.com>
15182 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15185 2014-01-15 Tom Tromey <tromey@redhat.com>
15187 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15188 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15189 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15190 (set_objfile_main_name): New function.
15191 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15192 language_of_main>: New fields.
15193 (set_objfile_main_name): Declare.
15194 * symtab.c (find_main_name): Loop over objfiles to find the main
15196 (set_main_name): Now static.
15197 (get_main_info): Add comment.
15198 * symtab.h (set_main_name): Don't declare.
15200 2014-01-15 Tom Tromey <tromey@redhat.com>
15202 * symtab.c (main_progspace_key): New global.
15203 (struct main_info): New.
15204 (name_of_main, language_of_main): Remove.
15205 (get_main_info, main_info_cleanup): New function.
15206 (set_main_name, main_name, main_language): Use get_main_info.
15207 (_initialize_symtab): Initialize main_progspace_key.
15209 2014-01-15 Tom Tromey <tromey@redhat.com>
15211 * dbxread.c (process_one_symbol): Update.
15212 * dwarf2read.c (read_partial_die): Update.
15213 * symfile.c (set_initial_language): Call main_language.
15214 * symtab.c (language_of_main): Now static.
15215 (set_main_name): Add 'lang' parameter.
15216 (find_main_name): Update.
15217 (main_language): New function.
15218 (symtab_observer_executable_changed): Update.
15219 * symtab.h (set_main_name): Update.
15220 (language_of_main): Remove.
15221 (main_language): Declare.
15223 2014-01-15 Tom Tromey <tromey@redhat.com>
15225 * symfile.c (init_entry_point_info): Use new "initialized" field.
15227 * objfiles.h (struct entry_point) <initialized>: New field.
15228 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15229 (struct objfile) <ei>: ...here. Remove.
15230 * objfiles.c (entry_point_address_query): Update.
15232 2014-01-15 Tom Tromey <tromey@redhat.com>
15234 * objfiles.c (entry_point_address_query): Relocate entry point
15236 (objfile_relocate1): Do not relocate entry point address.
15237 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15238 <the_bfd_section_index>: New field.
15239 * symfile.c (init_entry_point_info): Find the entry point's
15242 2014-01-15 Tom Tromey <tromey@redhat.com>
15244 * solib-frv.c (enable_break): Use entry_point_address_query.
15246 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15248 * NEWS: Add note on improved process record-replay on
15249 arm*-linux* targets.
15251 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15253 * arm-tdep.c (enum arm_record_result): New enum.
15254 (arm_record_unsupported_insn): New function.
15255 (arm_record_coproc_data_proc): Removed.
15256 (thumb2_record_ld_st_multiple): New function.
15257 (thumb2_record_ld_st_dual_ex_tbb): New function.
15258 (thumb2_record_data_proc_sreg_mimm): New function.
15259 (thumb2_record_ps_dest_generic): New function.
15260 (thumb2_record_branch_misc_cntrl): New function.
15261 (thumb2_record_str_single_data): New function.
15262 (thumb2_record_ld_mem_hints): New function.
15263 (thumb2_record_ld_word): New function.
15264 (thumb2_record_lmul_lmla_div): New function.
15265 (thumb2_record_decode_insn_handler): New function.
15266 (decode_insn): Add thumb32 instruction handlers.
15268 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15270 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15271 (struct arm_linux_record_tdep): Declare.
15272 (arm_canonicalize_syscall): New function.
15273 (arm_all_but_pc_registers_record): New function.
15274 (arm_linux_syscall_record): New function.
15275 (arm_linux_init_abi): Add syscall recording constructs.
15276 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15277 decoding. (arm_record_coproc_data_proc): Update arm syscall
15279 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15280 <arm_syscall_record>: New field.
15281 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15284 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15286 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15287 register for push instruction recording.
15289 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15291 * arm-tdep.c (thumb_record_misc): Update to correct logical
15292 error while recording ldm, ldmia and pop instructions.
15294 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15296 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15298 2014-01-15 Pedro Alves <palves@redhat.com>
15300 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15301 (go32_resume, go32_fetch_registers, store_register)
15302 (go32_store_registers, go32_prepare_to_store)
15303 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15304 (go32_create_inferior, go32_can_run, go32_terminal_init)
15305 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15308 2014-01-15 Tom Tromey <tromey@redhat.com>
15310 * target.h (async_callback_ftype): New typedef.
15311 (struct target_ops) <to_async>: Use it.
15313 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15315 * python/py-value.c (get_field_type): Remove unnecessary curly
15316 braces for single-statement if block.
15318 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15320 * python/py-type.c (convert_field): Add missing empty line
15321 after declarations.
15323 2014-01-14 Doug Evans <dje@google.com>
15325 * symfile.h (expand_symtabs_matching): Renamed from
15326 expand_partial_symbol_names. Update prototype.
15327 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15328 * symfile.c (expand_symtabs_matching): Renamed from
15329 expand_partial_symbol_names. New args file_matcher, kind.
15330 Rename arg fun to symbol_matcher.
15331 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15332 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15333 ada_expand_partial_symbol_name.
15334 (ada_make_symbol_completion_list): Update to call
15335 expand_symtabs_matching.
15336 (ada_add_global_exceptions): Call expand_symtabs_matching.
15337 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15338 call map_symbol_filenames.
15339 * symtab.c (sources_info): Update to call map_symbol_filenames.
15340 (search_symbols): Call expand_symtabs_matching.
15341 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15342 (default_make_symbol_completion_list_break_on): Update to call
15343 expand_symtabs_matching.
15344 (make_source_files_completion_list): Update to call
15345 map_symbol_filenames.
15347 2014-01-14 Doug Evans <dje@google.com>
15349 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15350 (expand_symtabs_symbol_matcher_ftype): New typedef.
15351 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15352 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15353 * symfile.c (expand_partial_symbol_names): Update to use
15354 expand_symtabs_symbol_matcher_ftype.
15355 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15356 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15357 Arg name_matcher renamed to symbol_matcher.
15358 * psymtab.c (recursively_search_psymtabs): Update to use
15359 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15361 (expand_symtabs_matching_via_partial): Update to use
15362 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15363 Arg name_matcher renamed to symbol_matcher.
15365 2014-01-14 Doug Evans <dje@google.com>
15367 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15368 (map_partial_symbol_filenames): Ditto.
15369 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15370 (map_partial_symbol_filenames): Ditto.
15371 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15372 (map_partial_symbol_filenames): Ditto.
15373 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15374 (map_partial_symbol_filenames): Ditto.
15375 * symtab.c: Delete #include "psymtab.h".
15377 2014-01-14 Pedro Alves <palves@redhat.com>
15378 Tom Tromey <tromey@redhat.com>
15380 * infrun.c (use_displaced_stepping): Use find_record_target
15381 instead of RECORD_IS_USED.
15382 (adjust_pc_after_break): Use record_full_is_used instead of
15384 * record-btrace.c (record_btrace_open): Call record_preopen
15385 instead of checking RECORD_IS_USED.
15386 * record-full.c (record_full_shortname)
15387 (record_full_core_shortname): New globals.
15388 (record_full_is_used): New function.
15389 (find_full_open): Call record_preopen instead of checking
15391 (init_record_full_ops): Set the target's shortname to
15392 record_full_shortname.
15393 (init_record_full_core_ops): Set the target's shortname to
15394 record_full_core_shortname.
15395 * record-full.h (record_full_is_used): Declare.
15396 * record.c (find_record_target): Make extern.
15397 (record_preopen): New function.
15398 * record.h (RECORD_IS_USED): Delete macro.
15399 (find_record_target, record_preopen): Declare functions.
15401 2014-01-14 Yao Qi <yao@codesourcery.com>
15403 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15404 'len''s type to ULONGEST.
15405 (core_xfer_shared_libraries_aix): Likewise.
15406 * gdbarch.c, gdbarch.h: Regenerated.
15407 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15408 Change type of 'len' to ULONGEST.
15409 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15410 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15412 2014-01-14 Yao Qi <yao@codesourcery.com>
15414 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15415 type of 'len' to ULONGEST.
15416 (linux_xfer_osdata_processgroups): Likewise.
15417 (linux_xfer_osdata_threads): Likewise.
15418 (linux_xfer_osdata_fds): Likewise.
15419 (linux_xfer_osdata_isockets): Likewise.
15420 (linux_xfer_osdata_shm): Likewise.
15421 (linux_xfer_osdata_sem): Likewise.
15422 (linux_xfer_osdata_msg): Likewise.
15423 (linux_common_xfer_osdata): Likewise.
15424 (struct osdata_type) <getter>: Likewise.
15425 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15428 2014-01-14 Yao Qi <yao@codesourcery.com>
15430 * target.h (target_xfer_partial_ftype): Update.
15431 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15433 * aix-thread.c (aix_thread_xfer_partial): Change type of
15434 argument 'len' to ULONGEST.
15435 * auxv.c (procfs_xfer_auxv): Likewise.
15436 (ld_so_xfer_auxv): Likewise.
15437 (memory_xfer_auxv): Likewise.
15438 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15439 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15440 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15441 * corelow.c (core_xfer_partial): Likewise.
15442 * ctf.c (ctf_xfer_partial): Likewise.
15443 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15445 (darwin_read_dyld_info): Likewise.
15446 (darwin_xfer_partial): Likewise.
15447 * exec.c (section_table_xfer_memory_partial): Likewise.
15448 (exec_xfer_partial): Likewise.
15449 * exec.h (section_table_xfer_memory_partial): Update
15451 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15452 instead of plongest.
15453 (gnu_xfer_partial): Likewise.
15454 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15455 (ia64_hpux_xfer_solib_got): Likewise.
15456 (ia64_hpux_xfer_partial): Likewise.
15457 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15458 * inf-ptrace.c (inf_ptrace_xfer_partial):
15459 * inf-ttrace.c (inf_ttrace_xfer_partial):
15460 * linux-nat.c (linux_xfer_siginfo): Likewise.
15461 (linux_nat_xfer_partial): Likewise.
15462 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15463 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15464 * monitor.c (monitor_xfer_memory): Likewise.
15465 (monitor_xfer_partial): Likewise.
15466 * procfs.c (procfs_xfer_partial): Likewise.
15467 * record-full.c (record_full_xfer_partial): Likewise.
15468 (record_full_core_xfer_partial): Likewise.
15469 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15470 instead of plongest.
15471 (gdbsim_xfer_partial): Likewise.
15472 * remote.c (remote_xfer_partial): Likewise.
15473 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15474 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15477 (rs6000_xfer_shared_libraries): Likewise.
15478 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15479 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15480 (sparc_xfer_partial): Likewise.
15481 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15482 (spu_xfer_partial): Likewise.
15483 * spu-multiarch.c (spu_xfer_partial): Likewise.
15484 * target.c (target_read_live_memory): Likewise.
15485 (memory_xfer_live_readonly_partial): Likewise.
15486 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15487 (target_xfer_partial, default_xfer_partial): Likewise.
15488 (current_xfer_partial): Likewise.
15489 * tracepoint.c (tfile_xfer_partial): Likewise.
15490 * windows-nat.c (windows_xfer_memory): Likewise. Call
15491 pulongest instead of plongest.
15492 (windows_xfer_partial): Likewise.
15493 (windows_xfer_shared_libraries): Likewise.
15495 2014-01-14 Yao Qi <yao@codesourcery.com>
15497 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15498 target_xfer_partial_ftype.
15500 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15504 * valops.c (value_struct_elt_bitpos): New function
15505 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15506 object to 'None' if the field name is an empty string ("").
15507 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15508 attribute to look for a field when 'name' is 'None'.
15509 (get_field_type): New function
15511 2014-01-13 Doug Evans <dje@google.com>
15514 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15515 (try_open_dwop_file): Ditto.
15516 * gdb_bfd.c: #include "vec.h".
15517 (bfdp): New typedef.
15518 (struct gdb_bfd_data): New member included_bfds.
15519 (gdb_bfd_unref): Unref all included bfds.
15520 (gdb_bfd_record_inclusion): New function.
15521 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15523 2014-01-13 Tom Tromey <tromey@redhat.com>
15525 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15527 2014-01-13 Tom Tromey <tromey@redhat.com>
15529 * defs.h (use_windows): Remove.
15530 * gdb.c (main): Update.
15531 * main.c (captured_main, gdb_main): Update.
15532 * main.h (struct captured_main_args) <use_windows>: Remove.
15533 * top.c (use_windows): Remove.
15535 2014-01-13 Tom Tromey <tromey@redhat.com>
15537 * defs.h (deprecated_flush_hook): Remove.
15539 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15542 * linux-thread-db.c (try_thread_db_load): Add parameter
15543 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15544 (try_thread_db_load_from_pdir_1): Move it there from here.
15545 (try_thread_db_load_from_sdir): Update caller.
15546 (try_thread_db_load_from_dir): Move it there from here.
15548 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15550 * regformats/regdat.sh: Always rewrite the register file.
15552 2014-01-13 Pedro Alves <palves@redhat.com>
15554 * Makefile.in (CHECK_HEADERS): New variable.
15555 (check-headers:): New rule.
15557 2014-01-13 Tom Tromey <tromey@redhat.com>
15559 * cli/cli-setshow.c (do_set_command): Update.
15560 * defs.h (deprecated_set_hook): Remove.
15561 * top.c (deprecated_set_hook): Remove.
15563 2014-01-13 Pedro Alves <palves@redhat.com>
15565 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15566 the tracepoint if the PC is a pseudo-register.
15568 2014-01-13 Tom Tromey <tromey@redhat.com>
15570 * defs.h (XCALLOC): Remove.
15571 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15572 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15573 * dwarf2loc.c (allocate_piece_closure): Likewise.
15574 * elfread.c (elf_symfile_segments): Likewise.
15575 (elf_symfile_segments): Likewise.
15576 * gdbtypes.c (copy_type_recursive): Likewise.
15577 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15578 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15579 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15581 * mt-tdep.c (mt_gdbarch_init): Likewise.
15582 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15584 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15585 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15586 * registry.c (registry_alloc_data): Likewise.
15587 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15588 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15589 * serial.c (serial_fdopen_ops): Likewise.
15590 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15592 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15593 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15596 2014-01-13 Tom Tromey <tromey@redhat.com>
15598 * defs.h (XMALLOC): Remove.
15599 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15600 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15601 * cli-out.c (struct ui_out *): Likewise.
15602 * cli/cli-dump.c (add_dump_command): Likewise.
15603 (add_dump_command): Likewise.
15604 * complaints.c (get_complaints): Likewise.
15605 (find_complaint): Likewise.
15606 * dwarf2-frame.c (execute_cfa_program): Likewise.
15607 * dwarf2read.c (abbrev_table_read_table): Likewise.
15608 * gdbarch.sh: Likewise.
15609 * gdbarch.c: Rebuild.
15610 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15611 * interps.c (interp_new): Likewise.
15612 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15613 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15614 * mi/mi-console.c (mi_console_file_new): Likewise.
15615 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15616 * mi/mi-out.c (mi_out_new): Likewise.
15617 * mi/mi-parse.c (mi_parse): Likewise.
15618 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15619 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15620 * observer.c (xalloc_observer_list_node): Likewise.
15621 * regcache.c (regcache_xmalloc_1): Likewise.
15622 * reggroups.c (reggroup_new): Likewise.
15623 (_initialize_reggroup): Likewise.
15624 * registry.c (register_data_with_cleanup): Likewise.
15625 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15626 * ser-base.c (serial_ttystate): Likewise.
15627 * ser-mingw.c (make_pipe_state): Likewise.
15628 * ser-pipe.c (pipe_open): Likewise.
15629 * serial.c (serial_open): Likewise.
15630 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15631 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15632 (tui_alloc_win_info): Likewise.
15633 (tui_add_content_elements): Likewise.
15634 * tui/tui-file.c (tui_file_new): Likewise.
15635 * tui/tui-out.c (tui_out_new): Likewise.
15636 * ui-file.c (mem_file_new): Likewise.
15637 * ui-out.c (push_level): Likewise.
15638 (make_cleanup_ui_out_end): Likewise.
15639 (append_header_to_list): Likewise.
15640 (ui_out_new): Likewise.
15641 * user-regs.c (user_reg_add_builtin): Likewise.
15643 2014-01-13 Tom Tromey <tromey@redhat.com>
15645 * defs.h (XZALLOC): Remove.
15646 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15647 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15648 (get_ada_tasks_inferior_data): Likewise.
15649 * auto-load.c (get_auto_load_pspace_data): Likewise.
15650 * auxv.c (get_auxv_inferior_data): Likewise.
15651 * bfd-target.c (target_bfd_reopen): Likewise.
15652 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15653 (deprecated_insert_raw_breakpoint): Likewise.
15654 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15655 * corelow.c (core_open): Likewise.
15656 * darwin-nat.c (darwin_check_new_threads): Likewise.
15657 (darwin_attach_pid): Likewise.
15658 * dummy-frame.c (dummy_frame_push): Likewise.
15659 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15660 * dwarf2loc.c (allocate_piece_closure): Likewise.
15661 * elfread.c (elf_symfile_segments): Likewise.
15662 * eval.c (ptrmath_type_p): Likewise.
15663 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15664 * gdbtypes.c (alloc_type_arch): Likewise.
15665 (alloc_type_instance): Likewise.
15666 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15667 * inf-child.c (inf_child_can_use_agent): Likewise.
15668 * inflow.c (get_inflow_inferior_data): Likewise.
15669 * infrun.c (save_infcall_suspend_state): Likewise.
15670 * jit.c (jit_reader_load): Likewise.
15671 (get_jit_objfile_data): Likewise.
15672 (get_jit_program_space_data): Likewise.
15673 (jit_object_open_impl): Likewise.
15674 (jit_symtab_open_impl): Likewise.
15675 (jit_block_open_impl): Likewise.
15676 (jit_frame_sniffer): Likewise.
15677 * linux-fork.c (add_fork): Likewise.
15678 * maint.c (make_command_stats_cleanup): Likewise.
15679 * objfiles.c (get_objfile_pspace_data): Likewise.
15680 * opencl-lang.c (struct lval_closure): Likewise.
15681 * osdata.c (osdata_start_osdata): Likewise.
15682 * progspace.c (new_address_space): Likewise.
15683 (add_program_space): Likewise.
15684 * remote-sim.c (get_sim_inferior_data): Likewise.
15685 * sh-tdep.c (sh_gdbarch_init): Likewise.
15686 * skip.c (Ignore): Likewise.
15687 (skip_delete_command): Likewise.
15688 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15689 (library_list_start_library): Likewise.
15690 (solib_aix_current_sos): Likewise.
15691 * solib-darwin.c (get_darwin_info): Likewise.
15692 (darwin_current_sos): Likewise.
15693 * solib-dsbt.c (get_dsbt_info): Likewise.
15694 * solib-ia64-hpux.c (new_so_list): Likewise.
15695 (ia64_hpux_get_solib_linkage_addr): Likewise.
15696 * solib-spu.c (append_ocl_sos): Likewise.
15697 (spu_current_sos): Likewise.
15698 * solib-svr4.c (get_svr4_info): Likewise.
15699 (svr4_keep_data_in_core): Likewise.
15700 (library_list_start_library): Likewise.
15701 (svr4_default_sos): Likewise.
15702 (svr4_read_so_list): Likewise.
15703 * solib-target.c (library_list_start_library): Likewise.
15704 (solib_target_current_sos): Likewise.
15705 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15706 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15707 * symfile.c (default_symfile_segments): Likewise.
15708 * target-descriptions.c (tdesc_data_init): Likewise.
15709 (tdesc_create_reg): Likewise.
15710 (struct tdesc_type *): Likewise.
15711 (tdesc_create_vector): Likewise.
15712 (tdesc_set_struct_size): Likewise.
15713 (struct tdesc_type *): Likewise.
15714 (tdesc_free_feature): Likewise.
15715 (tdesc_create_feature): Likewise.
15716 * windows-nat.c (windows_add_thread): Likewise.
15717 (windows_make_so): Likewise.
15718 * xml-support.c (gdb_xml_body_text): Likewise.
15719 (gdb_xml_create_parser_and_cleanup): Likewise.
15720 (xml_process_xincludes): Likewise.
15721 * xml-syscall.c (allocate_syscalls_info): Likewise.
15722 (syscall_create_syscall_desc): Likewise.
15724 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15726 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15727 function, with code from i386_stap_parse_special_token.
15728 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15729 (i386_stap_parse_special_token): Move code to the two functions
15730 above; simplify it.
15732 2014-01-09 Pedro Alves <palves@redhat.com>
15733 Hui Zhu <hui@codesourcery.com>
15736 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15737 bp_err_string. Don't mark the location shlib_disabled if the
15738 error thrown wasn't a generic or memory error. Catch errors
15739 thrown while inserting breakpoints in overlayed code. Output
15740 error message of software breakpoints.
15741 * remote.c (remote_insert_breakpoint): If this breakpoint has
15742 target-side commands but this stub doesn't support Z0 packets,
15743 throw NOT_SUPPORTED_ERROR error.
15744 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15745 * target.h (target_insert_breakpoint): Extend comment.
15746 (target_insert_hw_breakpoint): Add comment.
15748 2014-01-08 Pedro Alves <palves@redhat.com>
15750 * remote.c (remote_add_thread): Add threads silently if starting
15752 (remote_notice_new_inferior): If in all-stop, and starting up,
15753 don't call notice_new_inferior.
15754 (get_current_thread): New function, factored out from ...
15755 (add_current_inferior_and_thread): ... this. Adjust.
15756 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15757 found any thread, then select the remote's current thread as GDB's
15758 current thread too.
15760 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15762 * NEWS: Create a new section for the next release branch.
15763 Rename the section of the current branch, now that it has
15766 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15768 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15769 * version.in: Bump version to 7.7.50.DATE-cvs.
15771 2014-01-08 Yao Qi <yao@codesourcery.com>
15773 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15774 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15775 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15777 2014-01-08 Yao Qi <yao@codesourcery.com>
15779 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15780 return value of bfd_get_filename to symbol_file_add_from_bfd.
15782 2014-01-08 Pierre Muller <muller@sourceware.org>
15785 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15786 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15787 to prim_record_mininal_symbol_and_info.
15788 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15789 in call to prim_record_minimal_symbol_and_info.
15790 (read_pe_exported_syms): Set index field of section_data.
15792 2014-01-07 Andrew Pinski <apinski@cavium.com>
15794 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15795 * features/aarch64.c: Regenerate.
15797 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15799 * target.c (return_null): Define.
15800 (update_current_target): Use it instead of return_zero for
15801 functions that return a pointer.
15803 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15805 * source.c (add_path): Fix check for duplicated paths in the previously
15808 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15810 * ada-lang.c: Remove duplicated include statements.
15811 * alphabsd-nat.c: Ditto.
15812 * amd64-darwin-tdep.c: Ditto.
15813 * amd64fbsd-nat.c: Ditto.
15814 * auto-load.c: Ditto.
15816 * breakpoint.c: Ditto.
15817 * dbxread.c: Ditto.
15818 * fork-child.c: Ditto.
15819 * gdb_usleep.c: Ditto.
15820 * i386-darwin-tdep.c: Ditto.
15821 * i386fbsd-nat.c: Ditto.
15823 * inferior.c: Ditto.
15824 * jv-lang.c: Ditto.
15825 * linux-nat.c: Ditto.
15826 * linux-tdep.c: Ditto.
15827 * m68kbsd-nat.c: Ditto.
15828 * m68klinux-nat.c: Ditto.
15829 * microblaze-tdep.c: Ditto.
15830 * mips-linux-tdep.c: Ditto.
15831 * mn10300-tdep.c: Ditto.
15832 * nto-tdep.c: Ditto.
15833 * opencl-lang.c: Ditto.
15835 * printcmd.c: Ditto.
15836 * regcache.c: Ditto.
15837 * remote-m32r-sdi.c: Ditto.
15839 * symfile.c: Ditto.
15841 * tilegx-linux-nat.c: Ditto.
15842 * tilegx-tdep.c: Ditto.
15843 * tracepoint.c: Ditto.
15845 * vaxbsd-nat.c: Ditto.
15846 * windows-nat.c: Ditto.
15847 * xtensa-tdep.c: Ditto.
15849 2014-01-07 Yao Qi <yao@codesourcery.com>
15851 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15853 2014-01-07 Yao Qi <yao@codesourcery.com>
15854 Joel Brobecker <brobecker@adacore.com>
15856 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15857 (pdc_write_regs): Likewise.
15858 (fetch_regs_kernel_thread): Likewise.
15859 (store_regs_kernel_thread): Likewise.
15861 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15863 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15864 tagged type objects to their actual type.
15866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15868 * ada-valprint.c (print_field_values): Add "language" parameter.
15869 Update calls to print_field_values and print_variant_part.
15870 Pass new parameter "language" in call to val_print instead
15871 of "current_language". Replace call to ada_val_print by call
15873 (print_variant_part): Add "language" parameter.
15874 (ada_val_print_struct_union): Update call to print_field_values.
15876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15878 * ada-valprint.c (ui_memcpy): Delete.
15879 (ada_print_floating): Update documentation. Add empty line
15880 between between function documentation and implementation.
15881 Delete variable "buffer". Use ui_file_xstrdup in place of
15882 ui_file_put. Minor adjustments following this change.
15884 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15886 * ada-valprint.c (ada_val_print_string): New function,
15887 extracted from ada_val_print_array.
15888 (ada_val_print_array): Replace extracted code by call
15889 to ada_val_print_string followed by a return. Move
15890 "else" branch to the function's top block.
15892 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15894 * ada-valprint.c (ada_val_print_array): Move implementation
15895 down. Rename parameter "offset" and "val" into "offset_aligned"
15896 and "original_value" respectively. Add parameter "offset".
15898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15900 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15901 re-organizing the code. Change the "???" message printed
15902 when target type is a TYPE_CODE_UNDEF into
15903 "<ref to undefined type>".
15905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15907 * ada-valprint.c (print_record): Delete, implementation inlined...
15908 (ada_val_print_struct_union): ... here. Remove call to
15909 ada_check_typedef in inlined implementation.
15911 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15913 * ada-valprint.c (ada_val_print_gnat_array): New function,
15914 extracted from ada_val_print_1;
15915 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15916 (ada_val_print_flt, ada_val_print_struct_union)
15917 (ada_val_print_ref): Likewise.
15918 (ada_val_print_1): Delete variables i and elttype.
15919 Replace extracted-out code by call to corresponding
15922 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15924 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15926 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15928 * ada-valprint.c (ada_val_print_1): Replace calls to
15929 ada_val_print_1 by calls to val_print.
15931 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15933 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15934 Update calls to self accordingly. Replace calls to c_val_print
15935 by calls to val_print.
15937 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15939 * ada-valprint.c (print_record): Delete declaration.
15940 (adjust_type_signedness, ada_val_print_1): Likewise.
15941 (ada_val_print): Move function implementation down.
15942 (print_variant_part, print_field_values, print_record):
15943 Move function implementation up.
15945 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15947 * python/py-type.c (typy_get_name): New function.
15948 (type_object_getset): Add entry for attribute "name".
15949 * NEWS: Add entry mentioning this new attribute.
15951 2014-01-07 Yao Qi <yao@codesourcery.com>
15953 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15956 2014-01-07 Yao Qi <yao@codesourcery.com>
15958 * gnu-nat.c (info_port_rights): Add qualifier const to
15961 2014-01-07 Yao Qi <yao@codesourcery.com>
15963 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15965 2014-01-07 Yao Qi <yao@codesourcery.com>
15967 * gnu-nat.c (make_inf) Update declaration.
15968 (make_inf): Make it static.
15969 (inf_set_traced): Likewise.
15970 (inf_port_to_thread, inf_task_died_status): Likewise.
15972 2014-01-07 Yao Qi <yao@codesourcery.com>
15974 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15976 2014-01-07 Yao Qi <yao@codesourcery.com>
15978 * gnu-nat.c (_initialize_gnu_nat): Declare.
15980 2014-01-07 Yao Qi <yao@codesourcery.com>
15982 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15984 (struct gdbarch_info) <byte_order>: Change type to
15986 <byte_order_for_code>: Likewise.
15987 * gdbarch.c, gdbarch.h: Regenerated.
15989 2014-01-06 Sasha Smundak <asmundak@google.com>
15991 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15993 2014-01-06 Tom Tromey <tromey@redhat.com>
15995 * doublest.c (convert_doublest_to_floatformat): Use const, not
15997 * somread.c (som_symtab_read): Likewise.
15999 2014-01-07 Hui Zhu <hui@codesourcery.com>
16001 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16002 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16003 (gdb_bfd_fopen): Ditto.
16004 (gdb_bfd_openr): Ditto.
16005 (gdb_bfd_openw): Ditto.
16006 (gdb_bfd_openr_iovec): Ditto.
16007 (gdb_bfd_fdopenr): Ditto.
16008 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16009 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16011 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16013 * symfile-mem.c (symbol_file_add_from_memory): Removed
16014 gdb_bfd_stash_filename.
16016 2014-01-03 Doug Evans <dje@google.com>
16018 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16021 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16023 Update year range in copyright notice of all files.
16025 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16027 * top.c (print_gdb_version): Set copyright year to 2014.
16029 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16031 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16033 For older changes see ChangeLog-2013.
16039 version-control: never