1 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * arch-utils.c (default_infcall_mmap)
4 (default_gcc_target_options): New functions.
5 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
6 (GDB_MMAP_PROT_EXEC): Define.
7 (default_infcall_mmap, default_gcc_target_options): Declare.
10 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
12 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
16 (pop_dummy_frame): Call the destructor if it exists.
17 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
19 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
20 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
22 2014-12-12 Tom Tromey <tromey@redhat.com>
24 * gdbtypes.h (make_unqualified_type): Declare.
25 * gdbtypes.c (make_unqualified_type): New function.
27 2014-12-12 Tom Tromey <tromey@redhat.com>
29 * ui-file.h (ui_file_write_for_put): Declare.
30 * ui-file.c (ui_file_write_for_put): New function.
31 * mi/mi-out.c (do_write): Remove.
32 (mi_out_put): Use ui_file_write_for_put.
34 2014-12-12 Doug Evans <dje@google.com>
36 * NEWS: Mention gdb.lookup_objfile.
37 * python/python.c (GdbMethods): Add lookup_objfile.
38 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
39 * python/py-objfile.c: #include "symtab.h".
40 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
41 (objfpy_lookup_objfile_by_name): New function.
42 (objfpy_lookup_objfile_by_build_id): New function.
43 (gdbpy_lookup_objfile): New function.
45 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
47 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
48 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
49 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
51 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
54 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
56 * completer.c: Include "target.h", "reggroups.h", and
58 (reg_or_group_completer): New.
59 * completer.h (reg_or_group_completer): Declare.
60 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
61 the "info registers" and "info all-registers" commands and the
62 dbx-mode "lr" command.
64 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
66 * user-regs.c: Include "arch-utils.h", "command.h", and
68 (maintenance_print_user_registers): New.
69 (_initialize_user_regs): Register new "maint print user-registers"
71 * NEWS: Mention new GDB command "maint print user-registers".
73 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
74 Maciej W. Rozycki <macro@mips.com>
75 Pedro Alves <pedro@codesourcery.com>
77 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
78 remove `predefault' and `invalid_p' initializers.
79 (make_symbol_special): New architecture method.
80 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
81 (objfile, symbol): New declarations.
82 * arch-utils.h (default_elf_make_msymbol_special): Remove
84 (default_make_symbol_special): New prototype.
85 (default_adjust_dwarf2_addr): Likewise.
86 (default_adjust_dwarf2_line): Likewise.
87 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
88 * arch-utils.c (default_elf_make_msymbol_special): Remove
90 (default_make_symbol_special): New function.
91 (default_adjust_dwarf2_addr): Likewise.
92 (default_adjust_dwarf2_line): Likewise.
93 * dwarf2-frame.c (decode_frame_entry_1): Call
94 `gdbarch_adjust_dwarf2_addr'.
95 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
96 * dwarf2read.c (create_addrmap_from_index): Likewise.
97 (process_psymtab_comp_unit_reader): Likewise.
98 (add_partial_symbol): Likewise.
99 (add_partial_subprogram): Likewise.
100 (process_full_comp_unit): Likewise.
101 (read_file_scope): Likewise.
102 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
103 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
104 (read_call_site_scope): Likewise.
105 (dwarf2_ranges_read): Likewise.
106 (dwarf2_record_block_ranges): Likewise.
107 (read_attribute_value): Likewise.
108 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
109 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
110 * elfread.c (elf_symtab_read): Don't call
111 `gdbarch_elf_make_msymbol_special' if unset.
112 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
113 the ISA bit from the PC.
114 * mips-tdep.c (mips_unmake_compact_addr): New function.
115 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
116 address appropriately.
117 (mips_make_symbol_special): New function.
118 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
119 (mips_pc_is_mips16): Likewise.
120 (mips_pc_is_micromips): Likewise.
121 (mips_pc_isa): Likewise.
122 (mips_adjust_dwarf2_addr): New function.
123 (mips_adjust_dwarf2_line): Likewise.
124 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
125 (mips_addr_bits_remove): Likewise.
126 (mips_skip_trampoline_code): Likewise.
127 (mips_write_pc): Don't set the ISA bit.
128 (mips_eabi_push_dummy_call): Likewise.
129 (mips_o64_push_dummy_call): Likewise.
130 (mips_gdbarch_init): Install `mips_make_symbol_special',
131 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
133 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
134 target-specific symbol address adjustments.
135 * gdbarch.h: Regenerate.
136 * gdbarch.c: Regenerate.
138 2014-12-12 Yao Qi <yao@codesourcery.com>
141 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
142 'skip_pc'. Remove code skipping prologue instructions, use
143 arm_analyze_prologue instead.
144 (arm_analyze_prologue): Stop the scanning for unrecognized
145 instruction when skipping prologue.
147 2014-12-12 Yao Qi <yao@codesourcery.com>
149 * arm-tdep.c (arm_instruction_restores_sp): New function.
150 (arm_analyze_prologue): Call arm_instruction_restores_sp.
151 (arm_in_function_epilogue_p): Move code to
152 arm_instruction_restores_sp.
154 2014-12-11 Doug Evans <xdje42@gmail.com>
156 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
158 2014-12-11 Doug Evans <xdje42@gmail.com>
160 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
161 (symbol *lookup_symbol_via_quick_fns): Ditto.
162 (lookup_symbol_in_objfile): Add forward decl.
163 (lookup_global_symbol_from_objfile): Simplify, call
164 lookup_symbol_in_objfile.
166 2014-12-11 Doug Evans <xdje42@gmail.com>
168 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
170 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
173 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
174 it is marked as persistent.
176 2014-12-10 Doug Evans <xdje42@gmail.com>
178 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
179 closer to its subroutines.
181 2014-12-10 Doug Evans <xdje42@gmail.com>
183 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
185 2014-12-10 Doug Evans <xdje42@gmail.com>
187 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
188 * cp-support.c (cp_lookup_symbol_imports): Delete.
190 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
193 * target.c (cleanup_restore_target_terminal): New function.
194 (make_cleanup_restore_target_terminal): New function.
195 * target.h (make_cleanup_restore_target_terminal): New declaration.
196 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
198 2014-12-08 Doug Evans <dje@google.com>
200 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
202 2014-12-08 Doug Evans <dje@google.com>
204 * NEWS: Mention gdb.Objfile.owner.
205 * python/py-objfile.c (objfpy_get_owner): New function.
206 (objfile_getset): Add "owner".
208 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
210 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
211 (lookup_global_symbol_from_objfile): Call it.
213 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
215 Remove const from struct objfile *.
216 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
217 symtab.c, symtab.h: In these files.
219 2014-12-05 Andreas From <andreas.from@ericsson.com>
221 * MAINTAINERS (Write After Approval): Add "Andreas From"
223 2014-12-05 Doug Evans <xdje42@gmail.com>
227 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
229 2014-12-04 Doug Evans <dje@google.com>
231 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
232 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
233 (objfile_getset): Add "add_separate_debug_file".
235 2014-12-04 Doug Evans <dje@google.com>
237 * NEWS: Mention gdb.Objfile.build_id.
238 * build-id.c (build_id_bfd_get): Make non-static.
239 * build-id.h (build_id_bfd_get): Add declaration.
240 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
241 (OBJFPY_REQUIRE_VALID): New macro.
242 (objfpy_get_build_id): New function.
243 (objfile_getset): Add "build_id".
244 * utils.c (make_hex_string): New function.
245 * utils.h (make_hex_string): Add declaration.
247 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
249 * block.c (block_lookup_symbol_primary): New function.
250 * block.h (block_lookup_symbol_primary): New declaration.
251 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
252 Call block_lookup_symbol_primary.
254 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
256 * tramp-frame.h (tramp_frame): Add `validate' member.
257 * tramp-frame.c (tramp_frame_start): Validate trampoline before
259 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
260 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
261 (mips_linux_o32_sigframe): Initialize `validate' member.
262 (mips_linux_o32_rt_sigframe): Likewise.
263 (mips_linux_n32_rt_sigframe): Likewise.
264 (mips_linux_n64_rt_sigframe): Likewise.
265 (micromips_linux_o32_sigframe): New variable.
266 (micromips_linux_o32_rt_sigframe): Likewise.
267 (micromips_linux_n32_rt_sigframe): Likewise.
268 (micromips_linux_n64_rt_sigframe): Likewise.
269 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
270 (mips_linux_n32n64_sigframe_init): Likewise.
271 (mips_linux_sigframe_validate): New function.
272 (micromips_linux_sigframe_validate): Likewise.
273 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
275 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
277 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
278 * sparc-sol2-tdep.c: Include "regset.h".
279 (sparc32_sol2_supply_core_gregset): New function.
280 (sparc32_sol2_collect_core_gregset): Likewise.
281 (sparc32_sol2_supply_core_fpregset): Likewise.
282 (sparc32_sol2_collect_core_fpregset): Likewise.
283 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
284 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
285 tdep->fpregset/sizeof_fpregset.
286 * sparc64-sol2-tdep.c: Include "regset.h".
287 (sparc64_sol2_supply_core_gregset): New function.
288 (sparc64_sol2_collect_core_gregset): Likewise.
289 (sparc64_sol2_supply_core_fpregset): Likewise.
290 (sparc64_sol2_collect_core_fpregset): Likewise.
291 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
292 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
293 tdep->fpregset/sizeof_fpregset.
295 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
297 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
300 2014-12-02 Doug Evans <dje@google.com>
302 * symtab.c (symbol_init_cplus_specific): Delete.
303 (symbol_set_demangled_name): Remove special c++ support.
304 (symbol_get_demangled_name, symbol_set_language): Ditto.
305 * symtab.h (struct cplus_specific): Delete.
306 (struct general_symbol_info) <language_specific>: Remove
309 2014-12-02 Doug Evans <dje@google.com>
312 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
314 2014-12-02 Doug Evans <dje@google.com>
317 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
320 2014-12-02 Doug Evans <dje@google.com>
322 * dwarf2read.c (peek_die_abbrev): Improve error message text.
324 2014-12-02 Doug Evans <dje@google.com>
326 * valops.c (do_search_struct_field): Remove remnant of Chill support.
327 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
329 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
331 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
333 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
335 * NEWS: Mention new Python events.
336 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
337 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
338 (py-infevents.o): New rule.
339 * doc/observer.texi (inferior_call_pre, inferior_call_post)
340 (memory_changed, register_changed): New observers.
341 * infcall.c (call_function_by_hand): Notify observer before and
343 * python/py-event.h (inferior_call_kind): New enum.
344 (emit_inferior_call_event): New prototype.
345 (emit_register_changed_event): New prototype.
346 (emit_memory_changed_event): New prototype.
347 * python/py-events.h (events_object): New registries
348 inferior_call, memory_changed and register_changed.
349 * python/py-evts.c (gdbpy_initialize_py_events): Add the
350 inferior_call, memory_changed and register_changed registries.
351 * python/py-infevents.c: New.
352 * python/py-inferior.c (python_on_inferior_call_pre)
353 (python_on_inferior_call_post, python_on_register_change)
354 (python_on_memory_change): New functions.
355 (gdbpy_initialize_inferior): Attach python handler to new
357 * python/py-infthread.c(gdbpy_create_ptid_object): New.
358 (thpy_get_ptid) Use gdbpy_create_ptid_object.
359 * python/python-internal.h:
360 (gdbpy_create_ptid_object)
361 (gdbpy_initialize_inferior_call_pre_event)
362 (gdbpy_initialize_inferior_call_post_event)
363 (gdbpy_initialize_register_changed_event)
364 (gdbpy_initialize_memory_changed_event): New prototypes.
365 * python/python.c (_initialize_python): Initialize new events.
366 * valops.c (value_assign): Notify register_changed observer.
368 2014-12-02 Doug Evans <dje@google.com>
370 * python/py-infthread.c: Whitespace fixes.
372 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
374 * features/Makefile (s390-te-linux64-expedite): Replace
375 non-existant r14 and r15 by r14l and r15l, respectively.
376 * regformats/s390-te-linux64.dat: Regenerate.
378 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
380 * objfiles.c (allocate_objfile): Remove duplicate comment.
382 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
384 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
385 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
386 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
387 (supply_gregset, supply_fpregset): Remove.
388 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
389 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
392 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
394 Add add-auto-load-scripts-directory.
395 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
396 * auto-load.c (add_auto_load_dir): New function.
397 (_initialize_auto_load): Install it.
399 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
401 Pushed by Joel Brobecker <brobecker@adacore.com>.
402 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
404 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
406 * eval.c (evaluate_subexp): Check that the thread stack temporaries
407 are not already enabled before enabling them.
409 2014-11-29 Yao Qi <yao@codesourcery.com>
411 * arm-tdep.c (arm_analyze_prologue): Move local variables
412 'framereg' and 'framesize' to inner block. Move code to
415 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
417 * eval.c: Include gdbthread.h.
418 (evaluate_subexp): Enable thread stack temporaries before
419 evaluating a complete expression and clean them up after the
420 evaluation is complete.
421 * gdbthread.h: Include common/vec.h.
422 (value_ptr): New typedef.
423 (VEC (value_ptr)): New vector type.
424 (value_vec): New typedef.
425 (struct thread_info): Add new fields stack_temporaries_enabled
426 and stack_temporaries.
427 (enable_thread_stack_temporaries)
428 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
429 (get_last_thread_stack_temporary)
430 (value_in_thread_stack_temporaries): Declare.
431 * gdbtypes.c (class_or_union_p): New function.
432 * gdbtypes.h (class_or_union_p): Declare.
433 * infcall.c (call_function_by_hand): Store return values of class
434 type as temporaries on stack.
435 * thread.c (enable_thread_stack_temporaries): New function.
436 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
437 (get_last_thread_stack_temporary): Likewise.
438 (value_in_thread_stack_temporaries): Likewise.
439 * value.c (value_force_lval): New function.
440 * value.h (value_force_lval): Declare.
442 2014-11-28 Pierre Muller <muller@sourceware.org>
444 Pushed by Joel Brobecker <brobecker@adacore.com>.
445 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
448 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
450 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
451 * config/sparc/linux.mh (NATDEPFILES): Likewise.
452 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
453 * m68klinux-nat.c (fetch_core_registers): Remove.
454 (linux_elf_core_fns): Remove.
455 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
457 2014-11-28 Joel Brobecker <brobecker@adacore.com>
459 * utils.c (gdb_realpath): Rework comment about handling on
462 2014-11-28 Yao Qi <yao@codesourcery.com>
464 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
466 * gnulib/aclocal.m4: Re-generated.
467 * gnulib/config.in: Re-generated.
468 * gnulib/configure: Re-generated.
469 * gnulib/import/Makefile.am: Re-generated.
470 * gnulib/import/Makefile.in: Re-generated.
471 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
472 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
473 * import/basename-lgpl.c: New file.
474 * import/dirname-lgpl.c: New file.
475 * import/dirname.h: New file.
476 * import/m4/dirname.m4: New file.
477 * import/m4/malloc.m4: New file.
478 * import/m4/rename.m4: New file.
479 * import/m4/rmdir.m4: New file.
480 * import/m4/stdio_h.m4: New file.
481 * import/malloc.c: New file.
482 * import/rename.c: New file.
483 * import/rmdir.c: New file.
484 * import/same-inode.h: New file.
485 * import/stdio.c: New file.
486 * import/stdio.in.h: New file.
487 * import/stripslash.c: New file.
489 2014-11-28 Yao Qi <yao@codesourcery.com>
491 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
493 * config.in: Re-generated.
494 * configure: Re-generated.
495 * utils.c (gdb_realpath): Remove code calling realpath,
496 canonicalize_file_name and pathconf.
497 [!_WIN32]: Call canonicalize_file_name.
499 2014-11-28 Yao Qi <yao@codesourcery.com>
501 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
503 * aclocal.m4: Re-generated.
504 * config.in: Re-generated.
505 * configure: Re-generated.
506 * import/Makefile.am: Re-generated.
507 * import/Makefile.in: Re-generated.
508 * import/m4/gnulib-cache.m4: Re-generated.
509 * import/m4/gnulib-comp.m4: Re-generated.
510 * import/canonicalize-lgpl.c: New file.
511 * import/extra/snippet/_Noreturn.h: New file.
512 * import/m4/canonicalize.m4: New file.
513 * import/m4/double-slash-root.m4: New file.
514 * import/m4/eealloc.m4: New file.
515 * import/m4/malloca.m4: New file.
516 * import/m4/nocrash.m4: New file.
517 * import/m4/stdlib_h.m4: New file.
518 * import/malloca.c: New file.
519 * import/malloca.h: New file.
520 * import/malloca.valgrind: New file.
522 2014-11-28 Yao Qi <yao@codesourcery.com>
524 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
525 * config.in, configure: Regenerate.
526 * symfile.c (find_separate_debug_file_by_debuglink): Remove
527 code checking HAVE_LSTAT is defined.
529 2014-11-28 Yao Qi <yao@codesourcery.com>
531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
533 * gnulib/aclocal.m4: Re-generated.
534 * gnulib/config.in: Re-generated.
535 * gnulib/configure: Re-generated.
536 * gnulib/import/Makefile.am: Re-generated.
537 * gnulib/import/Makefile.in: Re-generated.
538 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
539 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
540 * gnulib/import/lstat.c: New file.
541 * gnulib/import/m4/lstat.m4: New file.
543 2014-11-28 Yao Qi <yao@codesourcery.com>
545 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
546 * config.in, configure: Re-generate.
547 * inf-child.c (inf_child_fileio_readlink): Don't check
548 HAVE_READLINK is defined.
550 2014-11-28 Yao Qi <yao@codesourcery.com>
552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
553 * gnulib/aclocal.m4: Re-generated.
554 * gnulib/config.in: Likewise.
555 * gnulib/configure: Likewise.
556 * gnulib/import/Makefile.am: Likewise.
557 * gnulib/import/Makefile.in: Likewise.
558 * gnulib/import/m4/gnulib-cache.m4: Likewise.
559 * gnulib/import/m4/gnulib-comp.m4: Likewise.
560 * gnulib/import/dosname.h: New file
561 * gnulib/import/m4/largefile.m4: New file.
562 * gnulib/import/m4/readlink.m4: New file.
563 * gnulib/import/m4/stat.m4: New file.
564 * gnulib/import/readlink.c: New file.
565 * gnulib/import/stat.c: New file.
567 2014-11-26 Mark Wielaard <mjw@redhat.com>
569 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
570 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
572 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
574 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
575 that there can be only one stack adjustment in the prologue
576 with tests to detect specific disallowed stack adjustments.
578 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
580 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
583 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
585 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
586 the instruction as well as reading it from memory.
587 (nios2_match_add): New.
588 (nios2_match_sub): New.
589 (nios2_match_addi): New.
590 (nios2_match_orhi): New.
591 (nios2_match_stw): New.
592 (nios2_match_ldw): New.
593 (nios2_match_rdctl): New.
594 (enum branch_condition): New.
595 (nios2_match_branch): New.
596 (nios2_match_jmpi): New.
597 (nios2_match_calli): New.
598 (nios2_match_jmpr): New.
599 (nios2_match_callr): New.
600 (nios2_match_break): New.
601 (nios2_match_trap): New.
602 (nios2_in_epilogue_p): Rewrite to use new functions.
603 (nios2_analyze_prologue): Likewise.
604 (nios2_skip_prologue): Delete unused local limit_pc.
605 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
606 (nios2_get_next_pc): Rewrite to use new functions.
608 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
610 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
612 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
614 Pushed by Joel Brobecker <brobecker@adacore.com>
615 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
616 elements pi_len by the size of the elements before calling
618 (inf_validate_task_sc): Likewise, and properly deallocate the
621 2014-11-23 Doug Evans <xdje42@gmail.com>
623 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
624 number and name if present. All callers updated.
625 (dump_fn_fieldlists): Fix indentation of args.
627 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
629 * MAINTAINERS (Write After Approval): Add myself.
631 2014-11-23 Joel Brobecker <brobecker@adacore.com>
633 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
634 to a bp_call_dummy breakpoint type.
636 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
638 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
639 registering the signal handler.
641 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
643 * event-top.h (call_stdin_event_handler_again_p): Declare.
644 * event-top.c (call_stdin_event_handler_again_p): Define.
645 (stdin_event_handler): Use it.
646 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
647 handler again if there is pending input following a
650 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
652 Pushed by Joel Brobecker <brobecker@adacore.com>
653 * linux-fork.c (checkpoint_command): Print index of new
654 checkpoint in response message.
656 2014-11-23 Yao Qi <yao@codesourcery.com>
658 * valprint.c (read_string): Move local variables 'found_nul',
659 'chunksize' and 'limit' to inner scope. Update comments.
661 2014-11-22 Doug Evans <xdje42@gmail.com>
663 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
665 (search_symbols): Fix comments and whitespace.
667 2014-11-22 Doug Evans <xdje42@gmail.com>
669 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
671 2014-11-21 Doug Evans <dje@google.com>
673 * psymtab.c (psymtab_search_name): Fix whitespace.
675 2014-11-21 Yao Qi <yao@codesourcery.com>
677 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
679 * gnulib/import/Makefile.am: Re-generated.
680 * gnulib/import/Makefile.in: Likewise.
681 * gnulib/import/m4/gnulib-cache.m4: Likewise.
683 2014-11-21 Yao Qi <yao@codesourcery.com>
685 * gdb_wchar.h: Include wchar.h and wctype.h.
686 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
687 include wchar.h and wctype.h.
688 Don't check HAVE_WCHAR_H.
690 2014-11-21 Yao Qi <yao@codesourcery.com>
692 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
694 * gnulib/import/Makefile.am: Re-generated.
695 * gnulib/import/Makefile.in: Likewise.
696 * gnulib/import/m4/gnulib-cache.m4: Likewise.
698 2014-11-21 Yao Qi <yao@codesourcery.com>
700 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
702 * gnulib/import/Makefile.am: Re-generated.
703 * gnulib/import/Makefile.in: Likewise.
704 * gnulib/import/m4/gnulib-cache.m4: Likewise.
706 2014-11-21 Yao Qi <yao@codesourcery.com>
708 * common/common-defs.h: Include alloca.h
709 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
710 * configure: Re-generated.
711 * defs.h: Remove code handling alloca.
712 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
715 2014-11-21 Yao Qi <yao@codesourcery.com>
717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
719 * gnulib/import/Makefile.am: Re-generated.
720 * gnulib/import/Makefile.in: Likewise..
721 * gnulib/import/m4/gnulib-cache.m4: Likewise.
723 2014-11-21 Yao Qi <yao@codesourcery.com>
725 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
728 2014-11-21 Joel Brobecker <brobecker@adacore.com>
730 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
731 flag_unsigned if HIGH_BOUND is constant and negative.
733 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
736 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
737 modifier from "struct gdbarch" when compiling without Expat (XML)
739 (get_syscall_by_number): Likewise.
740 (get_syscall_by_name): Likewise.
741 (get_syscall_names): Likewise.
743 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
746 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
747 set_xml_syscall_file_name to provide gdbarch.
748 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
749 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
750 * breakpoint.c (print_it_catch_syscall): Adjust call to
751 get_syscall_by_number to provide gdbarch.
752 (print_one_catch_syscall): Likewise.
753 (print_mention_catch_syscall): Likewise.
754 (print_recreate_catch_syscall): Likewise.
755 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
756 and get_syscall_by_name to provide gdbarch.
757 (catch_syscall_completer): Adjust call to get_syscall_names to
759 * gdbarch.c: Regenerate.
760 * gdbarch.h: Likewise.
761 * gdbarch.sh: Forward declare "struct syscalls_info".
762 (xml_syscall_file): New variable.
763 (syscalls_info): Likewise.
764 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
765 set_xml_syscall_file_name to provide gdbarch.
766 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
767 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
768 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
769 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
770 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
771 * xml-syscall.c: Include gdbarch.h.
772 (set_xml_syscall_file_name): Accept gdbarch parameter.
773 (get_syscall_by_number): Likewise.
774 (get_syscall_by_name): Likewise.
775 (get_syscall_names): Likewise.
776 (my_gdb_datadir): Delete global variable.
777 (struct syscalls_info) <my_gdb_datadir>: New variable.
778 (struct syscalls_info) <sysinfo>: Rename variable to
780 (sysinfo): Delete global variable.
781 (have_initialized_sysinfo): Likewise.
782 (xml_syscall_file): Likewise.
783 (sysinfo_free_syscalls_desc): Rename to...
784 (syscalls_info_free_syscalls_desc): ... this.
785 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
786 code to the new layout of "struct syscalls_info".
787 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
789 (syscall_create_syscall_desc): Likewise.
790 (syscall_start_syscall): Likewise.
791 (syscall_parse_xml): Likewise.
792 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
793 (init_sysinfo): Rename to...
794 (init_syscalls_info): ...this. Add gdbarch as a parameter.
795 Adjust function to deal with gdbarch.
796 (xml_get_syscall_number): Delete parameter sysinfo. Accept
797 gdbarch as a parameter. Adjust code.
798 (xml_get_syscall_name): Likewise.
799 (xml_list_of_syscalls): Likewise.
800 (set_xml_syscall_file_name): Accept gdbarch as parameter.
801 (get_syscall_by_number): Likewise.
802 (get_syscall_by_name): Likewise.
803 (get_syscall_names): Likewise.
804 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
805 (get_syscall_by_number): Likewise.
806 (get_syscall_by_name): Likewise.
807 (get_syscall_names): Likewise.
809 2014-11-20 Doug Evans <xdje42@gmail.com>
811 Split struct symtab into two: struct symtab and compunit_symtab.
812 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
813 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
814 to "struct compunit_symtab *". All callers updated.
815 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
816 "struct symtab *" argument to "struct compunit_symtab *".
818 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
819 result to "struct compunit_symtab *". All callers updated.
820 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
821 Change result to "struct compunit_symtab *". All callers updated.
822 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
823 hange type to "struct compunit_symtab *". All uses updated.
824 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
825 Change type to "struct compunit_symtab *". All uses updated.
826 * buildsym.c (struct buildsym_compunit): New struct.
827 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
828 (buildsym_compunit): New static global.
829 (finish_block_internal): Update to fetch objfile from
831 (make_blockvector): Delete objfile argument.
832 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
833 debugformat, producer.
834 (start_buildsym_compunit): New function.
835 (free_buildsym_compunit): Renamed from free_subfiles_list.
837 (patch_subfile_names): Rewrite to use buildsym_compunit.
838 (get_compunit_symtab): New function.
839 (get_macro_table): Delete argument comp_dir. All callers updated.
840 (start_symtab): Change result to "struct compunit_symtab *".
841 All callers updated. Create the subfile of the main source file.
842 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
843 (reset_symtab_globals): Update.
844 (end_symtab_get_static_block): Update to use buildsym_compunit.
845 (end_symtab_without_blockvector): Rewrite.
846 (end_symtab_with_blockvector): Change result to
847 "struct compunit_symtab *". All callers updated.
848 Update to use buildsym_compunit. Don't set symtab->dirname,
849 instead set it in the compunit.
850 Explicitly make sure main symtab is first in its list.
851 Set debugformat, producer, blockvector, block_line_section, and
852 macrotable in the compunit.
853 (end_symtab_from_static_block): Change result to
854 "struct compunit_symtab *". All callers updated.
855 (end_symtab, end_expandable_symtab): Ditto.
856 (set_missing_symtab): Change symtab argument to
857 "struct compunit_symtab *". All callers updated.
858 (augment_type_symtab): Ditto.
859 (record_debugformat): Update to use buildsym_compunit.
860 (record_producer): Update to use buildsym_compunit.
861 * buildsym.h (struct subfile) <dirname>: Delete.
862 <producer, debugformat>: Delete.
863 <buildsym_compunit>: New member.
864 (get_compunit_symtab): Declare.
865 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
866 from primary_symtab. Change type to "struct compunit_symtab *".
868 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
870 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
871 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
872 symtab. Change type to "struct compunit_symtab *". All uses updated.
873 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
875 (dw2_find_last_source_symtab): Ditto.
876 (dw2_lookup_symbol): Ditto.
877 (recursively_find_pc_sect_compunit_symtab): Renamed from
878 recursively_find_pc_sect_symtab. Change result to
879 "struct compunit_symtab *". All callers updated.
880 (dw2_find_pc_sect_compunit_symtab): Renamed from
881 dw2_find_pc_sect_symtab. Change result to
882 "struct compunit_symtab *". All callers updated.
883 (get_compunit_symtab): Renamed from get_symtab. Change result to
884 "struct compunit_symtab *". All callers updated.
885 (recursively_compute_inclusions): Change type of immediate_parent
886 argument to "struct compunit_symtab *". All callers updated.
887 (compute_compunit_symtab_includes): Renamed from
888 compute_symtab_includes. All callers updated. Rewrite to compute
889 includes of compunit_symtabs and not symtabs.
890 (process_full_comp_unit): Update to work with struct compunit_symtab.
891 (process_full_type_unit): Ditto.
892 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
893 (dwarf_decode_lines): Remove special case handling of main subfile.
894 (macro_start_file): Delete argument comp_dir. All callers updated.
895 (dwarf_decode_macro_bytes): Ditto.
896 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
897 use struct compunit_symtab.
898 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
899 * jit.c (finalize_symtab): Build compunit_symtab.
900 * jv-lang.c (get_java_class_symtab): Change result to
901 "struct compunit_symtab *". All callers updated.
902 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
903 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
904 comp_dir. Change type to "struct compunit_symtab *".
906 (new_macro_table): Change comp_dir argument to cust,
907 "struct compunit_symtab *". All callers updated.
908 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
909 nr_primary_symtabs. All uses updated.
910 (count_symtabs_and_blocks): Update to handle compunits.
911 (report_command_stats): Update output, "primary symtabs" renamed to
913 * mdebugread.c (new_symtab): Change result to
914 "struct compunit_symtab *". All callers updated.
915 (parse_procedure): Change type of search_symtab argument to
916 "struct compunit_symtab *". All callers updated.
917 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
919 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
920 symtabs. Change type to "struct compunit_symtab *". All uses updated.
921 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
923 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
925 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
926 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
927 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
928 symtab. Change type to "struct compunit_symtab *". All uses updated.
929 * psymtab.c (psymtab_to_symtab): Change result type to
930 "struct compunit_symtab *". All callers updated.
931 (find_pc_sect_compunit_symtab_from_partial): Renamed from
932 find_pc_sect_symtab_from_partial. Change result type to
933 "struct compunit_symtab *". All callers updated.
934 (lookup_symbol_aux_psymtabs): Change result type to
935 "struct compunit_symtab *". All callers updated.
936 (find_last_source_symtab_from_partial): Ditto.
937 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
938 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
939 and macro_table from compunit.
940 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
941 type to "struct compunit_symtab *". All callers updated.
942 (debug_qf_lookup_symbol): Ditto.
943 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
944 debug_qf_find_pc_sect_symtab, change result type to
945 "struct compunit_symtab *". All callers updated.
946 * symfile.c (allocate_symtab): Delete objfile argument.
948 (allocate_compunit_symtab): New function.
949 (add_compunit_symtab_to_objfile): New function.
950 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
951 Change result type to "struct compunit_symtab *". All uses updated.
952 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
953 Change result type to "struct compunit_symtab *". All uses updated.
954 * symmisc.c (print_objfile_statistics): Compute blockvector count in
956 (dump_symtab_1): Update test for primary source symtab.
957 (maintenance_info_symtabs): Update to handle compunit symtabs.
958 (maintenance_check_symtabs): Ditto.
959 * symtab.c (set_primary_symtab): Delete.
960 (compunit_primary_filetab): New function.
961 (compunit_language): New function.
962 (iterate_over_some_symtabs): Change type of arguments "first",
963 "after_last" to "struct compunit_symtab *". All callers updated.
964 Update to loop over symtabs in each compunit.
965 (error_in_psymtab_expansion): Rename symtab argument to cust,
966 and change type to "struct compunit_symtab *". All callers updated.
967 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
968 Change result type to "struct compunit_symtab *". All callers updated.
969 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
970 Change result type to "struct compunit_symtab *". All callers updated.
971 (find_pc_sect_line): Only loop over symtabs within selected compunit
972 instead of all symtabs in the objfile.
973 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
974 <compunit_symtab> New member.
975 <block_line_section>: Moved to compunit_symtab.
976 <locations_valid>: Ditto.
977 <epilogue_unwind_valid>: Ditto.
978 <macro_table>: Ditto.
980 <debugformat>: Ditto.
983 <call_site_htab>: Ditto.
987 (SYMTAB_COMPUNIT): New macro.
988 (SYMTAB_BLOCKVECTOR): Update definition.
989 (SYMTAB_OBJFILE): Update definition.
990 (SYMTAB_DIRNAME): Update definition.
991 (struct compunit_symtab): New type. Common members among all source
992 symtabs within a compilation unit moved here. All uses updated.
993 (COMPUNIT_OBJFILE): New macro.
994 (COMPUNIT_FILETABS): New macro.
995 (COMPUNIT_DEBUGFORMAT): New macro.
996 (COMPUNIT_PRODUCER): New macro.
997 (COMPUNIT_DIRNAME): New macro.
998 (COMPUNIT_BLOCKVECTOR): New macro.
999 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1000 (COMPUNIT_LOCATIONS_VALID): New macro.
1001 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1002 (COMPUNIT_CALL_SITE_HTAB): New macro.
1003 (COMPUNIT_MACRO_TABLE): New macro.
1004 (ALL_COMPUNIT_FILETABS): New macro.
1005 (compunit_symtab_ptr): New typedef.
1006 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1008 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1010 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1011 if the TYPE_CODE of range_type's base type does not match
1012 the TYPE_CODE of encoding_type's base type.
1014 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1016 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1019 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1021 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1022 (ada_is_redundant_index_type_desc): New function.
1023 (to_fixed_array_type): Ignore parallel XA type if redundant.
1025 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1027 * ada-lang.c (constrained_packed_array_type): Set the length
1028 of the return array as if both bounds where zero if that
1029 returned array's index type is dynamic.
1031 2014-11-19 Yao Qi <yao@codesourcery.com>
1033 * config/i386/go32.mh (CC): Remove.
1035 2014-11-18 Doug Evans <xdje42@gmail.com>
1037 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1040 2014-11-18 Doug Evans <xdje42@gmail.com>
1042 * buildsym.c (buildsym_objfile): New static global.
1043 (buildsym_comp_dir): New static global.
1044 (finish_block_internal): Delete arg objfile. All callers updated.
1045 (finish_block): Delete arg objfile. All callers updated.
1046 (start_subfile): Delete arg dirname. All callers updated.
1047 (patch_subfile_names): Update buildsym_comp_dir.
1048 (get_macro_table): Delete arg objfile. All callers updated.
1049 (start_symtab): New arg objfile. All callers updated.
1050 Rename arg dirname to comp_dir.
1051 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1052 (end_symtab_get_static_block): Delete arg objfile. All callers
1054 (end_symtab_without_blockvector): Ditto.
1055 (end_symtab_with_blockvector): Ditto.
1056 (end_symtab_from_static_block): Ditto.
1057 (end_symtab): Ditto.
1058 (end_expandable_symtab): Ditto.
1059 (augment_type_symtab): Ditto.
1060 * coffread.c (coff_start_symtab): New arg objfile. All callers
1063 2014-11-18 Doug Evans <xdje42@gmail.com>
1065 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1068 2014-11-18 Doug Evans <xdje42@gmail.com>
1070 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1071 symtab.dirname updated to use it.
1073 2014-11-18 Doug Evans <xdje42@gmail.com>
1075 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1076 symtab.objfile updated to use it.
1078 2014-11-18 Doug Evans <xdje42@gmail.com>
1080 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1082 2014-11-18 Doug Evans <xdje42@gmail.com>
1084 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1086 * findvar.c (default_read_var_value): Ditto.
1087 * jv-lang.c (add_class_symtab_symbol): Ditto.
1088 * parse.c (operator_check_standard): Ditto.
1089 * printcmd.c (address_info): Ditto.
1090 * symtab.c (fixup_symbol_section): Ditto.
1091 (skip_prologue_sal): Ditto.
1092 * tracepoint.c (scope_info): Ditto.
1093 * valops.c (find_function_in_inferior): Ditto.
1094 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1095 * python/py-symbol.c (set_symbol): Ditto.
1097 2014-11-18 Doug Evans <xdje42@gmail.com>
1099 * buildsym.c (main_subfile): New static global.
1100 (free_subfiles_list): New function.
1101 (start_symtab): Set main_subfile.
1102 (restart_symtab): Replace init of subfiles, current_subfile with
1103 call to free_subfiles_list.
1104 (watch_main_source_file_lossage): Use main_subfile.
1105 (reset_symtab_globals): Replace init of current_subfile with call
1106 to free_subfiles_list.
1107 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1108 functions, split out from ...
1109 (end_symtab_from_static_block): ... here. Rewrite to call them.
1111 2014-11-18 Doug Evans <xdje42@gmail.com>
1113 The result of symtab expansion is always a primary symtab.
1114 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1115 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1116 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1117 (psymtab_to_symtab): Add comment and assert.
1118 (map_matching_symbols_psymtab): Remove unnecessary test for
1121 2014-11-15 Doug Evans <xdje42@gmail.com>
1124 * symtab.c (find_pc_line_symtab): New function.
1125 * symtab.h (find_pc_line_symtab): Declare.
1126 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1128 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1129 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1130 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1131 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1132 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1133 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1135 2014-11-15 Doug Evans <xdje42@gmail.com>
1137 * symtab.c (expand_symtab_containing_pc): Renamed from
1138 find_pc_sect_symtab_via_partial. All callers updated.
1140 2014-11-15 Yao Qi <yao@codesourcery.com>
1142 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1144 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1146 * common/common-defs.h: Move <stdarg.h> #include ahead of
1149 2014-11-14 Pedro Alves <palves@redhat.com>
1151 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1152 [!PHONY_ICONV] (gdb_iconv): New function.
1153 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1155 2014-11-13 Doug Evans <dje@google.com>
1158 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1159 "(anonymous namespace)".
1161 2014-11-13 Doug Evans <dje@google.com>
1163 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1166 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1168 * NEWS (maint set target-async): Fix typo.
1170 2014-11-12 Pedro Alves <palves@redhat.com>
1172 * infrun.c (enum infwait_states, infwait_state): Delete.
1174 2014-11-12 Pedro Alves <palves@redhat.com>
1176 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1177 Rewrite stepping over a permanent breakpoint.
1178 (thread_still_needs_step_over, proceed): Don't set
1179 stepping_over_breakpoint for permanent breakpoints.
1180 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1181 single-step breakpoints out of the target on hardware step
1183 (process_event_stop_test): If stepping a permanent breakpoint
1184 doesn't hit the step-resume breakpoint, delete the step-resume
1186 (switch_back_to_stepped_thread): Also check if the stepped thread
1187 has advanced already on hardware step targets.
1188 (currently_stepping): Return true if the thread stepped a
1191 2014-11-12 Pedro Alves <palves@redhat.com>
1193 Mark locations as permanent, not the whole breakpoint.
1194 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1195 (mark_breakpoints_out): Don't mark permanent breakpoints as
1197 (breakpoint_init_inferior): Use mark_breakpoints_out.
1198 (breakpoint_here_p): Adjust.
1199 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1200 of permanent breakpoints.
1201 (make_breakpoint_permanent): Mark each location as permanent,
1202 instead of marking the breakpoint.
1203 (add_location_to_breakpoint): If the location is permanent, mark
1204 it as such, and as inserted.
1205 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1206 (bp_location_compare, update_global_location_list): Adjust.
1207 (update_breakpoint_locations): Don't make the breakpoint permanent
1209 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1211 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1212 (struct bp_location) <permanent>: New field.
1213 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1214 reference to bp_permanent.
1216 2014-11-12 Pedro Alves <palves@redhat.com>
1218 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1219 * arch-utils.h (default_skip_permanent_breakpoint): New
1221 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1222 Install default_skip_permanent_breakpoint as default method.
1223 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1224 (i386_gdbarch_init): Don't install it.
1225 * infrun.c (resume): Assume there's always a
1226 gdbarch_skip_permanent_breakpoint implementation.
1227 * gdbarch.h, gdbarch.c: Regenerate.
1229 2014-11-11 Daniel Colascione <dancol@dancol.org>
1231 Warn about cross-PID-namespace debugging.
1232 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1233 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1234 * linux-thread-db.c (check_pid_namespace_match): New function.
1235 (thread_db_inferior_created): Call it.
1237 2014-11-10 Doug Evans <xdje42@gmail.com>
1239 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1240 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1242 2014-11-10 Doug Evans <xdje42@gmail.com>
1244 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1246 2014-11-10 Doug Evans <xdje42@gmail.com>
1249 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1250 (lookup_static_symbol): Move definition to new location and rewrite.
1251 (lookup_symbol_in_objfile): New function.
1252 (lookup_symbol_global_iterator_cb): Call it.
1254 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1256 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1258 2014-11-07 Pedro Alves <palves@redhat.com>
1260 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1261 check if we did a "nexti" inside a prologue.
1262 * symtab.c (in_prologue): Delete function.
1263 * symtab.h (in_prologue): Delete declaration.
1265 2014-11-06 Doug Evans <xdje42@gmail.com>
1267 * symtab.h (lookup_global_symbol): Improve function comment.
1269 2014-11-06 Doug Evans <xdje42@gmail.com>
1271 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1272 All callers updated.
1273 * symtab.h (lookup_global_symbol): Update decl.
1274 (lookup_static_symbol): Move decl to better location.
1276 2014-11-06 Doug Evans <xdje42@gmail.com>
1278 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1280 2014-11-06 Doug Evans <xdje42@gmail.com>
1282 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1283 All callers updated.
1284 (lookup_symbol_in_all_objfiles): Renamed from
1285 lookup_symbol_aux_symtabs. All callers updated.
1286 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1287 All callers updated.
1288 (lookup_symbol_in_objfile_symtabs): Renamed from
1289 lookup_symbol_aux_objfile. All callers updated.
1291 2014-11-06 Doug Evans <xdje42@gmail.com>
1293 * symtab.c (lookup_symbol_in_block): Renamed from
1294 lookup_symbol_aux_block. All callers updated.
1296 2014-11-06 Doug Evans <xdje42@gmail.com>
1298 * symtab.c (lookup_static_symbol): Renamed from
1299 lookup_static_symbol_aux. All callers updated.
1300 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1301 All callers updated.
1303 2014-11-06 Doug Evans <xdje42@gmail.com>
1305 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1306 * block.c (block_lookup_symbol): Use it.
1307 * cp-support.c (make_symbol_overload_list_block): Use it.
1308 * symtab.c (iterate_over_symbols): Use it.
1310 2014-11-06 Doug Evans <xdje42@gmail.com>
1312 * symtab.c (lookup_block_symbol): Moved to ...
1313 * block.c (block_lookup_symbol): ... here and renamed.
1314 All callers updated.
1315 * block.h (block_lookup_symbol): Declare.
1316 * symtab.h (lookup_block_symbol): Delete.
1318 2014-11-06 Doug Evans <xdje42@gmail.com>
1320 * ada-lang.c (ada_make_symbol_completion_list): Use
1321 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1322 * symtab.c (lookup_objfile_from_block): Ditto.
1324 2014-11-06 Doug Evans <xdje42@gmail.com>
1326 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1329 2014-11-06 Doug Evans <xdje42@gmail.com>
1331 * objfiles.c (get_objfile_arch): Constify.
1332 * objfiles.h (get_objfile_arch): Update prototype.
1333 * solib.c (solib_global_lookup): Fetch arch from objfile,
1336 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1338 * nios2-tdep.c (wild_insn): Delete.
1339 (profiler_insn, irqentry_insn): Delete.
1340 (nios2_match_sequence): Delete.
1341 (nios2_analyze_prologue): Update comments. Remove matching
1342 of obsolete profiler_insn and irqentry_insn sequences.
1344 2014-11-05 Alan Modra <amodra@gmail.com>
1346 * charset.c (convert_between_encodings): Shrink obstack using
1348 * minsyms.c (install_minimal_symbols): Likewise.
1349 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1350 to char* before doing pointer arithmetic.
1352 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1354 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1356 2014-11-04 Pedro Alves <palves@redhat.com>
1358 * breakpoint.c (breakpoint_thread_match): Delete function.
1359 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1361 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1364 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1365 the method args also under EVAL_SKIP when evaluating method
1366 calls under EVAL_SKIP.
1368 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1370 * dwarf2loc.c (read_pieced_value): Do big endian
1371 processing only if gdb_regnum is not -1.
1372 (write_pieced_value): Ditto.
1374 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1376 * arm-linux-tdep.c (arm_linux_init_abi): Use
1377 info.byte_order_for_code to choose endianity of breakpoint
1378 instructions snippets.
1380 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1382 * arm-tdep.c (extract_arm_insn): Use
1383 gdbarch_byte_order_for_code to read arm instruction.
1385 2014-11-02 Doug Evans <xdje42@gmail.com>
1387 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1389 2014-11-02 Doug Evans <xdje42@gmail.com>
1391 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1392 main_subfile before returning.
1394 2014-10-31 Doug Evans <xdje42@gmail.com>
1396 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1397 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1399 2014-10-31 Doug Evans <xdje42@gmail.com>
1401 * valops.c (value_cast_pointers): Fix whitespace.
1402 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1405 2014-10-30 Doug Evans <dje@google.com>
1407 * NEWS: Mention ability add attributes to gdb.Objfile and
1408 gdb.Progspace objects.
1409 * python/py-objfile.c (objfile_object): New member dict.
1410 (objfpy_dealloc): Py_XDECREF dict.
1411 (objfpy_initialize): Initialize dict.
1412 (objfile_getset): Add __dict__.
1413 (objfile_object_type): Set tp_dictoffset member.
1414 * python/py-progspace.c (progspace_object): New member dict.
1415 (pspy_dealloc): Py_XDECREF dict.
1416 (pspy_initialize): Initialize dict.
1417 (pspace_getset): Add __dict__.
1418 (pspace_object_type): Set tp_dictoffset member.
1420 2014-10-30 Yao Qi <yao@codesourcery.com>
1422 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1423 replace '\\' with '\\\\'.
1425 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1429 2014-10-29 Pedro Alves <palves@redhat.com>
1432 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1433 instead of assuming a thread with a stepping range is always
1436 2014-10-29 Pedro Alves <palves@redhat.com>
1439 * event-top.c (change_line_handler): Call
1440 gdb_rl_callback_handler_remove instead of
1441 rl_callback_handler_remove.
1442 (callback_handler_installed): New global.
1443 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1444 (gdb_rl_callback_handler_reinstall): New functions.
1445 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1446 gdb_rl_callback_handler_install instead of
1447 rl_callback_handler_remove and rl_callback_handler_install.
1448 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1449 instead of rl_callback_handler_remove.
1450 * event-top.h (gdb_rl_callback_handler_remove)
1451 (gdb_rl_callback_handler_install)
1452 (gdb_rl_callback_handler_reinstall): New declarations.
1453 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1455 (fetch_inferior_event): Install it.
1456 * top.c (gdb_readline_wrapper_line) Call
1457 gdb_rl_callback_handler_remove instead of
1458 rl_callback_handler_remove.
1459 (gdb_readline_wrapper_cleanup): Don't call
1460 rl_callback_handler_install.
1462 2014-10-29 Pedro Alves <palves@redhat.com>
1464 * event-top.c (command_line_handler): Clear the first byte of
1465 linebuffer, when it is first allocated.
1467 2014-10-29 Pedro Alves <palves@redhat.com>
1469 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1472 2014-10-29 Pedro Alves <palves@redhat.com>
1476 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1477 (tui_allowed_p): Delete function.
1478 * tui/tui.c: Include "interps.h".
1479 (tui_enable): Don't use tui_allowed_p. Error out here with
1480 detailed error messages if the TUI is the top level interpreter,
1481 or if output is not a terminal. Use newterm instead of initscr,
1482 and error out if initializing the terminal fails. Also error out if
1483 the terminal doesn't support cursor addressing.
1484 * tui/tui.h (tui_allowed_p): Delete declaration.
1486 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1488 * arm-tdep.c (arm_skip_stack_protector): Return early if
1489 address loaded by first "ldr" instruction does not have
1490 a corresponding minimal symbol. Update comment.
1492 2014-10-29 Yao Qi <yao@codesourcery.com>
1494 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1495 loaded address correctly of ldr instruction.
1497 2014-10-28 Pedro Alves <palves@redhat.com>
1500 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1502 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1503 thread's stepped_breakpoint field. Skip if reverse debugging.
1505 (init_thread_stepping_state, handle_signal_stop): Clear the
1506 thread's stepped_breakpoint field.
1508 2014-10-27 Pedro Alves <palves@redhat.com>
1510 * remote.c (remote_thread_alive): New, factored out from ...
1511 (remote_thread_alive): ... this.
1512 (remote_update_thread_list): Bail out before deleting threads if
1513 the target returned an empty list, and, the current thread has a
1516 2014-10-27 Pedro Alves <palves@redhat.com>
1518 * infrun.c (handle_signal_stop): Also skip handlers when a random
1519 signal arrives while handling a "stepi" or a "nexti". Set the
1520 thread's 'step_after_step_resume_breakpoint' flag.
1522 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1524 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1525 (arm_record_ld_st_imm_offset): Reimplement to cover all
1526 load/store cases for ARM opcode 010.
1527 (arm_record_ld_st_multiple): Reimplement to cover all
1528 load/store cases for ARM opcode 100.
1530 2014-10-26 Doug Evans <xdje42@gmail.com>
1532 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1534 2014-10-26 Doug Evans <xdje42@gmail.com>
1536 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1537 parameter "kind" to "block_index".
1538 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1540 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1542 2014-10-26 Doug Evans <xdje42@gmail.com>
1544 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1546 2014-10-26 Doug Evans <xdje42@gmail.com>
1548 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1551 2014-10-26 Doug Evans <xdje42@gmail.com>
1553 * parser-defs.h (block_found): Move decl from here ...
1554 * symtab.h (block_found): ... to here.
1556 2014-10-26 Doug Evans <xdje42@gmail.com>
1558 * symtab.h (struct field_of_this_result): Fix typo in comment.
1559 (lookup_symbol_in_language): Move function comment here.
1560 (lookup_symbol): Improve function comment.
1561 (basic_lookup_symbol_nonlocal): Ditto.
1562 (lookup_symbol_static, lookup_symbol_global): Ditto.
1563 (lookup_symbol_aux_block): Ditto.
1564 (lookup_language_this): Add function comment.
1565 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1567 (lookup_block_symbol): Improve function comment.
1568 (lookup_struct): Fix capitalization in function comment.
1569 (lookup_transparent_type): Add function comment.
1570 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1571 Improve function comment.
1572 (lookup_objfile_from_block): Add function comment.
1573 * symtab.c (lookup_symbol_in_language): Update function comment.
1574 (lookup_symbol, lookup_language_this): Ditto.
1575 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1576 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1577 (basic_lookup_symbol_nonlocal): Ditto.
1578 (lookup_symbol_static, lookup_symbol_global): Ditto.
1579 (lookup_transparent_type, lookup_block_symbol): Ditto.
1581 2014-10-25 Doug Evans <xdje42@gmail.com>
1583 * symtab.c (types_info): Delete forward decl.
1584 (functions_info, variables_info, sources_info): Ditto.
1585 (_initialize_symtab): Rewrite forward decl to use
1586 initialize_file_ftype.
1588 2014-10-25 Doug Evans <xdje42@gmail.com>
1590 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1592 2014-10-25 Doug Evans <xdje42@gmail.com>
1594 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1595 of local var child_die.
1597 2014-10-24 Don Breazeal <donb@codesourcery.com>
1599 * infrun.c (follow_fork_inferior): Update fork message printing
1600 to use target_terminal_ours_for_output instead of
1601 target_terminal_ours, to use _() for all format strings, to print
1602 "vfork" instead of "fork" for vforks, and to add a detach message.
1603 (handle_vfork_child_exec_or_exit): Update message printing to use
1604 target_terminal_ours_for_output instead of target_terminal_ours, to
1605 use _() for all format strings, and to fix some formatting.
1607 2014-10-24 Pedro Alves <palves@redhat.com>
1609 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1610 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1611 * config/vax/vax.mh: Delete.
1612 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1613 obsolete configurations section.
1614 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1615 * vax-nat.c: Delete file.
1617 2014-10-24 Pedro Alves <palves@redhat.com>
1619 * NEWS (Removed targets): Add OS/arch column.
1621 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1623 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1624 on the arg type of a constructor only if it is of reference type.
1626 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1628 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1629 accessors and constants from nios2 opcodes update.
1630 (nios2_get_next_pc): Likewise.
1632 2014-10-19 Doug Evans <xdje42@gmail.com>
1634 * gdbthread.h (set_running): Fix comment.
1635 (set_executing, finish_thread_state): Fix comment.
1637 2014-10-18 Doug Evans <xdje42@gmail.com>
1639 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1641 2014-10-17 Doug Evans <dje@google.com>
1643 * NEWS: Mention new event gdb.clear_objfiles.
1644 * python/py-event.h (emit_clear_objfiles_event): Clear
1645 * python/py-events.h (events_object): New member clear_objfiles.
1646 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1648 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1649 emit clear_objfiles event.
1650 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1652 (emit_clear_objfiles_event): New function.
1653 (clear_objfiles): New event.
1654 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1656 * python/python.c (_initialize_python): Call
1657 gdbpy_initialize_clear_objfiles_event.
1659 2014-10-17 Doug Evans <dje@google.com>
1661 * NEWS: Mention new gdb.Objfile.progspace attribute.
1662 * python/py-objfile.c (objfpy_get_progspace): New function.
1663 (objfile_getset): New entry for "progspace".
1665 2014-10-17 Pedro Alves <palves@redhat.com>
1668 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1669 returns a copy of the input.
1670 (run_command_1, continue_command, step_1, jump_command)
1671 (signal_command, until_command, advance_command, finish_command)
1672 (attach_command): Adjust and install a cleanup to free the
1675 2014-10-17 Pedro Alves <palves@redhat.com>
1678 * infcmd.c (continue_1): If continuing all threads in the
1679 foreground, make sure the inferior's terminal settings are put in
1682 2014-10-17 Pedro Alves <palves@redhat.com>
1685 * annotate.c (annotate_breakpoints_invalid): Use
1686 target_terminal_our_for_output instead of target_terminal_ours.
1687 Give back the terminal to the target.
1688 (annotate_frames_invalid): Likewise.
1690 2014-10-17 Pedro Alves <palves@redhat.com>
1692 * target.c (enum terminal_state): New enum.
1693 (terminal_state): New global.
1694 (target_terminal_init): New function.
1695 (target_terminal_inferior): Skip if inferior already owns the
1697 (target_terminal_ours, target_terminal_ours_for_output): New
1699 * target.h (target_terminal_init): Convert to function prototype.
1700 (target_terminal_ours_for_output): Convert to function prototype
1702 (target_terminal_ours): Convert to function prototype and tweak
1704 * windows-nat.c (do_initial_windows_stuff): Call
1705 target_terminal_init instead of child_terminal_init_with_pgrp.
1707 2014-10-17 Pedro Alves <palves@redhat.com>
1709 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1710 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1711 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1713 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1714 * ada-lang.h [__alpha__ && __osf__]
1715 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1716 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1717 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1719 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1721 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1722 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1723 * configure: Regenerate.
1724 * configure.ac: Remove references to osf.
1725 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1726 section. Remove all other references to osf.
1727 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1728 Remove all other references to osf.
1729 * dec-thread.c: Delete file.
1730 * defs.h (GDB_OSABI_OSF1): Delete.
1731 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1733 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1734 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1736 (unconditionally_kill_inferior)
1737 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1738 * solib-osf.c: Delete file.
1740 2014-10-17 Pedro Alves <palves@redhat.com>
1742 * remote.c (clear_threads_listing_context): Move higher up, out of
1743 the HAVE_LIBEXPAT guard.
1745 2014-10-16 Tristan Gingold <gingold@adacore.com>
1747 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1748 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1751 2014-10-15 Pedro Alves <palves@redhat.com>
1753 * dec-thread.c (dec_thread_count_gdb_threads)
1754 (dec_thread_add_gdb_thread): Delete.
1755 (dec_thread_update_thread_list): Delete.
1756 (dec_thread_find_new_threads): Rename to ...
1757 (dec_thread_update_thread_list): ... this. Delete GDB-size
1758 threads that are no longer found in dec_thread_list.
1759 (resync_thread_list): Delete.
1760 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1763 2014-10-15 Pedro Alves <palves@redhat.com>
1765 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1766 * remote.c (remote_update_thread_list): Skip calling prune_threads
1767 if any thread listing method is supported, and instead walk over
1768 the set of remote threads listed, deleting those that are not
1769 found in GDB's thread list.
1771 2014-10-15 Pedro Alves <palves@redhat.com>
1773 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1774 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1775 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1776 (bsd_uthread_target): Adjust.
1777 * corelow.c (core_open): Adjust.
1778 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1779 (dec_thread_update_thread_list): New function.
1780 (init_dec_thread_ops): Adjust.
1781 * gdbthread.h (prune_threads): New declaration.
1782 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1783 (thread_db_update_thread_list): ... this. Call prune_threads.
1784 (init_thread_db_ops): Adjust.
1785 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1786 (procfs_update_thread_list): ... this. Call prune_threads.
1787 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1789 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1790 (obsd_update_thread_list): ... this. Call prune_threads.
1791 (obsd_add_target): Adjust.
1792 * procfs.c (procfs_target): Adjust.
1793 (procfs_notice_thread): Update comment.
1794 (procfs_find_new_threads): Rename to ...
1795 (procfs_update_thread_list): ... this. Call prune_threads.
1796 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1798 (ravenscar_wait): Adjust.
1799 (ravenscar_find_new_threads): Rename to ...
1800 (ravenscar_update_thread_list): ... this. Call prune_threads.
1801 (init_ravenscar_thread_ops): Adjust.
1802 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1803 (record_btrace_update_thread_list): ... this. Adjust comment.
1804 (init_record_btrace_ops): Adjust.
1805 * remote.c (remote_threads_info): Rename to ...
1806 (remote_update_thread_list): ... this. Call prune_threads.
1807 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1809 * sol-thread.c (check_for_thread_db): Adjust.
1810 (sol_find_new_threads_callback): Rename to ...
1811 (sol_update_thread_list_callback): ... this.
1812 (sol_find_new_threads): Rename to ...
1813 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1814 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1815 * target-delegates.c: Regenerate.
1816 * target.c (target_find_new_threads): Rename to ...
1817 (target_update_thread_list): ... this.
1818 * target.h (struct target_ops): Rename to_find_new_threads field
1819 to to_update_thread_list.
1820 (target_find_new_threads): Rename to ...
1821 (target_update_thread_list): ... this.
1822 * thread.c (prune_threads): Make extern.
1823 (update_thread_list): Adjust.
1825 2014-10-15 Pedro Alves <palves@redhat.com>
1827 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1828 Add describing comment. Return -1 if the qL packet is not
1830 (struct thread_item, thread_item_t): Move higher up in
1831 the file. Add comments.
1832 (struct threads_parsing_context): Move higher up in
1833 the file, add comments, and remote to ...
1834 (struct threads_listing_context): ... this.
1835 (remote_newthread_step): Don't add the thread to GDB's thread
1836 database here. Instead push it to the thread_listing_context
1838 (remote_find_new_threads): Rename to ...
1839 (remote_get_threads_with_ql): ... this. Add target_ops and
1840 targets_listing_context parameters. Pass down context.
1841 (start_thread): Adjust.
1842 (clear_threads_parsing_context): Rename to ...
1843 (clear_threads_listing_context): ... this.
1844 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1845 remote_threads_info.
1846 (remote_get_threads_with_qthreadinfo): Ditto.
1847 (remote_threads_info): Reimplement.
1849 2014-10-15 Pedro Alves <palves@redhat.com>
1851 * infrun.c (resume): Don't force displaced-stepping for all
1852 single-steps on software single-stepping archs.
1854 2014-10-15 Pedro Alves <palves@redhat.com>
1856 * breakpoint.c (single_step_breakpoints): Delete global.
1857 (insert_single_step_breakpoint): Adjust to store the breakpoint
1858 pointer in the current thread.
1859 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1860 (cancel_single_step_breakpoints): Delete functions.
1861 (breakpoint_has_location_inserted_here): Make extern.
1862 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1864 * breakpoint.h (breakpoint_has_location_inserted_here): New
1866 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1867 (cancel_single_step_breakpoints): Remove declarations.
1868 * gdbthread.h (struct thread_control_state)
1869 <single_step_breakpoints>: New field.
1870 (delete_single_step_breakpoints)
1871 (thread_has_single_step_breakpoints_set)
1872 (thread_has_single_step_breakpoint_here): New declarations.
1873 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1874 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1875 (singlestep_pc): Delete globals.
1876 (infrun_thread_ptid_changed): Remove references to removed
1878 (resume_cleanups): Delete the current thread's single-step
1880 (maybe_software_singlestep): Remove references to removed globals.
1881 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1882 delete_single_step_breakpoints.
1883 (init_wait_for_inferior): Remove references to removed globals.
1884 (delete_thread_infrun_breakpoints): Delete the thread's
1885 single-step breakpoints too.
1886 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1887 single-step breakpoints here.
1888 (delete_stopped_threads_single_step_breakpoints): New function.
1889 (adjust_pc_after_break): Adjust to use
1890 thread_has_single_step_breakpoints_set.
1891 (handle_inferior_event): Remove references to removed globals.
1892 Use delete_stopped_threads_single_step_breakpoints.
1893 (handle_signal_stop): Adjust to per-thread single-step
1894 breakpoints. Swap test order to do cheaper tests first.
1895 (switch_back_to_stepped_thread): Extend debug output. Remove
1896 references to removed globals.
1897 * record-full.c (record_full_wait_1): Adjust to per-thread
1898 single-step breakpoints.
1899 * thread.c (delete_single_step_breakpoints)
1900 (thread_has_single_step_breakpoints_set)
1901 (thread_has_single_step_breakpoint_here): New functions.
1902 (clear_thread_inferior_resources): Also delete the thread's
1903 single-step breakpoints.
1905 2014-10-15 Pedro Alves <palves@redhat.com>
1907 * thread.c (delete_thread_breakpoint): New function.
1908 (delete_step_resume_breakpoint)
1909 (delete_exception_resume_breakpoint): Use it.
1910 (delete_at_next_stop): New function.
1911 (clear_thread_inferior_resources): Use delete_at_next_stop.
1913 2014-10-15 Pedro Alves <palves@redhat.com>
1915 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1916 (breakpoint_inserted_here_p): ... here. Remove special case for
1917 software single-step breakpoints.
1918 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1919 (software_breakpoint_inserted_here_p): ... here. Remove special
1920 case for software single-step breakpoints.
1921 (bp_target_info_copy_insertion_state)
1922 (deprecated_insert_raw_breakpoint)
1923 (deprecated_remove_raw_breakpoint): Delete functions.
1924 * breakpoint.h (deprecated_insert_raw_breakpoint)
1925 (deprecated_remove_raw_breakpoint): Remove declarations.
1927 2014-10-15 Pedro Alves <palves@redhat.com>
1930 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1931 Delete array globals.
1932 (single_step_breakpoints): New global.
1933 (breakpoint_xfer_memory): Remove special handling for single-step
1935 (update_breakpoints_after_exec): Delete bp_single_step
1937 (detach_breakpoints): Remove special handling for single-step
1939 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1940 (bpstat_stop_status): Add comment.
1941 (bpstat_what, bptype_string, print_one_breakpoint_location)
1942 (adjust_breakpoint_address, init_bp_location): Handle
1944 (new_single_step_breakpoint): New function.
1945 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1946 handling for single-step breakpoints.
1947 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1948 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1950 (detach_single_step_breakpoints, find_single_step_breakpoint):
1952 (breakpoint_has_location_inserted_here): New function.
1953 (single_step_breakpoint_inserted_here_p): Rewrite.
1954 * breakpoint.h: Remove FIXME.
1955 (enum bptype) <bp_single_step>: New enum value.
1956 (insert_single_step_breakpoint): Update comment.
1957 * infrun.c (resume_cleanups)
1958 (delete_step_thread_step_resume_breakpoint): Remove single-step
1960 (fetch_inferior_event): Install a cleanup that removes infrun
1962 (switch_back_to_stepped_thread) <expect thread advanced also>:
1963 Clear step-over info.
1965 2014-10-15 Pedro Alves <palves@redhat.com>
1967 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1968 (delete_thread_infrun_breakpoints): New function, with parts
1969 salvaged from delete_step_resume_breakpoint_callback.
1970 (delete_step_thread_step_resume_breakpoint): Delete.
1971 (for_each_just_stopped_thread_callback_func): New typedef.
1972 (for_each_just_stopped_thread): New function.
1973 (delete_just_stopped_threads_infrun_breakpoints): New function.
1974 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1975 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1977 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1979 2014-10-15 Pedro Alves <palves@redhat.com>
1981 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1982 trying to step past a non-steppable watchpoint.
1983 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1985 * infrun.c (struct step_over_info): Add new field
1986 'nonsteppable_watchpoint_p' and adjust comments.
1987 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1989 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1990 (stepping_past_nonsteppable_watchpoint): New function.
1991 (step_over_info_valid_p): Also return true if stepping past a
1992 nonsteppable watchpoint.
1993 (proceed): Adjust call to set_step_over_info. Remove reference to
1995 (init_wait_for_inferior): Remove reference to init_infwait_state.
1996 (waiton_ptid): Delete global.
1997 (struct execution_control_state)
1998 <stepped_after_stopped_by_watchpoint>: Delete field.
1999 (wait_for_inferior, fetch_inferior_event): Always pass
2000 minus_one_ptid to target_wait.
2001 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2003 (init_infwait_state): Delete function.
2004 (handle_inferior_event): Remove infwait_state handling.
2005 (handle_signal_stop) <watchpoints handling>: Adjust after
2006 stepped_after_stopped_by_watchpoint removal. Don't remove
2007 breakpoints here nor set infwait_state. Set the thread's
2008 stepping_over_watchpoint flag, and call keep_going instead.
2009 (keep_going): Handle stepping_over_watchpoint. Adjust
2010 set_step_over_info calls.
2011 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2014 2014-10-15 Pedro Alves <palves@redhat.com>
2016 * infrun.c (step_over_info_valid_p): New function.
2017 (resume): Use step_over_info_valid_p instead of checking the
2018 threads's trap_expected flag.
2020 2014-10-15 Doug Evans <dje@google.com>
2021 Walfred Tedeschi <walfred.tedeschi@intel.com>
2024 * python/lib/gdb/__init__.py (packages): Add "printer".
2025 * python/lib/gdb/command/bound_registers.py: Moved to ...
2026 * python/lib/gdb/printer/bound_registers.py: ... here.
2027 Add printer to global set of builtin printers. Rename printer from
2028 "bound" to "mpx_bound128".
2029 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2030 registered as global "builtin" printer.
2031 (add_builtin_pretty_printer): New function.
2032 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2033 gdb/printer/__init__.py.
2035 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2037 * Makefile.in (SFILES): Remove d-support.c.
2038 (COMMON_OBS): Remove d-support.o.
2039 * d-lang.h (d_parse_symbol): Remove declaration.
2040 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2041 * d-support.c: Remove file.
2043 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2045 * gdb/infrun.c (process_event_stop_test): Apply
2046 gdbarch_addr_bits_remove to longjmp resume address.
2048 2014-10-15 Pedro Alves <palves@redhat.com>
2050 * regformats/microblaze.dat: Delete file.
2052 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2054 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2055 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2057 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2059 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2062 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2066 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2067 with qualified args.
2069 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2071 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2072 of the case where the second operand is a pointer.
2073 <BINOP_SUB>: Likewise.
2075 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2077 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2078 only if it is not NULL.
2079 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2080 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2081 (struct probe_ops) <clear_semaphore>: Likewise.
2082 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2084 (stop_tracing): Likewise, for clear_semaphore.
2086 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2088 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2089 using language_c, instead of current_language.
2091 2014-10-13 Doug Evans <dje@google.com>
2093 * python/py-objfile.c (objfpy_initialize): New function.
2094 (objfpy_new, objfile_to_objfile_object): Call it.
2095 * python/py-progspace.c (pspy_initialize): New function.
2096 (pspy_new, pspace_to_pspace_object): Call it.
2098 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2099 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 Fix "save breakpoints" for "catch" command.
2102 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2105 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2107 Fix "save breakpoints" for "disable $bpnum" command.
2108 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2110 2014-10-10 Pedro Alves <palves@redhat.com>
2112 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2113 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2114 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2115 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2117 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2118 * configure.ac: Remove references to IRIX.
2119 * configure.host: Add *-*-irix* to the obsolete hosts section.
2120 Remove all other references to irix.
2121 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2124 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2126 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2127 isn't valid, release the tdesc arch data and return NULL.
2129 2014-10-10 Pedro Alves <palves@redhat.com>
2131 * linux-tdep.c: Include observer.h.
2132 (linux_inferior_data): New global.
2133 (struct linux_info): New structure.
2134 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2135 (get_linux_inferior_data): New functions.
2136 (linux_vsyscall_range): Rename to ...
2137 (linux_vsyscall_range_raw): ... this.
2138 (linux_vsyscall_range): New function; handles caching.
2139 (_initialize_linux_tdep): Register linux_inferior_data. Install
2140 inferior_exit and inferior_appeared observers.
2142 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 Pedro Alves <palves@redhat.com>
2146 * solib-svr4.c (svr4_read_so_list): Rename to ...
2147 (svr4_current_sos_1): ... this and change the function comment.
2148 (svr4_current_sos): New function.
2150 2014-10-10 Pedro Alves <palves@redhat.com>
2152 * arch-utils.c (default_vsyscall_range): New function.
2153 * arch-utils.h (default_vsyscall_range): New declaration.
2154 * gdbarch.sh (vsyscall_range): New hook.
2155 * gdbarch.h, gdbarch.c: Regenerate.
2156 * linux-tdep.c (linux_vsyscall_range): New function.
2157 (linux_init_abi): Install linux_vsyscall_range as
2158 vsyscall_range gdbarch hook.
2159 * memrange.c (address_in_mem_range): New function.
2160 * memrange.h (address_in_mem_range): New declaration.
2161 * symfile-mem.c (find_vdso_size): Delete function.
2162 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2164 2014-10-10 Pedro Alves <palves@redhat.com>
2166 * infrun.c (normal_stop): Fix typo in comment.
2168 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2171 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2172 typo when using logical AND to determine instruction type.
2174 2014-10-09 Yao Qi <yao@codesourcery.com>
2176 * infrun.c (handle_signal_stop): Remove local variable
2179 2014-10-08 Stan Shebs <stan@codesourcery.com>
2181 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2183 2014-10-08 Gary Benson <gbenson@redhat.com>
2185 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2187 2014-10-08 Gary Benson <gbenson@redhat.com>
2189 * common/common-defs.h: Include common-exceptions.h.
2190 * exceptions.h: Do not include common-exceptions.h.
2192 2014-10-08 Gary Benson <gbenson@redhat.com>
2194 * common/common-defs.h: Include cleanups.h.
2195 * common/common-exceptions.c: Do not include cleanups.h.
2196 * utils.h: Likewise.
2198 2014-10-08 Gary Benson <gbenson@redhat.com>
2200 * ada-lang.c: Do not include exceptions.h.
2201 * ada-valprint.c: Likewise.
2202 * amd64-tdep.c: Likewise.
2203 * auto-load.c: Likewise.
2204 * block.c: Likewise.
2205 * break-catch-throw.c: Likewise.
2206 * breakpoint.c: Likewise.
2207 * btrace.c: Likewise.
2208 * c-lang.c: Likewise.
2209 * cli/cli-cmds.c: Likewise.
2210 * cli/cli-interp.c: Likewise.
2211 * cli/cli-script.c: Likewise.
2212 * completer.c: Likewise.
2213 * corefile.c: Likewise.
2214 * corelow.c: Likewise.
2215 * cp-abi.c: Likewise.
2216 * cp-support.c: Likewise.
2217 * cp-valprint.c: Likewise.
2218 * darwin-nat.c: Likewise.
2219 * dwarf2-frame-tailcall.c: Likewise.
2220 * dwarf2-frame.c: Likewise.
2221 * dwarf2loc.c: Likewise.
2222 * dwarf2read.c: Likewise.
2224 * event-loop.c: Likewise.
2225 * event-top.c: Likewise.
2226 * f-valprint.c: Likewise.
2227 * frame-unwind.c: Likewise.
2228 * frame.c: Likewise.
2229 * gdbtypes.c: Likewise.
2230 * gnu-v2-abi.c: Likewise.
2231 * gnu-v3-abi.c: Likewise.
2232 * guile/scm-auto-load.c: Likewise.
2233 * guile/scm-breakpoint.c: Likewise.
2234 * guile/scm-cmd.c: Likewise.
2235 * guile/scm-frame.c: Likewise.
2236 * guile/scm-lazy-string.c: Likewise.
2237 * guile/scm-param.c: Likewise.
2238 * guile/scm-symbol.c: Likewise.
2239 * guile/scm-type.c: Likewise.
2240 * hppa-hpux-tdep.c: Likewise.
2241 * i386-tdep.c: Likewise.
2242 * inf-loop.c: Likewise.
2243 * infcall.c: Likewise.
2244 * infcmd.c: Likewise.
2245 * infrun.c: Likewise.
2246 * interps.c: Likewise.
2247 * interps.h: Likewise.
2249 * linespec.c: Likewise.
2250 * linux-nat.c: Likewise.
2251 * linux-thread-db.c: Likewise.
2252 * m32r-rom.c: Likewise.
2254 * memory-map.c: Likewise.
2255 * mi/mi-cmd-break.c: Likewise.
2256 * mi/mi-cmd-stack.c: Likewise.
2257 * mi/mi-interp.c: Likewise.
2258 * mi/mi-main.c: Likewise.
2259 * monitor.c: Likewise.
2260 * nto-procfs.c: Likewise.
2261 * objc-lang.c: Likewise.
2262 * p-valprint.c: Likewise.
2263 * parse.c: Likewise.
2264 * ppc-linux-tdep.c: Likewise.
2265 * printcmd.c: Likewise.
2266 * probe.c: Likewise.
2267 * python/py-auto-load.c: Likewise.
2268 * python/py-breakpoint.c: Likewise.
2269 * python/py-cmd.c: Likewise.
2270 * python/py-finishbreakpoint.c: Likewise.
2271 * python/py-frame.c: Likewise.
2272 * python/py-framefilter.c: Likewise.
2273 * python/py-function.c: Likewise.
2274 * python/py-gdb-readline.c: Likewise.
2275 * python/py-inferior.c: Likewise.
2276 * python/py-infthread.c: Likewise.
2277 * python/py-lazy-string.c: Likewise.
2278 * python/py-linetable.c: Likewise.
2279 * python/py-param.c: Likewise.
2280 * python/py-prettyprint.c: Likewise.
2281 * python/py-symbol.c: Likewise.
2282 * python/py-type.c: Likewise.
2283 * python/py-value.c: Likewise.
2284 * python/python-internal.h: Likewise.
2285 * python/python.c: Likewise.
2286 * record-btrace.c: Likewise.
2287 * record-full.c: Likewise.
2288 * regcache.c: Likewise.
2289 * remote-fileio.c: Likewise.
2290 * remote-mips.c: Likewise.
2291 * remote.c: Likewise.
2292 * rs6000-aix-tdep.c: Likewise.
2293 * rs6000-nat.c: Likewise.
2295 * solib-darwin.c: Likewise.
2296 * solib-dsbt.c: Likewise.
2297 * solib-frv.c: Likewise.
2298 * solib-ia64-hpux.c: Likewise.
2299 * solib-spu.c: Likewise.
2300 * solib-svr4.c: Likewise.
2301 * solib.c: Likewise.
2302 * spu-tdep.c: Likewise.
2303 * stack.c: Likewise.
2304 * stap-probe.c: Likewise.
2305 * symfile-mem.c: Likewise.
2306 * symmisc.c: Likewise.
2307 * target.c: Likewise.
2308 * thread.c: Likewise.
2310 * tracepoint.c: Likewise.
2311 * tui/tui-interp.c: Likewise.
2312 * typeprint.c: Likewise.
2313 * utils.c: Likewise.
2314 * valarith.c: Likewise.
2315 * valops.c: Likewise.
2316 * valprint.c: Likewise.
2317 * value.c: Likewise.
2318 * varobj.c: Likewise.
2319 * windows-nat.c: Likewise.
2320 * xml-support.c: Likewise.
2322 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2324 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2326 (extended_mips16_next_pc): Update accordingly.
2328 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2330 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2332 (micromips_instruction_is_compact_branch): Likewise.
2333 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2334 or a compact jump, reaching a jump delay slot, or seeing a
2335 second non-prologue instruction.
2336 (micromips_scan_prologue): Also terminate scanning upon seeing a
2337 compact branch or jump, or reaching a branch or jump delay slot.
2338 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2339 or jump delay slot, or seeing a second non-prologue instruction.
2340 (mips32_instruction_has_delay_slot): Retain instruction
2341 examination code only, update arguments accordingly and move
2342 instruction fetch pieces to...
2343 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2344 (micromips_instruction_has_delay_slot): Likewise and to...
2345 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2346 (mips16_instruction_has_delay_slot): Likewise and to...
2347 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2348 (mips_single_step_through_delay): Update accordingly.
2349 (mips_adjust_breakpoint_address): Likewise.
2351 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2353 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2354 !mustbe32 also return 1 for 32-bit instructions.
2355 (mips16_instruction_has_delay_slot): Likewise. Add an
2356 explanatory comment.
2358 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2360 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2363 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2365 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2367 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2368 for the breakpoint's address. Don't preinitialize `placed_size'.
2369 (insert_bp_location): Set `reqstd_address' rather than
2371 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2372 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2374 (bkpt_remove_location): Likewise.
2375 (deprecated_insert_raw_breakpoint): Likewise.
2376 (deprecated_remove_raw_breakpoint): Likewise.
2377 (find_single_step_breakpoint): Likewise.
2378 * mem-break.c (default_memory_insert_breakpoint): Use
2379 `reqstd_address' for the breakpoint's address. Don't set
2380 `placed_address' or `placed_size' if breakpoint contents couldn't
2381 have been determined.
2382 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2383 the breakpoint's address.
2384 (remote_insert_hw_breakpoint): Likewise. Don't set
2385 `placed_address' or `placed_size' if breakpoint couldn't have been
2387 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2388 `reqstd_address' for the breakpoint's address.
2389 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2390 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2391 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2392 * microblaze-linux-tdep.c
2393 (microblaze_linux_memory_remove_breakpoint): Likewise.
2394 * monitor.c (monitor_insert_breakpoint): Likewise.
2395 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2396 (procfs_insert_hw_breakpoint): Likewise.
2397 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2398 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2399 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2400 * remote-mips.c (mips_insert_breakpoint): Likewise.
2401 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2403 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2405 * valops.c (value_assign): Check for bit field assignments
2406 before calling architecture-specific register value
2407 conversion functions.
2409 2014-10-03 Pierre Muller <muller@sourceware.org>
2411 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2413 2014-10-02 Pedro Alves <palves@redhat.com>
2415 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2416 threads_are_executing.
2417 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2419 * gdbthread.h (threads_are_executing): Declare.
2420 (handle_signal_stop) <random signals>: Don't print about the
2421 signal here if stopping.
2422 (end_stepping_range): Don't notify observers here.
2423 (normal_stop): Update the thread list. If stopped by a random
2424 signal or a stepping range ended, notify observers.
2425 * thread.c (threads_executing): New global.
2426 (init_thread_list): Clear 'threads_executing'.
2427 (set_executing): Set or clear 'threads_executing'.
2428 (threads_are_executing): New function.
2429 (update_threads_executing): New function.
2430 (update_thread_list): Use it.
2432 2014-10-02 Pedro Alves <palves@redhat.com>
2434 PR breakpoints/17431
2435 * breakpoint.c (update_breakpoints_after_exec): Don't create
2436 overlay, longjmp, std terminate nor exception breakpoints here.
2438 2014-10-02 Pedro Alves <palves@redhat.com>
2440 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2442 * inferior.c (find_inferior_for_program_space): Give preference to
2443 the current inferior.
2444 * inferior.h (find_inferior_for_program_space): Update comment.
2445 * progspace.c (switch_to_program_space_and_thread): Prefer the
2446 current inferior if it's bound to the program space requested. If
2447 the inferior found doesn't have a PID yet, don't bother looking up
2449 * progspace.h (switch_to_program_space_and_thread): Adjust
2451 * thread.c (any_thread_of_process, any_live_thread_of_process):
2452 Give preference to the current thread.
2454 2014-10-01 Pedro Alves <palves@redhat.com>
2456 * breakpoint.c (insert_bp_location): Error out if inserting a
2457 software breakpoint at a read-only address.
2458 * target.c (memory_xfer_check_region): New function, factored out
2460 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2462 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2463 against the memory region attributes.
2465 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2467 * NEWS: Announce new exit-code field in -list-thread-groups
2469 * inferior.c (exit_inferior_1): Don't clear exit code.
2470 (inferior_appeared): Clear exit code.
2471 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2474 2014-10-01 Pedro Alves <palves@redhat.com>
2476 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2477 GENERATED" along with emacs/vi read-only markers.
2478 * regformats/aarch64.dat: Regenerate.
2479 * regformats/arm-with-iwmmxt.dat: Regenerate.
2480 * regformats/arm-with-neon.dat: Regenerate.
2481 * regformats/arm-with-vfpv2.dat: Regenerate.
2482 * regformats/arm-with-vfpv3.dat: Regenerate.
2483 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2484 * regformats/i386/amd64-avx.dat: Regenerate.
2485 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2486 * regformats/i386/amd64-avx512.dat: Regenerate.
2487 * regformats/i386/amd64-linux.dat: Regenerate.
2488 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2489 * regformats/i386/amd64-mpx.dat: Regenerate.
2490 * regformats/i386/amd64.dat: Regenerate.
2491 * regformats/i386/i386-avx-linux.dat: Regenerate.
2492 * regformats/i386/i386-avx.dat: Regenerate.
2493 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2494 * regformats/i386/i386-avx512.dat: Regenerate.
2495 * regformats/i386/i386-linux.dat: Regenerate.
2496 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2497 * regformats/i386/i386-mmx.dat: Regenerate.
2498 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2499 * regformats/i386/i386-mpx.dat: Regenerate.
2500 * regformats/i386/i386.dat: Regenerate.
2501 * regformats/i386/x32-avx-linux.dat: Regenerate.
2502 * regformats/i386/x32-avx.dat: Regenerate.
2503 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2504 * regformats/i386/x32-avx512.dat: Regenerate.
2505 * regformats/i386/x32-linux.dat: Regenerate.
2506 * regformats/i386/x32.dat: Regenerate.
2507 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2508 * regformats/mips-dsp-linux.dat: Regenerate.
2509 * regformats/mips-linux.dat: Regenerate.
2510 * regformats/mips64-dsp-linux.dat: Regenerate.
2511 * regformats/mips64-linux.dat: Regenerate.
2512 * regformats/nios2-linux.dat: Regenerate.
2513 * regformats/rs6000/powerpc-32.dat: Regenerate.
2514 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2515 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2516 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2517 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2518 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2519 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2520 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2521 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2522 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2523 * regformats/s390-linux32.dat: Regenerate.
2524 * regformats/s390-linux32v1.dat: Regenerate.
2525 * regformats/s390-linux32v2.dat: Regenerate.
2526 * regformats/s390-linux64.dat: Regenerate.
2527 * regformats/s390-linux64v1.dat: Regenerate.
2528 * regformats/s390-linux64v2.dat: Regenerate.
2529 * regformats/s390-te-linux64.dat: Regenerate.
2530 * regformats/s390x-linux64.dat: Regenerate.
2531 * regformats/s390x-linux64v1.dat: Regenerate.
2532 * regformats/s390x-linux64v2.dat: Regenerate.
2533 * regformats/s390x-te-linux64.dat: Regenerate.
2534 * regformats/tic6x-c62x-linux.dat: Regenerate.
2535 * regformats/tic6x-c62x.dat: Regenerate.
2536 * regformats/tic6x-c64x-linux.dat: Regenerate.
2537 * regformats/tic6x-c64x.dat: Regenerate.
2538 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2539 * regformats/tic6x-c64xp.dat: Regenerate.
2541 2014-10-01 Pedro Alves <palves@redhat.com>
2543 * features/Makefile: Update comments.
2544 (XMLTOC): List all xml files we build C files from.
2545 (clean-cfiles): New rule.
2547 2014-10-01 Pedro Alves <palves@redhat.com>
2549 * features/i386/amd64-avx512-linux.c: Regenerate.
2550 * features/i386/amd64-avx512.c: Regenerate.
2551 * features/i386/x32-avx512-linux.c: Regenerate.
2552 * features/i386/x32-avx512.c: Regenerate.
2554 2014-10-01 Pedro Alves <palves@redhat.com>
2556 * features/Makefile (WHICH): Remove arm-with-m,
2557 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2559 2014-10-01 Pedro Alves <palves@redhat.com>
2561 * features/Makefile (clean): New rule.
2563 2014-10-01 Pedro Alves <palves@redhat.com>
2565 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2566 (zmm14h): Add missing end quotes.
2568 2014-10-01 Pedro Alves <palves@redhat.com>
2570 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2571 * features/aarch64.c: Regenerate.
2573 2014-09-30 Don Breazeal <donb@codesourcery.com>
2575 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2576 code so as to work with follow_fork_inferior.
2577 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2578 (inf_ttrace_create_inferior): Remove reference to
2579 inf_ttrace_vfork_ppid.
2580 (inf_ttrace_attach): Ditto.
2581 (inf_ttrace_detach): Ditto.
2582 (inf_ttrace_kill): Use current_inferior instead of
2583 inf_ttrace_vfork_ppid.
2584 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2585 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2586 inferior away from the parent.
2587 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2589 (follow_fork_inferior): New function.
2590 (follow_inferior_reset_breakpoints): Make function static.
2591 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2592 * linux-nat.c (linux_child_follow_fork): Move target-independent
2593 code to infrun.c:follow_fork_inferior.
2595 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2597 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2598 * gdbarch.c: Regenerate.
2599 * gdbarch.h: Likewise.
2600 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2601 gdbarch method 'regset_from_core_section'.
2602 (get_core_register_section): Remove handling for the case that
2603 regset == NULL and regset_from_core_section is defined.
2604 (get_core_registers): Drop check for deleted method.
2605 * procfs.c (procfs_do_thread_registers): Adjust comment.
2607 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2610 (linux_nat_make_corefile_notes): Remove.
2611 (linux_target_install_ops): Do not set target method
2612 'make_corefile_notes'.
2613 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2615 (linux_corefile_thread_callback): Instead of args->collect, call
2616 linux_collect_thread_registers.
2617 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2618 NULL unless there is a regset iterator.
2619 (linux_make_corefile_notes_1): Remove.
2620 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2621 by linux_make_corefile_notes.
2622 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2627 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2629 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2634 (xtensa_iterate_over_regset_sections): New.
2635 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2637 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639 * vax-tdep.c (vax_regset_from_core_section): Remove.
2640 (vax_iterate_over_regset_sections): New.
2641 (vax_gdbarch_init): Adjust gdbarch initialization.
2643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2645 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2646 (tilegx_regset_from_core_section): Remove.
2647 (tilegx_iterate_over_regset_sections): New.
2648 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2650 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2653 (sparc_iterate_over_regset_sections): New.
2654 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2655 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2657 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2658 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2659 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2660 target method 'make_corefile_notes'.
2662 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2665 'sizeof_gregset' and 'sizeof_fpregset'.
2666 * sh-tdep.c (sh_regset_from_core_section): Remove.
2667 (sh_iterate_over_regset_sections): New.
2668 (sh_gdbarch_init): Adjust gdbarch initialization.
2669 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2671 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2674 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2677 (score7_linux_iterate_over_regset_sections): New.
2678 (score_gdbarch_init): Adjust gdbarch initialization.
2680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2682 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2684 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2685 method 'make_corefile_notes'.
2686 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2687 (ppcfbsd_regset_from_core_section): Remove.
2688 (ppcfbsd_iterate_over_regset_sections): New.
2689 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2691 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2692 (ppcnbsd_iterate_over_regset_sections): New.
2693 (ppcnbsd_init_abi): Adjust.
2694 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2695 (ppcobsd_iterate_over_regset_sections): New.
2696 (ppcobsd_init_abi): Adjust.
2697 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2698 (rs6000_aix_iterate_over_regset_sections): New.
2699 (rs6000_aix_init_osabi): Adjust.
2701 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2703 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2704 (nios2_regset_from_core_section): Remove.
2705 (nios2_iterate_over_regset_sections): New.
2706 (nios2_linux_init_abi): Adjust gdbarch initialization.
2708 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2710 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2711 (am33_iterate_over_regset_sections): New.
2712 (am33_linux_init_osabi): Adjust gdbarch initialization.
2714 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2716 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2717 (mips_linux_iterate_over_regset_sections): New.
2718 (mips_linux_init_abi): Adjust gdbarch initialization.
2719 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2720 (mips64obsd_iterate_over_regset_sections): New.
2721 (mips64obsd_init_abi): Adjust.
2722 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2723 (mipsnbsd_iterate_over_regset_sections): New.
2724 (mipsnbsd_init_abi): Adjust.
2726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2729 (m88k_iterate_over_regset_sections): New.
2730 (m88k_gdbarch_init): Adjust gdbarch initialization.
2732 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2734 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2735 (ia64_linux_iterate_over_regset_sections): New.
2736 (ia64_linux_init_abi): Adjust gdbarch initialization.
2738 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2740 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2741 (m68kbsd_iterate_over_regset_sections): New.
2742 (m68kbsd_init_abi): Adjust gdbarch initialization.
2743 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2744 (m68k_linux_iterate_over_regset_sections): New.
2745 (m68k_linux_init_abi): Adjust gdbarch initialization.
2747 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2749 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2750 (m32r_linux_regset_from_core_section): Remove.
2751 (m32r_linux_iterate_over_regset_sections): New.
2752 (m32r_linux_init_abi): Adjust gdbarch initialization.
2754 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2756 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2757 (amd64obsd_iterate_over_regset_sections): New.
2758 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2759 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2761 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2762 regset_from_core_section initialization.
2763 * i386-tdep.c (i386_regset_from_core_section): Remove.
2764 (i386_iterate_over_regset_sections): New.
2765 (i386_gdbarch_init): Adjust gdbarch initialization.
2766 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2767 (i386_iterate_over_regset_sections): New prototype.
2768 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2770 (i386obsd_aout_iterate_over_regset_sections): New.
2771 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2772 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2774 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2775 (amd64fbsd_init_abi): Call fbsd_init_abi.
2776 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2777 (i386fbsd4_init_abi): Call fbsd_init_abi.
2778 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2779 target method 'make_corefile_notes'.
2780 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2782 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2785 (hppa_hpux_iterate_over_regset_sections): New.
2786 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2787 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2788 (hppa_linux_iterate_over_regset_sections): New.
2789 (hppa_linux_init_abi): Adjust.
2790 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2791 (hppanbsd_iterate_over_regset_sections): New.
2792 (hppanbsd_init_abi): Adjust.
2793 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2794 (hppaobsd_iterate_over_regset_sections): New.
2795 (hppaobsd_init_abi): Adjust.
2797 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2799 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2800 (frv_linux_iterate_over_regset_sections): New.
2801 (frv_linux_init_abi): Adjust gdbarch initialization.
2803 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2805 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2806 (armbsd_iterate_over_regset_sections): New prototype.
2807 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2808 (armbsd_iterate_over_regset_sections): New.
2809 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2812 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2814 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2815 (alpha_linux_iterate_over_regset_sections): New.
2816 (alpha_linux_init_abi): Adjust gdbarch initialization.
2817 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2819 (alphanbsd_iterate_over_regset_sections): New prototype.
2821 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2825 (aarch64_linux_iterate_over_regset_sections): New.
2826 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2828 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2830 * fbsd-tdep.c: New file.
2831 * fbsd-tdep.h: New file.
2832 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2833 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2834 (ALLDEPFILES): Add fbsd-tdep.c.
2836 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2840 * gdbarch.h: Regenerate.
2841 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2843 (get_core_register_section): Add parameter 'regset' and use it, if
2844 set. Add parameter 'min_size' and verify the bfd section size
2846 (get_core_registers_cb): Add parameter 'regset' and pass it to
2847 get_core_register section. For the "standard" register sections
2848 ".reg" and ".reg2", set an appropriate default for human_name.
2849 (get_core_registers): Don't abort when the gdbarch has an iterator
2850 but no regset_from_core_section. Add NULL/0 for parameters
2851 'regset'/'min_size' in calls to get_core_register_section.
2852 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2853 'regset' and use it instead of calling the
2854 regset_from_core_section gdbarch method.
2855 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2856 * i386-tdep.c (i386_supply_xstateregset)
2857 (i386_collect_xstateregset, i386_xstateregset): Moved to
2859 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2861 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2862 core file support only if the regset iterator hasn't been set.
2863 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2864 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2865 Moved from i386-tdep.c and renamed to *_linux*.
2866 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2867 each callback invocation. Allow any .reg-xstate size when reading
2869 * amd64-tdep.c (amd64_supply_xstateregset)
2870 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2872 (amd64_regset_from_core_section): Remove.
2873 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2874 install an amd64-specific regset_from_core_section gdbarch method.
2875 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2876 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2877 Moved from amd64-tdep.c and renamed to *_linux*.
2878 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2879 to each callback invocation. Allow any .reg-xstate size when
2880 reading from a core file.
2881 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2882 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2883 each callback invocation.
2884 (arm_linux_init_abi): No longer set the regset_from_core_section
2886 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2887 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2888 each callback invocation.
2889 (ppc_linux_init_abi): No longer set the regset_from_core_section
2891 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2892 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2893 (s390_regset_from_core_section): Remove.
2894 (s390_iterate_over_regset_sections): Add regset parameter to each
2895 callback invocation.
2896 (s390_gdbarch_init): No longer set the regset_from_core_section
2897 gdbarch method. Drop initialization of deleted tdep fields.
2899 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2901 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2902 (amd64_linux_iterate_over_regset_sections): New.
2903 (amd64_linux_init_abi_common): Don't install the regset section
2904 list, but the new iterator in gdbarch.
2905 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2906 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2907 (arm_linux_iterate_over_regset_sections): ...here. New function.
2908 (arm_linux_init_abi): Set iterator instead of section list.
2909 * corelow.c (get_core_registers_cb): New function, logic moved
2911 (get_core_registers): ...loop body here. Use new iterator method
2912 instead of walking through the regset section list.
2913 * gdbarch.sh: Remove 'core_regset_sections'. New method
2914 'iterate_over_regset_sections'. New typedef
2915 'iterate_over_regset_sections_cb'.
2916 * gdbarch.c: Regenerate.
2917 * gdbarch.h: Likewise.
2918 * i386-linux-tdep.c (i386_linux_regset_sections)
2919 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2921 (i386_linux_iterate_over_regset_sections): New.
2922 (i386_linux_init_abi): Don't choose a regset section list, but
2923 install new iterator in gdbarch.
2924 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2925 (linux_collect_regset_section_cb): New function, logic moved
2927 (linux_collect_thread_registers): ...loop body here. Use iterator
2928 method instead of walking through list.
2929 (linux_make_corefile_notes_1): Check for presence of iterator
2930 method instead of regset section list.
2931 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2932 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2933 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2934 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2935 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2936 (ppc_linux_init_abi): Don't choose from above regset section
2937 lists, but install new iterator in gdbarch.
2938 * regset.h (struct core_regset_section): Remove.
2939 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2940 have_linux_v1, have_linux_v2, and have_tdb.
2941 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2942 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2943 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2944 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2945 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2946 (s390_iterate_over_regset_sections): ...here. New function. Use
2948 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2949 regset section lists, but install new iterator.
2951 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2953 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2955 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2957 * progspace.c (print_program_space): Don't prune program spaces
2958 before printing them.
2960 2014-09-25 Pedro Alves <palves@redhat.com>
2962 * infrun.c (user_visible_resume_ptid): Don't check
2963 singlestep_breakpoints_inserted_p.
2965 2014-09-25 Pedro Alves <palves@redhat.com>
2967 * breakpoint.c (should_be_inserted): Add debug output.
2969 2014-09-25 Pedro Alves <palves@redhat.com>
2971 * infrun.c (stepping_past_instruction_at)
2972 (clear_exit_convenience_vars): Point at infrun.h instead of
2974 (handle_signal_stop): Fix typo.
2976 2014-09-24 Yao Qi <yao@codesourcery.com>
2978 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2981 2014-09-22 Gary Benson <gbenson@redhat.com>
2983 * target.c (target_stop): Updated comment.
2985 2014-09-22 Gary Benson <gbenson@redhat.com>
2987 * target/target.h (target_stop_ptid): Renamed as...
2988 (target_stop_and_wait): New function. Updated comment.
2990 (target_continue_ptid): Renamed as...
2991 (target_continue_no_signal): New function. Updated comment.
2994 2014-09-22 Pedro Alves <palves@redhat.com>
2996 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2998 * breakpoint.c (enum ugll_insert_mode): New enum.
2999 (always_inserted_mode): Now a plain boolean.
3000 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3001 (breakpoints_always_inserted_mode): Delete.
3002 (breakpoints_should_be_inserted_now): New function.
3003 (insert_breakpoints): Pass UGLL_INSERT to
3004 update_global_location_list instead of calling
3005 insert_breakpoint_locations manually.
3006 (create_solib_event_breakpoint_1): New, factored out from ...
3007 (create_solib_event_breakpoint): ... this.
3008 (create_and_insert_solib_event_breakpoint): Use
3009 create_solib_event_breakpoint_1 instead of calling
3010 insert_breakpoint_locations manually.
3011 (update_global_location_list): Change parameter type from boolean
3012 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3013 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3014 (update_global_location_list_nothrow): Change parameter type from
3015 boolean to enum ugll_insert_mode.
3016 (_initialize_breakpoint): "breakpoint always-inserted" option is
3017 now a boolean command. Update help text.
3018 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3019 (breakpoints_should_be_inserted_now): New declaration.
3020 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3021 Remove breakpoints_always_inserted_mode check.
3022 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3023 * remote.c (remote_start_remote): Likewise.
3025 2014-09-22 Pedro Alves <palves@redhat.com>
3027 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3028 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3029 Instead, pass UGLL_INSERT to update_global_location_list.
3030 (update_global_location_list): Change parameter type from boolean
3031 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3032 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3033 (create_solib_event_breakpoint_1): New, factored out from ...
3034 (create_solib_event_breakpoint): ... this.
3035 (create_and_insert_solib_event_breakpoint): Use
3036 create_solib_event_breakpoint_1 instead of calling
3037 insert_breakpoint_locations manually.
3038 (update_global_location_list): Handle UGLL_INSERT.
3040 2014-09-22 Pedro Alves <palves@redhat.com>
3042 * breakpoint.c (enum ugll_insert_mode): New enum.
3043 (update_global_location_list)
3044 (update_global_location_list_nothrow): Change parameter type from
3045 boolean to enum ugll_insert_mode. All callers adjusted.
3047 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3049 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3050 SystemTap support in GDB.
3052 2014-09-19 Don Breazeal <donb@codesourcery.com>
3054 * linux-nat.c (linux_handle_extended_wait): Call
3055 linux_ptrace_get_extended_event.
3056 (wait_lwp): Call linux_is_extended_waitstatus.
3057 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3058 and linux_is_extended_waitstatus.
3059 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3060 linux_ptrace_get_extended_event.
3061 (linux_ptrace_get_extended_event): New function.
3062 (linux_is_extended_waitstatus): New function.
3063 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3064 (linux_is_extended_waitstatus): New declarations.
3066 2014-09-19 Yao Qi <yao@codesourcery.com>
3068 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3069 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3070 comments. Callers update.
3071 (dwarf_decode_lines): Likewise.
3072 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3073 comments. Skip the line table if 'lowpc' is greater than
3074 'address'. Don't check
3075 dwarf2_per_objfile->has_section_at_zero.
3077 2014-09-18 Doug Evans <dje@google.com>
3079 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3080 * python/py-symtab.c (stpy_get_producer): New function.
3081 (symtab_object_getset): Add "producer" attribute.
3083 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3086 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3087 (do_captured_read_memory_integer): Remove.
3088 (safe_read_memory_integer): Use target_read_memory directly instead
3089 of catching errors in do_captured_read_memory_integer.
3091 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3093 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3096 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3098 * objc-lang.c (find_implementation_from_class): Remove dead code.
3100 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3103 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3104 "fprintf_unfiltered (gdb_stdlog...)".
3106 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3108 PR breakpoints/12526
3109 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3111 * breakpoint.c (watch_command_1): Use these fields to retain
3112 bitfield information.
3113 (extract_bitfield_from_watchpoint_value): New function.
3114 (watchpoint_check): Use it.
3115 (update_watchpoint): Use it. Optimize the address and length of a
3116 HW watchpoint pointing to a bitfield.
3117 * value.h (unpack_value_bitfield): New prototype.
3118 * value.c (unpack_value_bitfield): Make extern.
3120 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3122 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3124 * gnu-nat.c (inf_threads): New function.
3125 * gnu-nat.h (inf_threads_ftype): New typedef.
3126 (inf_threads): New declaration.
3127 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3128 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3129 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3130 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3131 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3132 (i386_gnu_dr_get_control): New functions.
3133 (reg_addr): New structure.
3134 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3135 i386 debugging register hooks.
3136 * NEWS: Mention this.
3138 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3140 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3141 vector data transfer instructions.
3142 (arm_record_coproc_data_proc): Updated.
3144 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3146 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3147 arm_record_exreg_ld_st_insn.
3148 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3151 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3153 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3154 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3155 processing instructions.
3157 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3159 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3160 for advance SIMD struct ld/st insn.
3161 (thumb2_record_decode_insn_handler): Replace stub handler with
3162 thumb2_record_asimd_struct_ld_st.
3164 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3166 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3167 for asimd, vfp and coprocessor insns.
3168 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3169 and coprocessor insns.
3170 (thumb2_record_coproc_insn): New function.
3171 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3173 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3176 2014-09-13 Doug Evans <xdje42@gmail.com>
3178 * NEWS: Mention new "queue-signal" command.
3179 * infcmd.c (queue_signal_command): New function.
3180 (_initialize_infcmd): Add new queue-signal command.
3182 2014-09-13 Doug Evans <xdje42@gmail.com>
3184 * linux-nat.c (wait_lwp): Add debugging printf.
3185 (linux_nat_wait_1): Ditto.
3187 2014-09-12 Pedro Alves <palves@redhat.com>
3189 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3190 (create_and_insert_solib_event_breakpoint): New functions.
3191 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3192 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3193 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3194 (remove_dbx_link_breakpoint): Delete function.
3195 (insert_dbx_link_bpt_in_file): Use
3196 create_and_insert_solib_event_breakpoint instead of
3197 deprecated_insert_raw_breakpoint.
3198 (procfs_wait): Don't check whether we hit __dbx_link here.
3199 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3201 * solib-irix.c (base_breakpoint): Delete global.
3202 (disable_break): Delete function.
3203 (enable_break): Use create_solib_event_breakpoint
3204 instead of deprecated_insert_raw_breakpoint.
3205 (irix_solib_handle_event): New function.
3206 (irix_solib_create_inferior_hook): Don't run the target or disable
3207 the mapping-complete breakpoint here.
3208 (_initialize_irix_solib): Install irix_solib_handle_event as
3209 so_ops->handle_event hook.
3211 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3212 Ulrich Weigand <uweigand@de.ibm.com>
3215 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3216 instead of read_memory_unsigned_integer.
3218 2014-09-12 Gary Benson <gbenson@redhat.com>
3220 * nat/linux-waitpid.c: Include common-defs.h.
3221 [GDBSERVER]: Add FIXME comment.
3222 [!GDBSERVER]: Don't include defs.h or signal.h.
3223 (linux_debug) [!GDBSERVER]: Remove empty block.
3225 2014-09-12 Gary Benson <gbenson@redhat.com>
3227 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3228 Don't include defs.h or server.h.
3230 2014-09-12 Gary Benson <gbenson@redhat.com>
3232 * nat/linux-btrace.c: Include common-defs.h.
3233 Don't include defs.h, server.h or gdbthread.h.
3234 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3236 2014-09-12 Gary Benson <gbenson@redhat.com>
3238 * common/agent.c: Include common-defs.h.
3239 Don't include defs.h or server.h.
3240 * common/buffer.c: Likewise.
3241 * common/common-debug.c: Likewise.
3242 * common/common-utils.c: Likewise.
3243 * common/errors.c: Likewise.
3244 * common/filestuff.c: Likewise.
3245 * common/format.c: Likewise.
3246 * common/gdb_vecs.c: Likewise.
3247 * common/print-utils.c: Likewise.
3248 * common/ptid.c: Likewise.
3249 * common/rsp-low.c: Likewise.
3250 * common/signals.c: Likewise.
3251 * common/vec.c: Likewise.
3252 * common/xml-utils.c: Likewise.
3253 * nat/linux-osdata.c: Likewise.
3254 * nat/linux-procfs.c: Likewise.
3255 * nat/linux-ptrace.c: Likewise.
3256 * nat/mips-linux-watch.c: Likewise.
3257 * target/waitstatus.c: Likewise.
3259 2014-09-12 Tom Tromey <tromey@redhat.com>
3260 Gary Benson <gbenson@redhat.com>
3262 * common/common-regcache.h: New file.
3263 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3264 * regcache.h: Include common-regcache.h.
3265 (regcache_read_pc): Don't declare.
3266 * regcache.c (get_thread_regcache_for_ptid): New function.
3267 * nat/linux-btrace.c: Don't include regcache.h.
3268 Include common-regcache.h.
3269 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3271 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3273 * regcache.h (struct regset): Declare.
3275 2014-09-11 Pedro Alves <palves@redhat.com>
3278 * main.c: Include "infrun.h".
3279 (catch_command_errors, catch_command_errors_const): Wait for the
3280 foreground command to complete.
3281 * top.c (maybe_wait_sync_command_done): New function, factored out
3283 (maybe_wait_sync_command_done): ... here.
3284 * top.h (maybe_wait_sync_command_done): New declaration.
3286 2014-09-11 Tom Tromey <tromey@redhat.com>
3287 Gary Benson <gbenson@redhat.com>
3289 * common/symbol.h: New file.
3290 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3291 * minsyms.c (find_minimal_symbol_address): New function.
3292 * common/agent.c: Include common/symbol.h.
3293 [!GDBSERVER]: Don't include objfiles.h.
3294 (agent_look_up_symbols): Use find_minimal_symbol_address.
3296 2014-09-11 Gary Benson <gbenson@redhat.com>
3298 * target/target.h (target_stop_ptid, target_continue_ptid):
3300 * target.c (target_stop_ptid, target_continue_ptid): New
3302 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3303 (agent_run_command): Always use target_stop_ptid and
3304 target_continue_ptid.
3306 2014-09-11 Tom Tromey <tromey@redhat.com>
3307 Gary Benson <gbenson@redhat.com>
3309 * target/target.h: New file.
3310 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3311 * target.h: Include target/target.h.
3312 (target_read_memory, target_write_memory): Don't declare.
3313 * target.c (target_read_uint32): New function.
3314 * common/agent.c: Include target/target.h.
3315 [!GDBSERVER]: Don't include target.h.
3316 (helper_thread_id): Type changed to uint32_t.
3317 (agent_get_helper_thread_id): Use target_read_uint32.
3318 (agent_run_command): Always use target_read_memory and
3319 target_write_memory.
3320 (agent_capability): Type changed to uint32_t.
3321 (agent_capability_check): Use target_read_uint32.
3323 2014-09-11 Gary Benson <gbenson@redhat.com>
3325 * common/common-debug.h (show_debug_regs): Declare.
3326 * common/common-debug.c (show_debug_regs): Define.
3327 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3328 all uses with show_debug_regs. Replace all uses that considered
3329 debug_hw_points as a multi-value integer with straight boolean
3331 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3332 with show_debug_regs.
3333 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3334 all uses with show_debug_regs.
3335 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3336 uses with show_debug_regs.
3338 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3340 * findvar.c (address_from_register): Handle targets requiring
3341 a special conversion routine even for plain pointer types.
3343 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3345 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3346 (store_register): Do not call exec_one_dummy_insn.
3348 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3350 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3351 dereference it first. Use value_enclosing_type instead of
3353 (ada_array_length): Likewise.
3355 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3357 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3358 Adjust function implementation and documentation accordingly.
3359 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3360 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3361 Update call to ada_value_ptr_subscript.
3363 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3365 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3366 instead of VAL's type.
3368 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3370 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3372 2014-09-09 Doug Evans <xdje42@gmail.com>
3375 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3376 last parameter to pkg-config, not first.
3377 * configure.ac: Pass --with-guile provided pkg-config path to
3378 GDB_GUILE_PROGRAM_NAMES.
3379 * configure: Regenerate.
3381 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3383 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3386 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3388 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3389 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3390 the list of sections determining GDB_OSABI_IRIX.
3392 2014-09-09 James Hogan <james.hogan@imgtec.com>
3394 * MAINTAINERS (Write After Approval): Add "James Hogan".
3396 2014-09-09 James Hogan <james.hogan@imgtec.com>
3398 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3400 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3402 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3404 2014-09-08 Doug Evans <xdje42@gmail.com>
3407 * guile.c: #include <signal.h>.
3408 (_initialize_guile): Block SIGCHLD while initializing Guile.
3410 Replaces the following, which is reverted.
3412 2014-07-26 Doug Evans <xdje42@gmail.com>
3415 * configure.ac: Add check for header gc/gc.h.
3416 Add check for function setenv.
3417 * configure: Regenerate.
3418 * config.in: Regenerate.
3419 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3421 2014-09-08 Doug Evans <xdje42@gmail.com>
3423 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3424 with named constant. Fix style of pointer comparison.
3425 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3427 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3430 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3431 decide whether we display the command on "show user".
3432 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3433 printing command name.
3434 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3435 * cli/cli-decode.c (cli_user_command_p): Create helper function
3436 to verify whether cmd_list_element is a user-defined command.
3438 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3441 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3442 Fix goto out of TRY_CATCH.
3444 2014-09-06 Doug Evans <xdje42@gmail.com>
3445 Tom Tromey <tromey@redhat.com>
3448 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3449 $_any_caller_matches.
3450 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3451 * python/lib/gdb/function/caller_is.py: New file.
3453 2014-09-06 Doug Evans <xdje42@gmail.com>
3455 * infcmd.c (program_info): Fix typo.
3457 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3460 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3461 'number'. New variable 'has_digit'. Rewrite code to deal with
3462 subexpressions on SDT probes.
3464 2014-09-04 Pedro Alves <palves@redhat.com>
3466 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3467 the input is only one character long.
3469 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3472 * f-valprint.c (f_val_print): Specify the correct print option to
3473 use when printing integer values.
3475 2014-09-04 Gary Benson <gbenson@redhat.com>
3477 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3478 Remove code to cope with LWPs wrapped as PIDs.
3479 Add assertions to ensure no wrapped LWPs are passed.
3481 2014-09-04 Pedro Alves <palves@redhat.com>
3483 * value.c (value_ranges_copy_adjusted): New function, factored out
3485 (value_contents_copy_raw): ... here.
3486 (unpack_value_bits_as_long_1): Rename back to ...
3487 (unpack_bits_as_long): ... this. Remove 'original_value' and
3488 'result' parameters. Change return type to LONGEST.
3489 (unpack_value_bits_as_long): Delete.
3490 (unpack_value_field_as_long_1): Delete.
3491 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3492 (unpack_value_bitfield): New function.
3493 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3494 (value_fetch_lazy): Use unpack_value_bitfield.
3495 * value.h (unpack_value_bits_as_long): Delete declaration.
3497 2014-09-03 Sasha Smundak <asmundak@google.com>
3499 * python/py-frame.c (frapy_read_register): New function.
3501 2014-09-03 James Hogan <james.hogan@imgtec.com>
3503 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3504 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3506 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3509 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3511 (add_cmd): Set "completer_handle_brkchars" to NULL.
3512 * cli/cli-decode.h (struct cmd_list_element)
3513 <completer_handle_brkchars>: New field.
3514 * command.h (completer_ftype_void): New typedef.
3515 (set_cmd_completer_handle_brkchars): New prototype.
3516 * completer.c (set_gdb_completion_word_break_characters): New
3518 (complete_line_internal): Call "completer_handle_brkchars"
3519 callback from command.
3520 * completer.h: Include "command.h".
3521 (set_gdb_completion_word_break_characters): New prototype.
3522 * python/py-cmd.c (cmdpy_completer_helper): New function.
3523 (cmdpy_completer_handle_brkchars): New function.
3524 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3525 (cmdpy_init): Set completer_handle_brkchars to
3526 cmdpy_completer_handle_brkchars.
3528 2014-09-03 Gary Benson <gbenson@redhat.com>
3530 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3531 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3532 Loop conditions changed to equivalent form.
3533 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3534 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3535 ALL_DEBUG_ADDRESS_REGISTERS.
3537 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3539 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3542 2014-09-02 Doug Evans <dje@google.com>
3544 * typeprint.c (find_global_typedef): Fix comment.
3546 2014-09-02 Gary Benson <gbenson@redhat.com>
3548 * i386-nat.h: Renamed as...
3549 * x86-nat.h: New file. All type, function and variable name
3550 prefixes changed from "i386_" to "x86_". All references updated.
3551 * i386-nat.c: Renamed as...
3552 * x86-nat.c: New file. All type, function and variable name
3553 prefixes changed from "i386_" to "x86_". All references updated.
3554 * common/i386-xstate.h: Renamed as...
3555 * common/x86-xstate.h: New file. All type, function and variable
3556 name prefixes changed from "i386_" to "x86_". All references
3558 * nat/i386-cpuid.h: Renamed as...
3559 * nat/x86-cpuid.h: New file. All type, function and variable name
3560 prefixes changed from "i386_" to "x86_". All references updated.
3561 * nat/i386-gcc-cpuid.h: Renamed as...
3562 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3563 name prefixes changed from "i386_" to "x86_". All references
3565 * nat/i386-dregs.h: Renamed as...
3566 * nat/x86-dregs.h: New file. All type, function and variable name
3567 prefixes changed from "i386_" to "x86_". All references updated.
3568 * nat/i386-dregs.c: Renamed as...
3569 * nat/x86-dregs.c: New file. All type, function and variable name
3570 prefixes changed from "i386_" to "x86_". All references updated.
3572 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3574 * varobj.c (_initialize_varobj): Move to the end of file.
3576 2014-08-29 Gary Benson <gbenson@redhat.com>
3578 * common/common-exceptions.h: New file.
3579 * common/common-exceptions.c: Likewise.
3580 * Makefile.in (SFILES): Add common/common-exceptions.c.
3581 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3582 (COMMON_OBS): Add common-exceptions.o.
3583 (common-exceptions.o): New rule.
3584 * exceptions.h (common-exceptions.h): Include.
3585 (gdb_setjmp.h): Do not include.
3586 (return_reason): Moved to common-exceptions.h.
3587 (enum return_reason): Likewise.
3588 (RETURN_MASK): Likewise.
3589 (typedef return_mask): Likewise.
3590 (enum errors): Likewise.
3591 (struct gdb_exception): Likewise.
3592 (exceptions_state_mc_init): Likewise.
3593 (exceptions_state_mc_action_iter): Likewise.
3594 (exceptions_state_mc_action_iter_1): Likewise.
3595 (TRY_CATCH): Likewise.
3596 (throw_exception): Likewise.
3597 (throw_verror): Likewise.
3598 (throw_vquit): Likewise.
3599 (throw_error): Likewise.
3600 (throw_quit): Likewise.
3601 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3602 (enum catcher_action): Likewise.
3603 (struct catcher): Likewise.
3604 (current_catcher): Likewise.
3605 (catcher_list_size): Likewise.
3606 (exceptions_state_mc_init): Likewise.
3607 (catcher_pop): Likewise.
3608 (exceptions_state_mc): Likewise.
3609 (exceptions_state_mc_action_iter): Likewise.
3610 (exceptions_state_mc_action_iter_1): Likewise.
3611 (throw_exception): Likewise.
3612 (exception_messages): Likewise.
3613 (exception_messages_size): Likewise.
3614 (throw_it): Likewise.
3615 (throw_verror): Likewise.
3616 (throw_vquit): Likewise.
3617 (throw_error): Likewise.
3618 (throw_quit): Likewise.
3619 (prepare_to_throw_exception): New function.
3621 2014-08-29 Gary Benson <gbenson@redhat.com>
3623 * common/gdb_setjmp.h: New file.
3624 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3625 * configure.ac: Move sigsetjmp check...
3626 * common/common.m4: ...here.
3627 * configure: Regenerate.
3628 * cp-support.c (SIGJMP_BUF): Delete.
3629 (SIGSETJMP): Likewise.
3630 (SIGLONGJMP): Likewise.
3631 * exceptions.h (gdb_setjmp.h): Include.
3632 (setjmp.h): Do not include.
3633 (EXCEPTIONS_SIGJMP_BUF): Delete.
3634 (EXCEPTIONS_SIGSETJMP): Likewise.
3635 (EXCEPTIONS_SIGLONGJMP): Likewise.
3636 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3638 * exceptions.c: Likewise.
3640 2014-08-29 Gary Benson <gbenson@redhat.com>
3642 * cleanups.h: Moved to...
3643 * common/cleanups.h: New file.
3644 * cleanups.c: Moved to...
3645 * common/cleanups.c: New file. Include common-defs.h and
3646 cleanups.h. Do not include defs.h.
3647 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3648 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3649 (cleanups.o): New rule.
3651 2014-08-29 Gary Benson <gbenson@redhat.com>
3653 * common/errors.h (internal_warning): New declaration.
3654 (internal_vwarning): Likewise.
3655 * common/errors.c (internal_warning): New function.
3656 * utils.h (internal_warning): Don't declare.
3657 (internal_vwarning): Likewise.
3658 * utils.c (internal_warning): Removed.
3660 2014-08-29 Gary Benson <gbenson@redhat.com>
3662 * main.c (captured_main): Use warning during startup.
3663 Prefix startup warning messages with command name.
3665 2014-08-29 Gary Benson <gbenson@redhat.com>
3667 * main.c (captured_main): Handle usage errors with error.
3669 2014-08-29 Gary Benson <gbenson@redhat.com>
3671 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3672 exit pair with a call to error. Wrap the message with _().
3674 2014-08-29 Gary Benson <gbenson@redhat.com>
3676 * main.c (captured_main): Replace a fprintf/exit
3677 pair with a call to error. Wrap the message with _().
3679 2014-08-29 Gary Benson <gbenson@redhat.com>
3681 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3682 pairs with calls to error. Wrap the message with _().
3684 2014-08-29 Gary Benson <gbenson@redhat.com>
3686 * utils.c (vwarning): Protect calls to target_terminal_ours
3689 2014-08-29 Gary Benson <gbenson@redhat.com>
3691 * exceptions.c (print_flush): Protect calls to
3692 target_terminal_ours and wrap_here.
3694 2014-08-29 Gary Benson <gbenson@redhat.com>
3696 * utils.h (filtered_printing_initialized): New declaration.
3697 * utils.c (abort_with_message): New function.
3698 (internal_vproblem): Use abort_with_message for first level
3699 recursive internal problems, and if gdb_stderr is not set up.
3700 Protect calls to target_terminal_ours, begin_line and query.
3702 2014-08-28 Doug Evans <dje@google.com>
3704 * symtab.c (in_prologue): Move definition to better spot.
3705 (skip_prologue_using_sal): Ditto.
3707 2014-08-28 Doug Evans <dje@google.com>
3709 * symtab.c (find_function_start_sal): Move definition to better spot.
3711 2014-08-28 Yao Qi <yao@codesourcery.com>
3713 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3714 found_stack_adjust in forward scan. Remove condition check
3715 on found_stack_adjust which is always true. Indent the code.
3717 2014-08-28 Yao Qi <yao@codesourcery.com>
3719 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3720 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3721 (dwarf_decode_lines): Remove argument
3722 want_line_info. Remove condition check on want_line_info.
3725 2014-08-27 Doug Evans <dje@google.com>
3727 * dwarf2read.c (dwarf_record_line): Fix typo.
3729 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3731 * target.h (struct target_ops::to_terminal_save_ours): Remove
3733 (target_terminal_save_ours): Remove macro.
3734 * target-delegates.c: Regenerate.
3735 * inf-child.c (inf_child_target): Don't set the nonexistent
3736 field to_terminal_save_ours.
3737 * inferior.h (child_terminal_save_ours): Remove declaration.
3738 * terminal.h (gdb_save_tty_state): New declaration.
3739 * inflow.c (child_terminal_save_ours): Rename to ...
3740 (gdb_save_tty_state): ... this.
3741 * tui/tui.c: Include terminal.h.
3742 (tui_enable): Use gdb_save_tty_state instead of
3743 target_terminal_save_ours.
3744 (tui_disable): Likewise.
3746 2014-08-25 Doug Evans <dje@google.com>
3748 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3749 Pass NULL instead of 0 for context pointer.
3751 2014-08-25 Yao Qi <yao@codesourcery.com>
3753 * dwarf2read.c: Fix grammatical error.
3755 2014-08-24 Yao Qi <yao@codesourcery.com>
3757 * dwarf2read.c (scan_partial_symbols): Update comments.
3758 Rename argument 'need_pc' with 'set_addrmap'.
3759 (add_partial_namespace): Rename argument 'need_pc' with
3761 (add_partial_module): Likewise.
3762 (add_partial_subprogram): Likewise. Update comments.
3763 (dwarf2_name): Fix typo.
3765 2014-08-22 Doug Evans <dje@google.com>
3768 * dwarf2read.c (dwarf_record_line_p): New function.
3769 (dwarf_decode_lines_1): Ignore subsequent line number entries
3770 for the same line if any entry had a non-zero discriminator.
3772 2014-08-22 Doug Evans <dje@google.com>
3774 * buildsym.h (record_line_ftype): New typedef.
3775 (record_line): Use it.
3776 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3777 (dwarf_decode_lines_1): Call them.
3779 2014-08-22 Yao Qi <yao@codesourcery.com>
3781 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3782 (ctf_end): Remove code.
3784 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3786 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3787 (linux_make_corefile_notes): call update_thread_list, protected against
3790 2014-08-21 Pedro Alves <palves@redhat.com>
3792 * infcmd.c (attach_command): Remove comment.
3794 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3796 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3797 unsigned LONGEST to ULONGEST.
3799 2014-08-20 Pedro Alves <palves@redhat.com>
3801 * Makefile.in (check-read1): New rule.
3803 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3805 * value.c (value_from_contents_and_address): Strip resolved_type's
3806 typedef layers before checking its TYPE_DATA_LOCATION.
3808 2014-08-20 Pedro Alves <palves@redhat.com>
3810 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3812 2014-08-20 Yao Qi <yao@codesourcery.com>
3814 * amd64-tdep.c (amd64_classify): Add a blank line after the
3815 example. Move "*/" to a new line.
3816 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3817 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3818 * dwarf2read.c (psymtab_include_file_name): Likewise.
3820 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3821 Pedro Alves <palves@redhat.com>
3825 * ada-lang.c (coerce_unspec_val_to_type): Use
3826 value_contents_copy_raw.
3827 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3828 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3829 * cp-valprint.c (cp_print_value_fields): Let the common printing
3830 code handle optimized out values.
3831 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3832 * d-valprint.c (dynamic_array_type): Use
3833 value_bits_any_optimized_out.
3834 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3835 check_any_valid fields.
3836 (check_pieced_value_bits): Delete and inline ...
3837 (check_pieced_synthetic_pointer): ... here.
3838 (check_pieced_value_validity): Delete.
3839 (check_pieced_value_invalid): Delete.
3840 (pieced_value_funcs): Remove check_validity and check_any_valid
3842 (read_pieced_value): Use mark_value_bits_optimized_out.
3843 (write_pieced_value): Switch to use
3844 mark_value_bytes_optimized_out.
3845 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3846 of assuming the whole value is optimized out.
3847 * findvar.c (read_frame_register_value): Remove special handling
3848 of optimized out registers.
3849 (value_from_register): Use mark_value_bytes_optimized_out.
3850 * frame-unwind.c (frame_unwind_got_optimized): Use
3851 mark_value_bytes_optimized_out.
3852 * jv-valprint.c (java_value_print): Adjust.
3853 (java_print_value_fields): Let the common printing code handle
3854 optimized out values.
3855 * mips-tdep.c (mips_print_register): Remove special handling of
3856 optimized out registers.
3857 * opencl-lang.c (lval_func_check_validity): Delete.
3858 (lval_func_check_any_valid): Delete.
3859 (opencl_value_funcs): Remove check_validity and check_any_valid
3861 * p-valprint.c (pascal_object_print_value_fields): Let the common
3862 printing code handle optimized out values.
3863 * stack.c (read_frame_arg): Remove special handling of optimized
3864 out values. Fetch both VAL and ENTRYVAL before comparing
3865 contents. Adjust to value_available_contents_eq rename.
3866 * valprint.c (valprint_check_validity)
3867 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3868 (val_print_array_elements): Adjust.
3869 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3870 (value_bits_any_optimized_out): New function.
3871 (value_entirely_covered_by_range_vector): New function, factored
3872 out from value_entirely_unavailable.
3873 (value_entirely_unavailable): Reimplement.
3874 (value_entirely_optimized_out): New function.
3875 (insert_into_bit_range_vector): New function, factored out from
3876 mark_value_bits_unavailable.
3877 (mark_value_bits_unavailable): Reimplement.
3878 (struct ranges_and_idx): New struct.
3879 (find_first_range_overlap_and_match): New function, factored out
3880 from value_available_contents_bits_eq.
3881 (value_available_contents_bits_eq): Rename to ...
3882 (value_contents_bits_eq): ... this. Check both unavailable
3883 contents and optimized out contents.
3884 (value_available_contents_eq): Rename to ...
3885 (value_contents_eq): ... this.
3886 (allocate_value_lazy): Remove reference to the old optimized_out
3888 (allocate_optimized_out_value): Use
3889 mark_value_bytes_optimized_out.
3890 (require_not_optimized_out): Adjust to check whether the
3891 optimized_out vec is empty.
3892 (ranges_copy_adjusted): New function, factored out from
3893 value_contents_copy_raw.
3894 (value_contents_copy_raw): Also copy the optimized out ranges.
3895 Assert the destination ranges aren't optimized out.
3896 (value_contents_copy): Update comment, remove call to
3897 require_not_optimized_out.
3898 (value_contents_equal): Adjust to check whether the optimized_out
3900 (set_value_optimized_out, value_optimized_out_const): Delete.
3901 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3903 (value_entirely_optimized_out, value_bits_valid): Delete.
3904 (value_copy): Take a VEC copy of the 'optimized_out' field.
3905 (value_primitive_field): Remove special handling of optimized out.
3906 (value_fetch_lazy): Assert that lazy values have no unavailable
3907 regions. Use value_bits_any_optimized_out. Remove some special
3908 handling for optimized out values.
3909 * value.h: Add intro comment about <optimized out> and
3911 (struct lval_funcs): Remove check_validity and check_any_valid
3913 (set_value_optimized_out, value_optimized_out_const): Remove.
3914 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3916 (value_bits_any_optimized_out): New declaration.
3917 (value_bits_valid): Delete declaration.
3918 (value_available_contents_eq): Rename to ...
3919 (value_contents_eq): ... this, and extend comments.
3921 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 Fix -fsanitize=address on unreadable inferior strings.
3924 * valprint.c (val_print_string): Fix access before BUFFER.
3926 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3928 * target.c (target_struct_size): Remove.
3929 (target_struct_allocsize): Remove.
3930 (DEFAULT_ALLOCSIZE): Remove.
3931 (target_ops_p): New typedef.
3932 (DEF_VEC_P (target_ops_p)): New vector type.
3933 (target_structs): Change type to VEC (target_ops_p).
3934 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3935 (find_default_run_target): Rewrite for loop following changes to
3938 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3940 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3941 Adjust code accordingly. Adjust function description comment.
3943 2014-08-19 Yao Qi <yao@codesourcery.com>
3945 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3948 2014-08-19 Alan Modra <amodra@gmail.com>
3950 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3951 * config.in: Regenerate.
3952 * configure: Regenerate.
3954 2014-08-19 Tom Tromey <tromey@redhat.com>
3955 Gary Benson <gbenson@redhat.com>
3957 * common/common-debug.h: New file.
3958 * common/common-debug.c: Likewise.
3959 * debug.c: Likewise.
3960 * Makefile.in (SFILES): Add common/common-debug.c.
3961 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3962 (COMMON_OBS): Add common-debug.o and debug.o.
3963 (common-debug.o): New rule.
3964 * common/common-defs.h: Include common-debug.h.
3965 * common/agent.c (debug_agent_printf): New function.
3966 (DEBUG_AGENT): Redefine.
3967 * nat/i386-dregs.c (debug_printf): Undefine.
3969 2014-08-19 Gary Benson <gbenson@redhat.com>
3971 * common/common-defs.h: Include print-utils.h.
3972 * utils.h: Do not include print-utils.h.
3974 2014-08-19 Tom Tromey <tromey@redhat.com>
3975 Gary Benson <gbenson@redhat.com>
3977 * common/common-types.h: New file.
3978 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3979 * common/common-defs.h: Include common-types.h.
3980 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3983 2014-08-19 Tom Tromey <tromey@redhat.com>
3984 Gary Benson <gbenson@redhat.com>
3986 * common/errors.h: New file.
3987 * common/errors.c: Likewise.
3988 * Makefile.in (SFILES): Add common/errors.c.
3989 (HFILES_NO_SRCDIR): Add common/errors.h.
3990 (COMMON_OBS): Add errors.o.
3991 (errors.o): New rule.
3992 * common/common-defs.h: Include errors.h.
3993 * utils.h (perror_with_name, error, verror, warning, vwarning):
3995 * common/common-utils.h: (malloc_failure, internal_error):
3998 2014-08-19 Gary Benson <gbenson@redhat.com>
4000 * utils.c (internal_vproblem): Always print the message.
4002 2014-08-18 Doug Evans <dje@google.com>
4004 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4006 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4008 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4009 Return 0 if TYPE is dynamic.
4010 (print_range): Add handling of dynamic ranges.
4012 2014-08-18 Keven Boell <keven.boell@intel.com>
4013 Joel Brobecker <brobecker@adacore.com>
4015 * gdbtypes.h (struct main_type): Add field "data_location".
4016 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4017 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4018 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4019 a dynamic data location.
4020 (resolve_dynamic_type): Add DW_AT_data_location handling.
4021 (copy_recursive, copy_type): Copy the data_location information
4023 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4024 * value.c (value_from_contents_and_address): Add
4025 DW_AT_data_location handling.
4027 2014-08-18 Keven Boell <keven.boell@intel.com>
4028 Joel Brobecker <brobecker@adacore.com>
4030 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4031 field "get_object_address".
4032 * dwarf2expr.c (execute_stack_op): Add handling for
4033 DW_OP_push_object_address.
4034 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4035 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4036 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4037 (dwarf_expr_get_obj_addr): New function.
4038 (dwarf_expr_ctx_funcs): Add get_object_address field.
4039 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4040 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4041 (dwarf2_evaluate_property): Add parameter "address". Use it.
4042 (needs_get_obj_addr): New function.
4043 (needs_frame_ctx_funcs): Add get_object_address field.
4044 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4045 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4046 (resolve_dynamic_array): Likewise.
4048 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4050 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4051 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4052 fixed value for records and unions for which some GNAT encodings
4055 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4057 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4058 rewrite to avoid "else if" and "else" constructs. Should be
4059 a no-op in practice.
4061 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4063 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4066 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4069 * eval.c: Update all calls to find_overload_match.
4070 * valarith.c: Likewise.
4071 (value_user_defined_cpp_op, value_user_defined_op): New
4072 argument NOSIDE. Update all callers.
4073 * valops.c (find_overload_match): New argument NOSIDE.
4074 * value.h (find_overload_match): Update signature.
4076 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4078 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4079 'items' methods instead of 'iteritems' method on dictionaries.
4081 2014-08-15 Doug Evans <dje@google.com>
4083 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4086 2014-08-15 Doug Evans <dje@google.com>
4088 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4090 2014-08-15 Doug Evans <dje@google.com>
4092 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4094 2014-08-15 Doug Evans <dje@google.com>
4096 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4099 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4101 * dcache.h: Include target.h, to avoid compile time warnings.
4103 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4105 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4106 frame_info" partial declaration.
4107 * gdbarch.h: Regenerate.
4109 2014-08-15 Yao Qi <yao@codesourcery.com>
4111 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4112 Add parameter 'decode_for_pst_p'. Callers update.
4114 2014-08-13 Yao Qi <yao@codesourcery.com>
4117 * configure.ac: Use local variable 'pos'.
4118 * configure: Regenerated.
4120 2014-08-11 Doug Evans <dje@google.com>
4122 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4123 message, it is redundant with "Reading symbols from ..." message.
4125 2014-08-10 Doug Evans <xdje42@gmail.com>
4127 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4129 2014-08-09 Yao Qi <yao@codesourcery.com>
4132 * remote.c (remote_xfer_partial): Remove dead code.
4134 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4136 * ia64-linux-tdep.c: Include "regset.h".
4137 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4138 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4139 (ia64_linux_supply_fpregset): New function.
4140 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4141 (ia64_linux_regset_from_core_section): New function.
4142 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4145 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4147 * m68klinux-tdep.c: Include "regset.h".
4148 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4149 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4150 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4151 (m68k_linux_regset_from_core_section): New function.
4152 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4155 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4157 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4158 function. Move logic to...
4159 (tilegx_linux_regmap): ... this new register map.
4160 (tilegx_linux_regset): Refer to register map, replace supply
4161 method by regcache_supply_regset, and add collect method.
4162 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4163 TILEGX_FIRST_EASY_REGNUM.
4165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4167 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4168 that calls regcache_supply_regset and handles the EPC register
4169 separately. Move main logic to...
4170 (score7_linux_gregmap): ... this new register map.
4171 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4172 (score7_linux_gregset): Refer to register map. Add collect method.
4173 (score7_linux_regset_from_core_section): Replace
4174 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4175 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4176 (struct regset): Delete unused forward declaraction.
4177 (struct pt_regs): Delete structure definition.
4178 (elf_gregset_t): Delete typedef.
4180 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4182 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4183 (nios2_core_regset): Add collect method.
4185 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4187 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4188 platform-independent and don't write to read-only input buffer.
4189 (m32r_linux_collect_gregset): New function.
4190 (m32r_linux_gregset): Add collect method.
4192 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4194 * hppa-linux-tdep.c (greg_map): Rename to...
4195 (hppa_linux_gregmap): ... this. Also convert to
4196 regcache_map_entry format.
4197 (hppa_linux_supply_regset): Delete function.
4198 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4199 (hppa_linux_fpregmap): ... this new register map.
4200 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4201 register map, replace supply method by regcache_supply_regset, and
4202 add collect method regcache_collect_regset.
4204 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4206 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4207 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4208 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4209 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4210 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4211 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4212 (frv_linux_supply_gregset): Replace main logic by call to
4213 regcache_supply_regset, but keep clearing gr32-gr63.
4214 (frv_linux_supply_fpregset): Delete function.
4215 (frv_linux_gregset): Refer to appropriate register map and add
4216 regcache_collect_regset as the collect method.
4217 (frv_linux_fpregset): Likewise. Also exchange the supply method
4218 by regcache_supply_regset.
4220 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4222 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4223 by call to alpha_supply_int_regs.
4224 (alpha_linux_collect_gregset): New function.
4225 (alpha_linux_supply_fpregset): Replace logic by call to
4226 alpha_supply_fp_regs.
4227 (alpha_linux_collect_fpregset): New function.
4228 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4230 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4232 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4233 by call to regcache_collect_regset.
4234 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4235 instead of aarch64_linux_supply_gregset/_fpregset.
4236 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4237 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4238 header file instead.
4239 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4240 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4241 functions. Move logic to ...
4242 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4244 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4245 refer to new register maps, replace *_regset_from_core by
4246 regcache_supply_regset, and also use regcache_collect_regset.
4247 * aarch64-linux-tdep.h: Include "regset.h".
4248 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4250 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4251 macros, moved from C source file.
4252 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4253 variable declarations.
4255 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4257 * s390-linux-nat.c: Include "regset.h".
4258 (regmap_gregset): Delete macro.
4259 (s390_64_regmap_gregset): New register map for
4260 regcache_supply/_collect_regset.
4261 (s390_64_gregset): New regset.
4262 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4263 (regmap_fpregset): Delete macro.
4264 (s390_native_supply, s390_native_collect): Delete functions.
4265 (supply_gregset, fill_gregset): Replace s390-specific regmap
4266 handling by a call to regcache_supply/_collect_regset.
4267 (supply_fpregset, fill_fpregset): Call regcache_supply/
4268 _collect_regset instead of s390_native_supply/_collect.
4269 (fetch_regset, store_regset): Likewise. Also change the last
4270 parameter to a regset instead of a regmap.
4271 (s390_linux_fetch_inferior_registers)
4272 (390_linux_store_inferior_registers): Adjust last parameter in
4273 calls to fetch_regset and store_regset.
4274 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4275 (s390_gregmap): ... this. Also make static const and convert to
4276 regcache_map_entry format.
4277 (s390x_regmap_gregset): Delete.
4278 (s390_regmap_fpregset): Rename to...
4279 (s390_fpregmap): ... this. Make static const and convert to
4280 regcache_map_entry format.
4281 (s390_regmap_upper, s390_regmap_last_break)
4282 (s390x_regmap_last_break, s390_regmap_system_call)
4283 (s390_regmap_tdb): Likewise.
4284 (s390_supply_regset, s390_collect_regset): Remove functions.
4285 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4287 (s390_gregset, s390_fpregset, s390_upper_regset)
4288 (s390_last_break_regset, s390x_last_break_regset)
4289 (s390_system_call_regset, s390_tdb_regset): Make global and
4290 replace s390_supply/_collect_regset by regcache_supply/
4292 (s390x_gregset): Delete.
4293 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4294 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4295 (s390_regmap_fpregset, s390_regmap_last_break)
4296 (s390x_regmap_last_break, s390_regmap_system_call)
4297 (s390_regmap_tdb): Delete global variable declarations.
4298 (s390_gregset, s390_fpregset, s390_last_break_regset)
4299 (s390x_last_break_regset, s390_system_call_regset)
4300 (s390_tdb_regset): New global variable declarations.
4302 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4304 * regcache.c: Include "regset.h".
4305 (regcache_transfer_regset): New local function.
4306 (regcache_supply_regset, regcache_collect_regset): New functions.
4307 * regcache.h (struct regcache_map_entry): New structure.
4308 (REGCACHE_MAP_SKIP): New enum value.
4309 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4311 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4313 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4314 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4315 (ppc_linux_collect_gregset ): Likewise.
4316 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4317 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4318 (ppc_collect_vrregset): Likewise.
4319 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4322 2014-08-07 Yao Qi <yao@codesourcery.com>
4324 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4325 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4326 * remote.c (remote_read_bytes): Likewise.
4328 2014-08-07 Yao Qi <yao@codesourcery.com>
4330 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4332 2014-08-07 Yao Qi <yao@codesourcery.com>
4335 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4336 TARGET_XFER_OK instead of 0.
4338 2014-08-07 Gary Benson <gbenson@redhat.com>
4340 * common/common-defs.h: Include errno.h.
4341 * defs.h: Do not include errno.h.
4342 * ada-typeprint.c: Likewise.
4343 * c-typeprint.c: Likewise.
4344 * core-regset.c: Likewise.
4345 * corefile.c: Likewise.
4346 * corelow.c: Likewise.
4347 * event-loop.c: Likewise.
4348 * f-typeprint.c: Likewise.
4349 * gnu-nat.c: Likewise.
4350 * go32-nat.c: Likewise.
4351 * i386gnu-nat.c: Likewise.
4352 * m2-typeprint.c: Likewise.
4353 * nat/linux-btrace.c: Likewise.
4354 * p-typeprint.c: Likewise.
4355 * procfs.c: Likewise.
4356 * remote-sim.c: Likewise.
4357 * rs6000-nat.c: Likewise.
4358 * target.c: Likewise.
4359 * typeprint.c: Likewise.
4360 * ui-file.c: Likewise.
4361 * valops.c: Likewise.
4362 * valprint.c: Likewise.
4364 2014-08-07 Gary Benson <gbenson@redhat.com>
4366 * common/common-defs.h: Include string.h.
4367 * aarch64-tdep.c: Do not include string.h.
4368 * ada-exp.y: Likewise.
4369 * ada-lang.c: Likewise.
4370 * ada-lex.l: Likewise.
4371 * ada-typeprint.c: Likewise.
4372 * ada-valprint.c: Likewise.
4373 * aix-thread.c: Likewise.
4374 * alpha-linux-tdep.c: Likewise.
4375 * alpha-mdebug-tdep.c: Likewise.
4376 * alpha-nat.c: Likewise.
4377 * alpha-osf1-tdep.c: Likewise.
4378 * alpha-tdep.c: Likewise.
4379 * alphanbsd-tdep.c: Likewise.
4380 * amd64-dicos-tdep.c: Likewise.
4381 * amd64-linux-tdep.c: Likewise.
4382 * amd64-nat.c: Likewise.
4383 * amd64-sol2-tdep.c: Likewise.
4384 * amd64fbsd-tdep.c: Likewise.
4385 * amd64obsd-tdep.c: Likewise.
4386 * arch-utils.c: Likewise.
4387 * arm-linux-nat.c: Likewise.
4388 * arm-linux-tdep.c: Likewise.
4389 * arm-tdep.c: Likewise.
4390 * arm-wince-tdep.c: Likewise.
4391 * armbsd-tdep.c: Likewise.
4392 * armnbsd-nat.c: Likewise.
4393 * armnbsd-tdep.c: Likewise.
4394 * armobsd-tdep.c: Likewise.
4395 * avr-tdep.c: Likewise.
4396 * ax-gdb.c: Likewise.
4397 * ax-general.c: Likewise.
4398 * bcache.c: Likewise.
4399 * bfin-tdep.c: Likewise.
4400 * breakpoint.c: Likewise.
4401 * build-id.c: Likewise.
4402 * buildsym.c: Likewise.
4403 * c-exp.y: Likewise.
4404 * c-lang.c: Likewise.
4405 * c-typeprint.c: Likewise.
4406 * c-valprint.c: Likewise.
4407 * charset.c: Likewise.
4408 * cli-out.c: Likewise.
4409 * cli/cli-cmds.c: Likewise.
4410 * cli/cli-decode.c: Likewise.
4411 * cli/cli-dump.c: Likewise.
4412 * cli/cli-interp.c: Likewise.
4413 * cli/cli-logging.c: Likewise.
4414 * cli/cli-script.c: Likewise.
4415 * cli/cli-setshow.c: Likewise.
4416 * cli/cli-utils.c: Likewise.
4417 * coffread.c: Likewise.
4418 * common/agent.c: Likewise.
4419 * common/buffer.c: Likewise.
4420 * common/buffer.h: Likewise.
4421 * common/common-utils.c: Likewise.
4422 * common/filestuff.c: Likewise.
4423 * common/filestuff.c: Likewise.
4424 * common/format.c: Likewise.
4425 * common/print-utils.c: Likewise.
4426 * common/rsp-low.c: Likewise.
4427 * common/signals.c: Likewise.
4428 * common/vec.h: Likewise.
4429 * common/xml-utils.c: Likewise.
4430 * core-regset.c: Likewise.
4431 * corefile.c: Likewise.
4432 * corelow.c: Likewise.
4433 * cp-abi.c: Likewise.
4434 * cp-name-parser.y: Likewise.
4435 * cp-support.c: Likewise.
4436 * cp-valprint.c: Likewise.
4437 * cris-tdep.c: Likewise.
4438 * d-exp.y: Likewise.
4439 * darwin-nat.c: Likewise.
4440 * dbxread.c: Likewise.
4441 * dcache.c: Likewise.
4442 * demangle.c: Likewise.
4443 * dicos-tdep.c: Likewise.
4444 * disasm.c: Likewise.
4445 * doublest.c: Likewise.
4446 * dsrec.c: Likewise.
4447 * dummy-frame.c: Likewise.
4448 * dwarf2-frame.c: Likewise.
4449 * dwarf2loc.c: Likewise.
4450 * dwarf2read.c: Likewise.
4451 * elfread.c: Likewise.
4452 * environ.c: Likewise.
4454 * event-loop.c: Likewise.
4455 * exceptions.c: Likewise.
4457 * expprint.c: Likewise.
4458 * f-exp.y: Likewise.
4459 * f-lang.c: Likewise.
4460 * f-typeprint.c: Likewise.
4461 * f-valprint.c: Likewise.
4462 * fbsd-nat.c: Likewise.
4463 * findcmd.c: Likewise.
4464 * findvar.c: Likewise.
4465 * fork-child.c: Likewise.
4466 * frame.c: Likewise.
4467 * frv-linux-tdep.c: Likewise.
4468 * frv-tdep.c: Likewise.
4470 * gdb_bfd.c: Likewise.
4471 * gdbarch.c: Likewise.
4472 * gdbarch.sh: Likewise.
4473 * gdbtypes.c: Likewise.
4474 * gnu-nat.c: Likewise.
4475 * gnu-v2-abi.c: Likewise.
4476 * gnu-v3-abi.c: Likewise.
4477 * go-exp.y: Likewise.
4478 * go-lang.c: Likewise.
4479 * go32-nat.c: Likewise.
4480 * guile/guile.c: Likewise.
4481 * guile/scm-auto-load.c: Likewise.
4482 * hppa-hpux-tdep.c: Likewise.
4483 * hppa-linux-nat.c: Likewise.
4484 * hppanbsd-tdep.c: Likewise.
4485 * hppaobsd-tdep.c: Likewise.
4486 * i386-cygwin-tdep.c: Likewise.
4487 * i386-dicos-tdep.c: Likewise.
4488 * i386-linux-tdep.c: Likewise.
4489 * i386-nto-tdep.c: Likewise.
4490 * i386-sol2-tdep.c: Likewise.
4491 * i386-tdep.c: Likewise.
4492 * i386bsd-tdep.c: Likewise.
4493 * i386gnu-nat.c: Likewise.
4494 * i386nbsd-tdep.c: Likewise.
4495 * i386obsd-tdep.c: Likewise.
4496 * i387-tdep.c: Likewise.
4497 * ia64-libunwind-tdep.c: Likewise.
4498 * ia64-linux-nat.c: Likewise.
4499 * inf-child.c: Likewise.
4500 * inf-ptrace.c: Likewise.
4501 * inf-ttrace.c: Likewise.
4502 * infcall.c: Likewise.
4503 * infcmd.c: Likewise.
4504 * inflow.c: Likewise.
4505 * infrun.c: Likewise.
4506 * interps.c: Likewise.
4507 * iq2000-tdep.c: Likewise.
4508 * irix5-nat.c: Likewise.
4509 * jv-exp.y: Likewise.
4510 * jv-lang.c: Likewise.
4511 * jv-typeprint.c: Likewise.
4512 * jv-valprint.c: Likewise.
4513 * language.c: Likewise.
4514 * linux-fork.c: Likewise.
4515 * linux-nat.c: Likewise.
4516 * lm32-tdep.c: Likewise.
4517 * m2-exp.y: Likewise.
4518 * m2-typeprint.c: Likewise.
4519 * m32c-tdep.c: Likewise.
4520 * m32r-linux-nat.c: Likewise.
4521 * m32r-linux-tdep.c: Likewise.
4522 * m32r-rom.c: Likewise.
4523 * m32r-tdep.c: Likewise.
4524 * m68hc11-tdep.c: Likewise.
4525 * m68k-tdep.c: Likewise.
4526 * m68kbsd-tdep.c: Likewise.
4527 * m68klinux-nat.c: Likewise.
4528 * m68klinux-tdep.c: Likewise.
4529 * m88k-tdep.c: Likewise.
4530 * machoread.c: Likewise.
4531 * macrocmd.c: Likewise.
4533 * mdebugread.c: Likewise.
4534 * mem-break.c: Likewise.
4535 * memattr.c: Likewise.
4536 * memory-map.c: Likewise.
4537 * mep-tdep.c: Likewise.
4538 * mi/mi-cmd-break.c: Likewise.
4539 * mi/mi-cmd-disas.c: Likewise.
4540 * mi/mi-cmd-env.c: Likewise.
4541 * mi/mi-cmd-stack.c: Likewise.
4542 * mi/mi-cmd-var.c: Likewise.
4543 * mi/mi-cmds.c: Likewise.
4544 * mi/mi-console.c: Likewise.
4545 * mi/mi-getopt.c: Likewise.
4546 * mi/mi-interp.c: Likewise.
4547 * mi/mi-main.c: Likewise.
4548 * mi/mi-parse.c: Likewise.
4549 * microblaze-rom.c: Likewise.
4550 * microblaze-tdep.c: Likewise.
4551 * mingw-hdep.c: Likewise.
4552 * minidebug.c: Likewise.
4553 * minsyms.c: Likewise.
4554 * mips-irix-tdep.c: Likewise.
4555 * mips-linux-tdep.c: Likewise.
4556 * mips-tdep.c: Likewise.
4557 * mips64obsd-tdep.c: Likewise.
4558 * mipsnbsd-tdep.c: Likewise.
4559 * mipsread.c: Likewise.
4560 * mn10300-linux-tdep.c: Likewise.
4561 * mn10300-tdep.c: Likewise.
4562 * monitor.c: Likewise.
4563 * moxie-tdep.c: Likewise.
4564 * mt-tdep.c: Likewise.
4565 * nat/linux-btrace.c: Likewise.
4566 * nat/linux-osdata.c: Likewise.
4567 * nat/linux-procfs.c: Likewise.
4568 * nat/linux-ptrace.c: Likewise.
4569 * nat/linux-waitpid.c: Likewise.
4570 * nbsd-tdep.c: Likewise.
4571 * nios2-linux-tdep.c: Likewise.
4572 * nto-procfs.c: Likewise.
4573 * nto-tdep.c: Likewise.
4574 * objc-lang.c: Likewise.
4575 * objfiles.c: Likewise.
4576 * opencl-lang.c: Likewise.
4577 * osabi.c: Likewise.
4578 * osdata.c: Likewise.
4579 * p-exp.y: Likewise.
4580 * p-lang.c: Likewise.
4581 * p-typeprint.c: Likewise.
4582 * parse.c: Likewise.
4583 * posix-hdep.c: Likewise.
4584 * ppc-linux-nat.c: Likewise.
4585 * ppc-sysv-tdep.c: Likewise.
4586 * ppcfbsd-tdep.c: Likewise.
4587 * ppcnbsd-tdep.c: Likewise.
4588 * ppcobsd-tdep.c: Likewise.
4589 * printcmd.c: Likewise.
4590 * procfs.c: Likewise.
4591 * prologue-value.c: Likewise.
4592 * python/py-auto-load.c: Likewise.
4593 * python/py-gdb-readline.c: Likewise.
4594 * ravenscar-thread.c: Likewise.
4595 * regcache.c: Likewise.
4596 * registry.c: Likewise.
4597 * remote-fileio.c: Likewise.
4598 * remote-m32r-sdi.c: Likewise.
4599 * remote-mips.c: Likewise.
4600 * remote-notif.c: Likewise.
4601 * remote-sim.c: Likewise.
4602 * remote.c: Likewise.
4603 * reverse.c: Likewise.
4604 * rs6000-aix-tdep.c: Likewise.
4605 * ser-base.c: Likewise.
4606 * ser-go32.c: Likewise.
4607 * ser-mingw.c: Likewise.
4608 * ser-pipe.c: Likewise.
4609 * ser-tcp.c: Likewise.
4610 * ser-unix.c: Likewise.
4611 * serial.c: Likewise.
4612 * sh-tdep.c: Likewise.
4613 * sh64-tdep.c: Likewise.
4614 * shnbsd-tdep.c: Likewise.
4616 * sol-thread.c: Likewise.
4617 * solib-dsbt.c: Likewise.
4618 * solib-frv.c: Likewise.
4619 * solib-osf.c: Likewise.
4620 * solib-som.c: Likewise.
4621 * solib-spu.c: Likewise.
4622 * solib-target.c: Likewise.
4623 * solib.c: Likewise.
4624 * somread.c: Likewise.
4625 * source.c: Likewise.
4626 * sparc-nat.c: Likewise.
4627 * sparc-sol2-tdep.c: Likewise.
4628 * sparc-tdep.c: Likewise.
4629 * sparc64-tdep.c: Likewise.
4630 * sparc64fbsd-tdep.c: Likewise.
4631 * sparc64nbsd-tdep.c: Likewise.
4632 * sparcnbsd-tdep.c: Likewise.
4633 * spu-linux-nat.c: Likewise.
4634 * spu-multiarch.c: Likewise.
4635 * spu-tdep.c: Likewise.
4636 * stabsread.c: Likewise.
4637 * stack.c: Likewise.
4638 * std-regs.c: Likewise.
4639 * symfile.c: Likewise.
4640 * symmisc.c: Likewise.
4641 * symtab.c: Likewise.
4642 * target.c: Likewise.
4643 * thread.c: Likewise.
4644 * tilegx-linux-nat.c: Likewise.
4645 * tilegx-tdep.c: Likewise.
4647 * tracepoint.c: Likewise.
4648 * tui/tui-command.c: Likewise.
4649 * tui/tui-data.c: Likewise.
4650 * tui/tui-disasm.c: Likewise.
4651 * tui/tui-file.c: Likewise.
4652 * tui/tui-layout.c: Likewise.
4653 * tui/tui-out.c: Likewise.
4654 * tui/tui-regs.c: Likewise.
4655 * tui/tui-source.c: Likewise.
4656 * tui/tui-stack.c: Likewise.
4657 * tui/tui-win.c: Likewise.
4658 * tui/tui-windata.c: Likewise.
4659 * tui/tui-winsource.c: Likewise.
4660 * typeprint.c: Likewise.
4661 * ui-file.c: Likewise.
4662 * ui-out.c: Likewise.
4663 * user-regs.c: Likewise.
4664 * utils.c: Likewise.
4665 * v850-tdep.c: Likewise.
4666 * valarith.c: Likewise.
4667 * valops.c: Likewise.
4668 * valprint.c: Likewise.
4669 * value.c: Likewise.
4670 * varobj.c: Likewise.
4671 * vax-tdep.c: Likewise.
4672 * vaxnbsd-tdep.c: Likewise.
4673 * vaxobsd-tdep.c: Likewise.
4674 * windows-nat.c: Likewise.
4675 * xcoffread.c: Likewise.
4676 * xml-support.c: Likewise.
4677 * xstormy16-tdep.c: Likewise.
4678 * xtensa-linux-nat.c: Likewise.
4680 2014-08-07 Gary Benson <gbenson@redhat.com>
4682 * common/common-defs.h: Include gdb_assert.h.
4683 * aarch64-tdep.c: Do not include gdb_assert.h.
4684 * addrmap.c: Likewise.
4685 * aix-thread.c: Likewise.
4686 * alpha-linux-tdep.c: Likewise.
4687 * alpha-mdebug-tdep.c: Likewise.
4688 * alphanbsd-tdep.c: Likewise.
4689 * amd64-nat.c: Likewise.
4690 * amd64-tdep.c: Likewise.
4691 * amd64bsd-nat.c: Likewise.
4692 * amd64fbsd-nat.c: Likewise.
4693 * amd64fbsd-tdep.c: Likewise.
4694 * amd64nbsd-nat.c: Likewise.
4695 * amd64nbsd-tdep.c: Likewise.
4696 * amd64obsd-nat.c: Likewise.
4697 * amd64obsd-tdep.c: Likewise.
4698 * arch-utils.c: Likewise.
4699 * arm-tdep.c: Likewise.
4700 * armbsd-tdep.c: Likewise.
4702 * bcache.c: Likewise.
4703 * bfin-tdep.c: Likewise.
4704 * blockframe.c: Likewise.
4705 * breakpoint.c: Likewise.
4706 * bsd-kvm.c: Likewise.
4707 * bsd-uthread.c: Likewise.
4708 * buildsym.c: Likewise.
4709 * c-exp.y: Likewise.
4710 * c-lang.c: Likewise.
4711 * charset.c: Likewise.
4712 * cleanups.c: Likewise.
4713 * cli-out.c: Likewise.
4714 * cli/cli-decode.c: Likewise.
4715 * cli/cli-dump.c: Likewise.
4716 * cli/cli-logging.c: Likewise.
4717 * cli/cli-script.c: Likewise.
4718 * cli/cli-utils.c: Likewise.
4719 * coffread.c: Likewise.
4720 * common/common-utils.c: Likewise.
4721 * common/queue.h: Likewise.
4722 * common/signals.c: Likewise.
4723 * common/vec.h: Likewise.
4724 * complaints.c: Likewise.
4725 * completer.c: Likewise.
4726 * corelow.c: Likewise.
4727 * cp-abi.c: Likewise.
4728 * cp-name-parser.y: Likewise.
4729 * cp-namespace.c: Likewise.
4730 * cp-support.c: Likewise.
4731 * cris-tdep.c: Likewise.
4732 * dbxread.c: Likewise.
4733 * dictionary.c: Likewise.
4734 * doublest.c: Likewise.
4735 * dsrec.c: Likewise.
4736 * dummy-frame.c: Likewise.
4737 * dwarf2-frame-tailcall.c: Likewise.
4738 * dwarf2-frame.c: Likewise.
4739 * dwarf2expr.c: Likewise.
4740 * dwarf2loc.c: Likewise.
4741 * dwarf2read.c: Likewise.
4743 * event-loop.c: Likewise.
4744 * exceptions.c: Likewise.
4745 * expprint.c: Likewise.
4746 * f-valprint.c: Likewise.
4747 * fbsd-nat.c: Likewise.
4748 * findvar.c: Likewise.
4749 * frame-unwind.c: Likewise.
4750 * frame.c: Likewise.
4751 * frv-tdep.c: Likewise.
4752 * gcore.c: Likewise.
4753 * gdb-dlfcn.c: Likewise.
4754 * gdb_bfd.c: Likewise.
4755 * gdbarch.c: Likewise.
4756 * gdbarch.sh: Likewise.
4757 * gdbtypes.c: Likewise.
4758 * gnu-nat.c: Likewise.
4759 * gnu-v3-abi.c: Likewise.
4760 * go-lang.c: Likewise.
4761 * guile/scm-exception.c: Likewise.
4762 * guile/scm-gsmob.c: Likewise.
4763 * guile/scm-lazy-string.c: Likewise.
4764 * guile/scm-math.c: Likewise.
4765 * guile/scm-pretty-print.c: Likewise.
4766 * guile/scm-safe-call.c: Likewise.
4767 * guile/scm-utils.c: Likewise.
4768 * guile/scm-value.c: Likewise.
4769 * h8300-tdep.c: Likewise.
4770 * hppa-hpux-nat.c: Likewise.
4771 * hppa-tdep.c: Likewise.
4772 * hppanbsd-tdep.c: Likewise.
4773 * hppaobsd-tdep.c: Likewise.
4774 * i386-darwin-nat.c: Likewise.
4775 * i386-darwin-tdep.c: Likewise.
4776 * i386-nto-tdep.c: Likewise.
4777 * i386-tdep.c: Likewise.
4778 * i386bsd-nat.c: Likewise.
4779 * i386fbsd-tdep.c: Likewise.
4780 * i386gnu-nat.c: Likewise.
4781 * i386nbsd-tdep.c: Likewise.
4782 * i386obsd-tdep.c: Likewise.
4783 * i387-tdep.c: Likewise.
4784 * ia64-libunwind-tdep.c: Likewise.
4785 * ia64-tdep.c: Likewise.
4786 * inf-ptrace.c: Likewise.
4787 * inf-ttrace.c: Likewise.
4788 * infcall.c: Likewise.
4789 * infcmd.c: Likewise.
4790 * infrun.c: Likewise.
4791 * inline-frame.c: Likewise.
4792 * interps.c: Likewise.
4793 * jv-lang.c: Likewise.
4794 * jv-typeprint.c: Likewise.
4795 * linux-fork.c: Likewise.
4796 * linux-nat.c: Likewise.
4797 * linux-thread-db.c: Likewise.
4798 * m32c-tdep.c: Likewise.
4799 * m32r-linux-nat.c: Likewise.
4800 * m32r-tdep.c: Likewise.
4801 * m68k-tdep.c: Likewise.
4802 * m68kbsd-nat.c: Likewise.
4803 * m68kbsd-tdep.c: Likewise.
4804 * m88k-tdep.c: Likewise.
4805 * machoread.c: Likewise.
4806 * macroexp.c: Likewise.
4807 * macrotab.c: Likewise.
4808 * maint.c: Likewise.
4809 * mdebugread.c: Likewise.
4810 * memory-map.c: Likewise.
4811 * mep-tdep.c: Likewise.
4812 * mi/mi-common.c: Likewise.
4813 * microblaze-tdep.c: Likewise.
4814 * mingw-hdep.c: Likewise.
4815 * mips-linux-nat.c: Likewise.
4816 * mips-linux-tdep.c: Likewise.
4817 * mips-tdep.c: Likewise.
4818 * mips64obsd-tdep.c: Likewise.
4819 * mipsnbsd-tdep.c: Likewise.
4820 * mn10300-linux-tdep.c: Likewise.
4821 * mn10300-tdep.c: Likewise.
4822 * moxie-tdep.c: Likewise.
4823 * mt-tdep.c: Likewise.
4824 * nat/linux-btrace.c: Likewise.
4825 * nat/linux-osdata.c: Likewise.
4826 * nat/linux-ptrace.c: Likewise.
4827 * nat/mips-linux-watch.c: Likewise.
4828 * nios2-linux-tdep.c: Likewise.
4829 * nios2-tdep.c: Likewise.
4830 * objc-lang.c: Likewise.
4831 * objfiles.c: Likewise.
4832 * obsd-nat.c: Likewise.
4833 * opencl-lang.c: Likewise.
4834 * osabi.c: Likewise.
4835 * parse.c: Likewise.
4836 * ppc-linux-nat.c: Likewise.
4837 * ppc-sysv-tdep.c: Likewise.
4838 * ppcfbsd-nat.c: Likewise.
4839 * ppcfbsd-tdep.c: Likewise.
4840 * ppcnbsd-nat.c: Likewise.
4841 * ppcnbsd-tdep.c: Likewise.
4842 * ppcobsd-nat.c: Likewise.
4843 * ppcobsd-tdep.c: Likewise.
4844 * printcmd.c: Likewise.
4845 * procfs.c: Likewise.
4846 * prologue-value.c: Likewise.
4847 * psymtab.c: Likewise.
4848 * python/py-lazy-string.c: Likewise.
4849 * python/py-value.c: Likewise.
4850 * regcache.c: Likewise.
4851 * reggroups.c: Likewise.
4852 * registry.c: Likewise.
4853 * remote-sim.c: Likewise.
4854 * remote.c: Likewise.
4855 * rs6000-aix-tdep.c: Likewise.
4856 * rs6000-tdep.c: Likewise.
4857 * s390-linux-tdep.c: Likewise.
4858 * score-tdep.c: Likewise.
4859 * ser-base.c: Likewise.
4860 * ser-mingw.c: Likewise.
4861 * sh-tdep.c: Likewise.
4862 * sh64-tdep.c: Likewise.
4863 * solib-darwin.c: Likewise.
4864 * solib-spu.c: Likewise.
4865 * solib-svr4.c: Likewise.
4866 * source.c: Likewise.
4867 * sparc-nat.c: Likewise.
4868 * sparc-sol2-tdep.c: Likewise.
4869 * sparc-tdep.c: Likewise.
4870 * sparc64-sol2-tdep.c: Likewise.
4871 * sparc64-tdep.c: Likewise.
4872 * sparc64fbsd-tdep.c: Likewise.
4873 * sparc64nbsd-tdep.c: Likewise.
4874 * sparc64obsd-tdep.c: Likewise.
4875 * sparcnbsd-tdep.c: Likewise.
4876 * sparcobsd-tdep.c: Likewise.
4877 * spu-multiarch.c: Likewise.
4878 * spu-tdep.c: Likewise.
4879 * stabsread.c: Likewise.
4880 * stack.c: Likewise.
4881 * symfile.c: Likewise.
4882 * symtab.c: Likewise.
4883 * target-descriptions.c: Likewise.
4884 * target-memory.c: Likewise.
4885 * target.c: Likewise.
4886 * tic6x-linux-tdep.c: Likewise.
4887 * tic6x-tdep.c: Likewise.
4888 * tilegx-linux-nat.c: Likewise.
4889 * tilegx-tdep.c: Likewise.
4891 * tramp-frame.c: Likewise.
4892 * tui/tui-out.c: Likewise.
4893 * tui/tui-winsource.c: Likewise.
4894 * ui-out.c: Likewise.
4895 * user-regs.c: Likewise.
4896 * utils.c: Likewise.
4897 * v850-tdep.c: Likewise.
4898 * valops.c: Likewise.
4899 * value.c: Likewise.
4900 * varobj.c: Likewise.
4901 * vax-nat.c: Likewise.
4902 * xml-syscall.c: Likewise.
4903 * xml-tdesc.c: Likewise.
4904 * xstormy16-tdep.c: Likewise.
4905 * xtensa-linux-nat.c: Likewise.
4906 * xtensa-tdep.c: Likewise.
4908 2014-08-07 Gary Benson <gbenson@redhat.com>
4910 * common/common-defs.h: Include common-utils.h.
4911 * defs.h: Do not include common-utils.h.
4912 * common/gdb_assert.h: Likewise.
4913 * darwin-nat.h: Likewise.
4914 * nat/linux-btrace.c: Likewise.
4915 * target/waitstatus.h: Likewise.
4917 2014-08-07 Gary Benson <gbenson@redhat.com>
4919 * common/common-defs.h: Include ptid.h.
4920 * defs.h: Do not include ptid.h.
4921 * inferior.h: Likewise.
4922 * infrun.h: Likewise.
4923 * nat/linux-btrace.h: Likewise.
4924 * nat/linux-osdata.h: Likewise.
4925 * target/waitstatus.h: Likewise.
4927 2014-08-07 Gary Benson <gbenson@redhat.com>
4929 * common/common-defs.h: Include gdb_locale.h.
4930 * defs.h: Do not include gdb_locale.h.
4932 2014-08-07 Gary Benson <gbenson@redhat.com>
4934 * common/common-defs.h: Include gdb/signals.h.
4935 * defs.h: Do not include gdb/signals.h.
4937 2014-08-07 Gary Benson <gbenson@redhat.com>
4939 * common/common-defs.h: Include pathmax.h.
4940 * defs.h: Do not include pathmax.h.
4942 2014-08-07 Gary Benson <gbenson@redhat.com>
4944 * common/common-defs.h: Include libiberty.h.
4945 * defs.h: Do not include libiberty.h.
4946 * common/queue.h: Likewise.
4947 * cp-name-parser.y: Likewise.
4948 * mi/mi-cmd-catch.c: Likewise.
4949 * python/python.c: Likewise.
4951 2014-08-07 Gary Benson <gbenson@redhat.com>
4953 * common/common-defs.h: Include ansidecl.h.
4954 * defs.h: Do not include ansidecl.h.
4955 * common/buffer.h: Likewise.
4956 * common/common-utils.h: Likewise.
4958 2014-08-07 Gary Benson <gbenson@redhat.com>
4960 * common/common-defs.h: Include stddef.h.
4961 * defs.h: Do not include stddef.h.
4962 * common/common-utils.h: Likewise.
4963 * amd64fbsd-nat.c: Likewise.
4964 * bcache.c: Likewise.
4965 * charset.c: Likewise.
4966 * common/buffer.h: Likewise.
4967 * common/vec.h: Likewise.
4968 * i386bsd-nat.c: Likewise.
4969 * nat/linux-btrace.h: Likewise.
4970 * ppcfbsd-nat.c: Likewise.
4971 * ppcnbsd-tdep.h: Likewise.
4972 * ppcobsd-nat.c: Likewise.
4973 * ppcobsd-tdep.h: Likewise.
4974 * python/py-gdb-readline.c: Likewise.
4976 2014-08-07 Gary Benson <gbenson@redhat.com>
4978 * common/common-defs.h: Include stdarg.h.
4979 * defs.h: Do not include stdarg.h.
4980 * ada-lang.c: Likewise.
4981 * common/common-utils.h: Likewise.
4982 * guile/scm-string.c: Likewise.
4983 * guile/scm-utils.c: Likewise.
4984 * m32c-tdep.c: Likewise.
4986 2014-08-07 Gary Benson <gbenson@redhat.com>
4988 * common/common-defs.h: Include stdlib.h.
4989 * defs.h: Do not include stdlib.h.
4990 * addrmap.c: Likewise.
4991 * bcache.c: Likewise.
4992 * common/buffer.c: Likewise.
4993 * common/common-utils.c: Likewise.
4994 * cp-name-parser.y: Likewise.
4995 * go32-nat.c: Likewise.
4996 * mn10300-linux-tdep.c: Likewise.
4997 * nat/linux-osdata.c: Likewise.
4998 * tui/tui.c: Likewise.
4999 * windows-nat.c: Likewise.
5001 2014-08-07 Gary Benson <gbenson@redhat.com>
5003 * common/common-defs.h: Include stdio.h.
5004 * defs.h: Do not include stdio.h.
5005 * ada-lang.c: Likewise.
5006 * common/buffer.c: Likewise.
5007 * common/common-utils.c: Likewise.
5008 * cp-name-parser.y: Likewise.
5009 * gnu-nat.c: Likewise.
5010 * go32-nat.c: Likewise.
5011 * i386gnu-nat.c: Likewise.
5012 * proc-api.c: Likewise.
5013 * proc-events.c: Likewise.
5014 * proc-flags.c: Likewise.
5015 * proc-why.c: Likewise.
5016 * python/python-internal.h: Likewise.
5017 * target-memory.c: Likewise.
5018 * tui/tui-io.c: Likewise.
5019 * tui/tui.c: Likewise.
5021 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5023 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5024 (scan_dyntag_auxv): Same.
5026 2014-08-06 Yao Qi <yao@codesourcery.com>
5028 * amd64-linux-nat.c: Remove duplicated include
5030 * i386-linux-nat.c: Likewise.
5032 2014-08-06 Yao Qi <yao@codesourcery.com>
5034 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5035 operand" with "Special opcode" in comments.
5037 2014-08-05 Gary Benson <gbenson@redhat.com>
5039 * interps.c (initialize_interps): Remove prototype.
5040 (interpreter_initialized): Remove static global.
5041 (interp_add): Do not call initialize_interps.
5042 (initialize_interps): Remove function.
5044 2014-08-05 Gary Benson <gbenson@redhat.com>
5046 * utils.c (vwarning): Remove spurious va_end.
5048 2014-08-05 Alan Modra <amodra@gmail.com>
5050 * charset.c (convert_between_encodings): Cast result of obstack_base.
5051 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5052 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5053 (read_unwind_info): Use size_t for some locals.
5054 * jit.c (finalize_symtab): Likewise.
5055 * utils.c (hashtab_obstack_allocate): Likewise.
5056 * symmisc.c (print_objfile_statistics): Update format strings.
5058 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5060 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5061 (Changes in GDB 7.8): ... here.
5063 2014-08-04 Tom Tromey <tromey@redhat.com>
5065 * target.c (set_targetdebug): New function.
5066 (initialize_targets): Pass set_targetdebug when creating "set
5069 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5071 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5072 if detecting a variable-sized field that is not the last field.
5073 Fix struct type length computation.
5075 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5077 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5080 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5082 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5083 Remove "+ 8" offset in computation of CHAIN_VMA.
5085 2014-07-31 Doug Evans <dje@google.com>
5087 * inflow.c (child_terminal_inferior): Add comment.
5088 (child_terminal_ours_for_output): Add comment.
5089 (child_terminal_ours): Add comment.
5090 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5091 (linux_nat_terminal_ours): Add comment.
5093 2014-07-31 Gary Benson <gbenson@redhat.com>
5095 * common/btrace-common.h: Do not include defs.h or server.h.
5096 * nat/mips-linux-watch.h: Likewise.
5097 * gdb-dlfcn.h: Do not include defs.h.
5098 * tracefile.h: Likewise.
5100 2014-07-30 Roland McGrath <mcgrathr@google.com>
5102 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5104 2014-07-30 Tom Tromey <tromey@redhat.com>
5106 * bsd-kvm.c (bsd_kvm_open): Constify.
5107 * corelow.c (core_open): Constify.
5108 * ctf.c (ctf_open): Constify.
5109 * dbug-rom.c (dbug_open): Constify.
5110 * exec.c (exec_open): Constify.
5111 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5112 * microblaze-rom.c (picobug_open): Constify.
5113 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5115 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5116 * record-btrace.c (record_btrace_open): Constify.
5117 * record-full.c (record_full_core_open_1, record_full_open_1)
5118 (record_full_open): Constify.
5119 * remote-m32r-sdi.c (m32r_open): Constify.
5120 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5121 (rockhopper_open, lsi_open): Constify.
5122 * remote-sim.c (gdbsim_open): Constify.
5123 * remote.c (remote_open, extended_remote_open, remote_open_1):
5125 * target.h (struct target_ops) <to_open>: Make "arg" const.
5126 * tracefile-tfile.c (tfile_open): Constify.
5128 2014-07-30 Tom Tromey <tromey@redhat.com>
5130 * breakpoint.c (map_breakpoint_numbers): Update.
5131 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5132 (get_number_const): New function.
5133 (get_number): Rewrite using get_number_const.
5134 (init_number_or_range): Make "string" const.
5135 (number_is_in_list): Make "list" const.
5136 * cli/cli-utils.h (get_number_const): Declare.
5137 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5138 (init_number_or_range, number_is_in_list): Update.
5139 * printcmd.c (map_display_numbers): Update.
5140 * value.c (value_from_history_ref): Constify.
5141 * value.h (value_from_history_ref): Update.
5143 2014-07-30 Tom Tromey <tromey@redhat.com>
5145 * corefile.c (hook_type, call_extra_exec_file_hooks)
5146 (specify_exec_file_hook): Constify.
5147 * exec.c (exec_file_attach): Make "filename" const.
5148 * gdbcore.h (deprecated_exec_file_display_hook)
5149 (specify_exec_file_hook, exec_file_attach): Constify.
5150 * main.c (captured_main): Use catch_command_errors_const.
5152 2014-07-30 Tom Tromey <tromey@redhat.com>
5154 * target.c (open_target): New function.
5155 (add_target_with_completer, add_deprecated_target_alias): Use
5156 set_cmd_sfunc, set_cmd_context.
5157 (debug_to_open): Remove.
5158 (setup_target_debug): Update.
5160 2014-07-30 Yao Qi <yao@codesourcery.com>
5162 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5164 * parse.c (exp_iterate): Update comments.
5166 2014-07-30 Gary Benson <gbenson@redhat.com>
5168 * common/common-defs.h: New file.
5169 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5170 * defs.h: Include common-defs.h.
5171 Do not include config.h or build-gnulib/config.h.
5173 2014-07-30 Gary Benson <gbenson@redhat.com>
5175 * common/common-utils.h: Do not include config.h.
5176 * nat/linux-btrace.h: Likewise.
5178 2014-07-30 Gary Benson <gbenson@redhat.com>
5180 * btrace.c: Include defs.h.
5181 * common/ptid.c: Include defs.h or server.h as appropriate.
5182 * nat/mips-linux-watch.c: Likewise.
5184 2014-07-29 Tom Tromey <tromey@redhat.com>
5186 * target.c (target_is_pushed): Simplify.
5188 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5192 2014-07-29 Yao Qi <yao@codesourcery.com>
5195 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5197 2014-07-28 Doug Evans <xdje42@gmail.com>
5200 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5201 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5204 2014-07-28 Will Newton <will.newton@linaro.org>
5206 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5207 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5208 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5209 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5210 (THUMB2_EABI_SYSCALL): Likewise.
5211 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5213 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5214 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5216 2014-07-27 Doug Evans <xdje42@gmail.com>
5218 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5220 2014-07-27 Doug Evans <xdje42@gmail.com>
5222 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5224 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5225 Doug Evans <xdje42@gmail.com>
5228 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5229 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5230 * configure.ac: Try to use guild to compile an scm file, if it fails
5231 then disable guile support.
5232 * configure: Regenerate.
5233 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5235 (GUILE_COMPILED_FILES): New variable.
5236 (GUILE_FILES) Update.
5237 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5238 (stamp-guile): Compile scm files.
5239 * guile/guile.c (boot_guile_support): New function.
5240 (standard_throw_args_p): New function.
5241 (print_standard_throw_error, print_throw_error): New functions.
5242 (handle_boot_error): New function.
5243 (initialize_scheme_side): Rewrite to call boot_guile_support.
5244 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5245 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5247 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5248 Doug Evans <xdje42@gmail.com>
5251 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5252 * guile/lib/gdb/support.scm: New file.
5253 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5254 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5256 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5258 (%assert-type): Ditto, and renamed to assert-type.
5259 (%exception-print-style): Delete.
5261 2014-07-26 Doug Evans <xdje42@gmail.com>
5264 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5265 * configure: Regenerate.
5266 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5268 (PYTHON_FILES): New variable.
5269 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5270 (GUILE_FILES): New variable.
5271 (stamp-python, install-python, uninstall-python): Handle empty
5273 (stamp-guile, install-guile, uninstall-guile): Ditto.
5275 2014-07-26 Doug Evans <xdje42@gmail.com>
5278 * guile/lib/gdb.scm (pretty-printers): Export.
5279 (set-pretty-printers!): Export.
5280 * guile/lib/gdb/printing.scm (gdb module): Update.
5281 (prepend-pretty-printer!, append-pretty-printer!): Update.
5282 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5283 (pretty_printer_list_var): Delete.
5284 (pretty_printer_list): New static global.
5285 (gdbscm_pretty_printers): New function.
5286 (gdbscm_set_pretty_printers_x): New function.
5287 (ppscm_find_pretty_printer_from_gdb): Update.
5288 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5289 (gdbscm_initialize_pretty_printers): Update.
5291 2014-07-26 Doug Evans <xdje42@gmail.com>
5294 * configure.ac: Add check for header gc/gc.h.
5295 Add check for function setenv.
5296 * configure: Regenerate.
5297 * config.in: Regenerate.
5298 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5300 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5302 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5303 variation in gdbarch matching.
5305 2014-07-25 Tom Tromey <tromey@redhat.com>
5307 * exec.c (using_exec_ops): Remove.
5308 (exec_close_1): Update. Remove extraneous block, reindent.
5309 (add_target_sections): Use target_is_pushed.
5311 2014-07-25 Pedro Alves <palves@redhat.com>
5313 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5314 * monitor.c (monitor_create_inferior): Likewise.
5315 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5316 * remote-sim.c (gdbsim_create_inferior): Likewise.
5317 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5318 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5319 * windows-nat.c (do_initial_windows_stuff): Likewise.
5321 2014-07-25 Pedro Alves <palves@redhat.com>
5323 * NEWS: Mention signal passing and "signal" command changes.
5324 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5326 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5328 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5329 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5330 (jump_command): Adjust clear_proceed_status call.
5331 (signal_command): Warn if other thread that are resumed have
5332 signals that will be delivered. Adjust clear_proceed_status call.
5333 (until_next_command, finish_command)
5334 (proceed_after_attach_callback, attach_command_post_wait)
5335 (attach_command): Adjust clear_proceed_status call.
5336 * infrun.c (proceed_after_vfork_done): Likewise.
5337 (proceed_after_attach_callback): Adjust comment.
5338 (clear_proceed_status_thread): Clear stop_signal if not in pass
5340 (clear_proceed_status_callback): Delete.
5341 (clear_proceed_status): New 'step' parameter. Only clear the
5342 proceed status of threads the command being prepared is about to
5344 (proceed): If passed in an explicit signal, override stop_signal
5345 with it. Don't pass the last stop signal to the thread we're
5347 (init_wait_for_inferior): Adjust clear_proceed_status call.
5348 (switch_back_to_stepped_thread): Clear the signal if it should not
5350 * infrun.h (clear_proceed_status): New 'step' parameter.
5351 (user_visible_resume_ptid): Add comment.
5352 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5353 signal is in pass state.
5354 * remote.c (append_pending_thread_resumptions): Likewise.
5355 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5357 2014-07-25 Tom Tromey <tromey@redhat.com>
5359 * target.h (target_stopped_data_address)
5360 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5363 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5365 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5367 (avr_pointer_to_address): Likewise.
5369 2014-07-24 Tom Tromey <tromey@redhat.com>
5371 * monitor.c (compile_pattern): Update.
5372 * target.h (struct target_ops) <to_shortname, to_longname,
5375 2014-07-24 Tom Tromey <tromey@redhat.com>
5377 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5378 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5379 (add_info_alias, add_com): Make "doc" const.
5380 (print_doc_line): Make "str" const.
5381 (delete_cmd): Update.
5382 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5383 (print_doc_line): Update.
5384 * cli/cli-script.c (document_command): Update.
5385 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5386 (add_com, add_info, add_info_alias): Update.
5387 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5388 * python/py-cmd.c (cmdpy_destroyer): Update.
5390 2014-07-24 Tom Tromey <tromey@redhat.com>
5392 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5393 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5394 (help_cmd_list): Constify.
5395 (lookup_cmd): Update.
5396 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5398 (help_cmd_list, apropos_cmd): Update.
5399 * cli/cli-script.c (show_user): Update.
5400 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5401 * cli/cli-setshow.h (cmd_show_list): Update.
5402 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5403 (cmd_show_list): Update.
5404 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5405 * python/py-cmd.c (cmdpy_destroyer): Update.
5407 2014-07-24 Tom Tromey <tromey@redhat.com>
5409 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5410 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5412 * command.h (deprecate_cmd): Update.
5413 * maint.c (maintenance_do_deprecate): Add casts.
5415 2014-07-24 Tom Tromey <tromey@redhat.com>
5417 * cli/cli-decode.c (help_cmd): Make parameter "const".
5418 * cli/cli-decode.h (help_cmd): Update.
5420 2014-07-24 Tom Tromey <tromey@redhat.com>
5422 * stack.c (up_silently_base, down_silently_base): Make argument
5425 2014-07-24 Tom Tromey <tromey@redhat.com>
5427 * solib.c (solib_add): Make "pattern" const.
5428 * solib.h (solib_add): Update.
5430 2014-07-24 Tom Tromey <tromey@redhat.com>
5432 * remote.c (remote_serial_open, print_packet, putpkt)
5433 (putpkt_binary): Constify.
5434 * remote.h (putpkt): Update.
5436 2014-07-24 Tom Tromey <tromey@redhat.com>
5438 * monitor.c (monitor_open): Make "args" const.
5439 * monitor.h (monitor_open): Update.
5441 2014-07-24 Tom Tromey <tromey@redhat.com>
5443 * maint.c (match_bfd_flags): Make "string" const.
5444 (print_bfd_section_info): Remove casts.
5445 (print_objfile_section_info): Make "string" const.
5447 2014-07-24 Tom Tromey <tromey@redhat.com>
5449 * inf-child.c (inf_child_open_target): Make "arg" const.
5450 * inf-child.h (inf_child_open_target): Update.
5452 2014-07-24 Tom Tromey <tromey@redhat.com>
5454 * environ.c (unset_in_environ): Make "var" const.
5455 * environ.h (unset_in_environ): Update.
5457 2014-07-24 Tom Tromey <tromey@redhat.com>
5459 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5461 (scan_filename_with_cleanup): Likewise.
5462 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5463 Make arguments const.
5464 (restore_command): Update.
5466 2014-07-24 Pedro Alves <palves@redhat.com>
5468 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5470 2014-07-24 Tom Tromey <tromey@redhat.com>
5471 Gary Benson <gbenson@redhat.com>
5473 * nat/linux-ptrace.c (additional_flags): New global.
5474 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5475 additional_flags; don't check GDBSERVER.
5476 (linux_ptrace_set_additional_flags): New function.
5477 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5479 * linux-nat.c (_initialize_linux_nat): Call
5480 linux_ptrace_set_additional_flags.
5482 2014-07-24 Tom Tromey <tromey@redhat.com>
5484 * make-target-delegates (munge_type, write_debugmethod): New
5486 (debug_names): New global.
5487 ($TARGET_DEBUG_PRINTER): New global.
5488 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5490 Write debug methods. Generate init_debug_target.
5491 * target-debug.h: New file.
5492 * target-delegates.c: Rebuild.
5493 * target.c: Include target-debug.h.
5494 (debug_target): Hoist definition.
5495 (target_kill, target_get_section_table, target_memory_map)
5496 (target_flash_erase, target_flash_done, target_detach)
5497 (target_disconnect, target_wait, target_resume)
5498 (target_pass_signals, target_program_signals, target_follow_fork)
5499 (target_mourn_inferior, target_search_memory)
5500 (target_thread_address_space, target_close)
5501 (target_find_new_threads, target_core_of_thread)
5502 (target_verify_memory, target_insert_mask_watchpoint)
5503 (target_remove_mask_watchpoint): Remove targetdebug code.
5504 (debug_to_post_attach, debug_to_prepare_to_store)
5505 (debug_to_files_info, debug_to_insert_breakpoint)
5506 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5507 (debug_to_region_ok_for_hw_watchpoint)
5508 (debug_to_can_accel_watchpoint_condition)
5509 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5510 (debug_to_watchpoint_addr_within_range)
5511 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5512 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5513 (debug_to_terminal_init, debug_to_terminal_inferior)
5514 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5515 (debug_to_terminal_save_ours, debug_to_terminal_info)
5516 (debug_to_load, debug_to_post_startup_inferior)
5517 (debug_to_insert_fork_catchpoint)
5518 (debug_to_remove_fork_catchpoint)
5519 (debug_to_insert_vfork_catchpoint)
5520 (debug_to_remove_vfork_catchpoint)
5521 (debug_to_insert_exec_catchpoint)
5522 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5523 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5524 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5525 (setup_target_debug): Call init_debug_target.
5526 * target.h (TARGET_DEBUG_PRINTER): New macro.
5527 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5528 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5530 2014-07-24 Gary Benson <gbenson@redhat.com>
5532 * exceptions.h (throw_vfatal): Renamed to...
5533 (throw_vquit): New declaration.
5534 (throw_quit): Likewise.
5535 * exceptions.c (throw_vfatal): Renamed to...
5536 (throw_vquit): New function.
5537 (throw_quit): Likewise.
5538 (throw_error): Call throw_verror rather than throw_it.
5539 * utils.h (vfatal): Removed.
5541 * utils.c (vfatal): Removed.
5543 (internal_verror): Replaced call to fatal with call to throw_quit.
5544 (quit): Replaced calls to fatal with calls to throw_quit.
5546 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5548 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5551 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5553 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5554 less than zero in conditional expression.
5556 2014-07-23 Tom Tromey <tromey@redhat.com>
5558 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5559 ($INTRO_PART): Don't match whitespace.
5560 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5562 ($METHOD): Add $METHOD_TRAILER.
5564 (scan_target_h): New sub.
5565 Change main loop not to collect state.
5566 * target-delegates.c: Rebuild.
5568 2014-07-23 Gary Benson <gbenson@redhat.com>
5570 * cp-support.c (gdb_demangle): Fix build on systems without
5573 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5575 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5576 for reference entry value target data value.
5578 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5580 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5581 value_available_contents_eq.
5583 2014-07-22 Pedro Alves <palves@redhat.com>
5585 * value.c (allocate_optimized_out_value): Don't mark value as
5588 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5590 * MAINTAINERS (Write After Approval): Update my email address.
5592 2014-07-20 Doug Evans <dje@google.com>
5595 * remote.c (putpkt_binary): Add text to error message.
5597 2014-07-20 Yao Qi <yao@codesourcery.com>
5599 * eval.c: Remove "Chill" from comments.
5600 * gdbtypes.h: Likewise.
5601 * symtab.h: Likewise.
5603 2014-07-20 Yao Qi <yao@codesourcery.com>
5605 * std-operator.def: Update comments to TERNOP_SLICE.
5607 2014-07-20 Yao Qi <yao@codesourcery.com>
5609 * std-operator.def: Remove BINOP_RANGE.
5610 * breakpoint.c (watchpoint_exp_is_const): Update.
5611 * expprint.c (dump_subexp_body_standard): Likewise.
5612 * eval.c (init_array_element): Remove dead code.
5613 (evaluate_subexp_standard): Likewise.
5615 2014-07-20 Yao Qi <yao@codesourcery.com>
5617 * std-operator.def: Remove BINOP_IN.
5618 * breakpoint.c (watchpoint_exp_is_const): Update.
5619 * eval.c (evaluate_subexp_standard): Likewise.
5620 * expprint.c (dump_subexp_body_standard): Likewise.
5622 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5624 * microblaze-tdep.c (microblaze_register_names): Add
5625 the rshr and rslr register names.
5626 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5627 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5628 Use of tdesc_numbered_register. Use of
5629 microblaze_register_g_packet_guesses. Use of
5630 tdesc_use_registers. Use of set_gdbarch_register_type.
5631 (microblaze_register_g_packet_guesses): New.
5632 * microblaze-tdep.h (microblaze_reg_num): Add
5633 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5634 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5635 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5636 * features/microblaze-core.xml: New file.
5637 * features/microblaze-stack-protect.xml: New file.
5638 * features/microblaze-with-stack-protect.c: New file.
5639 * features/microblaze-with-stack-protect.xml: New file.
5640 * features/microblaze.xml: New file.
5641 * features/microblaze.c: New file.
5642 * features/Makefile (microblaze-with-stack-protect): Add
5643 microblaze-with-stack-protect microblaze and microblaze-expedite.
5644 * regformats/microblaze-with-stack-protect.dat: New file.
5645 * regformats/microblaze.dat: New file.
5646 * doc/gdb.texinfo (MicroBlaze Features): Added.
5648 2014-07-18 Tom Tromey <tromey@redhat.com>
5650 * exec.c (exec_ops): Now static.
5651 * exec.h (exec_ops): Don't declare.
5653 2014-07-18 Tom Tromey <tromey@redhat.com>
5655 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5656 to find_target_beneath.
5657 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5658 find_target_beneath.
5659 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5661 2014-07-18 Tom Tromey <tromey@redhat.com>
5664 * utils.c (quit): Use target_supports_terminal_ours.
5665 * target.h (target_supports_terminal_ours): Declare.
5666 * target.c (target_supports_delete_record): Don't check
5667 to_delete_record against NULL.
5668 (target_supports_terminal_ours): New function.
5670 2014-07-18 Tom Tromey <tromey@redhat.com>
5673 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5674 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5675 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5676 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5677 * windows-nat.c (windows_xfer_partial): Always delegate.
5678 * record-btrace.c (record_btrace_xfer_partial): Simplify
5680 (record_btrace_fetch_registers, record_btrace_store_registers)
5681 (record_btrace_prepare_to_store, record_btrace_resume)
5682 (record_btrace_wait, record_btrace_find_new_threads)
5683 (record_btrace_thread_alive): Likewise.
5684 * procfs.c (procfs_xfer_partial): Always delegate.
5685 * corelow.c (core_xfer_partial): Always delegate.
5686 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5688 2014-07-18 Tom Tromey <tromey@redhat.com>
5690 * exec.c (exec_make_note_section): Move earlier.
5692 2014-07-17 Doug Evans <dje@google.com>
5695 * maint.c (count_symtabs_and_blocks): Handle NULL
5696 current_program_space.
5697 (report_command_stats): Check global enabled flag in addition to
5698 recorded enabled flag.
5699 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5701 2014-07-16 Pedro Alves <palves@redhat.com>
5703 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5705 2014-07-16 Tom Tromey <tromey@redhat.com>
5707 * target.h (struct target_ops) <to_delete_record>: Reformat
5710 2014-07-16 Tom Tromey <tromey@redhat.com>
5712 * target-delegates.c: Rebuild.
5714 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5716 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5717 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5718 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5719 (avr_pointer_to_address): Likewise.
5720 (avr_address_class_type_flags): New function.
5721 (avr_address_class_type_flags_to_name): Likewise.
5722 (avr_address_class_name_to_type_flags): Likewise.
5723 (avr_gdbarch_init): Set address_class_type_flags,
5724 address_class_type_flags_to_name and
5725 address_class_name_to_type_flags.
5727 2014-07-15 Pedro Alves <palves@redhat.com>
5729 * linux-nat.c (kill_callback): Save errno and work with saved
5732 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5734 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5736 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5738 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5739 breakpoint support correctly.
5741 2014-07-14 Pedro Alves <palves@redhat.com>
5743 * utils.c (prompt_for_continue): Call target_terminal_ours.
5745 2014-07-14 Pedro Alves <palves@redhat.com>
5747 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5748 catch_errors. Don't re-enable stdin or notify observers where,
5750 (fetch_inferior_event_wrapper): Delete.
5752 2014-07-14 Pedro Alves <palves@redhat.com>
5755 * top.c: Include "inf-loop.h".
5756 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5758 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5760 (gdb_readline_wrapper): Store whether the target is async, and
5763 2014-07-14 Pedro Alves <palves@redhat.com>
5766 * top.c (gdb_readline_wrapper_line): Tweak comment.
5767 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5768 the input handler callback.
5770 2014-07-14 Pedro Alves <palves@redhat.com>
5773 * main.c: Include event-top.h.
5774 (handle_command_errors): New function.
5775 (catch_command_errors, catch_command_errors_const): Use it.
5777 2014-07-14 Pedro Alves <palves@redhat.com>
5779 * exceptions.c (catch_command_errors, catch_command_errors_const):
5781 * exceptions.h (catch_command_errors_ftype)
5782 (catch_command_errors_const_ftype): Moved to main.c.
5783 (catch_command_errors, catch_command_errors_const): Delete
5785 * main.c (catch_command_errors_ftype)
5786 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5787 (catch_command_errors, catch_command_errors_const)): Moved here
5788 from exceptions.c and make static.
5790 2014-07-14 Pedro Alves <palves@redhat.com>
5792 * exceptions.c (print_any_exception): Delete.
5793 (catch_exceptions_with_msg): Use exception_print instead of
5794 print_any_exception.
5795 (catch_errors): Use exception_fprintf instead of
5796 print_any_exception.
5797 (catch_command_errors, catch_command_errors_const): Use
5798 exception_print instead of print_any_exception.
5800 2014-07-14 Pedro Alves <palves@redhat.com>
5802 * infcall.c (run_inferior_call): Set 'sync_execution' while
5803 running the inferior call.
5805 2014-07-14 Pedro Alves <palves@redhat.com>
5807 * value.c (value_contents_equal): Delete function.
5808 * value.h (value_contents_equal): Delete declaration.
5810 2014-07-14 Tom Tromey <tromey@redhat.com>
5813 * gdbtypes.c (is_dynamic_type_internal): New function, from
5815 (is_dynamic_type): Rewrite.
5816 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5817 (resolve_dynamic_struct): Likewise.
5818 (resolve_dynamic_type_internal): New function, from
5819 resolve_dynamic_type.
5820 (resolve_dynamic_type): Rewrite.
5822 2014-07-14 Tom Tromey <tromey@redhat.com>
5824 * target.c (target_require_runnable): Also check record_stratum.
5827 2014-07-11 Yao Qi <yao@codesourcery.com>
5829 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5830 thumb_instruction_restores_sp return true.
5832 2014-07-11 Yao Qi <yao@codesourcery.com>
5834 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5835 (thumb_in_function_epilogue_p): Call
5836 thumb_instruction_restores_sp.
5838 2014-07-11 Yao Qi <yao@codesourcery.com>
5840 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5842 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5844 2014-07-11 Gary Benson <gbenson@redhat.com>
5846 * amd64-linux-nat.c (gdbcore.h): Remove include.
5847 (regset.h): Likewise.
5848 (nat/linux-btrace.h): Likewise.
5849 (btrace.h): Likewise.
5850 (gdb_assert.h): Likewise.
5851 (string.h): Likewise.
5852 (sys/uio.h): Likewise.
5853 (sys/debugreg.h): Likewise.
5854 (sys/syscall.h): Likewise.
5855 (sys/procfs.h): Likewise.
5856 (sys/user.h): Likewise.
5857 (asm/ptrace.h): Likewise.
5858 (i386-nat.h): Likewise.
5859 * i386-linux-nat.c (i386-nat.h): Likewise.
5860 (regset.h): Likewise.
5861 (target.h): Likewise.
5862 (linux-nat.h): Likewise.
5863 (nat/linux-btrace.h): Likewise.
5864 (btrace.h): Likewise.
5865 (gdb_assert.h): Likewise.
5866 (string.h): Likewise.
5867 (sys/uio.h): Likewise.
5868 (sys/user.h): Likewise.
5869 (sys/procfs.h): Likewise.
5870 (sys/reg.h): Likewise.
5871 (sys/debugreg.h): Likewise.
5872 (ORIG_EAX): Remove definition.
5874 2014-07-11 Gary Benson <gbenson@redhat.com>
5876 * i386-linux-nat.h: New file.
5877 * x86-linux-nat.h: Likewise.
5878 * x86-linux-nat.c: Likewise.
5879 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5880 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5881 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5882 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5883 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5884 (PTRACE_SETREGSET): Likewise.
5885 (arch_lwp_info): Now in x86-linux-nat.c.
5886 (have_ptrace_getregset): Now in x86-linux-nat.h.
5887 (x86_linux_dr_get): Now in x86-linux-nat.c.
5888 (x86_linux_dr_set): Likewise.
5889 (x86_linux_dr_get_addr): Likewise.
5890 (x86_linux_dr_get_control): Likewise.
5891 (x86_linux_dr_get_status): Likewise.
5892 (update_debug_registers_callback): Likewise.
5893 (x86_linux_dr_set_control): Likewise.
5894 (x86_linux_dr_set_addr): Likewise.
5895 (x86_linux_prepare_to_resume): Likewise.
5896 (x86_linux_new_thread): Likewise.
5897 (x86_linux_new_fork): Likewise.
5898 (x86_linux_get_thread_area): Likewise.
5899 (super_post_startup_inferior): Likewise.
5900 (x86_linux_child_post_startup_inferior): Likewise.
5901 (AMD64_LINUX_USER64_CS): Likewise.
5902 (AMD64_LINUX_X32_DS): Likewise.
5903 (x86_linux_read_description): Likewise.
5904 (x86_linux_enable_btrace): Likewise.
5905 (x86_linux_disable_btrace): Likewise.
5906 (x86_linux_teardown_btrace): Likewise.
5907 (x86_linux_read_btrace): Likewise.
5908 (x86_linux_create_target): Likewise.
5909 (x86_linux_add_target): Likewise.
5910 * i386-linux-nat.c (x86-linux-nat.h): New include.
5911 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5912 (PTRACE_SETREGSET): Likewise.
5913 (arch_lwp_info): Now in x86-linux-nat.c.
5914 (have_ptrace_getregset): Now in x86-linux-nat.h.
5915 (x86_linux_dr_get): Now in x86-linux-nat.c.
5916 (x86_linux_dr_set): Likewise.
5917 (x86_linux_dr_get_addr): Likewise.
5918 (x86_linux_dr_get_control): Likewise.
5919 (x86_linux_dr_get_status): Likewise.
5920 (update_debug_registers_callback): Likewise.
5921 (x86_linux_dr_set_control): Likewise.
5922 (x86_linux_dr_set_addr): Likewise.
5923 (x86_linux_prepare_to_resume): Likewise.
5924 (x86_linux_new_thread): Likewise.
5925 (x86_linux_new_fork): Likewise.
5926 (x86_linux_get_thread_area): Likewise.
5927 (super_post_startup_inferior): Likewise.
5928 (x86_linux_child_post_startup_inferior): Likewise.
5929 (AMD64_LINUX_USER64_CS): Likewise.
5930 (AMD64_LINUX_X32_DS): Likewise.
5931 (x86_linux_read_description): Likewise.
5932 (x86_linux_enable_btrace): Likewise.
5933 (x86_linux_disable_btrace): Likewise.
5934 (x86_linux_teardown_btrace): Likewise.
5935 (x86_linux_read_btrace): Likewise.
5936 (x86_linux_create_target): Likewise.
5937 (x86_linux_add_target): Likewise.
5939 2014-07-11 Gary Benson <gbenson@redhat.com>
5941 * amd64-linux-nat.c: Comment and whitespace changes.
5942 * i386-linux-nat.c: Comment and whitespace changes.
5944 2014-07-11 Gary Benson <gbenson@redhat.com>
5946 * amd64-linux-nat.c (x86_linux_create_target): New function.
5947 (x86_linux_add_target): Likewise.
5948 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5949 * i386-linux-nat.c (x86_linux_create_target): New function.
5950 (x86_linux_add_target): Likewise.
5951 (_initialize_i386_linux_nat): Delegate to the above new functions.
5953 2014-07-11 Gary Benson <gbenson@redhat.com>
5955 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5956 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5957 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5958 (ps_get_thread_area): Delegate to the above.
5960 2014-07-11 Gary Benson <gbenson@redhat.com>
5962 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5963 x86_linux_read_description. All uses updated. amd64-specific
5964 code conditionalized. Conditionalized i386-specific code added.
5965 Redundant cast removed.
5966 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5967 x86_linux_read_description. All uses updated. i386-specific
5968 code conditionalized. Conditionalized amd64-specific code added.
5969 One sizeof replaced with the actual type it is describing.
5971 2014-07-11 Gary Benson <gbenson@redhat.com>
5973 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5974 x86_linux_dr_get. All uses updated.
5975 (amd64_linux_dr_set): Renamed to
5976 x86_linux_dr_set. All uses updated.
5977 (amd64_linux_dr_get_addr): Renamed to
5978 x86_linux_dr_get_addr. All uses updated.
5979 (amd64_linux_dr_get_control): Renamed to
5980 x86_linux_dr_get_control. All uses updated.
5981 (amd64_linux_dr_get_status): Renamed to
5982 x86_linux_dr_get_status. All uses updated.
5983 (amd64_linux_dr_set_control): Renamed to
5984 x86_linux_dr_set_control. All uses updated.
5985 (amd64_linux_dr_set_addr): Renamed to
5986 x86_linux_dr_set_addr. All uses updated.
5987 (amd64_linux_prepare_to_resume): Renamed to
5988 x86_linux_prepare_to_resume. All uses updated.
5989 (amd64_linux_new_thread): Renamed to
5990 x86_linux_new_thread. All uses updated.
5991 (amd64_linux_new_fork): Renamed to
5992 x86_linux_new_fork. All uses updated.
5993 (amd64_linux_child_post_startup_inferior): Renamed to
5994 x86_linux_child_post_startup_inferior. All uses updated.
5995 (amd64_linux_enable_btrace): Renamed to
5996 x86_linux_enable_btrace. All uses updated.
5997 (amd64_linux_disable_btrace): Renamed to
5998 x86_linux_disable_btrace. All uses updated.
5999 (amd64_linux_teardown_btrace): Renamed to
6000 x86_linux_teardown_btrace. All uses updated.
6001 (amd64_linux_read_btrace): Renamed to
6002 x86_linux_read_btrace. All uses updated.
6003 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6004 x86_linux_dr_get. All uses updated.
6005 (i386_linux_dr_set): Renamed to
6006 x86_linux_dr_set. All uses updated.
6007 (i386_linux_dr_get_addr): Renamed to
6008 x86_linux_dr_get_addr. All uses updated.
6009 (i386_linux_dr_get_control): Renamed to
6010 x86_linux_dr_get_control. All uses updated.
6011 (i386_linux_dr_get_status): Renamed to
6012 x86_linux_dr_get_status. All uses updated.
6013 (i386_linux_dr_set_control): Renamed to
6014 x86_linux_dr_set_control. All uses updated.
6015 (i386_linux_dr_set_addr): Renamed to
6016 x86_linux_dr_set_addr. All uses updated.
6017 (i386_linux_prepare_to_resume): Renamed to
6018 x86_linux_prepare_to_resume. All uses updated.
6019 (i386_linux_new_thread): Renamed to
6020 x86_linux_new_thread. All uses updated.
6021 (i386_linux_new_fork): Renamed to
6022 x86_linux_new_fork. All uses updated.
6023 (i386_linux_child_post_startup_inferior): Renamed to
6024 x86_linux_child_post_startup_inferior. All uses updated.
6025 (i386_linux_enable_btrace): Renamed to
6026 x86_linux_enable_btrace. All uses updated.
6027 (i386_linux_disable_btrace): Renamed to
6028 x86_linux_disable_btrace. All uses updated.
6029 (i386_linux_teardown_btrace): Renamed to
6030 x86_linux_teardown_btrace. All uses updated.
6031 (i386_linux_read_btrace): Renamed to
6032 x86_linux_read_btrace. All uses updated.
6034 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6036 * remote.c (extended_remote_post_attach): New function.
6037 (init_extended_remote_ops): Install it as to_post_attach method.
6039 2014-07-09 Pedro Alves <palves@redhat.com>
6041 * infcmd.c (attach_command_post_wait): Don't call
6042 target_terminal_inferior here.
6043 (attach_command): Call it here instead.
6045 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6047 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6049 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6050 from varobj.c, with additional checks.
6051 (c_varobj_ops): Fill in is_path_expr_parent field.
6052 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6053 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6055 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6057 (varobj_default_is_path_expr_parent): New function.
6058 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6059 (varobj_default_is_path_expr_parent): Declare new function.
6061 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6063 * infcmd.c (finish_backward): Turn internal error into normal error.
6065 2014-07-07 Pedro Alves <palves@redhat.com>
6068 * remote.c (async_handle_remote_sigint)
6069 (async_handle_remote_sigint_twice): Call
6070 gdb_call_async_signal_handler instead of
6071 mark_async_signal_handler.
6073 2014-07-07 Tom Tromey <tromey@redhat.com>
6075 * target-delegates.c: Rebuild.
6076 * target.c (target_info_record): Remove.
6077 * record.c (info_record_command): Unconditionally call
6079 * target.h (struct target_ops) <to_info_record>: Use
6080 TARGET_DEFAULT_IGNORE.
6081 (target_info_record): Remove.
6083 2014-07-07 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6086 TARGET_DEFAULT_NORETURN.
6087 * target.c (generic_tls_error): New function.
6088 (target_translate_tls_address): Don't search target stack.
6089 * target-delegates.c: Rebuild.
6090 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6092 * linux-thread-db.c (thread_db_get_thread_local_address):
6093 Unconditionally call beneath target.
6095 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6097 * cli/cli-logging.c (pop_output_files): Assign targerr to
6100 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6102 * MAINTAINERS (Write After Approval): Update my email address.
6104 2014-07-02 Gary Benson <gbenson@redhat.com>
6106 * proc-service.c (ps_xfer_memory): Update comment.
6107 (ps_pstop): Remove unused function.
6108 (ps_pcontinue): Likewise.
6109 (ps_lstop): Likewise.
6110 (ps_lcontinue): Likewise.
6111 (ps_lgetxregsize): Likewise.
6112 (ps_lgetxregs): Likewise.
6113 (ps_lsetxregs): Likewise.
6114 (ps_plog): Likewise.
6115 (ps_ptread): Likewise.
6116 (ps_ptwrite): Likewise.
6118 2014-07-01 Mark Wielaard <mjw@redhat.com>
6120 * dwarf2read.c (add_array_cv_type): New function.
6121 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6122 (read_tag_volatile_type): Likewise.
6124 2014-07-01 Tom Tromey <tromey@redhat.com>
6126 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6127 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6128 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6129 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6130 * command.h (cmd_cfunc_ftype): Move earlier.
6131 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6132 (add_com, add_info): Use cmd_cfunc_ftype.
6134 2014-06-30 Tom Tromey <tromey@redhat.com>
6136 * symtab.c (operator_chars): Make parameters and return type
6138 (file_matches): Make "files" const.
6139 (struct search_symbols_data) <files>: Now const.
6140 (search_symbols): Make "regexp" and "files" parameters const.
6142 (symtab_symbol_info): Remove cast.
6143 (rbreak_command): Update.
6144 * symtab.h (search_symbols): Update.
6146 2014-06-27 Yao Qi <yao@codesourcery.com>
6148 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6149 Change parameter type to 'struct thread_info *'. Caller
6151 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6153 * dummy-frame.c (struct dummy_frame_id): New.
6154 (dummy_frame_id_eq): New function.
6155 (struct dummy_frame) <id>: Change its type to 'struct
6157 (dummy_frame_push): Add parameter ptid and save it in
6159 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6161 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6163 (lookup_dummy_frame): Change parameter type to 'struct
6164 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6165 instead of frame_id_eq.
6166 (dummy_frame_pop): Add parameter ptid. Callers updated.
6167 Update comments. Compose dummy_frame_id and pass it to
6169 (dummy_frame_discard): Add parameter ptid.
6170 (dummy_frame_sniffer): Compose dummy_frame_id and call
6171 dummy_frame_id_eq instead of frame_id_eq.
6172 (fprint_dummy_frames): Print ptid.
6173 * dummy-frame.h: Remove comments.
6174 (dummy_frame_push): Add ptid in declaration.
6175 (dummy_frame_pop, dummy_frame_discard): Likewise.
6177 2014-06-26 Tom Tromey <tromey@redhat.com>
6179 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6180 * command.h (error_no_arg): Update.
6182 2014-06-26 Tom Tromey <tromey@redhat.com>
6184 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6185 (do_show_command): Make "arg" const.
6186 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6188 2014-06-26 Tom Tromey <tromey@redhat.com>
6190 * record-full.c (record_full_get_bookmark): Make "args" const.
6191 (record_full_goto_bookmark): Make "raw_bookmark" const.
6192 * record.c (record_goto): New function.
6193 (cmd_record_goto): Use it. Now static.
6194 * record.h (record_goto): Declare.
6195 (cmd_record_goto): Remove declaration.
6196 * target-delegates.c: Rebuild.
6197 * target.h (struct target_ops) <to_get_bookmark,
6198 to_goto_bookmark>: Make parameter const.
6200 2014-06-26 Tom Tromey <tromey@redhat.com>
6202 * defs.h (generic_load): Update.
6203 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6204 * monitor.c (monitor_load): Make "args" const.
6205 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6206 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6208 (mips_load): Make "file" const.
6209 * remote-sim.c (gdbsim_load): Make "args" const.
6210 * remote.c (remote_load): Make "name" const.
6211 * symfile.c (generic_load): Make "args" const.
6212 * target-delegates.c: Rebuild.
6213 * target.c (target_load): Make "arg" const.
6214 (debug_to_load): Make "args" const.
6215 * target.h (struct target_ops) <to_load>: Make parameter const.
6216 (target_load): Update.
6218 2014-06-26 Tom Tromey <tromey@redhat.com>
6221 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6222 (dwarf2_physname, read_partial_die)
6223 (guess_partial_die_structure_name, fixup_partial_die)
6224 (guess_full_die_structure_name, anonymous_struct_prefix)
6225 (dwarf2_name): Use per-BFD obstack.
6227 2014-06-26 Yao Qi <yao@codesourcery.com>
6229 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6230 dummyframe and this_id into inner block below.
6232 2014-06-26 Yao Qi <yao@codesourcery.com>
6234 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6235 with "signal_pass[0]" in the initialization of signal_pass.
6237 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6239 * record-btrace.c (record_btrace_generating_corefile)
6240 (record_btrace_prepare_to_generate_core)
6241 (record_btrace_done_generating_core): New.
6242 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6243 (record_btrace_store_registers, record_btrace_prepare_to_store):
6244 Forward request when generating a core file.
6245 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6246 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6247 to_done_generating_core.
6249 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6251 * target.h (target_ops) <to_prepare_to_generate_core>
6252 <to_done_generating_core>: New.
6253 (target_prepare_to_generate_core, target_done_generating_core): New.
6254 * target.c (target_prepare_to_generate_core)
6255 (target_done_generating_core): New.
6256 * target-delegates.c: Regenerate.
6257 * gcore.c: (write_gcore_file): Rename to ...
6258 (write_gcore_file_1): ...this.
6259 (write_gcore_file): Call target_prepare_to_generate_core
6260 and target_done_generating_core.
6262 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6264 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6265 * gcore.c (write_gcore_file): Free memory returned from
6266 make_corefile_notes.
6267 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6268 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6270 2014-06-24 Yao Qi <yao@codesourcery.com>
6272 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6273 (arm_linux_init_abi): Set skip_trampoline_code with
6274 gdbarch_skip_trampoline_code instead of
6275 find_solib_trampoline_target.
6277 2014-06-24 Yao Qi <yao@codesourcery.com>
6279 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6280 arm_skip_bx_reg returns non-zero.
6282 2014-06-24 Yao Qi <yao@codesourcery.com>
6284 * arm-tdep.c (arm_skip_bx_reg): New function.
6285 (arm_skip_stub): Call arm_skip_bx_reg.
6287 2014-06-23 Don Breazeal <donb@codesourcery.com>
6289 * MAINTAINERS: Add myself as write-after-approval maintainer.
6291 2014-06-23 Pedro Alves <palves@redhat.com>
6293 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6294 DR_CONTROL before setting DR0..DR3.
6295 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6296 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6297 bits of DR_CONTROL related to the debug register slot being
6298 disabled. If all slots are vacant, clear local slowdown as well,
6299 and assert DR_CONTROL is 0.
6301 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6303 * python/lib/gdb/command/xmethods.py
6304 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6305 current progspace only if the string "progspace" matches LOCUS_RE.
6307 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6309 Fix --with-system-readline with readline-6.3 patch 5.
6310 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6311 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6314 2014-06-20 Tom Tromey <tromey@redhat.com>
6316 * dwarf2read.c (dw2_get_real_path): Use correct type in
6318 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6320 2014-06-20 Gary Benson <gbenson@redhat.com>
6322 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6323 * common/glibc_thread_db.h: Likewise.
6324 * common/i386-cpuid.h: Likewise.
6325 * common/i386-gcc-cpuid.h: Likewise.
6326 * common/linux-btrace.h: Likewise.
6327 * common/linux-osdata.h: Likewise.
6328 * common/linux-procfs.h: Likewise.
6329 * common/linux-ptrace.h: Likewise.
6330 * common/mips-linux-watch.h: Likewise.
6331 * common/linux-btrace.c: Moved to nat.
6332 * common/linux-osdata.c: Likewise.
6333 * common/linux-procfs.c: Likewise.
6334 * common/linux-ptrace.c: Likewise.
6335 * common/mips-linux-watch.c: Likewise.
6336 * nat/gdb_thread_db.h: Moved from common.
6337 * nat/glibc_thread_db.h: Likewise.
6338 * nat/i386-cpuid.h: Likewise.
6339 * nat/i386-gcc-cpuid.h: Likewise.
6340 * nat/linux-btrace.c: Likewise.
6341 * nat/linux-btrace.h: Likewise.
6342 * nat/linux-osdata.c: Likewise.
6343 * nat/linux-osdata.h: Likewise.
6344 * nat/linux-procfs.c: Likewise.
6345 * nat/linux-procfs.h: Likewise.
6346 * nat/linux-ptrace.c: Likewise.
6347 * nat/linux-ptrace.h: Likewise.
6348 * nat/mips-linux-watch.c: Likewise.
6349 * nat/mips-linux-watch.h: Likewise.
6350 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6351 (object file files): Reordered.
6352 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6353 of glibc_thread_db.h.
6355 2014-06-20 Gary Benson <gbenson@redhat.com>
6357 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6358 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6359 (i386_dr_low): Likewise.
6360 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6361 (i386_dr_low_set_addr): Likewise.
6362 (i386_dr_low_get_addr): Likewise.
6363 (i386_dr_low_can_set_control): Likewise.
6364 (i386_dr_low_set_control): Likewise.
6365 (i386_dr_low_get_control): Likewise.
6366 (i386_dr_low_get_status): Likewise.
6367 (i386_get_debug_register_length): Likewise.
6368 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6369 (i386_dr_low): Likewise.
6370 * nat/i386-dregs.c (i386-low.h): Remove include.
6371 (i386-nat.h): Likewise.
6372 (nat/i386-dregs.h): New include.
6373 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6374 (i386_dr_low_set_addr): Likewise.
6375 (i386_dr_low_get_addr): Likewise.
6376 (i386_dr_low_can_set_control): Likewise.
6377 (i386_dr_low_set_control): Likewise.
6378 (i386_dr_low_get_control): Likewise.
6379 (i386_dr_low_get_status): Likewise.
6380 (i386_get_debug_register_length): Likewise.
6381 (debug_hw_points): Likewise.
6383 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6385 * Makefile.in (SFILES): Add d-exp.y.
6386 (YYFILES): Add d-exp.c.
6387 (YYOBJ): Add d-exp.o.
6388 (local-maintainer-clean): Delete d-exp.c.
6389 * d-exp.y: New file.
6390 * d-lang.h (d_parse): New declaration.
6391 (d_error): New declaration.
6392 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6393 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6394 PREC_ORDER operators.
6395 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6397 2014-06-19 Yao Qi <yao@codesourcery.com>
6399 * gdbthread.h (any_running): Remove the declaration.
6400 * thread.c (any_running): Remove.
6402 2014-06-19 Yao Qi <yao@codesourcery.com>
6404 * gdbthread.h (struct thread_info) <state>: Change its type to
6405 'enum thread_state'. Update comments.
6407 2014-06-19 Pedro Alves <palves@redhat.com>
6409 * gdbthread.h (ALL_THREADS): Delete.
6410 (ALL_NON_EXITED_THREADS): New macro.
6411 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6412 instead of ALL_THREADS.
6413 * infrun.c (find_thread_needs_step_over)
6414 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6415 instead of ALL_THREADS.
6416 * record-btrace.c (record_btrace_open)
6417 (record_btrace_stop_recording, record_btrace_close)
6418 (record_btrace_is_replaying, record_btrace_resume)
6419 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6420 * remote.c (append_pending_thread_resumptions): Likewise.
6421 * thread.c (thread_apply_all_command): Likewise.
6423 2014-06-19 Gary Benson <gbenson@redhat.com>
6425 * i386-nat.c (i386_stopped_by_watchpoint):
6426 Use i386_dr_stopped_by_watchpoint.
6427 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6428 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6430 2014-06-19 Gary Benson <gbenson@redhat.com>
6432 * nat/i386-dregs.c: New file.
6433 * Makefile.in (i386-dregs.o): New rule.
6434 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6435 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6436 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6437 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6438 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6439 * config/i386/go32.mh (NATDEPFILES): Likewise.
6440 * config/i386/linux.mh (NATDEPFILES): Likewise.
6441 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6442 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6443 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6444 * i386-nat.h (debug_hw_points): New declaration.
6445 * i386-nat.c (breakpoint.h): Remove include.
6446 (command.h): Likewise.
6447 (target.h): Likewise.
6448 (gdb_assert.h): Likewise.
6449 (debug_hw_points): Made nonstatic.
6450 (debug_printf): Now in i386-dregs.c.
6451 (TARGET_HAS_DR_LEN_8): Likewise.
6452 (DR_CONTROL_SHIFT): Likewise.
6453 (DR_CONTROL_SIZE): Likewise.
6454 (DR_RW_EXECUTE): Likewise.
6455 (DR_RW_WRITE): Likewise.
6456 (DR_RW_READ): Likewise.
6457 (DR_RW_IORW): Likewise.
6458 (DR_LEN_1): Likewise.
6459 (DR_LEN_2): Likewise.
6460 (DR_LEN_4): Likewise.
6461 (DR_LEN_8): Likewise.
6462 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6463 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6464 (DR_ENABLE_SIZE): Likewise.
6465 (DR_LOCAL_SLOWDOWN): Likewise.
6466 (DR_GLOBAL_SLOWDOWN): Likewise.
6467 (DR_CONTROL_RESERVED): Likewise.
6468 (I386_DR_CONTROL_MASK): Likewise.
6469 (I386_DR_VACANT): Likewise.
6470 (I386_DR_LOCAL_ENABLE): Likewise.
6471 (I386_DR_GLOBAL_ENABLE): Likewise.
6472 (I386_DR_DISABLE): Likewise.
6473 (I386_DR_SET_RW_LEN): Likewise.
6474 (I386_DR_GET_RW_LEN): Likewise.
6475 (I386_DR_WATCH_HIT): Likewise.
6476 (i386_wp_op_t): Likewise.
6477 (i386_show_dr): Likewise.
6478 (i386_length_and_rw_bits): Likewise.
6479 (i386_insert_aligned_watchpoint): Likewise.
6480 (i386_remove_aligned_watchpoint): Likewise.
6481 (i386_handle_nonaligned_watchpoint): Likewise.
6482 (i386_update_inferior_debug_regs): Likewise.
6483 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6484 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6485 (i386_region_ok_for_watchpoint):
6486 Use i386_dr_region_ok_for_watchpoint.
6487 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6489 2014-06-19 Gary Benson <gbenson@redhat.com>
6491 * i386-nat.c (i386_insert_hw_breakpoint): Use
6492 i386_insert_watchpoint.
6493 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6495 2014-06-19 Gary Benson <gbenson@redhat.com>
6497 * i386-nat.c (i386_dr_show): Renamed to
6498 i386_show_dr and made static. All uses updated.
6499 (i386_dr_length_and_rw_bits): Renamed to
6500 i386_length_and_rw_bits and made static.
6502 (i386_dr_insert_aligned_watchpoint): Renamed to
6503 i386_insert_aligned_watchpoint and made static.
6505 (i386_dr_remove_aligned_watchpoint): Renamed to
6506 i386_remove_aligned_watchpoint and made static.
6508 (i386_dr_update_inferior_debug_regs): Renamed to
6509 i386_update_inferior_debug_regs and made static.
6511 * nat/i386-dregs.h (i386_dr_show): Removed.
6512 (i386_dr_length_and_rw_bits): Likewise.
6513 (i386_dr_insert_aligned_watchpoint): Likewise.
6514 (i386_dr_remove_aligned_watchpoint): Likewise.
6515 (i386_dr_update_inferior_debug_regs): Likewise.
6517 2014-06-19 Gary Benson <gbenson@redhat.com>
6519 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6520 * configure: Regenerate.
6521 * config.in: Likewise.
6522 * main.c (signal.h): New include.
6523 (setup_alternate_signal_stack): New function.
6524 (captured_main): Call the above.
6525 * cp-support.c (signal.h): New include.
6526 (catch_demangler_crashes): New flag.
6527 (SIGJMP_BUF): New define.
6528 (SIGSETJMP): Likewise.
6529 (SIGLONGJMP): Likewise.
6530 (gdb_demangle_jmp_buf): New static global.
6531 (gdb_demangle_attempt_core_dump): Likewise.
6532 (gdb_demangle_signal_handler): New function.
6533 (gdb_demangle): If catch_demangler_crashes is set, install the
6534 above signal handler before calling bfd_demangle, and restore
6535 the original signal handler afterwards. Display the offending
6536 symbol and call demangler_warning the first time a segmentation
6538 (_initialize_cp_support): New maint set/show command.
6540 2014-06-19 Gary Benson <gbenson@redhat.com>
6542 * utils.h (resource_limit_kind): New enum.
6543 (can_dump_core): New declaration.
6544 (warn_cant_dump_core): Likewise.
6545 (dump_core): Likewise.
6546 * utils.c (dump_core): Made nonstatic. Added new
6547 parameter "limit_kind".
6548 (can_dump_core): Made nonstatic. Moved printing code to...
6549 (warn_cant_dump_core): New function.
6550 (can_dump_core_warn): Likewise.
6551 (internal_vproblem): Replace calls to can_dump_core with
6552 calls to can_dump_core_warn. Supply new argument to each.
6554 2014-06-19 Gary Benson <gbenson@redhat.com>
6556 * utils.h (demangler_vwarning): New declaration.
6557 (demangler_warning): Likewise.
6558 * utils.c (struct internal_problem)
6559 <user_settable_should_quit>: New field.
6560 <user_settable_should_dump_core>: Likewise
6561 (internal_error_problem): Add values for above new fields.
6562 (internal_warning_problem): Likewise.
6563 (demangler_warning_problem): New static global.
6564 (demangler_vwarning): New function.
6565 (demangler_warning): Likewise.
6566 (add_internal_problem_command): Selectively add commands.
6567 (_initialize_utils): New internal problem command.
6568 * maint.c (maintenance_demangler_warning): New function.
6569 (_initialize_maint_cmds): New command.
6571 2014-06-18 Tom Tromey <tromey@redhat.com>
6573 * f-valprint.c (info_common_command_for_block): Update.
6574 * symtab.h (struct general_symbol_info) <common_block>: Now
6577 2014-06-18 Tom Tromey <tromey@redhat.com>
6579 * symtab.h (struct symtab) <blockvector>: Now const.
6580 * ada-lang.c (ada_add_global_exceptions): Update.
6581 * buildsym.c (augment_type_symtab): Update.
6582 * dwarf2read.c (dw2_lookup_symbol): Update.
6583 * jit.c (finalize_symtab): Update.
6584 * jv-lang.c (add_class_symtab_symbol): Update.
6585 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6587 * objfiles.c (objfile_relocate1): Update.
6588 * psymtab.c (lookup_symbol_aux_psymtabs)
6589 (maintenance_check_psymtabs): Update.
6590 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6592 * spu-tdep.c (spu_catch_start): Update.
6593 * symmisc.c (dump_symtab_1): Update.
6594 * symtab.c (lookup_global_symbol_from_objfile)
6595 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6596 (basic_lookup_transparent_type_quick)
6597 (basic_lookup_transparent_type, find_pc_sect_symtab)
6598 (find_pc_sect_line, search_symbols): Update.
6599 * block.c (find_block_in_blockvector): Make "bl" const.
6600 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6602 (blockvector_contains_pc): Make "bv" const.
6603 (block_for_pc_sect): Update.
6604 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6605 (blockvector_contains_pc): Update.
6606 * breakpoint.c (resolve_sal_pc): Update.
6607 * inline-frame.c (block_starting_point_at): Update.
6609 2014-06-18 Tom Tromey <tromey@redhat.com>
6611 * completer.c (complete_line): Make "line_buffer" const.
6612 * completer.h (complete_line): Update.
6614 2014-06-18 Tom Tromey <tromey@redhat.com>
6616 * symtab.c (add_macro_name): Remove unneeded cast.
6618 2014-06-18 Tom Tromey <tromey@redhat.com>
6620 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6621 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6623 2014-06-18 Tom Tromey <tromey@redhat.com>
6625 * probe.c (info_probes_for_ops): Make "arg" const.
6626 * probe.h (info_probes_for_ops): Update.
6628 2014-06-18 Tom Tromey <tromey@redhat.com>
6630 * varobj.c (varobj_create): Update.
6631 * valops.c (value_of_this): Update.
6632 * tracepoint.c (add_local_symbols, scope_info): Update.
6633 * symtab.h (struct general_symbol_info) <block>: Now const.
6634 * symtab.c (skip_prologue_sal)
6635 (default_make_symbol_completion_list_break_on)
6636 (skip_prologue_using_sal): Update.
6637 * stack.h (iterate_over_block_locals)
6638 (iterate_over_block_local_vars): Update.
6639 * stack.c (print_frame_args): Update.
6640 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6642 (get_selected_block): Make return type const.
6643 * python/py-frame.c (frapy_block): Update.
6644 * python/py-block.c (gdbpy_block_for_pc): Update.
6645 * p-exp.y (%union) <bval>: Now const.
6646 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6647 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6648 * m2-exp.y (%union) <bval>: Now const.
6649 * linespec.c (get_current_search_block): Make return type const.
6650 (create_sals_line_offset, find_label_symbols): Update.
6651 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6653 (block_starting_point_at): Make "block" const.
6654 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6655 (check_exception_resume): Update.
6656 * guile/scm-frame.c (gdbscm_frame_block): Update.
6657 * guile/scm-block.c (gdbscm_lookup_block): Update.
6658 * frame.h (get_frame_block): Update.
6659 (get_selected_block): Make return type const.
6660 * frame.c (frame_id_inner): Update.
6661 * f-valprint.c (info_common_command_for_block)
6662 (info_common_command): Update.
6663 * dwarf2loc.c (dwarf2_find_location_expression)
6664 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6665 (locexpr_describe_location_piece): Update.
6666 * c-exp.y (%union) <bval>: Now const.
6667 * breakpoint.c (resolve_sal_pc): Update.
6668 * blockframe.c (get_frame_block):Make return type const.
6669 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6670 (block_innermost_frame): Update.
6671 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6672 (block_for_pc, block_for_pc_sect): Update.
6673 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6675 (block_for_pc_sect, block_for_pc): Make return type const.
6676 * ax-gdb.c (gen_expr): Update.
6677 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6678 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6679 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6680 (ada_read_var_value): Update.
6681 * ada-exp.y (struct name_info) <block>: Now const.
6683 (block_lookup): Constify.
6685 2014-06-18 Gary Benson <gbenson@redhat.com>
6687 * nat/i386-dregs.h: New file.
6688 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6689 * i386-nat.h (i386-dregs.h): New include.
6690 (DR_FIRSTADDR): Now in i386-dregs.h.
6691 (DR_LASTADDR): Likewise.
6692 (DR_NADDR): Likewise.
6693 (DR_STATUS): Likewise.
6694 (DR_CONTROL): Likewise.
6695 (i386_debug_reg_state): Likewise.
6696 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6698 2014-06-18 Don Breazeal <donb@codesourcery.com>
6700 * breakpoint.c (set_longjmp_breakpoint): Call
6701 momentary_breakpoint_from_master with additional argument.
6702 (set_longjmp_breakpoint_for_call_dummy): Call
6703 momentary_breakpoint_from_master with additional argument.
6704 (set_std_terminate_breakpoint): Call
6705 momentary_breakpoint_from_master with additional argument.
6706 (momentary_breakpoint_from_master): Add argument to function
6707 definition and use it to initialize structure member flag.
6708 (clone_momentary_breakpoint): Call
6709 momentary_breakpoint_from_master with additional argument.
6710 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6711 member flags set in momentary_breakpoint_from_master.
6713 2014-06-18 Gary Benson <gbenson@redhat.com>
6715 * i386-nat.c (i386_show_dr): Renamed to
6716 i386_dr_show and made nonstatic. All uses updated.
6717 (i386_length_and_rw_bits): Renamed to
6718 i386_dr_length_and_rw_bits and made nonstatic.
6720 (i386_insert_aligned_watchpoint): Renamed to
6721 i386_dr_insert_aligned_watchpoint and made nonstatic.
6723 (i386_remove_aligned_watchpoint): Renamed to
6724 i386_dr_remove_aligned_watchpoint and made nonstatic.
6726 (i386_update_inferior_debug_regs): Renamed to
6727 i386_dr_update_inferior_debug_regs and made nonstatic.
6730 2014-06-18 Gary Benson <gbenson@redhat.com>
6732 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6733 (i386_dr_low_can_set_control): Likewise.
6734 (i386_dr_low_set_addr): Likewise.
6735 (i386_dr_low_set_control): Likewise.
6736 (i386_dr_low_get_addr): Likewise.
6737 (i386_dr_low_get_status): Likewise.
6738 (i386_dr_low_get_control): Likewise.
6739 (i386_insert_aligned_watchpoint): Use new macros.
6740 (i386_update_inferior_debug_regs): Likewise.
6741 (i386_stopped_data_address): Likewise.
6743 2014-06-18 Gary Benson <gbenson@redhat.com>
6745 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6746 New parameter. All uses updated.
6748 2014-06-18 Gary Benson <gbenson@redhat.com>
6750 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6753 2014-06-18 Gary Benson <gbenson@redhat.com>
6755 * i386-nat.c (debug_printf): New macro.
6756 (i386_get_debug_register_length): Likewise.
6757 (TARGET_HAS_DR_LEN_8): Use above macro.
6758 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6759 and printf_unfiltered. Use phex to format values.
6761 2014-06-18 Gary Benson <gbenson@redhat.com>
6763 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6766 2014-06-18 Gary Benson <gbenson@redhat.com>
6768 * i386-nat.c: Comment changes.
6770 2014-06-18 Gary Benson <gbenson@redhat.com>
6772 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6774 2014-06-18 Gary Benson <gbenson@redhat.com>
6776 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6777 (i386_insert_aligned_watchpoint): Likewise.
6778 (i386_remove_aligned_watchpoint): Likewise.
6779 (i386_handle_nonaligned_watchpoint): Likewise.
6781 2014-06-18 Gary Benson <gbenson@redhat.com>
6783 * i386-nat.c: Whitespace changes.
6785 2014-06-17 Samuel Bronson <naesten@gmail.com>
6787 * MAINTAINERS: Update Roland McGrath's email address.
6788 Thanks to Sergio Durigan Junior for pointing out that he left
6789 Red Hat a while ago, and giving me a current address.
6791 2014-06-17 Tom Tromey <tromey@redhat.com>
6793 * utils.h (savestring): Remove declaration.
6795 2014-06-17 Tom Tromey <tromey@redhat.com>
6797 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6799 2014-06-16 Keith Seitz <keiths@redhat.com>
6802 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6803 to update the varobj if inferior_ptid is null_ptid.
6805 2014-06-16 Tom Tromey <tromey@redhat.com>
6807 * target.h (struct target_ops) <to_info_proc>: Make parameter
6809 (target_info_proc): Update.
6810 * target.c (target_info_proc): Make "args" const.
6811 * procfs.c (procfs_info_proc): Update.
6812 * linux-tdep.c (linux_info_proc): Update.
6813 (linux_core_info_proc_mappings): Make "args" const.
6814 (linux_core_info_proc): Update.
6815 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6816 * gdbarch.c: Rebuild.
6817 * gdbarch.h: Rebuild.
6818 * corelow.c (core_info_proc): Update.
6820 2014-06-16 Tom Tromey <tromey@redhat.com>
6822 * target.h (struct target_ops) <to_disconnect>: Make parameter
6824 (target_disconnect): Update.
6825 * target.c (target_disconnect): Make "args" const.
6826 * target-delegates.c: Rebuild.
6827 * remote.c (remote_disconnect): Update.
6828 * record.h (record_disconnect): Update.
6829 * record.c (record_disconnect): Update.
6830 * inf-child.c (inf_child_disconnect): Update.
6832 2014-06-16 Tom Tromey <tromey@redhat.com>
6834 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6835 * target.c (debug_to_rcmd, default_rcmd): Update.
6836 * target-delegates.c: Rebuild.
6837 * remote.c (remote_rcmd): Update.
6838 * monitor.c (monitor_rcmd): Update.
6840 2014-06-16 Pedro Alves <palves@redhat.com>
6842 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6843 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6844 have OBJF_SHARED set.
6845 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6846 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6847 instead of OBJF_USERLOADED.
6848 * objfiles.h (OBJF_SHARED): Update comment.
6849 (userloaded_objfile_contains_address_p): Rename to ...
6850 (shared_objfile_contains_address_p): ... this, and update
6852 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6854 (remove_symbol_file_command): Skip objfiles that don't have
6857 2014-06-16 Tom Tromey <tromey@redhat.com>
6859 * minsyms.h (prim_record_minimal_symbol)
6860 (prim_record_minimal_symbol_and_info): Update comments.
6862 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6864 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6865 or --without-guile, according to how GDB was built.
6867 2014-06-13 Tom Tromey <tromey@redhat.com>
6869 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6871 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6873 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6875 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6876 help_list.Pass all_commands, not -1, to help_list.
6877 * cli/cli-dump.c (dump_command, append_command)
6878 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6879 (binary_dump_command, binary_append_command): Pass all_commands,
6880 not -1, to help_list.
6881 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6883 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6885 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6887 * top.c (set_history): Pass all_commands, not -1, to help_list.
6888 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6889 all_commands, not -1, to help_list.
6890 * symfile.c (overlay_command): Pass all_commands, not -1, to
6892 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6894 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6896 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6898 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6899 not -1, to help_list.
6900 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6901 not -1, to help_list.
6902 * maint.c (maintenance_command, maintenance_info_command)
6903 (maintenance_print_command, maintenance_set_cmd): Pass
6904 all_commands, not -1, to help_list.
6905 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6907 * language.c (set_check): Pass all_commands, not -1, to help_list.
6908 * infcmd.c (unset_command): Pass all_commands, not -1, to
6910 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6912 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6914 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6916 * breakpoint.c (save_command): Pass all_commands, not -1, to
6918 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6919 all_commands, not -1, to help_list.
6921 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6923 * regcache.c (struct register_to_invalidate): New structure.
6924 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6926 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6928 2014-06-12 Yao Qi <yao@codesourcery.com>
6930 * varobj.c (varobj_get_num_children): Call
6931 varobj_is_dynamic_p.
6932 (varobj_list_children): Likewise.
6933 (varobj_update): Likewise. Update comments.
6935 2014-06-12 Yao Qi <yao@codesourcery.com>
6937 * varobj.c (varobj_pretty_printed_p): Rename to ...
6938 (varobj_is_dynamic_p): ... this. New function.
6939 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6940 (varobj_is_dynamic_p): Declare.
6941 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6942 (mi_print_value_p, varobj_update_one): Likewise.
6944 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6945 Yao Qi <yao@codesourcery.com>
6947 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6948 (varobj_get_iterator): Wrap up code for pretty-printer by
6949 "#if HAVE_PYTHON" and "#endif".
6950 (update_dynamic_varobj_children): Likewise.
6952 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6953 Yao Qi <yao@codesourcery.com>
6955 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6956 gdb_python_initialized is false. Move some code from varobj.c.
6957 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6958 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6959 (struct varobj_item): Moved to varobj-iter.h".
6960 (varobj_clear_saved_item): New function.
6961 (update_dynamic_varobj_children): Move python-related code to
6963 (free_variable): Call varobj_clear_saved_item and
6966 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6967 Yao Qi <yao@codesourcery.com>
6969 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6970 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6971 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6972 (py-varobj.o): New rule.
6973 * python/py-varobj.c: New file.
6974 * python/python-internal.h (py_varobj_get_iterator): Declare.
6975 * varobj-iter.h: New file.
6976 * varobj.c: Include "varobj-iter.h"
6977 (struct varobj) <child_iter>: Change its type from "PyObject *"
6978 to "struct varobj_iter *".
6979 <saved_item>: Likewise.
6980 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6981 [HAVE_PYTHON] (varobj_get_iterator): New function.
6982 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6983 python-specific code to python/py-varobj.c.
6984 (install_visualizer): Call varobj_iter_delete instead of
6986 * varobj.h (varobj_ensure_python_env): Declare.
6988 2014-06-12 Yao Qi <yao@codesourcery.com>
6990 * varobj.c (struct varobj_item): New structure.
6991 (create_child_with_value): Update declaration.
6992 (varobj_add_child): Replace arguments 'name' and 'value' with
6993 'item'. All callers updated.
6994 (install_dynamic_child): Likewise.
6995 (update_dynamic_varobj_children): Likewise.
6996 (varobj_add_child): Likewise.
6997 (create_child_with_value): Likewise.
6999 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7001 * NEWS: Create a new section for the next release branch.
7002 Rename the section of the current branch, now that it has
7005 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7007 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7008 * version.in: Bump version to 7.8.50.DATE-cvs.
7010 2014-06-11 Pedro Alves <palves@redhat.com>
7013 * ser-mingw.c (net_windows_socket_check_pending): New function.
7014 (net_windows_select_thread): Ignore spurious wakeups. Use
7015 net_windows_socket_check_pending.
7016 (net_windows_wait_handle): Check for pending events with
7017 ioctlsocket, through net_windows_socket_check_pending, instead of
7018 checking the socket's event.
7020 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7022 * python/python-internal.h (gdb_PyObject_GetAttrString)
7023 (gdb_PyObject_HasAttrString): New inline function definitions.
7024 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7025 char * of the second argument to PyObject_GetAttrString.
7027 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7029 * serial.c (serial_write): Fix index of character to be printed
7030 in call to serial_logchar when serial debug traces are enabled.
7032 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7034 * gdbtypes (resolve_dynamic_range): Add function description.
7036 2014-06-09 Pedro Alves <palves@redhat.com>
7038 * linux-nat.c (linux_child_follow_fork): Initialize status with
7039 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7040 inner block. Only pass the signal to PTRACE_DETACH if in pass
7043 2014-06-09 Gary Benson <gbenson@redhat.com>
7045 * common/signals.c (gdb_signal_from_host): Reorder to separate
7046 the always-available ANSI-standard signals from the signals that
7048 (do_gdb_signal_to_host): Likewise.
7049 * proc-events.c (signal_table): Likewise.
7051 2014-06-08 Hui Zhu <hui@codesourcery.com>
7053 * common/linux-ptrace.c (linux_disable_event_reporting): New
7055 * common/linux-ptrace.h (linux_disable_event_reporting): New
7057 * linux-nat.c (linux_child_follow_fork): Do a single step before
7060 2014-06-07 Keith Seitz <keiths@redhat.com>
7064 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7065 from symbol_matches_domain in symtab.c. All local callers
7066 of symbol_matches_domain updated.
7067 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7068 search STRUCT_DOMAIN.
7069 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7070 independently. standard_lookup will do that automatically.
7071 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7072 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7073 (cp_lookup_symbol_in_namespace): Likewise.
7074 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7075 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7076 may return a STRUCT_DOMAIN match.
7077 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7078 * cp-support.c: Include language.h.
7079 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7081 * psymtab.c (match_partial_symbol): Compare the requested
7082 domain with the symbol's domain directly.
7083 (lookup_partial_symbol): Likewise.
7084 * symtab.c (lookup_symbol_in_language): Explain when/why
7085 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7086 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7087 appropriate languages.
7088 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7089 and moved to ada-lang.c
7090 (lookup_block_symbol): Explain that this function only returns
7091 symbol matching the requested DOMAIN.
7092 Compare the requested domain with the symbol's domain directly.
7093 (iterate_over_symbols): Compare the requested domain with the
7094 symbol's domain directly.
7095 * symtab.h (symbol_matches_domain): Remove.
7097 2014-06-06 Doug Evans <xdje42@gmail.com>
7099 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7100 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7101 (gdbscm_guile_version_is_at_least): Declare.
7102 (gdbscm_scm_string_to_int): Declare.
7103 * guile/guile.c (gdbscm_guile_major_version): New global.
7104 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7105 (guile_datadir): New static global.
7106 (gdbscm_guile_data_directory): New function.
7107 (initialize_scheme_side): Update.
7108 (misc_guile_functions): Add guile-data-directory.
7109 (initialize_gdb_module): Fetch guile version number.
7110 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7111 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7112 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7113 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7115 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7116 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7117 * guile/scm-value.c (gdbscm_value_to_string): Only call
7118 scm_port_conversion_strategy if Guile version >= 2.0.6.
7120 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7122 * main.c (print_gdb_help): Add -q and --silent.
7124 2014-06-06 Gary Benson <gbenson@redhat.com>
7126 * common/signals.c: Remove preprocessor conditionals for
7127 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7128 SIGSEGV and SIGTERM.
7129 * proc-events.c: Likewise.
7131 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7133 * symfile.c (symfile_free_objfile): Remove restriction to
7135 * symfile-mem.c (symbol_file_add_from_memory): Call
7136 add_target_sections_of_objfile.
7138 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7140 * guile/scm-value.c (gdbscm_history_append_x): Use
7141 'vlscm_get_value_smob_arg_unsafe' instead of
7142 'vlscm_scm_to_value'.
7144 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7147 * utils.c (printchar): Don't escape at all if quoter is NUL.
7148 Update function documentation to clarify effect of parameter
7150 * remote.c (escape_buffer): Pass '\\' as the quoter to
7151 fputstrn_unfiltered.
7152 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7153 generate the output.
7154 (mi_solib_unloaded): Same.
7156 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7158 * development.sh: Delete.
7159 * Makefile.in (config.status): Adjust dependency on development.sh.
7160 * configure.ac: Adjust development.sh source call.
7161 * configure: Regenerate.
7163 2014-06-04 Doug Evans <xdje42@gmail.com>
7165 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7166 is_scheme_bkpt, spec.
7167 (bpscm_make_breakpoint_smob): Initialize new members.
7168 (gdbscm_create_breakpoint_x): Split into two ...
7169 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7170 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7171 (scheme_function breakpoint_functions): Update.
7172 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7173 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7174 register-breakpoint!.
7176 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7179 * mem-break.c (z_type_supported): Return zero if
7180 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7182 2014-06-04 Tom Tromey <tromey@redhat.com>
7184 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7185 value_from_contents_and_address_unresolved.
7186 (ada_template_to_fixed_record_type_1): Likewise.
7187 (ada_which_variant_applies): Likewise.
7188 * value.h (value_from_contents_and_address_unresolved): Declare.
7189 * value.c (value_from_contents_and_address_unresolved): New
7191 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7192 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7193 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7195 2014-06-04 Tom Tromey <tromey@redhat.com>
7197 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7199 2014-06-04 Tom Tromey <tromey@redhat.com>
7201 * procfs.c (procfs_attach): Make "args" const.
7202 * windows-nat.c (windows_attach): Make "args" const.
7203 * nto-procfs.c (procfs_attach): Make "args" const.
7204 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7205 * go32-nat.c (go32_attach): Make "args" const.
7206 * gnu-nat.c (gnu_attach): Make "args" const.
7207 * darwin-nat.c (darwin_attach): Make "args" const.
7208 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7209 * linux-nat.c (linux_nat_attach): Make "args" const.
7210 * remote.c (extended_remote_attach_1, extended_remote_attach):
7212 * target.h (struct target_ops) <to_attach>: Make "args" const.
7213 (find_default_attach): Likewise.
7214 * utils.c (parse_pid_to_attach): Make "args" const.
7215 * utils.h (parse_pid_to_attach): Update.
7217 2014-06-04 Tom Tromey <tromey@redhat.com>
7219 * target-delegates.c: Rebuild.
7220 * target.c (default_thread_address_space): New function.
7221 (target_thread_address_space): Simplify.
7222 * target.h (struct target_ops) <to_thread_address_space>: Add
7223 TARGET_DEFAULT_FUNC.
7225 2014-06-04 Doug Evans <xdje42@gmail.com>
7227 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7229 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7231 * record-btrace.c: Include event-loop.h and inf-loop.h.
7232 (record_btrace_resume_exec_dir)
7233 (record_btrace_async_inferior_event_handler)
7234 (record_btrace_handle_async_inferior_event): New.
7235 (record_btrace_open): Create async event handler.
7236 (record_btrace_close): Delete async event handler.
7237 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7238 Mark async event handler.
7239 (record_btrace_execution_direction): New.
7240 (init_record_btrace_ops): Initialize to_execution_direction.
7242 2014-06-03 Doug Evans <xdje42@gmail.com>
7244 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7245 (gdbscm_make_parameter): Ditto.
7247 2014-06-03 Doug Evans <dje@google.com>
7249 * exec.c (exec_close_1): Call clear_section_table instead of
7250 resize_section_table.
7251 (clear_section_table): New function.
7252 (resize_section_table): Make static. Rename arg num_added to
7254 * exec.h (clear_section_table): Declare.
7255 (resize_section_table): Delete.
7256 * progspace.c (release_program_space): Call clear_section_table
7257 instead of resize_section_table.
7259 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7261 * NEWS (Python Scripting): Add entry about the new xmethods
7264 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7266 * python/py-xmethods.c: New file.
7267 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7268 (objfpy_dealloc): XDECREF on the new xmethods field.
7269 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7271 (objfpy_get_xmethods): New function.
7272 (objfile_getset): New entry 'xmethods'.
7273 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7274 (pspy_dealloc): XDECREF on the new xmethods field.
7275 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7277 (pspy_get_xmethods): New function.
7278 (pspace_getset): New entry 'xmethods'.
7279 * python/python-internal.h: Add declarations for new functions.
7280 * python/python.c (_initialize_python): Invoke
7281 gdbpy_initialize_xmethods.
7282 * python/lib/gdb/__init__.py (xmethods): New
7284 * python/lib/gdb/xmethod.py: New file.
7285 * python/lib/gdb/command/xmethods.py: New file.
7287 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7289 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7290 best match method returned by find_overload_match is an xmethod.
7291 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7292 the best matching operator returned by find_overload_match is an
7294 * valops.c: #include "extension.h".
7295 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7296 Return void. The list of matching source methods is returned in
7297 "fn_list" and a vector of matching debug method workers is
7298 returned in "xm_worker_vec". Update all callers.
7299 (value_find_oload_method_list): Likewise.
7300 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7301 non-NULL, then the index of the best matching method in this
7302 vector is returned. Update all callers.
7303 (find_overload_match): Include xmethods while performing overload
7306 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7308 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7309 * extension-priv.h (struct extension_language_ops): Add the
7311 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7312 get_matching_xmethod_workers, get_xmethod_argtypes,
7313 invoke_xmethod, free_xmethod_worker,
7314 free_xmethod_worker_vec): New functions.
7315 * extension.h: #include "common/vec.h".
7316 New function declarations.
7317 (struct xmethod_worker): New struct.
7318 (VEC (xmethod_worker_ptr)): New vector type.
7319 (xmethod_worker_ptr): New typedef.
7320 (xmethod_worker_vec): Likewise.
7321 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7323 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7324 (struct builtin_type): New field "xmethod".
7325 * valarith.c (value_ptradd): Assert that the value argument is not
7327 * valops.c (value_must_coerce_to_target): Return 0 for
7328 lval_xcallable values.
7329 * value.c (struct value): New field XM_WORKER in the field
7331 (value_address, value_raw_address): Return 0 for lval_xcallable
7333 (set_value_address): Assert that the value is not an
7335 (value_free): Free the associated xmethod worker when freeing
7336 lval_xcallable values.
7337 (set_value_component_location): Assert that the WHOLE value is not
7339 (value_of_xmethod, call_xmethod): New functions.
7340 * value.h: Declare "struct xmethod_worker".
7341 Declare new functions value_of_xmethod, call_xmethod.
7343 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7344 Pedro Alves <palves@redhat.com>
7346 PR breakpoints/17000
7347 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7348 New function, extracted from software_breakpoint_inserted_here_p.
7349 (software_breakpoint_inserted_here_p): Replace factored out code
7350 by call to find_non_raw_software_breakpoint_inserted_here.
7351 (bp_target_info_copy_insertion_state): New function.
7352 (bkpt_insert_location): Handle the case of a single-step
7353 breakpoint already inserted at the same address.
7354 (bkpt_remove_location): Handle the case of a single-step
7355 breakpoint still inserted at the same address.
7356 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7357 breakpoint already inserted at the same address.
7358 (deprecated_remove_raw_breakpoint): Handle the case of a
7359 non-raw breakpoint still inserted at the same address.
7360 (find_single_step_breakpoint): New function, extracted from
7361 single_step_breakpoint_inserted_here_p.
7362 (find_single_step_breakpoint): New function,
7363 factored out from single_step_breakpoint_inserted_here_p.
7364 (single_step_breakpoint_inserted_here_p): Reimplement.
7366 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7368 Pushed by Joel Brobecker <brobecker@adacore.com>
7369 * source.c (show_substitute_path_command): Fix display of matching
7372 2014-06-03 Gary Benson <gbenson@redhat.com>
7374 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7376 2014-06-02 Doug Evans <xdje42@gmail.com>
7378 Add parameter support for Guile.
7379 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7380 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7381 (scm-param.o): New rule.
7382 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7383 (gdbscm_misc_error): Declare.
7384 (gdbscm_canonicalize_command_name): Declare.
7385 (gdbscm_scm_to_host_string): Declare.
7386 (gdbscm_scm_from_host_string): Declare.
7387 (gdbscm_initialize_parameters): Declare.
7388 * guile/guile.c (initialize_gdb_module): Call
7389 gdbscm_initialize_parameters.
7390 * guile/lib/gdb.scm: Export parameter symbols.
7391 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7392 cmdscm_canonicalize_name and made public. All callers updated.
7393 * guile/scm-exception.c (gdbscm_misc_error): New function.
7394 * guile/scm-param.c: New file.
7395 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7396 (gdbscm_scm_to_host_string): New function.
7397 (gdbscm_scm_from_host_string): New function.
7398 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7400 2014-06-02 Doug Evans <xdje42@gmail.com>
7402 Add command support for Guile.
7403 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7404 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7405 (scm-cmd.o): New rule.
7406 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7407 (gdbscm_user_error_p): Declare.
7408 (gdbscm_parse_command_name): Declare.
7409 (gdbscm_valid_command_class_p): Declare.
7410 (gdbscm_initialize_commands): Declare.
7411 * guile/guile.c (initialize_gdb_module): Call
7412 gdbscm_initialize_commands.
7413 * guile/lib/gdb.scm: Export command symbols.
7414 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7415 (throw-user-error): New function.
7416 * guile/scm-cmd.c: New file.
7417 * guile/scm-exception.c (user_error_symbol): New static global.
7418 (gdbscm_user_error_p): New function.
7419 (gdbscm_initialize_exceptions): Set user_error_symbol.
7420 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7422 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7424 * top.c (command_loop): Handle comments here...
7425 (command_line_input): ... not here.
7427 2014-06-02 Doug Evans <xdje42@gmail.com>
7429 Add progspace support for Guile.
7430 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7431 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7432 (scm-progspace.o): New rule.
7433 * guile/guile-internal.h (pspace_smob): New typedef.
7434 (psscm_pspace_smob_pretty_printers): Declare.
7435 (psscm_pspace_smob_from_pspace): Declare.
7436 (psscm_scm_from_pspace): Declare.
7437 * guile/guile.c (initialize_gdb_module): Call
7438 gdbscm_initialize_pspaces.
7439 * guile/lib/gdb.scm: Export progspace symbols.
7440 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7442 (append-pretty-printer!): Ditto.
7443 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7445 * guile/scm-progspace.c: New file.
7447 2014-06-03 Alan Modra <amodra@gmail.com>
7449 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7450 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7452 2014-06-02 Doug Evans <dje@google.com>
7454 Add support for skeletonless type units.
7455 * dwarf2read.c (struct dwarf2_per_objfile): New member
7456 n_allocated_type_units.
7457 (struct dwarf2_per_objfile) <tu_stats>: New member
7458 nr_all_type_units_reallocs.
7459 (create_signatured_type_table_from_index): Initialize
7460 n_allocated_type_units
7461 (create_all_type_units): Ditto.
7462 (add_type_unit): Move up in file. New arg slot.
7463 All callers updated. Increase space for all_type_units more
7465 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7466 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7467 (lookup_dwp_signatured_type): Ditto.
7468 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7469 All callers updated.
7470 (build_type_psymtabs_1): Leave type_unit_groups as
7471 NULL if no TUs present.
7472 (print_tu_stats): New function.
7473 (process_skeletonless_type_unit): New function.
7474 (process_dwo_file_for_skeletonless_type_units): New
7476 (process_skeletonless_type_units): New function.
7477 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7478 Call print tu_stats if debugging enabled.
7480 2014-06-02 Pedro Alves <palves@redhat.com>
7482 * breakpoint.c (build_target_command_list): Don't build a command
7483 list if we have any duplicate location that isn't a dprintf.
7485 2014-06-02 Pedro Alves <palves@redhat.com>
7487 * breakpoint.c (dprintf_breakpoint_hit): New function.
7488 (initialize_breakpoint_ops): Install it as dprintf's
7489 breakpoint_hit method.
7491 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7493 * source.c (substitute_path_rule_matches): Simplify using
7494 filename_ncmp instead of FILENAME_CMP.
7496 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7498 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7500 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7502 * configure.ac: When Guile is available, check for the
7503 availability of 'scm_new_smob'.
7504 * configure, config.h.in: Regenerate.
7505 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7508 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7510 * frame.c (struct frame_info): Add stop_string field.
7511 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7512 (get_prev_frame_always): Old content moved into
7513 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7514 TRY_CATCH, handle MEMORY_ERROR exceptions.
7515 (frame_stop_reason_string): New function definition.
7516 * frame.h (unwind_stop_reason_to_string): Extend comment to
7517 mention frame_stop_reason_string.
7518 (frame_stop_reason_string): New function declaration.
7519 * stack.c (frame_info): Switch to frame_stop_reason_string.
7520 (backtrace_command_1): Switch to frame_stop_reason_string.
7521 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7522 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7523 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7525 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7527 * frame.c (frame_stop_reason_string): Rename to ...
7528 (unwind_stop_reason_to_string): this.
7529 * frame.h (frame_stop_reason_string): Rename to ...
7530 (unwind_stop_reason_to_string): this.
7531 * stack.c (frame_info): Update call to frame_stop_reason_string.
7532 (backtrace_command_1): Likewise.
7533 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7534 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7536 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7538 * frame.c (remove_prev_frame): New function.
7539 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7542 2014-05-29 Pedro Alves <palves@redhat.com>
7544 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7545 and make it const. When a single-step decays to a continue,
7546 clear 'step', not 'hw_step'. Pass whether the caller wanted
7547 to step to user_visible_resume_ptid, not what we ask the
7550 2014-05-29 Pedro Alves <palves@redhat.com>
7552 * infrun.c (process_event_stop_test, handle_step_into_function)
7553 (handle_step_into_function_backward): Adjust.
7554 Don't set the even thread's stop_step and call stop_waiting before
7555 calling end_stepping_range. Instead do that ...
7556 (end_stepping_range): ... here. Take an ecs pointer parameter.
7558 2014-05-29 Pedro Alves <palves@redhat.com>
7560 * infrun.c (stop_stepping): Rename to ...
7561 (stop_waiting): ... this.
7562 (proceed): Update comment.
7563 (process_event_stop_test, handle_inferior_event)
7564 (handle_signal_stop, handle_step_into_function)
7565 (handle_step_into_function_backward): Update.
7567 2014-05-29 Pedro Alves <palves@redhat.com>
7569 * infcall.c (run_inferior_call): Don't check whether the current
7570 thread is running after the proceed call.
7572 2014-05-29 Pedro Alves <palves@redhat.com>
7573 Tom Tromey <tromey@redhat.com>
7575 * NEWS: Mention "maint set target-async", "set mi-async", and that
7576 background execution commands are now always available.
7577 * target.h (target_async_permitted): Update comment.
7578 * target.c (target_async_permitted, target_async_permitted_1):
7580 (set_target_async_command): Rename to ...
7581 (maint_set_target_async_command): ... this.
7582 (show_target_async_command): Rename to ...
7583 (maint_show_target_async_command): ... this.
7584 (_initialize_target): Adjust.
7585 * infcmd.c (prepare_execution_command): Make extern.
7586 * inferior.h (prepare_execution_command): Declare.
7587 * infrun.c (set_observer_mode): Leave target async alone.
7588 * mi/mi-interp.c (mi_interpreter_init): Install
7589 mi_on_sync_execution_done as sync_execution_done observer.
7590 (mi_on_sync_execution_done): New function.
7591 (mi_execute_command_input_handler): Don't print the prompt if we
7592 just started a synchronous command with an async target.
7593 (mi_on_resume): Check sync_execution before printing prompt.
7594 * mi/mi-main.h (mi_async_p): Declare.
7595 * mi/mi-main.c: Include gdbcmd.h.
7596 (mi_async_p): New function.
7597 (mi_async, mi_async_1): New globals.
7598 (set_mi_async_command, show_mi_async_command, mi_async): New
7600 (exec_continue): Call prepare_execution_command.
7601 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7602 (mi_execute_async_cli_command): Use mi_async_p.
7603 (_initialize_mi_main): Install "set mi-async". Make
7604 "target-async" a deprecated alias.
7606 2014-05-29 Pedro Alves <palves@redhat.com>
7608 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7609 (_initialize_cli_interp): Adjust.
7610 * event-loop.c: Include "observer.h".
7611 (start_event_loop): Notify 'command_error' observers instead of
7612 calling display_gdb_prompt. Remove FIXME comment.
7613 * event-top.c (display_gdb_prompt): Remove call into the
7615 * inf-loop.c: Include "observer.h".
7616 (inferior_event_handler): Notify 'command_error' observers instead
7617 of calling display_gdb_prompt.
7618 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7619 observers instead of calling display_gdb_prompt.
7620 * interps.c (interp_set): Don't call display_gdb_prompt.
7621 (current_interp_display_prompt_p): Delete.
7622 * interps.h (interp_prompt_p): Delete declaration.
7623 (interp_prompt_p_ftype): Delete.
7624 (struct interp_procs) <prompt_proc_p>: Delete field.
7625 (current_interp_display_prompt_p): Delete declaration.
7626 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7627 (_initialize_mi_interp): Adjust.
7628 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7629 'command_error' observers.
7630 (tui_on_sync_execution_done, tui_on_command_error): New
7632 (tui_display_prompt_p): Delete.
7633 (_initialize_tui_interp): Adjust.
7635 2014-05-29 Pedro Alves <palves@redhat.com>
7638 * cli/cli-interp.c: Include infrun.h and observer.h.
7639 (cli_uiout, cli_interp): New globals.
7640 (cli_on_signal_received, cli_on_end_stepping_range)
7641 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7643 (cli_interpreter_init): Install them as 'end_stepping_range',
7644 'signal_received' 'signal_exited', 'exited' and 'no_history'
7646 (_initialize_cli_interp): Remove cli_interp local.
7647 * infrun.c (handle_inferior_event): Call the several stop reason
7648 observers instead of printing the stop reason directly.
7649 (end_stepping_range): New function.
7650 (print_end_stepping_range_reason, print_signal_exited_reason)
7651 (print_exited_reason, print_signal_received_reason)
7652 (print_no_history_reason): Make static, and add an uiout
7653 parameter. Print to that instead of to CURRENT_UIOUT.
7654 * infrun.h (print_end_stepping_range_reason)
7655 (print_signal_exited_reason, print_exited_reason)
7656 (print_signal_received_reason print_no_history_reason): New
7658 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7660 <cli_uiout>: New field.
7661 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7662 uiout for CLI output. Install 'signal_received',
7663 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7665 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7666 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7667 (mi_on_no_history): New functions.
7668 (ui_out_free_cleanup): Delete function.
7669 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7670 instead use the one already stored in the MI interpreter data.
7671 (mi_ui_out): Adjust.
7672 * tui/tui-interp.c: Include infrun.h and observer.h.
7673 (tui_interp): New global.
7674 (tui_on_signal_received, tui_on_end_stepping_range)
7675 (tui_on_signal_exited, tui_on_exited)
7676 (tui_on_no_history): New functions.
7677 (tui_init): Install them as 'end_stepping_range',
7678 'signal_received' 'signal_exited', 'exited' and 'no_history'
7680 (_initialize_tui_interp): Delete tui_interp local.
7682 2014-05-29 Pedro Alves <palves@redhat.com>
7685 * linux-nat.c (linux_nat_resume_callback): Rename the second
7686 parameter to 'except'. Skip LP if it points to EXCEPT.
7687 (linux_nat_resume): Don't mark the event lwp as not stopped
7688 before resuming sibling lwps. Instead ask
7689 linux_nat_resume_callback to skip the event lwp. Mark it as not
7690 stopped after actually resuming it.
7691 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7693 (wait_lwp): Mark the lwp as stopped here.
7694 (stop_wait_callback): Mark the lwp as not stopped right after
7695 resuming it. Don't mark lwps as stopped here.
7696 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7697 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7699 2014-05-29 Pedro Alves <palves@redhat.com>
7702 * infrun.c (resume): Determine how much to resume depending on
7703 whether the caller wanted a step, not whether we can hardware step
7704 the target. Mark all threads that we intend to run as running,
7705 unless we're calling an inferior function.
7706 (normal_stop): If the thread is running an infcall, don't finish
7708 * target.c (target_resume): Don't mark threads as running here.
7710 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7712 * serial.c (_initialize_serial): Remove support for
7713 the "set remotebaud" and "show remotebaud" commands.
7714 * NEWS: Add entry documenting the removal of that command.
7716 2014-05-28 Yao Qi <yao@codesourcery.com>
7718 * charset.c: Fix typo in comments.
7720 2014-05-27 Gary Benson <gbenson@redhat.com>
7722 * utils.c (internal_vproblem): Prompt for a bug report.
7724 2014-05-26 Andy Wingo <wingo@igalia.com>
7726 * guile/scm-arch.c (arscm_mark_arch_smob):
7727 * guile/scm-block.c (bkscm_mark_block_smob)
7728 (bkscm_mark_block_syms_progress_smob):
7729 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7730 * guile/scm-exception.c (exscm_mark_exception_smob):
7731 * guile/scm-frame.c (frscm_mark_frame_smob):
7732 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7733 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7734 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7735 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7736 (ppscm_mark_pretty_printer_worker_smob):
7737 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7738 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7739 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7740 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7742 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7745 2014-05-26 Andy Wingo <wingo@igalia.com>
7746 Doug Evans <xdje42@gmail.com>
7748 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7749 empty_base_class. All uses updated.
7750 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7751 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7753 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7754 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7755 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7756 (gdbscm_gsmob_has_property_p, add_property_name)
7757 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7758 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7759 (gdb-object-has-property?, gdb-object-properties): Remove.
7760 (gdb-object-kind): Renamed from gsmob-kind.
7762 2014-05-26 Andy Wingo <wingo@igalia.com>
7764 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7765 * configure: Regenerate.
7767 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7769 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7771 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7773 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7774 (replay_memory_access_read_only, replay_memory_access_read_write)
7775 (replay_memory_access_types, replay_memory_access)
7776 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7777 (cmd_set_record_btrace, cmd_show_record_btrace)
7778 (cmd_show_replay_memory_access): New.
7779 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7780 (record_btrace_remove_breakpoint): Replace
7781 record_btrace_allow_memory_access with replay_memory_access.
7782 (_initialize_record_btrace): Add commands.
7783 * NEWS: Announce it.
7785 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7787 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7789 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7791 * MAINTAINERS (Write After Approval): Move self back from
7794 2014-05-22 Pedro Alves <palves@redhat.com>
7796 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7797 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7798 (disable_randomization, enum exec_direction_kind)
7799 (execution_direction, stop_registers, start_remote)
7800 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7801 (wait_for_inferior, normal_stop, get_last_target_status)
7802 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7803 (insert_step_resume_breakpoint_at_sal)
7804 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7805 (set_step_info, print_stop_event, signal_stop_state)
7806 (signal_print_state, signal_pass_state, signal_stop_update)
7807 (signal_print_update, signal_pass_update)
7808 (update_signals_program_target, clear_exit_convenience_vars)
7809 (displaced_step_dump_bytes, update_observer_mode)
7810 (signal_catch_update, gdb_signal_from_command): Move
7812 * infrun.h: ... to this new file.
7813 * amd64-tdep.c: Include infrun.h.
7814 * annotate.c: Include infrun.h.
7815 * arch-utils.c: Include infrun.h.
7816 * arm-linux-tdep.c: Include infrun.h.
7817 * arm-tdep.c: Include infrun.h.
7818 * break-catch-sig.c: Include infrun.h.
7819 * breakpoint.c: Include infrun.h.
7820 * common/agent.c: Include infrun.h instead of inferior.h.
7821 * corelow.c: Include infrun.h.
7822 * event-top.c: Include infrun.h.
7823 * go32-nat.c: Include infrun.h.
7824 * i386-tdep.c: Include infrun.h.
7825 * inf-loop.c: Include infrun.h.
7826 * infcall.c: Include infrun.h.
7827 * infcmd.c: Include infrun.h.
7828 * infrun.c: Include infrun.h.
7829 * linux-fork.c: Include infrun.h.
7830 * linux-nat.c: Include infrun.h.
7831 * linux-thread-db.c: Include infrun.h.
7832 * monitor.c: Include infrun.h.
7833 * nto-tdep.c: Include infrun.h.
7834 * procfs.c: Include infrun.h.
7835 * record-btrace.c: Include infrun.h.
7836 * record-full.c: Include infrun.h.
7837 * remote-m32r-sdi.c: Include infrun.h.
7838 * remote-mips.c: Include infrun.h.
7839 * remote-notif.c: Include infrun.h.
7840 * remote-sim.c: Include infrun.h.
7841 * remote.c: Include infrun.h.
7842 * reverse.c: Include infrun.h.
7843 * rs6000-tdep.c: Include infrun.h.
7844 * s390-linux-tdep.c: Include infrun.h.
7845 * solib-irix.c: Include infrun.h.
7846 * solib-osf.c: Include infrun.h.
7847 * solib-svr4.c: Include infrun.h.
7848 * target.c: Include infrun.h.
7849 * top.c: Include infrun.h.
7850 * windows-nat.c: Include infrun.h.
7851 * mi/mi-interp.c: Include infrun.h.
7852 * mi/mi-main.c: Include infrun.h.
7853 * python/py-threadevent.c: Include infrun.h.
7855 2014-05-22 Pedro Alves <palves@redhat.com>
7857 * infrun.c (handle_inferior_event): Store the exit code for
7858 --return-child-result here, instead of ...
7859 (print_exited_reason): ... here.
7861 2014-05-21 Pedro Alves <palves@redhat.com>
7864 * gdbthread.h (struct thread_control_state): New field
7866 * infrun.c (follow_fork): Copy the new thread control field to the
7868 (clear_proceed_status_thread): Clear the new thread control field.
7869 (proceed): Set the new thread control field.
7870 * interps.h (command_interp): Declare.
7871 * interps.c (command_interpreter): New global.
7872 (command_interp): New function.
7873 (interp_exec): Set `command_interpreter' while here.
7874 * cli-out.c (cli_uiout_dtor): New function.
7875 (cli_ui_out_impl): Install it.
7876 * mi/mi-interp.c: Include cli-out.h.
7877 (mi_cmd_interpreter_exec): Add comment.
7878 (restore_current_uiout_cleanup): New function.
7879 (ui_out_free_cleanup): New function.
7880 (mi_on_normal_stop): If finishing an execution command started by
7881 a CLI command, or any kind of breakpoint-like event triggered,
7882 print the stop event to the output (CLI) stream.
7883 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7885 2014-05-21 Pedro Alves <palves@redhat.com>
7887 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7888 current source line having changed.
7889 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7890 * infrun.c (normal_stop): Adjust call to
7891 set_current_sal_from_frame.
7892 * source.c (clear_lines_listed_range): New function.
7893 (set_current_source_symtab_and_line, identify_source_line): Clear
7894 the lines listed range.
7895 (line_info): Handle the first "info line" after the current source
7896 line having changed.
7897 * stack.c (print_stack_frame): Remove center handling.
7898 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7901 2014-05-21 Pedro Alves <palves@redhat.com>
7903 * inf-child.c (inf_child_mourn_inferior): New function.
7904 * inf-child.h (inf_child_mourn_inferior): New declaration.
7905 * darwin-nat.c (darwin_mourn_inferior): Use
7906 inf_child_mourn_inferior.
7907 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7908 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7909 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7910 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7911 * windows-nat.c (windows_mourn_inferior): Likewise.
7913 2014-05-21 Doug Evans <xdje42@gmail.com>
7915 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7917 2014-05-21 Doug Evans <xdje42@gmail.com>
7919 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7920 (gdbscm_out_of_range_error): Ditto.
7921 (gdbscm_memory_error): Ditto.
7922 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7923 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7924 (gdbscm_out_of_range_error): Update.
7925 (gdbscm_memory_error): Update.
7926 (gdbscm_scm_to_target_string_unsafe): Delete.
7928 2014-05-21 Pedro Alves <palves@redhat.com>
7930 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7932 (inf_child_open_target): New function.
7933 (inf_child_open): Use inf_child_open_target to push the target
7934 instead of erroring out.
7935 (inf_child_disconnect, inf_child_close)
7936 (inf_child_maybe_unpush_target): New functions.
7937 (inf_child_target): Install inf_child_disconnect and
7938 inf_child_close. Store a pointer to the returned object.
7939 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7941 * target.c (auto_connect_native_target): New global.
7942 (show_default_run_target): New function.
7943 (find_default_run_target): Return NULL if automatically connecting
7944 to the native target is disabled.
7945 (_initialize_target): Install set/show auto-connect-native-target.
7946 * NEWS: Mention "set auto-connect-native-target", and "target
7948 * linux-nat.c (super_close): New global.
7949 (linux_nat_close): Call super_close.
7950 (linux_nat_add_target): Store a pointer to the base class's
7952 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7953 inf_child_maybe_unpush.
7954 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7956 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7957 the inferior. Use inf_child_maybe_unpush_target.
7958 (inf_ttrace_attach): Don't push the target if it is already
7960 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7961 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7962 after mourning the inferior. Use inf_child_maybe_unpush_target.
7963 (darwin_attach_pid): Don't push the target if it is already
7965 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7966 mourning the inferior. Use inf_child_maybe_unpush_target.
7967 (gnu_detach): Use inf_child_maybe_unpush_target.
7968 * go32-nat.c (go32_create_inferior): Don't push the target if it
7970 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7971 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7972 (procfs_open): Rename to ...
7973 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7974 comments. Can target_preopen before changing node. Call
7975 inf_child_open_target to push the target explicitly.
7976 (procfs_attach): Don't push the target if it is already pushed.
7977 (procfs_detach): Use inf_child_maybe_unpush_target.
7978 (procfs_create_inferior): Don't push the target if it is already
7980 (nto_native_ops): New global.
7981 (procfs_open): Reimplement.
7982 (procfs_native_open): New function.
7983 (init_procfs_targets): Install procfs_native_open as to_open of
7984 "target native". Store a pointer to the "native" target in
7986 * procfs.c (procfs_attach): Don't push the target if it is already
7988 (procfs_detach): Use inf_child_maybe_unpush_target.
7989 (procfs_mourn_inferior): Only unpush the target after mourning the
7990 inferior. Use inf_child_maybe_unpush_target.
7991 (procfs_init_inferior): Don't push the target if it is already
7993 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7994 if it is already pushed.
7996 2014-05-21 Pedro Alves <palves@redhat.com>
7998 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7999 and "procfs" targets are now called "native" instead.
8001 2014-05-21 Pedro Alves <palves@redhat.com>
8003 * go32-nat.c (go32_open): Delete.
8004 (go32_target): Don't override the to_open method.
8006 2014-05-21 Pedro Alves <palves@redhat.com>
8008 * nto-procfs.c (procfs_can_run): New function.
8009 (nto_procfs_ops): New global.
8010 (init_procfs_targets): New, based on procfs_target. Install
8011 "target native" in addition to "target procfs".
8012 (_initialize_procfs): Call init_procfs_targets instead of adding
8015 2014-05-21 Pedro Alves <palves@redhat.com>
8017 * windows-nat.c (windows_target): Don't override to_shortname,
8018 to_longname or to_doc.
8020 2014-05-21 Pedro Alves <palves@redhat.com>
8022 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8025 2014-05-21 Pedro Alves <palves@redhat.com>
8027 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8028 to_shortname, to_longname or to_doc.
8030 2014-05-21 Pedro Alves <palves@redhat.com>
8032 * go32-nat.c (go32_target): Don't override to_shortname,
8033 to_longname or to_doc.
8035 2014-05-21 Pedro Alves <palves@redhat.com>
8037 * inf-child.c (inf_child_open): Remove mention of "child".
8038 (inf_child_target): Rename target to "native" instead of "child".
8040 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8042 * Makefile.in (SFILES): Delete "regset.c".
8043 (COMMON_OBS): Delete "regset.o".
8045 * regset.h (regset_alloc): Delete prototype.
8047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8049 * sparc-linux-tdep.c (sparc32_linux_gregset)
8050 (sparc32_linux_fpregset): New static regset structures.
8051 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8052 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8054 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8055 (sparc64_linux_fpregset): New static regset structures.
8056 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8057 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8058 New static regset structures.
8059 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8060 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8061 New static regset structures.
8062 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8063 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8064 New static regset structures.
8065 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8066 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8067 New static regset structures.
8068 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8072 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8073 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8074 register maps ("regmaps") from "*regset" to "*regmap". Do this
8075 for all regmap types and variables.
8076 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8077 (sparc32_linux_supply_core_gregset)
8078 (sparc32_linux_collect_core_gregset)
8079 (sparc32_linux_supply_core_fpregset)
8080 (sparc32_linux_collect_core_fpregset): Likewise.
8081 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8082 (sparc_gregmap, sparc_fpregmap): ... these.
8083 (sparc_supply_gregset, sparc_collect_gregset)
8084 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8085 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8086 (_initialize_sparc_nat): Rename regmaps.
8087 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8088 (sparc_gregmap, sparc_fpregmap): ... these.
8089 (sparc_supply_gregset, sparc_collect_gregset)
8090 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8091 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8093 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8094 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8096 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8098 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8099 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8100 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8102 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8103 (sparc32_bsd_fpregset): Rename to...
8104 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8105 (sparc32_bsd_fpregmap): ... these.
8106 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8107 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8108 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8109 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8110 (struct sparc_gregmap, struct sparc_fpregmap)
8111 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8112 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8113 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8114 (sparc32_supply_regset, sparc32_collect_gregset)
8115 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8117 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8118 (sparc64_linux_ptrace_gregmap): ... this.
8119 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8120 (_initialize_sparc64_linux_nat): Rename regmaps.
8121 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8122 (sparc64_linux_core_gregmap): ... this.
8123 (sparc64_linux_supply_core_gregset)
8124 (sparc64_linux_collect_core_gregset)
8125 (sparc64_linux_supply_core_fpregset)
8126 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8127 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8128 (sparc64_sol2_fpregset): Rename to...
8129 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8130 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8131 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8133 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8134 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8135 (sparc64_bsd_fpregset): Rename to...
8136 (struct sparc_gregmap, sparc64_sol2_gregmap)
8137 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8138 (sparc64_bsd_fpregmap): ... these.
8139 (sparc64_supply_gregset, sparc64_collect_gregset)
8140 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8142 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8143 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8144 (sparc64fbsd_gregmap): ... this.
8145 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8146 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8148 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8149 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8150 (sparc64nbsd_collect_fpregset): Likewise.
8151 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8152 (sparc64nbsd_gregmap): ... this.
8153 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8155 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8156 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8157 (sparc64obsd_gregmap): ... this.
8158 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8160 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8161 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8162 (sparc32nbsd_gregmap): ... this.
8163 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8166 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8168 * score-tdep.c (score7_linux_gregset): New static regset
8170 (score7_linux_regset_from_core_section): Remove dynamic regset
8172 (score_gdbarch_init): Drop allocation of tdep structure.
8173 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8175 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8177 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8179 (am33_regset_from_core_section): Remove dynamic regset
8182 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8184 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8185 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8187 (mips_linux_regset_from_core_section): Remove dynamic regset
8189 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8190 'gregset64', 'fpregset', and 'fpregset64'.
8191 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8192 deleted tdep fields.
8194 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8196 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8198 (amd64_regset_from_core_section): Remove dynamic regset
8200 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8202 (amd64obsd_regset_from_core_section): Remove dynamic regset
8204 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8206 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8207 x86-common regset supply function.
8208 * i386-tdep.c (i386_collect_gregset): Make static.
8209 (i386_gregset): New global regset structure.
8210 (i386_fpregset, i386_xstateregset): New static regset structures.
8211 (i386_regset_from_core_section): Remove dynamic regset
8213 (i386_gdbarch_init): Remove initialization of tdep fields
8214 'gregset', 'fpregset', and 'xstateregset'.
8215 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8216 'fpregset', and 'xstateregset'.
8217 (i386_collect_gregset): Remove prototype.
8218 (i386_gregset): New declaration.
8219 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8221 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8224 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8226 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8227 (arm_linux_vfpregset): New static regset structures.
8228 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8230 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8231 and 'vfpregset' fields.
8233 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8235 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8236 (aarch64_linux_fpregset): New static regset structures.
8237 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8238 of regset structures.
8239 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8242 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8244 * regset.h (struct regset): Remove gdbarch field.
8245 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8246 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8247 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8249 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8250 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8251 (ppc32_linux_vsxregset): Likewise.
8252 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8253 via the regcache instead of the regset.
8254 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8255 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8256 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8257 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8260 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8262 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8263 Constify structures.
8264 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8265 (alphanbsd_aout_gregset): Likewise.
8266 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8267 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8269 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8270 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8272 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8273 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8274 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8275 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8276 * m88k-tdep.c (m88k_gregset): Likewise.
8277 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8278 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8279 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8280 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8281 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8282 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8283 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8284 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8285 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8287 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8288 * sh-tdep.h (sh_corefile_gregset): Likewise.
8289 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8290 * vax-tdep.c (vax_gregset): Likewise.
8292 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8294 Fix TLS access for -static -pthread.
8295 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8296 (try_thread_db_load_1): Initialize it.
8297 (thread_db_get_thread_local_address): Call it if LM is zero.
8298 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8299 * target.h (struct target_ops) (to_get_thread_local_address): Add
8300 load_module_addr comment.
8302 2014-05-21 Pedro Alves <palves@redhat.com>
8304 * dcache.c (dcache_read_memory_partial): If reading the cache line
8305 fails, fallback to reading just the memory the caller wanted.
8307 2014-05-20 Doug Evans <dje@google.com>
8309 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8310 instead of get_current_arch.
8312 2014-05-20 Pedro Alves <palves@redhat.com>
8314 * NEWS: Mention that compare-sections now works with all targets.
8316 * remote.c (PACKET_qCRC): New enum value.
8317 (remote_verify_memory): Don't send qCRC if the target has no
8318 execution. Use packet_support/packet_ok. If the target doesn't
8319 support the qCRC packet, fallback to a deep memory copy.
8320 (compare_sections_command): Say "target image" instead of "remote
8322 (_initialize_remote): Add PACKET_qCRC to the list of config
8323 packets that have no associated command. Extend comment.
8324 * target.c (simple_verify_memory, default_verify_memory): New
8326 * target.h (struct target_ops) <to_verify_memory>: Default to
8327 default_verify_memory.
8328 (simple_verify_memory): New declaration.
8329 * target-delegates.c: Regenerate.
8331 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8333 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8335 2014-05-20 Hui Zhu <hui@codesourcery.com>
8336 Yao Qi <yao@codesourcery.com>
8339 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8340 and change address of sp and pc.
8342 2014-05-19 Tom Tromey <tromey@redhat.com>
8344 * gdbtypes.c (rank_function): Use XNEWVEC.
8345 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8347 2014-05-19 Doug Evans <dje@google.com>
8349 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8350 build_type_unit_groups and moved closer to only caller. Remove
8351 arguments. All references updated. Remove outdated .gdb_index
8353 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8354 build_type_psymtabs_1.
8356 2014-05-19 Doug Evans <dje@google.com>
8358 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8359 n_type_unit_groups, all_type_unit_groups. All uses removed.
8360 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8361 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8362 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8363 (add_type_unit_group_to_table): Delete.
8365 2014-05-19 Doug Evans <dje@google.com>
8367 * eval.c (evaluate_subexp_standard): Add some comments.
8369 2014-05-17 Doug Evans <xdje42@gmail.com>
8371 * progspace.c (remove_program_space): Delete, unused.
8372 * progspace.h (remove_program_space): Ditto.
8374 2014-05-17 Doug Evans <xdje42@gmail.com>
8376 * inferior.c (prune_inferiors): Fix comment.
8377 (remove_inferior_command): Call prune_program_spaces.
8379 2014-05-16 Doug Evans <dje@google.com>
8381 New command line option -D.
8383 * main.c (set_gdb_data_directory): New function.
8384 (captured_main): Recognize -D. Flag error for --data-directory "".
8385 Call set_gdb_data_directory.
8386 (print_gdb_help): Print --data-directory, -D.
8387 * main.h (set_gdb_data_directory): Declare.
8388 * top.c (staged_gdb_datadir): New static global.
8389 (set_gdb_datadir): Call set_gdb_data_directory
8390 (show_gdb_datadir): New function.
8391 (init_main): Update init of data-directory parameter.
8393 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8395 Import the "dirfd" gnulib module.
8396 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8397 * gnulib/aclocal.m4: Update.
8398 * gnulib/config.in: Update.
8399 * gnulib/configure: Update.
8400 * gnulib/import/Makefile.am: Update.
8401 * gnulib/import/Makefile.in: Update.
8402 * gnulib/import/dirfd.c: New.
8403 * gnulib/import/m4/dirfd.m4: New.
8404 * gnulib/import/m4/gnulib-cache.m4: Update.
8405 * gnulib/import/m4/gnulib-comp.m4: Update.
8407 2014-05-16 Pierre Muller <muller@sourceware.org>
8408 Yao Qi <yao@codesourcery.com>
8410 * valprint.c (print_wchar): Move the code on checking whether
8411 W is a printable wide char to the default branch of switch
8412 statement below. Call wchar_printable instead of gdb_iswprint.
8414 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8416 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8417 ldr.w and ldrd instructions.
8419 2014-05-15 Doug Evans <dje@google.com>
8421 * dwarf2read.c (read_structure_type): Delete outdated comments.
8423 2014-05-14 Tom Tromey <tromey@redhat.com>
8425 * macrocmd.c (print_macro_definition): Reindent.
8427 2014-05-13 Doug Evans <xdje42@gmail.com>
8429 * python/py-cmd.c (cmdpy_completer): Add comment.
8430 (completers): Make const.
8432 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8434 * infrun.c (resume): Remove should_resume (unused). Move up
8435 declaration of resume_ptid.
8437 2014-05-13 Tom Tromey <tromey@redhat.com>
8439 * language.h (unop_type_check): Remove.
8440 (binop_type_check): Don't declare.
8442 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8444 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8445 call to regcache_raw_collect.
8447 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8449 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8450 mi_console->quote as the quoting character.
8452 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8454 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8456 2014-04-29 Tom Tromey <tromey@redhat.com>
8458 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8459 "show debug varobj".
8461 2014-05-07 Kyle McMartin <kyle@redhat.com>
8463 Pushed by Joel Brobecker <brobecker@adacore.com>.
8464 * aarch64-tdep.c (aarch64_software_single_step): New function.
8465 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8466 with aarch64_software_single_step.
8468 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8472 2014-05-05 Keith Seitz <keiths@redhat.com>
8474 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8475 variable or history value is successfully parsed.
8477 2014-05-05 Yao Qi <yao@codesourcery.com>
8478 Pedro Alves <palves@redhat.com>
8480 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8481 address of blocks that intersects the requested range. Trim
8482 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8484 * ctf.c (ctf_xfer_partial): Likewise.
8486 2014-05-05 Yao Qi <yao@codesourcery.com>
8488 * printcmd.c (display_command): Remove the check to
8489 target_has_execution.
8491 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8493 * ppcobsd-nat.c: Include "obsd-nat.h".
8494 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8496 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8498 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8500 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8501 and 16-bit signed and unsigned arguments. Update comment.
8502 (stap_parse_probe_arguments): Extend code to handle such
8503 arguments. Use warning instead of complaint to notify about
8504 unrecognized bitness.
8506 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8508 PR breakpoints/16889
8509 * stap-probe.c (stap_parse_probe_arguments): Simplify
8510 check for non-prefixed probes (i.e., probes whose
8511 arguments do not start with "N@"). Always set the
8512 argument type to a sane value.
8514 2014-05-01 David Taylor <dtaylor@emc.com>
8516 * remote.c (compare_sections_command): Add -r option to compare
8517 all loadable read-only sections.
8519 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8521 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8522 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8524 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8525 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8526 Remove unused CORE_ADDR argument. Update all callers.
8528 2014-04-29 Pedro Alves <palves@redhat.com>
8530 * remote.c (struct packet_config) <detect>: Extend comment.
8531 (add_packet_config_cmd): Don't set the config's detect or support
8533 (init_all_packet_configs): Also initialize the config's 'detect'
8535 (reset_all_packet_configs_support): New function.
8536 (remote_open_1): Call reset_all_packet_configs_support instead of
8537 init_all_packet_configs.
8538 (_initialize_remote): Initialize all packet configs. Assert that
8539 all packets have an associated command, except a few known
8542 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8544 * dwarf2read.c (read_subrange_type): Handle dynamic
8545 DW_AT_lower_bound attributes.
8547 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8549 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8550 dynamic bounds before computing its upper bound.
8551 (ada_discrete_type_low_bound): Same as above with the lower bound.
8553 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8555 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8556 range types. Adjust the array handling implementation to
8557 take advantage of this change.
8558 (resolve_dynamic_range): New function, mostly extracted from
8559 resolve_dynamic_bounds.
8560 (resolve_dynamic_array): New function, mostly extracted from
8561 resolve_dynamic_bounds.
8562 (resolve_dynamic_bounds): Delete.
8563 (resolve_dynamic_type): Reimplement. Add handling of
8564 TYPE_CODE_RANGE types.
8566 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8568 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8569 handling of parallel ___XA types.
8571 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8573 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8574 unnecessary second call to static_unwrap_type.
8576 2014-04-27 Hui Zhu <hui@codesourcery.com>
8578 * stack.c (print_frame_info): Call do_gdb_disassembly with
8579 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8581 2014-04-26 Doug Evans <xdje42@gmail.com>
8583 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8585 2014-04-25 Pedro Alves <palves@redhat.com>
8588 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8589 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8590 and newline from built string.
8591 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8592 (linux_ptrace_attach_fail_reason): ... this.
8593 * linux-nat.c (linux_nat_attach): Adjust to use
8594 linux_ptrace_attach_fail_reason.
8596 2014-04-25 Pedro Alves <palves@redhat.com>
8598 * remote.c (struct remote_state): Remove multi_process_aware,
8599 non_stop_aware, cond_tracepoints, cond_breakpoints,
8600 breakpoint_commands, fast_tracepoints, static_tracepoints,
8601 install_in_trace, disconnected_tracing,
8602 enable_disable_tracepoints, string_tracing, and
8603 augmented_libraries_svr4_read fields.
8604 (remote_multi_process_p): Move further below in the file.
8605 (struct packet_config): Add comments.
8606 (update_packet_config): Delete function.
8607 (show_packet_config_cmd): Use packet_config_support.
8608 (add_packet_config_cmd): Use NULL as set callback.
8609 (packet_ok): "set remote foo-packet"-style commands no longer
8610 change config->supported -- adjust.
8611 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8612 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8613 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8614 (PACKET_QNonStop, PACKET_multiprocess_feature)
8615 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8616 (PACKET_DisconnectedTracing_feature)
8617 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8618 (set_remote_protocol_packet_cmd): Delete function.
8619 (packet_config_support, packet_support): New functions.
8620 (set_remote_protocol_Z_packet_cmd): Don't call
8621 update_packet_config.
8622 (remote_query_attached, remote_pass_signals)
8623 (remote_program_signals, remote_threads_info)
8624 (remote_threads_extra_info, remote_start_remote): Use
8626 (remote_start_remote): Use packet_config_support and
8628 (init_all_packet_configs): Set all packets to unknown support,
8629 instead of calling update_packet_config.
8630 (remote_check_symbols): Use packet_support.
8631 (remote_supported_packet): Unconditionally set the packet config's
8633 (remote_multi_process_feature, remote_non_stop_feature)
8634 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8635 (remote_breakpoint_commands_feature)
8636 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8637 (remote_install_in_trace_feature)
8638 (remote_disconnected_tracing_feature)
8639 (remote_enable_disable_tracepoint_feature)
8640 (remote_string_tracing_feature)
8641 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8642 (remote_protocol_features): Adjust to use remote_supported_packet
8643 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8644 "ConditionalTracepoints", "ConditionalBreakpoints",
8645 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8646 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8647 "EnableDisableTracepoints", and "tracenz".
8648 (remote_query_supported): Use packet_support.
8649 (remote_open_1): Adjust.
8650 (extended_remote_attach_1): Use packet_support. Switch on the
8651 result of packet_ok instead of checking whether the packet ended
8653 (remote_vcont_resume): Use packet_support.
8654 (remote_resume, remote_stop_ns, fetch_register_using_p)
8655 (remote_prepare_to_store, store_register_using_P)
8656 (check_binary_download, remote_write_bytes): Use packet_support.
8657 (remote_vkill): Use packet_support. Switch on the result of
8658 packet_ok instead of checking whether the packet ended up
8660 (extended_remote_supports_disable_randomization): Use
8662 (extended_remote_run): Switch on the result of packet_ok instead
8663 of checking whether the packet ended up disabled.
8664 (remote_insert_breakpoint, remote_remove_breakpoint)
8665 (remote_insert_watchpoint, remote_remove_watchpoint)
8666 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8668 (remote_search_memory): Use packet_config_support.
8669 (remote_get_thread_local_address, remote_get_tib_address)
8670 (remote_hostio_send_command, remote_can_execute_reverse): Use
8672 (remote_supports_cond_tracepoints)
8673 (remote_supports_cond_breakpoints)
8674 (remote_supports_fast_tracepoints)
8675 (remote_supports_static_tracepoints)
8676 (remote_supports_install_in_trace)
8677 (remote_supports_enable_disable_tracepoint)
8678 (remote_supports_string_tracing)
8679 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8680 the packet config says the feature is enabled or disabled.
8681 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8682 (remote_get_trace_status): Use packet_support.
8683 (remote_set_disconnected_tracing): Adjust to check whether the
8684 feature is enabled with packet_support.
8685 (remote_set_trace_buffer_size, remote_use_agent)
8686 (remote_can_use_agent, remote_supports_btrace): Use
8688 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8689 Use packet_config_support.
8690 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8691 the packet config says the feature is enabled or disabled.
8692 (set_range_stepping): Use packet_support.
8694 2014-04-25 Tom Tromey <tromey@redhat.com>
8696 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8699 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8701 * NEWS: Mention support for C99 variable length arrays.
8703 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8705 * ada-lang.c (standard_exc): Expand introductory comment.
8707 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8708 Walfred Tedeschi <walfred.tedeschi@intel.com>
8710 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8712 (amd64_linux_read_description): Add code to handle AVX512 xstate
8713 mask and return respective tdesc.
8714 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8715 and features/i386/x32-avx512-linux.c.
8716 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8717 (amd64_linux_core_read_description): Add code to handle AVX512
8718 xstate mask and return respective tdesc.
8719 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8720 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8722 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8723 (tdesc_amd64_avx512_linux): New prototype.
8724 (tdesc_x32_avx512_linux): Likewise.
8725 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8726 features/i386/x32-avx512.c.
8727 (amd64_ymm_avx512_names): New register names for pseudo
8729 (amd64_ymmh_avx512_names): New register names for raw registers
8731 (amd64_k_names): New register names for K registers.
8732 (amd64_zmmh_names): New register names for ZMM raw registers.
8733 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8734 (amd64_xmm_avx512_names): New register names for XMM16-31
8736 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8738 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8739 if feature is present.
8740 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8741 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8742 (AMD64_NUM_REGS): Adjust to new number of registers.
8743 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8744 registers supplied via XSTATE by AVX512 registers.
8745 (i386_linux_read_description): Add case for AVX512.
8746 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8747 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8748 (i386_linux_core_read_description): Add case for AVX512.
8749 (i386_linux_init_abi): Install supported register note section
8751 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8753 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8754 registers to be number of zmm7h + 1.
8755 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8756 * i386-tdep.c: Include features/i386/i386-avx512.c.
8757 (i386_zmm_names): Add ZMM pseudo register names array.
8758 (i386_zmmh_names): Add ZMM raw register names array.
8759 (i386_k_names): Add K raw register names array.
8760 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8761 registers. AVX512 has 16 more ZMM registers than there are YMM
8763 (i386_zmmh_regnum_p): Add function to look up register number of
8765 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8766 (i386_k_regnum_p): Likewise for K raw registers.
8767 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8768 registers added by AVX512.
8769 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8770 registers added by AVX512.
8771 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8773 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8774 (i386_pseudo_register_name): Add ZMM pseudo registers.
8775 (i386_zmm_type): Construct and return vector registers type for ZMM
8777 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8778 ZMM0-31 pseudo registers and K registers.
8779 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8780 and YMM16-31 registers from register cache.
8781 (i386_pseudo_register_write): Add code to write K, ZMM and
8783 (i386_register_reggroup_p): Add code to include/exclude AVX512
8784 registers in/from respective register groups.
8785 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8786 registers if feature is present in xcr0.
8787 (i386_gdbarch_init): Add code to initialize AVX512 feature
8788 variables in tdep structure, wire in pseudo registers and call
8789 initialize_tdesc_i386_avx512.
8790 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8792 (i386_regnum): Add AVX512 registers.
8793 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8794 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8795 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8796 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8798 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8799 (i386_ymm_avx512_regnum_p): Likewise.
8800 (i386_k_regnum_p): Likewise.
8801 (i386_zmm_regnum_p): Likewise.
8802 (i386_zmmh_regnum_p): Likewise.
8803 * i387-tdep.c : Update year in copyright notice.
8804 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8806 (XSAVE_YMM_AVX512_ADDR): New macro.
8807 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8809 (XSAVE_XMM_AVX512_ADDR): New macro.
8810 (xsave_avx512_k_offset): New table for K register offsets in
8812 (XSAVE_AVX512_K_ADDR): New macro.
8813 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8815 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8816 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8818 (i387_collect_xsave): Add code to collect AVX512 registers from
8820 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8821 of XMM16-31 registers.
8822 (I387_NUM_K_REGS): New define for number of K registers.
8823 (I387_K0_REGNUM): New define for K0 register number.
8824 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8825 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8826 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8828 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8829 (I387_XMM16_REGNUM): New define for XMM16 register number.
8830 (I387_YMM0_REGNUM): New define for YMM0 register number.
8831 (I387_KEND_REGNUM): New define for last K register number.
8832 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8833 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8835 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8837 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8839 * features/Makefile: Add AVX512 related files.
8840 * features/i386/32bit-avx512.xml: New file.
8841 * features/i386/64bit-avx512.xml: Likewise.
8842 * features/i386/amd64-avx512-linux.c: Likewise.
8843 * features/i386/amd64-avx512-linux.xml: Likewise.
8844 * features/i386/amd64-avx512.c: Likewise.
8845 * features/i386/amd64-avx512.xml: Likewise.
8846 * features/i386/i386-avx512-linux.c: Likewise.
8847 * features/i386/i386-avx512-linux.xml: Likewise.
8848 * features/i386/i386-avx512.c: Likewise.
8849 * features/i386/i386-avx512.xml: Likewise.
8850 * features/i386/x32-avx512-linux.c: Likewise.
8851 * features/i386/x32-avx512-linux.xml: Likewise.
8852 * features/i386/x32-avx512.c: Likewise.
8853 * features/i386/x32-avx512.xml: Likewise.
8854 * regformats/i386/amd64-avx512-linux.dat: New file.
8855 * regformats/i386/amd64-avx512.dat: Likewise.
8856 * regformats/i386/i386-avx512-linux.dat: Likewise.
8857 * regformats/i386/i386-avx512.dat: Likewise.
8858 * regformats/i386/x32-avx512-linux.dat: Likewise.
8859 * regformats/i386/x32-avx512.dat: Likewise.
8860 * NEWS: Add note about new support for AVX512.
8863 2014-04-23 Pedro Alves <palves@redhat.com>
8865 * breakpoint.c (insert_bp_location): Tolerate errors if the
8866 breakpoint is set in a user-loaded objfile.
8867 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8868 location is marked shlib_disabled. If the breakpoint is set in a
8869 user-loaded objfile is a GDB-side memory breakpoint, validate it
8870 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8871 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8873 * mem-break.c (memory_validate_breakpoint): New function.
8874 * objfiles.c (userloaded_objfile_contains_address_p): New
8876 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8877 * target.h (memory_validate_breakpoint): New declaration.
8879 2014-04-23 Pedro Alves <palves@redhat.com>
8881 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8882 the breakpoint is set in a shared library, only suppress
8883 errors for software breakpoints, not hardware breakpoints.
8885 2014-04-22 Pedro Alves <palves@redhat.com>
8887 * infrun.c (schedlock_applies): New function, factored out from
8888 find_thread_needs_step_over.
8889 (find_thread_needs_step_over): Use it.
8890 (switch_back_to_stepped_thread): Always clear trap_expected if the
8891 step over is finished. Return early if scheduler locking applies.
8892 Look for the stepping thread and a potential step-over thread with
8894 (currently_stepping_or_nexting_callback): Delete.
8896 2014-04-22 Nick Clifton <nickc@redhat.com>
8898 * NEWS: Mention that ARM sim now supports tracing.
8900 2014-04-22 Yao Qi <yao@codesourcery.com>
8902 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8904 * tracefile.c (tracefile_fetch_registers): ... it. New
8906 * tracefile.h (tracefile_fetch_registers): Declare.
8907 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8908 tracefile_fetch_registers.
8910 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8913 * windows-nat.c (thread_rec): Don't display a warning when
8914 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8915 fails for any reason, set th->suspended to -1, so that we don't
8916 try to resume such a thread. Also, don't return NULL in these
8917 cases, to avoid completely ruin the session due to "PC register is
8918 not available" error.
8919 (do_windows_fetch_inferior_registers): Check errors in
8920 GetThreadContext call.
8921 (windows_continue): Accept an additional argument KILLED; if not
8922 zero, ignore errors in the SetThreadContext call, since the
8923 inferior was killed and is shutting down.
8924 (windows_resume, get_windows_debug_event)
8925 (windows_create_inferior, windows_mourn_inferior)
8926 (windows_kill_inferior): All callers of windows_continue changed
8927 to adjust to its new calling sequence.
8929 2014-04-19 Yao Qi <yao@codesourcery.com>
8931 * ctf.c (ctf_open): Call post_create_inferior.
8933 2014-04-19 Yao Qi <yao@codesourcery.com>
8935 * ctf.c (handle_id): New static variable.
8936 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8937 value. Get the declaration of event "register" and get length
8938 of field "contents".
8940 2014-04-19 Yao Qi <yao@codesourcery.com>
8942 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8944 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8946 * valops.c (oload_method_static): Remove unnecessary argument
8947 METHOD. Update all callers.
8949 2014-04-18 Pedro alves <palves@redhat.com>
8950 Tom Tromey <tromey@redhat.com>
8953 * frame.c (get_prev_frame_1): Rename to ...
8954 (get_prev_frame_always): ... this, and make extern. Adjust.
8955 (skip_artificial_frames): Use get_prev_frame_always.
8956 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8957 (get_frame_unwind_stop_reason): Adjust to rename.
8958 * frame.h (get_prev_frame_always): Declare.
8959 * inline-frame.c: Include frame.h.
8960 (inline_frame_this_id): Use get_prev_frame_always.
8962 2014-04-18 Tristan Gingold <gingold@adacore.com>
8964 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8965 code by using bfd_mach_o_get_base_address.
8967 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8969 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8970 (spu_ax_pseudo_register_collect): New function.
8971 (spu_ax_pseudo_register_push_stack): Likewise.
8972 (spu_dwarf_reg_to_regnum): Likewise.
8973 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8975 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8977 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8978 Replace FRAME argument with FRAME_ID.
8979 * gdbarch.c, gdbarch.h: Regenerate.
8980 * findvar.c (default_value_from_register): Add GDBARCH argument;
8981 replace FRAME by FRAME_ID. No longer call get_frame_id.
8982 (value_from_register): Update call to gdbarch_value_from_register.
8983 * value.h (default_value_from_register): Update prototype.
8984 * s390-linux-tdep.c (s390_value_from_register): Update interface
8985 and call to default_value_from_register.
8986 * spu-tdep.c (spu_value_from_register): Likewise.
8988 * findvar.c (address_from_register): Remove TYPE argument.
8989 Do not call value_from_register; use gdbarch_value_from_register
8990 with null_frame_id instead.
8991 * value.h (address_from_register): Update prototype.
8992 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8993 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8994 address_from_register interface change.
8996 2014-04-17 Yao Qi <yao@codesourcery.com>
8998 * gdbtypes.h: Update comments to link to types and macros'
9001 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9003 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9005 2014-04-16 Keith Seitz <keiths@redhat.com>
9008 * dwarf2read.c (skip_one_die): Check that all relative-offset
9009 sibling DIEs fall within range of the current reader's buffer.
9010 (read_partial_die): Likewise.
9012 2014-04-16 Keith Seitz <keiths@redhat.com>
9015 * cp-namespace.c (lookup_symbol_file): If the type name of
9016 `this' is NULL, return immediately.
9018 2014-04-14 Keith Seitz <keiths@redhat.com>
9021 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9022 from symbol_matches_domain in symtab.c. All local callers
9023 of symbol_matches_domain updated.
9024 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9025 search STRUCT_DOMAIN.
9026 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9027 independently. standard_lookup will do that automatically.
9028 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9029 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9030 (cp_lookup_symbol_in_namespace): Likewise.
9031 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9032 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9033 may return a STRUCT_DOMAIN match.
9034 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9035 * cp-support.c: Include language.h.
9036 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9038 * psymtab.c (match_partial_symbol): Compare the requested
9039 domain with the symbol's domain directly.
9040 (lookup_partial_symbol): Likewise.
9041 * symtab.c (lookup_symbol_in_language): Explain when/why
9042 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9043 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9044 appropriate languages.
9045 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9046 and moved to ada-lang.c
9047 (lookup_block_symbol): Explain that this function only returns
9048 symbol matching the requested DOMAIN.
9049 Compare the requested domain with the symbol's domain directly.
9050 (iterate_over_symbols): Compare the requested domain with the
9051 symbol's domain directly.
9052 * symtab.h (symbol_matches_domain): Remove.
9054 2014-04-14 Tom Tromey <tromey@redhat.com>
9057 * c-exp.y (type_aggregate_p): New function.
9058 (qualified_name, classify_inner_name): Use it.
9059 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9060 and TYPE_TARGET_TYPE of an enum type.
9061 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9063 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9064 handle TYPE_DECLARED_CLASS.
9065 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9067 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9068 * valops.c (enum_constant_from_type): New function.
9069 (value_aggregate_elt): Use it.
9070 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9073 2014-04-14 Tom Tromey <tromey@redhat.com>
9075 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9076 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9078 * value.h (value_aggregate_elt): Update.
9080 2014-04-14 Tom Tromey <tromey@redhat.com>
9082 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9084 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9086 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9087 (evaluate_subexp_standard): Pass noside argument.
9088 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9089 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9090 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9091 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9092 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9094 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9096 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9097 points to a constant blob.
9099 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9101 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9102 property and store it as the high bound and flag the range accordingly.
9103 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9104 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9105 * gdbtypes.h (enum range_flags): New enum.
9106 (struct range_bounds): Add flags member.
9108 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9110 * c-typeprint.c (c_type_print_varspec_suffix): Added
9111 check for not yet resolved high bound. If unresolved, print
9112 "variable length" string to the console instead of random
9115 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9117 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9119 (ada_template_to_fixed_record_type_1): Likewise.
9120 (ada_to_fixed_type_1): Likewise.
9121 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9122 (cp_print_value): Likewise.
9123 * d-valprint.c (dynamic_array_type): Likewise.
9124 * findvar.c (address_of_variable): Likewise.
9125 * jv-valprint.c (java_value_print): Likewise.
9126 * valops.c (value_ind): Likewise.
9127 * value.c (coerce_ref): Likewise.
9129 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9131 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9132 value and retrieve the dynamic type size.
9134 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9136 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9137 passed to sizeof is dynamic evaluate the argument to compute the length.
9139 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9140 Joel Brobecker <brobecker@adacore.com>
9142 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9143 (dwarf2_evaluate_property): New function.
9144 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9145 * dwarf2read.c (attr_to_dynamic_prop): New function.
9146 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9148 * gdbtypes.c: Include dwarf2loc.h.
9149 (is_dynamic_type): New function.
9150 (resolve_dynamic_type): New function.
9151 (resolve_dynamic_bounds): New function.
9152 (get_type_length): New function.
9153 (check_typedef): Use get_type_length to compute type length.
9154 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9155 (TYPE_LOW_BOUND_KIND): New macro.
9156 (is_dynamic_type): New function prototype.
9157 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9158 to resolve dynamic properties of the type. Update comment.
9159 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9161 2014-04-14 Richard Henderson <rth@redhat.com>
9163 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9165 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9166 Doug Evans <xdje42@gmail.com>
9168 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9169 dereference TYPE_CODE_REF values.
9171 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9173 Revert the following changes due to regressions:
9175 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9176 (dwarf2_evaluate_property): New function.
9177 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9178 * dwarf2read.c (attr_to_dynamic_prop): New function.
9179 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9181 * gdbtypes.c: Include dwarf2loc.h.
9182 (is_dynamic_type): New function.
9183 (resolve_dynamic_type): New function.
9184 (resolve_dynamic_bounds): New function.
9185 (get_type_length): New function.
9186 (check_typedef): Use get_type_length to compute type length.
9187 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9188 (TYPE_LOW_BOUND_KIND): New macro.
9189 (is_dynamic_type): New function prototype.
9190 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9191 to resolve dynamic properties of the type. Update comment.
9192 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9194 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9195 passed to sizeof is dynamic evaluate the argument to compute the length.
9197 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9198 value and retrieve the dynamic type size.
9200 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9201 (ada_template_to_fixed_record_type_1): Likewise.
9202 (ada_to_fixed_type_1): Likewise.
9203 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9204 (cp_print_value): Likewise.
9205 * d-valprint.c (dynamic_array_type): Likewise.
9206 * eval.c (evaluate_subexp_with_coercion): Likewise.
9207 * findvar.c (address_of_variable): Likewise.
9208 * jv-valprint.c (java_value_print): Likewise.
9209 * valops.c (value_ind): Likewise.
9210 * value.c (coerce_ref): Likewise.
9212 * c-typeprint.c (c_type_print_varspec_suffix): Added
9213 check for not yet resolved high bound. If unresolved, print
9214 "variable length" string to the console instead of random
9217 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9218 property and store it as the high bound and flag the range accordingly.
9219 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9220 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9221 * gdbtypes.h (enum range_flags): New enum.
9222 (struct range_bounds): Add flags member.
9224 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9225 points to a constant blob.
9227 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9228 (evaluate_subexp_standard): Pass noside argument.
9229 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9230 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9231 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9232 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9233 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9235 2014-04-11 Keith Seitz <keiths@redhat.com>
9238 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9239 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9242 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9244 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9245 (evaluate_subexp_standard): Pass noside argument.
9246 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9247 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9248 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9249 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9250 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9252 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9254 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9255 points to a constant blob.
9257 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9259 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9260 property and store it as the high bound and flag the range accordingly.
9261 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9262 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9263 * gdbtypes.h (enum range_flags): New enum.
9264 (struct range_bounds): Add flags member.
9266 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9268 * c-typeprint.c (c_type_print_varspec_suffix): Added
9269 check for not yet resolved high bound. If unresolved, print
9270 "variable length" string to the console instead of random
9273 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9275 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9276 (ada_template_to_fixed_record_type_1): Likewise.
9277 (ada_to_fixed_type_1): Likewise.
9278 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9279 (cp_print_value): Likewise.
9280 * d-valprint.c (dynamic_array_type): Likewise.
9281 * eval.c (evaluate_subexp_with_coercion): Likewise.
9282 * findvar.c (address_of_variable): Likewise.
9283 * jv-valprint.c (java_value_print): Likewise.
9284 * valops.c (value_ind): Likewise.
9285 * value.c (coerce_ref): Likewise.
9287 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9289 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9290 value and retrieve the dynamic type size.
9292 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9294 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9295 passed to sizeof is dynamic evaluate the argument to compute the length.
9297 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9299 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9300 (dwarf2_evaluate_property): New function.
9301 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9302 * dwarf2read.c (attr_to_dynamic_prop): New function.
9303 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9305 * gdbtypes.c: Include dwarf2loc.h.
9306 (is_dynamic_type): New function.
9307 (resolve_dynamic_type): New function.
9308 (resolve_dynamic_bounds): New function.
9309 (get_type_length): New function.
9310 (check_typedef): Use get_type_length to compute type length.
9311 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9312 (TYPE_LOW_BOUND_KIND): New macro.
9313 (is_dynamic_type): New function prototype.
9314 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9315 to resolve dynamic properties of the type. Update comment.
9316 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9318 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9320 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9321 declaring high/low bounds and change uses accordingly. Call
9322 create_range_type instead of create_static_range_type.
9323 * gdbtypes.c (create_range_type): New function.
9324 (create_range_type): Convert bounds into struct bound_prop and pass
9325 them to create_range_type.
9326 * gdbtypes.h (struct bound_prop): New struct.
9327 (create_range_type): New function prototype.
9328 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9329 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9330 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9332 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9334 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9336 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9337 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9338 * ada-lang.c: All uses of create_range_type updated.
9339 * coffread.c: All uses of create_range_type updated.
9340 * dwarf2read.c: All uses of create_range_type updated.
9341 * f-exp.y: All uses of create_range_type updated.
9342 * m2-valprint.c: All uses of create_range_type updated.
9343 * mdebugread.c: All uses of create_range_type updated.
9344 * stabsread.c: All uses of create_range_type updated.
9345 * valops.c: All uses of create_range_type updated.
9346 * valprint.c: All uses of create_range_type updated.
9348 2014-04-10 Pedro Alves <palves@redhat.com>
9350 * breakpoint.c (single_step_breakpoints)
9351 (single_step_gdbarch): Move up in the file.
9352 (one_breakpoint_xfer_memory): New function, factored out from ...
9353 (breakpoint_xfer_memory): ... here. Also process single-step
9356 2014-04-09 Tristan Gingold <gingold@adacore.com>
9358 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9360 (darwin_decode_exception_message): Free port only after use.
9362 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9364 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9365 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9366 when setting the size of call_length.
9368 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9370 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9371 dereference TYPE_CODE_REF values.
9373 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9375 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9376 end of warning message.
9378 2014-04-03 Doug Evans <dje@google.com>
9380 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9381 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9383 2014-04-02 Alan Modra <amodra@gmail.com>
9385 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9386 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9387 (struct symbol_file_add_from_memory_args): Add size field.
9388 (find_vdso_size): New function.
9389 (add_vsyscall_page): Attempt to find vdso size.
9391 2014-04-01 Doug Evans <dje@google.com>
9393 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9395 2014-04-01 Tristan Gingold <gingold@adacore.com>
9397 * darwin-nat.c (darwin_encode_reply): Add prototype.
9398 (darwin_decode_exception_message): Reply to unknown inferiors.
9399 (darwin_decode_message): Handle message by id. Ignore message
9400 to unknown inferior.
9401 (darwin_wait): Discard unknown messages, add debug trace.
9403 2014-03-31 Doug Evans <dje@google.com>
9405 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9408 2014-03-31 Doug Evans <dje@google.com>
9410 New option "set print symbol-loading".
9412 * solib.c (solib_read_symbols): Only print symbol loading messages
9414 (solib_add): If symbol loading is in "brief" mode, notify user
9415 symbols are being loaded.
9416 (reload_shared_libraries_1): Ditto.
9417 * symfile.c (print_symbol_loading_off): New static global.
9418 (print_symbol_loading_brief): New static global.
9419 (print_symbol_loading_full): New static global.
9420 (print_symbol_loading_enums): New static global.
9421 (print_symbol_loading): New static global.
9422 (print_symbol_loading_p): New function.
9423 (symbol_file_add_with_addrs): Only print symbol loading messages
9425 (_initialize_symfile): Register "print symbol-loading" set/show
9427 * symfile.h (print_symbol_loading_p): Declare.
9429 2014-03-30 Doug Evans <xdje42@gmail.com>
9431 * infrun.c (set_last_target_status): New function.
9432 (handle_inferior_event): Call it.
9434 2014-03-30 Doug Evans <xdje42@gmail.com>
9436 * inferior.h (enum stop_kind): Improve comment.
9438 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9440 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9441 a reference, strip the reference layer before calling
9442 the lang_ops value_has_mutated callback.
9444 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9446 Remove some globals from our parser.
9447 * language.c (unk_lang_parser): Add "struct parser_state"
9449 * language.h (struct language_defn) <la_parser>: Likewise.
9450 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9451 (initialize_expout): Add "struct parser_state" argument.
9452 Rewrite function to use the parser state.
9453 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9454 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9455 write_exp_elt_longcst, write_exp_elt_dblcst,
9456 write_exp_elt_decfloatcst, write_exp_elt_type,
9457 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9458 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9459 write_dollar_variable): Likewise.
9460 (parse_exp_in_context_1): Use parser state.
9461 (insert_type_address_space): Add "struct parser_state" argument.
9463 (increase_expout_size): New function.
9464 * parser-defs.h: Forward declare "struct language_defn" and
9465 "struct parser_state".
9466 (expout, expout_size, expout_ptr): Remove extern declarations.
9467 (parse_gdbarch, parse_language): Rewrite macro declarations to
9468 accept the parser state.
9469 (struct parser_state): New struct.
9470 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9471 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9472 write_exp_elt_decfloatcst, write_exp_elt_type,
9473 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9474 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9475 write_exp_msymbol, write_dollar_variable,
9476 mark_struct_expression, insert_type_address_space): Add "struct
9477 parser_state" argument.
9478 (increase_expout_size): New function.
9479 * utils.c (do_clear_parser_state): New function.
9480 (make_cleanup_clear_parser_state): Likewise.
9481 * utils.h (make_cleanup_clear_parser_state): New function
9483 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9484 Update calls to write_exp* in order to pass the parser state.
9485 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9486 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9487 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9488 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9489 * stap-probe.c (stap_parse_register_operand): Likewise.
9490 (stap_parse_single_operand): Likewise.
9491 (stap_parse_argument_1): Likewise.
9492 (stap_parse_argument): Use parser state.
9493 * stap-probe.h: Include "parser-defs.h".
9494 (struct stap_parse_info) <pstate>: New field.
9495 * c-exp.y (parse_type): Rewrite to use parser state.
9496 (yyparse): Redefine to c_parse_internal.
9497 (pstate): New global variable.
9498 (parse_number): Add "struct parser_state" argument.
9499 (write_destructor_name): Likewise.
9500 (type_exp): Update calls to write_exp* and similars in order to
9502 (exp1, exp, variable, qualified_name, space_identifier,
9503 typename, typebase): Likewise.
9504 (write_destructor_name, parse_number, lex_one_token,
9505 classify_name, classify_inner_name, c_parse): Add "struct
9506 parser_state" argument. Update function to use parser state.
9507 * c-lang.h: Forward declare "struct parser_state".
9508 (c_parse): Add "struct parser_state" argument.
9509 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9510 (yyparse): Redefine macro to ada_parse_internal.
9511 (pstate): New variable.
9512 (write_int, write_object_renaming, write_var_or_type,
9513 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9514 type_int, type_long, type_long_long, type_float, type_double,
9515 type_long_double, type_char, type_boolean, type_system_address):
9516 Add "struct parser_state" argument.
9517 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9518 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9519 var_or_type, aggregate, aggregate_component_list,
9520 positional_list, others, component_group,
9521 component_associations): Update calls to write_exp* and similar
9522 functions in order to use parser state.
9523 (ada_parse, write_var_from_sym, write_int,
9524 write_exp_op_with_string, write_object_renaming,
9525 find_primitive_type, write_selectors, write_ambiguous_var,
9526 write_var_or_type, write_name_assoc, type_int, type_long,
9527 type_long_long, type_float, type_double, type_long_double,
9528 type_char, type_boolean, type_system_address): Add "struct
9529 parser_state" argument. Adjust function to use parser state.
9530 * ada-lang.c (parse): Likewise.
9531 * ada-lang.h: Forward declare "struct parser_state".
9532 (ada_parse): Add "struct parser_state" argument.
9533 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9534 calls to both functions.
9535 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9537 (yyparse): Redefine macro to f_parse_internal.
9538 (pstate): New variable.
9539 (parse_number): Add "struct parser_state" argument.
9540 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9541 and similars in order to use parser state.
9542 (parse_number): Adjust code to use parser state.
9544 (f_parse): New function.
9545 * f-lang.h: Forward declare "struct parser_state".
9546 (f_parse): Add "struct parser_state" argument.
9547 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9549 (yyparse): Redefine macro for java_parse_internal.
9550 (pstate): New variable.
9551 (push_expression_name, push_expression_name, insert_exp): Add
9552 "struct parser_state" argument.
9553 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9554 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9555 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9556 PostIncrementExpression, PostDecrementExpression,
9557 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9558 UnaryExpressionNotPlusMinus, CastExpression,
9559 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9560 RelationalExpression, EqualityExpression, AndExpression,
9561 ExclusiveOrExpression, InclusiveOrExpression,
9562 ConditionalAndExpression, ConditionalOrExpression,
9563 ConditionalExpression, Assignment, LeftHandSide): Update
9564 calls to write_exp* and similars in order to use parser state.
9565 (parse_number): Ajust code to use parser state.
9567 (java_parse): New function.
9568 (push_variable): Add "struct parser_state" argument. Adjust
9569 code to user parser state.
9570 (push_fieldnames, push_qualified_expression_name,
9571 push_expression_name, insert_exp): Likewise.
9572 * jv-lang.h: Forward declare "struct parser_state".
9573 (java_parse): Add "struct parser_state" argument.
9574 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9576 (yyparse): Redefine macro to m2_parse_internal.
9577 (pstate): New variable.
9578 (type_exp, exp, fblock, variable, type): Update calls to
9579 write_exp* and similars to use parser state.
9581 (m2_parse): New function.
9582 * m2-lang.h: Forward declare "struct parser_state".
9583 (m2_parse): Add "struct parser_state" argument.
9584 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9585 * objc-lang.h: Forward declare "struct parser_state".
9586 (end_msglist): Add "struct parser_state" argument.
9587 * p-exp.y (parse_type): Rewrite macro to use parser state.
9588 (yyparse): Redefine macro to pascal_parse_internal.
9589 (pstate): New variable.
9590 (parse_number): Add "struct parser_state" argument.
9591 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9592 write_exp* and similars in order to use parser state.
9593 (parse_number, yylex): Adjust code to use parser state.
9594 (pascal_parse): New function.
9595 * p-lang.h: Forward declare "struct parser_state".
9596 (pascal_parse): Add "struct parser_state" argument.
9597 * go-exp.y (parse_type): Rewrite macro to use parser state.
9598 (yyparse): Redefine macro to go_parse_internal.
9599 (pstate): New variable.
9600 (parse_number): Add "struct parser_state" argument.
9601 (type_exp, exp1, exp, variable, type): Update calls to
9602 write_exp* and similars in order to use parser state.
9603 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9604 to use parser state.
9605 (go_parse): Likewise.
9606 * go-lang.h: Forward declare "struct parser_state".
9607 (go_parse): Add "struct parser_state" argument.
9609 2014-03-27 Doug Evans <dje@google.com>
9611 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9613 2014-03-27 Doug Evans <dje@google.com>
9615 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9616 Remove argument abbrev_section. All callers updated.
9618 2014-03-27 Doug Evans <dje@google.com>
9620 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9621 addr_base, ranges_base.
9623 2014-03-26 Keith Seitz <keiths@redhat.com>
9625 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9626 types, not VAR_DOMAIN.
9628 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9630 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9632 * features/nios2-linux.c: Regenerated.
9633 * features/nios2.c: Regenerated.
9635 2014-03-25 Pedro Alves <palves@redhat.com>
9637 * cli/cli-script.c (script_from_file): Force the interpreter to
9640 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9642 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9643 small stack allocation.
9645 2014-03-24 Tristan Gingold <gingold@adacore.com>
9647 * darwin-nat.c (exc_server): Remove unused prototype.
9648 (darwin_dump_message): Correctly display data on x86_64.
9649 (darwin_encode_reply): Fix style.
9650 Add comments and fix indentation.
9652 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9654 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9656 2014-03-22 Doug Evans <xdje42@gmail.com>
9658 * infcmd.c: Whitespace fixes.
9659 (interrupt_command): Merge two function comments into one.
9661 2014-03-22 Doug Evans <xdje42@gmail.com>
9663 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9666 2014-03-22 Yao Qi <yao@codesourcery.com>
9668 * remote.c (target_read_live_memory): Remove.
9669 (memory_xfer_live_readonly_partial): Rename it to
9670 remote_xfer_live_readonly_partial. Remove argument 'object'.
9671 All callers updated. Call remote_read_bytes_1
9672 instead of target_read_live_memory.
9673 * tracepoint.c (set_traceframe_number): Remove.
9674 (make_cleanup_restore_traceframe_number): Likewise .
9675 * tracepoint.h (set_traceframe_number): Remove declaration.
9676 (make_cleanup_restore_traceframe_number): Likewise.
9678 2014-03-22 Yao Qi <yao@codesourcery.com>
9680 * remote.c (remote_read_bytes): Move code on reading from the
9682 (remote_read_bytes_1): ... here. New function.
9684 2014-03-22 Yao Qi <yao@codesourcery.com>
9686 * ctf.c (ctf_xfer_partial): Check the return value of
9687 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9688 return TARGET_XFER_UNAVAILABLE.
9689 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9690 * target.c (target_read_live_memory): Move it to remote.c.
9691 (memory_xfer_live_readonly_partial): Likewise.
9692 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9693 * remote.c (target_read_live_memory): Moved from target.c.
9694 (memory_xfer_live_readonly_partial): Likewise.
9695 (remote_read_bytes): Factored out from
9696 memory_xfer_partial_1.
9698 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9700 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9703 2014-03-21 Pedro Alves <palves@redhat.com>
9705 * infrun.c (normal_stop): Extend comment.
9707 2014-03-21 Hui Zhu <hui@codesourcery.com>
9708 Pedro Alves <palves@redhat.com>
9710 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9712 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9713 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9714 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9716 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9718 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9719 `z' formatted output modifier.
9721 2014-03-20 Tom Tromey <tromey@redhat.com>
9722 Sergio Durigan Junior <sergiodj@redhat.com>
9724 * probe.c (parse_probes): Turn assert into an ordinary error.
9725 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9726 exceptions when parsing probes. Rearrange the code for clarity.
9728 2014-03-20 Tom Tromey <tromey@redhat.com>
9731 * top.c (execute_command): Only dispatch events if the command
9734 2014-03-20 Tom Tromey <tromey@redhat.com>
9737 * infcall.c: Include event-top.h.
9738 (run_inferior_call): Call async_disable_stdin if needed.
9740 2014-03-20 Pedro Alves <palves@redhat.com>
9742 * infrun.c (prepare_to_proceed): Delete.
9743 (thread_still_needs_step_over): New function.
9744 (find_thread_needs_step_over): New function.
9745 (proceed): If the current thread needs a step-over, set its
9746 steping_over_breakpoint flag. Adjust to use
9747 find_thread_needs_step_over instead of prepare_to_proceed.
9748 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9749 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9751 (switch_back_to_stepped_thread): Step over breakpoints of all
9752 threads not the stepping thread, before switching back to the
9755 2014-03-20 Pedro Alves <palves@redhat.com>
9757 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9759 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9760 * infrun.c (saved_singlestep_ptid)
9761 (stepping_past_singlestep_breakpoint): Delete.
9762 (resume): Remove stepping_past_singlestep_breakpoint handling.
9763 (proceed): Store the prev_pc of the stepping thread too.
9764 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9766 (enum infwait_states): Delete infwait_thread_hop_state.
9767 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9769 (handle_inferior_event): Adjust.
9770 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9771 handling and the thread-hop code. Before removing single-step
9772 breakpoints, check whether the thread hit a single-step breakpoint
9773 of another thread. If it did, the trap is not a random signal.
9774 (switch_back_to_stepped_thread): If the event thread hit a
9775 single-step breakpoint, unblock it before switching to the
9776 stepping thread. Handle the case of the stepped thread having
9778 (keep_going): Handle the case of the current thread moving past a
9779 single-step breakpoint.
9781 2014-03-20 Pedro Alves <palves@redhat.com>
9784 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9785 are being stepped over.
9786 (breakpoint_address_match): Make extern.
9787 * breakpoint.h (breakpoint_address_match): New declaration.
9788 * inferior.h (stepping_past_instruction_at): New declaration.
9789 * infrun.c (struct step_over_info): New type.
9790 (step_over_info): New global.
9791 (set_step_over_info, clear_step_over_info)
9792 (stepping_past_instruction_at): New functions.
9793 (handle_inferior_event): Clear the step-over info when
9794 trap_expected is cleared.
9795 (resume): Remove now stale comment.
9796 (clear_proceed_status): Clear step-over info.
9797 (proceed): Adjust step-over handling to set or clear the step-over
9798 info instead of removing all breakpoints.
9799 (handle_signal_stop): When setting up a thread-hop, don't remove
9801 (stop_stepping): Clear step-over info.
9802 (keep_going): Adjust step-over handling to set or clear step-over
9803 info and then always inserting breakpoints, instead of removing
9804 all breakpoints when stepping over one.
9806 2014-03-20 Pedro Alves <palves@redhat.com>
9808 * infrun.c (previous_inferior_ptid): Adjust comment.
9809 (deferred_step_ptid): Delete.
9810 (infrun_thread_ptid_changed, prepare_to_proceed)
9811 (init_wait_for_inferior): Adjust.
9812 (handle_signal_stop): Delete deferred_step_ptid handling.
9814 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9817 * defs.h (sync_quit_force_run): New declaration.
9818 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9819 * event-top.c (async_sigterm_handler): New declaration.
9820 (async_sigterm_token): New variable.
9821 (async_init_signals): Create also async_sigterm_token.
9822 (async_sigterm_handler): New function.
9823 (sync_quit_force_run): New variable.
9824 (handle_sigterm): Replace quit_force call by other calls.
9825 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9827 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9829 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9830 offset into SPE pseudo registers.
9832 2014-03-18 Pedro Alves <palves@redhat.com>
9835 * inferior.h (print_stop_event): Declare.
9836 * infrun.c (print_stop_event): New, factored out from ...
9837 (normal_stop): ... this.
9838 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9839 of bpstat_print/print_stack_frame.
9841 2014-03-17 Tom Tromey <tromey@redhat.com>
9843 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9845 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9847 * ada-lang.c (decode_constrained_packed_array): Perform a
9848 minimal coercion for reference with coerce_ref instead of
9851 2014-03-17 Tristan Gingold <gingold@adacore.com>
9853 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9854 (darwin_solib_create_inferior_hook): Emit a warning if version
9857 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9859 * python/py-value.c (get_field_flag): Cast flag_name argument to
9860 PyObject_GetAttrString to support Python 2.4.
9862 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9864 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9865 (Global Maintainers): Remove Jan Kratochvil.
9867 2014-03-14 Pedro Alves <palves@redhat.com>
9869 * inferior.h (terminal_ours_for_output): Rename to ...
9870 (child_terminal_ours_for_output): ... this.
9871 (terminal_save_ours): Rename to ...
9872 (child_terminal_save_ours): ... this.
9873 (terminal_ours): Rename to ...
9874 (child_terminal_ours): ... this.
9875 (terminal_inferior): Rename to ...
9876 (child_terminal_inferior): ... this.
9877 (terminal_init_inferior): Rename to ...
9878 (child_terminal_init_inferior): ... this.
9879 (terminal_init_inferior_with_pgrp): Rename to ...
9880 (child_terminal_init_inferior_with_pgrp): ... this.
9881 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9882 (child_terminal_init_with_pgrp): ... this.
9883 (terminal_save_ours): Rename to ...
9884 (child_terminal_save_ours): ... this.
9885 (terminal_init_inferior): Rename to ...
9886 (child_terminal_init): ... this. Adjust.
9887 (terminal_inferior): Rename to ...
9888 (child_terminal_inferior): ... this.
9889 (terminal_ours_for_output): Rename to ...
9890 (child_terminal_ours_for_output): ... this. Adjust.
9891 (terminal_ours): Rename to ...
9892 (child_terminal_ours): ... this.
9893 (terminal_ours_1): Rename to ...
9894 (child_terminal_ours_1): ... this. Adjust.
9895 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9896 * windows-nat.c (do_initial_windows_stuff): Adjust.
9897 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9898 (gnu_terminal_init): ... this. Adjust.
9899 (gnu_target): Adjust.
9900 * inf-child.c (inf_child_target): Adjust.
9902 2014-03-13 Doug Evans <xdje42@gmail.com>
9905 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9908 2014-03-13 Doug Evans <xdje42@gmail.com>
9910 * value.c (record_latest_value): Call release_value_or_incref
9911 instead of release_value.
9913 2014-03-13 Pedro Alves <palves@redhat.com>
9915 * procfs.c (procfs_target): Don't override to_shortname,
9916 to_longname or to_doc.
9918 2014-03-13 Pedro Alves <palves@redhat.com>
9920 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9921 Unix in user visible strings.
9923 2014-03-12 Stan Shebs <stan@codesourcery.com>
9925 * gdbtypes.h: Annotate comments for Doxygen, add a page
9926 block comment with some general info.
9928 2014-03-12 Pedro Alves <palves@redhat.com>
9930 * infcmd.c (prepare_execution_command): New function, factored out
9931 from several execution commands.
9932 (run_command_1, continue_command, step_1, jump_command)
9933 (signal_command, until_command, advance_command, finish_command)
9934 (attach_command): Use prepare_execution_command.
9936 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9938 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9941 (struct arm_linux_thread_points): Removed.
9942 (struct arm_linux_process_info): New.
9943 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9944 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9945 (arm_linux_find_breakpoints_by_tid): Removed.
9946 (struct arch_lwp_info): New.
9947 (arm_linux_find_process_pid): New functions.
9948 (arm_linux_add_process): New functions.
9949 (arm_linux_process_info_get): New functions.
9950 (arm_linux_forget_process): New function.
9951 (arm_linux_get_debug_reg_state): New function.
9952 (struct update_registers_data): New.
9953 (update_registers_callback): New function.
9954 (arm_linux_insert_hw_breakpoint1): Updated.
9955 (arm_linux_remove_hw_breakpoint1): Updated.
9956 (arm_linux_insert_hw_breakpoint): Updated.
9957 (arm_linux_remove_hw_breakpoint): Updated.
9958 (arm_linux_insert_watchpoint): Updated.
9959 (arm_linux_remove_watchpoint): Updated.
9960 (arm_linux_new_thread): Updated.
9961 (arm_linux_prepare_to_resume): New function.
9962 (arm_linux_new_fork): New function.
9963 (_initialize_arm_linux_nat): Updated.
9965 2014-03-12 Pedro Alves <palves@redhat.com>
9967 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9969 2014-03-12 Tom Tromey <tromey@redhat.com>
9971 * inf-child.c (return_zero): New function.
9972 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9973 * aix-thread.c (aix_thread_inferior_created): New function.
9974 (aix_thread_attach): Remove.
9975 (init_aix_thread_ops): Don't set to_attach.
9976 (_initialize_aix_thread): Register inferior_created observer.
9977 * corelow.c (init_core_ops): Don't set to_attach or
9979 * exec.c (init_exec_ops): Don't set to_attach or
9981 * infcmd.c (run_command_1): Use find_run_target. Make direct
9983 (attach_command): Use find_attach_target. Make direct target
9985 * record-btrace.c (init_record_btrace_ops): Don't set
9987 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9989 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9990 set to_create_inferior.
9991 * target.c (complete_target_initialization): Add assertion.
9992 (target_create_inferior): Remove.
9993 (find_default_attach, find_default_create_inferior): Remove.
9994 (find_attach_target, find_run_target): New functions.
9995 (find_default_is_async_p, find_default_can_async_p)
9996 (target_supports_non_stop, target_attach): Remove.
9997 (init_dummy_target): Don't set to_create_inferior or
9998 to_supports_non_stop.
9999 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10000 TARGET_DEFAULT_FUNC.
10001 <to_create_inferior>: Add comment.
10002 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10003 TARGET_DEFAULT_RETURN.
10004 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10005 (find_attach_target, find_run_target): Declare.
10006 (target_create_inferior): Remove.
10007 (target_has_execution_1): Update comment.
10008 (target_supports_non_stop): Remove.
10009 * target-delegates.c: Rebuild.
10011 2014-03-12 Pedro Alves <palves@redhat.com>
10013 * inf-child.h: Update comment to not mention Unix.
10015 2014-03-12 Pedro Alves <palves@redhat.com>
10017 * inf-child.c: Update top comment to not mention Unix. Add
10018 generic comment describing how this target is meant to be used.
10019 (inf_child_post_attach, inf_child_post_startup_inferior)
10020 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10023 2014-03-12 Pedro Alves <palves@redhat.com>
10025 * nto-procfs.c: Include inf-child.h.
10026 (procfs_ops): Delete global.
10027 (procfs_can_run): Delete method.
10028 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10029 target pointer instead of referencing procfs_ops.
10030 (procfs_prepare_to_store): Delete.
10031 (init_procfs_ops): Delete function.
10032 (procfs_target): New function, based on init_procfs_ops, but
10033 inherit inf_child_target.
10034 (_initialize_procfs): Use procfs_target.
10036 2014-03-12 Pedro Alves <palves@redhat.com>
10038 * windows-nat.c: Include inf-child.h.
10039 (windows_ops): Delete global.
10040 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10042 (init_windows_ops): Delete function.
10043 (windows_target): New function, based on init_windows_ops, but
10044 inherit inf_child_target.
10045 (_initialize_windows_nat): Use windows_target. Install x86
10046 specific target methods here.
10048 2014-03-10 Doug Evans <xdje42@gmail.com>
10050 * guile/guile.c (call_initialize_gdb_module): New function.
10051 (initialize_guile): Replace call to scm_init_guile with call to
10054 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10056 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10057 in call to TYPE_CODE macro.
10059 2014-03-10 Jerome Guitton <guitton@adacore.com>
10061 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10062 Resolve tagged types to full view.
10064 2014-03-10 Hui Zhu <hui@codesourcery.com>
10066 * target.h (target_insert_breakpoint): Remove "hardware" from its
10069 2014-03-07 Doug Evans <dje@google.com>
10071 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10073 2014-03-07 Doug Evans <dje@google.com>
10075 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10076 Remove unused local comp_dir_attr. Assert exactly one of
10077 stub_comp_unit_die, stub_comp_dir is non-NULL.
10079 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10081 * target.h (complete_target_initialization, add_target):
10084 2014-03-07 Pedro Alves <palves@redhat.com>
10086 * go32-nat.c: Include inf-child.h.
10087 (go32_ops): Delete global.
10088 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10090 (go32_create_inferior): Push the passed in target pointer instead
10091 of referencing go32_ops.
10092 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10093 (go32_target): New function, based on init_go32_ops, but inherit
10095 (_initialize_go32_nat): Use go32_target. Move parts of
10096 init_go32_ops here.
10098 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10100 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10101 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10102 SYMBOL_VALUE_ADDRESS.
10103 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10105 2014-03-06 Yao Qi <yao@codesourcery.com>
10107 * breakpoint.c (get_tracepoint_by_number): Remove argument
10108 optional_p. All callers updated. Adjust comments. Update
10110 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10112 2014-03-06 Yao Qi <yao@codesourcery.com>
10114 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10115 early if get_number returns zero. Use 'p' instead of 'args'.
10117 2014-03-06 Yao Qi <yao@codesourcery.com>
10119 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10122 2014-03-06 Yao Qi <yao@codesourcery.com>
10124 PR breakpoints/16508
10125 * tracepoint.c (check_trace_running): New function.
10126 (trace_find_command): Move code to check_trace_running and
10127 call check_trace_running.
10128 (trace_find_pc_command): Likewise.
10129 (trace_find_tracepoint_command): Likewise.
10130 (trace_find_line_command): Likewise.
10131 (trace_find_range_command): Likewise.
10132 * tracepoint.h (check_trace_running): Likewise.
10133 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10135 2014-03-06 Yao Qi <yao@codesourcery.com>
10137 * target.h (struct target_ops) <to_traceframe_info>: Use
10138 TARGET_DEFAULT_NORETURN (tcomplain ()).
10139 * target-delegates.c: Regenerated.
10141 2014-03-05 Pedro Alves <palves@redhat.com>
10144 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10145 void. Update comment.
10146 (dcache_xfer_memory): Delete.
10147 (dcache_read_memory_partial): New, based on the read bits of
10148 dcache_xfer_memory.
10149 (dcache_update): Add status parameter. Use ULONGEST for len, and
10150 adjust. Discard cache lines if the reason for the update was
10152 * dcache.h (dcache_xfer_memory): Delete declaration.
10153 (dcache_read_memory_partial): New declaration.
10154 (dcache_update): Update prototype.
10155 * target.c (raw_memory_xfer_partial): Update the dcache here.
10156 (memory_xfer_partial_1): Don't handle dcache writes here.
10158 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10160 * remote-sim.c (gdbsim_load): Add const to prog.
10162 2014-03-03 Tom Tromey <tromey@redhat.com>
10164 * elfread.c (probe_key): Change to bfd_data.
10165 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10166 now per-BFD, not per-objfile.
10167 * stap-probe.c (stap_probe_destroy): Update comment.
10168 (handle_stap_probe): Allocate on the per-BFD obstack.
10170 2014-03-03 Tom Tromey <tromey@redhat.com>
10172 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10173 * breakpoint.c (create_longjmp_master_breakpoint): Use
10175 (add_location_to_breakpoint, bkpt_probe_insert_location)
10176 (bkpt_probe_remove_location): Update.
10177 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10178 * elfread.c (elf_symfile_relocate_probe): Remove.
10179 (elf_probe_fns): Update.
10180 (insert_exception_resume_breakpoint): Change type of "probe"
10181 parameter to bound_probe.
10182 (check_exception_resume): Update.
10183 * objfiles.c (objfile_relocate1): Don't relocate probes.
10184 * probe.c (bound_probe_s): New typedef.
10185 (parse_probes): Use get_probe_address. Set sal's objfile.
10186 (find_probe_by_pc): Return a bound_probe.
10187 (collect_probes): Return a VEC(bound_probe_s).
10188 (compare_probes): Update.
10189 (gen_ui_out_table_header_info): Change type of "probes"
10191 (info_probes_for_ops): Update.
10192 (get_probe_address): New function.
10193 (probe_safe_evaluate_at_pc): Update.
10194 * probe.h (struct probe_ops) <get_probe_address>: New field.
10195 <set_semaphore, clear_semaphore>: Add objfile parameter.
10196 (struct probe) <objfile>: Remove field.
10198 <address>: Update comment.
10199 (struct bound_probe): New.
10200 (find_probe_by_pc): Return a bound_probe.
10201 (get_probe_address): Declare.
10202 * solib-svr4.c (struct probe_and_action) <address>: New field.
10203 (hash_probe_and_action, equal_probe_and_action): Update.
10204 (register_solib_event_probe): Add address parameter.
10205 (solib_event_probe_at): Update.
10206 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10208 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10209 (stap_get_probe_address): New function.
10210 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10211 (compile_probe_arg): Update.
10212 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10214 (handle_stap_probe): Don't relocate the probe.
10215 (stap_relocate): Remove.
10216 (stap_gen_info_probes_table_values): Update.
10217 (stap_probe_ops): Remove stap_relocate.
10218 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10219 (debug_sym_probe_fns): Update.
10220 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10221 * symtab.c (init_sal): Use memset.
10222 * symtab.h (struct symtab_and_line) <objfile>: New field.
10223 * tracepoint.c (start_tracing, stop_tracing): Update.
10225 2014-03-03 Tom Tromey <tromey@redhat.com>
10227 * probe.h (parse_probes, find_probe_by_pc)
10228 (find_probes_in_objfile): Fix comments.
10230 2014-03-02 Doug Evans <xdje42@gmail.com>
10232 * infrun.c (handle_signal_stop): Replace test for
10233 TARGET_WAITKIND_STOPPED with an assert.
10235 2014-03-02 Doug Evans <xdje42@gmail.com>
10237 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10239 2014-03-02 Doug Evans <xdje42@gmail.com>
10241 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10243 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10245 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10247 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10249 * i386obsd-nat.c: Include "obsd-nat.h".
10250 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10252 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10254 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10256 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10258 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10260 * mips64obsd-nat.c: Include "obsd-nath".
10261 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10263 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10265 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10267 * amd64obsd-nat.c: Include "obsd-nat,h.
10268 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10270 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10272 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10274 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10275 (find_overload_match): Update call to find_oload_champ.
10276 (find_oload_champ_namespace_loop): Likewise
10278 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10280 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10282 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10283 * config/sparc/obsd64.mh: New file.
10284 * sparc64obsd-nat.c: New file.
10286 * obsd-nat.h: New file.
10287 * obsd-nat.c: New file.
10288 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10289 (ALLDEPFILES): Add obsd-nat.c.
10291 2014-02-28 Tom Tromey <tromey@redhat.com>
10293 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10294 * cli-out.h (cli_ui_out_impl): Now const.
10295 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10296 * ui-out.c (struct ui_out) <impl>: Now const.
10297 (default_ui_out_impl): Now const.
10298 (ui_out_new): Make 'impl' parameter const.
10299 * ui-out.h (ui_out_new): Update.
10301 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10303 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10305 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10307 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10309 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10311 Additional PR 8882 fix.
10312 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10314 2014-02-27 Pedro Alves <palves@redhat.com>
10316 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10319 2014-02-27 Pedro Alves <palves@redhat.com>
10322 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10323 * nat/linux-waitpid.c: Include string.h.
10324 (status_to_str): Moved here and made extern.
10325 * nat/linux-waitpid.h (status_to_str): New declaration.
10327 2014-02-27 Hui Zhu <hui@codesourcery.com>
10330 * infrun.c (ptid_match): Move ...
10331 * common/ptid.c (ptid_match): ... here.
10332 * inferior.h (ptid_match): Move ...
10333 * common/ptid.h (ptid_match): ... here.
10335 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10337 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10338 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10341 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10343 * obsd-tdep.c (obsd_auxv_parse): New function.
10344 (obsd_init_abi): Set auxv_parse.
10346 * gdbarch.sh (auxv_parse): New.
10347 * gdbarch.h: Regenerated.
10348 * gdbarch.c: Regenerated.
10349 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10351 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10353 * guile/scm-value.c (gdbscm_history_append_x): New function.
10354 (value_functions): Add it.
10356 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10358 * dwarf2read.c (attr_value_as_address): New function.
10359 (dwarf2_find_base_address, read_call_site_scope): Use
10360 attr_value_as_address in place of DW_ADDR.
10361 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10362 the low and high addresses. Slight rework of the handling
10363 of the high pc being a constant form, and limit it to
10364 DWARF verson 4 or higher.
10365 (dwarf2_record_block_ranges): Likewise.
10366 (read_partial_die): Likewise.
10367 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10369 2014-02-26 Tom Tromey <tromey@redhat.com>
10371 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10373 2014-02-26 Tom Tromey <tromey@redhat.com>
10375 * elfread.c (elf_read_minimal_symbols): Return early if
10376 minimal symbols have already been read. Add "ei" parameter.
10377 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10378 * minsyms.c (prim_record_minimal_symbol_full): Update.
10379 * objfiles.h (struct objstats) <n_minsyms>: Move...
10380 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10381 * symmisc.c (print_objfile_statistics): Update.
10383 2014-02-26 Tom Tromey <tromey@redhat.com>
10385 * elfread.c (elf_read_minimal_symbols): New function, from
10387 (elf_symfile_read): Call it.
10389 2014-02-26 Tom Tromey <tromey@redhat.com>
10391 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10392 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10393 (lookup_minimal_symbol_solib_trampoline)
10394 (lookup_minimal_symbol_by_pc_section_1)
10395 (lookup_minimal_symbol_and_objfile): Update.
10396 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10397 Don't allocate a minimal symbol if minsyms have already been read.
10398 (build_minimal_symbol_hash_tables): Update.
10399 (install_minimal_symbols): Do nothing if minsyms already read.
10400 Use the per-BFD obstack.
10401 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10402 * objfiles.c (allocate_objfile): Call
10403 terminate_minimal_symbol_table later.
10404 (have_minimal_symbols): Update.
10405 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10406 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10407 Move from struct objfile.
10408 <minsyms_read>: New field.
10409 (struct objfile) <msymbols, minimal_symbol_count,
10410 msymbol_hash, msymbol_demangled_hash>: Move.
10411 (ALL_OBJFILE_MSYMBOLS): Update.
10412 * symfile.c (read_symbols): Set minsyms_read.
10413 (reread_symbols): Update.
10414 * symmisc.c (dump_objfile, dump_msymbols): Update.
10416 2014-02-26 Tom Tromey <tromey@redhat.com>
10418 * minsyms.c (msymbols_sort): Remove.
10419 * minsyms.h (msymbols_sort): Remove.
10420 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10421 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10422 * elfread.c (elf_symtab_read): Don't add section offsets.
10423 * xcoffread.c (record_minimal_symbol): Don't add section offset
10424 to minimal symbol address.
10425 * somread.c (text_offset, data_offset): Remove.
10426 (som_symtab_read): Don't add section offsets to minimal symbol
10428 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10429 Don't add section offsets to minimal symbols.
10430 * coffread.c (coff_symtab_read): Don't add section offsets
10431 to minimal symbol addresses.
10432 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10433 to minimal symbol addresses.
10434 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10435 section offset to minimal symbol addresses.
10436 * mdebugread.c (parse_partial_symbols): Don't add section
10437 offset to minimal symbol addresses.
10438 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10439 offset to minimal symbol addresses.
10441 2014-02-26 Tom Tromey <tromey@redhat.com>
10443 * ada-lang.c (ada_main_name): Update.
10444 (ada_add_standard_exceptions): Update.
10445 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10446 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10447 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10448 * auxv.c (ld_so_xfer_auxv): Update.
10449 * avr-tdep.c (avr_scan_prologue): Update.
10450 * ax-gdb.c (gen_var_ref): Update.
10451 * blockframe.c (get_pc_function_start)
10452 (find_pc_partial_function_gnu_ifunc): Update.
10453 * breakpoint.c (create_overlay_event_breakpoint)
10454 (create_longjmp_master_breakpoint)
10455 (create_std_terminate_master_breakpoint)
10456 (create_exception_master_breakpoint): Update.
10457 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10458 * c-valprint.c (c_val_print): Update.
10459 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10460 * common/agent.c (agent_look_up_symbols): Update.
10461 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10462 * dwarf2loc.c (call_site_to_target_addr): Update.
10463 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10464 * elfread.c (elf_gnu_ifunc_record_cache)
10465 (elf_gnu_ifunc_resolve_by_got): Update.
10466 * findvar.c (default_read_var_value): Update.
10467 * frame.c (inside_main_func): Update.
10468 * frv-tdep.c (frv_frame_this_id): Update.
10469 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10470 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10472 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10473 (hppa_hpux_find_dummy_bpaddr): Update.
10474 * hppa-tdep.c (hppa_symbol_address): Update.
10475 * infcmd.c (until_next_command): Update.
10476 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10478 * linespec.c (minsym_found, add_minsym): Update.
10479 * linux-nat.c (get_signo): Update.
10480 * linux-thread-db.c (inferior_has_bug): Update.
10481 * m32c-tdep.c (m32c_return_value)
10482 (m32c_m16c_address_to_pointer): Update.
10483 * m32r-tdep.c (m32r_frame_this_id): Update.
10484 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10485 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10486 * maint.c (maintenance_translate_address): Update.
10487 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10488 (frob_address): New function.
10489 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10490 frob_address. Rename parameter to "pc_in".
10491 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10493 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10495 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10496 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10497 * objc-lang.c (find_objc_msgsend): Update.
10498 * objfiles.c (objfile_relocate1): Update.
10499 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10500 * p-valprint.c (pascal_val_print): Update.
10501 * parse.c (write_exp_msymbol): Update.
10502 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10503 (ppc_elfv2_skip_entrypoint): Update.
10504 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10505 * printcmd.c (build_address_symbolic, msym_info)
10506 (address_info): Update.
10507 * proc-service.c (ps_pglobal_lookup): Update.
10508 * psymtab.c (find_pc_sect_psymtab_closer)
10509 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10510 Change msymbol parameter to bound_minimal_symbol.
10511 * ravenscar-thread.c (get_running_thread_id): Update.
10512 * remote.c (remote_check_symbols): Update.
10513 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10515 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10516 * solib-dsbt.c (lm_base): Update.
10517 * solib-frv.c (lm_base, main_got): Update.
10518 * solib-irix.c (locate_base): Update.
10519 * solib-som.c (som_solib_create_inferior_hook)
10520 (link_map_start): Update.
10521 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10522 * solib-svr4.c (elf_locate_base, enable_break): Update.
10523 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10524 (flush_ea_cache): Update.
10525 * stabsread.c (define_symbol, scan_file_globals): Update.
10526 * stack.c (find_frame_funname): Update.
10527 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10528 (debug_qf_find_pc_sect_symtab): Update.
10529 * symfile.c (simple_read_overlay_table)
10530 (simple_overlay_update): Update.
10531 * symfile.h (struct quick_symbol_functions)
10532 <find_pc_sect_symtab>: Change type of msymbol to
10533 bound_minimal_symbol.
10534 * symmisc.c (dump_msymbols): Update.
10535 * symtab.c (find_pc_sect_symtab_via_partial)
10536 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10537 (search_symbols, print_msymbol_info): Update.
10538 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10539 (MSYMBOL_VALUE_ADDRESS): Redefine.
10540 (BMSYMBOL_VALUE_ADDRESS): New macro.
10541 * tracepoint.c (scope_info): Update.
10542 * tui/tui-disasm.c (tui_find_disassembly_address)
10543 (tui_get_begin_asm_address): Update.
10544 * valops.c (find_function_in_inferior): Update.
10545 * value.c (value_static_field, value_fn_field): Update.
10547 2014-02-26 Tom Tromey <tromey@redhat.com>
10549 * ada-lang.c (ada_update_initial_language): Update.
10550 (ada_main_name, ada_has_this_exception_support): Update.
10551 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10552 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10553 * arm-tdep.c (arm_skip_stub): Update.
10554 * auxv.c (ld_so_xfer_auxv): Update.
10555 * avr-tdep.c (avr_scan_prologue): Update.
10556 * ax-gdb.c (gen_var_ref): Update.
10557 * breakpoint.c (struct breakpoint_objfile_data)
10558 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10559 type to bound_minimal_symbol.
10560 (create_overlay_event_breakpoint)
10561 (create_longjmp_master_breakpoint)
10562 (create_std_terminate_master_breakpoint)
10563 (create_exception_master_breakpoint): Update.
10564 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10565 * c-exp.y (classify_name): Update.
10566 * coffread.c (coff_symfile_read): Update.
10567 * common/agent.c (agent_look_up_symbols): Update.
10568 * d-lang.c (d_main_name): Update.
10569 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10570 * dec-thread.c (enable_dec_thread): Update.
10571 * dwarf2loc.c (call_site_to_target_addr): Update.
10572 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10573 * eval.c (evaluate_subexp_standard): Update.
10574 * findvar.c (struct minsym_lookup_data) <result>: Change type
10575 to bound_minimal_symbol.
10577 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10578 * frame.c (inside_main_func): Update.
10579 * frv-tdep.c (frv_frame_this_id): Update.
10580 * gcore.c (call_target_sbrk): Update.
10581 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10582 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10584 * go-lang.c (go_main_name): Update.
10585 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10586 (hppa_hpux_find_import_stub_for_addr): Update.
10587 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10588 Update. Change return type.
10589 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10591 * jit.c (jit_breakpoint_re_set_internal): Update.
10592 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10594 * linux-nat.c (get_signo): Update.
10595 * linux-thread-db.c (inferior_has_bug): Update
10596 * m32c-tdep.c (m32c_return_value)
10597 (m32c_m16c_address_to_pointer): Update.
10598 * m32r-tdep.c (m32r_frame_this_id): Update.
10599 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10600 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10601 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10602 lookup_minimal_symbol. Change return type.
10603 (lookup_minimal_symbol): Remove.
10604 (lookup_bound_minimal_symbol): Update.
10605 (lookup_minimal_symbol_text): Change return type.
10606 (lookup_minimal_symbol_solib_trampoline): Change return type.
10607 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10608 (lookup_minimal_symbol_solib_trampoline): Change return type.
10609 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10610 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10611 (value_nsstring, find_imps): Update.
10612 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10613 * p-lang.c (pascal_main_name): Update.
10614 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10615 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10616 * proc-service.c (ps_pglobal_lookup): Update.
10617 * ravenscar-thread.c (get_running_thread_msymbol): Change
10619 (has_ravenscar_runtime, get_running_thread_id): Update.
10620 * remote.c (remote_check_symbols): Update.
10621 * sol-thread.c (ps_pglobal_lookup): Update.
10622 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10623 * solib-dsbt.c (lm_base): Update.
10624 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10626 * solib-irix.c (locate_base): Update.
10627 * solib-som.c (som_solib_create_inferior_hook)
10628 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10630 * solib-spu.c (spu_enable_break): Update.
10631 * solib-svr4.c (elf_locate_base, enable_break): Update.
10632 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10633 (flush_ea_cache): Update.
10634 * stabsread.c (define_symbol): Update.
10635 * symfile.c (simple_read_overlay_table): Update.
10636 * symtab.c (find_pc_sect_line): Update.
10637 * tracepoint.c (scope_info): Update.
10638 * tui-disasm.c (tui_get_begin_asm_address): Update.
10639 * value.c (value_static_field): Update.
10641 2014-02-26 Tom Tromey <tromey@redhat.com>
10643 * minsyms.c (prim_record_minimal_symbol_full): Use
10644 SET_MSYMBOL_VALUE_ADDRESS.
10645 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10646 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10647 SET_MSYMBOL_VALUE_ADDRESS.
10648 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10649 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10651 2014-02-26 Tom Tromey <tromey@redhat.com>
10653 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10654 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10655 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10656 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10657 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10658 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10659 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10660 * ada-lang.c (ada_main_name): Update.
10661 (ada_lookup_simple_minsym): Update.
10662 (ada_make_symbol_completion_list): Update.
10663 (ada_add_standard_exceptions): Update.
10664 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10665 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10666 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10667 * arm-tdep.c (skip_prologue_function): Update.
10668 (arm_skip_stack_protector, arm_skip_stub): Update.
10669 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10670 (arm_wince_skip_main_prologue): Update.
10671 * auxv.c (ld_so_xfer_auxv): Update.
10672 * avr-tdep.c (avr_scan_prologue): Update.
10673 * ax-gdb.c (gen_var_ref): Update.
10674 * block.c (call_site_for_pc): Update.
10675 * blockframe.c (get_pc_function_start): Update.
10676 (find_pc_partial_function_gnu_ifunc): Update.
10677 * breakpoint.c (create_overlay_event_breakpoint): Update.
10678 (create_longjmp_master_breakpoint): Update.
10679 (create_std_terminate_master_breakpoint): Update.
10680 (create_exception_master_breakpoint): Update.
10681 (resolve_sal_pc): Update.
10682 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10683 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10685 * c-valprint.c (c_val_print): Update.
10686 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10687 * coffread.c (coff_symfile_read): Update.
10688 * common/agent.c (agent_look_up_symbols): Update.
10689 * dbxread.c (find_stab_function_addr): Update.
10690 (end_psymtab): Update.
10691 * dwarf2loc.c (call_site_to_target_addr): Update.
10692 (func_verify_no_selftailcall): Update.
10693 (tailcall_dump): Update.
10694 (call_site_find_chain_1): Update.
10695 (dwarf_expr_reg_to_entry_parameter): Update.
10696 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10697 (elf_gnu_ifunc_resolve_by_got): Update.
10698 * f-valprint.c (info_common_command): Update.
10699 * findvar.c (read_var_value): Update.
10700 * frame.c (get_prev_frame_1): Update.
10701 (inside_main_func): Update.
10702 * frv-tdep.c (frv_skip_main_prologue): Update.
10703 (frv_frame_this_id): Update.
10704 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10705 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10706 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10707 (gnuv3_skip_trampoline): Update.
10708 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10709 (hppa64_hpux_in_solib_call_trampoline): Update.
10710 (hppa_hpux_skip_trampoline_code): Update.
10711 (hppa64_hpux_search_dummy_call_sequence): Update.
10712 (hppa_hpux_find_import_stub_for_addr): Update.
10713 (hppa_hpux_find_dummy_bpaddr): Update.
10714 * hppa-tdep.c (hppa_symbol_address)
10715 (hppa_lookup_stub_minimal_symbol): Update.
10716 * i386-tdep.c (i386_skip_main_prologue): Update.
10717 (i386_pe_skip_trampoline_code): Update.
10718 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10719 * infcall.c (get_function_name): Update.
10720 * infcmd.c (until_next_command): Update.
10721 * jit.c (jit_breakpoint_re_set_internal): Update.
10722 (jit_inferior_init): Update.
10723 * linespec.c (minsym_found): Update.
10724 (add_minsym): Update.
10725 * linux-fork.c (info_checkpoints_command): Update.
10726 * linux-nat.c (get_signo): Update.
10727 * linux-thread-db.c (inferior_has_bug): Update.
10728 * m32c-tdep.c (m32c_return_value): Update.
10729 (m32c_m16c_address_to_pointer): Update.
10730 (m32c_m16c_pointer_to_address): Update.
10731 * m32r-tdep.c (m32r_frame_this_id): Update.
10732 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10733 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10734 * maint.c (maintenance_translate_address): Update.
10735 * minsyms.c (add_minsym_to_hash_table): Update.
10736 (add_minsym_to_demangled_hash_table): Update.
10737 (msymbol_objfile): Update.
10738 (lookup_minimal_symbol): Update.
10739 (iterate_over_minimal_symbols): Update.
10740 (lookup_minimal_symbol_text): Update.
10741 (lookup_minimal_symbol_by_pc_name): Update.
10742 (lookup_minimal_symbol_solib_trampoline): Update.
10743 (lookup_minimal_symbol_by_pc_section_1): Update.
10744 (lookup_minimal_symbol_and_objfile): Update.
10745 (prim_record_minimal_symbol_full): Update.
10746 (compare_minimal_symbols): Update.
10747 (compact_minimal_symbols): Update.
10748 (build_minimal_symbol_hash_tables): Update.
10749 (install_minimal_symbols): Update.
10750 (terminate_minimal_symbol_table): Update.
10751 (find_solib_trampoline_target): Update.
10752 (minimal_symbol_upper_bound): Update.
10753 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10754 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10755 (mips_skip_pic_trampoline_code): Update.
10756 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10757 * objc-lang.c (selectors_info): Update.
10758 (classes_info): Update.
10759 (find_methods): Update.
10760 (find_imps): Update.
10761 (find_objc_msgsend): Update.
10762 * objfiles.c (objfile_relocate1): Update.
10763 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10764 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10765 * p-valprint.c (pascal_val_print): Update.
10766 * parse.c (write_exp_msymbol): Update.
10767 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10768 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10769 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10770 * printcmd.c (build_address_symbolic): Update.
10771 (sym_info): Update.
10772 (address_info): Update.
10773 * proc-service.c (ps_pglobal_lookup): Update.
10774 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10775 (find_pc_sect_psymtab): Update.
10776 * python/py-framefilter.c (py_print_frame): Update.
10777 * ravenscar-thread.c (get_running_thread_id): Update.
10778 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10780 * remote.c (remote_check_symbols): Update.
10781 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10782 (rs6000_skip_trampoline_code): Update.
10783 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10784 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10785 * solib-dsbt.c (lm_base): Update.
10786 * solib-frv.c (lm_base): Update.
10787 (main_got): Update.
10788 * solib-irix.c (locate_base): Update.
10789 * solib-som.c (som_solib_create_inferior_hook): Update.
10790 (som_solib_desire_dynamic_linker_symbols): Update.
10791 (link_map_start): Update.
10792 * solib-spu.c (spu_enable_break): Update.
10793 (ocl_enable_break): Update.
10794 * solib-svr4.c (elf_locate_base): Update.
10795 (enable_break): Update.
10796 * spu-tdep.c (spu_get_overlay_table): Update.
10797 (spu_catch_start): Update.
10798 (flush_ea_cache): Update.
10799 * stabsread.c (define_symbol): Update.
10800 (scan_file_globals): Update.
10801 * stack.c (find_frame_funname): Update.
10802 (frame_info): Update.
10803 * symfile.c (simple_read_overlay_table): Update.
10804 (simple_overlay_update): Update.
10805 * symmisc.c (dump_msymbols): Update.
10806 * symtab.c (fixup_section): Update.
10807 (find_pc_sect_line): Update.
10808 (skip_prologue_sal): Update.
10809 (search_symbols): Update.
10810 (print_msymbol_info): Update.
10811 (rbreak_command): Update.
10812 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10813 (completion_list_objc_symbol): Update.
10814 (default_make_symbol_completion_list_break_on): Update.
10815 * tracepoint.c (scope_info): Update.
10816 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10817 (tui_get_begin_asm_address): Update.
10818 * valops.c (find_function_in_inferior): Update.
10819 * value.c (value_static_field): Update.
10820 (value_fn_field): Update.
10822 2014-02-26 Tom Tromey <tromey@redhat.com>
10824 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10825 bound minimal symbols. Move code that knows about minsym
10827 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10829 * minsyms.h (minimal_symbol_upper_bound): Declare.
10830 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10831 minimal_symbol_upper_bound.
10833 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10835 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10836 Use the type's name if its basic type does not have a tag.
10838 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10840 * dwarf2read.c (read_subrange_type): Add comment.
10842 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10844 * dwarf2read.c (update_enumeration_type_from_children): New
10845 function, mostly extracted from process_structure_scope.
10846 (read_enumeration_type): Call update_enumeration_type_from_children.
10847 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10848 and flag_flag_enum fields.
10850 2014-02-26 Pedro Alves <palves@redhat.com>
10852 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10853 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10854 to_xfer_partial method.
10856 2014-02-26 Pedro Alves <palves@redhat.com>
10858 * target.c (complete_target_initialization): Don't install
10859 default_xfer_partial as to_xfer_partial hook.
10860 (nomemory): Delete.
10861 (update_current_target): Don't INHERIT nor de_fault
10862 deprecated_xfer_memory. Delete de_fault macro.
10863 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10864 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10865 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10868 2014-02-26 Pedro Alves <palves@redhat.com>
10870 * go32-nat.c (my_write_child): New function.
10871 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10872 (go32_xfer_partial): New function.
10873 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10874 Instead install a to_xfer_partial hook.
10876 2014-02-26 Pedro Alves <palves@redhat.com>
10878 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10879 to_xfer_partial helper. Rewrite.
10880 (procfs_xfer_partial): New function.
10881 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10882 Install a to_xfer_partial hook.
10884 2014-02-26 Pedro Alves <palves@redhat.com>
10886 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10887 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10888 (m32r_xfer_partial): New function.
10889 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10890 Install a to_xfer_partial hook.
10892 2014-02-26 Pedro Alves <palves@redhat.com>
10894 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10896 (mips_xfer_partial): New function.
10897 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10898 hook. Install a to_xfer_partial hook.
10900 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10902 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10903 * gdbtypes.c (create_array_type_with_stride): New function,
10904 renaming create_array_type, but with an added parameter
10905 called "bit_stride".
10906 (create_array_type): Re-implement using
10907 create_array_type_with_stride.
10908 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10909 and DW_AT_bit_stride attributes.
10911 2014-02-26 Pedro Alves <palves@redhat.com>
10913 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10914 task-specific breakpoints.
10916 2014-02-25 Pedro Alves <palves@redhat.com>
10918 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10919 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10921 2014-02-25 Stan Shebs <stan@codesourcery.com>
10923 * defs.h: Annotate comments for Doxygen.
10925 2014-02-25 Tom Tromey <tromey@redhat.com>
10927 * target.h (target_ignore): Don't declare.
10928 * target.c (target_ignore): Remove.
10930 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10933 * auto-load.c (auto_load_objfile_script_1): Change filename to
10936 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10938 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10939 documentation. Adjust prototype to match the target_ops
10940 to_xfer_partial method. Adjust implementation accordingly.
10942 2014-02-25 Hui Zhu <hui@codesourcery.com>
10944 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10945 to_traceframe_info.
10947 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10949 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10950 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10951 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10952 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10953 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10954 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10955 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10956 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10958 (rl78_register_type): Use a data pointer type for SP and
10959 new pseudo registers mentioned above. Use a 16 bit integer
10960 type for all other register pairs.
10961 (rl78_register_name, rl78_g10_register_name): Update for
10962 new pseudo registers.
10963 (rl78_pseudo_register_read): Likewise.
10964 (rl78_pseudo_register_write): Likewise.
10965 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10966 to the newly added pseudo registers.
10968 2014-02-24 Doug Evans <dje@google.com>
10970 * value.c (record_latest_value): Fix comment.
10971 * printcmd.c (print_command_1): Remove code to handle -1 return from
10972 record_latest_value.
10974 2014-02-24 Pedro Alves <palves@redhat.com>
10976 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10977 deprecated_xfer_memory hook.
10978 (procfs_xfer_partial): Call procfs_xfer_memory instead
10979 of the deprecated_xfer_memory target hook.
10980 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10983 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10985 * windows-nat.c (windows_xfer_shared_libraries): Return
10986 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10987 requested object is TARGET_OBJECT_LIBRARIES.
10989 2014-02-24 Yao Qi <yao@codesourcery.com>
10991 * target.h (enum target_xfer_status)
10992 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10993 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10995 * corefile.c (memory_error_message): User updated.
10996 * exec.c (section_table_read_available_memory): Likewise.
10997 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10998 * target.c (target_xfer_status_to_string): Likewise.
10999 (raw_memory_xfer_partial): Likewise.
11000 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11001 * valops.c (read_value_memory): Likewise.
11002 * exec.h: Update comments.
11004 2014-02-24 Yao Qi <yao@codesourcery.com>
11006 * target.c (target_xfer_status_to_string): Rename argument err
11008 * target.h (target_xfer_status_to_string): Update declaration.
11009 Replace target_xfer_error_to_string with
11010 target_xfer_status_to_string in comment.
11012 2014-02-24 Yao Qi <yao@codesourcery.com>
11014 * mips-linux-nat.c (super_close): Update its type.
11015 (mips_linux_close): Pass 'self' to super_close.
11017 2014-02-24 Yao Qi <yao@codesourcery.com>
11019 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11020 * corefile.c (read_memory): Adjusted.
11021 * target.c (target_write_with_progress): Adjusted.
11023 2014-02-23 Yao Qi <yao@codesourcery.com>
11025 Revert two patches:
11027 2013-10-25 Yao Qi <yao@codesourcery.com>
11029 * remote.c (remote_traceframe_info): Return early if
11030 traceframe is not selected.
11032 2013-07-19 Yao Qi <yao@codesourcery.com>
11034 * target.c (update_current_target): Change the default action
11035 of 'to_traceframe_info' from tcomplain to return_zero.
11036 * target.h (struct target_ops) <to_traceframe_info>: Add more
11039 2014-02-23 Yao Qi <yao@codesourcery.com>
11041 * valops.c (read_value_memory): Rewrite it. Call
11042 target_xfer_partial in a loop.
11043 * exec.h (section_table_available_memory): Remove declaration.
11044 Move comments to ...
11045 * exec.c (section_table_available_memory): ... here. Make it
11048 2014-02-23 Yao Qi <yao@codesourcery.com>
11050 * exec.c (section_table_read_available_memory): New function.
11051 * exec.h (section_table_read_available_memory): Declare.
11052 * ctf.c (ctf_xfer_partial): Call
11053 section_table_read_available_memory.
11054 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11056 2014-02-23 Yao Qi <yao@codesourcery.com>
11058 * ctf.c (ctf_xfer_partial): Move code to ...
11059 * exec.c (exec_read_partial_read_only): ... it. New function.
11060 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11061 * tracefile.c: Include "exec.h".
11062 * exec.h (exec_read_partial_read_only): Declare.
11064 2014-02-23 Yao Qi <yao@codesourcery.com>
11066 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11067 (tfile_has_memory): Remove.
11068 (init_tfile_ops): Don't set fields to_has_all_memory and
11069 to_has_memory of tfile_ops.
11070 * tracefile.c (tracefile_has_all_memory): New function.
11071 (tracefile_has_memory): New function.
11072 (init_tracefile_ops): Initialize fields to_has_all_memory and
11073 to_has_memory of 'ops'.
11075 2014-02-23 Yao Qi <yao@codesourcery.com>
11077 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11078 (ctf_thread_alive, ctf_get_trace_status): Remove.
11079 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11080 init_tracefile_ops.
11081 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11082 (tfile_has_stack, tfile_has_registers): Remove.
11083 (tfile_thread_alive): Remove.
11084 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11085 init_tracefile_ops.
11086 * tracefile.c (tracefile_has_stack): New function.
11087 (tracefile_has_registers): New function.
11088 (tracefile_thread_alive): New function.
11089 (tracefile_get_trace_status): New function.
11090 (init_tracefile_ops): New function.
11091 * tracefile.h (init_tracefile_ops): Declare.
11093 2014-02-23 Yao Qi <yao@codesourcery.com>
11095 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11096 (O_LARGEFILE): Likewise.
11097 (tfile_ops): Likewise.
11098 (TRACE_HEADER_SIZE): Likewise.
11099 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11100 (cur_data_size): Likewise.
11101 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11102 (tfile_close, tfile_files_info): Likewise.
11103 (tfile_get_trace_status): Likewise.
11104 (tfile_get_tracepoint_status): Likewise.
11105 (tfile_get_traceframe_address): Likewise.
11106 (tfile_trace_find, match_blocktype): Likewise.
11107 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11108 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11109 (tfile_get_trace_state_variable_value): Likewise.
11110 (tfile_has_all_memory, tfile_has_memory): Likewise.
11111 (tfile_has_stack, tfile_has_registers): Likewise.
11112 (tfile_thread_alive, build_traceframe_info): Likewise.
11113 (tfile_traceframe_info, init_tfile_ops): Likewise.
11114 (_initialize_tracepoint): Don't call init_tfile_ops
11115 and add_target_with_completer.
11116 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11117 exec.h, completer.h and filenames.h.
11118 (_initialize_tracefile_tfile): New function.
11120 2014-02-23 Yao Qi <yao@codesourcery.com>
11122 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11124 (HFILES_NO_SRCDIR): Add tracefile.h.
11125 * ctf.c: Include "tracefile.h".
11126 * tracefile.h: New file.
11127 * tracefile.c: New file
11128 * tracefile-tfile.c: New file.
11129 * tracepoint.c: Include "tracefile.h".
11130 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11131 (stop_reason_names): Add const.
11132 (trace_file_writer_xfree): Move it to tracefile.c.
11133 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11134 (trace_save_ctf): Likewise.
11135 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11136 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11137 (tfile_write_header, tfile_write_regblock_type): Likewise.
11138 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11139 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11140 (tfile_write_raw_data, tfile_end): Likewise.
11141 (tfile_trace_file_writer_new): Likewise.
11142 (free_uploaded_tp): Make it extern.
11143 (free_uploaded_tsv): Make it extern.
11144 (_initialize_tracepoint): Move code to register command 'tsave'
11146 * tracepoint.h (stop_reason_names): Declare.
11147 (struct trace_frame_write_ops): Move it to tracefile.h.
11148 (struct trace_file_write_ops): Likewise.
11149 (struct trace_file_writer): Likewise.
11150 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11152 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11155 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11157 (get_cores_used_by_process): New parameter num_cores, use it.
11158 (linux_xfer_osdata_processes): Pass num_cores to it.
11159 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11162 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11164 * target.c (memory_xfer_partial): Fix length arg in call to
11165 breakpoint_xfer_memory.
11167 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11170 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11171 number comes after the + or - signs. Adjust length of register
11172 name to be extracted.
11174 2014-02-20 Tom Tromey <tromey@redhat.com>
11176 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11177 (ada_varobj_ops): Mark "extern".
11179 2014-02-20 Tom Tromey <tromey@redhat.com>
11181 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11183 2014-02-20 Doug Evans <xdje42@gmail.com>
11185 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11186 All callers updated.
11187 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11188 All callers updated.
11189 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11190 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11192 2014-02-20 lin zuojian <manjian2006@gmail.com>
11193 Joel Brobecker <brobecker@adacore.com>
11194 Doug Evans <xdje42@gmail.com>
11197 * dwarf2read.c (struct die_info): New member in_process.
11198 (reset_die_in_process): New function.
11199 (process_die): Set it at the start, reset when returning.
11200 (inherit_abstract_dies): Only call process_die if origin_child_die
11201 not already being processed.
11203 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11205 * windows-nat.c (handle_unload_dll): Add function documentation.
11206 (do_initial_windows_stuff): Add comment explaining why we wait
11207 until after inferior initialization has finished before
11208 processing all DLLs.
11210 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11212 * windows-nat.c (get_module_name): Delete.
11213 (windows_get_exec_module_filename): New function, mostly
11214 inspired from get_module_name.
11215 (windows_pid_to_exec_file): Replace call to get_module_name
11216 by call to windows_get_exec_module_filename.
11218 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11220 * windows-nat.c (handle_load_dll): Rewrite this function's
11221 introductory comment. Remove code using get_module_name
11222 to get the DLL's name.
11224 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11226 * windows-nat.c (get_windows_debug_event): Ignore
11227 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11228 if windows_initialization_done == 0.
11229 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11230 Adjust implementation to always load all DLLs.
11231 (do_initial_windows_stuff): Replace call to
11232 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11234 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11236 * windows-nat.c (_initialize_windows_nat): Deprecate the
11237 "dll-symbols" command. Turn the "add-shared-symbol-files"
11238 and "assf" aliases into commands, and deprecate them as well.
11239 * NEWS: Add entry explaining that "dll-symbols" and its two
11240 aliases are now deprecated.
11242 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11244 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11245 new-line in debug string. Remove trailing spaces.
11247 2014-02-19 Stan Shebs <stan@codesourcery.com>
11249 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11251 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11253 * NEWS: Add entry for the new feature
11254 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11257 2014-02-19 Stan Shebs <stan@codesourcery.com>
11259 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11261 2014-02-19 Pedro Alves <palves@redhat.com>
11263 * common/ptid.h (struct ptid): Mention that process_stratum
11264 targets should prefer ptid.lwp.
11266 2014-02-19 Pedro Alves <palves@redhat.com>
11268 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11269 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11270 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11271 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11272 store remote thread ids rather than ptid.tid.
11273 (_initialize_remote): Adjust.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.c (target_get_unwinder): Rewrite.
11278 (target_get_tailcall_unwinder): Rewrite.
11279 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11280 (record_btrace_to_get_tailcall_unwinder): New function.
11281 (init_record_btrace_ops): Update.
11282 * target.h (struct target_ops) <to_get_unwinder,
11283 to_get_tailcall_unwinder>: Now function pointers. Use
11284 TARGET_DEFAULT_RETURN.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11290 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11296 * target-delegates.c: Rebuild.
11297 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11298 TARGET_DEFAULT_FUNC.
11299 * target.c (default_target_decr_pc_after_break): Rename from
11300 forward_target_decr_pc_after_break. Simplify.
11301 (target_decr_pc_after_break): Rely on delegation.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * target.c (update_current_target): Do not INHERIT to_doc or
11306 to_magic. Do not de_fault to_open or to_close.
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * gcore.h (objfile_find_memory_regions): Declare.
11311 * gcore.c (objfile_find_memory_regions): No longer static. Add
11313 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11314 * exec.c: Include gcore.h.
11315 (exec_set_find_memory_regions): Remove.
11316 (exec_find_memory_regions): Remove.
11317 (exec_do_find_memory_regions): Remove.
11318 (init_exec_ops): Update.
11319 * defs.h (exec_set_find_memory_regions): Remove.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target-delegates.c: Rebuild.
11324 * target.h (struct target_ops) <to_extra_thread_info,
11325 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11326 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11327 not 0, in TARGET_DEFAULT_RETURN.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.c (complete_target_initialization): Remove casts. Use
11332 return_zero_has_execution.
11333 (return_zero): Add "ignore" argument.
11334 (return_zero_has_execution): New function.
11335 (init_dummy_target): Remove casts. Use
11336 return_zero_has_execution.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.c (update_current_target): Update comments. Do not
11341 INHERIT to_stratum.
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11345 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11347 * corelow.c (core_read_description): Delegate when needed.
11348 * remote.c (remote_read_description): Delegate when needed.
11349 * target-delegates.c: Rebuild.
11350 * target.c (target_read_description): Rewrite.
11351 * target.h (struct target_ops) <to_read_description>: Update
11352 comment. Use TARGET_DEFAULT_RETURN.
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11356 * target-delegates.c: Rebuild.
11357 * target.c (update_current_target): Don't inherit or default
11359 (find_default_run_target): Check against delegate_can_run.
11360 * target.h (struct target_ops) <to_can_run>: Use
11361 TARGET_DEFAULT_RETURN.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_disconnect): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_disconnect>: Use
11368 TARGET_DEFAULT_NORETURN.
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * record.c (record_stop): Unconditionally delegate.
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_stop_recording): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_stop_recording>: Use
11376 TARGET_DEFAULT_IGNORE.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_enable_btrace): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_enable_btrace>: Use
11383 TARGET_DEFAULT_NORETURN.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (target_read_btrace): Unconditionally delegate.
11389 * target.h (struct target_ops) <to_read_btrace>: Use
11390 TARGET_DEFAULT_NORETURN.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target-delegates.c: Rebuild.
11395 * target.c (target_teardown_btrace): Unconditionally delegate.
11396 * target.h (struct target_ops) <to_teardown_btrace>: Use
11397 TARGET_DEFAULT_NORETURN.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_disable_btrace): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_disable_btrace>: Use
11404 TARGET_DEFAULT_NORETURN.
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target-delegates.c: Rebuild.
11409 * target.c (default_search_memory): New function.
11410 (simple_search_memory): Update comment.
11411 (target_search_memory): Unconditionally delegate.
11412 * target.h (struct target_ops) <to_search_memory>: Use
11413 TARGET_DEFAULT_FUNC.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * auxv.c (default_auxv_parse): No longer static.
11418 (target_auxv_parse): Unconditionally delegate.
11419 * auxv.h (default_auxv_parse): Declare.
11420 * target-delegates.c: Rebuild.
11421 * target.c: Include auxv.h.
11422 * target.h (struct target_ops) <to_auxv_parse>: Use
11423 TARGET_DEFAULT_FUNC.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_memory_map): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_memory_map>: Use
11430 TARGET_DEFAULT_RETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_thread_alive): Unconditionally delegate.
11436 * target.h (struct target_ops) <to_thread_alive>: Use
11437 TARGET_DEFAULT_RETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_save_record): Unconditionally delegate.
11443 * target.h (struct target_ops) <to_save_record>: Use
11444 TARGET_DEFAULT_NORETURN.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target-delegates.c: Rebuild.
11449 * target.c (target_delete_record): Unconditionally delegate.
11450 * target.h (struct target_ops) <to_delete_record>: Use
11451 TARGET_DEFAULT_NORETURN.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target-delegates.c: Rebuild.
11456 * target.c (target_record_is_replaying): Unconditionally
11458 * target.h (struct target_ops) <to_record_is_replaying>: Use
11459 TARGET_DEFAULT_RETURN.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_goto_record_begin): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_goto_record_begin>: Use
11466 TARGET_DEFAULT_NORETURN.
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_goto_record_end): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_goto_record_end>: Use
11473 TARGET_DEFAULT_NORETURN.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_goto_record): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_goto_record>: Use
11480 TARGET_DEFAULT_NORETURN.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_insn_history): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_insn_history>: Use
11487 TARGET_DEFAULT_NORETURN.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_insn_history_from): Unconditionally delegate.
11493 * target.h (struct target_ops) <to_insn_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_insn_history_range): Unconditionally delegate.
11500 * target.h (struct target_ops) <to_insn_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_call_history): Unconditionally delegate.
11507 * target.h (struct target_ops) <to_call_history>: Use
11508 TARGET_DEFAULT_NORETURN.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_call_history_from): Unconditionally delegate.
11514 * target.h (struct target_ops) <to_call_history_from>: Use
11515 TARGET_DEFAULT_NORETURN.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target-delegates.c: Rebuild.
11520 * target.c (target_call_history_range): Unconditionally delegate.
11521 * target.h (struct target_ops) <to_call_history_range>: Use
11522 TARGET_DEFAULT_NORETURN.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target-delegates.c: Rebuild.
11527 * target.c (target_verify_memory): Unconditionally delegate.
11528 * target.h (struct target_ops) <to_verify_memory>: Use
11529 TARGET_DEFAULT_NORETURN.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target-delegates.c: Rebuild.
11534 * target.c (target_core_of_thread): Unconditionally delegate.
11535 * target.h (struct target_ops) <to_core_of_thread>: Use
11536 TARGET_DEFAULT_RETURN.
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11540 * target-delegates.c: Rebuild.
11541 * target.c (target_flash_done): Unconditionally delegate.
11542 * target.h (struct target_ops) <to_flash_done>: Use
11543 TARGET_DEFAULT_NORETURN.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * target-delegates.c: Rebuild.
11548 * target.c (target_flash_erase): Unconditionally delegate.
11549 * target.h (struct target_ops) <to_flash_erase>: Use
11550 TARGET_DEFAULT_NORETURN.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target-delegates.c: Rebuild.
11555 * target.c (target_get_section_table): Unconditionally delegate.
11556 * target.h (struct target_ops) <to_get_section_table>: Use
11557 TARGET_DEFAULT_RETURN.
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target-delegates.c: Rebuild.
11562 * target.c (target_pid_to_str): Unconditionally delegate.
11563 (init_dummy_target): Don't initialize to_pid_to_str.
11564 (default_pid_to_str): Rename from dummy_pid_to_str.
11565 * target.h (struct target_ops) <to_pid_to_str>: Use
11566 TARGET_DEFAULT_FUNC.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (target_find_new_threads): Unconditionally delegate.
11572 * target.h (struct target_ops) <to_find_new_threads>: Use
11573 TARGET_DEFAULT_RETURN.
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11577 * target-delegates.c: Rebuild.
11578 * target.c (target_program_signals): Unconditionally delegate.
11579 * target.h (struct target_ops) <to_program_signals>: Use
11580 TARGET_DEFAULT_IGNORE.
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11584 * target-delegates.c: Rebuild.
11585 * target.c (target_pass_signals): Unconditionally delegate.
11586 * target.h (struct target_ops) <to_pass_signals>: Use
11587 TARGET_DEFAULT_IGNORE.
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * target-delegates.c: Rebuild.
11592 * target.c (default_mourn_inferior): New function.
11593 (target_mourn_inferior): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_mourn_inferior>: Use
11595 TARGET_DEFAULT_FUNC.
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11599 * target-delegates.c: Rebuild.
11600 * target.c (default_follow_fork): New function.
11601 (target_follow_fork): Unconditionally delegate.
11602 * target.h (struct target_ops) <to_follow_fork>: Use
11603 TARGET_DEFAULT_FUNC.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target-delegates.c: Rebuild.
11608 * target.c (target_kill): Unconditionally delegate.
11609 * target.h (struct target_ops) <to_kill>: Use
11610 TARGET_DEFAULT_NORETURN.
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11614 * target-delegates.c: Rebuild.
11615 * target.c (target_masked_watch_num_registers): Unconditionally
11617 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11618 Use TARGET_DEFAULT_RETURN.
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target-delegates.c: Rebuild.
11623 * target.c (target_remove_mask_watchpoint): Unconditionally
11625 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11626 TARGET_DEFAULT_RETURN.
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11630 * target-delegates.c: Rebuild.
11631 * target.c (target_insert_mask_watchpoint): Unconditionally
11633 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11634 TARGET_DEFAULT_RETURN.
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11638 * target-delegates.c: Rebuild.
11639 * target.c (target_ranged_break_num_registers): Unconditionally
11641 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11642 Use TARGET_DEFAULT_RETURN.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target-delegates.c: Rebuild.
11647 * target.c (target_fetch_registers): Unconditionally delegate.
11648 * target.h (struct target_ops) <to_fetch_registers>: Use
11649 TARGET_DEFAULT_NORETURN.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11656 * target.h (struct target_ops) <to_stop>: Use
11657 TARGET_DEFAULT_IGNORE.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_can_run_breakpoint_commands.
11664 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11665 Use TARGET_DEFAULT_RETURN.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_supports_evaluation_of_breakpoint_conditions.
11672 * target.h (struct target_ops)
11673 <to_supports_evaluation_of_breakpoint_conditions>: Use
11674 TARGET_DEFAULT_RETURN.
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11678 * target-delegates.c: Rebuild.
11679 * target.c (update_current_target): Don't inherit or default
11680 to_augmented_libraries_svr4_read.
11681 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11682 Use TARGET_DEFAULT_RETURN.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11689 * target.h (struct target_ops) <to_can_use_agent>: Use
11690 TARGET_DEFAULT_RETURN.
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11697 * target.h (struct target_ops) <to_use_agent>: Use
11698 TARGET_DEFAULT_NORETURN.
11700 2014-02-19 Tom Tromey <tromey@redhat.com>
11702 * target-delegates.c: Rebuild.
11703 * target.c (update_current_target): Don't inherit or default
11704 to_traceframe_info.
11705 (return_null): Remove.
11706 * target.h (struct target_ops) <to_traceframe_info>: Use
11707 TARGET_DEFAULT_RETURN.
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target-delegates.c: Rebuild.
11712 * target.c (update_current_target): Don't inherit or default
11713 to_static_tracepoint_markers_by_strid.
11714 * target.h (struct target_ops)
11715 <to_static_tracepoint_markers_by_strid>: Use
11716 TARGET_DEFAULT_NORETURN.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_static_tracepoint_marker_at.
11723 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11724 Use TARGET_DEFAULT_RETURN.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * target-delegates.c: Rebuild.
11729 * target.c (update_current_target): Don't inherit or default
11730 to_set_permissions.
11731 * target.h (struct target_ops) <to_set_permissions>: Use
11732 TARGET_DEFAULT_IGNORE.
11734 2014-02-19 Tom Tromey <tromey@redhat.com>
11736 * target-delegates.c: Rebuild.
11737 * target.c (update_current_target): Don't inherit or default
11738 to_get_tib_address.
11739 * target.h (struct target_ops) <to_get_tib_address>: Use
11740 TARGET_DEFAULT_NORETURN.
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target-delegates.c: Rebuild.
11745 * target.c (update_current_target): Don't inherit or default
11746 to_set_trace_notes.
11747 * target.h (struct target_ops) <to_set_trace_notes>: Use
11748 TARGET_DEFAULT_RETURN.
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't initialize
11754 to_set_trace_buffer_size.
11755 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11756 TARGET_DEFAULT_IGNORE.
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_set_circular_trace_buffer.
11763 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11764 TARGET_DEFAULT_IGNORE.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_set_disconnected_tracing.
11771 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11772 TARGET_DEFAULT_IGNORE.
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_get_min_fast_tracepoint_insn_len.
11779 (return_minus_one): Remove.
11780 * target.h (struct target_ops)
11781 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11785 * target-delegates.c: Rebuild.
11786 * target.c (update_current_target): Don't inherit or default
11787 to_get_raw_trace_data.
11788 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11789 TARGET_DEFAULT_NORETURN.
11791 2014-02-19 Tom Tromey <tromey@redhat.com>
11793 * target-delegates.c: Rebuild.
11794 * target.c (update_current_target): Don't inherit or default
11795 to_upload_trace_state_variables.
11796 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11797 Use TARGET_DEFAULT_RETURN.
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target-delegates.c: Rebuild.
11802 * target.c (update_current_target): Don't inherit or default
11803 to_upload_tracepoints.
11804 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11805 TARGET_DEFAULT_RETURN.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11811 to_save_trace_data.
11812 * target.h (struct target_ops) <to_save_trace_data>: Use
11813 TARGET_DEFAULT_NORETURN.
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11817 * target-delegates.c: Rebuild.
11818 * target.c (update_current_target): Don't inherit or default
11819 to_get_trace_state_variable_value.
11820 * target.h (struct target_ops)
11821 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11825 * target-delegates.c: Rebuild.
11826 * target.c (update_current_target): Don't inherit or default
11828 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11835 * target.h (struct target_ops) <to_trace_stop>: Use
11836 TARGET_DEFAULT_NORETURN.
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_get_tracepoint_status.
11843 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11844 TARGET_DEFAULT_NORETURN.
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11848 * target-delegates.c: Rebuild.
11849 * target.c (update_current_target): Don't inherit or default
11850 to_get_trace_status.
11851 * target.h (struct target_ops) <to_get_trace_status>: Use
11852 TARGET_DEFAULT_RETURN.
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11856 * target-delegates.c: Rebuild.
11857 * target.c (update_current_target): Don't inherit or default
11859 * target.h (struct target_ops) <to_trace_start>: Use
11860 TARGET_DEFAULT_NORETURN.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * target-delegates.c: Rebuild.
11865 * target.c (update_current_target): Don't inherit or default
11866 to_trace_set_readonly_regions.
11867 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11868 Use TARGET_DEFAULT_NORETURN.
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11872 * target-delegates.c: Rebuild.
11873 * target.c (update_current_target): Don't inherit or default
11874 to_disable_tracepoint.
11875 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11876 TARGET_DEFAULT_NORETURN.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target-delegates.c: Rebuild.
11881 * target.c (update_current_target): Don't inherit or default
11882 to_enable_tracepoint.
11883 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11884 TARGET_DEFAULT_NORETURN.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target-delegates.c: Rebuild.
11889 * target.c (update_current_target): Don't inherit or default
11890 to_download_trace_state_variable.
11891 * target.h (struct target_ops) <to_download_trace_state_variable>:
11892 Use TARGET_DEFAULT_NORETURN.
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * target-delegates.c: Rebuild.
11897 * target.c (update_current_target): Don't inherit or default
11898 to_can_download_tracepoint.
11899 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11900 TARGET_DEFAULT_RETURN.
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11904 * target-delegates.c: Rebuild.
11905 * target.c (update_current_target): Don't inherit or default
11906 to_download_tracepoint.
11907 * target.h (struct target_ops) <to_download_tracepoint>: Use
11908 TARGET_DEFAULT_NORETURN.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * target-delegates.c: Rebuild.
11913 * target.c (update_current_target): Don't inherit or default
11915 * target.h (struct target_ops) <to_trace_init>: Use
11916 TARGET_DEFAULT_RETURN.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target-delegates.c: Rebuild.
11921 * target.c (update_current_target): Don't inherit or default
11922 to_supports_string_tracing.
11923 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11924 TARGET_DEFAULT_RETURN.
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target-delegates.c: Rebuild.
11929 * target.c (update_current_target): Don't inherit or default
11930 to_supports_enable_disable_tracepoint.
11931 * target.h (struct target_ops)
11932 <to_supports_enable_disable_tracepoint>: Use
11933 TARGET_DEFAULT_RETURN.
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target-delegates.c: Rebuild.
11938 * target.c (update_current_target): Don't inherit or default
11939 to_supports_multi_process.
11940 * target.h (struct target_ops) <to_supports_multi_process>: Use
11941 TARGET_DEFAULT_RETURN.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11947 to_get_ada_task_ptid.
11948 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11949 TARGET_DEFAULT_FUNC.
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_thread_architecture.
11956 * target.h (struct target_ops) <to_thread_architecture>: Use
11957 TARGET_DEFAULT_FUNC.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_execution_direction.
11964 * target.h (struct target_ops) <to_execution_direction>: Use
11965 TARGET_DEFAULT_FUNC.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target-delegates.c: Rebuild.
11970 * target.c (update_current_target): Don't inherit or default
11971 to_can_execute_reverse.
11972 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11973 TARGET_DEFAULT_RETURN.
11974 (target_can_execute_reverse): Unconditionally delegate.
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11978 * target-delegates.c: Rebuild.
11979 * target.c (update_current_target): Don't inherit or default
11981 (dummy_goto_bookmark): Remove.
11982 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11983 * target.h (struct target_ops) <to_goto_bookmark>: Use
11984 TARGET_DEFAULT_NORETURN.
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11991 (dummy_get_bookmark): Remove.
11992 (init_dummy_target): Don't inherit or default to_get_bookmark.
11993 * target.h (struct target_ops) <to_get_bookmark>: Use
11994 TARGET_DEFAULT_NORETURN
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_make_corefile_notes.
12001 (init_dummy_target): Don't initialize to_make_corefile_notes.
12002 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12003 TARGET_DEFAULT_FUNC.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_find_memory_regions.
12010 (init_dummy_target): Don't initialize to_find_memory_regions.
12011 * target.h (struct target_ops) <to_find_memory_regions>: Use
12012 TARGET_DEFAULT_FUNC.
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target-delegates.c: Rebuild.
12017 * target.c (update_current_target): Don't inherit or default
12019 * target.h (struct target_ops) <to_log_command>: Use
12020 TARGET_DEFAULT_IGNORE.
12021 (target_log_command): Unconditionally delegate.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_pid_to_exec_file.
12028 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12029 TARGET_DEFAULT_RETURN.
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12036 (target_thread_name): Unconditionally delegate.
12037 * target.h (struct target_ops) <to_thread_name>: Use
12038 TARGET_DEFAULT_RETURN.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_extra_thread_info.
12045 * target.h (struct target_ops) <to_extra_thread_info>: Use
12046 TARGET_DEFAULT_RETURN.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12053 * target.h (struct target_ops) <to_has_exited>: Use
12054 TARGET_DEFAULT_RETURN..
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_set_syscall_catchpoint.
12061 (return_one): Remove.
12062 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12063 TARGET_DEFAULT_RETURN.
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12067 * target-delegates.c: Rebuild.
12068 * target.c (update_current_target): Don't inherit or default
12069 to_insert_exec_catchpoint.
12070 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12071 TARGET_DEFAULT_RETURN.
12073 2014-01-08 Tom Tromey <tromey@redhat.com>
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12077 to_insert_exec_catchpoint.
12078 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12079 TARGET_DEFAULT_RETURN.
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target-delegates.c: Rebuild.
12084 * target.c (update_current_target): Don't inherit or default
12085 to_remove_vfork_catchpoint.
12086 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12087 TARGET_DEFAULT_RETURN.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * target-delegates.c: Rebuild.
12092 * target.c (update_current_target): Don't inherit or default
12093 to_insert_vfork_catchpoint.
12094 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12095 TARGET_DEFAULT_RETURN.
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * target-delegates.c: Rebuild.
12100 * target.c (update_current_target): Don't inherit or default
12101 to_remove_fork_catchpoint.
12102 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12103 TARGET_DEFAULT_RETURN.
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12107 * target-delegates.c: Rebuild.
12108 * target.c (update_current_target): Don't inherit or default
12109 to_insert_fork_catchpoint.
12110 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12111 TARGET_DEFAULT_RETURN.
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * target-delegates.c: Rebuild.
12116 * target.c (update_current_target): Don't inherit or default
12117 to_post_startup_inferior.
12118 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12119 TARGET_DEFAULT_IGNORE.
12121 2014-02-19 Tom Tromey <tromey@redhat.com>
12123 * target-delegates.c: Rebuild.
12124 * target.c (update_current_target): Don't inherit or default
12126 * target.h (struct target_ops) <to_load>: Use
12127 TARGET_DEFAULT_NORETURN.
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target-delegates.c: Rebuild.
12132 * target.c (update_current_target): Don't inherit or default
12134 * target.h (struct target_ops) <to_terminal_info>: Use
12135 TARGET_DEFAULT_FUNC.
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12139 * target-delegates.c: Rebuild.
12140 * target.c (update_current_target): Don't inherit or default
12141 to_terminal_save_ours.
12142 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12143 TARGET_DEFAULT_IGNORE.
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12150 * target.h (struct target_ops) <to_terminal_ours>: Use
12151 TARGET_DEFAULT_IGNORE.
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_terminal_ours_for_output.
12158 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12159 TARGET_DEFAULT_IGNORE.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_terminal_inferior.
12166 * target.h (struct target_ops) <to_terminal_inferior>: Use
12167 TARGET_DEFAULT_IGNORE.
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12174 * target.h (struct target_ops) <to_terminal_init>: Use
12175 TARGET_DEFAULT_IGNORE.
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_can_accel_watchpoint_condition.
12182 * target.h (struct target_ops)
12183 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_region_ok_for_hw_watchpoint.
12190 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12191 Use TARGET_DEFAULT_FUNC.
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't inherit or default
12197 to_watchpoint_addr_within_range.
12198 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12199 Use TARGET_DEFAULT_FUNC.
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_remove_watchpoint.
12206 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12207 TARGET_DEFAULT_NORETURN.
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_insert_watchpoint.
12214 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12215 TARGET_DEFAULT_RETURN.
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_remove_hw_breakpoint.
12222 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12223 TARGET_DEFAULT_RETURN.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_insert_hw_breakpoint.
12230 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12231 TARGET_DEFAULT_RETURN.
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12237 to_can_use_hw_breakpoint.
12238 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12239 TARGET_DEFAULT_RETURN.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target-delegates.c: Rebuild.
12244 * target.c (update_current_target): Don't inherit or default
12246 * target.h (struct target_ops) <to_files_info>: Use
12247 TARGET_DEFAULT_IGNORE.
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12251 * target-delegates.c: Rebuild.
12252 * target.c (update_current_target): Don't inherit or default
12254 * target.h (struct target_ops) <to_store>: Use
12255 TARGET_DEFAULT_NORETURN.
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12259 * target-delegates.c: Rebuild.
12260 * target.c (update_current_target): Don't inherit or default
12262 * target.h (struct target_ops) <to_post_attach>: Use
12263 TARGET_DEFAULT_IGNORE.
12265 2014-02-19 Tom Tromey <tromey@redhat.com>
12267 * target-delegates.c: Rebuild.
12268 * target.c (update_current_target): Don't inherit or default
12270 (default_rcmd): New function.
12271 (do_monitor_command): Unconditionally delegate.
12272 * target.h (struct target_ops) <to_rmcd>: Use
12273 TARGET_DEFAULT_FUNC.
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12277 * target-delegates.c: Rebuild.
12278 * target.c (init_dummy_target): Don't initialize to_attach.
12279 (target_attach): Unconditionally delegate.
12280 * target.h (struct target_ops) <to_attach>: Use
12281 TARGET_DEFAULT_FUNC.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target-delegates.c: Rebuild.
12286 * target.c (target_detach): Unconditionally delegate.
12287 (init_dummy_target): Don't initialize to_detach.
12288 * target.h (struct target_ops) <to_detach>: Use
12289 TARGET_DEFAULT_IGNORE.
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12295 (target_augmented_libraries_svr4_read): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12302 * target.h (struct target_ops) <to_call_history_range>: Add
12304 * target.c (target_call_history_range): Add argument.
12305 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12307 (record_btrace_call_history_from): Update.
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12311 * target.h (struct target_ops) <to_call_history_from>: Add
12313 * target.c (target_call_history_from): Add argument.
12314 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12319 * target.h (struct target_ops) <to_call_history>: Add argument.
12320 * target.c (target_call_history): Add argument.
12321 * record-btrace.c (record_btrace_call_history): Add 'self'
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12326 * target.h (struct target_ops) <to_insn_history_range>: Add
12328 * target.c (target_insn_history_range): Add argument.
12329 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12331 (record_btrace_insn_history_from): Update.
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12335 * target.h (struct target_ops) <to_insn_history_from>: Add
12337 * target.c (target_insn_history_from): Add argument.
12338 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12343 * target.h (struct target_ops) <to_insn_history>: Add argument.
12344 * target.c (target_insn_history): Add argument.
12345 * record-btrace.c (record_btrace_insn_history): Add 'self'
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12350 * target.h (struct target_ops) <to_goto_record>: Add argument.
12351 * target.c (target_goto_record): Add argument.
12352 * record-full.c (record_full_goto): Add 'self' argument.
12353 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12355 2014-02-19 Tom Tromey <tromey@redhat.com>
12357 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12358 * target.c (target_goto_record_end): Add argument.
12359 * record-full.c (record_full_goto_end): Add 'self' argument.
12360 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12364 * target.h (struct target_ops) <to_goto_record_begin>: Add
12366 * target.c (target_goto_record_begin): Add argument.
12367 * record-full.c (record_full_goto_begin): Add 'self' argument.
12368 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12371 2014-02-19 Tom Tromey <tromey@redhat.com>
12373 * target.h (struct target_ops) <to_record_is_replaying>: Add
12375 * target.c (target_record_is_replaying): Add argument.
12376 * record-full.c (record_full_is_replaying): Add 'self' argument.
12377 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12379 (record_btrace_xfer_partial, record_btrace_store_registers)
12380 (record_btrace_prepare_to_store, record_btrace_resume)
12381 (record_btrace_wait, record_btrace_decr_pc_after_break)
12382 (record_btrace_find_new_threads, record_btrace_thread_alive):
12385 2014-02-19 Tom Tromey <tromey@redhat.com>
12387 * target.h (struct target_ops) <to_delete_record>: Add argument.
12388 * target.c (target_delete_record): Add argument.
12389 * record-full.c (record_full_delete): Add 'self' argument.
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12393 * target.h (struct target_ops) <to_save_record>: Add argument.
12394 * target.c (target_save_record): Add argument.
12395 * record-full.c (record_full_save): Add 'self' argument.
12396 (record_full_save): Add 'self' argument.
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12400 * target.h (struct target_ops) <to_info_record>: Add argument.
12401 * target.c (target_info_record): Add argument.
12402 * record.c (info_record_command): Add argument.
12403 * record-full.c (record_full_info): Add 'self' argument.
12404 * record-btrace.c (record_btrace_info): Add 'self' argument.
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12409 * target.c (target_stop_recording): Add argument.
12410 * record.c (record_stop): Add argument.
12411 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12416 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12417 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12418 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12420 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12421 (_initialize_amd64_linux_nat): Use it.
12422 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12423 (_initialize_i386_linux_nat): Use it.
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12427 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12428 * target.c (target_teardown_btrace): Add argument.
12429 * remote.c (remote_teardown_btrace): Add 'self' argument.
12430 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12432 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12435 2014-02-19 Tom Tromey <tromey@redhat.com>
12437 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12438 * target.c (target_disable_btrace): Add argument.
12439 * remote.c (remote_disable_btrace): Add 'self' argument.
12440 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12442 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12447 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12448 * target.c (target_enable_btrace): Add argument.
12449 * remote.c (remote_enable_btrace): Add 'self' argument.
12450 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12452 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12457 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12458 (target_can_use_agent): Add argument.
12459 * target.c (update_current_target): Update.
12460 * remote.c (remote_can_use_agent): Add 'self' argument.
12461 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target.h (struct target_ops) <to_use_agent>: Add argument.
12466 (target_use_agent): Add argument.
12467 * target.c (update_current_target): Update.
12468 * remote.c (remote_use_agent): Add 'self' argument.
12469 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12474 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12475 (target_traceframe_info): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_traceframe_info): Add 'self' argument.
12478 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target.h (target_static_tracepoint_markers_by_strid): Add
12484 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12486 * target.c (update_current_target): Update.
12487 * remote.c (struct target_ops)
12488 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12489 * linux-nat.c (struct target_ops)
12490 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12496 (target_static_tracepoint_marker_at): Add argument.
12497 * target.c (update_current_target): Update.
12498 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12501 2014-02-19 Tom Tromey <tromey@redhat.com>
12503 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12504 (target_set_permissions): Add argument.
12505 * target.c (update_current_target): Update.
12506 * remote.c (remote_set_permissions): Add 'self' argument.
12507 (remote_start_remote): Update.
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12511 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12512 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12513 (target_get_tib_address): Add argument.
12514 * target.c (update_current_target): Update.
12515 * remote.c (remote_get_tib_address): Add 'self' argument.
12517 2014-02-19 Tom Tromey <tromey@redhat.com>
12519 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12520 (target_set_trace_notes): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_set_trace_notes): Add 'self' argument.
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12528 (target_set_trace_buffer_size): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12536 (target_set_circular_trace_buffer): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12541 2014-02-19 Tom Tromey <tromey@redhat.com>
12543 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12545 (target_set_disconnected_tracing): Add argument.
12546 * target.c (update_current_target): Update.
12547 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops)
12552 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12553 (target_get_min_fast_tracepoint_insn_len): Add argument.
12554 * target.c (update_current_target): Update.
12555 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12558 2014-02-19 Tom Tromey <tromey@redhat.com>
12560 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12562 (target_get_raw_trace_data): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12566 2014-02-19 Tom Tromey <tromey@redhat.com>
12568 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12570 (target_upload_trace_state_variables): Add argument.
12571 * target.c (update_current_target): Update.
12572 * remote.c (remote_upload_trace_state_variables): Add 'self'
12574 (remote_start_remote): Update.
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12580 (target_upload_tracepoints): Add argument.
12581 * target.c (update_current_target): Update.
12582 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12583 (remote_start_remote): Update.
12585 2014-02-19 Tom Tromey <tromey@redhat.com>
12587 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12588 (target_save_trace_data): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_save_trace_data): Add 'self' argument.
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12594 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12596 * target.h (struct target_ops)
12597 <to_get_trace_state_variable_value>: Add argument.
12598 (target_get_trace_state_variable_value): Add argument.
12599 * target.c (update_current_target): Update.
12600 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12602 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12604 2014-02-19 Tom Tromey <tromey@redhat.com>
12606 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12607 * target.h (struct target_ops) <to_trace_find>: Add argument.
12608 (target_trace_find): Add argument.
12609 * target.c (update_current_target): Update.
12610 * remote.c (remote_trace_find): Add 'self' argument.
12611 * ctf.c (ctf_trace_find): Add 'self' argument.
12613 2014-02-19 Tom Tromey <tromey@redhat.com>
12615 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12616 (target_trace_stop): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_trace_stop): Add 'self' argument.
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12622 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12623 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12625 (target_get_tracepoint_status): Add argument.
12626 * target.c (update_current_target): Update.
12627 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12631 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12632 * target.h (struct target_ops) <to_get_trace_status>: Add
12634 (target_get_trace_status): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_get_trace_status): Add 'self' argument.
12637 (remote_start_remote, remote_can_download_tracepoint): Update.
12638 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target.h (struct target_ops) <to_trace_start>: Add argument.
12643 (target_trace_start): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_trace_start): Add 'self' argument.
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12651 (target_trace_set_readonly_regions): Add argument.
12652 * target.c (update_current_target): Update.
12653 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12660 (target_disable_tracepoint): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12666 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12668 (target_enable_tracepoint): Add argument.
12669 * target.c (update_current_target): Update.
12670 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * target.h (struct target_ops) <to_download_trace_state_variable>:
12676 (target_download_trace_state_variable): Add argument.
12677 * target.c (update_current_target): Update.
12678 * remote.c (remote_download_trace_state_variable): Add 'self'
12681 2014-02-19 Tom Tromey <tromey@redhat.com>
12683 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12685 (target_can_download_tracepoint): Add argument.
12686 * target.c (update_current_target): Update.
12687 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12691 * target.h (struct target_ops) <to_download_tracepoint>: Add
12693 (target_download_tracepoint): Add argument.
12694 * target.c (update_current_target): Update.
12695 * remote.c (remote_download_tracepoint): Add 'self' argument.
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12699 * target.h (struct target_ops) <to_trace_init>: Add argument.
12700 (target_trace_init): Add argument.
12701 * target.c (update_current_target): Update.
12702 * remote.c (remote_trace_init): Add 'self' argument.
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12707 * target.c (target_fileio_readlink): Add argument.
12708 * remote.c (remote_hostio_readlink): Add 'self' argument.
12709 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12711 2014-02-19 Tom Tromey <tromey@redhat.com>
12713 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12714 * target.c (target_fileio_unlink): Add argument.
12715 * remote.c (remote_hostio_unlink): Add 'self' argument.
12716 (remote_file_delete): Update.
12717 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12719 2014-02-19 Tom Tromey <tromey@redhat.com>
12721 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12722 * target.c (target_fileio_close): Add argument.
12723 * remote.c (remote_hostio_close): Add 'self' argument.
12724 (remote_hostio_close_cleanup): Update.
12725 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12727 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12732 * target.c (target_fileio_pread): Add argument.
12733 * remote.c (remote_hostio_pread): Add 'self' argument.
12734 (remote_bfd_iovec_pread, remote_file_get): Update.
12735 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12739 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12740 * target.c (target_fileio_pwrite): Add argument.
12741 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12742 (remote_file_put): Update.
12743 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12745 2014-02-19 Tom Tromey <tromey@redhat.com>
12747 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12748 * target.c (target_fileio_open): Add argument.
12749 * remote.c (remote_hostio_open): Add 'self' argument.
12750 (remote_bfd_iovec_open): Add 'self' argument.
12751 (remote_file_put): Add 'self' argument.
12752 (remote_file_get): Add 'self' argument.
12753 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12759 (target_can_run_breakpoint_commands): Add argument.
12760 * target.c (update_current_target): Update.
12761 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12763 (remote_insert_breakpoint): Add 'self' argument.
12764 (remote_insert_hw_breakpoint): Add 'self' argument.
12765 (remote_can_run_breakpoint_commands): Add 'self' argument.
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12769 * target.h (struct target_ops)
12770 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12771 (target_supports_evaluation_of_breakpoint_conditions): Add
12773 * target.c (update_current_target): Update.
12774 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12776 (remote_insert_breakpoint): Add 'self' argument.
12777 (remote_insert_hw_breakpoint): Add 'self' argument.
12778 (remote_supports_cond_breakpoints): Add 'self' argument.
12780 2014-02-19 Tom Tromey <tromey@redhat.com>
12782 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12784 (target_supports_string_tracing): Add argument.
12785 * target.c (update_current_target): Update.
12786 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12788 2014-02-19 Tom Tromey <tromey@redhat.com>
12790 * target.h (struct target_ops)
12791 <to_supports_disable_randomization>: Add argument.
12792 * target.c (find_default_supports_disable_randomization): Add
12794 (target_supports_disable_randomization): Add argument.
12795 (find_default_supports_disable_randomization): Add 'self'
12797 * remote.c (extended_remote_supports_disable_randomization): Add
12799 (remote_supports_disable_randomization): Add 'self' argument.
12800 (extended_remote_create_inferior): Update.
12801 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12806 * target.h (struct target_ops)
12807 <to_supports_enable_disable_tracepoint>: Add argument.
12808 (target_supports_enable_disable_tracepoint): Add argument.
12809 * target.c (update_current_target): Update.
12810 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12813 2014-02-19 Tom Tromey <tromey@redhat.com>
12815 * target.h (struct target_ops) <to_supports_multi_process>: Add
12817 (target_supports_multi_process): Add argument.
12818 * target.c (update_current_target): Update.
12819 * remote.c (remote_supports_multi_process): Add 'self' argument.
12820 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12822 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * target.h (struct target_ops) <to_execution_direction>: Add
12829 (target_execution_direction): Add argument.
12830 * target.c (default_execution_direction): Add 'self' argument.
12831 * record-full.c (record_full_execution_direction): Add 'self'
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12838 (target_can_execute_reverse): Add argument.
12839 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12840 * record-full.c (record_full_can_execute_reverse): Add 'self'
12842 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12847 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12848 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12850 (target_get_ada_task_ptid): Add argument.
12851 * target.c (update_current_target): Update.
12852 (default_get_ada_task_ptid): Add 'self' argument.
12853 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12854 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12855 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12857 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12859 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12861 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12863 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12864 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12870 (target_goto_bookmark): Add argument.
12871 * target.c (dummy_goto_bookmark): Add 'self' argument.
12872 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12874 2014-02-19 Tom Tromey <tromey@redhat.com>
12876 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12877 (target_get_bookmark): Add argument.
12878 * target.c (dummy_get_bookmark): Add 'self' argument.
12879 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12883 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12885 (target_make_corefile_notes): Add argument.
12886 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12887 * procfs.c (procfs_make_note_section): Add 'self' argument.
12888 (procfs_make_note_section): Add 'self' argument.
12889 (procfs_make_note_section): Add 'self' argument.
12890 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12892 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12893 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12894 * exec.c (exec_make_note_section): Add 'self' argument.
12895 (exec_make_note_section): Add 'self' argument.
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12899 * target.h (struct target_ops) <to_find_memory_regions>: Add
12901 (target_find_memory_regions): Add argument.
12902 * target.c (dummy_find_memory_regions): Add 'self' argument.
12903 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12904 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12905 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12906 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12907 * exec. (exec_do_find_memory_regions): New global.
12908 (exec_set_find_memory_regions): Rewrite.
12909 (exec_find_memory_regions): New function.
12910 (init_exec_ops): Use exec_find_memory_regions.
12912 2014-02-19 Tom Tromey <tromey@redhat.com>
12914 * target.h (struct target_ops) <to_supports_non_stop>: Add
12916 * target.c (find_default_supports_non_stop): Add argument.
12917 (target_supports_non_stop): Add argument.
12918 (find_default_supports_non_stop): Add 'self' argument.
12919 * remote.c (remote_supports_non_stop): Add 'self' argument.
12920 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12924 * target.h (struct target_ops) <to_log_command>: Add argument.
12925 (target_log_command): Add argument.
12926 * serial.h (serial_log_command): Add 'self' argument.
12927 * serial.c (serial_log_command): Add 'self' argument.
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12931 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12932 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12934 (target_pid_to_exec_file): Add argument.
12935 * target.c (debug_to_pid_to_exec_file): Add argument.
12936 (update_current_target): Update.
12937 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12938 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12939 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12940 (linux_handle_extended_wait): Update.
12941 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12942 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12943 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12944 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_rcmd>: Add argument.
12949 (target_rcmd): Add argument.
12950 * target.c (debug_to_rcmd): Add argument.
12951 (update_current_target, do_monitor_command): Update.
12952 * remote.c (remote_rcmd): Add 'self' argument.
12953 * monitor.c (monitor_rcmd): Add 'self' argument.
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12957 * windows-nat.c (windows_stop): Add 'self' argument.
12958 * target.h (struct target_ops) <to_stop>: Add argument.
12959 * target.c (target_stop): Add argument.
12960 (debug_to_stop): Add argument.
12961 (update_current_target): Update.
12962 * remote.c (remote_stop): Add 'self' argument.
12963 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12964 (gdbsim_cntrl_c): Update.
12965 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12966 * procfs.c (procfs_stop): Add 'self' argument.
12967 * nto-procfs.c (procfs_stop): Add 'self' argument.
12968 * monitor.c (monitor_stop): Add 'self' argument.
12969 (monitor_open): Update.
12970 * linux-nat.c (linux_nat_stop): Add argument.
12971 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12972 * gnu-nat.c (gnu_stop): Add 'self' argument.
12973 * darwin-nat.c (darwin_stop): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_thread_name>: Add argument.
12978 * target.c (target_thread_name): Add argument.
12979 (update_current_target): Update.
12980 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12982 2014-02-19 Tom Tromey <tromey@redhat.com>
12984 * target.h (struct target_ops) <to_extra_thread_info>: Add
12986 (target_extra_thread_info): Add argument.
12987 * target.c (update_current_target): Update.
12988 * remote.c (remote_threads_extra_info): Add 'self' argument.
12989 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12991 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12992 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12993 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12995 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12997 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12999 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13002 2014-02-19 Tom Tromey <tromey@redhat.com>
13004 * target.h (struct target_ops) <to_program_signals>: Add argument.
13005 * target.c (target_program_signals): Add argument.
13006 * remote.c (remote_program_signals): Add 'self' argument.
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13010 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13011 * target.c (target_pass_signals): Add argument.
13012 * remote.c (remote_pass_signals): Add 'self' argument.
13013 (remote_start_remote): Update.
13014 * procfs.c (procfs_pass_signals): Add 'self' argument.
13015 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13016 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13017 (linux_nat_create_inferior, linux_nat_attach): Update.
13019 2014-02-19 Tom Tromey <tromey@redhat.com>
13021 * windows-nat.c (windows_can_run): Add 'self' argument.
13022 * target.h (struct target_ops) <to_can_run>: Add argument.
13023 (target_can_run): Add argument.
13024 * target.c (debug_to_can_run): Add argument.
13025 (update_current_target): Update.
13026 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13027 * inf-child.c (inf_child_can_run): Add 'self' argument.
13028 * go32-nat.c (go32_can_run): Add 'self' argument.
13030 2014-02-19 Tom Tromey <tromey@redhat.com>
13032 * target.h (struct target_ops) <to_has_exited>: Add argument.
13033 (target_has_exited): Add argument.
13034 * target.c (debug_to_has_exited): Add argument.
13035 (update_current_target): Update.
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13039 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13041 (target_set_syscall_catchpoint): Add argument.
13042 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13044 * target.c (update_current_target): Update.
13046 2014-02-19 Tom Tromey <tromey@redhat.com>
13048 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13050 (target_remove_exec_catchpoint): Add argument.
13051 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13052 (update_current_target): Update.
13053 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13060 (target_insert_exec_catchpoint): Add argument.
13061 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13062 (update_current_target): Update.
13063 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13068 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13070 (target_remove_vfork_catchpoint): Add argument.
13071 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13072 (update_current_target): Update.
13073 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13080 (target_insert_vfork_catchpoint): Add argument.
13081 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13082 (update_current_target): Update.
13083 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13086 2014-02-19 Tom Tromey <tromey@redhat.com>
13088 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13090 (target_remove_fork_catchpoint): Add argument.
13091 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13092 (update_current_target): Update.
13093 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13096 2014-02-19 Tom Tromey <tromey@redhat.com>
13098 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13100 (target_insert_fork_catchpoint): Add argument.
13101 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13102 (update_current_target): Update.
13103 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13106 2014-02-19 Tom Tromey <tromey@redhat.com>
13108 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13110 (target_post_startup_inferior): Add argument.
13111 * target.c (debug_to_post_startup_inferior): Add argument.
13112 (update_current_target): Update.
13113 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13115 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13117 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13119 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13121 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13123 (super_post_startup_inferior): Likewise.
13124 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13126 (super_post_startup_inferior): Likewise.
13127 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13128 Add 'self' argument.
13129 (super_post_startup_inferior): Likewise.
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13133 * target.h (struct target_ops) <to_load>: Add argument.
13134 * target.c (target_load): Add argument.
13135 (debug_to_load): Add argument.
13136 (update_current_target): Update.
13137 * remote.c (remote_load): Add 'self' argument.
13138 * remote-sim.c (gdbsim_load): Add 'self' argument.
13139 * remote-mips.c (mips_load): Add 'self' argument.
13140 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13141 * monitor.c (monitor_load): Add 'self' argument.
13142 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13144 2014-02-19 Tom Tromey <tromey@redhat.com>
13146 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13147 (target_terminal_info): Add argument.
13148 * target.c (debug_to_terminal_info): Add argument.
13149 (default_terminal_info): Likewise.
13150 * inflow.c (child_terminal_info): Add 'self' argument.
13151 * inferior.h (child_terminal_info): Add 'self' argument.
13152 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13154 2014-02-19 Tom Tromey <tromey@redhat.com>
13156 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13158 (target_terminal_save_ours): Add argument.
13159 * target.c (debug_to_terminal_save_ours): Add argument.
13160 (update_current_target): Update.
13161 * inflow.c (terminal_save_ours): Add 'self' argument.
13162 * inferior.h (terminal_save_ours): Add 'self' argument.
13164 2014-02-19 Tom Tromey <tromey@redhat.com>
13166 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13167 (target_terminal_ours): Add argument.
13168 * target.c (debug_to_terminal_ours): Add argument.
13169 (update_current_target): Update.
13170 * remote.c (remote_terminal_ours): Add 'self' argument.
13171 (remote_close): Update.
13172 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13173 * inflow.c (terminal_ours): Add 'self' argument.
13174 * inferior.h (terminal_ours): Add 'self' argument.
13175 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13177 2014-02-19 Pedro Alves <palves@redhat.com>
13178 Tom Tromey <tromey@redhat.com>
13180 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13182 (target_terminal_ours_for_output): Add argument.
13183 * target.c (debug_to_terminal_ours_for_output): Add argument.
13184 (update_current_target): Update.
13185 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13186 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13187 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13189 2014-02-19 Tom Tromey <tromey@redhat.com>
13191 * target.h (struct target_ops) <to_terminal_inferior>: Add
13193 * target.c (target_terminal_inferior): Add argument.
13194 (update_current_target): Update.
13195 * remote.c (remote_terminal_inferior): Add 'self' argument.
13196 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13197 * inflow.c (terminal_inferior): Add 'self' argument.
13198 * inferior.h (terminal_inferior): Add 'self' argument.
13199 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13200 (go32_terminal_inferior): Add 'self' argument.
13202 2014-02-19 Tom Tromey <tromey@redhat.com>
13204 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13205 (target_terminal_init): Add argument.
13206 * target.c (debug_to_terminal_init): Add argument.
13207 (update_current_target): Update.
13208 * inflow.c (terminal_init_inferior): Add 'self' argument.
13209 * inferior.h (terminal_init_inferior): Add 'self' argument.
13210 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13211 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13213 2014-02-19 Tom Tromey <tromey@redhat.com>
13215 * target.h (struct target_ops)
13216 <to_can_accel_watchpoint_condition>: Add argument.
13217 (target_can_accel_watchpoint_condition): Add argument.
13218 * target.c (debug_to_can_accel_watchpoint_condition): Add
13220 (update_current_target): Update.
13221 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13224 2014-02-19 Tom Tromey <tromey@redhat.com>
13226 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13228 (target_region_ok_for_hw_watchpoint): Add argument.
13229 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13230 (default_region_ok_for_hw_watchpoint): Add argument.
13231 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13232 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13234 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13236 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13238 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13240 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13242 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13244 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13245 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13247 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13248 Add 'self' argument.
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13252 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13254 (target_insert_watchpoint): Add argument.
13255 * target.c (debug_to_insert_watchpoint): Add argument.
13256 (update_current_target): Update.
13257 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13258 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13259 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13260 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13261 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13262 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13264 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13265 (procfs_insert_hw_watchpoint): Add 'self' argument.
13266 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13268 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13270 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13272 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13273 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13275 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13278 2014-02-19 Tom Tromey <tromey@redhat.com>
13280 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13282 (target_remove_watchpoint): Add argument.
13283 * target.c (debug_to_remove_watchpoint): Add argument.
13284 (update_current_target): Update.
13285 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13286 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13287 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13288 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13289 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13290 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13292 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13293 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13295 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13297 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13299 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13300 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13302 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13305 2014-02-19 Tom Tromey <tromey@redhat.com>
13307 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13309 (target_remove_hw_breakpoint): Add argument.
13310 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13311 (update_current_target): Update.
13312 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13313 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13315 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13316 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13318 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13321 2014-02-19 Tom Tromey <tromey@redhat.com>
13323 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13325 (target_insert_hw_breakpoint): Add argument.
13326 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13327 (update_current_target): Update.
13328 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13329 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13331 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13332 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13333 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13335 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13338 2014-02-19 Tom Tromey <tromey@redhat.com>
13340 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13342 (target_can_use_hardware_watchpoint): Add argument.
13343 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13344 (update_current_target): Update.
13345 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13347 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13349 * remote.c (remote_check_watch_resources): Add 'self' argument.
13350 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13351 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13353 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13354 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13356 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13358 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13360 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13362 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13364 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13366 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13367 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13369 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13372 2014-02-19 Tom Tromey <tromey@redhat.com>
13374 * target.h (struct target_ops) <to_post_attach>: Add argument.
13375 (target_post_attach): Add argument.
13376 * target.c (debug_to_post_attach): Add argument.
13377 (update_current_target): Update.
13378 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13379 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13380 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13381 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13382 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13384 2014-02-19 Tom Tromey <tromey@redhat.com>
13386 * windows-nat.c (windows_close): Add 'self' argument.
13387 * tracepoint.c (tfile_close): Add 'self' argument.
13388 * target.h (struct target_ops) <to_close>: Add argument.
13389 * target.c (target_close): Add argument.
13390 (update_current_target): Update.
13391 * remote.c (remote_close): Add 'self' argument.
13392 * remote-sim.c (gdbsim_close): Add 'self' argument.
13393 * remote-mips.c (mips_close): Add 'self' argument.
13394 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13395 * record-full.c (record_full_close): Add 'self' argument.
13396 * record-btrace.c (record_btrace_close): Add 'self' argument.
13397 * monitor.h (monitor_close): Add 'self' argument.
13398 * monitor.c (monitor_close): Add 'self' argument.
13399 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13400 * linux-nat.c (linux_nat_close): Add argument.
13401 * go32-nat.c (go32_close): Add 'self' argument.
13402 * exec.c (exec_close_1): Add 'self' argument.
13403 * ctf.c (ctf_close): Add 'self' argument.
13404 * corelow.c (core_close): Add 'self' argument.
13405 (core_close_cleanup): Update.
13406 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13407 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13409 2014-02-19 Tom Tromey <tromey@redhat.com>
13411 * remote.c (remote_load): New function.
13412 (init_remote_ops): Use it.
13414 2014-02-19 Tom Tromey <tromey@redhat.com>
13416 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13418 * common/linux-btrace.h (linux_supports_btrace): Update.
13419 * remote.c (remote_supports_btrace): Add "self" argument.
13420 * target-delegates.c: Rebuild.
13421 * target.c (target_supports_btrace): Remove.
13422 * target.h (struct target_ops) <to_supports_btrace>: Add
13423 target_ops argument.
13424 (target_supports_btrace): New define.
13426 2014-02-19 Tom Tromey <tromey@redhat.com>
13428 * record-full.c (record_full_beneath_to_resume_ops)
13429 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13430 (record_full_beneath_to_wait)
13431 (record_full_beneath_to_store_registers_ops)
13432 (record_full_beneath_to_store_registers)
13433 (record_full_beneath_to_xfer_partial_ops)
13434 (record_full_beneath_to_xfer_partial)
13435 (record_full_beneath_to_insert_breakpoint_ops)
13436 (record_full_beneath_to_insert_breakpoint)
13437 (record_full_beneath_to_remove_breakpoint_ops)
13438 (record_full_beneath_to_remove_breakpoint)
13439 (record_full_beneath_to_stopped_by_watchpoint)
13440 (record_full_beneath_to_stopped_data_address)
13441 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13442 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13443 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13444 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13445 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13446 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13447 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13448 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13449 (record_full_resume, record_full_wait_1)
13450 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13451 (record_full_store_registers, record_full_xfer_partial)
13452 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13453 (record_full_async, record_full_core_xfer_partial): Use target
13455 * target-delegates.c: Rebuild.
13456 * target.c (current_xfer_partial): Remove.
13457 (update_current_target): Do not INHERIT or de_fault
13458 to_insert_breakpoint, to_remove_breakpoint,
13459 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13460 to_is_async_p, to_async. Do not set to_xfer_partial field.
13461 (default_xfer_partial): Simplify.
13462 (current_xfer_partial): Remove.
13463 (target_wait, target_resume): Simplify.
13464 (find_default_can_async_p, find_default_is_async_p): Update.
13465 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13466 to_xfer_partial, to_stopped_by_watchpoint,
13467 to_stopped_data_address.
13468 (target_store_registers): Simplify.
13469 (forward_target_remove_breakpoint)
13470 (forward_target_insert_breakpoint): Remove.
13471 (target_remove_breakpoint, target_insert_breakpoint)
13472 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13473 * target.h (struct target_ops) <to_resume, to_wait,
13474 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13475 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13476 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13478 (forward_target_remove_breakpoint)
13479 (forward_target_insert_breakpoint): Remove.
13480 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13482 (record_btrace_insert_breakpoint): Delegate directly.
13484 2014-02-19 Tom Tromey <tromey@redhat.com>
13487 * target-delegates.c: New file.
13488 * target.c: Include target-delegates.c.
13489 (init_dummy_target): Call install_dummy_methods.
13490 (complete_target_initialization): Call install_delegators.
13491 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13492 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13493 * make-target-delegates: New file.
13495 2014-02-19 Tom Tromey <tromey@redhat.com>
13497 * record.c (find_record_target): Use find_target_at.
13498 * target.c (find_target_at): New function.
13499 * target.h (find_target_at): Declare.
13501 2014-02-19 Tom Tromey <tromey@redhat.com>
13503 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13504 Add 'ops' argument.
13505 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13507 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13508 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13510 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13512 * linux-nat.c (save_sigtrap): Update.
13513 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13514 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13515 (linux_nat_close): Update.
13516 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13518 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13520 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13521 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13522 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13523 (tmp_to_async): Add 'ops' argument.
13524 (record_full_stopped_by_watchpoint, record_full_async)
13525 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13527 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13528 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13529 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13530 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13531 (remote_is_async_p, remote_async): Add 'ops' argument.
13532 (remote_stopped_data_address): Update.
13533 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13534 * target.c (update_current_target)
13535 (find_default_can_async_p, find_default_is_async_p): Update.
13536 (init_dummy_target): Update.
13537 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13538 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13539 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13540 (target_can_async_p, target_is_async_p, target_async)
13541 (target_stopped_by_watchpoint): Update.
13543 2014-02-19 Yao Qi <yao@codesourcery.com>
13546 * gdbarch.sh: Remove startup_gdbarch.
13547 * gdbarch.c: Regenerated.
13548 * gdbarch.h: Likewise.
13550 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13552 * rl78-tdep.c (rl78_g10_register_name): New function.
13553 (rl78_return_value): Add g10 support.
13554 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13557 2014-02-17 Doug Evans <xdje42@gmail.com>
13559 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13560 (SUBDIR_GUILE_SRCS): Ditto.
13561 (scm-gsmob.o): Ditto.
13563 2014-02-17 Yao Qi <yao@codesourcery.com>
13565 * gnu-nat.c (ILL_RPC): Declare defined function.
13567 2014-02-17 Yao Qi <yao@codesourcery.com>
13569 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13570 mach_msg_type_number_t.
13571 (gnu_write_inferior): Likewise.
13573 2014-02-17 Yao Qi <yao@codesourcery.com>
13575 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13577 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13578 (inf_validate_procs, inf_signal): Likewise.
13579 (S_exception_raise_request): Likewise.
13580 (do_mach_notify_dead_name): Likewise.
13581 (steal_exc_port): Likewise.
13582 (gnu_read_inferior): Change 'copy_count''s type to
13583 mach_msg_type_number_t.
13584 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13587 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13589 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13590 flag. Adjust all users; in particular...
13591 (gnu_wait): ..., don't decrement its value in here...
13592 (gnu_create_inferior): ..., and instead set the flag in here,
13593 around the startup_inferior call, and call that one with
13594 START_INFERIOR_TRAPS_EXPECTED.
13596 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13597 (ILL_RPC): ... new macro.
13598 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13599 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13600 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13601 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13602 functions with ILL_RPC macro.
13603 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13604 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13605 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13606 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13607 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13608 (S_proc_getlogin_reply, S_proc_getsid_reply)
13609 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13610 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13611 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13612 (S_proc_getnports_reply, S_proc_is_important_reply)
13613 (S_proc_get_code_reply): New stub functions, generated with
13616 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13617 collected the type check structures.
13619 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13621 2014-02-14 Doug Evans <dje@google.com>
13623 * target.c (target_write_partial): Fix result type.
13625 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13627 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13628 the proper offsets to access fpregset_t.
13630 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13632 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13633 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13634 * h8300-tdep.c (setmachinelist): Remove global.
13635 * hppa-tdep.c (hppa_sigtramp): Remove global.
13636 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13637 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13638 * ravenscar-thread.c (update_target_observer): Remove global.
13639 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13641 2014-02-12 Tom Tromey <tromey@redhat.com>
13643 * common/rsp-low.c: Update comments.
13644 * common/rsp-low.h: Update comments.
13646 2014-02-12 Tom Tromey <tromey@redhat.com>
13648 * common/rsp-low.c (convert_ascii_to_int): Remove.
13649 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13651 2014-02-12 Tom Tromey <tromey@redhat.com>
13653 * common/rsp-low.h (unhexify): Don't declare.
13654 * common/rsp-low.c (unhexify): Remove.
13656 2014-02-12 Tom Tromey <tromey@redhat.com>
13658 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13659 * common/rsp-low.c (convert_int_to_ascii): Remove.
13661 2014-02-12 Tom Tromey <tromey@redhat.com>
13663 * common/rsp-low.h (hexify): Don't declare.
13664 * common/rsp-low.c (hexify): Remove.
13666 2014-02-12 Tom Tromey <tromey@redhat.com>
13668 * common/rsp-low.c (hexify): Never take strlen of argument.
13670 2014-02-12 Tom Tromey <tromey@redhat.com>
13672 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13673 * remote.c (extended_remote_run, remote_rcmd)
13674 (remote_download_trace_state_variable, remote_save_trace_data)
13675 (remote_set_trace_notes): Update.
13676 * tracepoint.c (encode_source_string, tfile_write_status)
13677 (tfile_write_uploaded_tsv): Update.
13679 2014-02-12 Tom Tromey <tromey@redhat.com>
13681 * tracepoint.c: Include rsp-low.h.
13682 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13683 * remote.c: Include rsp-low.h.
13684 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13685 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13686 (remote_unescape_input): Move to common/rsp-low.c.
13687 * common/rsp-low.h: New file.
13688 * common/rsp-low.c: New file.
13689 * Makefile.in (SFILES): Add common/rsp-low.c.
13690 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13691 (COMMON_OBS): Add rsp-low.o.
13692 (rsp-low.o): New target.
13694 2014-02-12 Tom Tromey <tromey@redhat.com>
13696 * utils.h: Include print-utils.h.
13697 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13698 (int_string, core_addr_to_string, core_addr_to_string_nz)
13699 (hex_string, hex_string_custom): Don't declare.
13700 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13701 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13702 (hex_string_custom, int_string, core_addr_to_string)
13703 (core_addr_to_string_nz, host_address_to_string): Move to
13704 common/print-utils.c.
13705 * common/print-utils.h: New file.
13706 * common/print-utils.c: New file
13707 * Makefile.in (SFILES): Add common/print-utils.c.
13708 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13709 (COMMON_OBS): Add print-utils.o.
13710 (print-utils.o): New target.
13712 2014-02-12 Tom Tromey <tromey@redhat.com>
13714 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13716 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13718 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13720 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13722 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13723 if a PT_IO ptrace request returns sucessfully but indicates that 0
13724 bytes were transferred.
13726 2014-02-12 Pedro Alves <palves@redhat.com>
13727 Kevin Buettner <kevinb@redhat.com>
13729 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13730 TYPE_INSTANCE_FLAG_CODE_SPACE.
13732 2014-02-12 Pedro Alves <palves@redhat.com>
13734 * h8300-tdep.c (pseudo_from_raw_register)
13735 (raw_from_pseudo_register): New functions.
13736 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13739 2014-02-12 Pedro Alves <palves@redhat.com>
13741 * h8300-tdep.c (h8300_register_sim_regno): New function.
13742 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13743 gdbarch_register_sim_regno hook.
13745 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13747 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13749 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13751 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13753 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13755 * obsd-tdep.h (obsd_init_abi): New prototype.
13756 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13757 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13758 (obsd_init_abi): New functions.
13759 * i386obsd-tdep.c: Include "obsd-tdep.h".
13760 (i386obsd_init_abi): Call obsd_init_abi.
13761 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13762 (amd64obsd_init_abi): Call obsd_init_abi.
13763 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13764 obsd-tdep.c to gdb_target_obs.
13766 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13768 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13769 double float arguments to 16-byte in the argument slots.
13771 2014-02-11 Doug Evans <xdje42@gmail.com>
13773 * configure.ac: Don't crash if pkg-config is not found and guile
13774 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13776 * configure: Regenerate.
13778 2014-02-11 Yao Qi <yao@codesourcery.com>
13780 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13781 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13782 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13783 * gnu-nat.c (gnu_xfer_memory): Likewise.
13784 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13785 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13786 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13787 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13789 2014-02-11 Yao Qi <yao@codesourcery.com>
13791 * target.h (enum target_xfer_error): Rename to ...
13792 (enum target_xfer_status): ... it. New. All users updated.
13793 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13795 (TARGET_XFER_STATUS_ERROR_P): New macro.
13796 (target_xfer_error_to_string): Remove declaration.
13797 (target_xfer_status_to_string): Declare.
13798 (target_xfer_partial_ftype): Adjust it.
13799 (struct target_ops) <to_xfer_partial>: Return
13800 target_xfer_status. Add argument xfered_len. Update
13802 * target.c (target_xfer_error_to_string): Rename to ...
13803 (target_xfer_status_to_string): ... it. New. All callers
13805 (target_read_live_memory): Likewise. Call target_xfer_partial
13806 instead of target_read.
13807 (memory_xfer_live_readonly_partial): Return
13808 target_xfer_status. Add argument xfered_len.
13809 (raw_memory_xfer_partial): Likewise.
13810 (memory_xfer_partial_1): Likewise.
13811 (memory_xfer_partial): Likewise.
13812 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13813 properly. Update debug message.
13814 (default_xfer_partial, current_xfer_partial): Likewise.
13815 (target_write_partial): Likewise.
13816 (target_read_partial): Likewise. All callers updated.
13817 (read_whatever_is_readable): Likewise.
13818 (target_write_with_progress): Likewise.
13819 (target_read_alloc_1): Likewise.
13821 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13822 * auxv.c (procfs_xfer_auxv): Likewise.
13823 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13824 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13825 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13826 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13827 * corefile.c (read_memory): Adjust.
13828 * corelow.c (core_xfer_partial): Likewise.
13829 * ctf.c (ctf_xfer_partial): Likewise.
13830 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13832 (darwin_xfer_partial): Likewise.
13833 * exec.c (section_table_xfer_memory_partial): Likewise. All
13835 (exec_xfer_partial): Likewise.
13836 * exec.h (section_table_xfer_memory_partial): Update
13838 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13840 (gnu_xfer_partial): Likewise.
13841 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13842 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13843 (ia64_hpux_xfer_solib_got): Likewise.
13844 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13845 type of 'partial_len' to ULONGEST.
13846 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13847 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13848 (linux_nat_xfer_partial): Likewise.
13849 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13850 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13851 * monitor.c (monitor_xfer_memory): Likewise.
13852 (monitor_xfer_partial): Likewise.
13853 * procfs.c (procfs_xfer_partial): Likewise.
13854 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13855 * record-full.c (record_full_xfer_partial): Likewise.
13856 (record_full_core_xfer_partial): Likewise.
13857 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13858 (gdbsim_xfer_partial): Likewise.
13859 * remote.c (remote_write_bytes_aux): Likewise. All callers
13861 (remote_write_bytes, remote_read_bytes): Likewise. All
13863 (remote_flash_erase): Likewise. All callers updated.
13864 (remote_write_qxfer): Likewise. All callers updated.
13865 (remote_read_qxfer): Likewise. All callers updated.
13866 (remote_xfer_partial): Likewise.
13867 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13868 (rs6000_xfer_shared_libraries): Likewise.
13869 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13870 (sol_thread_xfer_partial): Likewise.
13871 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13872 (sparc_xfer_partial): Likewise.
13873 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13875 (spu_xfer_partial): Likewise.
13876 * spu-multiarch.c (spu_xfer_partial): Likewise.
13877 * tracepoint.c (tfile_xfer_partial): Likewise.
13878 * windows-nat.c (windows_xfer_memory): Likewise.
13879 (windows_xfer_shared_libraries): Likewise.
13880 (windows_xfer_partial): Likewise.
13881 * valprint.c: Replace 'target_xfer_error' with
13882 'target_xfer_status' in comments.
13884 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13886 Checked in by Joel Brobecker <brobecker@adacore.com>.
13887 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13889 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13891 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13892 function parameters.
13894 2014-02-10 Will Newton <will.newton@linaro.org>
13896 * elfread.c (elf_rel_plt_read): Look for a .got section if
13897 looking up .got.plt fails.
13898 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13899 on address passed to elf_gnu_ifunc_record_cache.
13900 (elf_gnu_ifunc_resolve_addr): Likewise.
13901 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13903 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13905 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13906 (X_RETTURN): New macro.
13907 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13909 * sparc64-tdep.c (sparc64_init_abi): Hook
13910 sparc_in_function_epilogue_p.
13912 2014-02-10 Gary Benson <gbenson@redhat.com>
13914 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13915 Rename name_matcher to symbol_matcher.
13917 2014-02-10 Gary Benson <gbenson@redhat.com>
13919 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13920 Use expand_symtabs_file_matcher_ftype and
13921 expand_symtabs_symbol_matcher_ftype.
13923 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13925 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13926 (struct ada_symbol_cache): New.
13927 (ada_free_symbol_cache): Forward declare.
13928 (struct ada_pspace_data): New.
13929 (ada_pspace_data_handle): New static global.
13930 (get_ada_pspace_data, ada_pspace_data_cleanup)
13931 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13932 (cache_space, cache): Delete, now folded inside struct
13934 (ada_get_symbol_cache): New function.
13935 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13937 (_initialize_ada_language): Remove initialization of cache_space.
13938 Move call to observer_attach_inferior_exit up, grouping it
13939 with the other observer registrations inside this function.
13940 Rename command to be more general. Add call to
13941 register_program_space_data_with_cleanup.
13943 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13945 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13946 ada_new_objfile_observer.
13947 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13948 (_initialize_tasks): Update uses of ada_new_objfile_observer
13949 and ada_tasks_normal_stop_observer.
13951 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13953 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13954 returned by the 'Length attribute to integer.
13956 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13958 * ada-lang.c (_initialize_ada_language): Initialize
13959 cache_space obstack.
13961 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13963 * ada-lang.c (HASH_SIZE): New macro.
13964 (struct cache_entry): New type.
13965 (cache_space, cache): New static globals.
13966 (ada_clear_symbol_cache, find_entry): New functions.
13967 (lookup_cached_symbol, cache_symbol): Implement.
13968 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13969 (_initialize_ada_language): Attach ada_new_objfile_observer
13970 and ada_free_objfile_observer.
13972 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13974 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13975 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13976 struct block * parameter.
13977 (ada_lookup_symbol_list_worker): Constify local variable "block".
13978 Remove cast which is no longer necessary.
13980 2014-02-10 Doug Evans <xdje42@gmail.com>
13982 Add Guile as an extension language.
13983 * NEWS: Mention Guile scripting.
13984 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13985 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13986 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13987 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13988 (CLIBS): Add GUILE_LIBS.
13989 (install-guile): New rule.
13990 (guile.o): New rule.
13991 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13992 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13993 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13994 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13995 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13996 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13997 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13998 * configure.ac: New option --with-guile.
13999 * configure: Regenerate.
14000 * config.in: Regenerate.
14001 * auto-load.c: Remove #include "python/python.h". Add #include
14002 "gdb/section-scripts.h".
14003 (source_section_scripts): Handle Guile scripts.
14004 (_initialize_auto_load): Add name of Guile objfile script to
14005 scripts-directory help text.
14006 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14007 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14008 (struct breakpoint): New member scm_bp_object.
14009 * defs.h (enum command_control_type): New value guile_control.
14010 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14012 (show_user): Update comment.
14013 (_initialize_cli_cmds): Update help text for "show user". Update help
14014 text for max-user-call-depth.
14015 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14017 (multi_line_command_p): Add guile_control.
14018 (print_command_lines): Handle guile_control.
14019 (execute_control_command, recurse_read_control_structure): Ditto.
14020 (process_next_line): Recognize "guile" commands.
14021 * disasm.c (gdb_disassemble_info): Make non-static.
14022 * disasm.h: #include "dis-asm.h".
14023 (struct gdbarch): Add forward decl.
14024 (gdb_disassemble_info): Declare.
14025 * extension.c: #include "guile/guile.h".
14026 (extension_languages): Add guile.
14027 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14028 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14029 * gdbtypes.c (get_unsigned_type_max): New function.
14030 (get_signed_type_minmax): New function.
14031 * gdbtypes.h (get_unsigned_type_max): Declare.
14032 (get_signed_type_minmax): Declare.
14033 * guile/README: New file.
14034 * guile/guile-internal.h: New file.
14035 * guile/guile.c: New file.
14036 * guile/guile.h: New file.
14037 * guile/scm-arch.c: New file.
14038 * guile/scm-auto-load.c: New file.
14039 * guile/scm-block.c: New file.
14040 * guile/scm-breakpoint.c: New file.
14041 * guile/scm-disasm.c: New file.
14042 * guile/scm-exception.c: New file.
14043 * guile/scm-frame.c: New file.
14044 * guile/scm-gsmob.c: New file.
14045 * guile/scm-iterator.c: New file.
14046 * guile/scm-lazy-string.c: New file.
14047 * guile/scm-math.c: New file.
14048 * guile/scm-objfile.c: New file.
14049 * guile/scm-ports.c: New file.
14050 * guile/scm-pretty-print.c: New file.
14051 * guile/scm-safe-call.c: New file.
14052 * guile/scm-string.c: New file.
14053 * guile/scm-symbol.c: New file.
14054 * guile/scm-symtab.c: New file.
14055 * guile/scm-type.c: New file.
14056 * guile/scm-utils.c: New file.
14057 * guile/scm-value.c: New file.
14058 * guile/lib/gdb.scm: New file.
14059 * guile/lib/gdb/boot.scm: New file.
14060 * guile/lib/gdb/experimental.scm: New file.
14061 * guile/lib/gdb/init.scm: New file.
14062 * guile/lib/gdb/iterator.scm: New file.
14063 * guile/lib/gdb/printing.scm: New file.
14064 * guile/lib/gdb/types.scm: New file.
14065 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14066 (VPATH): Add $(GUILE_SRCDIR).
14067 (GUILE_DIR): New variable.
14068 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14069 (all): Add stamp-guile dependency.
14070 (stamp-guile): New rule.
14071 (clean-guile, install-guile, uninstall-guile): New rules.
14072 (install-only): Add install-guile dependency.
14073 (uninstall): Add uninstall-guile dependency.
14074 (clean): Add clean-guile dependency.
14076 2014-02-09 Doug Evans <xdje42@gmail.com>
14078 Revert this patch (which I approved, mea culpa).
14080 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14082 * Makefile.in (all-lib): Remove.
14083 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14085 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14087 Fix Python stack corruption.
14088 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14091 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14093 * Makefile.in (all-lib): Remove.
14094 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14096 2014-02-07 Doug Evans <dje@google.com>
14098 * extension-priv.h (extension_language_script_ops): Add comment.
14099 (extension_language_ops): Add comment.
14100 (active_ext_lang_state): Fix typo in comment.
14102 2014-02-07 Pedro Alves <palves@redhat.com>
14104 PR breakpoints/16292
14105 * infrun.c (handle_signal_stop) <signal arrives while stepping
14106 over a breakpoint>: Switch back to the stepping thread.
14108 2014-02-07 Yao Qi <yao@codesourcery.com>
14110 * target.c (target_xfer_partial): Return zero if LEN is zero.
14112 2014-02-07 Yao Qi <yao@codesourcery.com>
14114 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14115 (ld_so_xfer_auxv): Likewise.
14116 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14117 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14118 * corelow.c (core_xfer_partial): Likewise.
14119 * ctf.c (ctf_xfer_partial): Likewise.
14120 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14121 (darwin_xfer_partial): Likewise.
14122 * exec.c (exec_xfer_partial): Likewise.
14123 * gnu-nat.c (gnu_xfer_partial): Likewise.
14124 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14125 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14126 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14127 * linux-nat.c (linux_xfer_siginfo): Likewise.
14128 (linux_proc_xfer_spu): Likewise.
14129 * procfs.c (procfs_xfer_partial): Likewise.
14130 * record-full.c (record_full_xfer_partial): Likewise.
14131 (record_full_core_xfer_partial): Likewise.
14132 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14133 * remote.c (remote_write_qxfer): Likewise.
14134 (remote_write_qxfer, remote_read_qxfer): Likewise.
14135 (remote_xfer_partial): Likewise.
14136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14137 (rs6000_xfer_shared_libraries): Likewise.
14138 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14139 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14140 (spu_xfer_partial): Likewise.
14141 * target.c (memory_xfer_partial_1): Likewise.
14142 * tracepoint.c (tfile_xfer_partial): Likewise.
14143 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14144 (windows_xfer_partial): Likewise.
14146 2014-02-07 Yao Qi <yao@codesourcery.com>
14148 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14150 (core_xfer_shared_libraries_aix): Likewise.
14151 * gdbarch.c, gdbarch.h: Regenerated.
14152 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14153 ULONGEST. Change 'len_avail' type to ULONGEST.
14154 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14155 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14157 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14159 2014-02-07 Yao Qi <yao@codesourcery.com>
14161 * corefile.c (memory_error): Get 'exception' from ERR and pass
14162 'exception' to throw_error.
14164 2014-02-06 Doug Evans <xdje42@gmail.com>
14166 * configure.ac (libpython checking): Remove all but python.o from
14167 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14168 * configure: Regenerate.
14170 * Makefile.in (SFILES): Add extension.c.
14171 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14172 (COMMON_OBS): Add extension.o.
14173 * extension.h: New file.
14174 * extension-priv.h: New file.
14175 * extension.c: New file.
14177 * python/python-internal.h: #include "extension.h".
14178 (gdbpy_auto_load_enabled): Declare.
14179 (gdbpy_apply_val_pretty_printer): Declare.
14180 (gdbpy_apply_frame_filter): Declare.
14181 (gdbpy_preserve_values): Declare.
14182 (gdbpy_breakpoint_cond_says_stop): Declare.
14183 (gdbpy_breakpoint_has_cond): Declare.
14184 (void source_python_script_for_objfile): Delete.
14185 * python/python.c: #include "extension-priv.h".
14186 Delete inclusion of "observer.h".
14187 (extension_language_python): Moved here and renamed from
14188 script_language_python in py-auto-load.c.
14189 Redefined to be of type extension_language_defn.
14190 (python_extension_script_ops): New global.
14191 (python_extension_ops): New global.
14192 (struct python_env): New member previous_active.
14193 (restore_python_env): Call restore_active_ext_lang.
14194 (ensure_python_env): Call set_active_ext_lang.
14195 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14197 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14199 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14201 (gdbpy_eval_from_control_command): Renamed from
14202 eval_python_from_control_command, made static. New arg extlang.
14203 (gdbpy_source_script) Renamed from source_python_script, made static.
14205 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14206 result to int. New arg extlang.
14207 (gdbpy_source_objfile_script): Renamed from
14208 source_python_script_for_objfile, made static. New arg extlang.
14209 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14210 static. New args extlang, extlang_printers. Change result type to
14212 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14213 static. New arg extlang. Rename arg printers to extlang_printers
14214 and change type to ext_lang_type_printers *.
14215 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14216 static. Replace argument arg with extlang, extlang_printers.
14217 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14218 (!HAVE_PYTHON, source_python_script): Delete.
14219 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14220 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14221 (!HAVE_PYTHON, start_type_printers): Delete.
14222 (!HAVE_PYTHON, apply_type_printers): Delete.
14223 (!HAVE_PYTHON, free_type_printers): Delete.
14224 (_initialize_python): Delete call to observer_attach_before_prompt.
14225 (finalize_python): Set/restore active extension language.
14226 (gdbpy_finish_initialization) Renamed from
14227 finish_python_initialization, made static. New arg extlang.
14228 (gdbpy_initialized): New function.
14229 * python/python.h: #include "extension.h". Delete #include
14230 "value.h", "mi/mi-cmds.h".
14231 (extension_language_python): Declare.
14232 (GDBPY_AUTO_FILE_NAME): Delete.
14233 (enum py_bt_status): Moved to extension.h and renamed to
14234 ext_lang_bt_status.
14235 (enum frame_filter_flags): Moved to extension.h.
14236 (enum py_frame_args): Moved to extension.h and renamed to
14237 ext_lang_frame_args.
14238 (finish_python_initialization): Delete.
14239 (eval_python_from_control_command): Delete.
14240 (source_python_script): Delete.
14241 (apply_val_pretty_printer): Delete.
14242 (apply_frame_filter): Delete.
14243 (preserve_python_values): Delete.
14244 (gdbpy_script_language_defn): Delete.
14245 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14246 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14248 * auto-load.c: #include "extension.h".
14249 (GDB_AUTO_FILE_NAME): Delete.
14250 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14251 (script_language_gdb): Delete, moved to extension.c and renamed to
14252 extension_language_gdb.
14253 (source_gdb_script_for_objfile): Delete.
14254 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14255 (loaded_script): Change type of language member to
14256 struct extension_language_defn *.
14257 (init_loaded_scripts_info): Initialize
14258 unsupported_script_warning_printed.
14259 (maybe_add_script): Make static. Change type of language arg to
14260 struct extension_language_defn *.
14261 (clear_section_scripts): Reset unsupported_script_warning_printed.
14262 (auto_load_objfile_script_1): Rewrite to use extension language API.
14263 (auto_load_objfile_script): Make public. Remove support-compiled-in
14264 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14265 (source_section_scripts): Rewrite to use extension language API.
14266 (load_auto_scripts_for_objfile): Rewrite to use
14267 auto_load_scripts_for_objfile.
14268 (collect_matching_scripts_data): Change type of language member to
14269 struct extension_language_defn *.
14270 (auto_load_info_scripts): Change type of language arg to
14271 struct extension_language_defn *.
14272 (unsupported_script_warning_print): New function.
14273 (script_not_found_warning_print): Make static.
14274 (_initialize_auto_load): Rewrite construction of scripts-directory
14276 * auto-load.h (struct objfile): Add forward decl.
14277 (struct script_language): Delete.
14278 (struct auto_load_pspace_info): Add forward decl.
14279 (struct extension_language_defn): Add forward decl.
14280 (maybe_add_script): Delete.
14281 (auto_load_objfile_script): Declare.
14282 (script_not_found_warning_print): Delete.
14283 (auto_load_info_scripts): Update prototype.
14284 (auto_load_gdb_scripts_enabled): Declare.
14285 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14286 auto_load_python_scripts_enabled and made public.
14287 (script_language_python): Delete, moved to python.c.
14288 (gdbpy_script_language_defn): Delete.
14289 (info_auto_load_python_scripts): Update to use
14290 extension_language_python.
14292 * breakpoint.c (condition_command): Replace call to
14293 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14294 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14295 with call to breakpoint_ext_lang_cond_says_stop.
14296 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14297 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14298 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14299 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14301 (local_setattro): Print name of extension language with existing
14304 * valprint.c (val_print, value_print): Update to call
14305 apply_ext_lang_val_pretty_printer.
14306 * cp-valprint.c (cp_print_value): Update call to
14307 apply_ext_lang_val_pretty_printer.
14308 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14309 (gdbpy_apply_val_pretty_printer): Renamed from
14310 apply_val_pretty_printer. New arg extlang.
14311 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14313 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14314 extension language API.
14315 * cli/cli-script.c (execute_control_command): Update to call
14316 eval_ext_lang_from_control_command.
14318 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14319 enum ext_lang_bt_status values. Update call to
14320 apply_ext_lang_frame_filter.
14321 (mi_cmd_stack_list_locals): Ditto.
14322 (mi_cmd_stack_list_args): Ditto.
14323 (mi_cmd_stack_list_variables): Ditto.
14324 * mi/mi-main.c: Delete #include "python/python-internal.h".
14325 Add #include "extension.h".
14326 (mi_cmd_list_features): Replace reference to python internal variable
14327 gdb_python_initialized with call to ext_lang_initialized_p.
14329 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14330 Update to use enum ext_lang_frame_args. Update to call
14331 apply_ext_lang_frame_filter.
14332 * python/py-framefilter.c (extract_sym): Update to use enum
14333 ext_lang_bt_status.
14334 (extract_value, py_print_type, py_print_value): Ditto.
14335 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14336 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14337 (py_print_frame): Ditto.
14338 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14339 New arg extlang. Update to use enum ext_lang_bt_status.
14341 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14342 finish_python_initialization. Replace with call to
14343 finish_ext_lang_initialization.
14345 * typeprint.c (do_free_global_table): Update to call
14346 free_ext_lang_type_printers.
14347 (create_global_typedef_table): Update to call
14348 start_ext_lang_type_printers.
14349 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14350 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14351 (type_print_options): Change type of global_printers from "void *"
14352 to "struct ext_lang_type_printers *".
14354 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14355 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14356 (gdbpy_preserve_values): Renamed from preserve_python_values.
14358 (!HAVE_PYTHON, preserve_python_values): Delete.
14360 * utils.c (quit_flag): Delete, moved to extension.c.
14361 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14364 * eval.c: Delete #include "python/python.h".
14365 * main.c: Delete #include "python/python.h".
14367 * defs.h: Update comment.
14369 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14373 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14375 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14378 2014-02-05 Yao Qi <yao@codesourcery.com>
14380 * remote.c (remote_pass_signals): Remove local 'buf' and use
14382 (remote_program_signals): Likewise.
14384 2014-02-05 Yao Qi <yao@codesourcery.com>
14386 * ctf.c: Include "inferior.h" and "gdbthread.h".
14387 (CTF_PID): A new macro.
14388 (ctf_open): Call inferior_appeared and add_thread_silent.
14389 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14390 (ctf_thread_alive): New function.
14391 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14393 2014-02-05 Yao Qi <yao@codesourcery.com>
14397 2013-05-24 Yao Qi <yao@codesourcery.com>
14399 * tracepoint.c (TFILE_PID): Remove.
14400 (tfile_open): Don't add thread and inferior.
14401 (tfile_close): Don't set 'inferior_ptid'. Don't call
14402 exit_inferior_silent.
14403 (tfile_thread_alive): Remove.
14404 (init_tfile_ops): Don't set field 'to_thread_alive' of
14407 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14409 * remote.c (remote_start_remote): Call remote_check_symbols even
14410 if only symbol-file (not file) has been given.
14412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14414 * gdbarch.sh (skip_entrypoint): New callback.
14415 * gdbarch.c, gdbarch.h: Regenerate.
14416 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14417 * infrun.c (fill_in_stop_func): Likewise.
14418 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14419 (ppc_elfv2_elf_make_msymbol_special): New function.
14420 (ppc_elfv2_skip_entrypoint): Likewise.
14421 (ppc_linux_init_abi): Install them for ELFv2.
14423 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14425 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14426 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14427 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14428 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14429 structures returned in GPRs.
14431 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14434 offset to the stack parameter list for the ELFv2 ABI.
14436 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14438 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14439 set_gdbarch_convert_from_func_ptr_addr and
14440 set_gdbarch_elf_make_msymbol_special for ELFv1.
14441 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14442 function descriptors on ELFv1.
14443 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14444 set up r12 at function entry.
14446 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14448 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14449 (struct gdbarch_tdep): New member elf_abi.
14451 * rs6000-tdep.c: Include "elf/ppc64.h".
14452 (rs6000_gdbarch_init): Detect ELF ABI version.
14454 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14457 within a register pair holding a DFP 128-bit value on little-endian.
14458 (ppc64_sysv_abi_return_value_base): Likewise.
14459 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14460 (dfp_pseudo_register_write): Likewise.
14462 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14465 offset on little-endian when passing _Decimal32.
14466 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14468 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14470 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14471 of the overlapped FP register within the VSX register on little-
14473 (efpr_pseudo_register_write): Likewise.
14475 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14477 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14478 offset on little-endian when passing small structures.
14480 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14482 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14483 (struct ppc64_sysv_argpos): New data structure.
14484 (ppc64_sysv_abi_push_float): Remove.
14485 (ppc64_sysv_abi_push_val): New function.
14486 (ppc64_sysv_abi_push_integer): Likewise.
14487 (ppc64_sysv_abi_push_freg): Likewise.
14488 (ppc64_sysv_abi_push_vreg): Likewise.
14489 (ppc64_sysv_abi_push_param): Likewise.
14490 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14491 (ppc64_sysv_abi_return_value_base): New function.
14492 (ppc64_sysv_abi_return_value): Refactor to use it.
14494 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14496 * NEWS: Document new target powerpc64le-*-linux*.
14498 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14500 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14501 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14503 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14504 register set used in ELF core dumps. Add floating-point register set.
14506 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14508 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14509 dwarf2_to_gdb[] table using symbolic constants. Adjust
14510 penultimate entry from number representing the PC register
14511 to symbolic constant representing the MDR register. Add
14512 constant for the PC register to the end of the table.
14514 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14516 * bsd-kvm.c: Include <sys/param.h>
14518 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14520 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14522 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14524 * ada-lang.h (clear_ada_sym_cache): Delete.
14526 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14528 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14530 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14532 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14533 the sigreturn register save area only if the syscall is
14536 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14538 * valops.c (value_slice): Minor reformatting.
14540 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14542 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14544 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14546 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14547 New static globals.
14548 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14549 (ada_ignore_descriptive_types_p): New static global.
14550 (find_parallel_type_by_descriptive_type): Return immediately
14551 if ada_ignore_descriptive_types_p is set.
14552 (_initialize_ada_language): Register new commands "maintenance
14553 set ada", "maintenance show ada", "maintenance set ada
14554 ignore-descriptive-types" and "maintenance show ada
14555 ignore-descriptive-types".
14556 * NEWS: Add entry for new "maint ada set/show
14557 ignore-descriptive-types" commands.
14559 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14561 * record-btrace.c (record_btrace_close): Call btrace_teardown
14564 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14566 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14569 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14571 * ada-typeprint (type_is_full_subrange_of_target_type):
14573 (print_range): Add parameter bounds_prefered_p. If not set,
14574 try printing range types using the name of their base type.
14575 (print_range_type): Add parameter bounds_prefered_p.
14576 Use it in call to print_range.
14577 (print_array_type, ada_print_type): Update calls to print_range
14578 and print_range_type.
14580 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14582 * ada-typeprint.c (print_array_type, print_choices, print_range)
14583 (print_range_bound, print_dynamic_range_bound, print_range_type):
14584 Remove declaration.
14586 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14588 * ada-typeprint.c (print_range): Add missing empty line
14589 after local declaration.
14591 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14593 * ada-valprint.c (print_optional_low_bound): Get index_type's
14594 target type for as long as it is a TYPE_CODE_RANGE.
14596 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14598 * procfs.c (procfs_make_note_section): Remove assertion and
14599 associated comment.
14601 2014-01-24 Yao Qi <yao@codesourcery.com>
14603 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14604 * corelow.c (get_core_siginfo): Likewise.
14606 2014-01-24 Yao Qi <yao@codesourcery.com>
14608 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14609 ULONGEST. Don't check 'len' is negative.
14610 (remote_write_bytes): Change type of 'len' to ULONGEST.
14612 2014-01-23 Tom Tromey <tromey@redhat.com>
14615 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14616 Handle exception from frame.block.
14617 (FrameVars.fetch_frame_locals): Likewise.
14619 2014-01-23 Tom Tromey <tromey@redhat.com>
14622 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14623 on a NULL pointer. Move "goto error" to correct place.
14625 2014-01-23 Tom Tromey <tromey@redhat.com>
14628 * python/py-framefilter.c (apply_frame_filter): Call
14629 ensure_python_env after computing gdbarch.
14631 2014-01-23 Yao Qi <yao@codesourcery.com>
14633 * target.c (raw_memory_xfer_partial): Change argument type
14634 from void * to gdb_byte *.
14635 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14637 2014-01-22 Doug Evans <dje@google.com>
14639 New gdbserver option --debug-format=timestamp.
14640 * NEWS: Mention it.
14642 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14644 * syscalls/s390x-linux.xml: New file.
14645 * syscalls/s390-linux.xml: New file.
14646 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14647 (XML_SYSCALL_FILENAME_S390X): Likewise.
14648 (op_svc): New enum value for SVC opcode.
14649 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14650 (s390_linux_get_syscall_number): New function.
14651 (s390_gdbarch_init): Register '*get_syscall_number' and the
14652 syscall xml file name.
14653 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14654 "s390-linux.xml" and "s390x-linux.xml".
14655 * NEWS: Announce new feature.
14657 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14659 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14661 2014-01-22 Pedro Alves <palves@redhat.com>
14663 * xtensa-config.c: Include defs.h.
14665 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14667 * common/common-utils.h: Add "ARI:" comment beside __func__
14670 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14672 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14673 documentation a bit.
14675 2014-01-21 Roland McGrath <mcgrathr@google.com>
14677 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14678 * configure: Regenerate.
14679 * aclocal.m4: Regenerate.
14680 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14681 New substituted variables.
14682 (install-strip): New target.
14683 (INSTALL_SCRIPT): New substituted variable.
14684 (FLAGS_TO_PASS): Add it.
14685 (install-only): Use $(INSTALL_SCRIPT) rather than
14686 $(INSTALL_PROGRAM) for gcore.
14688 2014-01-20 Tom Tromey <tromey@redhat.com>
14690 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14693 2014-01-20 Tom Tromey <tromey@redhat.com>
14695 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14696 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14697 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14698 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14699 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14700 (struct cmd_list_element) <flags>: Remove.
14701 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14702 doc_allocated>: New fields.
14703 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14705 * maint.c (maintenance_do_deprecate): Update.
14706 * top.c (execute_command): Update.
14708 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14710 * xtensa-linux-nat.c: Include asm/ptrace.h.
14712 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14714 * Makefile.in (SFILES): Add d-support.c.
14715 (COMMON_OBS): Add d-support.o.
14716 * d-lang.h (d_parse_symbol): Add comment, now defined in
14718 * d-lang.c (parse_call_convention)
14719 (parse_attributes, parse_function_types)
14720 (parse_function_args, parse_type, parse_identifier)
14721 (call_convention_p, d_parse_symbol): Move functions to ...
14722 * d-support.c: ... New file.
14724 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14726 * d-lang.h (d_parse_symbol): Add declaration.
14727 * d-lang.c (extract_identifiers)
14728 (extract_type_info): Remove functions.
14729 (parse_call_convention, parse_attributes)
14730 (parse_function_types, parse_function_args)
14731 (parse_type, parse_identifier, call_convention_p)
14732 (d_parse_symbol): New functions.
14733 (d_demangle): Use d_parse_symbol to demangle D symbols.
14735 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14737 * d-lang.h (struct builtin_d_type): New data type.
14738 (builtin_d_type): Add declaration.
14739 * d-lang.c (d_language_arch_info, build_d_types)
14740 (builtin_d_type): New functions.
14741 (enum d_primitive_types): New data type.
14742 (d_language_defn): Change c_language_arch_info to
14743 d_language_arch_info.
14744 (d_type_data): New static variable.
14745 (_initialize_d_language): Initialize d_type_data.
14747 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14749 * d-lang.h (d_main_name): Add declaration.
14750 * d-lang.c (d_main_name): New function.
14751 * symtab.c (find_main_name): Add call to d_main_name.
14753 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14755 * d-lang.c (d_language_defn): Change macro_expansion_c to
14756 macro_expansion_no.
14758 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14760 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14762 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14764 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14765 gdb_exception" declaration.
14766 * remote.c (getpkt_or_notif_sane): Likewise.
14768 2014-01-17 Doug Evans <dje@google.com>
14770 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14771 function, contents of dirnames_to_char_ptr_vec_append moved here.
14772 (delim_string_to_char_ptr_vec): New function.
14773 (dirnames_to_char_ptr_vec_append): Rewrite.
14774 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14776 2014-01-17 Doug Evans <dje@google.com>
14778 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14780 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14781 #include "common-utils.h".
14782 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14783 * common/vec.h (VEC_ASSERT_PASS): Update.
14784 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14785 (MACH_CHECK_ERROR): Update.
14787 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14789 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14791 * gdbarch.h: Regenerate.
14793 2014-01-16 Tom Tromey <tromey@redhat.com>
14795 * value.c (struct value) <regnum>: Move earlier.
14797 2014-01-16 Tom Tromey <tromey@redhat.com>
14799 * remote.c (extended_remote_create_inferior): Rename from
14800 extended_remote_create_inferior_1. Add "ops" argument. Remove
14801 old implementation.
14803 2014-01-16 Pedro Alves <palves@redhat.com>
14805 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14806 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14809 2014-01-16 Doug Evans <dje@google.com>
14811 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14815 * btrace.h (btrace_thread_flag): New.
14816 (struct btrace_thread_info) <flags>: New.
14817 * record-btrace.c (record_btrace_resume_thread)
14818 (record_btrace_find_thread_to_move, btrace_step_no_history)
14819 (btrace_step_stopped, record_btrace_start_replaying)
14820 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14821 (record_btrace_find_resume_thread): New.
14822 (record_btrace_resume, record_btrace_wait): Extend.
14823 (record_btrace_can_execute_reverse): New.
14824 (record_btrace_open): Fail in non-stop mode.
14825 (record_btrace_set_replay): Split into this, ...
14826 (record_btrace_stop_replaying): ... this, ...
14827 (record_btrace_clear_histories): ... and this.
14828 (init_record_btrace_ops): Init to_can_execute_reverse.
14829 * NEWS: Announce it.
14831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14833 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14834 (forward_target_decr_pc_after_break)
14835 (target_decr_pc_after_break): New.
14836 * target.c (forward_target_decr_pc_after_break)
14837 (target_decr_pc_after_break): New.
14838 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14839 instead of gdbarch_decr_pc_after_break.
14840 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14841 instead of gdbarch_decr_pc_after_break.
14842 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14843 instead of gdbarch_decr_pc_after_break.
14844 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14845 instead of gdbarch_decr_pc_after_break.
14846 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14847 instead of gdbarch_decr_pc_after_break.
14848 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14849 instead of gdbarch_decr_pc_after_break.
14851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14853 * btrace.c: Include regcache.h.
14854 (btrace_add_pc): New.
14855 (btrace_enable): Call btrace_add_pc.
14856 (btrace_is_empty): New.
14857 * btrace.h (btrace_is_empty): New.
14858 * record-btrace.c (require_btrace, record_btrace_info): Call
14861 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14863 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14864 Support delta reads.
14865 (linux_disable_btrace): Change return type.
14866 * common/linux-btrace.h (linux_read_btrace): Change parameters
14867 and return type to allow error reporting. Update users.
14868 (linux_disable_btrace): Change return type. Update users.
14869 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14871 (btrace_error): New.
14872 (btrace_block) <begin>: Comment on BEGIN == 0.
14873 * btrace.c (btrace_compute_ftrace): Start from the end of
14875 (btrace_stitch_trace, btrace_clear_history): New.
14876 (btrace_fetch): Read delta trace, return if replaying.
14877 (btrace_clear): Move clear history code to btrace_clear_history.
14878 (parse_xml_btrace): Throw an error if parsing failed.
14879 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14880 and return type to allow error reporting.
14881 (target_read_btrace): Change parameters and return type to allow
14883 * target.c (target_read_btrace): Update.
14884 * remote.c (remote_read_btrace): Support delta reads. Pass
14886 * NEWS: Announce it.
14888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14890 * record.h (record_btrace_frame_unwind)
14891 (record_btrace_tailcall_frame_unwind): New declarations.
14892 * dwarf2-frame: Include record.h
14893 (dwarf2_frame_cfa): Throw an error for btrace frames.
14894 * record-btrace.c: Include hashtab.h.
14895 (btrace_get_bfun_name): New.
14896 (btrace_call_history): Call btrace_get_bfun_name.
14897 (struct btrace_frame_cache): New.
14899 (bfcache_hash, bfcache_eq, bfcache_new): New.
14900 (btrace_get_frame_function): New.
14901 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14902 (record_btrace_frame_this_id): Compute own id.
14903 (record_btrace_frame_prev_register): Provide PC, throw_error
14904 for all other registers.
14905 (record_btrace_frame_sniffer): Detect btrace frames.
14906 (record_btrace_tailcall_frame_sniffer): New.
14907 (record_btrace_frame_dealloc_cache): New.
14908 (record_btrace_frame_unwind): Add new functions.
14909 (record_btrace_tailcall_frame_unwind): New.
14910 (_initialize_record_btrace): Allocate cache.
14911 * btrace.c (btrace_clear): Call reinit_frame_cache.
14912 * NEWS: Announce it.
14914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14916 * record-btrace.c (record_btrace_set_replay)
14917 (record_btrace_goto_begin, record_btrace_goto_end)
14918 (record_btrace_goto): New.
14919 (init_record_btrace_ops): Initialize them.
14920 * NEWS: Announce it.
14922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14924 * record-btrace.c (record_btrace_find_new_threads)
14925 (record_btrace_thread_alive): New.
14926 (init_record_btrace_ops): Initialize to_find_new_threads and
14929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14931 * record-btrace.c (record_btrace_resume): New.
14932 (record_btrace_wait): New.
14933 (init_record_btrace_ops): Initialize to_wait and to_resume.
14935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14937 * record-btrace.c (record_btrace_xfer_partial)
14938 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14939 (record_btrace_allow_memory_access): New.
14940 (init_record_btrace_ops): Initialize new methods.
14941 * target.c (raw_memory_xfer_partial): Bail out if target reports
14942 that this memory is not available.
14944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14946 * target.h (target_ops) <to_insert_breakpoint>
14947 <to_remove_breakpoint>: Add target_ops parameter.
14948 (forward_target_insert_breakpoint): New.
14949 (forward_target_remove_breakpoint): New.
14950 (memory_remove_breakpoint, memory_insert_breakpoint):
14951 Add target_ops parameter.
14952 * target.c (target_insert_breakpoint): Split into this and ...
14953 (forward_target_insert_breakpoint): ... this.
14954 (target_remove_breakpoint): Split into this and ...
14955 (forward_target_remove_breakpoint): ... this.
14956 (debug_to_insert_breakpoint): Add target_ops parameter.
14957 Call forward_target_insert_breakpoint.
14958 (debug_to_remove_breakpoint): Add target_ops parameter.
14959 Call forward_target_remove_breakpoint.
14960 (update_current_target): Do not inherit or default to_insert_breakpoint
14961 and to_remove_breakpoint.
14962 * corelow.c (ignore): Add target_ops parameter.
14963 * exec.c (ignore): Add target_ops parameter.
14964 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14965 Add target_ops parameter.
14966 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14967 Add target_ops parameter.
14968 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14969 Add target_ops parameter.
14970 * record-full.c (record_full_beneath_to_insert_breakpoint)
14971 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14972 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14973 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14974 (record_full_core_remove_breakpoint): Add target_ops parameter.
14976 (record_full_beneath_to_insert_breakpoint_ops)
14977 (record_full_beneath_to_remove_breakpoint_ops)
14978 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14979 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14980 tmp_to_remove_breakpoint_ops,
14981 record_full_beneath_to_insert_breakpoint_ops, and
14982 record_full_beneath_to_remove_breakpoint_ops.
14983 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14984 (m32r_remove_breakpoint): Add target_ops parameter.
14985 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14986 Add target_ops parameter.
14987 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14988 Add target_ops parameter.
14990 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14991 Markus Metzger <markus.t.metzger@intel.com>
14993 * record-btrace.c: Include frame-unwind.h.
14994 (record_btrace_frame_unwind_stop_reason)
14995 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14996 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14998 (init_record_btrace_ops): Install it.
15000 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15002 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15005 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15007 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15010 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15012 * frame-unwind.c: Include target.h.
15013 (frame_unwind_try_unwinder): New function with code from ...
15014 (frame_unwind_find_by_frame): ... here. New variable
15015 unwinder_from_target, call also target_get_unwinder)
15016 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15017 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15018 * target.h (struct target_ops): New fields to_get_unwinder and
15019 to_get_tailcall_unwinder.
15020 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15022 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15024 * record-btrace.c (record_btrace_fetch_registers)
15025 (record_btrace_store_registers)
15026 (record_btrace_to_prepare_to_store): New.
15027 (init_record_btrace_ops): Add the above.
15029 2014-01-16 Tom Tromey <tromey@redhat.com>
15031 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15032 * target.h (struct target_ops) <to_prepare_to_store>: Add
15034 (target_prepare_to_store): Add argument.
15035 * target.c (debug_to_prepare_to_store): Add argument.
15036 (update_current_target): Update.
15037 * remote.c (remote_prepare_to_store): Add 'self' argument.
15038 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15039 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15040 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15041 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15043 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15044 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15045 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15046 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15047 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15051 * btrace.h (replay) <replay>: New.
15052 (btrace_is_replaying): New.
15053 * btrace.c (btrace_clear): Free replay iterator.
15054 (btrace_is_replaying): New.
15055 * record-btrace.c (record_btrace_is_replaying): New.
15056 (record_btrace_info): Print insn number if replaying.
15057 (record_btrace_insn_history): Start at replay position.
15058 (record_btrace_call_history): Start at replay position.
15059 (init_record_btrace_ops): Init to_record_is_replaying.
15061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15063 * record-btrace.c (record_btrace_insn_history_range): Include
15065 (record_btrace_insn_history_from): Adjust range.
15066 (record_btrace_call_history_range): Include
15068 (record_btrace_call_history_from): Adjust range.
15069 * NEWS: Announce changes.
15071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15073 * record.h (enum record_print_flag)
15074 <record_print_indent_calls>: New.
15075 * record.c (get_call_history_modifiers): Recognize /c modifier.
15076 (_initialize_record): Document /c modifier.
15077 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15078 Reorder fields. Optionally indent the function name. Update
15080 * NEWS: Announce changes.
15082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15084 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15088 * btrace.c (ftrace_new_function): Start counting at one.
15089 * record-btrace.c (record_btrace_info): Adjust number of calls
15091 * NEWS: Announce it.
15093 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15095 * record-btrace.c (btrace_call_history_insn_range): Print
15096 insn range as [begin, end].
15098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15100 * btrace.h (struct btrace_func_link): New.
15101 (enum btrace_function_flag): New.
15102 (struct btrace_inst): Rename to ...
15103 (struct btrace_insn): ...this. Update all users.
15104 (struct btrace_func) <ibegin, iend>: Remove.
15105 (struct btrace_func_link): New.
15106 (struct btrace_func): Rename to ...
15107 (struct btrace_function): ...this. Update all users.
15108 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15109 (number, level, flags>: New.
15110 (struct btrace_insn_iterator): Rename to ...
15111 (struct btrace_insn_history): ...this.
15113 (struct btrace_insn_iterator, btrace_call_iterator): New.
15114 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15115 (struct btrace_target_info) <begin, end, level>
15116 <insn_history, call_history>: New.
15117 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15118 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15119 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15120 (btrace_call_number, btrace_call_begin, btrace_call_end)
15121 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15122 (btrace_find_function_by_number, btrace_set_insn_history)
15123 (btrace_set_call_history): New.
15124 * btrace.c (btrace_init_insn_iterator)
15125 (btrace_init_func_iterator, compute_itrace): Remove.
15126 (ftrace_print_function_name, ftrace_print_filename)
15127 (ftrace_skip_file): Change
15128 parameter to const.
15129 (ftrace_init_func): Remove.
15130 (ftrace_debug): Use new btrace_function fields.
15131 (ftrace_function_switched): Also consider gaining and
15132 losing symbol information).
15133 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15134 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15135 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15137 (ftrace_new_function): Move. Remove debug print.
15138 (ftrace_update_lines, ftrace_update_insns): New.
15139 (ftrace_update_function): Check for call, ret, and jump.
15140 (compute_ftrace): Renamed to ...
15141 (btrace_compute_ftrace): ...this. Rewritten to compute call
15143 (btrace_fetch, btrace_clear): Updated.
15144 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15145 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15146 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15147 (btrace_call_number, btrace_call_begin, btrace_call_end)
15148 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15149 (btrace_find_function_by_number, btrace_set_insn_history)
15150 (btrace_set_call_history): New.
15151 * record-btrace.c (require_btrace): Use new btrace thread
15153 (record_btrace_info, btrace_insn_history)
15154 (record_btrace_insn_history, record_btrace_insn_history_range):
15155 Use new btrace thread info fields and new iterator.
15156 (btrace_func_history_src_line): Rename to ...
15157 (btrace_call_history_src_line): ...this. Use new btrace
15158 thread info fields.
15159 (btrace_func_history): Rename to ...
15160 (btrace_call_history): ...this. Use new btrace thread info
15161 fields and new iterator.
15162 (record_btrace_call_history, record_btrace_call_history_range):
15163 Use new btrace thread info fields and new iterator.
15165 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15167 * frame.h (frame_id_build_unavailable_stack_special): New.
15168 * frame.c (frame_id_build_unavailable_stack_special): New.
15170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15172 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15173 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15174 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15176 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15177 (i386_insn_is_jump, i386_jmp_p): New.
15178 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15179 insn_is_jump to gdbarch.
15180 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15181 * gdbarch.h: Regenerated.
15182 * gdbarch.c: Regenerated.
15183 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15184 (default_insn_is_jump): New.
15185 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15186 (default_insn_is_jump): New.
15188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15190 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15192 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15193 (btrace_read_type) <btrace_read_new>: Change to ...
15194 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15198 * common/linux-btrace.c (linux_read_btrace): Free trace from
15199 previous iteration.
15201 2014-01-15 Doug Evans <dje@google.com>
15203 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15206 2014-01-15 Tom Tromey <tromey@redhat.com>
15208 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15209 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15210 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15211 (set_objfile_main_name): New function.
15212 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15213 language_of_main>: New fields.
15214 (set_objfile_main_name): Declare.
15215 * symtab.c (find_main_name): Loop over objfiles to find the main
15217 (set_main_name): Now static.
15218 (get_main_info): Add comment.
15219 * symtab.h (set_main_name): Don't declare.
15221 2014-01-15 Tom Tromey <tromey@redhat.com>
15223 * symtab.c (main_progspace_key): New global.
15224 (struct main_info): New.
15225 (name_of_main, language_of_main): Remove.
15226 (get_main_info, main_info_cleanup): New function.
15227 (set_main_name, main_name, main_language): Use get_main_info.
15228 (_initialize_symtab): Initialize main_progspace_key.
15230 2014-01-15 Tom Tromey <tromey@redhat.com>
15232 * dbxread.c (process_one_symbol): Update.
15233 * dwarf2read.c (read_partial_die): Update.
15234 * symfile.c (set_initial_language): Call main_language.
15235 * symtab.c (language_of_main): Now static.
15236 (set_main_name): Add 'lang' parameter.
15237 (find_main_name): Update.
15238 (main_language): New function.
15239 (symtab_observer_executable_changed): Update.
15240 * symtab.h (set_main_name): Update.
15241 (language_of_main): Remove.
15242 (main_language): Declare.
15244 2014-01-15 Tom Tromey <tromey@redhat.com>
15246 * symfile.c (init_entry_point_info): Use new "initialized" field.
15248 * objfiles.h (struct entry_point) <initialized>: New field.
15249 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15250 (struct objfile) <ei>: ...here. Remove.
15251 * objfiles.c (entry_point_address_query): Update.
15253 2014-01-15 Tom Tromey <tromey@redhat.com>
15255 * objfiles.c (entry_point_address_query): Relocate entry point
15257 (objfile_relocate1): Do not relocate entry point address.
15258 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15259 <the_bfd_section_index>: New field.
15260 * symfile.c (init_entry_point_info): Find the entry point's
15263 2014-01-15 Tom Tromey <tromey@redhat.com>
15265 * solib-frv.c (enable_break): Use entry_point_address_query.
15267 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15269 * NEWS: Add note on improved process record-replay on
15270 arm*-linux* targets.
15272 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15274 * arm-tdep.c (enum arm_record_result): New enum.
15275 (arm_record_unsupported_insn): New function.
15276 (arm_record_coproc_data_proc): Removed.
15277 (thumb2_record_ld_st_multiple): New function.
15278 (thumb2_record_ld_st_dual_ex_tbb): New function.
15279 (thumb2_record_data_proc_sreg_mimm): New function.
15280 (thumb2_record_ps_dest_generic): New function.
15281 (thumb2_record_branch_misc_cntrl): New function.
15282 (thumb2_record_str_single_data): New function.
15283 (thumb2_record_ld_mem_hints): New function.
15284 (thumb2_record_ld_word): New function.
15285 (thumb2_record_lmul_lmla_div): New function.
15286 (thumb2_record_decode_insn_handler): New function.
15287 (decode_insn): Add thumb32 instruction handlers.
15289 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15291 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15292 (struct arm_linux_record_tdep): Declare.
15293 (arm_canonicalize_syscall): New function.
15294 (arm_all_but_pc_registers_record): New function.
15295 (arm_linux_syscall_record): New function.
15296 (arm_linux_init_abi): Add syscall recording constructs.
15297 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15298 decoding. (arm_record_coproc_data_proc): Update arm syscall
15300 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15301 <arm_syscall_record>: New field.
15302 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15305 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15307 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15308 register for push instruction recording.
15310 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15312 * arm-tdep.c (thumb_record_misc): Update to correct logical
15313 error while recording ldm, ldmia and pop instructions.
15315 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15317 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15319 2014-01-15 Pedro Alves <palves@redhat.com>
15321 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15322 (go32_resume, go32_fetch_registers, store_register)
15323 (go32_store_registers, go32_prepare_to_store)
15324 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15325 (go32_create_inferior, go32_can_run, go32_terminal_init)
15326 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15329 2014-01-15 Tom Tromey <tromey@redhat.com>
15331 * target.h (async_callback_ftype): New typedef.
15332 (struct target_ops) <to_async>: Use it.
15334 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15336 * python/py-value.c (get_field_type): Remove unnecessary curly
15337 braces for single-statement if block.
15339 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15341 * python/py-type.c (convert_field): Add missing empty line
15342 after declarations.
15344 2014-01-14 Doug Evans <dje@google.com>
15346 * symfile.h (expand_symtabs_matching): Renamed from
15347 expand_partial_symbol_names. Update prototype.
15348 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15349 * symfile.c (expand_symtabs_matching): Renamed from
15350 expand_partial_symbol_names. New args file_matcher, kind.
15351 Rename arg fun to symbol_matcher.
15352 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15353 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15354 ada_expand_partial_symbol_name.
15355 (ada_make_symbol_completion_list): Update to call
15356 expand_symtabs_matching.
15357 (ada_add_global_exceptions): Call expand_symtabs_matching.
15358 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15359 call map_symbol_filenames.
15360 * symtab.c (sources_info): Update to call map_symbol_filenames.
15361 (search_symbols): Call expand_symtabs_matching.
15362 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15363 (default_make_symbol_completion_list_break_on): Update to call
15364 expand_symtabs_matching.
15365 (make_source_files_completion_list): Update to call
15366 map_symbol_filenames.
15368 2014-01-14 Doug Evans <dje@google.com>
15370 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15371 (expand_symtabs_symbol_matcher_ftype): New typedef.
15372 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15373 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15374 * symfile.c (expand_partial_symbol_names): Update to use
15375 expand_symtabs_symbol_matcher_ftype.
15376 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15377 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15378 Arg name_matcher renamed to symbol_matcher.
15379 * psymtab.c (recursively_search_psymtabs): Update to use
15380 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15382 (expand_symtabs_matching_via_partial): Update to use
15383 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15384 Arg name_matcher renamed to symbol_matcher.
15386 2014-01-14 Doug Evans <dje@google.com>
15388 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15389 (map_partial_symbol_filenames): Ditto.
15390 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15391 (map_partial_symbol_filenames): Ditto.
15392 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15393 (map_partial_symbol_filenames): Ditto.
15394 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15395 (map_partial_symbol_filenames): Ditto.
15396 * symtab.c: Delete #include "psymtab.h".
15398 2014-01-14 Pedro Alves <palves@redhat.com>
15399 Tom Tromey <tromey@redhat.com>
15401 * infrun.c (use_displaced_stepping): Use find_record_target
15402 instead of RECORD_IS_USED.
15403 (adjust_pc_after_break): Use record_full_is_used instead of
15405 * record-btrace.c (record_btrace_open): Call record_preopen
15406 instead of checking RECORD_IS_USED.
15407 * record-full.c (record_full_shortname)
15408 (record_full_core_shortname): New globals.
15409 (record_full_is_used): New function.
15410 (find_full_open): Call record_preopen instead of checking
15412 (init_record_full_ops): Set the target's shortname to
15413 record_full_shortname.
15414 (init_record_full_core_ops): Set the target's shortname to
15415 record_full_core_shortname.
15416 * record-full.h (record_full_is_used): Declare.
15417 * record.c (find_record_target): Make extern.
15418 (record_preopen): New function.
15419 * record.h (RECORD_IS_USED): Delete macro.
15420 (find_record_target, record_preopen): Declare functions.
15422 2014-01-14 Yao Qi <yao@codesourcery.com>
15424 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15425 'len''s type to ULONGEST.
15426 (core_xfer_shared_libraries_aix): Likewise.
15427 * gdbarch.c, gdbarch.h: Regenerated.
15428 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15429 Change type of 'len' to ULONGEST.
15430 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15431 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15433 2014-01-14 Yao Qi <yao@codesourcery.com>
15435 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15436 type of 'len' to ULONGEST.
15437 (linux_xfer_osdata_processgroups): Likewise.
15438 (linux_xfer_osdata_threads): Likewise.
15439 (linux_xfer_osdata_fds): Likewise.
15440 (linux_xfer_osdata_isockets): Likewise.
15441 (linux_xfer_osdata_shm): Likewise.
15442 (linux_xfer_osdata_sem): Likewise.
15443 (linux_xfer_osdata_msg): Likewise.
15444 (linux_common_xfer_osdata): Likewise.
15445 (struct osdata_type) <getter>: Likewise.
15446 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15449 2014-01-14 Yao Qi <yao@codesourcery.com>
15451 * target.h (target_xfer_partial_ftype): Update.
15452 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15454 * aix-thread.c (aix_thread_xfer_partial): Change type of
15455 argument 'len' to ULONGEST.
15456 * auxv.c (procfs_xfer_auxv): Likewise.
15457 (ld_so_xfer_auxv): Likewise.
15458 (memory_xfer_auxv): Likewise.
15459 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15460 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15461 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15462 * corelow.c (core_xfer_partial): Likewise.
15463 * ctf.c (ctf_xfer_partial): Likewise.
15464 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15466 (darwin_read_dyld_info): Likewise.
15467 (darwin_xfer_partial): Likewise.
15468 * exec.c (section_table_xfer_memory_partial): Likewise.
15469 (exec_xfer_partial): Likewise.
15470 * exec.h (section_table_xfer_memory_partial): Update
15472 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15473 instead of plongest.
15474 (gnu_xfer_partial): Likewise.
15475 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15476 (ia64_hpux_xfer_solib_got): Likewise.
15477 (ia64_hpux_xfer_partial): Likewise.
15478 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15479 * inf-ptrace.c (inf_ptrace_xfer_partial):
15480 * inf-ttrace.c (inf_ttrace_xfer_partial):
15481 * linux-nat.c (linux_xfer_siginfo): Likewise.
15482 (linux_nat_xfer_partial): Likewise.
15483 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15484 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15485 * monitor.c (monitor_xfer_memory): Likewise.
15486 (monitor_xfer_partial): Likewise.
15487 * procfs.c (procfs_xfer_partial): Likewise.
15488 * record-full.c (record_full_xfer_partial): Likewise.
15489 (record_full_core_xfer_partial): Likewise.
15490 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15491 instead of plongest.
15492 (gdbsim_xfer_partial): Likewise.
15493 * remote.c (remote_xfer_partial): Likewise.
15494 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15495 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15497 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15498 (rs6000_xfer_shared_libraries): Likewise.
15499 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15500 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15501 (sparc_xfer_partial): Likewise.
15502 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15503 (spu_xfer_partial): Likewise.
15504 * spu-multiarch.c (spu_xfer_partial): Likewise.
15505 * target.c (target_read_live_memory): Likewise.
15506 (memory_xfer_live_readonly_partial): Likewise.
15507 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15508 (target_xfer_partial, default_xfer_partial): Likewise.
15509 (current_xfer_partial): Likewise.
15510 * tracepoint.c (tfile_xfer_partial): Likewise.
15511 * windows-nat.c (windows_xfer_memory): Likewise. Call
15512 pulongest instead of plongest.
15513 (windows_xfer_partial): Likewise.
15514 (windows_xfer_shared_libraries): Likewise.
15516 2014-01-14 Yao Qi <yao@codesourcery.com>
15518 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15519 target_xfer_partial_ftype.
15521 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15525 * valops.c (value_struct_elt_bitpos): New function
15526 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15527 object to 'None' if the field name is an empty string ("").
15528 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15529 attribute to look for a field when 'name' is 'None'.
15530 (get_field_type): New function
15532 2014-01-13 Doug Evans <dje@google.com>
15535 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15536 (try_open_dwop_file): Ditto.
15537 * gdb_bfd.c: #include "vec.h".
15538 (bfdp): New typedef.
15539 (struct gdb_bfd_data): New member included_bfds.
15540 (gdb_bfd_unref): Unref all included bfds.
15541 (gdb_bfd_record_inclusion): New function.
15542 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15544 2014-01-13 Tom Tromey <tromey@redhat.com>
15546 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15548 2014-01-13 Tom Tromey <tromey@redhat.com>
15550 * defs.h (use_windows): Remove.
15551 * gdb.c (main): Update.
15552 * main.c (captured_main, gdb_main): Update.
15553 * main.h (struct captured_main_args) <use_windows>: Remove.
15554 * top.c (use_windows): Remove.
15556 2014-01-13 Tom Tromey <tromey@redhat.com>
15558 * defs.h (deprecated_flush_hook): Remove.
15560 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15563 * linux-thread-db.c (try_thread_db_load): Add parameter
15564 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15565 (try_thread_db_load_from_pdir_1): Move it there from here.
15566 (try_thread_db_load_from_sdir): Update caller.
15567 (try_thread_db_load_from_dir): Move it there from here.
15569 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15571 * regformats/regdat.sh: Always rewrite the register file.
15573 2014-01-13 Pedro Alves <palves@redhat.com>
15575 * Makefile.in (CHECK_HEADERS): New variable.
15576 (check-headers:): New rule.
15578 2014-01-13 Tom Tromey <tromey@redhat.com>
15580 * cli/cli-setshow.c (do_set_command): Update.
15581 * defs.h (deprecated_set_hook): Remove.
15582 * top.c (deprecated_set_hook): Remove.
15584 2014-01-13 Pedro Alves <palves@redhat.com>
15586 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15587 the tracepoint if the PC is a pseudo-register.
15589 2014-01-13 Tom Tromey <tromey@redhat.com>
15591 * defs.h (XCALLOC): Remove.
15592 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15593 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15594 * dwarf2loc.c (allocate_piece_closure): Likewise.
15595 * elfread.c (elf_symfile_segments): Likewise.
15596 (elf_symfile_segments): Likewise.
15597 * gdbtypes.c (copy_type_recursive): Likewise.
15598 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15599 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15600 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15602 * mt-tdep.c (mt_gdbarch_init): Likewise.
15603 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15605 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15606 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15607 * registry.c (registry_alloc_data): Likewise.
15608 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15609 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15610 * serial.c (serial_fdopen_ops): Likewise.
15611 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15613 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15614 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15617 2014-01-13 Tom Tromey <tromey@redhat.com>
15619 * defs.h (XMALLOC): Remove.
15620 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15621 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15622 * cli-out.c (struct ui_out *): Likewise.
15623 * cli/cli-dump.c (add_dump_command): Likewise.
15624 (add_dump_command): Likewise.
15625 * complaints.c (get_complaints): Likewise.
15626 (find_complaint): Likewise.
15627 * dwarf2-frame.c (execute_cfa_program): Likewise.
15628 * dwarf2read.c (abbrev_table_read_table): Likewise.
15629 * gdbarch.sh: Likewise.
15630 * gdbarch.c: Rebuild.
15631 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15632 * interps.c (interp_new): Likewise.
15633 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15634 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15635 * mi/mi-console.c (mi_console_file_new): Likewise.
15636 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15637 * mi/mi-out.c (mi_out_new): Likewise.
15638 * mi/mi-parse.c (mi_parse): Likewise.
15639 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15640 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15641 * observer.c (xalloc_observer_list_node): Likewise.
15642 * regcache.c (regcache_xmalloc_1): Likewise.
15643 * reggroups.c (reggroup_new): Likewise.
15644 (_initialize_reggroup): Likewise.
15645 * registry.c (register_data_with_cleanup): Likewise.
15646 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15647 * ser-base.c (serial_ttystate): Likewise.
15648 * ser-mingw.c (make_pipe_state): Likewise.
15649 * ser-pipe.c (pipe_open): Likewise.
15650 * serial.c (serial_open): Likewise.
15651 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15652 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15653 (tui_alloc_win_info): Likewise.
15654 (tui_add_content_elements): Likewise.
15655 * tui/tui-file.c (tui_file_new): Likewise.
15656 * tui/tui-out.c (tui_out_new): Likewise.
15657 * ui-file.c (mem_file_new): Likewise.
15658 * ui-out.c (push_level): Likewise.
15659 (make_cleanup_ui_out_end): Likewise.
15660 (append_header_to_list): Likewise.
15661 (ui_out_new): Likewise.
15662 * user-regs.c (user_reg_add_builtin): Likewise.
15664 2014-01-13 Tom Tromey <tromey@redhat.com>
15666 * defs.h (XZALLOC): Remove.
15667 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15668 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15669 (get_ada_tasks_inferior_data): Likewise.
15670 * auto-load.c (get_auto_load_pspace_data): Likewise.
15671 * auxv.c (get_auxv_inferior_data): Likewise.
15672 * bfd-target.c (target_bfd_reopen): Likewise.
15673 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15674 (deprecated_insert_raw_breakpoint): Likewise.
15675 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15676 * corelow.c (core_open): Likewise.
15677 * darwin-nat.c (darwin_check_new_threads): Likewise.
15678 (darwin_attach_pid): Likewise.
15679 * dummy-frame.c (dummy_frame_push): Likewise.
15680 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15681 * dwarf2loc.c (allocate_piece_closure): Likewise.
15682 * elfread.c (elf_symfile_segments): Likewise.
15683 * eval.c (ptrmath_type_p): Likewise.
15684 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15685 * gdbtypes.c (alloc_type_arch): Likewise.
15686 (alloc_type_instance): Likewise.
15687 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15688 * inf-child.c (inf_child_can_use_agent): Likewise.
15689 * inflow.c (get_inflow_inferior_data): Likewise.
15690 * infrun.c (save_infcall_suspend_state): Likewise.
15691 * jit.c (jit_reader_load): Likewise.
15692 (get_jit_objfile_data): Likewise.
15693 (get_jit_program_space_data): Likewise.
15694 (jit_object_open_impl): Likewise.
15695 (jit_symtab_open_impl): Likewise.
15696 (jit_block_open_impl): Likewise.
15697 (jit_frame_sniffer): Likewise.
15698 * linux-fork.c (add_fork): Likewise.
15699 * maint.c (make_command_stats_cleanup): Likewise.
15700 * objfiles.c (get_objfile_pspace_data): Likewise.
15701 * opencl-lang.c (struct lval_closure): Likewise.
15702 * osdata.c (osdata_start_osdata): Likewise.
15703 * progspace.c (new_address_space): Likewise.
15704 (add_program_space): Likewise.
15705 * remote-sim.c (get_sim_inferior_data): Likewise.
15706 * sh-tdep.c (sh_gdbarch_init): Likewise.
15707 * skip.c (Ignore): Likewise.
15708 (skip_delete_command): Likewise.
15709 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15710 (library_list_start_library): Likewise.
15711 (solib_aix_current_sos): Likewise.
15712 * solib-darwin.c (get_darwin_info): Likewise.
15713 (darwin_current_sos): Likewise.
15714 * solib-dsbt.c (get_dsbt_info): Likewise.
15715 * solib-ia64-hpux.c (new_so_list): Likewise.
15716 (ia64_hpux_get_solib_linkage_addr): Likewise.
15717 * solib-spu.c (append_ocl_sos): Likewise.
15718 (spu_current_sos): Likewise.
15719 * solib-svr4.c (get_svr4_info): Likewise.
15720 (svr4_keep_data_in_core): Likewise.
15721 (library_list_start_library): Likewise.
15722 (svr4_default_sos): Likewise.
15723 (svr4_read_so_list): Likewise.
15724 * solib-target.c (library_list_start_library): Likewise.
15725 (solib_target_current_sos): Likewise.
15726 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15727 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15728 * symfile.c (default_symfile_segments): Likewise.
15729 * target-descriptions.c (tdesc_data_init): Likewise.
15730 (tdesc_create_reg): Likewise.
15731 (struct tdesc_type *): Likewise.
15732 (tdesc_create_vector): Likewise.
15733 (tdesc_set_struct_size): Likewise.
15734 (struct tdesc_type *): Likewise.
15735 (tdesc_free_feature): Likewise.
15736 (tdesc_create_feature): Likewise.
15737 * windows-nat.c (windows_add_thread): Likewise.
15738 (windows_make_so): Likewise.
15739 * xml-support.c (gdb_xml_body_text): Likewise.
15740 (gdb_xml_create_parser_and_cleanup): Likewise.
15741 (xml_process_xincludes): Likewise.
15742 * xml-syscall.c (allocate_syscalls_info): Likewise.
15743 (syscall_create_syscall_desc): Likewise.
15745 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15747 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15748 function, with code from i386_stap_parse_special_token.
15749 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15750 (i386_stap_parse_special_token): Move code to the two functions
15751 above; simplify it.
15753 2014-01-09 Pedro Alves <palves@redhat.com>
15754 Hui Zhu <hui@codesourcery.com>
15757 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15758 bp_err_string. Don't mark the location shlib_disabled if the
15759 error thrown wasn't a generic or memory error. Catch errors
15760 thrown while inserting breakpoints in overlayed code. Output
15761 error message of software breakpoints.
15762 * remote.c (remote_insert_breakpoint): If this breakpoint has
15763 target-side commands but this stub doesn't support Z0 packets,
15764 throw NOT_SUPPORTED_ERROR error.
15765 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15766 * target.h (target_insert_breakpoint): Extend comment.
15767 (target_insert_hw_breakpoint): Add comment.
15769 2014-01-08 Pedro Alves <palves@redhat.com>
15771 * remote.c (remote_add_thread): Add threads silently if starting
15773 (remote_notice_new_inferior): If in all-stop, and starting up,
15774 don't call notice_new_inferior.
15775 (get_current_thread): New function, factored out from ...
15776 (add_current_inferior_and_thread): ... this. Adjust.
15777 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15778 found any thread, then select the remote's current thread as GDB's
15779 current thread too.
15781 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15783 * NEWS: Create a new section for the next release branch.
15784 Rename the section of the current branch, now that it has
15787 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15789 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15790 * version.in: Bump version to 7.7.50.DATE-cvs.
15792 2014-01-08 Yao Qi <yao@codesourcery.com>
15794 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15795 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15796 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15798 2014-01-08 Yao Qi <yao@codesourcery.com>
15800 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15801 return value of bfd_get_filename to symbol_file_add_from_bfd.
15803 2014-01-08 Pierre Muller <muller@sourceware.org>
15806 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15807 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15808 to prim_record_mininal_symbol_and_info.
15809 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15810 in call to prim_record_minimal_symbol_and_info.
15811 (read_pe_exported_syms): Set index field of section_data.
15813 2014-01-07 Andrew Pinski <apinski@cavium.com>
15815 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15816 * features/aarch64.c: Regenerate.
15818 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15820 * target.c (return_null): Define.
15821 (update_current_target): Use it instead of return_zero for
15822 functions that return a pointer.
15824 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15826 * source.c (add_path): Fix check for duplicated paths in the previously
15829 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15831 * ada-lang.c: Remove duplicated include statements.
15832 * alphabsd-nat.c: Ditto.
15833 * amd64-darwin-tdep.c: Ditto.
15834 * amd64fbsd-nat.c: Ditto.
15835 * auto-load.c: Ditto.
15837 * breakpoint.c: Ditto.
15838 * dbxread.c: Ditto.
15839 * fork-child.c: Ditto.
15840 * gdb_usleep.c: Ditto.
15841 * i386-darwin-tdep.c: Ditto.
15842 * i386fbsd-nat.c: Ditto.
15844 * inferior.c: Ditto.
15845 * jv-lang.c: Ditto.
15846 * linux-nat.c: Ditto.
15847 * linux-tdep.c: Ditto.
15848 * m68kbsd-nat.c: Ditto.
15849 * m68klinux-nat.c: Ditto.
15850 * microblaze-tdep.c: Ditto.
15851 * mips-linux-tdep.c: Ditto.
15852 * mn10300-tdep.c: Ditto.
15853 * nto-tdep.c: Ditto.
15854 * opencl-lang.c: Ditto.
15856 * printcmd.c: Ditto.
15857 * regcache.c: Ditto.
15858 * remote-m32r-sdi.c: Ditto.
15860 * symfile.c: Ditto.
15862 * tilegx-linux-nat.c: Ditto.
15863 * tilegx-tdep.c: Ditto.
15864 * tracepoint.c: Ditto.
15866 * vaxbsd-nat.c: Ditto.
15867 * windows-nat.c: Ditto.
15868 * xtensa-tdep.c: Ditto.
15870 2014-01-07 Yao Qi <yao@codesourcery.com>
15872 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15874 2014-01-07 Yao Qi <yao@codesourcery.com>
15875 Joel Brobecker <brobecker@adacore.com>
15877 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15878 (pdc_write_regs): Likewise.
15879 (fetch_regs_kernel_thread): Likewise.
15880 (store_regs_kernel_thread): Likewise.
15882 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15884 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15885 tagged type objects to their actual type.
15887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15889 * ada-valprint.c (print_field_values): Add "language" parameter.
15890 Update calls to print_field_values and print_variant_part.
15891 Pass new parameter "language" in call to val_print instead
15892 of "current_language". Replace call to ada_val_print by call
15894 (print_variant_part): Add "language" parameter.
15895 (ada_val_print_struct_union): Update call to print_field_values.
15897 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15899 * ada-valprint.c (ui_memcpy): Delete.
15900 (ada_print_floating): Update documentation. Add empty line
15901 between between function documentation and implementation.
15902 Delete variable "buffer". Use ui_file_xstrdup in place of
15903 ui_file_put. Minor adjustments following this change.
15905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15907 * ada-valprint.c (ada_val_print_string): New function,
15908 extracted from ada_val_print_array.
15909 (ada_val_print_array): Replace extracted code by call
15910 to ada_val_print_string followed by a return. Move
15911 "else" branch to the function's top block.
15913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15915 * ada-valprint.c (ada_val_print_array): Move implementation
15916 down. Rename parameter "offset" and "val" into "offset_aligned"
15917 and "original_value" respectively. Add parameter "offset".
15919 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15921 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15922 re-organizing the code. Change the "???" message printed
15923 when target type is a TYPE_CODE_UNDEF into
15924 "<ref to undefined type>".
15926 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15928 * ada-valprint.c (print_record): Delete, implementation inlined...
15929 (ada_val_print_struct_union): ... here. Remove call to
15930 ada_check_typedef in inlined implementation.
15932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15934 * ada-valprint.c (ada_val_print_gnat_array): New function,
15935 extracted from ada_val_print_1;
15936 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15937 (ada_val_print_flt, ada_val_print_struct_union)
15938 (ada_val_print_ref): Likewise.
15939 (ada_val_print_1): Delete variables i and elttype.
15940 Replace extracted-out code by call to corresponding
15943 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15945 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15949 * ada-valprint.c (ada_val_print_1): Replace calls to
15950 ada_val_print_1 by calls to val_print.
15952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15954 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15955 Update calls to self accordingly. Replace calls to c_val_print
15956 by calls to val_print.
15958 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15960 * ada-valprint.c (print_record): Delete declaration.
15961 (adjust_type_signedness, ada_val_print_1): Likewise.
15962 (ada_val_print): Move function implementation down.
15963 (print_variant_part, print_field_values, print_record):
15964 Move function implementation up.
15966 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15968 * python/py-type.c (typy_get_name): New function.
15969 (type_object_getset): Add entry for attribute "name".
15970 * NEWS: Add entry mentioning this new attribute.
15972 2014-01-07 Yao Qi <yao@codesourcery.com>
15974 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15977 2014-01-07 Yao Qi <yao@codesourcery.com>
15979 * gnu-nat.c (info_port_rights): Add qualifier const to
15982 2014-01-07 Yao Qi <yao@codesourcery.com>
15984 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15986 2014-01-07 Yao Qi <yao@codesourcery.com>
15988 * gnu-nat.c (make_inf) Update declaration.
15989 (make_inf): Make it static.
15990 (inf_set_traced): Likewise.
15991 (inf_port_to_thread, inf_task_died_status): Likewise.
15993 2014-01-07 Yao Qi <yao@codesourcery.com>
15995 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15997 2014-01-07 Yao Qi <yao@codesourcery.com>
15999 * gnu-nat.c (_initialize_gnu_nat): Declare.
16001 2014-01-07 Yao Qi <yao@codesourcery.com>
16003 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16005 (struct gdbarch_info) <byte_order>: Change type to
16007 <byte_order_for_code>: Likewise.
16008 * gdbarch.c, gdbarch.h: Regenerated.
16010 2014-01-06 Sasha Smundak <asmundak@google.com>
16012 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16014 2014-01-06 Tom Tromey <tromey@redhat.com>
16016 * doublest.c (convert_doublest_to_floatformat): Use const, not
16018 * somread.c (som_symtab_read): Likewise.
16020 2014-01-07 Hui Zhu <hui@codesourcery.com>
16022 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16023 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16024 (gdb_bfd_fopen): Ditto.
16025 (gdb_bfd_openr): Ditto.
16026 (gdb_bfd_openw): Ditto.
16027 (gdb_bfd_openr_iovec): Ditto.
16028 (gdb_bfd_fdopenr): Ditto.
16029 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16030 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16032 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16034 * symfile-mem.c (symbol_file_add_from_memory): Removed
16035 gdb_bfd_stash_filename.
16037 2014-01-03 Doug Evans <dje@google.com>
16039 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16042 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16044 Update year range in copyright notice of all files.
16046 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16048 * top.c (print_gdb_version): Set copyright year to 2014.
16050 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16052 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16054 For older changes see ChangeLog-2013.
16060 version-control: never