1 2014-12-08 Doug Evans <dje@google.com>
3 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
5 2014-12-08 Doug Evans <dje@google.com>
7 * NEWS: Mention gdb.Objfile.owner.
8 * python/py-objfile.c (objfpy_get_owner): New function.
9 (objfile_getset): Add "owner".
11 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
14 (lookup_global_symbol_from_objfile): Call it.
16 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
18 Remove const from struct objfile *.
19 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
20 symtab.c, symtab.h: In these files.
22 2014-12-05 Andreas From <andreas.from@ericsson.com>
24 * MAINTAINERS (Write After Approval): Add "Andreas From"
26 2014-12-05 Doug Evans <xdje42@gmail.com>
30 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
32 2014-12-04 Doug Evans <dje@google.com>
34 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
35 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
36 (objfile_getset): Add "add_separate_debug_file".
38 2014-12-04 Doug Evans <dje@google.com>
40 * NEWS: Mention gdb.Objfile.build_id.
41 * build-id.c (build_id_bfd_get): Make non-static.
42 * build-id.h (build_id_bfd_get): Add declaration.
43 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
44 (OBJFPY_REQUIRE_VALID): New macro.
45 (objfpy_get_build_id): New function.
46 (objfile_getset): Add "build_id".
47 * utils.c (make_hex_string): New function.
48 * utils.h (make_hex_string): Add declaration.
50 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
52 * block.c (block_lookup_symbol_primary): New function.
53 * block.h (block_lookup_symbol_primary): New declaration.
54 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
55 Call block_lookup_symbol_primary.
57 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
59 * tramp-frame.h (tramp_frame): Add `validate' member.
60 * tramp-frame.c (tramp_frame_start): Validate trampoline before
62 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
63 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
64 (mips_linux_o32_sigframe): Initialize `validate' member.
65 (mips_linux_o32_rt_sigframe): Likewise.
66 (mips_linux_n32_rt_sigframe): Likewise.
67 (mips_linux_n64_rt_sigframe): Likewise.
68 (micromips_linux_o32_sigframe): New variable.
69 (micromips_linux_o32_rt_sigframe): Likewise.
70 (micromips_linux_n32_rt_sigframe): Likewise.
71 (micromips_linux_n64_rt_sigframe): Likewise.
72 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
73 (mips_linux_n32n64_sigframe_init): Likewise.
74 (mips_linux_sigframe_validate): New function.
75 (micromips_linux_sigframe_validate): Likewise.
76 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
78 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
80 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
81 * sparc-sol2-tdep.c: Include "regset.h".
82 (sparc32_sol2_supply_core_gregset): New function.
83 (sparc32_sol2_collect_core_gregset): Likewise.
84 (sparc32_sol2_supply_core_fpregset): Likewise.
85 (sparc32_sol2_collect_core_fpregset): Likewise.
86 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
87 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
88 tdep->fpregset/sizeof_fpregset.
89 * sparc64-sol2-tdep.c: Include "regset.h".
90 (sparc64_sol2_supply_core_gregset): New function.
91 (sparc64_sol2_collect_core_gregset): Likewise.
92 (sparc64_sol2_supply_core_fpregset): Likewise.
93 (sparc64_sol2_collect_core_fpregset): Likewise.
94 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
95 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
96 tdep->fpregset/sizeof_fpregset.
98 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
100 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
103 2014-12-02 Doug Evans <dje@google.com>
105 * symtab.c (symbol_init_cplus_specific): Delete.
106 (symbol_set_demangled_name): Remove special c++ support.
107 (symbol_get_demangled_name, symbol_set_language): Ditto.
108 * symtab.h (struct cplus_specific): Delete.
109 (struct general_symbol_info) <language_specific>: Remove
112 2014-12-02 Doug Evans <dje@google.com>
115 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
117 2014-12-02 Doug Evans <dje@google.com>
120 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
123 2014-12-02 Doug Evans <dje@google.com>
125 * dwarf2read.c (peek_die_abbrev): Improve error message text.
127 2014-12-02 Doug Evans <dje@google.com>
129 * valops.c (do_search_struct_field): Remove remnant of Chill support.
130 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
132 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
134 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
136 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
138 * NEWS: Mention new Python events.
139 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
140 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
141 (py-infevents.o): New rule.
142 * doc/observer.texi (inferior_call_pre, inferior_call_post)
143 (memory_changed, register_changed): New observers.
144 * infcall.c (call_function_by_hand): Notify observer before and
146 * python/py-event.h (inferior_call_kind): New enum.
147 (emit_inferior_call_event): New prototype.
148 (emit_register_changed_event): New prototype.
149 (emit_memory_changed_event): New prototype.
150 * python/py-events.h (events_object): New registries
151 inferior_call, memory_changed and register_changed.
152 * python/py-evts.c (gdbpy_initialize_py_events): Add the
153 inferior_call, memory_changed and register_changed registries.
154 * python/py-infevents.c: New.
155 * python/py-inferior.c (python_on_inferior_call_pre)
156 (python_on_inferior_call_post, python_on_register_change)
157 (python_on_memory_change): New functions.
158 (gdbpy_initialize_inferior): Attach python handler to new
160 * python/py-infthread.c(gdbpy_create_ptid_object): New.
161 (thpy_get_ptid) Use gdbpy_create_ptid_object.
162 * python/python-internal.h:
163 (gdbpy_create_ptid_object)
164 (gdbpy_initialize_inferior_call_pre_event)
165 (gdbpy_initialize_inferior_call_post_event)
166 (gdbpy_initialize_register_changed_event)
167 (gdbpy_initialize_memory_changed_event): New prototypes.
168 * python/python.c (_initialize_python): Initialize new events.
169 * valops.c (value_assign): Notify register_changed observer.
171 2014-12-02 Doug Evans <dje@google.com>
173 * python/py-infthread.c: Whitespace fixes.
175 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
177 * features/Makefile (s390-te-linux64-expedite): Replace
178 non-existant r14 and r15 by r14l and r15l, respectively.
179 * regformats/s390-te-linux64.dat: Regenerate.
181 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
183 * objfiles.c (allocate_objfile): Remove duplicate comment.
185 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
187 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
188 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
189 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
190 (supply_gregset, supply_fpregset): Remove.
191 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
192 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
195 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
197 Add add-auto-load-scripts-directory.
198 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
199 * auto-load.c (add_auto_load_dir): New function.
200 (_initialize_auto_load): Install it.
202 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
204 Pushed by Joel Brobecker <brobecker@adacore.com>.
205 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
207 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
209 * eval.c (evaluate_subexp): Check that the thread stack temporaries
210 are not already enabled before enabling them.
212 2014-11-29 Yao Qi <yao@codesourcery.com>
214 * arm-tdep.c (arm_analyze_prologue): Move local variables
215 'framereg' and 'framesize' to inner block. Move code to
218 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
220 * eval.c: Include gdbthread.h.
221 (evaluate_subexp): Enable thread stack temporaries before
222 evaluating a complete expression and clean them up after the
223 evaluation is complete.
224 * gdbthread.h: Include common/vec.h.
225 (value_ptr): New typedef.
226 (VEC (value_ptr)): New vector type.
227 (value_vec): New typedef.
228 (struct thread_info): Add new fields stack_temporaries_enabled
229 and stack_temporaries.
230 (enable_thread_stack_temporaries)
231 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
232 (get_last_thread_stack_temporary)
233 (value_in_thread_stack_temporaries): Declare.
234 * gdbtypes.c (class_or_union_p): New function.
235 * gdbtypes.h (class_or_union_p): Declare.
236 * infcall.c (call_function_by_hand): Store return values of class
237 type as temporaries on stack.
238 * thread.c (enable_thread_stack_temporaries): New function.
239 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
240 (get_last_thread_stack_temporary): Likewise.
241 (value_in_thread_stack_temporaries): Likewise.
242 * value.c (value_force_lval): New function.
243 * value.h (value_force_lval): Declare.
245 2014-11-28 Pierre Muller <muller@sourceware.org>
247 Pushed by Joel Brobecker <brobecker@adacore.com>.
248 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
251 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
253 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
254 * config/sparc/linux.mh (NATDEPFILES): Likewise.
255 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
256 * m68klinux-nat.c (fetch_core_registers): Remove.
257 (linux_elf_core_fns): Remove.
258 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
260 2014-11-28 Joel Brobecker <brobecker@adacore.com>
262 * utils.c (gdb_realpath): Rework comment about handling on
265 2014-11-28 Yao Qi <yao@codesourcery.com>
267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
269 * gnulib/aclocal.m4: Re-generated.
270 * gnulib/config.in: Re-generated.
271 * gnulib/configure: Re-generated.
272 * gnulib/import/Makefile.am: Re-generated.
273 * gnulib/import/Makefile.in: Re-generated.
274 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
275 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
276 * import/basename-lgpl.c: New file.
277 * import/dirname-lgpl.c: New file.
278 * import/dirname.h: New file.
279 * import/m4/dirname.m4: New file.
280 * import/m4/malloc.m4: New file.
281 * import/m4/rename.m4: New file.
282 * import/m4/rmdir.m4: New file.
283 * import/m4/stdio_h.m4: New file.
284 * import/malloc.c: New file.
285 * import/rename.c: New file.
286 * import/rmdir.c: New file.
287 * import/same-inode.h: New file.
288 * import/stdio.c: New file.
289 * import/stdio.in.h: New file.
290 * import/stripslash.c: New file.
292 2014-11-28 Yao Qi <yao@codesourcery.com>
294 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
296 * config.in: Re-generated.
297 * configure: Re-generated.
298 * utils.c (gdb_realpath): Remove code calling realpath,
299 canonicalize_file_name and pathconf.
300 [!_WIN32]: Call canonicalize_file_name.
302 2014-11-28 Yao Qi <yao@codesourcery.com>
304 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
306 * aclocal.m4: Re-generated.
307 * config.in: Re-generated.
308 * configure: Re-generated.
309 * import/Makefile.am: Re-generated.
310 * import/Makefile.in: Re-generated.
311 * import/m4/gnulib-cache.m4: Re-generated.
312 * import/m4/gnulib-comp.m4: Re-generated.
313 * import/canonicalize-lgpl.c: New file.
314 * import/extra/snippet/_Noreturn.h: New file.
315 * import/m4/canonicalize.m4: New file.
316 * import/m4/double-slash-root.m4: New file.
317 * import/m4/eealloc.m4: New file.
318 * import/m4/malloca.m4: New file.
319 * import/m4/nocrash.m4: New file.
320 * import/m4/stdlib_h.m4: New file.
321 * import/malloca.c: New file.
322 * import/malloca.h: New file.
323 * import/malloca.valgrind: New file.
325 2014-11-28 Yao Qi <yao@codesourcery.com>
327 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
328 * config.in, configure: Regenerate.
329 * symfile.c (find_separate_debug_file_by_debuglink): Remove
330 code checking HAVE_LSTAT is defined.
332 2014-11-28 Yao Qi <yao@codesourcery.com>
334 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
336 * gnulib/aclocal.m4: Re-generated.
337 * gnulib/config.in: Re-generated.
338 * gnulib/configure: Re-generated.
339 * gnulib/import/Makefile.am: Re-generated.
340 * gnulib/import/Makefile.in: Re-generated.
341 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
342 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
343 * gnulib/import/lstat.c: New file.
344 * gnulib/import/m4/lstat.m4: New file.
346 2014-11-28 Yao Qi <yao@codesourcery.com>
348 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
349 * config.in, configure: Re-generate.
350 * inf-child.c (inf_child_fileio_readlink): Don't check
351 HAVE_READLINK is defined.
353 2014-11-28 Yao Qi <yao@codesourcery.com>
355 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
356 * gnulib/aclocal.m4: Re-generated.
357 * gnulib/config.in: Likewise.
358 * gnulib/configure: Likewise.
359 * gnulib/import/Makefile.am: Likewise.
360 * gnulib/import/Makefile.in: Likewise.
361 * gnulib/import/m4/gnulib-cache.m4: Likewise.
362 * gnulib/import/m4/gnulib-comp.m4: Likewise.
363 * gnulib/import/dosname.h: New file
364 * gnulib/import/m4/largefile.m4: New file.
365 * gnulib/import/m4/readlink.m4: New file.
366 * gnulib/import/m4/stat.m4: New file.
367 * gnulib/import/readlink.c: New file.
368 * gnulib/import/stat.c: New file.
370 2014-11-26 Mark Wielaard <mjw@redhat.com>
372 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
373 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
375 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
377 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
378 that there can be only one stack adjustment in the prologue
379 with tests to detect specific disallowed stack adjustments.
381 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
383 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
386 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
388 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
389 the instruction as well as reading it from memory.
390 (nios2_match_add): New.
391 (nios2_match_sub): New.
392 (nios2_match_addi): New.
393 (nios2_match_orhi): New.
394 (nios2_match_stw): New.
395 (nios2_match_ldw): New.
396 (nios2_match_rdctl): New.
397 (enum branch_condition): New.
398 (nios2_match_branch): New.
399 (nios2_match_jmpi): New.
400 (nios2_match_calli): New.
401 (nios2_match_jmpr): New.
402 (nios2_match_callr): New.
403 (nios2_match_break): New.
404 (nios2_match_trap): New.
405 (nios2_in_epilogue_p): Rewrite to use new functions.
406 (nios2_analyze_prologue): Likewise.
407 (nios2_skip_prologue): Delete unused local limit_pc.
408 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
409 (nios2_get_next_pc): Rewrite to use new functions.
411 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
413 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
415 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
417 Pushed by Joel Brobecker <brobecker@adacore.com>
418 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
419 elements pi_len by the size of the elements before calling
421 (inf_validate_task_sc): Likewise, and properly deallocate the
424 2014-11-23 Doug Evans <xdje42@gmail.com>
426 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
427 number and name if present. All callers updated.
428 (dump_fn_fieldlists): Fix indentation of args.
430 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
432 * MAINTAINERS (Write After Approval): Add myself.
434 2014-11-23 Joel Brobecker <brobecker@adacore.com>
436 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
437 to a bp_call_dummy breakpoint type.
439 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
441 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
442 registering the signal handler.
444 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
446 * event-top.h (call_stdin_event_handler_again_p): Declare.
447 * event-top.c (call_stdin_event_handler_again_p): Define.
448 (stdin_event_handler): Use it.
449 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
450 handler again if there is pending input following a
453 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
455 Pushed by Joel Brobecker <brobecker@adacore.com>
456 * linux-fork.c (checkpoint_command): Print index of new
457 checkpoint in response message.
459 2014-11-23 Yao Qi <yao@codesourcery.com>
461 * valprint.c (read_string): Move local variables 'found_nul',
462 'chunksize' and 'limit' to inner scope. Update comments.
464 2014-11-22 Doug Evans <xdje42@gmail.com>
466 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
468 (search_symbols): Fix comments and whitespace.
470 2014-11-22 Doug Evans <xdje42@gmail.com>
472 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
474 2014-11-21 Doug Evans <dje@google.com>
476 * psymtab.c (psymtab_search_name): Fix whitespace.
478 2014-11-21 Yao Qi <yao@codesourcery.com>
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
482 * gnulib/import/Makefile.am: Re-generated.
483 * gnulib/import/Makefile.in: Likewise.
484 * gnulib/import/m4/gnulib-cache.m4: Likewise.
486 2014-11-21 Yao Qi <yao@codesourcery.com>
488 * gdb_wchar.h: Include wchar.h and wctype.h.
489 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
490 include wchar.h and wctype.h.
491 Don't check HAVE_WCHAR_H.
493 2014-11-21 Yao Qi <yao@codesourcery.com>
495 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
497 * gnulib/import/Makefile.am: Re-generated.
498 * gnulib/import/Makefile.in: Likewise.
499 * gnulib/import/m4/gnulib-cache.m4: Likewise.
501 2014-11-21 Yao Qi <yao@codesourcery.com>
503 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
505 * gnulib/import/Makefile.am: Re-generated.
506 * gnulib/import/Makefile.in: Likewise.
507 * gnulib/import/m4/gnulib-cache.m4: Likewise.
509 2014-11-21 Yao Qi <yao@codesourcery.com>
511 * common/common-defs.h: Include alloca.h
512 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
513 * configure: Re-generated.
514 * defs.h: Remove code handling alloca.
515 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
518 2014-11-21 Yao Qi <yao@codesourcery.com>
520 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
522 * gnulib/import/Makefile.am: Re-generated.
523 * gnulib/import/Makefile.in: Likewise..
524 * gnulib/import/m4/gnulib-cache.m4: Likewise.
526 2014-11-21 Yao Qi <yao@codesourcery.com>
528 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
531 2014-11-21 Joel Brobecker <brobecker@adacore.com>
533 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
534 flag_unsigned if HIGH_BOUND is constant and negative.
536 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
539 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
540 modifier from "struct gdbarch" when compiling without Expat (XML)
542 (get_syscall_by_number): Likewise.
543 (get_syscall_by_name): Likewise.
544 (get_syscall_names): Likewise.
546 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
549 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
550 set_xml_syscall_file_name to provide gdbarch.
551 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
552 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
553 * breakpoint.c (print_it_catch_syscall): Adjust call to
554 get_syscall_by_number to provide gdbarch.
555 (print_one_catch_syscall): Likewise.
556 (print_mention_catch_syscall): Likewise.
557 (print_recreate_catch_syscall): Likewise.
558 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
559 and get_syscall_by_name to provide gdbarch.
560 (catch_syscall_completer): Adjust call to get_syscall_names to
562 * gdbarch.c: Regenerate.
563 * gdbarch.h: Likewise.
564 * gdbarch.sh: Forward declare "struct syscalls_info".
565 (xml_syscall_file): New variable.
566 (syscalls_info): Likewise.
567 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
568 set_xml_syscall_file_name to provide gdbarch.
569 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
570 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
571 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
572 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
573 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
574 * xml-syscall.c: Include gdbarch.h.
575 (set_xml_syscall_file_name): Accept gdbarch parameter.
576 (get_syscall_by_number): Likewise.
577 (get_syscall_by_name): Likewise.
578 (get_syscall_names): Likewise.
579 (my_gdb_datadir): Delete global variable.
580 (struct syscalls_info) <my_gdb_datadir>: New variable.
581 (struct syscalls_info) <sysinfo>: Rename variable to
583 (sysinfo): Delete global variable.
584 (have_initialized_sysinfo): Likewise.
585 (xml_syscall_file): Likewise.
586 (sysinfo_free_syscalls_desc): Rename to...
587 (syscalls_info_free_syscalls_desc): ... this.
588 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
589 code to the new layout of "struct syscalls_info".
590 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
592 (syscall_create_syscall_desc): Likewise.
593 (syscall_start_syscall): Likewise.
594 (syscall_parse_xml): Likewise.
595 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
596 (init_sysinfo): Rename to...
597 (init_syscalls_info): ...this. Add gdbarch as a parameter.
598 Adjust function to deal with gdbarch.
599 (xml_get_syscall_number): Delete parameter sysinfo. Accept
600 gdbarch as a parameter. Adjust code.
601 (xml_get_syscall_name): Likewise.
602 (xml_list_of_syscalls): Likewise.
603 (set_xml_syscall_file_name): Accept gdbarch as parameter.
604 (get_syscall_by_number): Likewise.
605 (get_syscall_by_name): Likewise.
606 (get_syscall_names): Likewise.
607 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
608 (get_syscall_by_number): Likewise.
609 (get_syscall_by_name): Likewise.
610 (get_syscall_names): Likewise.
612 2014-11-20 Doug Evans <xdje42@gmail.com>
614 Split struct symtab into two: struct symtab and compunit_symtab.
615 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
616 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
617 to "struct compunit_symtab *". All callers updated.
618 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
619 "struct symtab *" argument to "struct compunit_symtab *".
621 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
622 result to "struct compunit_symtab *". All callers updated.
623 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
624 Change result to "struct compunit_symtab *". All callers updated.
625 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
626 hange type to "struct compunit_symtab *". All uses updated.
627 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
628 Change type to "struct compunit_symtab *". All uses updated.
629 * buildsym.c (struct buildsym_compunit): New struct.
630 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
631 (buildsym_compunit): New static global.
632 (finish_block_internal): Update to fetch objfile from
634 (make_blockvector): Delete objfile argument.
635 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
636 debugformat, producer.
637 (start_buildsym_compunit): New function.
638 (free_buildsym_compunit): Renamed from free_subfiles_list.
640 (patch_subfile_names): Rewrite to use buildsym_compunit.
641 (get_compunit_symtab): New function.
642 (get_macro_table): Delete argument comp_dir. All callers updated.
643 (start_symtab): Change result to "struct compunit_symtab *".
644 All callers updated. Create the subfile of the main source file.
645 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
646 (reset_symtab_globals): Update.
647 (end_symtab_get_static_block): Update to use buildsym_compunit.
648 (end_symtab_without_blockvector): Rewrite.
649 (end_symtab_with_blockvector): Change result to
650 "struct compunit_symtab *". All callers updated.
651 Update to use buildsym_compunit. Don't set symtab->dirname,
652 instead set it in the compunit.
653 Explicitly make sure main symtab is first in its list.
654 Set debugformat, producer, blockvector, block_line_section, and
655 macrotable in the compunit.
656 (end_symtab_from_static_block): Change result to
657 "struct compunit_symtab *". All callers updated.
658 (end_symtab, end_expandable_symtab): Ditto.
659 (set_missing_symtab): Change symtab argument to
660 "struct compunit_symtab *". All callers updated.
661 (augment_type_symtab): Ditto.
662 (record_debugformat): Update to use buildsym_compunit.
663 (record_producer): Update to use buildsym_compunit.
664 * buildsym.h (struct subfile) <dirname>: Delete.
665 <producer, debugformat>: Delete.
666 <buildsym_compunit>: New member.
667 (get_compunit_symtab): Declare.
668 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
669 from primary_symtab. Change type to "struct compunit_symtab *".
671 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
673 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
674 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
675 symtab. Change type to "struct compunit_symtab *". All uses updated.
676 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
678 (dw2_find_last_source_symtab): Ditto.
679 (dw2_lookup_symbol): Ditto.
680 (recursively_find_pc_sect_compunit_symtab): Renamed from
681 recursively_find_pc_sect_symtab. Change result to
682 "struct compunit_symtab *". All callers updated.
683 (dw2_find_pc_sect_compunit_symtab): Renamed from
684 dw2_find_pc_sect_symtab. Change result to
685 "struct compunit_symtab *". All callers updated.
686 (get_compunit_symtab): Renamed from get_symtab. Change result to
687 "struct compunit_symtab *". All callers updated.
688 (recursively_compute_inclusions): Change type of immediate_parent
689 argument to "struct compunit_symtab *". All callers updated.
690 (compute_compunit_symtab_includes): Renamed from
691 compute_symtab_includes. All callers updated. Rewrite to compute
692 includes of compunit_symtabs and not symtabs.
693 (process_full_comp_unit): Update to work with struct compunit_symtab.
694 (process_full_type_unit): Ditto.
695 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
696 (dwarf_decode_lines): Remove special case handling of main subfile.
697 (macro_start_file): Delete argument comp_dir. All callers updated.
698 (dwarf_decode_macro_bytes): Ditto.
699 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
700 use struct compunit_symtab.
701 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
702 * jit.c (finalize_symtab): Build compunit_symtab.
703 * jv-lang.c (get_java_class_symtab): Change result to
704 "struct compunit_symtab *". All callers updated.
705 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
706 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
707 comp_dir. Change type to "struct compunit_symtab *".
709 (new_macro_table): Change comp_dir argument to cust,
710 "struct compunit_symtab *". All callers updated.
711 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
712 nr_primary_symtabs. All uses updated.
713 (count_symtabs_and_blocks): Update to handle compunits.
714 (report_command_stats): Update output, "primary symtabs" renamed to
716 * mdebugread.c (new_symtab): Change result to
717 "struct compunit_symtab *". All callers updated.
718 (parse_procedure): Change type of search_symtab argument to
719 "struct compunit_symtab *". All callers updated.
720 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
722 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
723 symtabs. Change type to "struct compunit_symtab *". All uses updated.
724 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
726 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
728 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
729 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
730 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
731 symtab. Change type to "struct compunit_symtab *". All uses updated.
732 * psymtab.c (psymtab_to_symtab): Change result type to
733 "struct compunit_symtab *". All callers updated.
734 (find_pc_sect_compunit_symtab_from_partial): Renamed from
735 find_pc_sect_symtab_from_partial. Change result type to
736 "struct compunit_symtab *". All callers updated.
737 (lookup_symbol_aux_psymtabs): Change result type to
738 "struct compunit_symtab *". All callers updated.
739 (find_last_source_symtab_from_partial): Ditto.
740 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
741 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
742 and macro_table from compunit.
743 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
744 type to "struct compunit_symtab *". All callers updated.
745 (debug_qf_lookup_symbol): Ditto.
746 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
747 debug_qf_find_pc_sect_symtab, change result type to
748 "struct compunit_symtab *". All callers updated.
749 * symfile.c (allocate_symtab): Delete objfile argument.
751 (allocate_compunit_symtab): New function.
752 (add_compunit_symtab_to_objfile): New function.
753 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
754 Change result type to "struct compunit_symtab *". All uses updated.
755 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
756 Change result type to "struct compunit_symtab *". All uses updated.
757 * symmisc.c (print_objfile_statistics): Compute blockvector count in
759 (dump_symtab_1): Update test for primary source symtab.
760 (maintenance_info_symtabs): Update to handle compunit symtabs.
761 (maintenance_check_symtabs): Ditto.
762 * symtab.c (set_primary_symtab): Delete.
763 (compunit_primary_filetab): New function.
764 (compunit_language): New function.
765 (iterate_over_some_symtabs): Change type of arguments "first",
766 "after_last" to "struct compunit_symtab *". All callers updated.
767 Update to loop over symtabs in each compunit.
768 (error_in_psymtab_expansion): Rename symtab argument to cust,
769 and change type to "struct compunit_symtab *". All callers updated.
770 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
771 Change result type to "struct compunit_symtab *". All callers updated.
772 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
773 Change result type to "struct compunit_symtab *". All callers updated.
774 (find_pc_sect_line): Only loop over symtabs within selected compunit
775 instead of all symtabs in the objfile.
776 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
777 <compunit_symtab> New member.
778 <block_line_section>: Moved to compunit_symtab.
779 <locations_valid>: Ditto.
780 <epilogue_unwind_valid>: Ditto.
781 <macro_table>: Ditto.
783 <debugformat>: Ditto.
786 <call_site_htab>: Ditto.
790 (SYMTAB_COMPUNIT): New macro.
791 (SYMTAB_BLOCKVECTOR): Update definition.
792 (SYMTAB_OBJFILE): Update definition.
793 (SYMTAB_DIRNAME): Update definition.
794 (struct compunit_symtab): New type. Common members among all source
795 symtabs within a compilation unit moved here. All uses updated.
796 (COMPUNIT_OBJFILE): New macro.
797 (COMPUNIT_FILETABS): New macro.
798 (COMPUNIT_DEBUGFORMAT): New macro.
799 (COMPUNIT_PRODUCER): New macro.
800 (COMPUNIT_DIRNAME): New macro.
801 (COMPUNIT_BLOCKVECTOR): New macro.
802 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
803 (COMPUNIT_LOCATIONS_VALID): New macro.
804 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
805 (COMPUNIT_CALL_SITE_HTAB): New macro.
806 (COMPUNIT_MACRO_TABLE): New macro.
807 (ALL_COMPUNIT_FILETABS): New macro.
808 (compunit_symtab_ptr): New typedef.
809 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
811 2014-11-20 Joel Brobecker <brobecker@adacore.com>
813 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
814 if the TYPE_CODE of range_type's base type does not match
815 the TYPE_CODE of encoding_type's base type.
817 2014-11-19 Joel Brobecker <brobecker@adacore.com>
819 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
822 2014-11-19 Joel Brobecker <brobecker@adacore.com>
824 * ada-lang.c (ada_is_redundant_range_encoding): New function.
825 (ada_is_redundant_index_type_desc): New function.
826 (to_fixed_array_type): Ignore parallel XA type if redundant.
828 2014-11-19 Joel Brobecker <brobecker@adacore.com>
830 * ada-lang.c (constrained_packed_array_type): Set the length
831 of the return array as if both bounds where zero if that
832 returned array's index type is dynamic.
834 2014-11-19 Yao Qi <yao@codesourcery.com>
836 * config/i386/go32.mh (CC): Remove.
838 2014-11-18 Doug Evans <xdje42@gmail.com>
840 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
843 2014-11-18 Doug Evans <xdje42@gmail.com>
845 * buildsym.c (buildsym_objfile): New static global.
846 (buildsym_comp_dir): New static global.
847 (finish_block_internal): Delete arg objfile. All callers updated.
848 (finish_block): Delete arg objfile. All callers updated.
849 (start_subfile): Delete arg dirname. All callers updated.
850 (patch_subfile_names): Update buildsym_comp_dir.
851 (get_macro_table): Delete arg objfile. All callers updated.
852 (start_symtab): New arg objfile. All callers updated.
853 Rename arg dirname to comp_dir.
854 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
855 (end_symtab_get_static_block): Delete arg objfile. All callers
857 (end_symtab_without_blockvector): Ditto.
858 (end_symtab_with_blockvector): Ditto.
859 (end_symtab_from_static_block): Ditto.
861 (end_expandable_symtab): Ditto.
862 (augment_type_symtab): Ditto.
863 * coffread.c (coff_start_symtab): New arg objfile. All callers
866 2014-11-18 Doug Evans <xdje42@gmail.com>
868 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
871 2014-11-18 Doug Evans <xdje42@gmail.com>
873 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
874 symtab.dirname updated to use it.
876 2014-11-18 Doug Evans <xdje42@gmail.com>
878 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
879 symtab.objfile updated to use it.
881 2014-11-18 Doug Evans <xdje42@gmail.com>
883 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
885 2014-11-18 Doug Evans <xdje42@gmail.com>
887 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
889 * findvar.c (default_read_var_value): Ditto.
890 * jv-lang.c (add_class_symtab_symbol): Ditto.
891 * parse.c (operator_check_standard): Ditto.
892 * printcmd.c (address_info): Ditto.
893 * symtab.c (fixup_symbol_section): Ditto.
894 (skip_prologue_sal): Ditto.
895 * tracepoint.c (scope_info): Ditto.
896 * valops.c (find_function_in_inferior): Ditto.
897 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
898 * python/py-symbol.c (set_symbol): Ditto.
900 2014-11-18 Doug Evans <xdje42@gmail.com>
902 * buildsym.c (main_subfile): New static global.
903 (free_subfiles_list): New function.
904 (start_symtab): Set main_subfile.
905 (restart_symtab): Replace init of subfiles, current_subfile with
906 call to free_subfiles_list.
907 (watch_main_source_file_lossage): Use main_subfile.
908 (reset_symtab_globals): Replace init of current_subfile with call
909 to free_subfiles_list.
910 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
911 functions, split out from ...
912 (end_symtab_from_static_block): ... here. Rewrite to call them.
914 2014-11-18 Doug Evans <xdje42@gmail.com>
916 The result of symtab expansion is always a primary symtab.
917 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
918 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
919 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
920 (psymtab_to_symtab): Add comment and assert.
921 (map_matching_symbols_psymtab): Remove unnecessary test for
924 2014-11-15 Doug Evans <xdje42@gmail.com>
927 * symtab.c (find_pc_line_symtab): New function.
928 * symtab.h (find_pc_line_symtab): Declare.
929 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
931 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
932 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
933 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
934 * tui/tui-win.c (make_visible_with_new_height): Ditto.
935 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
936 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
938 2014-11-15 Doug Evans <xdje42@gmail.com>
940 * symtab.c (expand_symtab_containing_pc): Renamed from
941 find_pc_sect_symtab_via_partial. All callers updated.
943 2014-11-15 Yao Qi <yao@codesourcery.com>
945 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
947 2014-11-14 Joel Brobecker <brobecker@adacore.com>
949 * common/common-defs.h: Move <stdarg.h> #include ahead of
952 2014-11-14 Pedro Alves <palves@redhat.com>
954 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
955 [!PHONY_ICONV] (gdb_iconv): New function.
956 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
958 2014-11-13 Doug Evans <dje@google.com>
961 * dwarf2read.c (find_slot_in_mapped_hash): Handle
962 "(anonymous namespace)".
964 2014-11-13 Doug Evans <dje@google.com>
966 * dwarf2read.c (update_enumeration_type_from_children): Avoid
969 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
971 * NEWS (maint set target-async): Fix typo.
973 2014-11-12 Pedro Alves <palves@redhat.com>
975 * infrun.c (enum infwait_states, infwait_state): Delete.
977 2014-11-12 Pedro Alves <palves@redhat.com>
979 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
980 Rewrite stepping over a permanent breakpoint.
981 (thread_still_needs_step_over, proceed): Don't set
982 stepping_over_breakpoint for permanent breakpoints.
983 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
984 single-step breakpoints out of the target on hardware step
986 (process_event_stop_test): If stepping a permanent breakpoint
987 doesn't hit the step-resume breakpoint, delete the step-resume
989 (switch_back_to_stepped_thread): Also check if the stepped thread
990 has advanced already on hardware step targets.
991 (currently_stepping): Return true if the thread stepped a
994 2014-11-12 Pedro Alves <palves@redhat.com>
996 Mark locations as permanent, not the whole breakpoint.
997 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
998 (mark_breakpoints_out): Don't mark permanent breakpoints as
1000 (breakpoint_init_inferior): Use mark_breakpoints_out.
1001 (breakpoint_here_p): Adjust.
1002 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1003 of permanent breakpoints.
1004 (make_breakpoint_permanent): Mark each location as permanent,
1005 instead of marking the breakpoint.
1006 (add_location_to_breakpoint): If the location is permanent, mark
1007 it as such, and as inserted.
1008 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1009 (bp_location_compare, update_global_location_list): Adjust.
1010 (update_breakpoint_locations): Don't make the breakpoint permanent
1012 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1014 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1015 (struct bp_location) <permanent>: New field.
1016 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1017 reference to bp_permanent.
1019 2014-11-12 Pedro Alves <palves@redhat.com>
1021 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1022 * arch-utils.h (default_skip_permanent_breakpoint): New
1024 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1025 Install default_skip_permanent_breakpoint as default method.
1026 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1027 (i386_gdbarch_init): Don't install it.
1028 * infrun.c (resume): Assume there's always a
1029 gdbarch_skip_permanent_breakpoint implementation.
1030 * gdbarch.h, gdbarch.c: Regenerate.
1032 2014-11-11 Daniel Colascione <dancol@dancol.org>
1034 Warn about cross-PID-namespace debugging.
1035 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1036 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1037 * linux-thread-db.c (check_pid_namespace_match): New function.
1038 (thread_db_inferior_created): Call it.
1040 2014-11-10 Doug Evans <xdje42@gmail.com>
1042 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1043 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1045 2014-11-10 Doug Evans <xdje42@gmail.com>
1047 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1049 2014-11-10 Doug Evans <xdje42@gmail.com>
1052 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1053 (lookup_static_symbol): Move definition to new location and rewrite.
1054 (lookup_symbol_in_objfile): New function.
1055 (lookup_symbol_global_iterator_cb): Call it.
1057 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1059 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1061 2014-11-07 Pedro Alves <palves@redhat.com>
1063 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1064 check if we did a "nexti" inside a prologue.
1065 * symtab.c (in_prologue): Delete function.
1066 * symtab.h (in_prologue): Delete declaration.
1068 2014-11-06 Doug Evans <xdje42@gmail.com>
1070 * symtab.h (lookup_global_symbol): Improve function comment.
1072 2014-11-06 Doug Evans <xdje42@gmail.com>
1074 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1075 All callers updated.
1076 * symtab.h (lookup_global_symbol): Update decl.
1077 (lookup_static_symbol): Move decl to better location.
1079 2014-11-06 Doug Evans <xdje42@gmail.com>
1081 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1083 2014-11-06 Doug Evans <xdje42@gmail.com>
1085 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1086 All callers updated.
1087 (lookup_symbol_in_all_objfiles): Renamed from
1088 lookup_symbol_aux_symtabs. All callers updated.
1089 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1090 All callers updated.
1091 (lookup_symbol_in_objfile_symtabs): Renamed from
1092 lookup_symbol_aux_objfile. All callers updated.
1094 2014-11-06 Doug Evans <xdje42@gmail.com>
1096 * symtab.c (lookup_symbol_in_block): Renamed from
1097 lookup_symbol_aux_block. All callers updated.
1099 2014-11-06 Doug Evans <xdje42@gmail.com>
1101 * symtab.c (lookup_static_symbol): Renamed from
1102 lookup_static_symbol_aux. All callers updated.
1103 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1104 All callers updated.
1106 2014-11-06 Doug Evans <xdje42@gmail.com>
1108 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1109 * block.c (block_lookup_symbol): Use it.
1110 * cp-support.c (make_symbol_overload_list_block): Use it.
1111 * symtab.c (iterate_over_symbols): Use it.
1113 2014-11-06 Doug Evans <xdje42@gmail.com>
1115 * symtab.c (lookup_block_symbol): Moved to ...
1116 * block.c (block_lookup_symbol): ... here and renamed.
1117 All callers updated.
1118 * block.h (block_lookup_symbol): Declare.
1119 * symtab.h (lookup_block_symbol): Delete.
1121 2014-11-06 Doug Evans <xdje42@gmail.com>
1123 * ada-lang.c (ada_make_symbol_completion_list): Use
1124 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1125 * symtab.c (lookup_objfile_from_block): Ditto.
1127 2014-11-06 Doug Evans <xdje42@gmail.com>
1129 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1132 2014-11-06 Doug Evans <xdje42@gmail.com>
1134 * objfiles.c (get_objfile_arch): Constify.
1135 * objfiles.h (get_objfile_arch): Update prototype.
1136 * solib.c (solib_global_lookup): Fetch arch from objfile,
1139 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1141 * nios2-tdep.c (wild_insn): Delete.
1142 (profiler_insn, irqentry_insn): Delete.
1143 (nios2_match_sequence): Delete.
1144 (nios2_analyze_prologue): Update comments. Remove matching
1145 of obsolete profiler_insn and irqentry_insn sequences.
1147 2014-11-05 Alan Modra <amodra@gmail.com>
1149 * charset.c (convert_between_encodings): Shrink obstack using
1151 * minsyms.c (install_minimal_symbols): Likewise.
1152 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1153 to char* before doing pointer arithmetic.
1155 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1157 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1159 2014-11-04 Pedro Alves <palves@redhat.com>
1161 * breakpoint.c (breakpoint_thread_match): Delete function.
1162 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1164 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1167 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1168 the method args also under EVAL_SKIP when evaluating method
1169 calls under EVAL_SKIP.
1171 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1173 * dwarf2loc.c (read_pieced_value): Do big endian
1174 processing only if gdb_regnum is not -1.
1175 (write_pieced_value): Ditto.
1177 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1179 * arm-linux-tdep.c (arm_linux_init_abi): Use
1180 info.byte_order_for_code to choose endianity of breakpoint
1181 instructions snippets.
1183 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1185 * arm-tdep.c (extract_arm_insn): Use
1186 gdbarch_byte_order_for_code to read arm instruction.
1188 2014-11-02 Doug Evans <xdje42@gmail.com>
1190 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1192 2014-11-02 Doug Evans <xdje42@gmail.com>
1194 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1195 main_subfile before returning.
1197 2014-10-31 Doug Evans <xdje42@gmail.com>
1199 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1200 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1202 2014-10-31 Doug Evans <xdje42@gmail.com>
1204 * valops.c (value_cast_pointers): Fix whitespace.
1205 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1208 2014-10-30 Doug Evans <dje@google.com>
1210 * NEWS: Mention ability add attributes to gdb.Objfile and
1211 gdb.Progspace objects.
1212 * python/py-objfile.c (objfile_object): New member dict.
1213 (objfpy_dealloc): Py_XDECREF dict.
1214 (objfpy_initialize): Initialize dict.
1215 (objfile_getset): Add __dict__.
1216 (objfile_object_type): Set tp_dictoffset member.
1217 * python/py-progspace.c (progspace_object): New member dict.
1218 (pspy_dealloc): Py_XDECREF dict.
1219 (pspy_initialize): Initialize dict.
1220 (pspace_getset): Add __dict__.
1221 (pspace_object_type): Set tp_dictoffset member.
1223 2014-10-30 Yao Qi <yao@codesourcery.com>
1225 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1226 replace '\\' with '\\\\'.
1228 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1232 2014-10-29 Pedro Alves <palves@redhat.com>
1235 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1236 instead of assuming a thread with a stepping range is always
1239 2014-10-29 Pedro Alves <palves@redhat.com>
1242 * event-top.c (change_line_handler): Call
1243 gdb_rl_callback_handler_remove instead of
1244 rl_callback_handler_remove.
1245 (callback_handler_installed): New global.
1246 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1247 (gdb_rl_callback_handler_reinstall): New functions.
1248 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1249 gdb_rl_callback_handler_install instead of
1250 rl_callback_handler_remove and rl_callback_handler_install.
1251 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1252 instead of rl_callback_handler_remove.
1253 * event-top.h (gdb_rl_callback_handler_remove)
1254 (gdb_rl_callback_handler_install)
1255 (gdb_rl_callback_handler_reinstall): New declarations.
1256 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1258 (fetch_inferior_event): Install it.
1259 * top.c (gdb_readline_wrapper_line) Call
1260 gdb_rl_callback_handler_remove instead of
1261 rl_callback_handler_remove.
1262 (gdb_readline_wrapper_cleanup): Don't call
1263 rl_callback_handler_install.
1265 2014-10-29 Pedro Alves <palves@redhat.com>
1267 * event-top.c (command_line_handler): Clear the first byte of
1268 linebuffer, when it is first allocated.
1270 2014-10-29 Pedro Alves <palves@redhat.com>
1272 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1275 2014-10-29 Pedro Alves <palves@redhat.com>
1279 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1280 (tui_allowed_p): Delete function.
1281 * tui/tui.c: Include "interps.h".
1282 (tui_enable): Don't use tui_allowed_p. Error out here with
1283 detailed error messages if the TUI is the top level interpreter,
1284 or if output is not a terminal. Use newterm instead of initscr,
1285 and error out if initializing the terminal fails. Also error out if
1286 the terminal doesn't support cursor addressing.
1287 * tui/tui.h (tui_allowed_p): Delete declaration.
1289 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1291 * arm-tdep.c (arm_skip_stack_protector): Return early if
1292 address loaded by first "ldr" instruction does not have
1293 a corresponding minimal symbol. Update comment.
1295 2014-10-29 Yao Qi <yao@codesourcery.com>
1297 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1298 loaded address correctly of ldr instruction.
1300 2014-10-28 Pedro Alves <palves@redhat.com>
1303 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1305 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1306 thread's stepped_breakpoint field. Skip if reverse debugging.
1308 (init_thread_stepping_state, handle_signal_stop): Clear the
1309 thread's stepped_breakpoint field.
1311 2014-10-27 Pedro Alves <palves@redhat.com>
1313 * remote.c (remote_thread_alive): New, factored out from ...
1314 (remote_thread_alive): ... this.
1315 (remote_update_thread_list): Bail out before deleting threads if
1316 the target returned an empty list, and, the current thread has a
1319 2014-10-27 Pedro Alves <palves@redhat.com>
1321 * infrun.c (handle_signal_stop): Also skip handlers when a random
1322 signal arrives while handling a "stepi" or a "nexti". Set the
1323 thread's 'step_after_step_resume_breakpoint' flag.
1325 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1327 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1328 (arm_record_ld_st_imm_offset): Reimplement to cover all
1329 load/store cases for ARM opcode 010.
1330 (arm_record_ld_st_multiple): Reimplement to cover all
1331 load/store cases for ARM opcode 100.
1333 2014-10-26 Doug Evans <xdje42@gmail.com>
1335 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1337 2014-10-26 Doug Evans <xdje42@gmail.com>
1339 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1340 parameter "kind" to "block_index".
1341 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1343 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1345 2014-10-26 Doug Evans <xdje42@gmail.com>
1347 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1349 2014-10-26 Doug Evans <xdje42@gmail.com>
1351 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1354 2014-10-26 Doug Evans <xdje42@gmail.com>
1356 * parser-defs.h (block_found): Move decl from here ...
1357 * symtab.h (block_found): ... to here.
1359 2014-10-26 Doug Evans <xdje42@gmail.com>
1361 * symtab.h (struct field_of_this_result): Fix typo in comment.
1362 (lookup_symbol_in_language): Move function comment here.
1363 (lookup_symbol): Improve function comment.
1364 (basic_lookup_symbol_nonlocal): Ditto.
1365 (lookup_symbol_static, lookup_symbol_global): Ditto.
1366 (lookup_symbol_aux_block): Ditto.
1367 (lookup_language_this): Add function comment.
1368 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1370 (lookup_block_symbol): Improve function comment.
1371 (lookup_struct): Fix capitalization in function comment.
1372 (lookup_transparent_type): Add function comment.
1373 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1374 Improve function comment.
1375 (lookup_objfile_from_block): Add function comment.
1376 * symtab.c (lookup_symbol_in_language): Update function comment.
1377 (lookup_symbol, lookup_language_this): Ditto.
1378 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1379 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1380 (basic_lookup_symbol_nonlocal): Ditto.
1381 (lookup_symbol_static, lookup_symbol_global): Ditto.
1382 (lookup_transparent_type, lookup_block_symbol): Ditto.
1384 2014-10-25 Doug Evans <xdje42@gmail.com>
1386 * symtab.c (types_info): Delete forward decl.
1387 (functions_info, variables_info, sources_info): Ditto.
1388 (_initialize_symtab): Rewrite forward decl to use
1389 initialize_file_ftype.
1391 2014-10-25 Doug Evans <xdje42@gmail.com>
1393 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1395 2014-10-25 Doug Evans <xdje42@gmail.com>
1397 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1398 of local var child_die.
1400 2014-10-24 Don Breazeal <donb@codesourcery.com>
1402 * infrun.c (follow_fork_inferior): Update fork message printing
1403 to use target_terminal_ours_for_output instead of
1404 target_terminal_ours, to use _() for all format strings, to print
1405 "vfork" instead of "fork" for vforks, and to add a detach message.
1406 (handle_vfork_child_exec_or_exit): Update message printing to use
1407 target_terminal_ours_for_output instead of target_terminal_ours, to
1408 use _() for all format strings, and to fix some formatting.
1410 2014-10-24 Pedro Alves <palves@redhat.com>
1412 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1413 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1414 * config/vax/vax.mh: Delete.
1415 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1416 obsolete configurations section.
1417 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1418 * vax-nat.c: Delete file.
1420 2014-10-24 Pedro Alves <palves@redhat.com>
1422 * NEWS (Removed targets): Add OS/arch column.
1424 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1426 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1427 on the arg type of a constructor only if it is of reference type.
1429 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1431 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1432 accessors and constants from nios2 opcodes update.
1433 (nios2_get_next_pc): Likewise.
1435 2014-10-19 Doug Evans <xdje42@gmail.com>
1437 * gdbthread.h (set_running): Fix comment.
1438 (set_executing, finish_thread_state): Fix comment.
1440 2014-10-18 Doug Evans <xdje42@gmail.com>
1442 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1444 2014-10-17 Doug Evans <dje@google.com>
1446 * NEWS: Mention new event gdb.clear_objfiles.
1447 * python/py-event.h (emit_clear_objfiles_event): Clear
1448 * python/py-events.h (events_object): New member clear_objfiles.
1449 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1451 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1452 emit clear_objfiles event.
1453 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1455 (emit_clear_objfiles_event): New function.
1456 (clear_objfiles): New event.
1457 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1459 * python/python.c (_initialize_python): Call
1460 gdbpy_initialize_clear_objfiles_event.
1462 2014-10-17 Doug Evans <dje@google.com>
1464 * NEWS: Mention new gdb.Objfile.progspace attribute.
1465 * python/py-objfile.c (objfpy_get_progspace): New function.
1466 (objfile_getset): New entry for "progspace".
1468 2014-10-17 Pedro Alves <palves@redhat.com>
1471 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1472 returns a copy of the input.
1473 (run_command_1, continue_command, step_1, jump_command)
1474 (signal_command, until_command, advance_command, finish_command)
1475 (attach_command): Adjust and install a cleanup to free the
1478 2014-10-17 Pedro Alves <palves@redhat.com>
1481 * infcmd.c (continue_1): If continuing all threads in the
1482 foreground, make sure the inferior's terminal settings are put in
1485 2014-10-17 Pedro Alves <palves@redhat.com>
1488 * annotate.c (annotate_breakpoints_invalid): Use
1489 target_terminal_our_for_output instead of target_terminal_ours.
1490 Give back the terminal to the target.
1491 (annotate_frames_invalid): Likewise.
1493 2014-10-17 Pedro Alves <palves@redhat.com>
1495 * target.c (enum terminal_state): New enum.
1496 (terminal_state): New global.
1497 (target_terminal_init): New function.
1498 (target_terminal_inferior): Skip if inferior already owns the
1500 (target_terminal_ours, target_terminal_ours_for_output): New
1502 * target.h (target_terminal_init): Convert to function prototype.
1503 (target_terminal_ours_for_output): Convert to function prototype
1505 (target_terminal_ours): Convert to function prototype and tweak
1507 * windows-nat.c (do_initial_windows_stuff): Call
1508 target_terminal_init instead of child_terminal_init_with_pgrp.
1510 2014-10-17 Pedro Alves <palves@redhat.com>
1512 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1513 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1514 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1516 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1517 * ada-lang.h [__alpha__ && __osf__]
1518 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1519 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1520 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1522 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1524 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1525 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1526 * configure: Regenerate.
1527 * configure.ac: Remove references to osf.
1528 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1529 section. Remove all other references to osf.
1530 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1531 Remove all other references to osf.
1532 * dec-thread.c: Delete file.
1533 * defs.h (GDB_OSABI_OSF1): Delete.
1534 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1536 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1537 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1539 (unconditionally_kill_inferior)
1540 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1541 * solib-osf.c: Delete file.
1543 2014-10-17 Pedro Alves <palves@redhat.com>
1545 * remote.c (clear_threads_listing_context): Move higher up, out of
1546 the HAVE_LIBEXPAT guard.
1548 2014-10-16 Tristan Gingold <gingold@adacore.com>
1550 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1551 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1554 2014-10-15 Pedro Alves <palves@redhat.com>
1556 * dec-thread.c (dec_thread_count_gdb_threads)
1557 (dec_thread_add_gdb_thread): Delete.
1558 (dec_thread_update_thread_list): Delete.
1559 (dec_thread_find_new_threads): Rename to ...
1560 (dec_thread_update_thread_list): ... this. Delete GDB-size
1561 threads that are no longer found in dec_thread_list.
1562 (resync_thread_list): Delete.
1563 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1566 2014-10-15 Pedro Alves <palves@redhat.com>
1568 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1569 * remote.c (remote_update_thread_list): Skip calling prune_threads
1570 if any thread listing method is supported, and instead walk over
1571 the set of remote threads listed, deleting those that are not
1572 found in GDB's thread list.
1574 2014-10-15 Pedro Alves <palves@redhat.com>
1576 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1577 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1578 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1579 (bsd_uthread_target): Adjust.
1580 * corelow.c (core_open): Adjust.
1581 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1582 (dec_thread_update_thread_list): New function.
1583 (init_dec_thread_ops): Adjust.
1584 * gdbthread.h (prune_threads): New declaration.
1585 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1586 (thread_db_update_thread_list): ... this. Call prune_threads.
1587 (init_thread_db_ops): Adjust.
1588 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1589 (procfs_update_thread_list): ... this. Call prune_threads.
1590 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1592 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1593 (obsd_update_thread_list): ... this. Call prune_threads.
1594 (obsd_add_target): Adjust.
1595 * procfs.c (procfs_target): Adjust.
1596 (procfs_notice_thread): Update comment.
1597 (procfs_find_new_threads): Rename to ...
1598 (procfs_update_thread_list): ... this. Call prune_threads.
1599 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1601 (ravenscar_wait): Adjust.
1602 (ravenscar_find_new_threads): Rename to ...
1603 (ravenscar_update_thread_list): ... this. Call prune_threads.
1604 (init_ravenscar_thread_ops): Adjust.
1605 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1606 (record_btrace_update_thread_list): ... this. Adjust comment.
1607 (init_record_btrace_ops): Adjust.
1608 * remote.c (remote_threads_info): Rename to ...
1609 (remote_update_thread_list): ... this. Call prune_threads.
1610 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1612 * sol-thread.c (check_for_thread_db): Adjust.
1613 (sol_find_new_threads_callback): Rename to ...
1614 (sol_update_thread_list_callback): ... this.
1615 (sol_find_new_threads): Rename to ...
1616 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1617 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1618 * target-delegates.c: Regenerate.
1619 * target.c (target_find_new_threads): Rename to ...
1620 (target_update_thread_list): ... this.
1621 * target.h (struct target_ops): Rename to_find_new_threads field
1622 to to_update_thread_list.
1623 (target_find_new_threads): Rename to ...
1624 (target_update_thread_list): ... this.
1625 * thread.c (prune_threads): Make extern.
1626 (update_thread_list): Adjust.
1628 2014-10-15 Pedro Alves <palves@redhat.com>
1630 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1631 Add describing comment. Return -1 if the qL packet is not
1633 (struct thread_item, thread_item_t): Move higher up in
1634 the file. Add comments.
1635 (struct threads_parsing_context): Move higher up in
1636 the file, add comments, and remote to ...
1637 (struct threads_listing_context): ... this.
1638 (remote_newthread_step): Don't add the thread to GDB's thread
1639 database here. Instead push it to the thread_listing_context
1641 (remote_find_new_threads): Rename to ...
1642 (remote_get_threads_with_ql): ... this. Add target_ops and
1643 targets_listing_context parameters. Pass down context.
1644 (start_thread): Adjust.
1645 (clear_threads_parsing_context): Rename to ...
1646 (clear_threads_listing_context): ... this.
1647 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1648 remote_threads_info.
1649 (remote_get_threads_with_qthreadinfo): Ditto.
1650 (remote_threads_info): Reimplement.
1652 2014-10-15 Pedro Alves <palves@redhat.com>
1654 * infrun.c (resume): Don't force displaced-stepping for all
1655 single-steps on software single-stepping archs.
1657 2014-10-15 Pedro Alves <palves@redhat.com>
1659 * breakpoint.c (single_step_breakpoints): Delete global.
1660 (insert_single_step_breakpoint): Adjust to store the breakpoint
1661 pointer in the current thread.
1662 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1663 (cancel_single_step_breakpoints): Delete functions.
1664 (breakpoint_has_location_inserted_here): Make extern.
1665 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1667 * breakpoint.h (breakpoint_has_location_inserted_here): New
1669 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1670 (cancel_single_step_breakpoints): Remove declarations.
1671 * gdbthread.h (struct thread_control_state)
1672 <single_step_breakpoints>: New field.
1673 (delete_single_step_breakpoints)
1674 (thread_has_single_step_breakpoints_set)
1675 (thread_has_single_step_breakpoint_here): New declarations.
1676 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1677 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1678 (singlestep_pc): Delete globals.
1679 (infrun_thread_ptid_changed): Remove references to removed
1681 (resume_cleanups): Delete the current thread's single-step
1683 (maybe_software_singlestep): Remove references to removed globals.
1684 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1685 delete_single_step_breakpoints.
1686 (init_wait_for_inferior): Remove references to removed globals.
1687 (delete_thread_infrun_breakpoints): Delete the thread's
1688 single-step breakpoints too.
1689 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1690 single-step breakpoints here.
1691 (delete_stopped_threads_single_step_breakpoints): New function.
1692 (adjust_pc_after_break): Adjust to use
1693 thread_has_single_step_breakpoints_set.
1694 (handle_inferior_event): Remove references to removed globals.
1695 Use delete_stopped_threads_single_step_breakpoints.
1696 (handle_signal_stop): Adjust to per-thread single-step
1697 breakpoints. Swap test order to do cheaper tests first.
1698 (switch_back_to_stepped_thread): Extend debug output. Remove
1699 references to removed globals.
1700 * record-full.c (record_full_wait_1): Adjust to per-thread
1701 single-step breakpoints.
1702 * thread.c (delete_single_step_breakpoints)
1703 (thread_has_single_step_breakpoints_set)
1704 (thread_has_single_step_breakpoint_here): New functions.
1705 (clear_thread_inferior_resources): Also delete the thread's
1706 single-step breakpoints.
1708 2014-10-15 Pedro Alves <palves@redhat.com>
1710 * thread.c (delete_thread_breakpoint): New function.
1711 (delete_step_resume_breakpoint)
1712 (delete_exception_resume_breakpoint): Use it.
1713 (delete_at_next_stop): New function.
1714 (clear_thread_inferior_resources): Use delete_at_next_stop.
1716 2014-10-15 Pedro Alves <palves@redhat.com>
1718 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1719 (breakpoint_inserted_here_p): ... here. Remove special case for
1720 software single-step breakpoints.
1721 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1722 (software_breakpoint_inserted_here_p): ... here. Remove special
1723 case for software single-step breakpoints.
1724 (bp_target_info_copy_insertion_state)
1725 (deprecated_insert_raw_breakpoint)
1726 (deprecated_remove_raw_breakpoint): Delete functions.
1727 * breakpoint.h (deprecated_insert_raw_breakpoint)
1728 (deprecated_remove_raw_breakpoint): Remove declarations.
1730 2014-10-15 Pedro Alves <palves@redhat.com>
1733 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1734 Delete array globals.
1735 (single_step_breakpoints): New global.
1736 (breakpoint_xfer_memory): Remove special handling for single-step
1738 (update_breakpoints_after_exec): Delete bp_single_step
1740 (detach_breakpoints): Remove special handling for single-step
1742 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1743 (bpstat_stop_status): Add comment.
1744 (bpstat_what, bptype_string, print_one_breakpoint_location)
1745 (adjust_breakpoint_address, init_bp_location): Handle
1747 (new_single_step_breakpoint): New function.
1748 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1749 handling for single-step breakpoints.
1750 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1751 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1753 (detach_single_step_breakpoints, find_single_step_breakpoint):
1755 (breakpoint_has_location_inserted_here): New function.
1756 (single_step_breakpoint_inserted_here_p): Rewrite.
1757 * breakpoint.h: Remove FIXME.
1758 (enum bptype) <bp_single_step>: New enum value.
1759 (insert_single_step_breakpoint): Update comment.
1760 * infrun.c (resume_cleanups)
1761 (delete_step_thread_step_resume_breakpoint): Remove single-step
1763 (fetch_inferior_event): Install a cleanup that removes infrun
1765 (switch_back_to_stepped_thread) <expect thread advanced also>:
1766 Clear step-over info.
1768 2014-10-15 Pedro Alves <palves@redhat.com>
1770 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1771 (delete_thread_infrun_breakpoints): New function, with parts
1772 salvaged from delete_step_resume_breakpoint_callback.
1773 (delete_step_thread_step_resume_breakpoint): Delete.
1774 (for_each_just_stopped_thread_callback_func): New typedef.
1775 (for_each_just_stopped_thread): New function.
1776 (delete_just_stopped_threads_infrun_breakpoints): New function.
1777 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1778 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1780 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1782 2014-10-15 Pedro Alves <palves@redhat.com>
1784 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1785 trying to step past a non-steppable watchpoint.
1786 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1788 * infrun.c (struct step_over_info): Add new field
1789 'nonsteppable_watchpoint_p' and adjust comments.
1790 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1792 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1793 (stepping_past_nonsteppable_watchpoint): New function.
1794 (step_over_info_valid_p): Also return true if stepping past a
1795 nonsteppable watchpoint.
1796 (proceed): Adjust call to set_step_over_info. Remove reference to
1798 (init_wait_for_inferior): Remove reference to init_infwait_state.
1799 (waiton_ptid): Delete global.
1800 (struct execution_control_state)
1801 <stepped_after_stopped_by_watchpoint>: Delete field.
1802 (wait_for_inferior, fetch_inferior_event): Always pass
1803 minus_one_ptid to target_wait.
1804 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1806 (init_infwait_state): Delete function.
1807 (handle_inferior_event): Remove infwait_state handling.
1808 (handle_signal_stop) <watchpoints handling>: Adjust after
1809 stepped_after_stopped_by_watchpoint removal. Don't remove
1810 breakpoints here nor set infwait_state. Set the thread's
1811 stepping_over_watchpoint flag, and call keep_going instead.
1812 (keep_going): Handle stepping_over_watchpoint. Adjust
1813 set_step_over_info calls.
1814 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1817 2014-10-15 Pedro Alves <palves@redhat.com>
1819 * infrun.c (step_over_info_valid_p): New function.
1820 (resume): Use step_over_info_valid_p instead of checking the
1821 threads's trap_expected flag.
1823 2014-10-15 Doug Evans <dje@google.com>
1824 Walfred Tedeschi <walfred.tedeschi@intel.com>
1827 * python/lib/gdb/__init__.py (packages): Add "printer".
1828 * python/lib/gdb/command/bound_registers.py: Moved to ...
1829 * python/lib/gdb/printer/bound_registers.py: ... here.
1830 Add printer to global set of builtin printers. Rename printer from
1831 "bound" to "mpx_bound128".
1832 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1833 registered as global "builtin" printer.
1834 (add_builtin_pretty_printer): New function.
1835 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1836 gdb/printer/__init__.py.
1838 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1840 * Makefile.in (SFILES): Remove d-support.c.
1841 (COMMON_OBS): Remove d-support.o.
1842 * d-lang.h (d_parse_symbol): Remove declaration.
1843 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1844 * d-support.c: Remove file.
1846 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1848 * gdb/infrun.c (process_event_stop_test): Apply
1849 gdbarch_addr_bits_remove to longjmp resume address.
1851 2014-10-15 Pedro Alves <palves@redhat.com>
1853 * regformats/microblaze.dat: Delete file.
1855 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1857 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1858 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1860 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1862 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1865 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1869 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1870 with qualified args.
1872 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1874 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1875 of the case where the second operand is a pointer.
1876 <BINOP_SUB>: Likewise.
1878 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1880 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1881 only if it is not NULL.
1882 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1883 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1884 (struct probe_ops) <clear_semaphore>: Likewise.
1885 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1887 (stop_tracing): Likewise, for clear_semaphore.
1889 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1891 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1892 using language_c, instead of current_language.
1894 2014-10-13 Doug Evans <dje@google.com>
1896 * python/py-objfile.c (objfpy_initialize): New function.
1897 (objfpy_new, objfile_to_objfile_object): Call it.
1898 * python/py-progspace.c (pspy_initialize): New function.
1899 (pspy_new, pspace_to_pspace_object): Call it.
1901 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1902 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 Fix "save breakpoints" for "catch" command.
1905 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1908 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1910 Fix "save breakpoints" for "disable $bpnum" command.
1911 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1913 2014-10-10 Pedro Alves <palves@redhat.com>
1915 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1916 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1917 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1918 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1920 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1921 * configure.ac: Remove references to IRIX.
1922 * configure.host: Add *-*-irix* to the obsolete hosts section.
1923 Remove all other references to irix.
1924 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1927 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1929 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1930 isn't valid, release the tdesc arch data and return NULL.
1932 2014-10-10 Pedro Alves <palves@redhat.com>
1934 * linux-tdep.c: Include observer.h.
1935 (linux_inferior_data): New global.
1936 (struct linux_info): New structure.
1937 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1938 (get_linux_inferior_data): New functions.
1939 (linux_vsyscall_range): Rename to ...
1940 (linux_vsyscall_range_raw): ... this.
1941 (linux_vsyscall_range): New function; handles caching.
1942 (_initialize_linux_tdep): Register linux_inferior_data. Install
1943 inferior_exit and inferior_appeared observers.
1945 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 Pedro Alves <palves@redhat.com>
1949 * solib-svr4.c (svr4_read_so_list): Rename to ...
1950 (svr4_current_sos_1): ... this and change the function comment.
1951 (svr4_current_sos): New function.
1953 2014-10-10 Pedro Alves <palves@redhat.com>
1955 * arch-utils.c (default_vsyscall_range): New function.
1956 * arch-utils.h (default_vsyscall_range): New declaration.
1957 * gdbarch.sh (vsyscall_range): New hook.
1958 * gdbarch.h, gdbarch.c: Regenerate.
1959 * linux-tdep.c (linux_vsyscall_range): New function.
1960 (linux_init_abi): Install linux_vsyscall_range as
1961 vsyscall_range gdbarch hook.
1962 * memrange.c (address_in_mem_range): New function.
1963 * memrange.h (address_in_mem_range): New declaration.
1964 * symfile-mem.c (find_vdso_size): Delete function.
1965 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1967 2014-10-10 Pedro Alves <palves@redhat.com>
1969 * infrun.c (normal_stop): Fix typo in comment.
1971 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1974 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1975 typo when using logical AND to determine instruction type.
1977 2014-10-09 Yao Qi <yao@codesourcery.com>
1979 * infrun.c (handle_signal_stop): Remove local variable
1982 2014-10-08 Stan Shebs <stan@codesourcery.com>
1984 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1986 2014-10-08 Gary Benson <gbenson@redhat.com>
1988 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1990 2014-10-08 Gary Benson <gbenson@redhat.com>
1992 * common/common-defs.h: Include common-exceptions.h.
1993 * exceptions.h: Do not include common-exceptions.h.
1995 2014-10-08 Gary Benson <gbenson@redhat.com>
1997 * common/common-defs.h: Include cleanups.h.
1998 * common/common-exceptions.c: Do not include cleanups.h.
1999 * utils.h: Likewise.
2001 2014-10-08 Gary Benson <gbenson@redhat.com>
2003 * ada-lang.c: Do not include exceptions.h.
2004 * ada-valprint.c: Likewise.
2005 * amd64-tdep.c: Likewise.
2006 * auto-load.c: Likewise.
2007 * block.c: Likewise.
2008 * break-catch-throw.c: Likewise.
2009 * breakpoint.c: Likewise.
2010 * btrace.c: Likewise.
2011 * c-lang.c: Likewise.
2012 * cli/cli-cmds.c: Likewise.
2013 * cli/cli-interp.c: Likewise.
2014 * cli/cli-script.c: Likewise.
2015 * completer.c: Likewise.
2016 * corefile.c: Likewise.
2017 * corelow.c: Likewise.
2018 * cp-abi.c: Likewise.
2019 * cp-support.c: Likewise.
2020 * cp-valprint.c: Likewise.
2021 * darwin-nat.c: Likewise.
2022 * dwarf2-frame-tailcall.c: Likewise.
2023 * dwarf2-frame.c: Likewise.
2024 * dwarf2loc.c: Likewise.
2025 * dwarf2read.c: Likewise.
2027 * event-loop.c: Likewise.
2028 * event-top.c: Likewise.
2029 * f-valprint.c: Likewise.
2030 * frame-unwind.c: Likewise.
2031 * frame.c: Likewise.
2032 * gdbtypes.c: Likewise.
2033 * gnu-v2-abi.c: Likewise.
2034 * gnu-v3-abi.c: Likewise.
2035 * guile/scm-auto-load.c: Likewise.
2036 * guile/scm-breakpoint.c: Likewise.
2037 * guile/scm-cmd.c: Likewise.
2038 * guile/scm-frame.c: Likewise.
2039 * guile/scm-lazy-string.c: Likewise.
2040 * guile/scm-param.c: Likewise.
2041 * guile/scm-symbol.c: Likewise.
2042 * guile/scm-type.c: Likewise.
2043 * hppa-hpux-tdep.c: Likewise.
2044 * i386-tdep.c: Likewise.
2045 * inf-loop.c: Likewise.
2046 * infcall.c: Likewise.
2047 * infcmd.c: Likewise.
2048 * infrun.c: Likewise.
2049 * interps.c: Likewise.
2050 * interps.h: Likewise.
2052 * linespec.c: Likewise.
2053 * linux-nat.c: Likewise.
2054 * linux-thread-db.c: Likewise.
2055 * m32r-rom.c: Likewise.
2057 * memory-map.c: Likewise.
2058 * mi/mi-cmd-break.c: Likewise.
2059 * mi/mi-cmd-stack.c: Likewise.
2060 * mi/mi-interp.c: Likewise.
2061 * mi/mi-main.c: Likewise.
2062 * monitor.c: Likewise.
2063 * nto-procfs.c: Likewise.
2064 * objc-lang.c: Likewise.
2065 * p-valprint.c: Likewise.
2066 * parse.c: Likewise.
2067 * ppc-linux-tdep.c: Likewise.
2068 * printcmd.c: Likewise.
2069 * probe.c: Likewise.
2070 * python/py-auto-load.c: Likewise.
2071 * python/py-breakpoint.c: Likewise.
2072 * python/py-cmd.c: Likewise.
2073 * python/py-finishbreakpoint.c: Likewise.
2074 * python/py-frame.c: Likewise.
2075 * python/py-framefilter.c: Likewise.
2076 * python/py-function.c: Likewise.
2077 * python/py-gdb-readline.c: Likewise.
2078 * python/py-inferior.c: Likewise.
2079 * python/py-infthread.c: Likewise.
2080 * python/py-lazy-string.c: Likewise.
2081 * python/py-linetable.c: Likewise.
2082 * python/py-param.c: Likewise.
2083 * python/py-prettyprint.c: Likewise.
2084 * python/py-symbol.c: Likewise.
2085 * python/py-type.c: Likewise.
2086 * python/py-value.c: Likewise.
2087 * python/python-internal.h: Likewise.
2088 * python/python.c: Likewise.
2089 * record-btrace.c: Likewise.
2090 * record-full.c: Likewise.
2091 * regcache.c: Likewise.
2092 * remote-fileio.c: Likewise.
2093 * remote-mips.c: Likewise.
2094 * remote.c: Likewise.
2095 * rs6000-aix-tdep.c: Likewise.
2096 * rs6000-nat.c: Likewise.
2098 * solib-darwin.c: Likewise.
2099 * solib-dsbt.c: Likewise.
2100 * solib-frv.c: Likewise.
2101 * solib-ia64-hpux.c: Likewise.
2102 * solib-spu.c: Likewise.
2103 * solib-svr4.c: Likewise.
2104 * solib.c: Likewise.
2105 * spu-tdep.c: Likewise.
2106 * stack.c: Likewise.
2107 * stap-probe.c: Likewise.
2108 * symfile-mem.c: Likewise.
2109 * symmisc.c: Likewise.
2110 * target.c: Likewise.
2111 * thread.c: Likewise.
2113 * tracepoint.c: Likewise.
2114 * tui/tui-interp.c: Likewise.
2115 * typeprint.c: Likewise.
2116 * utils.c: Likewise.
2117 * valarith.c: Likewise.
2118 * valops.c: Likewise.
2119 * valprint.c: Likewise.
2120 * value.c: Likewise.
2121 * varobj.c: Likewise.
2122 * windows-nat.c: Likewise.
2123 * xml-support.c: Likewise.
2125 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2127 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2129 (extended_mips16_next_pc): Update accordingly.
2131 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2133 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2135 (micromips_instruction_is_compact_branch): Likewise.
2136 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2137 or a compact jump, reaching a jump delay slot, or seeing a
2138 second non-prologue instruction.
2139 (micromips_scan_prologue): Also terminate scanning upon seeing a
2140 compact branch or jump, or reaching a branch or jump delay slot.
2141 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2142 or jump delay slot, or seeing a second non-prologue instruction.
2143 (mips32_instruction_has_delay_slot): Retain instruction
2144 examination code only, update arguments accordingly and move
2145 instruction fetch pieces to...
2146 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2147 (micromips_instruction_has_delay_slot): Likewise and to...
2148 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2149 (mips16_instruction_has_delay_slot): Likewise and to...
2150 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2151 (mips_single_step_through_delay): Update accordingly.
2152 (mips_adjust_breakpoint_address): Likewise.
2154 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2156 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2157 !mustbe32 also return 1 for 32-bit instructions.
2158 (mips16_instruction_has_delay_slot): Likewise. Add an
2159 explanatory comment.
2161 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2163 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2166 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2168 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2170 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2171 for the breakpoint's address. Don't preinitialize `placed_size'.
2172 (insert_bp_location): Set `reqstd_address' rather than
2174 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2175 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2177 (bkpt_remove_location): Likewise.
2178 (deprecated_insert_raw_breakpoint): Likewise.
2179 (deprecated_remove_raw_breakpoint): Likewise.
2180 (find_single_step_breakpoint): Likewise.
2181 * mem-break.c (default_memory_insert_breakpoint): Use
2182 `reqstd_address' for the breakpoint's address. Don't set
2183 `placed_address' or `placed_size' if breakpoint contents couldn't
2184 have been determined.
2185 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2186 the breakpoint's address.
2187 (remote_insert_hw_breakpoint): Likewise. Don't set
2188 `placed_address' or `placed_size' if breakpoint couldn't have been
2190 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2191 `reqstd_address' for the breakpoint's address.
2192 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2193 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2194 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2195 * microblaze-linux-tdep.c
2196 (microblaze_linux_memory_remove_breakpoint): Likewise.
2197 * monitor.c (monitor_insert_breakpoint): Likewise.
2198 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2199 (procfs_insert_hw_breakpoint): Likewise.
2200 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2201 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2202 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2203 * remote-mips.c (mips_insert_breakpoint): Likewise.
2204 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2206 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2208 * valops.c (value_assign): Check for bit field assignments
2209 before calling architecture-specific register value
2210 conversion functions.
2212 2014-10-03 Pierre Muller <muller@sourceware.org>
2214 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2216 2014-10-02 Pedro Alves <palves@redhat.com>
2218 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2219 threads_are_executing.
2220 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2222 * gdbthread.h (threads_are_executing): Declare.
2223 (handle_signal_stop) <random signals>: Don't print about the
2224 signal here if stopping.
2225 (end_stepping_range): Don't notify observers here.
2226 (normal_stop): Update the thread list. If stopped by a random
2227 signal or a stepping range ended, notify observers.
2228 * thread.c (threads_executing): New global.
2229 (init_thread_list): Clear 'threads_executing'.
2230 (set_executing): Set or clear 'threads_executing'.
2231 (threads_are_executing): New function.
2232 (update_threads_executing): New function.
2233 (update_thread_list): Use it.
2235 2014-10-02 Pedro Alves <palves@redhat.com>
2237 PR breakpoints/17431
2238 * breakpoint.c (update_breakpoints_after_exec): Don't create
2239 overlay, longjmp, std terminate nor exception breakpoints here.
2241 2014-10-02 Pedro Alves <palves@redhat.com>
2243 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2245 * inferior.c (find_inferior_for_program_space): Give preference to
2246 the current inferior.
2247 * inferior.h (find_inferior_for_program_space): Update comment.
2248 * progspace.c (switch_to_program_space_and_thread): Prefer the
2249 current inferior if it's bound to the program space requested. If
2250 the inferior found doesn't have a PID yet, don't bother looking up
2252 * progspace.h (switch_to_program_space_and_thread): Adjust
2254 * thread.c (any_thread_of_process, any_live_thread_of_process):
2255 Give preference to the current thread.
2257 2014-10-01 Pedro Alves <palves@redhat.com>
2259 * breakpoint.c (insert_bp_location): Error out if inserting a
2260 software breakpoint at a read-only address.
2261 * target.c (memory_xfer_check_region): New function, factored out
2263 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2265 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2266 against the memory region attributes.
2268 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2270 * NEWS: Announce new exit-code field in -list-thread-groups
2272 * inferior.c (exit_inferior_1): Don't clear exit code.
2273 (inferior_appeared): Clear exit code.
2274 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2277 2014-10-01 Pedro Alves <palves@redhat.com>
2279 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2280 GENERATED" along with emacs/vi read-only markers.
2281 * regformats/aarch64.dat: Regenerate.
2282 * regformats/arm-with-iwmmxt.dat: Regenerate.
2283 * regformats/arm-with-neon.dat: Regenerate.
2284 * regformats/arm-with-vfpv2.dat: Regenerate.
2285 * regformats/arm-with-vfpv3.dat: Regenerate.
2286 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2287 * regformats/i386/amd64-avx.dat: Regenerate.
2288 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2289 * regformats/i386/amd64-avx512.dat: Regenerate.
2290 * regformats/i386/amd64-linux.dat: Regenerate.
2291 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2292 * regformats/i386/amd64-mpx.dat: Regenerate.
2293 * regformats/i386/amd64.dat: Regenerate.
2294 * regformats/i386/i386-avx-linux.dat: Regenerate.
2295 * regformats/i386/i386-avx.dat: Regenerate.
2296 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2297 * regformats/i386/i386-avx512.dat: Regenerate.
2298 * regformats/i386/i386-linux.dat: Regenerate.
2299 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2300 * regformats/i386/i386-mmx.dat: Regenerate.
2301 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2302 * regformats/i386/i386-mpx.dat: Regenerate.
2303 * regformats/i386/i386.dat: Regenerate.
2304 * regformats/i386/x32-avx-linux.dat: Regenerate.
2305 * regformats/i386/x32-avx.dat: Regenerate.
2306 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2307 * regformats/i386/x32-avx512.dat: Regenerate.
2308 * regformats/i386/x32-linux.dat: Regenerate.
2309 * regformats/i386/x32.dat: Regenerate.
2310 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2311 * regformats/mips-dsp-linux.dat: Regenerate.
2312 * regformats/mips-linux.dat: Regenerate.
2313 * regformats/mips64-dsp-linux.dat: Regenerate.
2314 * regformats/mips64-linux.dat: Regenerate.
2315 * regformats/nios2-linux.dat: Regenerate.
2316 * regformats/rs6000/powerpc-32.dat: Regenerate.
2317 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2318 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2319 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2320 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2321 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2322 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2323 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2324 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2325 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2326 * regformats/s390-linux32.dat: Regenerate.
2327 * regformats/s390-linux32v1.dat: Regenerate.
2328 * regformats/s390-linux32v2.dat: Regenerate.
2329 * regformats/s390-linux64.dat: Regenerate.
2330 * regformats/s390-linux64v1.dat: Regenerate.
2331 * regformats/s390-linux64v2.dat: Regenerate.
2332 * regformats/s390-te-linux64.dat: Regenerate.
2333 * regformats/s390x-linux64.dat: Regenerate.
2334 * regformats/s390x-linux64v1.dat: Regenerate.
2335 * regformats/s390x-linux64v2.dat: Regenerate.
2336 * regformats/s390x-te-linux64.dat: Regenerate.
2337 * regformats/tic6x-c62x-linux.dat: Regenerate.
2338 * regformats/tic6x-c62x.dat: Regenerate.
2339 * regformats/tic6x-c64x-linux.dat: Regenerate.
2340 * regformats/tic6x-c64x.dat: Regenerate.
2341 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2342 * regformats/tic6x-c64xp.dat: Regenerate.
2344 2014-10-01 Pedro Alves <palves@redhat.com>
2346 * features/Makefile: Update comments.
2347 (XMLTOC): List all xml files we build C files from.
2348 (clean-cfiles): New rule.
2350 2014-10-01 Pedro Alves <palves@redhat.com>
2352 * features/i386/amd64-avx512-linux.c: Regenerate.
2353 * features/i386/amd64-avx512.c: Regenerate.
2354 * features/i386/x32-avx512-linux.c: Regenerate.
2355 * features/i386/x32-avx512.c: Regenerate.
2357 2014-10-01 Pedro Alves <palves@redhat.com>
2359 * features/Makefile (WHICH): Remove arm-with-m,
2360 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2362 2014-10-01 Pedro Alves <palves@redhat.com>
2364 * features/Makefile (clean): New rule.
2366 2014-10-01 Pedro Alves <palves@redhat.com>
2368 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2369 (zmm14h): Add missing end quotes.
2371 2014-10-01 Pedro Alves <palves@redhat.com>
2373 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2374 * features/aarch64.c: Regenerate.
2376 2014-09-30 Don Breazeal <donb@codesourcery.com>
2378 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2379 code so as to work with follow_fork_inferior.
2380 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2381 (inf_ttrace_create_inferior): Remove reference to
2382 inf_ttrace_vfork_ppid.
2383 (inf_ttrace_attach): Ditto.
2384 (inf_ttrace_detach): Ditto.
2385 (inf_ttrace_kill): Use current_inferior instead of
2386 inf_ttrace_vfork_ppid.
2387 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2388 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2389 inferior away from the parent.
2390 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2392 (follow_fork_inferior): New function.
2393 (follow_inferior_reset_breakpoints): Make function static.
2394 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2395 * linux-nat.c (linux_child_follow_fork): Move target-independent
2396 code to infrun.c:follow_fork_inferior.
2398 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2400 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2401 * gdbarch.c: Regenerate.
2402 * gdbarch.h: Likewise.
2403 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2404 gdbarch method 'regset_from_core_section'.
2405 (get_core_register_section): Remove handling for the case that
2406 regset == NULL and regset_from_core_section is defined.
2407 (get_core_registers): Drop check for deleted method.
2408 * procfs.c (procfs_do_thread_registers): Adjust comment.
2410 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2413 (linux_nat_make_corefile_notes): Remove.
2414 (linux_target_install_ops): Do not set target method
2415 'make_corefile_notes'.
2416 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2418 (linux_corefile_thread_callback): Instead of args->collect, call
2419 linux_collect_thread_registers.
2420 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2421 NULL unless there is a regset iterator.
2422 (linux_make_corefile_notes_1): Remove.
2423 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2424 by linux_make_corefile_notes.
2425 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2427 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2429 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2430 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2432 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2434 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2436 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2437 (xtensa_iterate_over_regset_sections): New.
2438 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2440 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2442 * vax-tdep.c (vax_regset_from_core_section): Remove.
2443 (vax_iterate_over_regset_sections): New.
2444 (vax_gdbarch_init): Adjust gdbarch initialization.
2446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2448 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2449 (tilegx_regset_from_core_section): Remove.
2450 (tilegx_iterate_over_regset_sections): New.
2451 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2456 (sparc_iterate_over_regset_sections): New.
2457 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2458 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2460 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2461 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2462 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2463 target method 'make_corefile_notes'.
2465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2467 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2468 'sizeof_gregset' and 'sizeof_fpregset'.
2469 * sh-tdep.c (sh_regset_from_core_section): Remove.
2470 (sh_iterate_over_regset_sections): New.
2471 (sh_gdbarch_init): Adjust gdbarch initialization.
2472 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2474 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2479 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2480 (score7_linux_iterate_over_regset_sections): New.
2481 (score_gdbarch_init): Adjust gdbarch initialization.
2483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2487 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2488 method 'make_corefile_notes'.
2489 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2490 (ppcfbsd_regset_from_core_section): Remove.
2491 (ppcfbsd_iterate_over_regset_sections): New.
2492 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2494 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2495 (ppcnbsd_iterate_over_regset_sections): New.
2496 (ppcnbsd_init_abi): Adjust.
2497 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2498 (ppcobsd_iterate_over_regset_sections): New.
2499 (ppcobsd_init_abi): Adjust.
2500 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2501 (rs6000_aix_iterate_over_regset_sections): New.
2502 (rs6000_aix_init_osabi): Adjust.
2504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2507 (nios2_regset_from_core_section): Remove.
2508 (nios2_iterate_over_regset_sections): New.
2509 (nios2_linux_init_abi): Adjust gdbarch initialization.
2511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2513 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2514 (am33_iterate_over_regset_sections): New.
2515 (am33_linux_init_osabi): Adjust gdbarch initialization.
2517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2519 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2520 (mips_linux_iterate_over_regset_sections): New.
2521 (mips_linux_init_abi): Adjust gdbarch initialization.
2522 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2523 (mips64obsd_iterate_over_regset_sections): New.
2524 (mips64obsd_init_abi): Adjust.
2525 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2526 (mipsnbsd_iterate_over_regset_sections): New.
2527 (mipsnbsd_init_abi): Adjust.
2529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2531 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2532 (m88k_iterate_over_regset_sections): New.
2533 (m88k_gdbarch_init): Adjust gdbarch initialization.
2535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2537 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2538 (ia64_linux_iterate_over_regset_sections): New.
2539 (ia64_linux_init_abi): Adjust gdbarch initialization.
2541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2543 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2544 (m68kbsd_iterate_over_regset_sections): New.
2545 (m68kbsd_init_abi): Adjust gdbarch initialization.
2546 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2547 (m68k_linux_iterate_over_regset_sections): New.
2548 (m68k_linux_init_abi): Adjust gdbarch initialization.
2550 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2552 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2553 (m32r_linux_regset_from_core_section): Remove.
2554 (m32r_linux_iterate_over_regset_sections): New.
2555 (m32r_linux_init_abi): Adjust gdbarch initialization.
2557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2559 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2560 (amd64obsd_iterate_over_regset_sections): New.
2561 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2562 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2564 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2565 regset_from_core_section initialization.
2566 * i386-tdep.c (i386_regset_from_core_section): Remove.
2567 (i386_iterate_over_regset_sections): New.
2568 (i386_gdbarch_init): Adjust gdbarch initialization.
2569 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2570 (i386_iterate_over_regset_sections): New prototype.
2571 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2573 (i386obsd_aout_iterate_over_regset_sections): New.
2574 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2575 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2577 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2578 (amd64fbsd_init_abi): Call fbsd_init_abi.
2579 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2580 (i386fbsd4_init_abi): Call fbsd_init_abi.
2581 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2582 target method 'make_corefile_notes'.
2583 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2588 (hppa_hpux_iterate_over_regset_sections): New.
2589 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2590 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2591 (hppa_linux_iterate_over_regset_sections): New.
2592 (hppa_linux_init_abi): Adjust.
2593 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2594 (hppanbsd_iterate_over_regset_sections): New.
2595 (hppanbsd_init_abi): Adjust.
2596 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2597 (hppaobsd_iterate_over_regset_sections): New.
2598 (hppaobsd_init_abi): Adjust.
2600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2603 (frv_linux_iterate_over_regset_sections): New.
2604 (frv_linux_init_abi): Adjust gdbarch initialization.
2606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2608 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2609 (armbsd_iterate_over_regset_sections): New prototype.
2610 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2611 (armbsd_iterate_over_regset_sections): New.
2612 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2615 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2618 (alpha_linux_iterate_over_regset_sections): New.
2619 (alpha_linux_init_abi): Adjust gdbarch initialization.
2620 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2622 (alphanbsd_iterate_over_regset_sections): New prototype.
2624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2628 (aarch64_linux_iterate_over_regset_sections): New.
2629 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633 * fbsd-tdep.c: New file.
2634 * fbsd-tdep.h: New file.
2635 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2636 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2637 (ALLDEPFILES): Add fbsd-tdep.c.
2639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2643 * gdbarch.h: Regenerate.
2644 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2646 (get_core_register_section): Add parameter 'regset' and use it, if
2647 set. Add parameter 'min_size' and verify the bfd section size
2649 (get_core_registers_cb): Add parameter 'regset' and pass it to
2650 get_core_register section. For the "standard" register sections
2651 ".reg" and ".reg2", set an appropriate default for human_name.
2652 (get_core_registers): Don't abort when the gdbarch has an iterator
2653 but no regset_from_core_section. Add NULL/0 for parameters
2654 'regset'/'min_size' in calls to get_core_register_section.
2655 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2656 'regset' and use it instead of calling the
2657 regset_from_core_section gdbarch method.
2658 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2659 * i386-tdep.c (i386_supply_xstateregset)
2660 (i386_collect_xstateregset, i386_xstateregset): Moved to
2662 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2664 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2665 core file support only if the regset iterator hasn't been set.
2666 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2667 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2668 Moved from i386-tdep.c and renamed to *_linux*.
2669 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2670 each callback invocation. Allow any .reg-xstate size when reading
2672 * amd64-tdep.c (amd64_supply_xstateregset)
2673 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2675 (amd64_regset_from_core_section): Remove.
2676 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2677 install an amd64-specific regset_from_core_section gdbarch method.
2678 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2679 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2680 Moved from amd64-tdep.c and renamed to *_linux*.
2681 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2682 to each callback invocation. Allow any .reg-xstate size when
2683 reading from a core file.
2684 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2685 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2686 each callback invocation.
2687 (arm_linux_init_abi): No longer set the regset_from_core_section
2689 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2690 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2691 each callback invocation.
2692 (ppc_linux_init_abi): No longer set the regset_from_core_section
2694 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2695 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2696 (s390_regset_from_core_section): Remove.
2697 (s390_iterate_over_regset_sections): Add regset parameter to each
2698 callback invocation.
2699 (s390_gdbarch_init): No longer set the regset_from_core_section
2700 gdbarch method. Drop initialization of deleted tdep fields.
2702 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2704 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2705 (amd64_linux_iterate_over_regset_sections): New.
2706 (amd64_linux_init_abi_common): Don't install the regset section
2707 list, but the new iterator in gdbarch.
2708 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2709 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2710 (arm_linux_iterate_over_regset_sections): ...here. New function.
2711 (arm_linux_init_abi): Set iterator instead of section list.
2712 * corelow.c (get_core_registers_cb): New function, logic moved
2714 (get_core_registers): ...loop body here. Use new iterator method
2715 instead of walking through the regset section list.
2716 * gdbarch.sh: Remove 'core_regset_sections'. New method
2717 'iterate_over_regset_sections'. New typedef
2718 'iterate_over_regset_sections_cb'.
2719 * gdbarch.c: Regenerate.
2720 * gdbarch.h: Likewise.
2721 * i386-linux-tdep.c (i386_linux_regset_sections)
2722 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2724 (i386_linux_iterate_over_regset_sections): New.
2725 (i386_linux_init_abi): Don't choose a regset section list, but
2726 install new iterator in gdbarch.
2727 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2728 (linux_collect_regset_section_cb): New function, logic moved
2730 (linux_collect_thread_registers): ...loop body here. Use iterator
2731 method instead of walking through list.
2732 (linux_make_corefile_notes_1): Check for presence of iterator
2733 method instead of regset section list.
2734 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2735 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2736 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2737 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2738 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2739 (ppc_linux_init_abi): Don't choose from above regset section
2740 lists, but install new iterator in gdbarch.
2741 * regset.h (struct core_regset_section): Remove.
2742 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2743 have_linux_v1, have_linux_v2, and have_tdb.
2744 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2745 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2746 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2747 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2748 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2749 (s390_iterate_over_regset_sections): ...here. New function. Use
2751 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2752 regset section lists, but install new iterator.
2754 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2756 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2758 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2760 * progspace.c (print_program_space): Don't prune program spaces
2761 before printing them.
2763 2014-09-25 Pedro Alves <palves@redhat.com>
2765 * infrun.c (user_visible_resume_ptid): Don't check
2766 singlestep_breakpoints_inserted_p.
2768 2014-09-25 Pedro Alves <palves@redhat.com>
2770 * breakpoint.c (should_be_inserted): Add debug output.
2772 2014-09-25 Pedro Alves <palves@redhat.com>
2774 * infrun.c (stepping_past_instruction_at)
2775 (clear_exit_convenience_vars): Point at infrun.h instead of
2777 (handle_signal_stop): Fix typo.
2779 2014-09-24 Yao Qi <yao@codesourcery.com>
2781 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2784 2014-09-22 Gary Benson <gbenson@redhat.com>
2786 * target.c (target_stop): Updated comment.
2788 2014-09-22 Gary Benson <gbenson@redhat.com>
2790 * target/target.h (target_stop_ptid): Renamed as...
2791 (target_stop_and_wait): New function. Updated comment.
2793 (target_continue_ptid): Renamed as...
2794 (target_continue_no_signal): New function. Updated comment.
2797 2014-09-22 Pedro Alves <palves@redhat.com>
2799 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2801 * breakpoint.c (enum ugll_insert_mode): New enum.
2802 (always_inserted_mode): Now a plain boolean.
2803 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2804 (breakpoints_always_inserted_mode): Delete.
2805 (breakpoints_should_be_inserted_now): New function.
2806 (insert_breakpoints): Pass UGLL_INSERT to
2807 update_global_location_list instead of calling
2808 insert_breakpoint_locations manually.
2809 (create_solib_event_breakpoint_1): New, factored out from ...
2810 (create_solib_event_breakpoint): ... this.
2811 (create_and_insert_solib_event_breakpoint): Use
2812 create_solib_event_breakpoint_1 instead of calling
2813 insert_breakpoint_locations manually.
2814 (update_global_location_list): Change parameter type from boolean
2815 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2816 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2817 (update_global_location_list_nothrow): Change parameter type from
2818 boolean to enum ugll_insert_mode.
2819 (_initialize_breakpoint): "breakpoint always-inserted" option is
2820 now a boolean command. Update help text.
2821 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2822 (breakpoints_should_be_inserted_now): New declaration.
2823 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2824 Remove breakpoints_always_inserted_mode check.
2825 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2826 * remote.c (remote_start_remote): Likewise.
2828 2014-09-22 Pedro Alves <palves@redhat.com>
2830 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2831 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2832 Instead, pass UGLL_INSERT to update_global_location_list.
2833 (update_global_location_list): Change parameter type from boolean
2834 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2835 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2836 (create_solib_event_breakpoint_1): New, factored out from ...
2837 (create_solib_event_breakpoint): ... this.
2838 (create_and_insert_solib_event_breakpoint): Use
2839 create_solib_event_breakpoint_1 instead of calling
2840 insert_breakpoint_locations manually.
2841 (update_global_location_list): Handle UGLL_INSERT.
2843 2014-09-22 Pedro Alves <palves@redhat.com>
2845 * breakpoint.c (enum ugll_insert_mode): New enum.
2846 (update_global_location_list)
2847 (update_global_location_list_nothrow): Change parameter type from
2848 boolean to enum ugll_insert_mode. All callers adjusted.
2850 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2852 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2853 SystemTap support in GDB.
2855 2014-09-19 Don Breazeal <donb@codesourcery.com>
2857 * linux-nat.c (linux_handle_extended_wait): Call
2858 linux_ptrace_get_extended_event.
2859 (wait_lwp): Call linux_is_extended_waitstatus.
2860 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2861 and linux_is_extended_waitstatus.
2862 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2863 linux_ptrace_get_extended_event.
2864 (linux_ptrace_get_extended_event): New function.
2865 (linux_is_extended_waitstatus): New function.
2866 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2867 (linux_is_extended_waitstatus): New declarations.
2869 2014-09-19 Yao Qi <yao@codesourcery.com>
2871 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2872 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2873 comments. Callers update.
2874 (dwarf_decode_lines): Likewise.
2875 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2876 comments. Skip the line table if 'lowpc' is greater than
2877 'address'. Don't check
2878 dwarf2_per_objfile->has_section_at_zero.
2880 2014-09-18 Doug Evans <dje@google.com>
2882 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2883 * python/py-symtab.c (stpy_get_producer): New function.
2884 (symtab_object_getset): Add "producer" attribute.
2886 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2889 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2890 (do_captured_read_memory_integer): Remove.
2891 (safe_read_memory_integer): Use target_read_memory directly instead
2892 of catching errors in do_captured_read_memory_integer.
2894 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2896 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2899 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2901 * objc-lang.c (find_implementation_from_class): Remove dead code.
2903 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2906 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2907 "fprintf_unfiltered (gdb_stdlog...)".
2909 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2911 PR breakpoints/12526
2912 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2914 * breakpoint.c (watch_command_1): Use these fields to retain
2915 bitfield information.
2916 (extract_bitfield_from_watchpoint_value): New function.
2917 (watchpoint_check): Use it.
2918 (update_watchpoint): Use it. Optimize the address and length of a
2919 HW watchpoint pointing to a bitfield.
2920 * value.h (unpack_value_bitfield): New prototype.
2921 * value.c (unpack_value_bitfield): Make extern.
2923 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2925 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2927 * gnu-nat.c (inf_threads): New function.
2928 * gnu-nat.h (inf_threads_ftype): New typedef.
2929 (inf_threads): New declaration.
2930 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2931 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2932 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2933 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2934 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2935 (i386_gnu_dr_get_control): New functions.
2936 (reg_addr): New structure.
2937 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2938 i386 debugging register hooks.
2939 * NEWS: Mention this.
2941 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2943 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2944 vector data transfer instructions.
2945 (arm_record_coproc_data_proc): Updated.
2947 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2949 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2950 arm_record_exreg_ld_st_insn.
2951 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2954 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2956 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2957 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2958 processing instructions.
2960 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2962 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2963 for advance SIMD struct ld/st insn.
2964 (thumb2_record_decode_insn_handler): Replace stub handler with
2965 thumb2_record_asimd_struct_ld_st.
2967 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2969 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2970 for asimd, vfp and coprocessor insns.
2971 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2972 and coprocessor insns.
2973 (thumb2_record_coproc_insn): New function.
2974 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2976 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2979 2014-09-13 Doug Evans <xdje42@gmail.com>
2981 * NEWS: Mention new "queue-signal" command.
2982 * infcmd.c (queue_signal_command): New function.
2983 (_initialize_infcmd): Add new queue-signal command.
2985 2014-09-13 Doug Evans <xdje42@gmail.com>
2987 * linux-nat.c (wait_lwp): Add debugging printf.
2988 (linux_nat_wait_1): Ditto.
2990 2014-09-12 Pedro Alves <palves@redhat.com>
2992 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2993 (create_and_insert_solib_event_breakpoint): New functions.
2994 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2995 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2996 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2997 (remove_dbx_link_breakpoint): Delete function.
2998 (insert_dbx_link_bpt_in_file): Use
2999 create_and_insert_solib_event_breakpoint instead of
3000 deprecated_insert_raw_breakpoint.
3001 (procfs_wait): Don't check whether we hit __dbx_link here.
3002 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3004 * solib-irix.c (base_breakpoint): Delete global.
3005 (disable_break): Delete function.
3006 (enable_break): Use create_solib_event_breakpoint
3007 instead of deprecated_insert_raw_breakpoint.
3008 (irix_solib_handle_event): New function.
3009 (irix_solib_create_inferior_hook): Don't run the target or disable
3010 the mapping-complete breakpoint here.
3011 (_initialize_irix_solib): Install irix_solib_handle_event as
3012 so_ops->handle_event hook.
3014 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3015 Ulrich Weigand <uweigand@de.ibm.com>
3018 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3019 instead of read_memory_unsigned_integer.
3021 2014-09-12 Gary Benson <gbenson@redhat.com>
3023 * nat/linux-waitpid.c: Include common-defs.h.
3024 [GDBSERVER]: Add FIXME comment.
3025 [!GDBSERVER]: Don't include defs.h or signal.h.
3026 (linux_debug) [!GDBSERVER]: Remove empty block.
3028 2014-09-12 Gary Benson <gbenson@redhat.com>
3030 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3031 Don't include defs.h or server.h.
3033 2014-09-12 Gary Benson <gbenson@redhat.com>
3035 * nat/linux-btrace.c: Include common-defs.h.
3036 Don't include defs.h, server.h or gdbthread.h.
3037 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3039 2014-09-12 Gary Benson <gbenson@redhat.com>
3041 * common/agent.c: Include common-defs.h.
3042 Don't include defs.h or server.h.
3043 * common/buffer.c: Likewise.
3044 * common/common-debug.c: Likewise.
3045 * common/common-utils.c: Likewise.
3046 * common/errors.c: Likewise.
3047 * common/filestuff.c: Likewise.
3048 * common/format.c: Likewise.
3049 * common/gdb_vecs.c: Likewise.
3050 * common/print-utils.c: Likewise.
3051 * common/ptid.c: Likewise.
3052 * common/rsp-low.c: Likewise.
3053 * common/signals.c: Likewise.
3054 * common/vec.c: Likewise.
3055 * common/xml-utils.c: Likewise.
3056 * nat/linux-osdata.c: Likewise.
3057 * nat/linux-procfs.c: Likewise.
3058 * nat/linux-ptrace.c: Likewise.
3059 * nat/mips-linux-watch.c: Likewise.
3060 * target/waitstatus.c: Likewise.
3062 2014-09-12 Tom Tromey <tromey@redhat.com>
3063 Gary Benson <gbenson@redhat.com>
3065 * common/common-regcache.h: New file.
3066 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3067 * regcache.h: Include common-regcache.h.
3068 (regcache_read_pc): Don't declare.
3069 * regcache.c (get_thread_regcache_for_ptid): New function.
3070 * nat/linux-btrace.c: Don't include regcache.h.
3071 Include common-regcache.h.
3072 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3074 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3076 * regcache.h (struct regset): Declare.
3078 2014-09-11 Pedro Alves <palves@redhat.com>
3081 * main.c: Include "infrun.h".
3082 (catch_command_errors, catch_command_errors_const): Wait for the
3083 foreground command to complete.
3084 * top.c (maybe_wait_sync_command_done): New function, factored out
3086 (maybe_wait_sync_command_done): ... here.
3087 * top.h (maybe_wait_sync_command_done): New declaration.
3089 2014-09-11 Tom Tromey <tromey@redhat.com>
3090 Gary Benson <gbenson@redhat.com>
3092 * common/symbol.h: New file.
3093 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3094 * minsyms.c (find_minimal_symbol_address): New function.
3095 * common/agent.c: Include common/symbol.h.
3096 [!GDBSERVER]: Don't include objfiles.h.
3097 (agent_look_up_symbols): Use find_minimal_symbol_address.
3099 2014-09-11 Gary Benson <gbenson@redhat.com>
3101 * target/target.h (target_stop_ptid, target_continue_ptid):
3103 * target.c (target_stop_ptid, target_continue_ptid): New
3105 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3106 (agent_run_command): Always use target_stop_ptid and
3107 target_continue_ptid.
3109 2014-09-11 Tom Tromey <tromey@redhat.com>
3110 Gary Benson <gbenson@redhat.com>
3112 * target/target.h: New file.
3113 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3114 * target.h: Include target/target.h.
3115 (target_read_memory, target_write_memory): Don't declare.
3116 * target.c (target_read_uint32): New function.
3117 * common/agent.c: Include target/target.h.
3118 [!GDBSERVER]: Don't include target.h.
3119 (helper_thread_id): Type changed to uint32_t.
3120 (agent_get_helper_thread_id): Use target_read_uint32.
3121 (agent_run_command): Always use target_read_memory and
3122 target_write_memory.
3123 (agent_capability): Type changed to uint32_t.
3124 (agent_capability_check): Use target_read_uint32.
3126 2014-09-11 Gary Benson <gbenson@redhat.com>
3128 * common/common-debug.h (show_debug_regs): Declare.
3129 * common/common-debug.c (show_debug_regs): Define.
3130 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3131 all uses with show_debug_regs. Replace all uses that considered
3132 debug_hw_points as a multi-value integer with straight boolean
3134 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3135 with show_debug_regs.
3136 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3137 all uses with show_debug_regs.
3138 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3139 uses with show_debug_regs.
3141 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3143 * findvar.c (address_from_register): Handle targets requiring
3144 a special conversion routine even for plain pointer types.
3146 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3148 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3149 (store_register): Do not call exec_one_dummy_insn.
3151 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3153 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3154 dereference it first. Use value_enclosing_type instead of
3156 (ada_array_length): Likewise.
3158 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3160 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3161 Adjust function implementation and documentation accordingly.
3162 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3163 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3164 Update call to ada_value_ptr_subscript.
3166 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3168 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3169 instead of VAL's type.
3171 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3173 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3175 2014-09-09 Doug Evans <xdje42@gmail.com>
3178 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3179 last parameter to pkg-config, not first.
3180 * configure.ac: Pass --with-guile provided pkg-config path to
3181 GDB_GUILE_PROGRAM_NAMES.
3182 * configure: Regenerate.
3184 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3186 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3189 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3191 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3192 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3193 the list of sections determining GDB_OSABI_IRIX.
3195 2014-09-09 James Hogan <james.hogan@imgtec.com>
3197 * MAINTAINERS (Write After Approval): Add "James Hogan".
3199 2014-09-09 James Hogan <james.hogan@imgtec.com>
3201 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3203 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3205 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3207 2014-09-08 Doug Evans <xdje42@gmail.com>
3210 * guile.c: #include <signal.h>.
3211 (_initialize_guile): Block SIGCHLD while initializing Guile.
3213 Replaces the following, which is reverted.
3215 2014-07-26 Doug Evans <xdje42@gmail.com>
3218 * configure.ac: Add check for header gc/gc.h.
3219 Add check for function setenv.
3220 * configure: Regenerate.
3221 * config.in: Regenerate.
3222 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3224 2014-09-08 Doug Evans <xdje42@gmail.com>
3226 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3227 with named constant. Fix style of pointer comparison.
3228 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3230 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3233 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3234 decide whether we display the command on "show user".
3235 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3236 printing command name.
3237 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3238 * cli/cli-decode.c (cli_user_command_p): Create helper function
3239 to verify whether cmd_list_element is a user-defined command.
3241 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3245 Fix goto out of TRY_CATCH.
3247 2014-09-06 Doug Evans <xdje42@gmail.com>
3248 Tom Tromey <tromey@redhat.com>
3251 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3252 $_any_caller_matches.
3253 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3254 * python/lib/gdb/function/caller_is.py: New file.
3256 2014-09-06 Doug Evans <xdje42@gmail.com>
3258 * infcmd.c (program_info): Fix typo.
3260 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3263 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3264 'number'. New variable 'has_digit'. Rewrite code to deal with
3265 subexpressions on SDT probes.
3267 2014-09-04 Pedro Alves <palves@redhat.com>
3269 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3270 the input is only one character long.
3272 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3275 * f-valprint.c (f_val_print): Specify the correct print option to
3276 use when printing integer values.
3278 2014-09-04 Gary Benson <gbenson@redhat.com>
3280 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3281 Remove code to cope with LWPs wrapped as PIDs.
3282 Add assertions to ensure no wrapped LWPs are passed.
3284 2014-09-04 Pedro Alves <palves@redhat.com>
3286 * value.c (value_ranges_copy_adjusted): New function, factored out
3288 (value_contents_copy_raw): ... here.
3289 (unpack_value_bits_as_long_1): Rename back to ...
3290 (unpack_bits_as_long): ... this. Remove 'original_value' and
3291 'result' parameters. Change return type to LONGEST.
3292 (unpack_value_bits_as_long): Delete.
3293 (unpack_value_field_as_long_1): Delete.
3294 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3295 (unpack_value_bitfield): New function.
3296 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3297 (value_fetch_lazy): Use unpack_value_bitfield.
3298 * value.h (unpack_value_bits_as_long): Delete declaration.
3300 2014-09-03 Sasha Smundak <asmundak@google.com>
3302 * python/py-frame.c (frapy_read_register): New function.
3304 2014-09-03 James Hogan <james.hogan@imgtec.com>
3306 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3307 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3309 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3312 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3314 (add_cmd): Set "completer_handle_brkchars" to NULL.
3315 * cli/cli-decode.h (struct cmd_list_element)
3316 <completer_handle_brkchars>: New field.
3317 * command.h (completer_ftype_void): New typedef.
3318 (set_cmd_completer_handle_brkchars): New prototype.
3319 * completer.c (set_gdb_completion_word_break_characters): New
3321 (complete_line_internal): Call "completer_handle_brkchars"
3322 callback from command.
3323 * completer.h: Include "command.h".
3324 (set_gdb_completion_word_break_characters): New prototype.
3325 * python/py-cmd.c (cmdpy_completer_helper): New function.
3326 (cmdpy_completer_handle_brkchars): New function.
3327 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3328 (cmdpy_init): Set completer_handle_brkchars to
3329 cmdpy_completer_handle_brkchars.
3331 2014-09-03 Gary Benson <gbenson@redhat.com>
3333 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3334 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3335 Loop conditions changed to equivalent form.
3336 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3337 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3338 ALL_DEBUG_ADDRESS_REGISTERS.
3340 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3342 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3345 2014-09-02 Doug Evans <dje@google.com>
3347 * typeprint.c (find_global_typedef): Fix comment.
3349 2014-09-02 Gary Benson <gbenson@redhat.com>
3351 * i386-nat.h: Renamed as...
3352 * x86-nat.h: New file. All type, function and variable name
3353 prefixes changed from "i386_" to "x86_". All references updated.
3354 * i386-nat.c: Renamed as...
3355 * x86-nat.c: New file. All type, function and variable name
3356 prefixes changed from "i386_" to "x86_". All references updated.
3357 * common/i386-xstate.h: Renamed as...
3358 * common/x86-xstate.h: New file. All type, function and variable
3359 name prefixes changed from "i386_" to "x86_". All references
3361 * nat/i386-cpuid.h: Renamed as...
3362 * nat/x86-cpuid.h: New file. All type, function and variable name
3363 prefixes changed from "i386_" to "x86_". All references updated.
3364 * nat/i386-gcc-cpuid.h: Renamed as...
3365 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3366 name prefixes changed from "i386_" to "x86_". All references
3368 * nat/i386-dregs.h: Renamed as...
3369 * nat/x86-dregs.h: New file. All type, function and variable name
3370 prefixes changed from "i386_" to "x86_". All references updated.
3371 * nat/i386-dregs.c: Renamed as...
3372 * nat/x86-dregs.c: New file. All type, function and variable name
3373 prefixes changed from "i386_" to "x86_". All references updated.
3375 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3377 * varobj.c (_initialize_varobj): Move to the end of file.
3379 2014-08-29 Gary Benson <gbenson@redhat.com>
3381 * common/common-exceptions.h: New file.
3382 * common/common-exceptions.c: Likewise.
3383 * Makefile.in (SFILES): Add common/common-exceptions.c.
3384 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3385 (COMMON_OBS): Add common-exceptions.o.
3386 (common-exceptions.o): New rule.
3387 * exceptions.h (common-exceptions.h): Include.
3388 (gdb_setjmp.h): Do not include.
3389 (return_reason): Moved to common-exceptions.h.
3390 (enum return_reason): Likewise.
3391 (RETURN_MASK): Likewise.
3392 (typedef return_mask): Likewise.
3393 (enum errors): Likewise.
3394 (struct gdb_exception): Likewise.
3395 (exceptions_state_mc_init): Likewise.
3396 (exceptions_state_mc_action_iter): Likewise.
3397 (exceptions_state_mc_action_iter_1): Likewise.
3398 (TRY_CATCH): Likewise.
3399 (throw_exception): Likewise.
3400 (throw_verror): Likewise.
3401 (throw_vquit): Likewise.
3402 (throw_error): Likewise.
3403 (throw_quit): Likewise.
3404 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3405 (enum catcher_action): Likewise.
3406 (struct catcher): Likewise.
3407 (current_catcher): Likewise.
3408 (catcher_list_size): Likewise.
3409 (exceptions_state_mc_init): Likewise.
3410 (catcher_pop): Likewise.
3411 (exceptions_state_mc): Likewise.
3412 (exceptions_state_mc_action_iter): Likewise.
3413 (exceptions_state_mc_action_iter_1): Likewise.
3414 (throw_exception): Likewise.
3415 (exception_messages): Likewise.
3416 (exception_messages_size): Likewise.
3417 (throw_it): Likewise.
3418 (throw_verror): Likewise.
3419 (throw_vquit): Likewise.
3420 (throw_error): Likewise.
3421 (throw_quit): Likewise.
3422 (prepare_to_throw_exception): New function.
3424 2014-08-29 Gary Benson <gbenson@redhat.com>
3426 * common/gdb_setjmp.h: New file.
3427 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3428 * configure.ac: Move sigsetjmp check...
3429 * common/common.m4: ...here.
3430 * configure: Regenerate.
3431 * cp-support.c (SIGJMP_BUF): Delete.
3432 (SIGSETJMP): Likewise.
3433 (SIGLONGJMP): Likewise.
3434 * exceptions.h (gdb_setjmp.h): Include.
3435 (setjmp.h): Do not include.
3436 (EXCEPTIONS_SIGJMP_BUF): Delete.
3437 (EXCEPTIONS_SIGSETJMP): Likewise.
3438 (EXCEPTIONS_SIGLONGJMP): Likewise.
3439 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3441 * exceptions.c: Likewise.
3443 2014-08-29 Gary Benson <gbenson@redhat.com>
3445 * cleanups.h: Moved to...
3446 * common/cleanups.h: New file.
3447 * cleanups.c: Moved to...
3448 * common/cleanups.c: New file. Include common-defs.h and
3449 cleanups.h. Do not include defs.h.
3450 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3451 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3452 (cleanups.o): New rule.
3454 2014-08-29 Gary Benson <gbenson@redhat.com>
3456 * common/errors.h (internal_warning): New declaration.
3457 (internal_vwarning): Likewise.
3458 * common/errors.c (internal_warning): New function.
3459 * utils.h (internal_warning): Don't declare.
3460 (internal_vwarning): Likewise.
3461 * utils.c (internal_warning): Removed.
3463 2014-08-29 Gary Benson <gbenson@redhat.com>
3465 * main.c (captured_main): Use warning during startup.
3466 Prefix startup warning messages with command name.
3468 2014-08-29 Gary Benson <gbenson@redhat.com>
3470 * main.c (captured_main): Handle usage errors with error.
3472 2014-08-29 Gary Benson <gbenson@redhat.com>
3474 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3475 exit pair with a call to error. Wrap the message with _().
3477 2014-08-29 Gary Benson <gbenson@redhat.com>
3479 * main.c (captured_main): Replace a fprintf/exit
3480 pair with a call to error. Wrap the message with _().
3482 2014-08-29 Gary Benson <gbenson@redhat.com>
3484 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3485 pairs with calls to error. Wrap the message with _().
3487 2014-08-29 Gary Benson <gbenson@redhat.com>
3489 * utils.c (vwarning): Protect calls to target_terminal_ours
3492 2014-08-29 Gary Benson <gbenson@redhat.com>
3494 * exceptions.c (print_flush): Protect calls to
3495 target_terminal_ours and wrap_here.
3497 2014-08-29 Gary Benson <gbenson@redhat.com>
3499 * utils.h (filtered_printing_initialized): New declaration.
3500 * utils.c (abort_with_message): New function.
3501 (internal_vproblem): Use abort_with_message for first level
3502 recursive internal problems, and if gdb_stderr is not set up.
3503 Protect calls to target_terminal_ours, begin_line and query.
3505 2014-08-28 Doug Evans <dje@google.com>
3507 * symtab.c (in_prologue): Move definition to better spot.
3508 (skip_prologue_using_sal): Ditto.
3510 2014-08-28 Doug Evans <dje@google.com>
3512 * symtab.c (find_function_start_sal): Move definition to better spot.
3514 2014-08-28 Yao Qi <yao@codesourcery.com>
3516 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3517 found_stack_adjust in forward scan. Remove condition check
3518 on found_stack_adjust which is always true. Indent the code.
3520 2014-08-28 Yao Qi <yao@codesourcery.com>
3522 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3523 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3524 (dwarf_decode_lines): Remove argument
3525 want_line_info. Remove condition check on want_line_info.
3528 2014-08-27 Doug Evans <dje@google.com>
3530 * dwarf2read.c (dwarf_record_line): Fix typo.
3532 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3534 * target.h (struct target_ops::to_terminal_save_ours): Remove
3536 (target_terminal_save_ours): Remove macro.
3537 * target-delegates.c: Regenerate.
3538 * inf-child.c (inf_child_target): Don't set the nonexistent
3539 field to_terminal_save_ours.
3540 * inferior.h (child_terminal_save_ours): Remove declaration.
3541 * terminal.h (gdb_save_tty_state): New declaration.
3542 * inflow.c (child_terminal_save_ours): Rename to ...
3543 (gdb_save_tty_state): ... this.
3544 * tui/tui.c: Include terminal.h.
3545 (tui_enable): Use gdb_save_tty_state instead of
3546 target_terminal_save_ours.
3547 (tui_disable): Likewise.
3549 2014-08-25 Doug Evans <dje@google.com>
3551 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3552 Pass NULL instead of 0 for context pointer.
3554 2014-08-25 Yao Qi <yao@codesourcery.com>
3556 * dwarf2read.c: Fix grammatical error.
3558 2014-08-24 Yao Qi <yao@codesourcery.com>
3560 * dwarf2read.c (scan_partial_symbols): Update comments.
3561 Rename argument 'need_pc' with 'set_addrmap'.
3562 (add_partial_namespace): Rename argument 'need_pc' with
3564 (add_partial_module): Likewise.
3565 (add_partial_subprogram): Likewise. Update comments.
3566 (dwarf2_name): Fix typo.
3568 2014-08-22 Doug Evans <dje@google.com>
3571 * dwarf2read.c (dwarf_record_line_p): New function.
3572 (dwarf_decode_lines_1): Ignore subsequent line number entries
3573 for the same line if any entry had a non-zero discriminator.
3575 2014-08-22 Doug Evans <dje@google.com>
3577 * buildsym.h (record_line_ftype): New typedef.
3578 (record_line): Use it.
3579 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3580 (dwarf_decode_lines_1): Call them.
3582 2014-08-22 Yao Qi <yao@codesourcery.com>
3584 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3585 (ctf_end): Remove code.
3587 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3590 (linux_make_corefile_notes): call update_thread_list, protected against
3593 2014-08-21 Pedro Alves <palves@redhat.com>
3595 * infcmd.c (attach_command): Remove comment.
3597 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3599 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3600 unsigned LONGEST to ULONGEST.
3602 2014-08-20 Pedro Alves <palves@redhat.com>
3604 * Makefile.in (check-read1): New rule.
3606 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3608 * value.c (value_from_contents_and_address): Strip resolved_type's
3609 typedef layers before checking its TYPE_DATA_LOCATION.
3611 2014-08-20 Pedro Alves <palves@redhat.com>
3613 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3615 2014-08-20 Yao Qi <yao@codesourcery.com>
3617 * amd64-tdep.c (amd64_classify): Add a blank line after the
3618 example. Move "*/" to a new line.
3619 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3620 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3621 * dwarf2read.c (psymtab_include_file_name): Likewise.
3623 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3624 Pedro Alves <palves@redhat.com>
3628 * ada-lang.c (coerce_unspec_val_to_type): Use
3629 value_contents_copy_raw.
3630 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3631 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3632 * cp-valprint.c (cp_print_value_fields): Let the common printing
3633 code handle optimized out values.
3634 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3635 * d-valprint.c (dynamic_array_type): Use
3636 value_bits_any_optimized_out.
3637 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3638 check_any_valid fields.
3639 (check_pieced_value_bits): Delete and inline ...
3640 (check_pieced_synthetic_pointer): ... here.
3641 (check_pieced_value_validity): Delete.
3642 (check_pieced_value_invalid): Delete.
3643 (pieced_value_funcs): Remove check_validity and check_any_valid
3645 (read_pieced_value): Use mark_value_bits_optimized_out.
3646 (write_pieced_value): Switch to use
3647 mark_value_bytes_optimized_out.
3648 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3649 of assuming the whole value is optimized out.
3650 * findvar.c (read_frame_register_value): Remove special handling
3651 of optimized out registers.
3652 (value_from_register): Use mark_value_bytes_optimized_out.
3653 * frame-unwind.c (frame_unwind_got_optimized): Use
3654 mark_value_bytes_optimized_out.
3655 * jv-valprint.c (java_value_print): Adjust.
3656 (java_print_value_fields): Let the common printing code handle
3657 optimized out values.
3658 * mips-tdep.c (mips_print_register): Remove special handling of
3659 optimized out registers.
3660 * opencl-lang.c (lval_func_check_validity): Delete.
3661 (lval_func_check_any_valid): Delete.
3662 (opencl_value_funcs): Remove check_validity and check_any_valid
3664 * p-valprint.c (pascal_object_print_value_fields): Let the common
3665 printing code handle optimized out values.
3666 * stack.c (read_frame_arg): Remove special handling of optimized
3667 out values. Fetch both VAL and ENTRYVAL before comparing
3668 contents. Adjust to value_available_contents_eq rename.
3669 * valprint.c (valprint_check_validity)
3670 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3671 (val_print_array_elements): Adjust.
3672 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3673 (value_bits_any_optimized_out): New function.
3674 (value_entirely_covered_by_range_vector): New function, factored
3675 out from value_entirely_unavailable.
3676 (value_entirely_unavailable): Reimplement.
3677 (value_entirely_optimized_out): New function.
3678 (insert_into_bit_range_vector): New function, factored out from
3679 mark_value_bits_unavailable.
3680 (mark_value_bits_unavailable): Reimplement.
3681 (struct ranges_and_idx): New struct.
3682 (find_first_range_overlap_and_match): New function, factored out
3683 from value_available_contents_bits_eq.
3684 (value_available_contents_bits_eq): Rename to ...
3685 (value_contents_bits_eq): ... this. Check both unavailable
3686 contents and optimized out contents.
3687 (value_available_contents_eq): Rename to ...
3688 (value_contents_eq): ... this.
3689 (allocate_value_lazy): Remove reference to the old optimized_out
3691 (allocate_optimized_out_value): Use
3692 mark_value_bytes_optimized_out.
3693 (require_not_optimized_out): Adjust to check whether the
3694 optimized_out vec is empty.
3695 (ranges_copy_adjusted): New function, factored out from
3696 value_contents_copy_raw.
3697 (value_contents_copy_raw): Also copy the optimized out ranges.
3698 Assert the destination ranges aren't optimized out.
3699 (value_contents_copy): Update comment, remove call to
3700 require_not_optimized_out.
3701 (value_contents_equal): Adjust to check whether the optimized_out
3703 (set_value_optimized_out, value_optimized_out_const): Delete.
3704 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3706 (value_entirely_optimized_out, value_bits_valid): Delete.
3707 (value_copy): Take a VEC copy of the 'optimized_out' field.
3708 (value_primitive_field): Remove special handling of optimized out.
3709 (value_fetch_lazy): Assert that lazy values have no unavailable
3710 regions. Use value_bits_any_optimized_out. Remove some special
3711 handling for optimized out values.
3712 * value.h: Add intro comment about <optimized out> and
3714 (struct lval_funcs): Remove check_validity and check_any_valid
3716 (set_value_optimized_out, value_optimized_out_const): Remove.
3717 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3719 (value_bits_any_optimized_out): New declaration.
3720 (value_bits_valid): Delete declaration.
3721 (value_available_contents_eq): Rename to ...
3722 (value_contents_eq): ... this, and extend comments.
3724 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 Fix -fsanitize=address on unreadable inferior strings.
3727 * valprint.c (val_print_string): Fix access before BUFFER.
3729 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3731 * target.c (target_struct_size): Remove.
3732 (target_struct_allocsize): Remove.
3733 (DEFAULT_ALLOCSIZE): Remove.
3734 (target_ops_p): New typedef.
3735 (DEF_VEC_P (target_ops_p)): New vector type.
3736 (target_structs): Change type to VEC (target_ops_p).
3737 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3738 (find_default_run_target): Rewrite for loop following changes to
3741 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3743 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3744 Adjust code accordingly. Adjust function description comment.
3746 2014-08-19 Yao Qi <yao@codesourcery.com>
3748 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3751 2014-08-19 Alan Modra <amodra@gmail.com>
3753 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3754 * config.in: Regenerate.
3755 * configure: Regenerate.
3757 2014-08-19 Tom Tromey <tromey@redhat.com>
3758 Gary Benson <gbenson@redhat.com>
3760 * common/common-debug.h: New file.
3761 * common/common-debug.c: Likewise.
3762 * debug.c: Likewise.
3763 * Makefile.in (SFILES): Add common/common-debug.c.
3764 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3765 (COMMON_OBS): Add common-debug.o and debug.o.
3766 (common-debug.o): New rule.
3767 * common/common-defs.h: Include common-debug.h.
3768 * common/agent.c (debug_agent_printf): New function.
3769 (DEBUG_AGENT): Redefine.
3770 * nat/i386-dregs.c (debug_printf): Undefine.
3772 2014-08-19 Gary Benson <gbenson@redhat.com>
3774 * common/common-defs.h: Include print-utils.h.
3775 * utils.h: Do not include print-utils.h.
3777 2014-08-19 Tom Tromey <tromey@redhat.com>
3778 Gary Benson <gbenson@redhat.com>
3780 * common/common-types.h: New file.
3781 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3782 * common/common-defs.h: Include common-types.h.
3783 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3786 2014-08-19 Tom Tromey <tromey@redhat.com>
3787 Gary Benson <gbenson@redhat.com>
3789 * common/errors.h: New file.
3790 * common/errors.c: Likewise.
3791 * Makefile.in (SFILES): Add common/errors.c.
3792 (HFILES_NO_SRCDIR): Add common/errors.h.
3793 (COMMON_OBS): Add errors.o.
3794 (errors.o): New rule.
3795 * common/common-defs.h: Include errors.h.
3796 * utils.h (perror_with_name, error, verror, warning, vwarning):
3798 * common/common-utils.h: (malloc_failure, internal_error):
3801 2014-08-19 Gary Benson <gbenson@redhat.com>
3803 * utils.c (internal_vproblem): Always print the message.
3805 2014-08-18 Doug Evans <dje@google.com>
3807 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3809 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3811 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3812 Return 0 if TYPE is dynamic.
3813 (print_range): Add handling of dynamic ranges.
3815 2014-08-18 Keven Boell <keven.boell@intel.com>
3816 Joel Brobecker <brobecker@adacore.com>
3818 * gdbtypes.h (struct main_type): Add field "data_location".
3819 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3820 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3821 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3822 a dynamic data location.
3823 (resolve_dynamic_type): Add DW_AT_data_location handling.
3824 (copy_recursive, copy_type): Copy the data_location information
3826 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3827 * value.c (value_from_contents_and_address): Add
3828 DW_AT_data_location handling.
3830 2014-08-18 Keven Boell <keven.boell@intel.com>
3831 Joel Brobecker <brobecker@adacore.com>
3833 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3834 field "get_object_address".
3835 * dwarf2expr.c (execute_stack_op): Add handling for
3836 DW_OP_push_object_address.
3837 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3838 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3839 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3840 (dwarf_expr_get_obj_addr): New function.
3841 (dwarf_expr_ctx_funcs): Add get_object_address field.
3842 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3843 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3844 (dwarf2_evaluate_property): Add parameter "address". Use it.
3845 (needs_get_obj_addr): New function.
3846 (needs_frame_ctx_funcs): Add get_object_address field.
3847 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3848 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3849 (resolve_dynamic_array): Likewise.
3851 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3853 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3854 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3855 fixed value for records and unions for which some GNAT encodings
3858 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3860 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3861 rewrite to avoid "else if" and "else" constructs. Should be
3862 a no-op in practice.
3864 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3866 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3869 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3872 * eval.c: Update all calls to find_overload_match.
3873 * valarith.c: Likewise.
3874 (value_user_defined_cpp_op, value_user_defined_op): New
3875 argument NOSIDE. Update all callers.
3876 * valops.c (find_overload_match): New argument NOSIDE.
3877 * value.h (find_overload_match): Update signature.
3879 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3881 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3882 'items' methods instead of 'iteritems' method on dictionaries.
3884 2014-08-15 Doug Evans <dje@google.com>
3886 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3889 2014-08-15 Doug Evans <dje@google.com>
3891 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3893 2014-08-15 Doug Evans <dje@google.com>
3895 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3897 2014-08-15 Doug Evans <dje@google.com>
3899 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3902 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3904 * dcache.h: Include target.h, to avoid compile time warnings.
3906 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3908 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3909 frame_info" partial declaration.
3910 * gdbarch.h: Regenerate.
3912 2014-08-15 Yao Qi <yao@codesourcery.com>
3914 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3915 Add parameter 'decode_for_pst_p'. Callers update.
3917 2014-08-13 Yao Qi <yao@codesourcery.com>
3920 * configure.ac: Use local variable 'pos'.
3921 * configure: Regenerated.
3923 2014-08-11 Doug Evans <dje@google.com>
3925 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3926 message, it is redundant with "Reading symbols from ..." message.
3928 2014-08-10 Doug Evans <xdje42@gmail.com>
3930 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3932 2014-08-09 Yao Qi <yao@codesourcery.com>
3935 * remote.c (remote_xfer_partial): Remove dead code.
3937 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3939 * ia64-linux-tdep.c: Include "regset.h".
3940 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3941 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3942 (ia64_linux_supply_fpregset): New function.
3943 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3944 (ia64_linux_regset_from_core_section): New function.
3945 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3948 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3950 * m68klinux-tdep.c: Include "regset.h".
3951 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3952 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3953 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3954 (m68k_linux_regset_from_core_section): New function.
3955 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3958 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3960 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3961 function. Move logic to...
3962 (tilegx_linux_regmap): ... this new register map.
3963 (tilegx_linux_regset): Refer to register map, replace supply
3964 method by regcache_supply_regset, and add collect method.
3965 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3966 TILEGX_FIRST_EASY_REGNUM.
3968 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3970 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3971 that calls regcache_supply_regset and handles the EPC register
3972 separately. Move main logic to...
3973 (score7_linux_gregmap): ... this new register map.
3974 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3975 (score7_linux_gregset): Refer to register map. Add collect method.
3976 (score7_linux_regset_from_core_section): Replace
3977 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3978 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3979 (struct regset): Delete unused forward declaraction.
3980 (struct pt_regs): Delete structure definition.
3981 (elf_gregset_t): Delete typedef.
3983 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3985 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3986 (nios2_core_regset): Add collect method.
3988 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3990 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3991 platform-independent and don't write to read-only input buffer.
3992 (m32r_linux_collect_gregset): New function.
3993 (m32r_linux_gregset): Add collect method.
3995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3997 * hppa-linux-tdep.c (greg_map): Rename to...
3998 (hppa_linux_gregmap): ... this. Also convert to
3999 regcache_map_entry format.
4000 (hppa_linux_supply_regset): Delete function.
4001 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4002 (hppa_linux_fpregmap): ... this new register map.
4003 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4004 register map, replace supply method by regcache_supply_regset, and
4005 add collect method regcache_collect_regset.
4007 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4009 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4010 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4011 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4012 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4013 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4014 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4015 (frv_linux_supply_gregset): Replace main logic by call to
4016 regcache_supply_regset, but keep clearing gr32-gr63.
4017 (frv_linux_supply_fpregset): Delete function.
4018 (frv_linux_gregset): Refer to appropriate register map and add
4019 regcache_collect_regset as the collect method.
4020 (frv_linux_fpregset): Likewise. Also exchange the supply method
4021 by regcache_supply_regset.
4023 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4025 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4026 by call to alpha_supply_int_regs.
4027 (alpha_linux_collect_gregset): New function.
4028 (alpha_linux_supply_fpregset): Replace logic by call to
4029 alpha_supply_fp_regs.
4030 (alpha_linux_collect_fpregset): New function.
4031 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4033 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4035 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4036 by call to regcache_collect_regset.
4037 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4038 instead of aarch64_linux_supply_gregset/_fpregset.
4039 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4040 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4041 header file instead.
4042 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4043 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4044 functions. Move logic to ...
4045 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4047 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4048 refer to new register maps, replace *_regset_from_core by
4049 regcache_supply_regset, and also use regcache_collect_regset.
4050 * aarch64-linux-tdep.h: Include "regset.h".
4051 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4053 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4054 macros, moved from C source file.
4055 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4056 variable declarations.
4058 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4060 * s390-linux-nat.c: Include "regset.h".
4061 (regmap_gregset): Delete macro.
4062 (s390_64_regmap_gregset): New register map for
4063 regcache_supply/_collect_regset.
4064 (s390_64_gregset): New regset.
4065 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4066 (regmap_fpregset): Delete macro.
4067 (s390_native_supply, s390_native_collect): Delete functions.
4068 (supply_gregset, fill_gregset): Replace s390-specific regmap
4069 handling by a call to regcache_supply/_collect_regset.
4070 (supply_fpregset, fill_fpregset): Call regcache_supply/
4071 _collect_regset instead of s390_native_supply/_collect.
4072 (fetch_regset, store_regset): Likewise. Also change the last
4073 parameter to a regset instead of a regmap.
4074 (s390_linux_fetch_inferior_registers)
4075 (390_linux_store_inferior_registers): Adjust last parameter in
4076 calls to fetch_regset and store_regset.
4077 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4078 (s390_gregmap): ... this. Also make static const and convert to
4079 regcache_map_entry format.
4080 (s390x_regmap_gregset): Delete.
4081 (s390_regmap_fpregset): Rename to...
4082 (s390_fpregmap): ... this. Make static const and convert to
4083 regcache_map_entry format.
4084 (s390_regmap_upper, s390_regmap_last_break)
4085 (s390x_regmap_last_break, s390_regmap_system_call)
4086 (s390_regmap_tdb): Likewise.
4087 (s390_supply_regset, s390_collect_regset): Remove functions.
4088 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4090 (s390_gregset, s390_fpregset, s390_upper_regset)
4091 (s390_last_break_regset, s390x_last_break_regset)
4092 (s390_system_call_regset, s390_tdb_regset): Make global and
4093 replace s390_supply/_collect_regset by regcache_supply/
4095 (s390x_gregset): Delete.
4096 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4097 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4098 (s390_regmap_fpregset, s390_regmap_last_break)
4099 (s390x_regmap_last_break, s390_regmap_system_call)
4100 (s390_regmap_tdb): Delete global variable declarations.
4101 (s390_gregset, s390_fpregset, s390_last_break_regset)
4102 (s390x_last_break_regset, s390_system_call_regset)
4103 (s390_tdb_regset): New global variable declarations.
4105 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4107 * regcache.c: Include "regset.h".
4108 (regcache_transfer_regset): New local function.
4109 (regcache_supply_regset, regcache_collect_regset): New functions.
4110 * regcache.h (struct regcache_map_entry): New structure.
4111 (REGCACHE_MAP_SKIP): New enum value.
4112 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4117 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4118 (ppc_linux_collect_gregset ): Likewise.
4119 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4120 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4121 (ppc_collect_vrregset): Likewise.
4122 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4125 2014-08-07 Yao Qi <yao@codesourcery.com>
4127 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4128 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4129 * remote.c (remote_read_bytes): Likewise.
4131 2014-08-07 Yao Qi <yao@codesourcery.com>
4133 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4135 2014-08-07 Yao Qi <yao@codesourcery.com>
4138 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4139 TARGET_XFER_OK instead of 0.
4141 2014-08-07 Gary Benson <gbenson@redhat.com>
4143 * common/common-defs.h: Include errno.h.
4144 * defs.h: Do not include errno.h.
4145 * ada-typeprint.c: Likewise.
4146 * c-typeprint.c: Likewise.
4147 * core-regset.c: Likewise.
4148 * corefile.c: Likewise.
4149 * corelow.c: Likewise.
4150 * event-loop.c: Likewise.
4151 * f-typeprint.c: Likewise.
4152 * gnu-nat.c: Likewise.
4153 * go32-nat.c: Likewise.
4154 * i386gnu-nat.c: Likewise.
4155 * m2-typeprint.c: Likewise.
4156 * nat/linux-btrace.c: Likewise.
4157 * p-typeprint.c: Likewise.
4158 * procfs.c: Likewise.
4159 * remote-sim.c: Likewise.
4160 * rs6000-nat.c: Likewise.
4161 * target.c: Likewise.
4162 * typeprint.c: Likewise.
4163 * ui-file.c: Likewise.
4164 * valops.c: Likewise.
4165 * valprint.c: Likewise.
4167 2014-08-07 Gary Benson <gbenson@redhat.com>
4169 * common/common-defs.h: Include string.h.
4170 * aarch64-tdep.c: Do not include string.h.
4171 * ada-exp.y: Likewise.
4172 * ada-lang.c: Likewise.
4173 * ada-lex.l: Likewise.
4174 * ada-typeprint.c: Likewise.
4175 * ada-valprint.c: Likewise.
4176 * aix-thread.c: Likewise.
4177 * alpha-linux-tdep.c: Likewise.
4178 * alpha-mdebug-tdep.c: Likewise.
4179 * alpha-nat.c: Likewise.
4180 * alpha-osf1-tdep.c: Likewise.
4181 * alpha-tdep.c: Likewise.
4182 * alphanbsd-tdep.c: Likewise.
4183 * amd64-dicos-tdep.c: Likewise.
4184 * amd64-linux-tdep.c: Likewise.
4185 * amd64-nat.c: Likewise.
4186 * amd64-sol2-tdep.c: Likewise.
4187 * amd64fbsd-tdep.c: Likewise.
4188 * amd64obsd-tdep.c: Likewise.
4189 * arch-utils.c: Likewise.
4190 * arm-linux-nat.c: Likewise.
4191 * arm-linux-tdep.c: Likewise.
4192 * arm-tdep.c: Likewise.
4193 * arm-wince-tdep.c: Likewise.
4194 * armbsd-tdep.c: Likewise.
4195 * armnbsd-nat.c: Likewise.
4196 * armnbsd-tdep.c: Likewise.
4197 * armobsd-tdep.c: Likewise.
4198 * avr-tdep.c: Likewise.
4199 * ax-gdb.c: Likewise.
4200 * ax-general.c: Likewise.
4201 * bcache.c: Likewise.
4202 * bfin-tdep.c: Likewise.
4203 * breakpoint.c: Likewise.
4204 * build-id.c: Likewise.
4205 * buildsym.c: Likewise.
4206 * c-exp.y: Likewise.
4207 * c-lang.c: Likewise.
4208 * c-typeprint.c: Likewise.
4209 * c-valprint.c: Likewise.
4210 * charset.c: Likewise.
4211 * cli-out.c: Likewise.
4212 * cli/cli-cmds.c: Likewise.
4213 * cli/cli-decode.c: Likewise.
4214 * cli/cli-dump.c: Likewise.
4215 * cli/cli-interp.c: Likewise.
4216 * cli/cli-logging.c: Likewise.
4217 * cli/cli-script.c: Likewise.
4218 * cli/cli-setshow.c: Likewise.
4219 * cli/cli-utils.c: Likewise.
4220 * coffread.c: Likewise.
4221 * common/agent.c: Likewise.
4222 * common/buffer.c: Likewise.
4223 * common/buffer.h: Likewise.
4224 * common/common-utils.c: Likewise.
4225 * common/filestuff.c: Likewise.
4226 * common/filestuff.c: Likewise.
4227 * common/format.c: Likewise.
4228 * common/print-utils.c: Likewise.
4229 * common/rsp-low.c: Likewise.
4230 * common/signals.c: Likewise.
4231 * common/vec.h: Likewise.
4232 * common/xml-utils.c: Likewise.
4233 * core-regset.c: Likewise.
4234 * corefile.c: Likewise.
4235 * corelow.c: Likewise.
4236 * cp-abi.c: Likewise.
4237 * cp-name-parser.y: Likewise.
4238 * cp-support.c: Likewise.
4239 * cp-valprint.c: Likewise.
4240 * cris-tdep.c: Likewise.
4241 * d-exp.y: Likewise.
4242 * darwin-nat.c: Likewise.
4243 * dbxread.c: Likewise.
4244 * dcache.c: Likewise.
4245 * demangle.c: Likewise.
4246 * dicos-tdep.c: Likewise.
4247 * disasm.c: Likewise.
4248 * doublest.c: Likewise.
4249 * dsrec.c: Likewise.
4250 * dummy-frame.c: Likewise.
4251 * dwarf2-frame.c: Likewise.
4252 * dwarf2loc.c: Likewise.
4253 * dwarf2read.c: Likewise.
4254 * elfread.c: Likewise.
4255 * environ.c: Likewise.
4257 * event-loop.c: Likewise.
4258 * exceptions.c: Likewise.
4260 * expprint.c: Likewise.
4261 * f-exp.y: Likewise.
4262 * f-lang.c: Likewise.
4263 * f-typeprint.c: Likewise.
4264 * f-valprint.c: Likewise.
4265 * fbsd-nat.c: Likewise.
4266 * findcmd.c: Likewise.
4267 * findvar.c: Likewise.
4268 * fork-child.c: Likewise.
4269 * frame.c: Likewise.
4270 * frv-linux-tdep.c: Likewise.
4271 * frv-tdep.c: Likewise.
4273 * gdb_bfd.c: Likewise.
4274 * gdbarch.c: Likewise.
4275 * gdbarch.sh: Likewise.
4276 * gdbtypes.c: Likewise.
4277 * gnu-nat.c: Likewise.
4278 * gnu-v2-abi.c: Likewise.
4279 * gnu-v3-abi.c: Likewise.
4280 * go-exp.y: Likewise.
4281 * go-lang.c: Likewise.
4282 * go32-nat.c: Likewise.
4283 * guile/guile.c: Likewise.
4284 * guile/scm-auto-load.c: Likewise.
4285 * hppa-hpux-tdep.c: Likewise.
4286 * hppa-linux-nat.c: Likewise.
4287 * hppanbsd-tdep.c: Likewise.
4288 * hppaobsd-tdep.c: Likewise.
4289 * i386-cygwin-tdep.c: Likewise.
4290 * i386-dicos-tdep.c: Likewise.
4291 * i386-linux-tdep.c: Likewise.
4292 * i386-nto-tdep.c: Likewise.
4293 * i386-sol2-tdep.c: Likewise.
4294 * i386-tdep.c: Likewise.
4295 * i386bsd-tdep.c: Likewise.
4296 * i386gnu-nat.c: Likewise.
4297 * i386nbsd-tdep.c: Likewise.
4298 * i386obsd-tdep.c: Likewise.
4299 * i387-tdep.c: Likewise.
4300 * ia64-libunwind-tdep.c: Likewise.
4301 * ia64-linux-nat.c: Likewise.
4302 * inf-child.c: Likewise.
4303 * inf-ptrace.c: Likewise.
4304 * inf-ttrace.c: Likewise.
4305 * infcall.c: Likewise.
4306 * infcmd.c: Likewise.
4307 * inflow.c: Likewise.
4308 * infrun.c: Likewise.
4309 * interps.c: Likewise.
4310 * iq2000-tdep.c: Likewise.
4311 * irix5-nat.c: Likewise.
4312 * jv-exp.y: Likewise.
4313 * jv-lang.c: Likewise.
4314 * jv-typeprint.c: Likewise.
4315 * jv-valprint.c: Likewise.
4316 * language.c: Likewise.
4317 * linux-fork.c: Likewise.
4318 * linux-nat.c: Likewise.
4319 * lm32-tdep.c: Likewise.
4320 * m2-exp.y: Likewise.
4321 * m2-typeprint.c: Likewise.
4322 * m32c-tdep.c: Likewise.
4323 * m32r-linux-nat.c: Likewise.
4324 * m32r-linux-tdep.c: Likewise.
4325 * m32r-rom.c: Likewise.
4326 * m32r-tdep.c: Likewise.
4327 * m68hc11-tdep.c: Likewise.
4328 * m68k-tdep.c: Likewise.
4329 * m68kbsd-tdep.c: Likewise.
4330 * m68klinux-nat.c: Likewise.
4331 * m68klinux-tdep.c: Likewise.
4332 * m88k-tdep.c: Likewise.
4333 * machoread.c: Likewise.
4334 * macrocmd.c: Likewise.
4336 * mdebugread.c: Likewise.
4337 * mem-break.c: Likewise.
4338 * memattr.c: Likewise.
4339 * memory-map.c: Likewise.
4340 * mep-tdep.c: Likewise.
4341 * mi/mi-cmd-break.c: Likewise.
4342 * mi/mi-cmd-disas.c: Likewise.
4343 * mi/mi-cmd-env.c: Likewise.
4344 * mi/mi-cmd-stack.c: Likewise.
4345 * mi/mi-cmd-var.c: Likewise.
4346 * mi/mi-cmds.c: Likewise.
4347 * mi/mi-console.c: Likewise.
4348 * mi/mi-getopt.c: Likewise.
4349 * mi/mi-interp.c: Likewise.
4350 * mi/mi-main.c: Likewise.
4351 * mi/mi-parse.c: Likewise.
4352 * microblaze-rom.c: Likewise.
4353 * microblaze-tdep.c: Likewise.
4354 * mingw-hdep.c: Likewise.
4355 * minidebug.c: Likewise.
4356 * minsyms.c: Likewise.
4357 * mips-irix-tdep.c: Likewise.
4358 * mips-linux-tdep.c: Likewise.
4359 * mips-tdep.c: Likewise.
4360 * mips64obsd-tdep.c: Likewise.
4361 * mipsnbsd-tdep.c: Likewise.
4362 * mipsread.c: Likewise.
4363 * mn10300-linux-tdep.c: Likewise.
4364 * mn10300-tdep.c: Likewise.
4365 * monitor.c: Likewise.
4366 * moxie-tdep.c: Likewise.
4367 * mt-tdep.c: Likewise.
4368 * nat/linux-btrace.c: Likewise.
4369 * nat/linux-osdata.c: Likewise.
4370 * nat/linux-procfs.c: Likewise.
4371 * nat/linux-ptrace.c: Likewise.
4372 * nat/linux-waitpid.c: Likewise.
4373 * nbsd-tdep.c: Likewise.
4374 * nios2-linux-tdep.c: Likewise.
4375 * nto-procfs.c: Likewise.
4376 * nto-tdep.c: Likewise.
4377 * objc-lang.c: Likewise.
4378 * objfiles.c: Likewise.
4379 * opencl-lang.c: Likewise.
4380 * osabi.c: Likewise.
4381 * osdata.c: Likewise.
4382 * p-exp.y: Likewise.
4383 * p-lang.c: Likewise.
4384 * p-typeprint.c: Likewise.
4385 * parse.c: Likewise.
4386 * posix-hdep.c: Likewise.
4387 * ppc-linux-nat.c: Likewise.
4388 * ppc-sysv-tdep.c: Likewise.
4389 * ppcfbsd-tdep.c: Likewise.
4390 * ppcnbsd-tdep.c: Likewise.
4391 * ppcobsd-tdep.c: Likewise.
4392 * printcmd.c: Likewise.
4393 * procfs.c: Likewise.
4394 * prologue-value.c: Likewise.
4395 * python/py-auto-load.c: Likewise.
4396 * python/py-gdb-readline.c: Likewise.
4397 * ravenscar-thread.c: Likewise.
4398 * regcache.c: Likewise.
4399 * registry.c: Likewise.
4400 * remote-fileio.c: Likewise.
4401 * remote-m32r-sdi.c: Likewise.
4402 * remote-mips.c: Likewise.
4403 * remote-notif.c: Likewise.
4404 * remote-sim.c: Likewise.
4405 * remote.c: Likewise.
4406 * reverse.c: Likewise.
4407 * rs6000-aix-tdep.c: Likewise.
4408 * ser-base.c: Likewise.
4409 * ser-go32.c: Likewise.
4410 * ser-mingw.c: Likewise.
4411 * ser-pipe.c: Likewise.
4412 * ser-tcp.c: Likewise.
4413 * ser-unix.c: Likewise.
4414 * serial.c: Likewise.
4415 * sh-tdep.c: Likewise.
4416 * sh64-tdep.c: Likewise.
4417 * shnbsd-tdep.c: Likewise.
4419 * sol-thread.c: Likewise.
4420 * solib-dsbt.c: Likewise.
4421 * solib-frv.c: Likewise.
4422 * solib-osf.c: Likewise.
4423 * solib-som.c: Likewise.
4424 * solib-spu.c: Likewise.
4425 * solib-target.c: Likewise.
4426 * solib.c: Likewise.
4427 * somread.c: Likewise.
4428 * source.c: Likewise.
4429 * sparc-nat.c: Likewise.
4430 * sparc-sol2-tdep.c: Likewise.
4431 * sparc-tdep.c: Likewise.
4432 * sparc64-tdep.c: Likewise.
4433 * sparc64fbsd-tdep.c: Likewise.
4434 * sparc64nbsd-tdep.c: Likewise.
4435 * sparcnbsd-tdep.c: Likewise.
4436 * spu-linux-nat.c: Likewise.
4437 * spu-multiarch.c: Likewise.
4438 * spu-tdep.c: Likewise.
4439 * stabsread.c: Likewise.
4440 * stack.c: Likewise.
4441 * std-regs.c: Likewise.
4442 * symfile.c: Likewise.
4443 * symmisc.c: Likewise.
4444 * symtab.c: Likewise.
4445 * target.c: Likewise.
4446 * thread.c: Likewise.
4447 * tilegx-linux-nat.c: Likewise.
4448 * tilegx-tdep.c: Likewise.
4450 * tracepoint.c: Likewise.
4451 * tui/tui-command.c: Likewise.
4452 * tui/tui-data.c: Likewise.
4453 * tui/tui-disasm.c: Likewise.
4454 * tui/tui-file.c: Likewise.
4455 * tui/tui-layout.c: Likewise.
4456 * tui/tui-out.c: Likewise.
4457 * tui/tui-regs.c: Likewise.
4458 * tui/tui-source.c: Likewise.
4459 * tui/tui-stack.c: Likewise.
4460 * tui/tui-win.c: Likewise.
4461 * tui/tui-windata.c: Likewise.
4462 * tui/tui-winsource.c: Likewise.
4463 * typeprint.c: Likewise.
4464 * ui-file.c: Likewise.
4465 * ui-out.c: Likewise.
4466 * user-regs.c: Likewise.
4467 * utils.c: Likewise.
4468 * v850-tdep.c: Likewise.
4469 * valarith.c: Likewise.
4470 * valops.c: Likewise.
4471 * valprint.c: Likewise.
4472 * value.c: Likewise.
4473 * varobj.c: Likewise.
4474 * vax-tdep.c: Likewise.
4475 * vaxnbsd-tdep.c: Likewise.
4476 * vaxobsd-tdep.c: Likewise.
4477 * windows-nat.c: Likewise.
4478 * xcoffread.c: Likewise.
4479 * xml-support.c: Likewise.
4480 * xstormy16-tdep.c: Likewise.
4481 * xtensa-linux-nat.c: Likewise.
4483 2014-08-07 Gary Benson <gbenson@redhat.com>
4485 * common/common-defs.h: Include gdb_assert.h.
4486 * aarch64-tdep.c: Do not include gdb_assert.h.
4487 * addrmap.c: Likewise.
4488 * aix-thread.c: Likewise.
4489 * alpha-linux-tdep.c: Likewise.
4490 * alpha-mdebug-tdep.c: Likewise.
4491 * alphanbsd-tdep.c: Likewise.
4492 * amd64-nat.c: Likewise.
4493 * amd64-tdep.c: Likewise.
4494 * amd64bsd-nat.c: Likewise.
4495 * amd64fbsd-nat.c: Likewise.
4496 * amd64fbsd-tdep.c: Likewise.
4497 * amd64nbsd-nat.c: Likewise.
4498 * amd64nbsd-tdep.c: Likewise.
4499 * amd64obsd-nat.c: Likewise.
4500 * amd64obsd-tdep.c: Likewise.
4501 * arch-utils.c: Likewise.
4502 * arm-tdep.c: Likewise.
4503 * armbsd-tdep.c: Likewise.
4505 * bcache.c: Likewise.
4506 * bfin-tdep.c: Likewise.
4507 * blockframe.c: Likewise.
4508 * breakpoint.c: Likewise.
4509 * bsd-kvm.c: Likewise.
4510 * bsd-uthread.c: Likewise.
4511 * buildsym.c: Likewise.
4512 * c-exp.y: Likewise.
4513 * c-lang.c: Likewise.
4514 * charset.c: Likewise.
4515 * cleanups.c: Likewise.
4516 * cli-out.c: Likewise.
4517 * cli/cli-decode.c: Likewise.
4518 * cli/cli-dump.c: Likewise.
4519 * cli/cli-logging.c: Likewise.
4520 * cli/cli-script.c: Likewise.
4521 * cli/cli-utils.c: Likewise.
4522 * coffread.c: Likewise.
4523 * common/common-utils.c: Likewise.
4524 * common/queue.h: Likewise.
4525 * common/signals.c: Likewise.
4526 * common/vec.h: Likewise.
4527 * complaints.c: Likewise.
4528 * completer.c: Likewise.
4529 * corelow.c: Likewise.
4530 * cp-abi.c: Likewise.
4531 * cp-name-parser.y: Likewise.
4532 * cp-namespace.c: Likewise.
4533 * cp-support.c: Likewise.
4534 * cris-tdep.c: Likewise.
4535 * dbxread.c: Likewise.
4536 * dictionary.c: Likewise.
4537 * doublest.c: Likewise.
4538 * dsrec.c: Likewise.
4539 * dummy-frame.c: Likewise.
4540 * dwarf2-frame-tailcall.c: Likewise.
4541 * dwarf2-frame.c: Likewise.
4542 * dwarf2expr.c: Likewise.
4543 * dwarf2loc.c: Likewise.
4544 * dwarf2read.c: Likewise.
4546 * event-loop.c: Likewise.
4547 * exceptions.c: Likewise.
4548 * expprint.c: Likewise.
4549 * f-valprint.c: Likewise.
4550 * fbsd-nat.c: Likewise.
4551 * findvar.c: Likewise.
4552 * frame-unwind.c: Likewise.
4553 * frame.c: Likewise.
4554 * frv-tdep.c: Likewise.
4555 * gcore.c: Likewise.
4556 * gdb-dlfcn.c: Likewise.
4557 * gdb_bfd.c: Likewise.
4558 * gdbarch.c: Likewise.
4559 * gdbarch.sh: Likewise.
4560 * gdbtypes.c: Likewise.
4561 * gnu-nat.c: Likewise.
4562 * gnu-v3-abi.c: Likewise.
4563 * go-lang.c: Likewise.
4564 * guile/scm-exception.c: Likewise.
4565 * guile/scm-gsmob.c: Likewise.
4566 * guile/scm-lazy-string.c: Likewise.
4567 * guile/scm-math.c: Likewise.
4568 * guile/scm-pretty-print.c: Likewise.
4569 * guile/scm-safe-call.c: Likewise.
4570 * guile/scm-utils.c: Likewise.
4571 * guile/scm-value.c: Likewise.
4572 * h8300-tdep.c: Likewise.
4573 * hppa-hpux-nat.c: Likewise.
4574 * hppa-tdep.c: Likewise.
4575 * hppanbsd-tdep.c: Likewise.
4576 * hppaobsd-tdep.c: Likewise.
4577 * i386-darwin-nat.c: Likewise.
4578 * i386-darwin-tdep.c: Likewise.
4579 * i386-nto-tdep.c: Likewise.
4580 * i386-tdep.c: Likewise.
4581 * i386bsd-nat.c: Likewise.
4582 * i386fbsd-tdep.c: Likewise.
4583 * i386gnu-nat.c: Likewise.
4584 * i386nbsd-tdep.c: Likewise.
4585 * i386obsd-tdep.c: Likewise.
4586 * i387-tdep.c: Likewise.
4587 * ia64-libunwind-tdep.c: Likewise.
4588 * ia64-tdep.c: Likewise.
4589 * inf-ptrace.c: Likewise.
4590 * inf-ttrace.c: Likewise.
4591 * infcall.c: Likewise.
4592 * infcmd.c: Likewise.
4593 * infrun.c: Likewise.
4594 * inline-frame.c: Likewise.
4595 * interps.c: Likewise.
4596 * jv-lang.c: Likewise.
4597 * jv-typeprint.c: Likewise.
4598 * linux-fork.c: Likewise.
4599 * linux-nat.c: Likewise.
4600 * linux-thread-db.c: Likewise.
4601 * m32c-tdep.c: Likewise.
4602 * m32r-linux-nat.c: Likewise.
4603 * m32r-tdep.c: Likewise.
4604 * m68k-tdep.c: Likewise.
4605 * m68kbsd-nat.c: Likewise.
4606 * m68kbsd-tdep.c: Likewise.
4607 * m88k-tdep.c: Likewise.
4608 * machoread.c: Likewise.
4609 * macroexp.c: Likewise.
4610 * macrotab.c: Likewise.
4611 * maint.c: Likewise.
4612 * mdebugread.c: Likewise.
4613 * memory-map.c: Likewise.
4614 * mep-tdep.c: Likewise.
4615 * mi/mi-common.c: Likewise.
4616 * microblaze-tdep.c: Likewise.
4617 * mingw-hdep.c: Likewise.
4618 * mips-linux-nat.c: Likewise.
4619 * mips-linux-tdep.c: Likewise.
4620 * mips-tdep.c: Likewise.
4621 * mips64obsd-tdep.c: Likewise.
4622 * mipsnbsd-tdep.c: Likewise.
4623 * mn10300-linux-tdep.c: Likewise.
4624 * mn10300-tdep.c: Likewise.
4625 * moxie-tdep.c: Likewise.
4626 * mt-tdep.c: Likewise.
4627 * nat/linux-btrace.c: Likewise.
4628 * nat/linux-osdata.c: Likewise.
4629 * nat/linux-ptrace.c: Likewise.
4630 * nat/mips-linux-watch.c: Likewise.
4631 * nios2-linux-tdep.c: Likewise.
4632 * nios2-tdep.c: Likewise.
4633 * objc-lang.c: Likewise.
4634 * objfiles.c: Likewise.
4635 * obsd-nat.c: Likewise.
4636 * opencl-lang.c: Likewise.
4637 * osabi.c: Likewise.
4638 * parse.c: Likewise.
4639 * ppc-linux-nat.c: Likewise.
4640 * ppc-sysv-tdep.c: Likewise.
4641 * ppcfbsd-nat.c: Likewise.
4642 * ppcfbsd-tdep.c: Likewise.
4643 * ppcnbsd-nat.c: Likewise.
4644 * ppcnbsd-tdep.c: Likewise.
4645 * ppcobsd-nat.c: Likewise.
4646 * ppcobsd-tdep.c: Likewise.
4647 * printcmd.c: Likewise.
4648 * procfs.c: Likewise.
4649 * prologue-value.c: Likewise.
4650 * psymtab.c: Likewise.
4651 * python/py-lazy-string.c: Likewise.
4652 * python/py-value.c: Likewise.
4653 * regcache.c: Likewise.
4654 * reggroups.c: Likewise.
4655 * registry.c: Likewise.
4656 * remote-sim.c: Likewise.
4657 * remote.c: Likewise.
4658 * rs6000-aix-tdep.c: Likewise.
4659 * rs6000-tdep.c: Likewise.
4660 * s390-linux-tdep.c: Likewise.
4661 * score-tdep.c: Likewise.
4662 * ser-base.c: Likewise.
4663 * ser-mingw.c: Likewise.
4664 * sh-tdep.c: Likewise.
4665 * sh64-tdep.c: Likewise.
4666 * solib-darwin.c: Likewise.
4667 * solib-spu.c: Likewise.
4668 * solib-svr4.c: Likewise.
4669 * source.c: Likewise.
4670 * sparc-nat.c: Likewise.
4671 * sparc-sol2-tdep.c: Likewise.
4672 * sparc-tdep.c: Likewise.
4673 * sparc64-sol2-tdep.c: Likewise.
4674 * sparc64-tdep.c: Likewise.
4675 * sparc64fbsd-tdep.c: Likewise.
4676 * sparc64nbsd-tdep.c: Likewise.
4677 * sparc64obsd-tdep.c: Likewise.
4678 * sparcnbsd-tdep.c: Likewise.
4679 * sparcobsd-tdep.c: Likewise.
4680 * spu-multiarch.c: Likewise.
4681 * spu-tdep.c: Likewise.
4682 * stabsread.c: Likewise.
4683 * stack.c: Likewise.
4684 * symfile.c: Likewise.
4685 * symtab.c: Likewise.
4686 * target-descriptions.c: Likewise.
4687 * target-memory.c: Likewise.
4688 * target.c: Likewise.
4689 * tic6x-linux-tdep.c: Likewise.
4690 * tic6x-tdep.c: Likewise.
4691 * tilegx-linux-nat.c: Likewise.
4692 * tilegx-tdep.c: Likewise.
4694 * tramp-frame.c: Likewise.
4695 * tui/tui-out.c: Likewise.
4696 * tui/tui-winsource.c: Likewise.
4697 * ui-out.c: Likewise.
4698 * user-regs.c: Likewise.
4699 * utils.c: Likewise.
4700 * v850-tdep.c: Likewise.
4701 * valops.c: Likewise.
4702 * value.c: Likewise.
4703 * varobj.c: Likewise.
4704 * vax-nat.c: Likewise.
4705 * xml-syscall.c: Likewise.
4706 * xml-tdesc.c: Likewise.
4707 * xstormy16-tdep.c: Likewise.
4708 * xtensa-linux-nat.c: Likewise.
4709 * xtensa-tdep.c: Likewise.
4711 2014-08-07 Gary Benson <gbenson@redhat.com>
4713 * common/common-defs.h: Include common-utils.h.
4714 * defs.h: Do not include common-utils.h.
4715 * common/gdb_assert.h: Likewise.
4716 * darwin-nat.h: Likewise.
4717 * nat/linux-btrace.c: Likewise.
4718 * target/waitstatus.h: Likewise.
4720 2014-08-07 Gary Benson <gbenson@redhat.com>
4722 * common/common-defs.h: Include ptid.h.
4723 * defs.h: Do not include ptid.h.
4724 * inferior.h: Likewise.
4725 * infrun.h: Likewise.
4726 * nat/linux-btrace.h: Likewise.
4727 * nat/linux-osdata.h: Likewise.
4728 * target/waitstatus.h: Likewise.
4730 2014-08-07 Gary Benson <gbenson@redhat.com>
4732 * common/common-defs.h: Include gdb_locale.h.
4733 * defs.h: Do not include gdb_locale.h.
4735 2014-08-07 Gary Benson <gbenson@redhat.com>
4737 * common/common-defs.h: Include gdb/signals.h.
4738 * defs.h: Do not include gdb/signals.h.
4740 2014-08-07 Gary Benson <gbenson@redhat.com>
4742 * common/common-defs.h: Include pathmax.h.
4743 * defs.h: Do not include pathmax.h.
4745 2014-08-07 Gary Benson <gbenson@redhat.com>
4747 * common/common-defs.h: Include libiberty.h.
4748 * defs.h: Do not include libiberty.h.
4749 * common/queue.h: Likewise.
4750 * cp-name-parser.y: Likewise.
4751 * mi/mi-cmd-catch.c: Likewise.
4752 * python/python.c: Likewise.
4754 2014-08-07 Gary Benson <gbenson@redhat.com>
4756 * common/common-defs.h: Include ansidecl.h.
4757 * defs.h: Do not include ansidecl.h.
4758 * common/buffer.h: Likewise.
4759 * common/common-utils.h: Likewise.
4761 2014-08-07 Gary Benson <gbenson@redhat.com>
4763 * common/common-defs.h: Include stddef.h.
4764 * defs.h: Do not include stddef.h.
4765 * common/common-utils.h: Likewise.
4766 * amd64fbsd-nat.c: Likewise.
4767 * bcache.c: Likewise.
4768 * charset.c: Likewise.
4769 * common/buffer.h: Likewise.
4770 * common/vec.h: Likewise.
4771 * i386bsd-nat.c: Likewise.
4772 * nat/linux-btrace.h: Likewise.
4773 * ppcfbsd-nat.c: Likewise.
4774 * ppcnbsd-tdep.h: Likewise.
4775 * ppcobsd-nat.c: Likewise.
4776 * ppcobsd-tdep.h: Likewise.
4777 * python/py-gdb-readline.c: Likewise.
4779 2014-08-07 Gary Benson <gbenson@redhat.com>
4781 * common/common-defs.h: Include stdarg.h.
4782 * defs.h: Do not include stdarg.h.
4783 * ada-lang.c: Likewise.
4784 * common/common-utils.h: Likewise.
4785 * guile/scm-string.c: Likewise.
4786 * guile/scm-utils.c: Likewise.
4787 * m32c-tdep.c: Likewise.
4789 2014-08-07 Gary Benson <gbenson@redhat.com>
4791 * common/common-defs.h: Include stdlib.h.
4792 * defs.h: Do not include stdlib.h.
4793 * addrmap.c: Likewise.
4794 * bcache.c: Likewise.
4795 * common/buffer.c: Likewise.
4796 * common/common-utils.c: Likewise.
4797 * cp-name-parser.y: Likewise.
4798 * go32-nat.c: Likewise.
4799 * mn10300-linux-tdep.c: Likewise.
4800 * nat/linux-osdata.c: Likewise.
4801 * tui/tui.c: Likewise.
4802 * windows-nat.c: Likewise.
4804 2014-08-07 Gary Benson <gbenson@redhat.com>
4806 * common/common-defs.h: Include stdio.h.
4807 * defs.h: Do not include stdio.h.
4808 * ada-lang.c: Likewise.
4809 * common/buffer.c: Likewise.
4810 * common/common-utils.c: Likewise.
4811 * cp-name-parser.y: Likewise.
4812 * gnu-nat.c: Likewise.
4813 * go32-nat.c: Likewise.
4814 * i386gnu-nat.c: Likewise.
4815 * proc-api.c: Likewise.
4816 * proc-events.c: Likewise.
4817 * proc-flags.c: Likewise.
4818 * proc-why.c: Likewise.
4819 * python/python-internal.h: Likewise.
4820 * target-memory.c: Likewise.
4821 * tui/tui-io.c: Likewise.
4822 * tui/tui.c: Likewise.
4824 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4826 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4827 (scan_dyntag_auxv): Same.
4829 2014-08-06 Yao Qi <yao@codesourcery.com>
4831 * amd64-linux-nat.c: Remove duplicated include
4833 * i386-linux-nat.c: Likewise.
4835 2014-08-06 Yao Qi <yao@codesourcery.com>
4837 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4838 operand" with "Special opcode" in comments.
4840 2014-08-05 Gary Benson <gbenson@redhat.com>
4842 * interps.c (initialize_interps): Remove prototype.
4843 (interpreter_initialized): Remove static global.
4844 (interp_add): Do not call initialize_interps.
4845 (initialize_interps): Remove function.
4847 2014-08-05 Gary Benson <gbenson@redhat.com>
4849 * utils.c (vwarning): Remove spurious va_end.
4851 2014-08-05 Alan Modra <amodra@gmail.com>
4853 * charset.c (convert_between_encodings): Cast result of obstack_base.
4854 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4855 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4856 (read_unwind_info): Use size_t for some locals.
4857 * jit.c (finalize_symtab): Likewise.
4858 * utils.c (hashtab_obstack_allocate): Likewise.
4859 * symmisc.c (print_objfile_statistics): Update format strings.
4861 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4863 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4864 (Changes in GDB 7.8): ... here.
4866 2014-08-04 Tom Tromey <tromey@redhat.com>
4868 * target.c (set_targetdebug): New function.
4869 (initialize_targets): Pass set_targetdebug when creating "set
4872 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4874 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4875 if detecting a variable-sized field that is not the last field.
4876 Fix struct type length computation.
4878 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4880 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4883 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4885 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4886 Remove "+ 8" offset in computation of CHAIN_VMA.
4888 2014-07-31 Doug Evans <dje@google.com>
4890 * inflow.c (child_terminal_inferior): Add comment.
4891 (child_terminal_ours_for_output): Add comment.
4892 (child_terminal_ours): Add comment.
4893 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4894 (linux_nat_terminal_ours): Add comment.
4896 2014-07-31 Gary Benson <gbenson@redhat.com>
4898 * common/btrace-common.h: Do not include defs.h or server.h.
4899 * nat/mips-linux-watch.h: Likewise.
4900 * gdb-dlfcn.h: Do not include defs.h.
4901 * tracefile.h: Likewise.
4903 2014-07-30 Roland McGrath <mcgrathr@google.com>
4905 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4907 2014-07-30 Tom Tromey <tromey@redhat.com>
4909 * bsd-kvm.c (bsd_kvm_open): Constify.
4910 * corelow.c (core_open): Constify.
4911 * ctf.c (ctf_open): Constify.
4912 * dbug-rom.c (dbug_open): Constify.
4913 * exec.c (exec_open): Constify.
4914 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4915 * microblaze-rom.c (picobug_open): Constify.
4916 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4918 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4919 * record-btrace.c (record_btrace_open): Constify.
4920 * record-full.c (record_full_core_open_1, record_full_open_1)
4921 (record_full_open): Constify.
4922 * remote-m32r-sdi.c (m32r_open): Constify.
4923 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4924 (rockhopper_open, lsi_open): Constify.
4925 * remote-sim.c (gdbsim_open): Constify.
4926 * remote.c (remote_open, extended_remote_open, remote_open_1):
4928 * target.h (struct target_ops) <to_open>: Make "arg" const.
4929 * tracefile-tfile.c (tfile_open): Constify.
4931 2014-07-30 Tom Tromey <tromey@redhat.com>
4933 * breakpoint.c (map_breakpoint_numbers): Update.
4934 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4935 (get_number_const): New function.
4936 (get_number): Rewrite using get_number_const.
4937 (init_number_or_range): Make "string" const.
4938 (number_is_in_list): Make "list" const.
4939 * cli/cli-utils.h (get_number_const): Declare.
4940 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4941 (init_number_or_range, number_is_in_list): Update.
4942 * printcmd.c (map_display_numbers): Update.
4943 * value.c (value_from_history_ref): Constify.
4944 * value.h (value_from_history_ref): Update.
4946 2014-07-30 Tom Tromey <tromey@redhat.com>
4948 * corefile.c (hook_type, call_extra_exec_file_hooks)
4949 (specify_exec_file_hook): Constify.
4950 * exec.c (exec_file_attach): Make "filename" const.
4951 * gdbcore.h (deprecated_exec_file_display_hook)
4952 (specify_exec_file_hook, exec_file_attach): Constify.
4953 * main.c (captured_main): Use catch_command_errors_const.
4955 2014-07-30 Tom Tromey <tromey@redhat.com>
4957 * target.c (open_target): New function.
4958 (add_target_with_completer, add_deprecated_target_alias): Use
4959 set_cmd_sfunc, set_cmd_context.
4960 (debug_to_open): Remove.
4961 (setup_target_debug): Update.
4963 2014-07-30 Yao Qi <yao@codesourcery.com>
4965 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4967 * parse.c (exp_iterate): Update comments.
4969 2014-07-30 Gary Benson <gbenson@redhat.com>
4971 * common/common-defs.h: New file.
4972 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4973 * defs.h: Include common-defs.h.
4974 Do not include config.h or build-gnulib/config.h.
4976 2014-07-30 Gary Benson <gbenson@redhat.com>
4978 * common/common-utils.h: Do not include config.h.
4979 * nat/linux-btrace.h: Likewise.
4981 2014-07-30 Gary Benson <gbenson@redhat.com>
4983 * btrace.c: Include defs.h.
4984 * common/ptid.c: Include defs.h or server.h as appropriate.
4985 * nat/mips-linux-watch.c: Likewise.
4987 2014-07-29 Tom Tromey <tromey@redhat.com>
4989 * target.c (target_is_pushed): Simplify.
4991 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4995 2014-07-29 Yao Qi <yao@codesourcery.com>
4998 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5000 2014-07-28 Doug Evans <xdje42@gmail.com>
5003 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5004 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5007 2014-07-28 Will Newton <will.newton@linaro.org>
5009 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5010 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5011 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5012 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5013 (THUMB2_EABI_SYSCALL): Likewise.
5014 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5016 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5017 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5019 2014-07-27 Doug Evans <xdje42@gmail.com>
5021 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5023 2014-07-27 Doug Evans <xdje42@gmail.com>
5025 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5027 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5028 Doug Evans <xdje42@gmail.com>
5031 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5032 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5033 * configure.ac: Try to use guild to compile an scm file, if it fails
5034 then disable guile support.
5035 * configure: Regenerate.
5036 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5038 (GUILE_COMPILED_FILES): New variable.
5039 (GUILE_FILES) Update.
5040 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5041 (stamp-guile): Compile scm files.
5042 * guile/guile.c (boot_guile_support): New function.
5043 (standard_throw_args_p): New function.
5044 (print_standard_throw_error, print_throw_error): New functions.
5045 (handle_boot_error): New function.
5046 (initialize_scheme_side): Rewrite to call boot_guile_support.
5047 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5048 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5050 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5051 Doug Evans <xdje42@gmail.com>
5054 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5055 * guile/lib/gdb/support.scm: New file.
5056 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5057 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5059 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5061 (%assert-type): Ditto, and renamed to assert-type.
5062 (%exception-print-style): Delete.
5064 2014-07-26 Doug Evans <xdje42@gmail.com>
5067 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5068 * configure: Regenerate.
5069 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5071 (PYTHON_FILES): New variable.
5072 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5073 (GUILE_FILES): New variable.
5074 (stamp-python, install-python, uninstall-python): Handle empty
5076 (stamp-guile, install-guile, uninstall-guile): Ditto.
5078 2014-07-26 Doug Evans <xdje42@gmail.com>
5081 * guile/lib/gdb.scm (pretty-printers): Export.
5082 (set-pretty-printers!): Export.
5083 * guile/lib/gdb/printing.scm (gdb module): Update.
5084 (prepend-pretty-printer!, append-pretty-printer!): Update.
5085 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5086 (pretty_printer_list_var): Delete.
5087 (pretty_printer_list): New static global.
5088 (gdbscm_pretty_printers): New function.
5089 (gdbscm_set_pretty_printers_x): New function.
5090 (ppscm_find_pretty_printer_from_gdb): Update.
5091 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5092 (gdbscm_initialize_pretty_printers): Update.
5094 2014-07-26 Doug Evans <xdje42@gmail.com>
5097 * configure.ac: Add check for header gc/gc.h.
5098 Add check for function setenv.
5099 * configure: Regenerate.
5100 * config.in: Regenerate.
5101 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5103 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5105 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5106 variation in gdbarch matching.
5108 2014-07-25 Tom Tromey <tromey@redhat.com>
5110 * exec.c (using_exec_ops): Remove.
5111 (exec_close_1): Update. Remove extraneous block, reindent.
5112 (add_target_sections): Use target_is_pushed.
5114 2014-07-25 Pedro Alves <palves@redhat.com>
5116 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5117 * monitor.c (monitor_create_inferior): Likewise.
5118 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5119 * remote-sim.c (gdbsim_create_inferior): Likewise.
5120 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5121 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5122 * windows-nat.c (do_initial_windows_stuff): Likewise.
5124 2014-07-25 Pedro Alves <palves@redhat.com>
5126 * NEWS: Mention signal passing and "signal" command changes.
5127 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5129 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5131 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5132 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5133 (jump_command): Adjust clear_proceed_status call.
5134 (signal_command): Warn if other thread that are resumed have
5135 signals that will be delivered. Adjust clear_proceed_status call.
5136 (until_next_command, finish_command)
5137 (proceed_after_attach_callback, attach_command_post_wait)
5138 (attach_command): Adjust clear_proceed_status call.
5139 * infrun.c (proceed_after_vfork_done): Likewise.
5140 (proceed_after_attach_callback): Adjust comment.
5141 (clear_proceed_status_thread): Clear stop_signal if not in pass
5143 (clear_proceed_status_callback): Delete.
5144 (clear_proceed_status): New 'step' parameter. Only clear the
5145 proceed status of threads the command being prepared is about to
5147 (proceed): If passed in an explicit signal, override stop_signal
5148 with it. Don't pass the last stop signal to the thread we're
5150 (init_wait_for_inferior): Adjust clear_proceed_status call.
5151 (switch_back_to_stepped_thread): Clear the signal if it should not
5153 * infrun.h (clear_proceed_status): New 'step' parameter.
5154 (user_visible_resume_ptid): Add comment.
5155 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5156 signal is in pass state.
5157 * remote.c (append_pending_thread_resumptions): Likewise.
5158 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5160 2014-07-25 Tom Tromey <tromey@redhat.com>
5162 * target.h (target_stopped_data_address)
5163 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5166 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5168 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5170 (avr_pointer_to_address): Likewise.
5172 2014-07-24 Tom Tromey <tromey@redhat.com>
5174 * monitor.c (compile_pattern): Update.
5175 * target.h (struct target_ops) <to_shortname, to_longname,
5178 2014-07-24 Tom Tromey <tromey@redhat.com>
5180 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5181 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5182 (add_info_alias, add_com): Make "doc" const.
5183 (print_doc_line): Make "str" const.
5184 (delete_cmd): Update.
5185 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5186 (print_doc_line): Update.
5187 * cli/cli-script.c (document_command): Update.
5188 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5189 (add_com, add_info, add_info_alias): Update.
5190 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5191 * python/py-cmd.c (cmdpy_destroyer): Update.
5193 2014-07-24 Tom Tromey <tromey@redhat.com>
5195 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5196 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5197 (help_cmd_list): Constify.
5198 (lookup_cmd): Update.
5199 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5201 (help_cmd_list, apropos_cmd): Update.
5202 * cli/cli-script.c (show_user): Update.
5203 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5204 * cli/cli-setshow.h (cmd_show_list): Update.
5205 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5206 (cmd_show_list): Update.
5207 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5208 * python/py-cmd.c (cmdpy_destroyer): Update.
5210 2014-07-24 Tom Tromey <tromey@redhat.com>
5212 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5213 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5215 * command.h (deprecate_cmd): Update.
5216 * maint.c (maintenance_do_deprecate): Add casts.
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5220 * cli/cli-decode.c (help_cmd): Make parameter "const".
5221 * cli/cli-decode.h (help_cmd): Update.
5223 2014-07-24 Tom Tromey <tromey@redhat.com>
5225 * stack.c (up_silently_base, down_silently_base): Make argument
5228 2014-07-24 Tom Tromey <tromey@redhat.com>
5230 * solib.c (solib_add): Make "pattern" const.
5231 * solib.h (solib_add): Update.
5233 2014-07-24 Tom Tromey <tromey@redhat.com>
5235 * remote.c (remote_serial_open, print_packet, putpkt)
5236 (putpkt_binary): Constify.
5237 * remote.h (putpkt): Update.
5239 2014-07-24 Tom Tromey <tromey@redhat.com>
5241 * monitor.c (monitor_open): Make "args" const.
5242 * monitor.h (monitor_open): Update.
5244 2014-07-24 Tom Tromey <tromey@redhat.com>
5246 * maint.c (match_bfd_flags): Make "string" const.
5247 (print_bfd_section_info): Remove casts.
5248 (print_objfile_section_info): Make "string" const.
5250 2014-07-24 Tom Tromey <tromey@redhat.com>
5252 * inf-child.c (inf_child_open_target): Make "arg" const.
5253 * inf-child.h (inf_child_open_target): Update.
5255 2014-07-24 Tom Tromey <tromey@redhat.com>
5257 * environ.c (unset_in_environ): Make "var" const.
5258 * environ.h (unset_in_environ): Update.
5260 2014-07-24 Tom Tromey <tromey@redhat.com>
5262 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5264 (scan_filename_with_cleanup): Likewise.
5265 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5266 Make arguments const.
5267 (restore_command): Update.
5269 2014-07-24 Pedro Alves <palves@redhat.com>
5271 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5273 2014-07-24 Tom Tromey <tromey@redhat.com>
5274 Gary Benson <gbenson@redhat.com>
5276 * nat/linux-ptrace.c (additional_flags): New global.
5277 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5278 additional_flags; don't check GDBSERVER.
5279 (linux_ptrace_set_additional_flags): New function.
5280 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5282 * linux-nat.c (_initialize_linux_nat): Call
5283 linux_ptrace_set_additional_flags.
5285 2014-07-24 Tom Tromey <tromey@redhat.com>
5287 * make-target-delegates (munge_type, write_debugmethod): New
5289 (debug_names): New global.
5290 ($TARGET_DEBUG_PRINTER): New global.
5291 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5293 Write debug methods. Generate init_debug_target.
5294 * target-debug.h: New file.
5295 * target-delegates.c: Rebuild.
5296 * target.c: Include target-debug.h.
5297 (debug_target): Hoist definition.
5298 (target_kill, target_get_section_table, target_memory_map)
5299 (target_flash_erase, target_flash_done, target_detach)
5300 (target_disconnect, target_wait, target_resume)
5301 (target_pass_signals, target_program_signals, target_follow_fork)
5302 (target_mourn_inferior, target_search_memory)
5303 (target_thread_address_space, target_close)
5304 (target_find_new_threads, target_core_of_thread)
5305 (target_verify_memory, target_insert_mask_watchpoint)
5306 (target_remove_mask_watchpoint): Remove targetdebug code.
5307 (debug_to_post_attach, debug_to_prepare_to_store)
5308 (debug_to_files_info, debug_to_insert_breakpoint)
5309 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5310 (debug_to_region_ok_for_hw_watchpoint)
5311 (debug_to_can_accel_watchpoint_condition)
5312 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5313 (debug_to_watchpoint_addr_within_range)
5314 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5315 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5316 (debug_to_terminal_init, debug_to_terminal_inferior)
5317 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5318 (debug_to_terminal_save_ours, debug_to_terminal_info)
5319 (debug_to_load, debug_to_post_startup_inferior)
5320 (debug_to_insert_fork_catchpoint)
5321 (debug_to_remove_fork_catchpoint)
5322 (debug_to_insert_vfork_catchpoint)
5323 (debug_to_remove_vfork_catchpoint)
5324 (debug_to_insert_exec_catchpoint)
5325 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5326 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5327 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5328 (setup_target_debug): Call init_debug_target.
5329 * target.h (TARGET_DEBUG_PRINTER): New macro.
5330 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5331 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5333 2014-07-24 Gary Benson <gbenson@redhat.com>
5335 * exceptions.h (throw_vfatal): Renamed to...
5336 (throw_vquit): New declaration.
5337 (throw_quit): Likewise.
5338 * exceptions.c (throw_vfatal): Renamed to...
5339 (throw_vquit): New function.
5340 (throw_quit): Likewise.
5341 (throw_error): Call throw_verror rather than throw_it.
5342 * utils.h (vfatal): Removed.
5344 * utils.c (vfatal): Removed.
5346 (internal_verror): Replaced call to fatal with call to throw_quit.
5347 (quit): Replaced calls to fatal with calls to throw_quit.
5349 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5351 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5354 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5356 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5357 less than zero in conditional expression.
5359 2014-07-23 Tom Tromey <tromey@redhat.com>
5361 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5362 ($INTRO_PART): Don't match whitespace.
5363 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5365 ($METHOD): Add $METHOD_TRAILER.
5367 (scan_target_h): New sub.
5368 Change main loop not to collect state.
5369 * target-delegates.c: Rebuild.
5371 2014-07-23 Gary Benson <gbenson@redhat.com>
5373 * cp-support.c (gdb_demangle): Fix build on systems without
5376 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5378 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5379 for reference entry value target data value.
5381 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5383 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5384 value_available_contents_eq.
5386 2014-07-22 Pedro Alves <palves@redhat.com>
5388 * value.c (allocate_optimized_out_value): Don't mark value as
5391 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5393 * MAINTAINERS (Write After Approval): Update my email address.
5395 2014-07-20 Doug Evans <dje@google.com>
5398 * remote.c (putpkt_binary): Add text to error message.
5400 2014-07-20 Yao Qi <yao@codesourcery.com>
5402 * eval.c: Remove "Chill" from comments.
5403 * gdbtypes.h: Likewise.
5404 * symtab.h: Likewise.
5406 2014-07-20 Yao Qi <yao@codesourcery.com>
5408 * std-operator.def: Update comments to TERNOP_SLICE.
5410 2014-07-20 Yao Qi <yao@codesourcery.com>
5412 * std-operator.def: Remove BINOP_RANGE.
5413 * breakpoint.c (watchpoint_exp_is_const): Update.
5414 * expprint.c (dump_subexp_body_standard): Likewise.
5415 * eval.c (init_array_element): Remove dead code.
5416 (evaluate_subexp_standard): Likewise.
5418 2014-07-20 Yao Qi <yao@codesourcery.com>
5420 * std-operator.def: Remove BINOP_IN.
5421 * breakpoint.c (watchpoint_exp_is_const): Update.
5422 * eval.c (evaluate_subexp_standard): Likewise.
5423 * expprint.c (dump_subexp_body_standard): Likewise.
5425 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5427 * microblaze-tdep.c (microblaze_register_names): Add
5428 the rshr and rslr register names.
5429 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5430 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5431 Use of tdesc_numbered_register. Use of
5432 microblaze_register_g_packet_guesses. Use of
5433 tdesc_use_registers. Use of set_gdbarch_register_type.
5434 (microblaze_register_g_packet_guesses): New.
5435 * microblaze-tdep.h (microblaze_reg_num): Add
5436 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5437 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5438 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5439 * features/microblaze-core.xml: New file.
5440 * features/microblaze-stack-protect.xml: New file.
5441 * features/microblaze-with-stack-protect.c: New file.
5442 * features/microblaze-with-stack-protect.xml: New file.
5443 * features/microblaze.xml: New file.
5444 * features/microblaze.c: New file.
5445 * features/Makefile (microblaze-with-stack-protect): Add
5446 microblaze-with-stack-protect microblaze and microblaze-expedite.
5447 * regformats/microblaze-with-stack-protect.dat: New file.
5448 * regformats/microblaze.dat: New file.
5449 * doc/gdb.texinfo (MicroBlaze Features): Added.
5451 2014-07-18 Tom Tromey <tromey@redhat.com>
5453 * exec.c (exec_ops): Now static.
5454 * exec.h (exec_ops): Don't declare.
5456 2014-07-18 Tom Tromey <tromey@redhat.com>
5458 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5459 to find_target_beneath.
5460 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5461 find_target_beneath.
5462 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5464 2014-07-18 Tom Tromey <tromey@redhat.com>
5467 * utils.c (quit): Use target_supports_terminal_ours.
5468 * target.h (target_supports_terminal_ours): Declare.
5469 * target.c (target_supports_delete_record): Don't check
5470 to_delete_record against NULL.
5471 (target_supports_terminal_ours): New function.
5473 2014-07-18 Tom Tromey <tromey@redhat.com>
5476 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5477 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5478 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5479 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5480 * windows-nat.c (windows_xfer_partial): Always delegate.
5481 * record-btrace.c (record_btrace_xfer_partial): Simplify
5483 (record_btrace_fetch_registers, record_btrace_store_registers)
5484 (record_btrace_prepare_to_store, record_btrace_resume)
5485 (record_btrace_wait, record_btrace_find_new_threads)
5486 (record_btrace_thread_alive): Likewise.
5487 * procfs.c (procfs_xfer_partial): Always delegate.
5488 * corelow.c (core_xfer_partial): Always delegate.
5489 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5491 2014-07-18 Tom Tromey <tromey@redhat.com>
5493 * exec.c (exec_make_note_section): Move earlier.
5495 2014-07-17 Doug Evans <dje@google.com>
5498 * maint.c (count_symtabs_and_blocks): Handle NULL
5499 current_program_space.
5500 (report_command_stats): Check global enabled flag in addition to
5501 recorded enabled flag.
5502 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5504 2014-07-16 Pedro Alves <palves@redhat.com>
5506 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5508 2014-07-16 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_delete_record>: Reformat
5513 2014-07-16 Tom Tromey <tromey@redhat.com>
5515 * target-delegates.c: Rebuild.
5517 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5519 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5520 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5521 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5522 (avr_pointer_to_address): Likewise.
5523 (avr_address_class_type_flags): New function.
5524 (avr_address_class_type_flags_to_name): Likewise.
5525 (avr_address_class_name_to_type_flags): Likewise.
5526 (avr_gdbarch_init): Set address_class_type_flags,
5527 address_class_type_flags_to_name and
5528 address_class_name_to_type_flags.
5530 2014-07-15 Pedro Alves <palves@redhat.com>
5532 * linux-nat.c (kill_callback): Save errno and work with saved
5535 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5537 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5539 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5541 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5542 breakpoint support correctly.
5544 2014-07-14 Pedro Alves <palves@redhat.com>
5546 * utils.c (prompt_for_continue): Call target_terminal_ours.
5548 2014-07-14 Pedro Alves <palves@redhat.com>
5550 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5551 catch_errors. Don't re-enable stdin or notify observers where,
5553 (fetch_inferior_event_wrapper): Delete.
5555 2014-07-14 Pedro Alves <palves@redhat.com>
5558 * top.c: Include "inf-loop.h".
5559 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5561 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5563 (gdb_readline_wrapper): Store whether the target is async, and
5566 2014-07-14 Pedro Alves <palves@redhat.com>
5569 * top.c (gdb_readline_wrapper_line): Tweak comment.
5570 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5571 the input handler callback.
5573 2014-07-14 Pedro Alves <palves@redhat.com>
5576 * main.c: Include event-top.h.
5577 (handle_command_errors): New function.
5578 (catch_command_errors, catch_command_errors_const): Use it.
5580 2014-07-14 Pedro Alves <palves@redhat.com>
5582 * exceptions.c (catch_command_errors, catch_command_errors_const):
5584 * exceptions.h (catch_command_errors_ftype)
5585 (catch_command_errors_const_ftype): Moved to main.c.
5586 (catch_command_errors, catch_command_errors_const): Delete
5588 * main.c (catch_command_errors_ftype)
5589 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5590 (catch_command_errors, catch_command_errors_const)): Moved here
5591 from exceptions.c and make static.
5593 2014-07-14 Pedro Alves <palves@redhat.com>
5595 * exceptions.c (print_any_exception): Delete.
5596 (catch_exceptions_with_msg): Use exception_print instead of
5597 print_any_exception.
5598 (catch_errors): Use exception_fprintf instead of
5599 print_any_exception.
5600 (catch_command_errors, catch_command_errors_const): Use
5601 exception_print instead of print_any_exception.
5603 2014-07-14 Pedro Alves <palves@redhat.com>
5605 * infcall.c (run_inferior_call): Set 'sync_execution' while
5606 running the inferior call.
5608 2014-07-14 Pedro Alves <palves@redhat.com>
5610 * value.c (value_contents_equal): Delete function.
5611 * value.h (value_contents_equal): Delete declaration.
5613 2014-07-14 Tom Tromey <tromey@redhat.com>
5616 * gdbtypes.c (is_dynamic_type_internal): New function, from
5618 (is_dynamic_type): Rewrite.
5619 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5620 (resolve_dynamic_struct): Likewise.
5621 (resolve_dynamic_type_internal): New function, from
5622 resolve_dynamic_type.
5623 (resolve_dynamic_type): Rewrite.
5625 2014-07-14 Tom Tromey <tromey@redhat.com>
5627 * target.c (target_require_runnable): Also check record_stratum.
5630 2014-07-11 Yao Qi <yao@codesourcery.com>
5632 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5633 thumb_instruction_restores_sp return true.
5635 2014-07-11 Yao Qi <yao@codesourcery.com>
5637 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5638 (thumb_in_function_epilogue_p): Call
5639 thumb_instruction_restores_sp.
5641 2014-07-11 Yao Qi <yao@codesourcery.com>
5643 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5645 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5647 2014-07-11 Gary Benson <gbenson@redhat.com>
5649 * amd64-linux-nat.c (gdbcore.h): Remove include.
5650 (regset.h): Likewise.
5651 (nat/linux-btrace.h): Likewise.
5652 (btrace.h): Likewise.
5653 (gdb_assert.h): Likewise.
5654 (string.h): Likewise.
5655 (sys/uio.h): Likewise.
5656 (sys/debugreg.h): Likewise.
5657 (sys/syscall.h): Likewise.
5658 (sys/procfs.h): Likewise.
5659 (sys/user.h): Likewise.
5660 (asm/ptrace.h): Likewise.
5661 (i386-nat.h): Likewise.
5662 * i386-linux-nat.c (i386-nat.h): Likewise.
5663 (regset.h): Likewise.
5664 (target.h): Likewise.
5665 (linux-nat.h): Likewise.
5666 (nat/linux-btrace.h): Likewise.
5667 (btrace.h): Likewise.
5668 (gdb_assert.h): Likewise.
5669 (string.h): Likewise.
5670 (sys/uio.h): Likewise.
5671 (sys/user.h): Likewise.
5672 (sys/procfs.h): Likewise.
5673 (sys/reg.h): Likewise.
5674 (sys/debugreg.h): Likewise.
5675 (ORIG_EAX): Remove definition.
5677 2014-07-11 Gary Benson <gbenson@redhat.com>
5679 * i386-linux-nat.h: New file.
5680 * x86-linux-nat.h: Likewise.
5681 * x86-linux-nat.c: Likewise.
5682 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5683 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5684 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5685 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5686 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5687 (PTRACE_SETREGSET): Likewise.
5688 (arch_lwp_info): Now in x86-linux-nat.c.
5689 (have_ptrace_getregset): Now in x86-linux-nat.h.
5690 (x86_linux_dr_get): Now in x86-linux-nat.c.
5691 (x86_linux_dr_set): Likewise.
5692 (x86_linux_dr_get_addr): Likewise.
5693 (x86_linux_dr_get_control): Likewise.
5694 (x86_linux_dr_get_status): Likewise.
5695 (update_debug_registers_callback): Likewise.
5696 (x86_linux_dr_set_control): Likewise.
5697 (x86_linux_dr_set_addr): Likewise.
5698 (x86_linux_prepare_to_resume): Likewise.
5699 (x86_linux_new_thread): Likewise.
5700 (x86_linux_new_fork): Likewise.
5701 (x86_linux_get_thread_area): Likewise.
5702 (super_post_startup_inferior): Likewise.
5703 (x86_linux_child_post_startup_inferior): Likewise.
5704 (AMD64_LINUX_USER64_CS): Likewise.
5705 (AMD64_LINUX_X32_DS): Likewise.
5706 (x86_linux_read_description): Likewise.
5707 (x86_linux_enable_btrace): Likewise.
5708 (x86_linux_disable_btrace): Likewise.
5709 (x86_linux_teardown_btrace): Likewise.
5710 (x86_linux_read_btrace): Likewise.
5711 (x86_linux_create_target): Likewise.
5712 (x86_linux_add_target): Likewise.
5713 * i386-linux-nat.c (x86-linux-nat.h): New include.
5714 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5715 (PTRACE_SETREGSET): Likewise.
5716 (arch_lwp_info): Now in x86-linux-nat.c.
5717 (have_ptrace_getregset): Now in x86-linux-nat.h.
5718 (x86_linux_dr_get): Now in x86-linux-nat.c.
5719 (x86_linux_dr_set): Likewise.
5720 (x86_linux_dr_get_addr): Likewise.
5721 (x86_linux_dr_get_control): Likewise.
5722 (x86_linux_dr_get_status): Likewise.
5723 (update_debug_registers_callback): Likewise.
5724 (x86_linux_dr_set_control): Likewise.
5725 (x86_linux_dr_set_addr): Likewise.
5726 (x86_linux_prepare_to_resume): Likewise.
5727 (x86_linux_new_thread): Likewise.
5728 (x86_linux_new_fork): Likewise.
5729 (x86_linux_get_thread_area): Likewise.
5730 (super_post_startup_inferior): Likewise.
5731 (x86_linux_child_post_startup_inferior): Likewise.
5732 (AMD64_LINUX_USER64_CS): Likewise.
5733 (AMD64_LINUX_X32_DS): Likewise.
5734 (x86_linux_read_description): Likewise.
5735 (x86_linux_enable_btrace): Likewise.
5736 (x86_linux_disable_btrace): Likewise.
5737 (x86_linux_teardown_btrace): Likewise.
5738 (x86_linux_read_btrace): Likewise.
5739 (x86_linux_create_target): Likewise.
5740 (x86_linux_add_target): Likewise.
5742 2014-07-11 Gary Benson <gbenson@redhat.com>
5744 * amd64-linux-nat.c: Comment and whitespace changes.
5745 * i386-linux-nat.c: Comment and whitespace changes.
5747 2014-07-11 Gary Benson <gbenson@redhat.com>
5749 * amd64-linux-nat.c (x86_linux_create_target): New function.
5750 (x86_linux_add_target): Likewise.
5751 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5752 * i386-linux-nat.c (x86_linux_create_target): New function.
5753 (x86_linux_add_target): Likewise.
5754 (_initialize_i386_linux_nat): Delegate to the above new functions.
5756 2014-07-11 Gary Benson <gbenson@redhat.com>
5758 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5759 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5760 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5761 (ps_get_thread_area): Delegate to the above.
5763 2014-07-11 Gary Benson <gbenson@redhat.com>
5765 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5766 x86_linux_read_description. All uses updated. amd64-specific
5767 code conditionalized. Conditionalized i386-specific code added.
5768 Redundant cast removed.
5769 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5770 x86_linux_read_description. All uses updated. i386-specific
5771 code conditionalized. Conditionalized amd64-specific code added.
5772 One sizeof replaced with the actual type it is describing.
5774 2014-07-11 Gary Benson <gbenson@redhat.com>
5776 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5777 x86_linux_dr_get. All uses updated.
5778 (amd64_linux_dr_set): Renamed to
5779 x86_linux_dr_set. All uses updated.
5780 (amd64_linux_dr_get_addr): Renamed to
5781 x86_linux_dr_get_addr. All uses updated.
5782 (amd64_linux_dr_get_control): Renamed to
5783 x86_linux_dr_get_control. All uses updated.
5784 (amd64_linux_dr_get_status): Renamed to
5785 x86_linux_dr_get_status. All uses updated.
5786 (amd64_linux_dr_set_control): Renamed to
5787 x86_linux_dr_set_control. All uses updated.
5788 (amd64_linux_dr_set_addr): Renamed to
5789 x86_linux_dr_set_addr. All uses updated.
5790 (amd64_linux_prepare_to_resume): Renamed to
5791 x86_linux_prepare_to_resume. All uses updated.
5792 (amd64_linux_new_thread): Renamed to
5793 x86_linux_new_thread. All uses updated.
5794 (amd64_linux_new_fork): Renamed to
5795 x86_linux_new_fork. All uses updated.
5796 (amd64_linux_child_post_startup_inferior): Renamed to
5797 x86_linux_child_post_startup_inferior. All uses updated.
5798 (amd64_linux_enable_btrace): Renamed to
5799 x86_linux_enable_btrace. All uses updated.
5800 (amd64_linux_disable_btrace): Renamed to
5801 x86_linux_disable_btrace. All uses updated.
5802 (amd64_linux_teardown_btrace): Renamed to
5803 x86_linux_teardown_btrace. All uses updated.
5804 (amd64_linux_read_btrace): Renamed to
5805 x86_linux_read_btrace. All uses updated.
5806 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5807 x86_linux_dr_get. All uses updated.
5808 (i386_linux_dr_set): Renamed to
5809 x86_linux_dr_set. All uses updated.
5810 (i386_linux_dr_get_addr): Renamed to
5811 x86_linux_dr_get_addr. All uses updated.
5812 (i386_linux_dr_get_control): Renamed to
5813 x86_linux_dr_get_control. All uses updated.
5814 (i386_linux_dr_get_status): Renamed to
5815 x86_linux_dr_get_status. All uses updated.
5816 (i386_linux_dr_set_control): Renamed to
5817 x86_linux_dr_set_control. All uses updated.
5818 (i386_linux_dr_set_addr): Renamed to
5819 x86_linux_dr_set_addr. All uses updated.
5820 (i386_linux_prepare_to_resume): Renamed to
5821 x86_linux_prepare_to_resume. All uses updated.
5822 (i386_linux_new_thread): Renamed to
5823 x86_linux_new_thread. All uses updated.
5824 (i386_linux_new_fork): Renamed to
5825 x86_linux_new_fork. All uses updated.
5826 (i386_linux_child_post_startup_inferior): Renamed to
5827 x86_linux_child_post_startup_inferior. All uses updated.
5828 (i386_linux_enable_btrace): Renamed to
5829 x86_linux_enable_btrace. All uses updated.
5830 (i386_linux_disable_btrace): Renamed to
5831 x86_linux_disable_btrace. All uses updated.
5832 (i386_linux_teardown_btrace): Renamed to
5833 x86_linux_teardown_btrace. All uses updated.
5834 (i386_linux_read_btrace): Renamed to
5835 x86_linux_read_btrace. All uses updated.
5837 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5839 * remote.c (extended_remote_post_attach): New function.
5840 (init_extended_remote_ops): Install it as to_post_attach method.
5842 2014-07-09 Pedro Alves <palves@redhat.com>
5844 * infcmd.c (attach_command_post_wait): Don't call
5845 target_terminal_inferior here.
5846 (attach_command): Call it here instead.
5848 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5850 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5852 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5853 from varobj.c, with additional checks.
5854 (c_varobj_ops): Fill in is_path_expr_parent field.
5855 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5856 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5858 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5860 (varobj_default_is_path_expr_parent): New function.
5861 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5862 (varobj_default_is_path_expr_parent): Declare new function.
5864 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5866 * infcmd.c (finish_backward): Turn internal error into normal error.
5868 2014-07-07 Pedro Alves <palves@redhat.com>
5871 * remote.c (async_handle_remote_sigint)
5872 (async_handle_remote_sigint_twice): Call
5873 gdb_call_async_signal_handler instead of
5874 mark_async_signal_handler.
5876 2014-07-07 Tom Tromey <tromey@redhat.com>
5878 * target-delegates.c: Rebuild.
5879 * target.c (target_info_record): Remove.
5880 * record.c (info_record_command): Unconditionally call
5882 * target.h (struct target_ops) <to_info_record>: Use
5883 TARGET_DEFAULT_IGNORE.
5884 (target_info_record): Remove.
5886 2014-07-07 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5889 TARGET_DEFAULT_NORETURN.
5890 * target.c (generic_tls_error): New function.
5891 (target_translate_tls_address): Don't search target stack.
5892 * target-delegates.c: Rebuild.
5893 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5895 * linux-thread-db.c (thread_db_get_thread_local_address):
5896 Unconditionally call beneath target.
5898 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5900 * cli/cli-logging.c (pop_output_files): Assign targerr to
5903 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5905 * MAINTAINERS (Write After Approval): Update my email address.
5907 2014-07-02 Gary Benson <gbenson@redhat.com>
5909 * proc-service.c (ps_xfer_memory): Update comment.
5910 (ps_pstop): Remove unused function.
5911 (ps_pcontinue): Likewise.
5912 (ps_lstop): Likewise.
5913 (ps_lcontinue): Likewise.
5914 (ps_lgetxregsize): Likewise.
5915 (ps_lgetxregs): Likewise.
5916 (ps_lsetxregs): Likewise.
5917 (ps_plog): Likewise.
5918 (ps_ptread): Likewise.
5919 (ps_ptwrite): Likewise.
5921 2014-07-01 Mark Wielaard <mjw@redhat.com>
5923 * dwarf2read.c (add_array_cv_type): New function.
5924 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5925 (read_tag_volatile_type): Likewise.
5927 2014-07-01 Tom Tromey <tromey@redhat.com>
5929 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5930 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5931 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5932 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5933 * command.h (cmd_cfunc_ftype): Move earlier.
5934 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5935 (add_com, add_info): Use cmd_cfunc_ftype.
5937 2014-06-30 Tom Tromey <tromey@redhat.com>
5939 * symtab.c (operator_chars): Make parameters and return type
5941 (file_matches): Make "files" const.
5942 (struct search_symbols_data) <files>: Now const.
5943 (search_symbols): Make "regexp" and "files" parameters const.
5945 (symtab_symbol_info): Remove cast.
5946 (rbreak_command): Update.
5947 * symtab.h (search_symbols): Update.
5949 2014-06-27 Yao Qi <yao@codesourcery.com>
5951 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5952 Change parameter type to 'struct thread_info *'. Caller
5954 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5956 * dummy-frame.c (struct dummy_frame_id): New.
5957 (dummy_frame_id_eq): New function.
5958 (struct dummy_frame) <id>: Change its type to 'struct
5960 (dummy_frame_push): Add parameter ptid and save it in
5962 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5964 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5966 (lookup_dummy_frame): Change parameter type to 'struct
5967 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5968 instead of frame_id_eq.
5969 (dummy_frame_pop): Add parameter ptid. Callers updated.
5970 Update comments. Compose dummy_frame_id and pass it to
5972 (dummy_frame_discard): Add parameter ptid.
5973 (dummy_frame_sniffer): Compose dummy_frame_id and call
5974 dummy_frame_id_eq instead of frame_id_eq.
5975 (fprint_dummy_frames): Print ptid.
5976 * dummy-frame.h: Remove comments.
5977 (dummy_frame_push): Add ptid in declaration.
5978 (dummy_frame_pop, dummy_frame_discard): Likewise.
5980 2014-06-26 Tom Tromey <tromey@redhat.com>
5982 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5983 * command.h (error_no_arg): Update.
5985 2014-06-26 Tom Tromey <tromey@redhat.com>
5987 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5988 (do_show_command): Make "arg" const.
5989 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5991 2014-06-26 Tom Tromey <tromey@redhat.com>
5993 * record-full.c (record_full_get_bookmark): Make "args" const.
5994 (record_full_goto_bookmark): Make "raw_bookmark" const.
5995 * record.c (record_goto): New function.
5996 (cmd_record_goto): Use it. Now static.
5997 * record.h (record_goto): Declare.
5998 (cmd_record_goto): Remove declaration.
5999 * target-delegates.c: Rebuild.
6000 * target.h (struct target_ops) <to_get_bookmark,
6001 to_goto_bookmark>: Make parameter const.
6003 2014-06-26 Tom Tromey <tromey@redhat.com>
6005 * defs.h (generic_load): Update.
6006 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6007 * monitor.c (monitor_load): Make "args" const.
6008 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6009 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6011 (mips_load): Make "file" const.
6012 * remote-sim.c (gdbsim_load): Make "args" const.
6013 * remote.c (remote_load): Make "name" const.
6014 * symfile.c (generic_load): Make "args" const.
6015 * target-delegates.c: Rebuild.
6016 * target.c (target_load): Make "arg" const.
6017 (debug_to_load): Make "args" const.
6018 * target.h (struct target_ops) <to_load>: Make parameter const.
6019 (target_load): Update.
6021 2014-06-26 Tom Tromey <tromey@redhat.com>
6024 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6025 (dwarf2_physname, read_partial_die)
6026 (guess_partial_die_structure_name, fixup_partial_die)
6027 (guess_full_die_structure_name, anonymous_struct_prefix)
6028 (dwarf2_name): Use per-BFD obstack.
6030 2014-06-26 Yao Qi <yao@codesourcery.com>
6032 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6033 dummyframe and this_id into inner block below.
6035 2014-06-26 Yao Qi <yao@codesourcery.com>
6037 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6038 with "signal_pass[0]" in the initialization of signal_pass.
6040 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6042 * record-btrace.c (record_btrace_generating_corefile)
6043 (record_btrace_prepare_to_generate_core)
6044 (record_btrace_done_generating_core): New.
6045 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6046 (record_btrace_store_registers, record_btrace_prepare_to_store):
6047 Forward request when generating a core file.
6048 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6049 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6050 to_done_generating_core.
6052 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6054 * target.h (target_ops) <to_prepare_to_generate_core>
6055 <to_done_generating_core>: New.
6056 (target_prepare_to_generate_core, target_done_generating_core): New.
6057 * target.c (target_prepare_to_generate_core)
6058 (target_done_generating_core): New.
6059 * target-delegates.c: Regenerate.
6060 * gcore.c: (write_gcore_file): Rename to ...
6061 (write_gcore_file_1): ...this.
6062 (write_gcore_file): Call target_prepare_to_generate_core
6063 and target_done_generating_core.
6065 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6067 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6068 * gcore.c (write_gcore_file): Free memory returned from
6069 make_corefile_notes.
6070 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6071 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6073 2014-06-24 Yao Qi <yao@codesourcery.com>
6075 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6076 (arm_linux_init_abi): Set skip_trampoline_code with
6077 gdbarch_skip_trampoline_code instead of
6078 find_solib_trampoline_target.
6080 2014-06-24 Yao Qi <yao@codesourcery.com>
6082 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6083 arm_skip_bx_reg returns non-zero.
6085 2014-06-24 Yao Qi <yao@codesourcery.com>
6087 * arm-tdep.c (arm_skip_bx_reg): New function.
6088 (arm_skip_stub): Call arm_skip_bx_reg.
6090 2014-06-23 Don Breazeal <donb@codesourcery.com>
6092 * MAINTAINERS: Add myself as write-after-approval maintainer.
6094 2014-06-23 Pedro Alves <palves@redhat.com>
6096 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6097 DR_CONTROL before setting DR0..DR3.
6098 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6099 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6100 bits of DR_CONTROL related to the debug register slot being
6101 disabled. If all slots are vacant, clear local slowdown as well,
6102 and assert DR_CONTROL is 0.
6104 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6106 * python/lib/gdb/command/xmethods.py
6107 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6108 current progspace only if the string "progspace" matches LOCUS_RE.
6110 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Fix --with-system-readline with readline-6.3 patch 5.
6113 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6114 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6117 2014-06-20 Tom Tromey <tromey@redhat.com>
6119 * dwarf2read.c (dw2_get_real_path): Use correct type in
6121 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6123 2014-06-20 Gary Benson <gbenson@redhat.com>
6125 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6126 * common/glibc_thread_db.h: Likewise.
6127 * common/i386-cpuid.h: Likewise.
6128 * common/i386-gcc-cpuid.h: Likewise.
6129 * common/linux-btrace.h: Likewise.
6130 * common/linux-osdata.h: Likewise.
6131 * common/linux-procfs.h: Likewise.
6132 * common/linux-ptrace.h: Likewise.
6133 * common/mips-linux-watch.h: Likewise.
6134 * common/linux-btrace.c: Moved to nat.
6135 * common/linux-osdata.c: Likewise.
6136 * common/linux-procfs.c: Likewise.
6137 * common/linux-ptrace.c: Likewise.
6138 * common/mips-linux-watch.c: Likewise.
6139 * nat/gdb_thread_db.h: Moved from common.
6140 * nat/glibc_thread_db.h: Likewise.
6141 * nat/i386-cpuid.h: Likewise.
6142 * nat/i386-gcc-cpuid.h: Likewise.
6143 * nat/linux-btrace.c: Likewise.
6144 * nat/linux-btrace.h: Likewise.
6145 * nat/linux-osdata.c: Likewise.
6146 * nat/linux-osdata.h: Likewise.
6147 * nat/linux-procfs.c: Likewise.
6148 * nat/linux-procfs.h: Likewise.
6149 * nat/linux-ptrace.c: Likewise.
6150 * nat/linux-ptrace.h: Likewise.
6151 * nat/mips-linux-watch.c: Likewise.
6152 * nat/mips-linux-watch.h: Likewise.
6153 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6154 (object file files): Reordered.
6155 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6156 of glibc_thread_db.h.
6158 2014-06-20 Gary Benson <gbenson@redhat.com>
6160 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6161 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6162 (i386_dr_low): Likewise.
6163 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6164 (i386_dr_low_set_addr): Likewise.
6165 (i386_dr_low_get_addr): Likewise.
6166 (i386_dr_low_can_set_control): Likewise.
6167 (i386_dr_low_set_control): Likewise.
6168 (i386_dr_low_get_control): Likewise.
6169 (i386_dr_low_get_status): Likewise.
6170 (i386_get_debug_register_length): Likewise.
6171 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6172 (i386_dr_low): Likewise.
6173 * nat/i386-dregs.c (i386-low.h): Remove include.
6174 (i386-nat.h): Likewise.
6175 (nat/i386-dregs.h): New include.
6176 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6177 (i386_dr_low_set_addr): Likewise.
6178 (i386_dr_low_get_addr): Likewise.
6179 (i386_dr_low_can_set_control): Likewise.
6180 (i386_dr_low_set_control): Likewise.
6181 (i386_dr_low_get_control): Likewise.
6182 (i386_dr_low_get_status): Likewise.
6183 (i386_get_debug_register_length): Likewise.
6184 (debug_hw_points): Likewise.
6186 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6188 * Makefile.in (SFILES): Add d-exp.y.
6189 (YYFILES): Add d-exp.c.
6190 (YYOBJ): Add d-exp.o.
6191 (local-maintainer-clean): Delete d-exp.c.
6192 * d-exp.y: New file.
6193 * d-lang.h (d_parse): New declaration.
6194 (d_error): New declaration.
6195 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6196 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6197 PREC_ORDER operators.
6198 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6200 2014-06-19 Yao Qi <yao@codesourcery.com>
6202 * gdbthread.h (any_running): Remove the declaration.
6203 * thread.c (any_running): Remove.
6205 2014-06-19 Yao Qi <yao@codesourcery.com>
6207 * gdbthread.h (struct thread_info) <state>: Change its type to
6208 'enum thread_state'. Update comments.
6210 2014-06-19 Pedro Alves <palves@redhat.com>
6212 * gdbthread.h (ALL_THREADS): Delete.
6213 (ALL_NON_EXITED_THREADS): New macro.
6214 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6215 instead of ALL_THREADS.
6216 * infrun.c (find_thread_needs_step_over)
6217 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6218 instead of ALL_THREADS.
6219 * record-btrace.c (record_btrace_open)
6220 (record_btrace_stop_recording, record_btrace_close)
6221 (record_btrace_is_replaying, record_btrace_resume)
6222 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6223 * remote.c (append_pending_thread_resumptions): Likewise.
6224 * thread.c (thread_apply_all_command): Likewise.
6226 2014-06-19 Gary Benson <gbenson@redhat.com>
6228 * i386-nat.c (i386_stopped_by_watchpoint):
6229 Use i386_dr_stopped_by_watchpoint.
6230 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6231 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6233 2014-06-19 Gary Benson <gbenson@redhat.com>
6235 * nat/i386-dregs.c: New file.
6236 * Makefile.in (i386-dregs.o): New rule.
6237 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6238 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6239 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6240 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6241 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6242 * config/i386/go32.mh (NATDEPFILES): Likewise.
6243 * config/i386/linux.mh (NATDEPFILES): Likewise.
6244 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6245 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6246 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6247 * i386-nat.h (debug_hw_points): New declaration.
6248 * i386-nat.c (breakpoint.h): Remove include.
6249 (command.h): Likewise.
6250 (target.h): Likewise.
6251 (gdb_assert.h): Likewise.
6252 (debug_hw_points): Made nonstatic.
6253 (debug_printf): Now in i386-dregs.c.
6254 (TARGET_HAS_DR_LEN_8): Likewise.
6255 (DR_CONTROL_SHIFT): Likewise.
6256 (DR_CONTROL_SIZE): Likewise.
6257 (DR_RW_EXECUTE): Likewise.
6258 (DR_RW_WRITE): Likewise.
6259 (DR_RW_READ): Likewise.
6260 (DR_RW_IORW): Likewise.
6261 (DR_LEN_1): Likewise.
6262 (DR_LEN_2): Likewise.
6263 (DR_LEN_4): Likewise.
6264 (DR_LEN_8): Likewise.
6265 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6266 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6267 (DR_ENABLE_SIZE): Likewise.
6268 (DR_LOCAL_SLOWDOWN): Likewise.
6269 (DR_GLOBAL_SLOWDOWN): Likewise.
6270 (DR_CONTROL_RESERVED): Likewise.
6271 (I386_DR_CONTROL_MASK): Likewise.
6272 (I386_DR_VACANT): Likewise.
6273 (I386_DR_LOCAL_ENABLE): Likewise.
6274 (I386_DR_GLOBAL_ENABLE): Likewise.
6275 (I386_DR_DISABLE): Likewise.
6276 (I386_DR_SET_RW_LEN): Likewise.
6277 (I386_DR_GET_RW_LEN): Likewise.
6278 (I386_DR_WATCH_HIT): Likewise.
6279 (i386_wp_op_t): Likewise.
6280 (i386_show_dr): Likewise.
6281 (i386_length_and_rw_bits): Likewise.
6282 (i386_insert_aligned_watchpoint): Likewise.
6283 (i386_remove_aligned_watchpoint): Likewise.
6284 (i386_handle_nonaligned_watchpoint): Likewise.
6285 (i386_update_inferior_debug_regs): Likewise.
6286 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6287 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6288 (i386_region_ok_for_watchpoint):
6289 Use i386_dr_region_ok_for_watchpoint.
6290 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6292 2014-06-19 Gary Benson <gbenson@redhat.com>
6294 * i386-nat.c (i386_insert_hw_breakpoint): Use
6295 i386_insert_watchpoint.
6296 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6298 2014-06-19 Gary Benson <gbenson@redhat.com>
6300 * i386-nat.c (i386_dr_show): Renamed to
6301 i386_show_dr and made static. All uses updated.
6302 (i386_dr_length_and_rw_bits): Renamed to
6303 i386_length_and_rw_bits and made static.
6305 (i386_dr_insert_aligned_watchpoint): Renamed to
6306 i386_insert_aligned_watchpoint and made static.
6308 (i386_dr_remove_aligned_watchpoint): Renamed to
6309 i386_remove_aligned_watchpoint and made static.
6311 (i386_dr_update_inferior_debug_regs): Renamed to
6312 i386_update_inferior_debug_regs and made static.
6314 * nat/i386-dregs.h (i386_dr_show): Removed.
6315 (i386_dr_length_and_rw_bits): Likewise.
6316 (i386_dr_insert_aligned_watchpoint): Likewise.
6317 (i386_dr_remove_aligned_watchpoint): Likewise.
6318 (i386_dr_update_inferior_debug_regs): Likewise.
6320 2014-06-19 Gary Benson <gbenson@redhat.com>
6322 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6323 * configure: Regenerate.
6324 * config.in: Likewise.
6325 * main.c (signal.h): New include.
6326 (setup_alternate_signal_stack): New function.
6327 (captured_main): Call the above.
6328 * cp-support.c (signal.h): New include.
6329 (catch_demangler_crashes): New flag.
6330 (SIGJMP_BUF): New define.
6331 (SIGSETJMP): Likewise.
6332 (SIGLONGJMP): Likewise.
6333 (gdb_demangle_jmp_buf): New static global.
6334 (gdb_demangle_attempt_core_dump): Likewise.
6335 (gdb_demangle_signal_handler): New function.
6336 (gdb_demangle): If catch_demangler_crashes is set, install the
6337 above signal handler before calling bfd_demangle, and restore
6338 the original signal handler afterwards. Display the offending
6339 symbol and call demangler_warning the first time a segmentation
6341 (_initialize_cp_support): New maint set/show command.
6343 2014-06-19 Gary Benson <gbenson@redhat.com>
6345 * utils.h (resource_limit_kind): New enum.
6346 (can_dump_core): New declaration.
6347 (warn_cant_dump_core): Likewise.
6348 (dump_core): Likewise.
6349 * utils.c (dump_core): Made nonstatic. Added new
6350 parameter "limit_kind".
6351 (can_dump_core): Made nonstatic. Moved printing code to...
6352 (warn_cant_dump_core): New function.
6353 (can_dump_core_warn): Likewise.
6354 (internal_vproblem): Replace calls to can_dump_core with
6355 calls to can_dump_core_warn. Supply new argument to each.
6357 2014-06-19 Gary Benson <gbenson@redhat.com>
6359 * utils.h (demangler_vwarning): New declaration.
6360 (demangler_warning): Likewise.
6361 * utils.c (struct internal_problem)
6362 <user_settable_should_quit>: New field.
6363 <user_settable_should_dump_core>: Likewise
6364 (internal_error_problem): Add values for above new fields.
6365 (internal_warning_problem): Likewise.
6366 (demangler_warning_problem): New static global.
6367 (demangler_vwarning): New function.
6368 (demangler_warning): Likewise.
6369 (add_internal_problem_command): Selectively add commands.
6370 (_initialize_utils): New internal problem command.
6371 * maint.c (maintenance_demangler_warning): New function.
6372 (_initialize_maint_cmds): New command.
6374 2014-06-18 Tom Tromey <tromey@redhat.com>
6376 * f-valprint.c (info_common_command_for_block): Update.
6377 * symtab.h (struct general_symbol_info) <common_block>: Now
6380 2014-06-18 Tom Tromey <tromey@redhat.com>
6382 * symtab.h (struct symtab) <blockvector>: Now const.
6383 * ada-lang.c (ada_add_global_exceptions): Update.
6384 * buildsym.c (augment_type_symtab): Update.
6385 * dwarf2read.c (dw2_lookup_symbol): Update.
6386 * jit.c (finalize_symtab): Update.
6387 * jv-lang.c (add_class_symtab_symbol): Update.
6388 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6390 * objfiles.c (objfile_relocate1): Update.
6391 * psymtab.c (lookup_symbol_aux_psymtabs)
6392 (maintenance_check_psymtabs): Update.
6393 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6395 * spu-tdep.c (spu_catch_start): Update.
6396 * symmisc.c (dump_symtab_1): Update.
6397 * symtab.c (lookup_global_symbol_from_objfile)
6398 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6399 (basic_lookup_transparent_type_quick)
6400 (basic_lookup_transparent_type, find_pc_sect_symtab)
6401 (find_pc_sect_line, search_symbols): Update.
6402 * block.c (find_block_in_blockvector): Make "bl" const.
6403 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6405 (blockvector_contains_pc): Make "bv" const.
6406 (block_for_pc_sect): Update.
6407 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6408 (blockvector_contains_pc): Update.
6409 * breakpoint.c (resolve_sal_pc): Update.
6410 * inline-frame.c (block_starting_point_at): Update.
6412 2014-06-18 Tom Tromey <tromey@redhat.com>
6414 * completer.c (complete_line): Make "line_buffer" const.
6415 * completer.h (complete_line): Update.
6417 2014-06-18 Tom Tromey <tromey@redhat.com>
6419 * symtab.c (add_macro_name): Remove unneeded cast.
6421 2014-06-18 Tom Tromey <tromey@redhat.com>
6423 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6424 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6426 2014-06-18 Tom Tromey <tromey@redhat.com>
6428 * probe.c (info_probes_for_ops): Make "arg" const.
6429 * probe.h (info_probes_for_ops): Update.
6431 2014-06-18 Tom Tromey <tromey@redhat.com>
6433 * varobj.c (varobj_create): Update.
6434 * valops.c (value_of_this): Update.
6435 * tracepoint.c (add_local_symbols, scope_info): Update.
6436 * symtab.h (struct general_symbol_info) <block>: Now const.
6437 * symtab.c (skip_prologue_sal)
6438 (default_make_symbol_completion_list_break_on)
6439 (skip_prologue_using_sal): Update.
6440 * stack.h (iterate_over_block_locals)
6441 (iterate_over_block_local_vars): Update.
6442 * stack.c (print_frame_args): Update.
6443 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6445 (get_selected_block): Make return type const.
6446 * python/py-frame.c (frapy_block): Update.
6447 * python/py-block.c (gdbpy_block_for_pc): Update.
6448 * p-exp.y (%union) <bval>: Now const.
6449 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6450 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6451 * m2-exp.y (%union) <bval>: Now const.
6452 * linespec.c (get_current_search_block): Make return type const.
6453 (create_sals_line_offset, find_label_symbols): Update.
6454 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6456 (block_starting_point_at): Make "block" const.
6457 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6458 (check_exception_resume): Update.
6459 * guile/scm-frame.c (gdbscm_frame_block): Update.
6460 * guile/scm-block.c (gdbscm_lookup_block): Update.
6461 * frame.h (get_frame_block): Update.
6462 (get_selected_block): Make return type const.
6463 * frame.c (frame_id_inner): Update.
6464 * f-valprint.c (info_common_command_for_block)
6465 (info_common_command): Update.
6466 * dwarf2loc.c (dwarf2_find_location_expression)
6467 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6468 (locexpr_describe_location_piece): Update.
6469 * c-exp.y (%union) <bval>: Now const.
6470 * breakpoint.c (resolve_sal_pc): Update.
6471 * blockframe.c (get_frame_block):Make return type const.
6472 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6473 (block_innermost_frame): Update.
6474 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6475 (block_for_pc, block_for_pc_sect): Update.
6476 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6478 (block_for_pc_sect, block_for_pc): Make return type const.
6479 * ax-gdb.c (gen_expr): Update.
6480 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6481 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6482 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6483 (ada_read_var_value): Update.
6484 * ada-exp.y (struct name_info) <block>: Now const.
6486 (block_lookup): Constify.
6488 2014-06-18 Gary Benson <gbenson@redhat.com>
6490 * nat/i386-dregs.h: New file.
6491 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6492 * i386-nat.h (i386-dregs.h): New include.
6493 (DR_FIRSTADDR): Now in i386-dregs.h.
6494 (DR_LASTADDR): Likewise.
6495 (DR_NADDR): Likewise.
6496 (DR_STATUS): Likewise.
6497 (DR_CONTROL): Likewise.
6498 (i386_debug_reg_state): Likewise.
6499 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6501 2014-06-18 Don Breazeal <donb@codesourcery.com>
6503 * breakpoint.c (set_longjmp_breakpoint): Call
6504 momentary_breakpoint_from_master with additional argument.
6505 (set_longjmp_breakpoint_for_call_dummy): Call
6506 momentary_breakpoint_from_master with additional argument.
6507 (set_std_terminate_breakpoint): Call
6508 momentary_breakpoint_from_master with additional argument.
6509 (momentary_breakpoint_from_master): Add argument to function
6510 definition and use it to initialize structure member flag.
6511 (clone_momentary_breakpoint): Call
6512 momentary_breakpoint_from_master with additional argument.
6513 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6514 member flags set in momentary_breakpoint_from_master.
6516 2014-06-18 Gary Benson <gbenson@redhat.com>
6518 * i386-nat.c (i386_show_dr): Renamed to
6519 i386_dr_show and made nonstatic. All uses updated.
6520 (i386_length_and_rw_bits): Renamed to
6521 i386_dr_length_and_rw_bits and made nonstatic.
6523 (i386_insert_aligned_watchpoint): Renamed to
6524 i386_dr_insert_aligned_watchpoint and made nonstatic.
6526 (i386_remove_aligned_watchpoint): Renamed to
6527 i386_dr_remove_aligned_watchpoint and made nonstatic.
6529 (i386_update_inferior_debug_regs): Renamed to
6530 i386_dr_update_inferior_debug_regs and made nonstatic.
6533 2014-06-18 Gary Benson <gbenson@redhat.com>
6535 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6536 (i386_dr_low_can_set_control): Likewise.
6537 (i386_dr_low_set_addr): Likewise.
6538 (i386_dr_low_set_control): Likewise.
6539 (i386_dr_low_get_addr): Likewise.
6540 (i386_dr_low_get_status): Likewise.
6541 (i386_dr_low_get_control): Likewise.
6542 (i386_insert_aligned_watchpoint): Use new macros.
6543 (i386_update_inferior_debug_regs): Likewise.
6544 (i386_stopped_data_address): Likewise.
6546 2014-06-18 Gary Benson <gbenson@redhat.com>
6548 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6549 New parameter. All uses updated.
6551 2014-06-18 Gary Benson <gbenson@redhat.com>
6553 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6556 2014-06-18 Gary Benson <gbenson@redhat.com>
6558 * i386-nat.c (debug_printf): New macro.
6559 (i386_get_debug_register_length): Likewise.
6560 (TARGET_HAS_DR_LEN_8): Use above macro.
6561 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6562 and printf_unfiltered. Use phex to format values.
6564 2014-06-18 Gary Benson <gbenson@redhat.com>
6566 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6569 2014-06-18 Gary Benson <gbenson@redhat.com>
6571 * i386-nat.c: Comment changes.
6573 2014-06-18 Gary Benson <gbenson@redhat.com>
6575 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6577 2014-06-18 Gary Benson <gbenson@redhat.com>
6579 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6580 (i386_insert_aligned_watchpoint): Likewise.
6581 (i386_remove_aligned_watchpoint): Likewise.
6582 (i386_handle_nonaligned_watchpoint): Likewise.
6584 2014-06-18 Gary Benson <gbenson@redhat.com>
6586 * i386-nat.c: Whitespace changes.
6588 2014-06-17 Samuel Bronson <naesten@gmail.com>
6590 * MAINTAINERS: Update Roland McGrath's email address.
6591 Thanks to Sergio Durigan Junior for pointing out that he left
6592 Red Hat a while ago, and giving me a current address.
6594 2014-06-17 Tom Tromey <tromey@redhat.com>
6596 * utils.h (savestring): Remove declaration.
6598 2014-06-17 Tom Tromey <tromey@redhat.com>
6600 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6602 2014-06-16 Keith Seitz <keiths@redhat.com>
6605 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6606 to update the varobj if inferior_ptid is null_ptid.
6608 2014-06-16 Tom Tromey <tromey@redhat.com>
6610 * target.h (struct target_ops) <to_info_proc>: Make parameter
6612 (target_info_proc): Update.
6613 * target.c (target_info_proc): Make "args" const.
6614 * procfs.c (procfs_info_proc): Update.
6615 * linux-tdep.c (linux_info_proc): Update.
6616 (linux_core_info_proc_mappings): Make "args" const.
6617 (linux_core_info_proc): Update.
6618 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6619 * gdbarch.c: Rebuild.
6620 * gdbarch.h: Rebuild.
6621 * corelow.c (core_info_proc): Update.
6623 2014-06-16 Tom Tromey <tromey@redhat.com>
6625 * target.h (struct target_ops) <to_disconnect>: Make parameter
6627 (target_disconnect): Update.
6628 * target.c (target_disconnect): Make "args" const.
6629 * target-delegates.c: Rebuild.
6630 * remote.c (remote_disconnect): Update.
6631 * record.h (record_disconnect): Update.
6632 * record.c (record_disconnect): Update.
6633 * inf-child.c (inf_child_disconnect): Update.
6635 2014-06-16 Tom Tromey <tromey@redhat.com>
6637 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6638 * target.c (debug_to_rcmd, default_rcmd): Update.
6639 * target-delegates.c: Rebuild.
6640 * remote.c (remote_rcmd): Update.
6641 * monitor.c (monitor_rcmd): Update.
6643 2014-06-16 Pedro Alves <palves@redhat.com>
6645 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6646 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6647 have OBJF_SHARED set.
6648 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6649 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6650 instead of OBJF_USERLOADED.
6651 * objfiles.h (OBJF_SHARED): Update comment.
6652 (userloaded_objfile_contains_address_p): Rename to ...
6653 (shared_objfile_contains_address_p): ... this, and update
6655 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6657 (remove_symbol_file_command): Skip objfiles that don't have
6660 2014-06-16 Tom Tromey <tromey@redhat.com>
6662 * minsyms.h (prim_record_minimal_symbol)
6663 (prim_record_minimal_symbol_and_info): Update comments.
6665 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6667 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6668 or --without-guile, according to how GDB was built.
6670 2014-06-13 Tom Tromey <tromey@redhat.com>
6672 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6674 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6676 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6678 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6679 help_list.Pass all_commands, not -1, to help_list.
6680 * cli/cli-dump.c (dump_command, append_command)
6681 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6682 (binary_dump_command, binary_append_command): Pass all_commands,
6683 not -1, to help_list.
6684 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6686 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6688 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6690 * top.c (set_history): Pass all_commands, not -1, to help_list.
6691 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6692 all_commands, not -1, to help_list.
6693 * symfile.c (overlay_command): Pass all_commands, not -1, to
6695 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6697 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6699 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6701 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6702 not -1, to help_list.
6703 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6704 not -1, to help_list.
6705 * maint.c (maintenance_command, maintenance_info_command)
6706 (maintenance_print_command, maintenance_set_cmd): Pass
6707 all_commands, not -1, to help_list.
6708 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6710 * language.c (set_check): Pass all_commands, not -1, to help_list.
6711 * infcmd.c (unset_command): Pass all_commands, not -1, to
6713 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6715 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6717 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6719 * breakpoint.c (save_command): Pass all_commands, not -1, to
6721 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6722 all_commands, not -1, to help_list.
6724 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6726 * regcache.c (struct register_to_invalidate): New structure.
6727 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6729 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6731 2014-06-12 Yao Qi <yao@codesourcery.com>
6733 * varobj.c (varobj_get_num_children): Call
6734 varobj_is_dynamic_p.
6735 (varobj_list_children): Likewise.
6736 (varobj_update): Likewise. Update comments.
6738 2014-06-12 Yao Qi <yao@codesourcery.com>
6740 * varobj.c (varobj_pretty_printed_p): Rename to ...
6741 (varobj_is_dynamic_p): ... this. New function.
6742 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6743 (varobj_is_dynamic_p): Declare.
6744 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6745 (mi_print_value_p, varobj_update_one): Likewise.
6747 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6748 Yao Qi <yao@codesourcery.com>
6750 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6751 (varobj_get_iterator): Wrap up code for pretty-printer by
6752 "#if HAVE_PYTHON" and "#endif".
6753 (update_dynamic_varobj_children): Likewise.
6755 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6756 Yao Qi <yao@codesourcery.com>
6758 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6759 gdb_python_initialized is false. Move some code from varobj.c.
6760 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6761 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6762 (struct varobj_item): Moved to varobj-iter.h".
6763 (varobj_clear_saved_item): New function.
6764 (update_dynamic_varobj_children): Move python-related code to
6766 (free_variable): Call varobj_clear_saved_item and
6769 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6770 Yao Qi <yao@codesourcery.com>
6772 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6773 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6774 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6775 (py-varobj.o): New rule.
6776 * python/py-varobj.c: New file.
6777 * python/python-internal.h (py_varobj_get_iterator): Declare.
6778 * varobj-iter.h: New file.
6779 * varobj.c: Include "varobj-iter.h"
6780 (struct varobj) <child_iter>: Change its type from "PyObject *"
6781 to "struct varobj_iter *".
6782 <saved_item>: Likewise.
6783 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6784 [HAVE_PYTHON] (varobj_get_iterator): New function.
6785 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6786 python-specific code to python/py-varobj.c.
6787 (install_visualizer): Call varobj_iter_delete instead of
6789 * varobj.h (varobj_ensure_python_env): Declare.
6791 2014-06-12 Yao Qi <yao@codesourcery.com>
6793 * varobj.c (struct varobj_item): New structure.
6794 (create_child_with_value): Update declaration.
6795 (varobj_add_child): Replace arguments 'name' and 'value' with
6796 'item'. All callers updated.
6797 (install_dynamic_child): Likewise.
6798 (update_dynamic_varobj_children): Likewise.
6799 (varobj_add_child): Likewise.
6800 (create_child_with_value): Likewise.
6802 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6804 * NEWS: Create a new section for the next release branch.
6805 Rename the section of the current branch, now that it has
6808 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6810 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6811 * version.in: Bump version to 7.8.50.DATE-cvs.
6813 2014-06-11 Pedro Alves <palves@redhat.com>
6816 * ser-mingw.c (net_windows_socket_check_pending): New function.
6817 (net_windows_select_thread): Ignore spurious wakeups. Use
6818 net_windows_socket_check_pending.
6819 (net_windows_wait_handle): Check for pending events with
6820 ioctlsocket, through net_windows_socket_check_pending, instead of
6821 checking the socket's event.
6823 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6825 * python/python-internal.h (gdb_PyObject_GetAttrString)
6826 (gdb_PyObject_HasAttrString): New inline function definitions.
6827 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6828 char * of the second argument to PyObject_GetAttrString.
6830 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6832 * serial.c (serial_write): Fix index of character to be printed
6833 in call to serial_logchar when serial debug traces are enabled.
6835 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6837 * gdbtypes (resolve_dynamic_range): Add function description.
6839 2014-06-09 Pedro Alves <palves@redhat.com>
6841 * linux-nat.c (linux_child_follow_fork): Initialize status with
6842 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6843 inner block. Only pass the signal to PTRACE_DETACH if in pass
6846 2014-06-09 Gary Benson <gbenson@redhat.com>
6848 * common/signals.c (gdb_signal_from_host): Reorder to separate
6849 the always-available ANSI-standard signals from the signals that
6851 (do_gdb_signal_to_host): Likewise.
6852 * proc-events.c (signal_table): Likewise.
6854 2014-06-08 Hui Zhu <hui@codesourcery.com>
6856 * common/linux-ptrace.c (linux_disable_event_reporting): New
6858 * common/linux-ptrace.h (linux_disable_event_reporting): New
6860 * linux-nat.c (linux_child_follow_fork): Do a single step before
6863 2014-06-07 Keith Seitz <keiths@redhat.com>
6867 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6868 from symbol_matches_domain in symtab.c. All local callers
6869 of symbol_matches_domain updated.
6870 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6871 search STRUCT_DOMAIN.
6872 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6873 independently. standard_lookup will do that automatically.
6874 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6875 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6876 (cp_lookup_symbol_in_namespace): Likewise.
6877 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6878 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6879 may return a STRUCT_DOMAIN match.
6880 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6881 * cp-support.c: Include language.h.
6882 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6884 * psymtab.c (match_partial_symbol): Compare the requested
6885 domain with the symbol's domain directly.
6886 (lookup_partial_symbol): Likewise.
6887 * symtab.c (lookup_symbol_in_language): Explain when/why
6888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6889 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6890 appropriate languages.
6891 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6892 and moved to ada-lang.c
6893 (lookup_block_symbol): Explain that this function only returns
6894 symbol matching the requested DOMAIN.
6895 Compare the requested domain with the symbol's domain directly.
6896 (iterate_over_symbols): Compare the requested domain with the
6897 symbol's domain directly.
6898 * symtab.h (symbol_matches_domain): Remove.
6900 2014-06-06 Doug Evans <xdje42@gmail.com>
6902 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6903 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6904 (gdbscm_guile_version_is_at_least): Declare.
6905 (gdbscm_scm_string_to_int): Declare.
6906 * guile/guile.c (gdbscm_guile_major_version): New global.
6907 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6908 (guile_datadir): New static global.
6909 (gdbscm_guile_data_directory): New function.
6910 (initialize_scheme_side): Update.
6911 (misc_guile_functions): Add guile-data-directory.
6912 (initialize_gdb_module): Fetch guile version number.
6913 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6914 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6915 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6916 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6918 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6919 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6920 * guile/scm-value.c (gdbscm_value_to_string): Only call
6921 scm_port_conversion_strategy if Guile version >= 2.0.6.
6923 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6925 * main.c (print_gdb_help): Add -q and --silent.
6927 2014-06-06 Gary Benson <gbenson@redhat.com>
6929 * common/signals.c: Remove preprocessor conditionals for
6930 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6931 SIGSEGV and SIGTERM.
6932 * proc-events.c: Likewise.
6934 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6936 * symfile.c (symfile_free_objfile): Remove restriction to
6938 * symfile-mem.c (symbol_file_add_from_memory): Call
6939 add_target_sections_of_objfile.
6941 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6943 * guile/scm-value.c (gdbscm_history_append_x): Use
6944 'vlscm_get_value_smob_arg_unsafe' instead of
6945 'vlscm_scm_to_value'.
6947 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6950 * utils.c (printchar): Don't escape at all if quoter is NUL.
6951 Update function documentation to clarify effect of parameter
6953 * remote.c (escape_buffer): Pass '\\' as the quoter to
6954 fputstrn_unfiltered.
6955 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6956 generate the output.
6957 (mi_solib_unloaded): Same.
6959 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6961 * development.sh: Delete.
6962 * Makefile.in (config.status): Adjust dependency on development.sh.
6963 * configure.ac: Adjust development.sh source call.
6964 * configure: Regenerate.
6966 2014-06-04 Doug Evans <xdje42@gmail.com>
6968 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6969 is_scheme_bkpt, spec.
6970 (bpscm_make_breakpoint_smob): Initialize new members.
6971 (gdbscm_create_breakpoint_x): Split into two ...
6972 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6973 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6974 (scheme_function breakpoint_functions): Update.
6975 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6976 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6977 register-breakpoint!.
6979 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6982 * mem-break.c (z_type_supported): Return zero if
6983 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6985 2014-06-04 Tom Tromey <tromey@redhat.com>
6987 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6988 value_from_contents_and_address_unresolved.
6989 (ada_template_to_fixed_record_type_1): Likewise.
6990 (ada_which_variant_applies): Likewise.
6991 * value.h (value_from_contents_and_address_unresolved): Declare.
6992 * value.c (value_from_contents_and_address_unresolved): New
6994 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6995 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6996 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6998 2014-06-04 Tom Tromey <tromey@redhat.com>
7000 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7002 2014-06-04 Tom Tromey <tromey@redhat.com>
7004 * procfs.c (procfs_attach): Make "args" const.
7005 * windows-nat.c (windows_attach): Make "args" const.
7006 * nto-procfs.c (procfs_attach): Make "args" const.
7007 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7008 * go32-nat.c (go32_attach): Make "args" const.
7009 * gnu-nat.c (gnu_attach): Make "args" const.
7010 * darwin-nat.c (darwin_attach): Make "args" const.
7011 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7012 * linux-nat.c (linux_nat_attach): Make "args" const.
7013 * remote.c (extended_remote_attach_1, extended_remote_attach):
7015 * target.h (struct target_ops) <to_attach>: Make "args" const.
7016 (find_default_attach): Likewise.
7017 * utils.c (parse_pid_to_attach): Make "args" const.
7018 * utils.h (parse_pid_to_attach): Update.
7020 2014-06-04 Tom Tromey <tromey@redhat.com>
7022 * target-delegates.c: Rebuild.
7023 * target.c (default_thread_address_space): New function.
7024 (target_thread_address_space): Simplify.
7025 * target.h (struct target_ops) <to_thread_address_space>: Add
7026 TARGET_DEFAULT_FUNC.
7028 2014-06-04 Doug Evans <xdje42@gmail.com>
7030 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7032 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7034 * record-btrace.c: Include event-loop.h and inf-loop.h.
7035 (record_btrace_resume_exec_dir)
7036 (record_btrace_async_inferior_event_handler)
7037 (record_btrace_handle_async_inferior_event): New.
7038 (record_btrace_open): Create async event handler.
7039 (record_btrace_close): Delete async event handler.
7040 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7041 Mark async event handler.
7042 (record_btrace_execution_direction): New.
7043 (init_record_btrace_ops): Initialize to_execution_direction.
7045 2014-06-03 Doug Evans <xdje42@gmail.com>
7047 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7048 (gdbscm_make_parameter): Ditto.
7050 2014-06-03 Doug Evans <dje@google.com>
7052 * exec.c (exec_close_1): Call clear_section_table instead of
7053 resize_section_table.
7054 (clear_section_table): New function.
7055 (resize_section_table): Make static. Rename arg num_added to
7057 * exec.h (clear_section_table): Declare.
7058 (resize_section_table): Delete.
7059 * progspace.c (release_program_space): Call clear_section_table
7060 instead of resize_section_table.
7062 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7064 * NEWS (Python Scripting): Add entry about the new xmethods
7067 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7069 * python/py-xmethods.c: New file.
7070 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7071 (objfpy_dealloc): XDECREF on the new xmethods field.
7072 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7074 (objfpy_get_xmethods): New function.
7075 (objfile_getset): New entry 'xmethods'.
7076 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7077 (pspy_dealloc): XDECREF on the new xmethods field.
7078 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7080 (pspy_get_xmethods): New function.
7081 (pspace_getset): New entry 'xmethods'.
7082 * python/python-internal.h: Add declarations for new functions.
7083 * python/python.c (_initialize_python): Invoke
7084 gdbpy_initialize_xmethods.
7085 * python/lib/gdb/__init__.py (xmethods): New
7087 * python/lib/gdb/xmethod.py: New file.
7088 * python/lib/gdb/command/xmethods.py: New file.
7090 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7092 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7093 best match method returned by find_overload_match is an xmethod.
7094 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7095 the best matching operator returned by find_overload_match is an
7097 * valops.c: #include "extension.h".
7098 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7099 Return void. The list of matching source methods is returned in
7100 "fn_list" and a vector of matching debug method workers is
7101 returned in "xm_worker_vec". Update all callers.
7102 (value_find_oload_method_list): Likewise.
7103 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7104 non-NULL, then the index of the best matching method in this
7105 vector is returned. Update all callers.
7106 (find_overload_match): Include xmethods while performing overload
7109 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7111 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7112 * extension-priv.h (struct extension_language_ops): Add the
7114 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7115 get_matching_xmethod_workers, get_xmethod_argtypes,
7116 invoke_xmethod, free_xmethod_worker,
7117 free_xmethod_worker_vec): New functions.
7118 * extension.h: #include "common/vec.h".
7119 New function declarations.
7120 (struct xmethod_worker): New struct.
7121 (VEC (xmethod_worker_ptr)): New vector type.
7122 (xmethod_worker_ptr): New typedef.
7123 (xmethod_worker_vec): Likewise.
7124 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7126 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7127 (struct builtin_type): New field "xmethod".
7128 * valarith.c (value_ptradd): Assert that the value argument is not
7130 * valops.c (value_must_coerce_to_target): Return 0 for
7131 lval_xcallable values.
7132 * value.c (struct value): New field XM_WORKER in the field
7134 (value_address, value_raw_address): Return 0 for lval_xcallable
7136 (set_value_address): Assert that the value is not an
7138 (value_free): Free the associated xmethod worker when freeing
7139 lval_xcallable values.
7140 (set_value_component_location): Assert that the WHOLE value is not
7142 (value_of_xmethod, call_xmethod): New functions.
7143 * value.h: Declare "struct xmethod_worker".
7144 Declare new functions value_of_xmethod, call_xmethod.
7146 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7147 Pedro Alves <palves@redhat.com>
7149 PR breakpoints/17000
7150 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7151 New function, extracted from software_breakpoint_inserted_here_p.
7152 (software_breakpoint_inserted_here_p): Replace factored out code
7153 by call to find_non_raw_software_breakpoint_inserted_here.
7154 (bp_target_info_copy_insertion_state): New function.
7155 (bkpt_insert_location): Handle the case of a single-step
7156 breakpoint already inserted at the same address.
7157 (bkpt_remove_location): Handle the case of a single-step
7158 breakpoint still inserted at the same address.
7159 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7160 breakpoint already inserted at the same address.
7161 (deprecated_remove_raw_breakpoint): Handle the case of a
7162 non-raw breakpoint still inserted at the same address.
7163 (find_single_step_breakpoint): New function, extracted from
7164 single_step_breakpoint_inserted_here_p.
7165 (find_single_step_breakpoint): New function,
7166 factored out from single_step_breakpoint_inserted_here_p.
7167 (single_step_breakpoint_inserted_here_p): Reimplement.
7169 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7171 Pushed by Joel Brobecker <brobecker@adacore.com>
7172 * source.c (show_substitute_path_command): Fix display of matching
7175 2014-06-03 Gary Benson <gbenson@redhat.com>
7177 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7179 2014-06-02 Doug Evans <xdje42@gmail.com>
7181 Add parameter support for Guile.
7182 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7183 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7184 (scm-param.o): New rule.
7185 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7186 (gdbscm_misc_error): Declare.
7187 (gdbscm_canonicalize_command_name): Declare.
7188 (gdbscm_scm_to_host_string): Declare.
7189 (gdbscm_scm_from_host_string): Declare.
7190 (gdbscm_initialize_parameters): Declare.
7191 * guile/guile.c (initialize_gdb_module): Call
7192 gdbscm_initialize_parameters.
7193 * guile/lib/gdb.scm: Export parameter symbols.
7194 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7195 cmdscm_canonicalize_name and made public. All callers updated.
7196 * guile/scm-exception.c (gdbscm_misc_error): New function.
7197 * guile/scm-param.c: New file.
7198 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7199 (gdbscm_scm_to_host_string): New function.
7200 (gdbscm_scm_from_host_string): New function.
7201 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7203 2014-06-02 Doug Evans <xdje42@gmail.com>
7205 Add command support for Guile.
7206 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7207 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7208 (scm-cmd.o): New rule.
7209 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7210 (gdbscm_user_error_p): Declare.
7211 (gdbscm_parse_command_name): Declare.
7212 (gdbscm_valid_command_class_p): Declare.
7213 (gdbscm_initialize_commands): Declare.
7214 * guile/guile.c (initialize_gdb_module): Call
7215 gdbscm_initialize_commands.
7216 * guile/lib/gdb.scm: Export command symbols.
7217 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7218 (throw-user-error): New function.
7219 * guile/scm-cmd.c: New file.
7220 * guile/scm-exception.c (user_error_symbol): New static global.
7221 (gdbscm_user_error_p): New function.
7222 (gdbscm_initialize_exceptions): Set user_error_symbol.
7223 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7225 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7227 * top.c (command_loop): Handle comments here...
7228 (command_line_input): ... not here.
7230 2014-06-02 Doug Evans <xdje42@gmail.com>
7232 Add progspace support for Guile.
7233 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7234 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7235 (scm-progspace.o): New rule.
7236 * guile/guile-internal.h (pspace_smob): New typedef.
7237 (psscm_pspace_smob_pretty_printers): Declare.
7238 (psscm_pspace_smob_from_pspace): Declare.
7239 (psscm_scm_from_pspace): Declare.
7240 * guile/guile.c (initialize_gdb_module): Call
7241 gdbscm_initialize_pspaces.
7242 * guile/lib/gdb.scm: Export progspace symbols.
7243 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7245 (append-pretty-printer!): Ditto.
7246 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7248 * guile/scm-progspace.c: New file.
7250 2014-06-03 Alan Modra <amodra@gmail.com>
7252 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7253 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7255 2014-06-02 Doug Evans <dje@google.com>
7257 Add support for skeletonless type units.
7258 * dwarf2read.c (struct dwarf2_per_objfile): New member
7259 n_allocated_type_units.
7260 (struct dwarf2_per_objfile) <tu_stats>: New member
7261 nr_all_type_units_reallocs.
7262 (create_signatured_type_table_from_index): Initialize
7263 n_allocated_type_units
7264 (create_all_type_units): Ditto.
7265 (add_type_unit): Move up in file. New arg slot.
7266 All callers updated. Increase space for all_type_units more
7268 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7269 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7270 (lookup_dwp_signatured_type): Ditto.
7271 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7272 All callers updated.
7273 (build_type_psymtabs_1): Leave type_unit_groups as
7274 NULL if no TUs present.
7275 (print_tu_stats): New function.
7276 (process_skeletonless_type_unit): New function.
7277 (process_dwo_file_for_skeletonless_type_units): New
7279 (process_skeletonless_type_units): New function.
7280 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7281 Call print tu_stats if debugging enabled.
7283 2014-06-02 Pedro Alves <palves@redhat.com>
7285 * breakpoint.c (build_target_command_list): Don't build a command
7286 list if we have any duplicate location that isn't a dprintf.
7288 2014-06-02 Pedro Alves <palves@redhat.com>
7290 * breakpoint.c (dprintf_breakpoint_hit): New function.
7291 (initialize_breakpoint_ops): Install it as dprintf's
7292 breakpoint_hit method.
7294 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7296 * source.c (substitute_path_rule_matches): Simplify using
7297 filename_ncmp instead of FILENAME_CMP.
7299 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7301 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7303 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7305 * configure.ac: When Guile is available, check for the
7306 availability of 'scm_new_smob'.
7307 * configure, config.h.in: Regenerate.
7308 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7311 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7313 * frame.c (struct frame_info): Add stop_string field.
7314 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7315 (get_prev_frame_always): Old content moved into
7316 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7317 TRY_CATCH, handle MEMORY_ERROR exceptions.
7318 (frame_stop_reason_string): New function definition.
7319 * frame.h (unwind_stop_reason_to_string): Extend comment to
7320 mention frame_stop_reason_string.
7321 (frame_stop_reason_string): New function declaration.
7322 * stack.c (frame_info): Switch to frame_stop_reason_string.
7323 (backtrace_command_1): Switch to frame_stop_reason_string.
7324 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7325 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7326 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7328 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7330 * frame.c (frame_stop_reason_string): Rename to ...
7331 (unwind_stop_reason_to_string): this.
7332 * frame.h (frame_stop_reason_string): Rename to ...
7333 (unwind_stop_reason_to_string): this.
7334 * stack.c (frame_info): Update call to frame_stop_reason_string.
7335 (backtrace_command_1): Likewise.
7336 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7337 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7339 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7341 * frame.c (remove_prev_frame): New function.
7342 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7345 2014-05-29 Pedro Alves <palves@redhat.com>
7347 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7348 and make it const. When a single-step decays to a continue,
7349 clear 'step', not 'hw_step'. Pass whether the caller wanted
7350 to step to user_visible_resume_ptid, not what we ask the
7353 2014-05-29 Pedro Alves <palves@redhat.com>
7355 * infrun.c (process_event_stop_test, handle_step_into_function)
7356 (handle_step_into_function_backward): Adjust.
7357 Don't set the even thread's stop_step and call stop_waiting before
7358 calling end_stepping_range. Instead do that ...
7359 (end_stepping_range): ... here. Take an ecs pointer parameter.
7361 2014-05-29 Pedro Alves <palves@redhat.com>
7363 * infrun.c (stop_stepping): Rename to ...
7364 (stop_waiting): ... this.
7365 (proceed): Update comment.
7366 (process_event_stop_test, handle_inferior_event)
7367 (handle_signal_stop, handle_step_into_function)
7368 (handle_step_into_function_backward): Update.
7370 2014-05-29 Pedro Alves <palves@redhat.com>
7372 * infcall.c (run_inferior_call): Don't check whether the current
7373 thread is running after the proceed call.
7375 2014-05-29 Pedro Alves <palves@redhat.com>
7376 Tom Tromey <tromey@redhat.com>
7378 * NEWS: Mention "maint set target-async", "set mi-async", and that
7379 background execution commands are now always available.
7380 * target.h (target_async_permitted): Update comment.
7381 * target.c (target_async_permitted, target_async_permitted_1):
7383 (set_target_async_command): Rename to ...
7384 (maint_set_target_async_command): ... this.
7385 (show_target_async_command): Rename to ...
7386 (maint_show_target_async_command): ... this.
7387 (_initialize_target): Adjust.
7388 * infcmd.c (prepare_execution_command): Make extern.
7389 * inferior.h (prepare_execution_command): Declare.
7390 * infrun.c (set_observer_mode): Leave target async alone.
7391 * mi/mi-interp.c (mi_interpreter_init): Install
7392 mi_on_sync_execution_done as sync_execution_done observer.
7393 (mi_on_sync_execution_done): New function.
7394 (mi_execute_command_input_handler): Don't print the prompt if we
7395 just started a synchronous command with an async target.
7396 (mi_on_resume): Check sync_execution before printing prompt.
7397 * mi/mi-main.h (mi_async_p): Declare.
7398 * mi/mi-main.c: Include gdbcmd.h.
7399 (mi_async_p): New function.
7400 (mi_async, mi_async_1): New globals.
7401 (set_mi_async_command, show_mi_async_command, mi_async): New
7403 (exec_continue): Call prepare_execution_command.
7404 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7405 (mi_execute_async_cli_command): Use mi_async_p.
7406 (_initialize_mi_main): Install "set mi-async". Make
7407 "target-async" a deprecated alias.
7409 2014-05-29 Pedro Alves <palves@redhat.com>
7411 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7412 (_initialize_cli_interp): Adjust.
7413 * event-loop.c: Include "observer.h".
7414 (start_event_loop): Notify 'command_error' observers instead of
7415 calling display_gdb_prompt. Remove FIXME comment.
7416 * event-top.c (display_gdb_prompt): Remove call into the
7418 * inf-loop.c: Include "observer.h".
7419 (inferior_event_handler): Notify 'command_error' observers instead
7420 of calling display_gdb_prompt.
7421 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7422 observers instead of calling display_gdb_prompt.
7423 * interps.c (interp_set): Don't call display_gdb_prompt.
7424 (current_interp_display_prompt_p): Delete.
7425 * interps.h (interp_prompt_p): Delete declaration.
7426 (interp_prompt_p_ftype): Delete.
7427 (struct interp_procs) <prompt_proc_p>: Delete field.
7428 (current_interp_display_prompt_p): Delete declaration.
7429 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7430 (_initialize_mi_interp): Adjust.
7431 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7432 'command_error' observers.
7433 (tui_on_sync_execution_done, tui_on_command_error): New
7435 (tui_display_prompt_p): Delete.
7436 (_initialize_tui_interp): Adjust.
7438 2014-05-29 Pedro Alves <palves@redhat.com>
7441 * cli/cli-interp.c: Include infrun.h and observer.h.
7442 (cli_uiout, cli_interp): New globals.
7443 (cli_on_signal_received, cli_on_end_stepping_range)
7444 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7446 (cli_interpreter_init): Install them as 'end_stepping_range',
7447 'signal_received' 'signal_exited', 'exited' and 'no_history'
7449 (_initialize_cli_interp): Remove cli_interp local.
7450 * infrun.c (handle_inferior_event): Call the several stop reason
7451 observers instead of printing the stop reason directly.
7452 (end_stepping_range): New function.
7453 (print_end_stepping_range_reason, print_signal_exited_reason)
7454 (print_exited_reason, print_signal_received_reason)
7455 (print_no_history_reason): Make static, and add an uiout
7456 parameter. Print to that instead of to CURRENT_UIOUT.
7457 * infrun.h (print_end_stepping_range_reason)
7458 (print_signal_exited_reason, print_exited_reason)
7459 (print_signal_received_reason print_no_history_reason): New
7461 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7463 <cli_uiout>: New field.
7464 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7465 uiout for CLI output. Install 'signal_received',
7466 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7468 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7469 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7470 (mi_on_no_history): New functions.
7471 (ui_out_free_cleanup): Delete function.
7472 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7473 instead use the one already stored in the MI interpreter data.
7474 (mi_ui_out): Adjust.
7475 * tui/tui-interp.c: Include infrun.h and observer.h.
7476 (tui_interp): New global.
7477 (tui_on_signal_received, tui_on_end_stepping_range)
7478 (tui_on_signal_exited, tui_on_exited)
7479 (tui_on_no_history): New functions.
7480 (tui_init): Install them as 'end_stepping_range',
7481 'signal_received' 'signal_exited', 'exited' and 'no_history'
7483 (_initialize_tui_interp): Delete tui_interp local.
7485 2014-05-29 Pedro Alves <palves@redhat.com>
7488 * linux-nat.c (linux_nat_resume_callback): Rename the second
7489 parameter to 'except'. Skip LP if it points to EXCEPT.
7490 (linux_nat_resume): Don't mark the event lwp as not stopped
7491 before resuming sibling lwps. Instead ask
7492 linux_nat_resume_callback to skip the event lwp. Mark it as not
7493 stopped after actually resuming it.
7494 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7496 (wait_lwp): Mark the lwp as stopped here.
7497 (stop_wait_callback): Mark the lwp as not stopped right after
7498 resuming it. Don't mark lwps as stopped here.
7499 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7500 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7502 2014-05-29 Pedro Alves <palves@redhat.com>
7505 * infrun.c (resume): Determine how much to resume depending on
7506 whether the caller wanted a step, not whether we can hardware step
7507 the target. Mark all threads that we intend to run as running,
7508 unless we're calling an inferior function.
7509 (normal_stop): If the thread is running an infcall, don't finish
7511 * target.c (target_resume): Don't mark threads as running here.
7513 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7515 * serial.c (_initialize_serial): Remove support for
7516 the "set remotebaud" and "show remotebaud" commands.
7517 * NEWS: Add entry documenting the removal of that command.
7519 2014-05-28 Yao Qi <yao@codesourcery.com>
7521 * charset.c: Fix typo in comments.
7523 2014-05-27 Gary Benson <gbenson@redhat.com>
7525 * utils.c (internal_vproblem): Prompt for a bug report.
7527 2014-05-26 Andy Wingo <wingo@igalia.com>
7529 * guile/scm-arch.c (arscm_mark_arch_smob):
7530 * guile/scm-block.c (bkscm_mark_block_smob)
7531 (bkscm_mark_block_syms_progress_smob):
7532 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7533 * guile/scm-exception.c (exscm_mark_exception_smob):
7534 * guile/scm-frame.c (frscm_mark_frame_smob):
7535 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7536 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7537 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7538 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7539 (ppscm_mark_pretty_printer_worker_smob):
7540 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7541 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7542 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7543 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7545 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7548 2014-05-26 Andy Wingo <wingo@igalia.com>
7549 Doug Evans <xdje42@gmail.com>
7551 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7552 empty_base_class. All uses updated.
7553 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7554 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7556 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7557 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7558 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7559 (gdbscm_gsmob_has_property_p, add_property_name)
7560 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7561 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7562 (gdb-object-has-property?, gdb-object-properties): Remove.
7563 (gdb-object-kind): Renamed from gsmob-kind.
7565 2014-05-26 Andy Wingo <wingo@igalia.com>
7567 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7568 * configure: Regenerate.
7570 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7572 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7574 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7576 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7577 (replay_memory_access_read_only, replay_memory_access_read_write)
7578 (replay_memory_access_types, replay_memory_access)
7579 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7580 (cmd_set_record_btrace, cmd_show_record_btrace)
7581 (cmd_show_replay_memory_access): New.
7582 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7583 (record_btrace_remove_breakpoint): Replace
7584 record_btrace_allow_memory_access with replay_memory_access.
7585 (_initialize_record_btrace): Add commands.
7586 * NEWS: Announce it.
7588 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7590 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7592 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7594 * MAINTAINERS (Write After Approval): Move self back from
7597 2014-05-22 Pedro Alves <palves@redhat.com>
7599 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7600 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7601 (disable_randomization, enum exec_direction_kind)
7602 (execution_direction, stop_registers, start_remote)
7603 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7604 (wait_for_inferior, normal_stop, get_last_target_status)
7605 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7606 (insert_step_resume_breakpoint_at_sal)
7607 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7608 (set_step_info, print_stop_event, signal_stop_state)
7609 (signal_print_state, signal_pass_state, signal_stop_update)
7610 (signal_print_update, signal_pass_update)
7611 (update_signals_program_target, clear_exit_convenience_vars)
7612 (displaced_step_dump_bytes, update_observer_mode)
7613 (signal_catch_update, gdb_signal_from_command): Move
7615 * infrun.h: ... to this new file.
7616 * amd64-tdep.c: Include infrun.h.
7617 * annotate.c: Include infrun.h.
7618 * arch-utils.c: Include infrun.h.
7619 * arm-linux-tdep.c: Include infrun.h.
7620 * arm-tdep.c: Include infrun.h.
7621 * break-catch-sig.c: Include infrun.h.
7622 * breakpoint.c: Include infrun.h.
7623 * common/agent.c: Include infrun.h instead of inferior.h.
7624 * corelow.c: Include infrun.h.
7625 * event-top.c: Include infrun.h.
7626 * go32-nat.c: Include infrun.h.
7627 * i386-tdep.c: Include infrun.h.
7628 * inf-loop.c: Include infrun.h.
7629 * infcall.c: Include infrun.h.
7630 * infcmd.c: Include infrun.h.
7631 * infrun.c: Include infrun.h.
7632 * linux-fork.c: Include infrun.h.
7633 * linux-nat.c: Include infrun.h.
7634 * linux-thread-db.c: Include infrun.h.
7635 * monitor.c: Include infrun.h.
7636 * nto-tdep.c: Include infrun.h.
7637 * procfs.c: Include infrun.h.
7638 * record-btrace.c: Include infrun.h.
7639 * record-full.c: Include infrun.h.
7640 * remote-m32r-sdi.c: Include infrun.h.
7641 * remote-mips.c: Include infrun.h.
7642 * remote-notif.c: Include infrun.h.
7643 * remote-sim.c: Include infrun.h.
7644 * remote.c: Include infrun.h.
7645 * reverse.c: Include infrun.h.
7646 * rs6000-tdep.c: Include infrun.h.
7647 * s390-linux-tdep.c: Include infrun.h.
7648 * solib-irix.c: Include infrun.h.
7649 * solib-osf.c: Include infrun.h.
7650 * solib-svr4.c: Include infrun.h.
7651 * target.c: Include infrun.h.
7652 * top.c: Include infrun.h.
7653 * windows-nat.c: Include infrun.h.
7654 * mi/mi-interp.c: Include infrun.h.
7655 * mi/mi-main.c: Include infrun.h.
7656 * python/py-threadevent.c: Include infrun.h.
7658 2014-05-22 Pedro Alves <palves@redhat.com>
7660 * infrun.c (handle_inferior_event): Store the exit code for
7661 --return-child-result here, instead of ...
7662 (print_exited_reason): ... here.
7664 2014-05-21 Pedro Alves <palves@redhat.com>
7667 * gdbthread.h (struct thread_control_state): New field
7669 * infrun.c (follow_fork): Copy the new thread control field to the
7671 (clear_proceed_status_thread): Clear the new thread control field.
7672 (proceed): Set the new thread control field.
7673 * interps.h (command_interp): Declare.
7674 * interps.c (command_interpreter): New global.
7675 (command_interp): New function.
7676 (interp_exec): Set `command_interpreter' while here.
7677 * cli-out.c (cli_uiout_dtor): New function.
7678 (cli_ui_out_impl): Install it.
7679 * mi/mi-interp.c: Include cli-out.h.
7680 (mi_cmd_interpreter_exec): Add comment.
7681 (restore_current_uiout_cleanup): New function.
7682 (ui_out_free_cleanup): New function.
7683 (mi_on_normal_stop): If finishing an execution command started by
7684 a CLI command, or any kind of breakpoint-like event triggered,
7685 print the stop event to the output (CLI) stream.
7686 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7688 2014-05-21 Pedro Alves <palves@redhat.com>
7690 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7691 current source line having changed.
7692 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7693 * infrun.c (normal_stop): Adjust call to
7694 set_current_sal_from_frame.
7695 * source.c (clear_lines_listed_range): New function.
7696 (set_current_source_symtab_and_line, identify_source_line): Clear
7697 the lines listed range.
7698 (line_info): Handle the first "info line" after the current source
7699 line having changed.
7700 * stack.c (print_stack_frame): Remove center handling.
7701 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7704 2014-05-21 Pedro Alves <palves@redhat.com>
7706 * inf-child.c (inf_child_mourn_inferior): New function.
7707 * inf-child.h (inf_child_mourn_inferior): New declaration.
7708 * darwin-nat.c (darwin_mourn_inferior): Use
7709 inf_child_mourn_inferior.
7710 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7711 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7712 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7713 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7714 * windows-nat.c (windows_mourn_inferior): Likewise.
7716 2014-05-21 Doug Evans <xdje42@gmail.com>
7718 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7720 2014-05-21 Doug Evans <xdje42@gmail.com>
7722 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7723 (gdbscm_out_of_range_error): Ditto.
7724 (gdbscm_memory_error): Ditto.
7725 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7726 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7727 (gdbscm_out_of_range_error): Update.
7728 (gdbscm_memory_error): Update.
7729 (gdbscm_scm_to_target_string_unsafe): Delete.
7731 2014-05-21 Pedro Alves <palves@redhat.com>
7733 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7735 (inf_child_open_target): New function.
7736 (inf_child_open): Use inf_child_open_target to push the target
7737 instead of erroring out.
7738 (inf_child_disconnect, inf_child_close)
7739 (inf_child_maybe_unpush_target): New functions.
7740 (inf_child_target): Install inf_child_disconnect and
7741 inf_child_close. Store a pointer to the returned object.
7742 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7744 * target.c (auto_connect_native_target): New global.
7745 (show_default_run_target): New function.
7746 (find_default_run_target): Return NULL if automatically connecting
7747 to the native target is disabled.
7748 (_initialize_target): Install set/show auto-connect-native-target.
7749 * NEWS: Mention "set auto-connect-native-target", and "target
7751 * linux-nat.c (super_close): New global.
7752 (linux_nat_close): Call super_close.
7753 (linux_nat_add_target): Store a pointer to the base class's
7755 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7756 inf_child_maybe_unpush.
7757 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7759 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7760 the inferior. Use inf_child_maybe_unpush_target.
7761 (inf_ttrace_attach): Don't push the target if it is already
7763 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7764 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7765 after mourning the inferior. Use inf_child_maybe_unpush_target.
7766 (darwin_attach_pid): Don't push the target if it is already
7768 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7769 mourning the inferior. Use inf_child_maybe_unpush_target.
7770 (gnu_detach): Use inf_child_maybe_unpush_target.
7771 * go32-nat.c (go32_create_inferior): Don't push the target if it
7773 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7774 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7775 (procfs_open): Rename to ...
7776 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7777 comments. Can target_preopen before changing node. Call
7778 inf_child_open_target to push the target explicitly.
7779 (procfs_attach): Don't push the target if it is already pushed.
7780 (procfs_detach): Use inf_child_maybe_unpush_target.
7781 (procfs_create_inferior): Don't push the target if it is already
7783 (nto_native_ops): New global.
7784 (procfs_open): Reimplement.
7785 (procfs_native_open): New function.
7786 (init_procfs_targets): Install procfs_native_open as to_open of
7787 "target native". Store a pointer to the "native" target in
7789 * procfs.c (procfs_attach): Don't push the target if it is already
7791 (procfs_detach): Use inf_child_maybe_unpush_target.
7792 (procfs_mourn_inferior): Only unpush the target after mourning the
7793 inferior. Use inf_child_maybe_unpush_target.
7794 (procfs_init_inferior): Don't push the target if it is already
7796 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7797 if it is already pushed.
7799 2014-05-21 Pedro Alves <palves@redhat.com>
7801 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7802 and "procfs" targets are now called "native" instead.
7804 2014-05-21 Pedro Alves <palves@redhat.com>
7806 * go32-nat.c (go32_open): Delete.
7807 (go32_target): Don't override the to_open method.
7809 2014-05-21 Pedro Alves <palves@redhat.com>
7811 * nto-procfs.c (procfs_can_run): New function.
7812 (nto_procfs_ops): New global.
7813 (init_procfs_targets): New, based on procfs_target. Install
7814 "target native" in addition to "target procfs".
7815 (_initialize_procfs): Call init_procfs_targets instead of adding
7818 2014-05-21 Pedro Alves <palves@redhat.com>
7820 * windows-nat.c (windows_target): Don't override to_shortname,
7821 to_longname or to_doc.
7823 2014-05-21 Pedro Alves <palves@redhat.com>
7825 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7828 2014-05-21 Pedro Alves <palves@redhat.com>
7830 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7831 to_shortname, to_longname or to_doc.
7833 2014-05-21 Pedro Alves <palves@redhat.com>
7835 * go32-nat.c (go32_target): Don't override to_shortname,
7836 to_longname or to_doc.
7838 2014-05-21 Pedro Alves <palves@redhat.com>
7840 * inf-child.c (inf_child_open): Remove mention of "child".
7841 (inf_child_target): Rename target to "native" instead of "child".
7843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7845 * Makefile.in (SFILES): Delete "regset.c".
7846 (COMMON_OBS): Delete "regset.o".
7848 * regset.h (regset_alloc): Delete prototype.
7850 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7852 * sparc-linux-tdep.c (sparc32_linux_gregset)
7853 (sparc32_linux_fpregset): New static regset structures.
7854 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7855 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7857 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7858 (sparc64_linux_fpregset): New static regset structures.
7859 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7860 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7861 New static regset structures.
7862 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7863 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7864 New static regset structures.
7865 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7866 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7867 New static regset structures.
7868 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7869 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7870 New static regset structures.
7871 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7875 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7876 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7877 register maps ("regmaps") from "*regset" to "*regmap". Do this
7878 for all regmap types and variables.
7879 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7880 (sparc32_linux_supply_core_gregset)
7881 (sparc32_linux_collect_core_gregset)
7882 (sparc32_linux_supply_core_fpregset)
7883 (sparc32_linux_collect_core_fpregset): Likewise.
7884 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7885 (sparc_gregmap, sparc_fpregmap): ... these.
7886 (sparc_supply_gregset, sparc_collect_gregset)
7887 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7888 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7889 (_initialize_sparc_nat): Rename regmaps.
7890 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7891 (sparc_gregmap, sparc_fpregmap): ... these.
7892 (sparc_supply_gregset, sparc_collect_gregset)
7893 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7894 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7896 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7897 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7899 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7901 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7902 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7903 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7905 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7906 (sparc32_bsd_fpregset): Rename to...
7907 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7908 (sparc32_bsd_fpregmap): ... these.
7909 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7910 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7911 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7912 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7913 (struct sparc_gregmap, struct sparc_fpregmap)
7914 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7915 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7916 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7917 (sparc32_supply_regset, sparc32_collect_gregset)
7918 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7920 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7921 (sparc64_linux_ptrace_gregmap): ... this.
7922 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7923 (_initialize_sparc64_linux_nat): Rename regmaps.
7924 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7925 (sparc64_linux_core_gregmap): ... this.
7926 (sparc64_linux_supply_core_gregset)
7927 (sparc64_linux_collect_core_gregset)
7928 (sparc64_linux_supply_core_fpregset)
7929 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7930 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7931 (sparc64_sol2_fpregset): Rename to...
7932 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7933 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7934 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7936 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7937 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7938 (sparc64_bsd_fpregset): Rename to...
7939 (struct sparc_gregmap, sparc64_sol2_gregmap)
7940 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7941 (sparc64_bsd_fpregmap): ... these.
7942 (sparc64_supply_gregset, sparc64_collect_gregset)
7943 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7945 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7946 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7947 (sparc64fbsd_gregmap): ... this.
7948 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7949 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7951 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7952 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7953 (sparc64nbsd_collect_fpregset): Likewise.
7954 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7955 (sparc64nbsd_gregmap): ... this.
7956 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7958 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7959 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7960 (sparc64obsd_gregmap): ... this.
7961 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7963 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7964 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7965 (sparc32nbsd_gregmap): ... this.
7966 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7969 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7971 * score-tdep.c (score7_linux_gregset): New static regset
7973 (score7_linux_regset_from_core_section): Remove dynamic regset
7975 (score_gdbarch_init): Drop allocation of tdep structure.
7976 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7980 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7982 (am33_regset_from_core_section): Remove dynamic regset
7985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7987 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7988 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7990 (mips_linux_regset_from_core_section): Remove dynamic regset
7992 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7993 'gregset64', 'fpregset', and 'fpregset64'.
7994 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7995 deleted tdep fields.
7997 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7999 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8001 (amd64_regset_from_core_section): Remove dynamic regset
8003 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8005 (amd64obsd_regset_from_core_section): Remove dynamic regset
8007 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8009 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8010 x86-common regset supply function.
8011 * i386-tdep.c (i386_collect_gregset): Make static.
8012 (i386_gregset): New global regset structure.
8013 (i386_fpregset, i386_xstateregset): New static regset structures.
8014 (i386_regset_from_core_section): Remove dynamic regset
8016 (i386_gdbarch_init): Remove initialization of tdep fields
8017 'gregset', 'fpregset', and 'xstateregset'.
8018 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8019 'fpregset', and 'xstateregset'.
8020 (i386_collect_gregset): Remove prototype.
8021 (i386_gregset): New declaration.
8022 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8024 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8029 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8030 (arm_linux_vfpregset): New static regset structures.
8031 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8033 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8034 and 'vfpregset' fields.
8036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8038 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8039 (aarch64_linux_fpregset): New static regset structures.
8040 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8041 of regset structures.
8042 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8047 * regset.h (struct regset): Remove gdbarch field.
8048 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8049 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8050 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8052 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8053 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8054 (ppc32_linux_vsxregset): Likewise.
8055 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8056 via the regcache instead of the regset.
8057 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8058 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8059 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8060 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8063 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8065 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8066 Constify structures.
8067 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8068 (alphanbsd_aout_gregset): Likewise.
8069 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8070 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8072 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8073 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8075 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8076 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8077 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8078 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8079 * m88k-tdep.c (m88k_gregset): Likewise.
8080 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8081 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8082 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8083 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8084 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8085 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8086 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8087 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8088 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8090 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8091 * sh-tdep.h (sh_corefile_gregset): Likewise.
8092 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8093 * vax-tdep.c (vax_gregset): Likewise.
8095 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8097 Fix TLS access for -static -pthread.
8098 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8099 (try_thread_db_load_1): Initialize it.
8100 (thread_db_get_thread_local_address): Call it if LM is zero.
8101 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8102 * target.h (struct target_ops) (to_get_thread_local_address): Add
8103 load_module_addr comment.
8105 2014-05-21 Pedro Alves <palves@redhat.com>
8107 * dcache.c (dcache_read_memory_partial): If reading the cache line
8108 fails, fallback to reading just the memory the caller wanted.
8110 2014-05-20 Doug Evans <dje@google.com>
8112 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8113 instead of get_current_arch.
8115 2014-05-20 Pedro Alves <palves@redhat.com>
8117 * NEWS: Mention that compare-sections now works with all targets.
8119 * remote.c (PACKET_qCRC): New enum value.
8120 (remote_verify_memory): Don't send qCRC if the target has no
8121 execution. Use packet_support/packet_ok. If the target doesn't
8122 support the qCRC packet, fallback to a deep memory copy.
8123 (compare_sections_command): Say "target image" instead of "remote
8125 (_initialize_remote): Add PACKET_qCRC to the list of config
8126 packets that have no associated command. Extend comment.
8127 * target.c (simple_verify_memory, default_verify_memory): New
8129 * target.h (struct target_ops) <to_verify_memory>: Default to
8130 default_verify_memory.
8131 (simple_verify_memory): New declaration.
8132 * target-delegates.c: Regenerate.
8134 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8136 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8138 2014-05-20 Hui Zhu <hui@codesourcery.com>
8139 Yao Qi <yao@codesourcery.com>
8142 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8143 and change address of sp and pc.
8145 2014-05-19 Tom Tromey <tromey@redhat.com>
8147 * gdbtypes.c (rank_function): Use XNEWVEC.
8148 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8150 2014-05-19 Doug Evans <dje@google.com>
8152 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8153 build_type_unit_groups and moved closer to only caller. Remove
8154 arguments. All references updated. Remove outdated .gdb_index
8156 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8157 build_type_psymtabs_1.
8159 2014-05-19 Doug Evans <dje@google.com>
8161 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8162 n_type_unit_groups, all_type_unit_groups. All uses removed.
8163 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8164 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8165 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8166 (add_type_unit_group_to_table): Delete.
8168 2014-05-19 Doug Evans <dje@google.com>
8170 * eval.c (evaluate_subexp_standard): Add some comments.
8172 2014-05-17 Doug Evans <xdje42@gmail.com>
8174 * progspace.c (remove_program_space): Delete, unused.
8175 * progspace.h (remove_program_space): Ditto.
8177 2014-05-17 Doug Evans <xdje42@gmail.com>
8179 * inferior.c (prune_inferiors): Fix comment.
8180 (remove_inferior_command): Call prune_program_spaces.
8182 2014-05-16 Doug Evans <dje@google.com>
8184 New command line option -D.
8186 * main.c (set_gdb_data_directory): New function.
8187 (captured_main): Recognize -D. Flag error for --data-directory "".
8188 Call set_gdb_data_directory.
8189 (print_gdb_help): Print --data-directory, -D.
8190 * main.h (set_gdb_data_directory): Declare.
8191 * top.c (staged_gdb_datadir): New static global.
8192 (set_gdb_datadir): Call set_gdb_data_directory
8193 (show_gdb_datadir): New function.
8194 (init_main): Update init of data-directory parameter.
8196 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8198 Import the "dirfd" gnulib module.
8199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8200 * gnulib/aclocal.m4: Update.
8201 * gnulib/config.in: Update.
8202 * gnulib/configure: Update.
8203 * gnulib/import/Makefile.am: Update.
8204 * gnulib/import/Makefile.in: Update.
8205 * gnulib/import/dirfd.c: New.
8206 * gnulib/import/m4/dirfd.m4: New.
8207 * gnulib/import/m4/gnulib-cache.m4: Update.
8208 * gnulib/import/m4/gnulib-comp.m4: Update.
8210 2014-05-16 Pierre Muller <muller@sourceware.org>
8211 Yao Qi <yao@codesourcery.com>
8213 * valprint.c (print_wchar): Move the code on checking whether
8214 W is a printable wide char to the default branch of switch
8215 statement below. Call wchar_printable instead of gdb_iswprint.
8217 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8219 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8220 ldr.w and ldrd instructions.
8222 2014-05-15 Doug Evans <dje@google.com>
8224 * dwarf2read.c (read_structure_type): Delete outdated comments.
8226 2014-05-14 Tom Tromey <tromey@redhat.com>
8228 * macrocmd.c (print_macro_definition): Reindent.
8230 2014-05-13 Doug Evans <xdje42@gmail.com>
8232 * python/py-cmd.c (cmdpy_completer): Add comment.
8233 (completers): Make const.
8235 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8237 * infrun.c (resume): Remove should_resume (unused). Move up
8238 declaration of resume_ptid.
8240 2014-05-13 Tom Tromey <tromey@redhat.com>
8242 * language.h (unop_type_check): Remove.
8243 (binop_type_check): Don't declare.
8245 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8247 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8248 call to regcache_raw_collect.
8250 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8252 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8253 mi_console->quote as the quoting character.
8255 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8257 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8259 2014-04-29 Tom Tromey <tromey@redhat.com>
8261 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8262 "show debug varobj".
8264 2014-05-07 Kyle McMartin <kyle@redhat.com>
8266 Pushed by Joel Brobecker <brobecker@adacore.com>.
8267 * aarch64-tdep.c (aarch64_software_single_step): New function.
8268 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8269 with aarch64_software_single_step.
8271 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8275 2014-05-05 Keith Seitz <keiths@redhat.com>
8277 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8278 variable or history value is successfully parsed.
8280 2014-05-05 Yao Qi <yao@codesourcery.com>
8281 Pedro Alves <palves@redhat.com>
8283 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8284 address of blocks that intersects the requested range. Trim
8285 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8287 * ctf.c (ctf_xfer_partial): Likewise.
8289 2014-05-05 Yao Qi <yao@codesourcery.com>
8291 * printcmd.c (display_command): Remove the check to
8292 target_has_execution.
8294 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8296 * ppcobsd-nat.c: Include "obsd-nat.h".
8297 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8299 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8301 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8303 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8304 and 16-bit signed and unsigned arguments. Update comment.
8305 (stap_parse_probe_arguments): Extend code to handle such
8306 arguments. Use warning instead of complaint to notify about
8307 unrecognized bitness.
8309 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8311 PR breakpoints/16889
8312 * stap-probe.c (stap_parse_probe_arguments): Simplify
8313 check for non-prefixed probes (i.e., probes whose
8314 arguments do not start with "N@"). Always set the
8315 argument type to a sane value.
8317 2014-05-01 David Taylor <dtaylor@emc.com>
8319 * remote.c (compare_sections_command): Add -r option to compare
8320 all loadable read-only sections.
8322 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8324 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8325 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8327 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8328 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8329 Remove unused CORE_ADDR argument. Update all callers.
8331 2014-04-29 Pedro Alves <palves@redhat.com>
8333 * remote.c (struct packet_config) <detect>: Extend comment.
8334 (add_packet_config_cmd): Don't set the config's detect or support
8336 (init_all_packet_configs): Also initialize the config's 'detect'
8338 (reset_all_packet_configs_support): New function.
8339 (remote_open_1): Call reset_all_packet_configs_support instead of
8340 init_all_packet_configs.
8341 (_initialize_remote): Initialize all packet configs. Assert that
8342 all packets have an associated command, except a few known
8345 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8347 * dwarf2read.c (read_subrange_type): Handle dynamic
8348 DW_AT_lower_bound attributes.
8350 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8352 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8353 dynamic bounds before computing its upper bound.
8354 (ada_discrete_type_low_bound): Same as above with the lower bound.
8356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8358 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8359 range types. Adjust the array handling implementation to
8360 take advantage of this change.
8361 (resolve_dynamic_range): New function, mostly extracted from
8362 resolve_dynamic_bounds.
8363 (resolve_dynamic_array): New function, mostly extracted from
8364 resolve_dynamic_bounds.
8365 (resolve_dynamic_bounds): Delete.
8366 (resolve_dynamic_type): Reimplement. Add handling of
8367 TYPE_CODE_RANGE types.
8369 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8371 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8372 handling of parallel ___XA types.
8374 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8376 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8377 unnecessary second call to static_unwrap_type.
8379 2014-04-27 Hui Zhu <hui@codesourcery.com>
8381 * stack.c (print_frame_info): Call do_gdb_disassembly with
8382 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8384 2014-04-26 Doug Evans <xdje42@gmail.com>
8386 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8388 2014-04-25 Pedro Alves <palves@redhat.com>
8391 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8392 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8393 and newline from built string.
8394 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8395 (linux_ptrace_attach_fail_reason): ... this.
8396 * linux-nat.c (linux_nat_attach): Adjust to use
8397 linux_ptrace_attach_fail_reason.
8399 2014-04-25 Pedro Alves <palves@redhat.com>
8401 * remote.c (struct remote_state): Remove multi_process_aware,
8402 non_stop_aware, cond_tracepoints, cond_breakpoints,
8403 breakpoint_commands, fast_tracepoints, static_tracepoints,
8404 install_in_trace, disconnected_tracing,
8405 enable_disable_tracepoints, string_tracing, and
8406 augmented_libraries_svr4_read fields.
8407 (remote_multi_process_p): Move further below in the file.
8408 (struct packet_config): Add comments.
8409 (update_packet_config): Delete function.
8410 (show_packet_config_cmd): Use packet_config_support.
8411 (add_packet_config_cmd): Use NULL as set callback.
8412 (packet_ok): "set remote foo-packet"-style commands no longer
8413 change config->supported -- adjust.
8414 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8415 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8416 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8417 (PACKET_QNonStop, PACKET_multiprocess_feature)
8418 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8419 (PACKET_DisconnectedTracing_feature)
8420 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8421 (set_remote_protocol_packet_cmd): Delete function.
8422 (packet_config_support, packet_support): New functions.
8423 (set_remote_protocol_Z_packet_cmd): Don't call
8424 update_packet_config.
8425 (remote_query_attached, remote_pass_signals)
8426 (remote_program_signals, remote_threads_info)
8427 (remote_threads_extra_info, remote_start_remote): Use
8429 (remote_start_remote): Use packet_config_support and
8431 (init_all_packet_configs): Set all packets to unknown support,
8432 instead of calling update_packet_config.
8433 (remote_check_symbols): Use packet_support.
8434 (remote_supported_packet): Unconditionally set the packet config's
8436 (remote_multi_process_feature, remote_non_stop_feature)
8437 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8438 (remote_breakpoint_commands_feature)
8439 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8440 (remote_install_in_trace_feature)
8441 (remote_disconnected_tracing_feature)
8442 (remote_enable_disable_tracepoint_feature)
8443 (remote_string_tracing_feature)
8444 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8445 (remote_protocol_features): Adjust to use remote_supported_packet
8446 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8447 "ConditionalTracepoints", "ConditionalBreakpoints",
8448 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8449 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8450 "EnableDisableTracepoints", and "tracenz".
8451 (remote_query_supported): Use packet_support.
8452 (remote_open_1): Adjust.
8453 (extended_remote_attach_1): Use packet_support. Switch on the
8454 result of packet_ok instead of checking whether the packet ended
8456 (remote_vcont_resume): Use packet_support.
8457 (remote_resume, remote_stop_ns, fetch_register_using_p)
8458 (remote_prepare_to_store, store_register_using_P)
8459 (check_binary_download, remote_write_bytes): Use packet_support.
8460 (remote_vkill): Use packet_support. Switch on the result of
8461 packet_ok instead of checking whether the packet ended up
8463 (extended_remote_supports_disable_randomization): Use
8465 (extended_remote_run): Switch on the result of packet_ok instead
8466 of checking whether the packet ended up disabled.
8467 (remote_insert_breakpoint, remote_remove_breakpoint)
8468 (remote_insert_watchpoint, remote_remove_watchpoint)
8469 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8471 (remote_search_memory): Use packet_config_support.
8472 (remote_get_thread_local_address, remote_get_tib_address)
8473 (remote_hostio_send_command, remote_can_execute_reverse): Use
8475 (remote_supports_cond_tracepoints)
8476 (remote_supports_cond_breakpoints)
8477 (remote_supports_fast_tracepoints)
8478 (remote_supports_static_tracepoints)
8479 (remote_supports_install_in_trace)
8480 (remote_supports_enable_disable_tracepoint)
8481 (remote_supports_string_tracing)
8482 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8483 the packet config says the feature is enabled or disabled.
8484 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8485 (remote_get_trace_status): Use packet_support.
8486 (remote_set_disconnected_tracing): Adjust to check whether the
8487 feature is enabled with packet_support.
8488 (remote_set_trace_buffer_size, remote_use_agent)
8489 (remote_can_use_agent, remote_supports_btrace): Use
8491 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8492 Use packet_config_support.
8493 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8494 the packet config says the feature is enabled or disabled.
8495 (set_range_stepping): Use packet_support.
8497 2014-04-25 Tom Tromey <tromey@redhat.com>
8499 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8502 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8504 * NEWS: Mention support for C99 variable length arrays.
8506 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8508 * ada-lang.c (standard_exc): Expand introductory comment.
8510 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8511 Walfred Tedeschi <walfred.tedeschi@intel.com>
8513 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8515 (amd64_linux_read_description): Add code to handle AVX512 xstate
8516 mask and return respective tdesc.
8517 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8518 and features/i386/x32-avx512-linux.c.
8519 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8520 (amd64_linux_core_read_description): Add code to handle AVX512
8521 xstate mask and return respective tdesc.
8522 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8523 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8525 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8526 (tdesc_amd64_avx512_linux): New prototype.
8527 (tdesc_x32_avx512_linux): Likewise.
8528 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8529 features/i386/x32-avx512.c.
8530 (amd64_ymm_avx512_names): New register names for pseudo
8532 (amd64_ymmh_avx512_names): New register names for raw registers
8534 (amd64_k_names): New register names for K registers.
8535 (amd64_zmmh_names): New register names for ZMM raw registers.
8536 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8537 (amd64_xmm_avx512_names): New register names for XMM16-31
8539 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8541 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8542 if feature is present.
8543 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8544 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8545 (AMD64_NUM_REGS): Adjust to new number of registers.
8546 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8547 registers supplied via XSTATE by AVX512 registers.
8548 (i386_linux_read_description): Add case for AVX512.
8549 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8550 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8551 (i386_linux_core_read_description): Add case for AVX512.
8552 (i386_linux_init_abi): Install supported register note section
8554 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8556 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8557 registers to be number of zmm7h + 1.
8558 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8559 * i386-tdep.c: Include features/i386/i386-avx512.c.
8560 (i386_zmm_names): Add ZMM pseudo register names array.
8561 (i386_zmmh_names): Add ZMM raw register names array.
8562 (i386_k_names): Add K raw register names array.
8563 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8564 registers. AVX512 has 16 more ZMM registers than there are YMM
8566 (i386_zmmh_regnum_p): Add function to look up register number of
8568 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8569 (i386_k_regnum_p): Likewise for K raw registers.
8570 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8571 registers added by AVX512.
8572 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8573 registers added by AVX512.
8574 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8576 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8577 (i386_pseudo_register_name): Add ZMM pseudo registers.
8578 (i386_zmm_type): Construct and return vector registers type for ZMM
8580 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8581 ZMM0-31 pseudo registers and K registers.
8582 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8583 and YMM16-31 registers from register cache.
8584 (i386_pseudo_register_write): Add code to write K, ZMM and
8586 (i386_register_reggroup_p): Add code to include/exclude AVX512
8587 registers in/from respective register groups.
8588 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8589 registers if feature is present in xcr0.
8590 (i386_gdbarch_init): Add code to initialize AVX512 feature
8591 variables in tdep structure, wire in pseudo registers and call
8592 initialize_tdesc_i386_avx512.
8593 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8595 (i386_regnum): Add AVX512 registers.
8596 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8597 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8598 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8599 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8601 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8602 (i386_ymm_avx512_regnum_p): Likewise.
8603 (i386_k_regnum_p): Likewise.
8604 (i386_zmm_regnum_p): Likewise.
8605 (i386_zmmh_regnum_p): Likewise.
8606 * i387-tdep.c : Update year in copyright notice.
8607 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8609 (XSAVE_YMM_AVX512_ADDR): New macro.
8610 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8612 (XSAVE_XMM_AVX512_ADDR): New macro.
8613 (xsave_avx512_k_offset): New table for K register offsets in
8615 (XSAVE_AVX512_K_ADDR): New macro.
8616 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8618 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8619 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8621 (i387_collect_xsave): Add code to collect AVX512 registers from
8623 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8624 of XMM16-31 registers.
8625 (I387_NUM_K_REGS): New define for number of K registers.
8626 (I387_K0_REGNUM): New define for K0 register number.
8627 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8628 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8629 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8631 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8632 (I387_XMM16_REGNUM): New define for XMM16 register number.
8633 (I387_YMM0_REGNUM): New define for YMM0 register number.
8634 (I387_KEND_REGNUM): New define for last K register number.
8635 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8636 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8638 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8640 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8642 * features/Makefile: Add AVX512 related files.
8643 * features/i386/32bit-avx512.xml: New file.
8644 * features/i386/64bit-avx512.xml: Likewise.
8645 * features/i386/amd64-avx512-linux.c: Likewise.
8646 * features/i386/amd64-avx512-linux.xml: Likewise.
8647 * features/i386/amd64-avx512.c: Likewise.
8648 * features/i386/amd64-avx512.xml: Likewise.
8649 * features/i386/i386-avx512-linux.c: Likewise.
8650 * features/i386/i386-avx512-linux.xml: Likewise.
8651 * features/i386/i386-avx512.c: Likewise.
8652 * features/i386/i386-avx512.xml: Likewise.
8653 * features/i386/x32-avx512-linux.c: Likewise.
8654 * features/i386/x32-avx512-linux.xml: Likewise.
8655 * features/i386/x32-avx512.c: Likewise.
8656 * features/i386/x32-avx512.xml: Likewise.
8657 * regformats/i386/amd64-avx512-linux.dat: New file.
8658 * regformats/i386/amd64-avx512.dat: Likewise.
8659 * regformats/i386/i386-avx512-linux.dat: Likewise.
8660 * regformats/i386/i386-avx512.dat: Likewise.
8661 * regformats/i386/x32-avx512-linux.dat: Likewise.
8662 * regformats/i386/x32-avx512.dat: Likewise.
8663 * NEWS: Add note about new support for AVX512.
8666 2014-04-23 Pedro Alves <palves@redhat.com>
8668 * breakpoint.c (insert_bp_location): Tolerate errors if the
8669 breakpoint is set in a user-loaded objfile.
8670 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8671 location is marked shlib_disabled. If the breakpoint is set in a
8672 user-loaded objfile is a GDB-side memory breakpoint, validate it
8673 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8674 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8676 * mem-break.c (memory_validate_breakpoint): New function.
8677 * objfiles.c (userloaded_objfile_contains_address_p): New
8679 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8680 * target.h (memory_validate_breakpoint): New declaration.
8682 2014-04-23 Pedro Alves <palves@redhat.com>
8684 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8685 the breakpoint is set in a shared library, only suppress
8686 errors for software breakpoints, not hardware breakpoints.
8688 2014-04-22 Pedro Alves <palves@redhat.com>
8690 * infrun.c (schedlock_applies): New function, factored out from
8691 find_thread_needs_step_over.
8692 (find_thread_needs_step_over): Use it.
8693 (switch_back_to_stepped_thread): Always clear trap_expected if the
8694 step over is finished. Return early if scheduler locking applies.
8695 Look for the stepping thread and a potential step-over thread with
8697 (currently_stepping_or_nexting_callback): Delete.
8699 2014-04-22 Nick Clifton <nickc@redhat.com>
8701 * NEWS: Mention that ARM sim now supports tracing.
8703 2014-04-22 Yao Qi <yao@codesourcery.com>
8705 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8707 * tracefile.c (tracefile_fetch_registers): ... it. New
8709 * tracefile.h (tracefile_fetch_registers): Declare.
8710 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8711 tracefile_fetch_registers.
8713 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8716 * windows-nat.c (thread_rec): Don't display a warning when
8717 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8718 fails for any reason, set th->suspended to -1, so that we don't
8719 try to resume such a thread. Also, don't return NULL in these
8720 cases, to avoid completely ruin the session due to "PC register is
8721 not available" error.
8722 (do_windows_fetch_inferior_registers): Check errors in
8723 GetThreadContext call.
8724 (windows_continue): Accept an additional argument KILLED; if not
8725 zero, ignore errors in the SetThreadContext call, since the
8726 inferior was killed and is shutting down.
8727 (windows_resume, get_windows_debug_event)
8728 (windows_create_inferior, windows_mourn_inferior)
8729 (windows_kill_inferior): All callers of windows_continue changed
8730 to adjust to its new calling sequence.
8732 2014-04-19 Yao Qi <yao@codesourcery.com>
8734 * ctf.c (ctf_open): Call post_create_inferior.
8736 2014-04-19 Yao Qi <yao@codesourcery.com>
8738 * ctf.c (handle_id): New static variable.
8739 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8740 value. Get the declaration of event "register" and get length
8741 of field "contents".
8743 2014-04-19 Yao Qi <yao@codesourcery.com>
8745 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8747 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8749 * valops.c (oload_method_static): Remove unnecessary argument
8750 METHOD. Update all callers.
8752 2014-04-18 Pedro alves <palves@redhat.com>
8753 Tom Tromey <tromey@redhat.com>
8756 * frame.c (get_prev_frame_1): Rename to ...
8757 (get_prev_frame_always): ... this, and make extern. Adjust.
8758 (skip_artificial_frames): Use get_prev_frame_always.
8759 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8760 (get_frame_unwind_stop_reason): Adjust to rename.
8761 * frame.h (get_prev_frame_always): Declare.
8762 * inline-frame.c: Include frame.h.
8763 (inline_frame_this_id): Use get_prev_frame_always.
8765 2014-04-18 Tristan Gingold <gingold@adacore.com>
8767 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8768 code by using bfd_mach_o_get_base_address.
8770 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8772 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8773 (spu_ax_pseudo_register_collect): New function.
8774 (spu_ax_pseudo_register_push_stack): Likewise.
8775 (spu_dwarf_reg_to_regnum): Likewise.
8776 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8778 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8780 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8781 Replace FRAME argument with FRAME_ID.
8782 * gdbarch.c, gdbarch.h: Regenerate.
8783 * findvar.c (default_value_from_register): Add GDBARCH argument;
8784 replace FRAME by FRAME_ID. No longer call get_frame_id.
8785 (value_from_register): Update call to gdbarch_value_from_register.
8786 * value.h (default_value_from_register): Update prototype.
8787 * s390-linux-tdep.c (s390_value_from_register): Update interface
8788 and call to default_value_from_register.
8789 * spu-tdep.c (spu_value_from_register): Likewise.
8791 * findvar.c (address_from_register): Remove TYPE argument.
8792 Do not call value_from_register; use gdbarch_value_from_register
8793 with null_frame_id instead.
8794 * value.h (address_from_register): Update prototype.
8795 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8796 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8797 address_from_register interface change.
8799 2014-04-17 Yao Qi <yao@codesourcery.com>
8801 * gdbtypes.h: Update comments to link to types and macros'
8804 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8806 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8808 2014-04-16 Keith Seitz <keiths@redhat.com>
8811 * dwarf2read.c (skip_one_die): Check that all relative-offset
8812 sibling DIEs fall within range of the current reader's buffer.
8813 (read_partial_die): Likewise.
8815 2014-04-16 Keith Seitz <keiths@redhat.com>
8818 * cp-namespace.c (lookup_symbol_file): If the type name of
8819 `this' is NULL, return immediately.
8821 2014-04-14 Keith Seitz <keiths@redhat.com>
8824 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8825 from symbol_matches_domain in symtab.c. All local callers
8826 of symbol_matches_domain updated.
8827 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8828 search STRUCT_DOMAIN.
8829 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8830 independently. standard_lookup will do that automatically.
8831 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8832 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8833 (cp_lookup_symbol_in_namespace): Likewise.
8834 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8835 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8836 may return a STRUCT_DOMAIN match.
8837 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8838 * cp-support.c: Include language.h.
8839 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8841 * psymtab.c (match_partial_symbol): Compare the requested
8842 domain with the symbol's domain directly.
8843 (lookup_partial_symbol): Likewise.
8844 * symtab.c (lookup_symbol_in_language): Explain when/why
8845 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8846 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8847 appropriate languages.
8848 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8849 and moved to ada-lang.c
8850 (lookup_block_symbol): Explain that this function only returns
8851 symbol matching the requested DOMAIN.
8852 Compare the requested domain with the symbol's domain directly.
8853 (iterate_over_symbols): Compare the requested domain with the
8854 symbol's domain directly.
8855 * symtab.h (symbol_matches_domain): Remove.
8857 2014-04-14 Tom Tromey <tromey@redhat.com>
8860 * c-exp.y (type_aggregate_p): New function.
8861 (qualified_name, classify_inner_name): Use it.
8862 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8863 and TYPE_TARGET_TYPE of an enum type.
8864 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8866 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8867 handle TYPE_DECLARED_CLASS.
8868 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8870 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8871 * valops.c (enum_constant_from_type): New function.
8872 (value_aggregate_elt): Use it.
8873 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8876 2014-04-14 Tom Tromey <tromey@redhat.com>
8878 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8879 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8881 * value.h (value_aggregate_elt): Update.
8883 2014-04-14 Tom Tromey <tromey@redhat.com>
8885 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8887 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8889 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8890 (evaluate_subexp_standard): Pass noside argument.
8891 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8892 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8893 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8894 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8895 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8897 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8899 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8900 points to a constant blob.
8902 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8904 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8905 property and store it as the high bound and flag the range accordingly.
8906 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8907 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8908 * gdbtypes.h (enum range_flags): New enum.
8909 (struct range_bounds): Add flags member.
8911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8913 * c-typeprint.c (c_type_print_varspec_suffix): Added
8914 check for not yet resolved high bound. If unresolved, print
8915 "variable length" string to the console instead of random
8918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8920 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8922 (ada_template_to_fixed_record_type_1): Likewise.
8923 (ada_to_fixed_type_1): Likewise.
8924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8925 (cp_print_value): Likewise.
8926 * d-valprint.c (dynamic_array_type): Likewise.
8927 * findvar.c (address_of_variable): Likewise.
8928 * jv-valprint.c (java_value_print): Likewise.
8929 * valops.c (value_ind): Likewise.
8930 * value.c (coerce_ref): Likewise.
8932 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8934 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8935 value and retrieve the dynamic type size.
8937 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8939 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8940 passed to sizeof is dynamic evaluate the argument to compute the length.
8942 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8943 Joel Brobecker <brobecker@adacore.com>
8945 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8946 (dwarf2_evaluate_property): New function.
8947 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8948 * dwarf2read.c (attr_to_dynamic_prop): New function.
8949 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8951 * gdbtypes.c: Include dwarf2loc.h.
8952 (is_dynamic_type): New function.
8953 (resolve_dynamic_type): New function.
8954 (resolve_dynamic_bounds): New function.
8955 (get_type_length): New function.
8956 (check_typedef): Use get_type_length to compute type length.
8957 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8958 (TYPE_LOW_BOUND_KIND): New macro.
8959 (is_dynamic_type): New function prototype.
8960 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8961 to resolve dynamic properties of the type. Update comment.
8962 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8964 2014-04-14 Richard Henderson <rth@redhat.com>
8966 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8968 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8969 Doug Evans <xdje42@gmail.com>
8971 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8972 dereference TYPE_CODE_REF values.
8974 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8976 Revert the following changes due to regressions:
8978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8979 (dwarf2_evaluate_property): New function.
8980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8981 * dwarf2read.c (attr_to_dynamic_prop): New function.
8982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8984 * gdbtypes.c: Include dwarf2loc.h.
8985 (is_dynamic_type): New function.
8986 (resolve_dynamic_type): New function.
8987 (resolve_dynamic_bounds): New function.
8988 (get_type_length): New function.
8989 (check_typedef): Use get_type_length to compute type length.
8990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8991 (TYPE_LOW_BOUND_KIND): New macro.
8992 (is_dynamic_type): New function prototype.
8993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8994 to resolve dynamic properties of the type. Update comment.
8995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8997 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8998 passed to sizeof is dynamic evaluate the argument to compute the length.
9000 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9001 value and retrieve the dynamic type size.
9003 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9004 (ada_template_to_fixed_record_type_1): Likewise.
9005 (ada_to_fixed_type_1): Likewise.
9006 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9007 (cp_print_value): Likewise.
9008 * d-valprint.c (dynamic_array_type): Likewise.
9009 * eval.c (evaluate_subexp_with_coercion): Likewise.
9010 * findvar.c (address_of_variable): Likewise.
9011 * jv-valprint.c (java_value_print): Likewise.
9012 * valops.c (value_ind): Likewise.
9013 * value.c (coerce_ref): Likewise.
9015 * c-typeprint.c (c_type_print_varspec_suffix): Added
9016 check for not yet resolved high bound. If unresolved, print
9017 "variable length" string to the console instead of random
9020 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9021 property and store it as the high bound and flag the range accordingly.
9022 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9023 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9024 * gdbtypes.h (enum range_flags): New enum.
9025 (struct range_bounds): Add flags member.
9027 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9028 points to a constant blob.
9030 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9031 (evaluate_subexp_standard): Pass noside argument.
9032 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9033 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9034 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9035 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9036 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9038 2014-04-11 Keith Seitz <keiths@redhat.com>
9041 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9042 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9045 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9047 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9048 (evaluate_subexp_standard): Pass noside argument.
9049 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9050 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9051 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9052 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9053 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9055 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9057 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9058 points to a constant blob.
9060 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9062 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9063 property and store it as the high bound and flag the range accordingly.
9064 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9065 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9066 * gdbtypes.h (enum range_flags): New enum.
9067 (struct range_bounds): Add flags member.
9069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9071 * c-typeprint.c (c_type_print_varspec_suffix): Added
9072 check for not yet resolved high bound. If unresolved, print
9073 "variable length" string to the console instead of random
9076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9078 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9079 (ada_template_to_fixed_record_type_1): Likewise.
9080 (ada_to_fixed_type_1): Likewise.
9081 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9082 (cp_print_value): Likewise.
9083 * d-valprint.c (dynamic_array_type): Likewise.
9084 * eval.c (evaluate_subexp_with_coercion): Likewise.
9085 * findvar.c (address_of_variable): Likewise.
9086 * jv-valprint.c (java_value_print): Likewise.
9087 * valops.c (value_ind): Likewise.
9088 * value.c (coerce_ref): Likewise.
9090 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9092 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9093 value and retrieve the dynamic type size.
9095 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9097 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9098 passed to sizeof is dynamic evaluate the argument to compute the length.
9100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9102 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9103 (dwarf2_evaluate_property): New function.
9104 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9105 * dwarf2read.c (attr_to_dynamic_prop): New function.
9106 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9108 * gdbtypes.c: Include dwarf2loc.h.
9109 (is_dynamic_type): New function.
9110 (resolve_dynamic_type): New function.
9111 (resolve_dynamic_bounds): New function.
9112 (get_type_length): New function.
9113 (check_typedef): Use get_type_length to compute type length.
9114 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9115 (TYPE_LOW_BOUND_KIND): New macro.
9116 (is_dynamic_type): New function prototype.
9117 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9118 to resolve dynamic properties of the type. Update comment.
9119 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9121 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9123 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9124 declaring high/low bounds and change uses accordingly. Call
9125 create_range_type instead of create_static_range_type.
9126 * gdbtypes.c (create_range_type): New function.
9127 (create_range_type): Convert bounds into struct bound_prop and pass
9128 them to create_range_type.
9129 * gdbtypes.h (struct bound_prop): New struct.
9130 (create_range_type): New function prototype.
9131 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9132 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9133 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9135 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9139 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9140 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9141 * ada-lang.c: All uses of create_range_type updated.
9142 * coffread.c: All uses of create_range_type updated.
9143 * dwarf2read.c: All uses of create_range_type updated.
9144 * f-exp.y: All uses of create_range_type updated.
9145 * m2-valprint.c: All uses of create_range_type updated.
9146 * mdebugread.c: All uses of create_range_type updated.
9147 * stabsread.c: All uses of create_range_type updated.
9148 * valops.c: All uses of create_range_type updated.
9149 * valprint.c: All uses of create_range_type updated.
9151 2014-04-10 Pedro Alves <palves@redhat.com>
9153 * breakpoint.c (single_step_breakpoints)
9154 (single_step_gdbarch): Move up in the file.
9155 (one_breakpoint_xfer_memory): New function, factored out from ...
9156 (breakpoint_xfer_memory): ... here. Also process single-step
9159 2014-04-09 Tristan Gingold <gingold@adacore.com>
9161 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9163 (darwin_decode_exception_message): Free port only after use.
9165 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9167 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9168 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9169 when setting the size of call_length.
9171 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9173 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9174 dereference TYPE_CODE_REF values.
9176 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9178 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9179 end of warning message.
9181 2014-04-03 Doug Evans <dje@google.com>
9183 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9184 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9186 2014-04-02 Alan Modra <amodra@gmail.com>
9188 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9189 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9190 (struct symbol_file_add_from_memory_args): Add size field.
9191 (find_vdso_size): New function.
9192 (add_vsyscall_page): Attempt to find vdso size.
9194 2014-04-01 Doug Evans <dje@google.com>
9196 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9198 2014-04-01 Tristan Gingold <gingold@adacore.com>
9200 * darwin-nat.c (darwin_encode_reply): Add prototype.
9201 (darwin_decode_exception_message): Reply to unknown inferiors.
9202 (darwin_decode_message): Handle message by id. Ignore message
9203 to unknown inferior.
9204 (darwin_wait): Discard unknown messages, add debug trace.
9206 2014-03-31 Doug Evans <dje@google.com>
9208 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9211 2014-03-31 Doug Evans <dje@google.com>
9213 New option "set print symbol-loading".
9215 * solib.c (solib_read_symbols): Only print symbol loading messages
9217 (solib_add): If symbol loading is in "brief" mode, notify user
9218 symbols are being loaded.
9219 (reload_shared_libraries_1): Ditto.
9220 * symfile.c (print_symbol_loading_off): New static global.
9221 (print_symbol_loading_brief): New static global.
9222 (print_symbol_loading_full): New static global.
9223 (print_symbol_loading_enums): New static global.
9224 (print_symbol_loading): New static global.
9225 (print_symbol_loading_p): New function.
9226 (symbol_file_add_with_addrs): Only print symbol loading messages
9228 (_initialize_symfile): Register "print symbol-loading" set/show
9230 * symfile.h (print_symbol_loading_p): Declare.
9232 2014-03-30 Doug Evans <xdje42@gmail.com>
9234 * infrun.c (set_last_target_status): New function.
9235 (handle_inferior_event): Call it.
9237 2014-03-30 Doug Evans <xdje42@gmail.com>
9239 * inferior.h (enum stop_kind): Improve comment.
9241 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9243 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9244 a reference, strip the reference layer before calling
9245 the lang_ops value_has_mutated callback.
9247 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9249 Remove some globals from our parser.
9250 * language.c (unk_lang_parser): Add "struct parser_state"
9252 * language.h (struct language_defn) <la_parser>: Likewise.
9253 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9254 (initialize_expout): Add "struct parser_state" argument.
9255 Rewrite function to use the parser state.
9256 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9257 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9258 write_exp_elt_longcst, write_exp_elt_dblcst,
9259 write_exp_elt_decfloatcst, write_exp_elt_type,
9260 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9261 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9262 write_dollar_variable): Likewise.
9263 (parse_exp_in_context_1): Use parser state.
9264 (insert_type_address_space): Add "struct parser_state" argument.
9266 (increase_expout_size): New function.
9267 * parser-defs.h: Forward declare "struct language_defn" and
9268 "struct parser_state".
9269 (expout, expout_size, expout_ptr): Remove extern declarations.
9270 (parse_gdbarch, parse_language): Rewrite macro declarations to
9271 accept the parser state.
9272 (struct parser_state): New struct.
9273 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9274 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9275 write_exp_elt_decfloatcst, write_exp_elt_type,
9276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9277 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9278 write_exp_msymbol, write_dollar_variable,
9279 mark_struct_expression, insert_type_address_space): Add "struct
9280 parser_state" argument.
9281 (increase_expout_size): New function.
9282 * utils.c (do_clear_parser_state): New function.
9283 (make_cleanup_clear_parser_state): Likewise.
9284 * utils.h (make_cleanup_clear_parser_state): New function
9286 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9287 Update calls to write_exp* in order to pass the parser state.
9288 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9289 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9290 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9291 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9292 * stap-probe.c (stap_parse_register_operand): Likewise.
9293 (stap_parse_single_operand): Likewise.
9294 (stap_parse_argument_1): Likewise.
9295 (stap_parse_argument): Use parser state.
9296 * stap-probe.h: Include "parser-defs.h".
9297 (struct stap_parse_info) <pstate>: New field.
9298 * c-exp.y (parse_type): Rewrite to use parser state.
9299 (yyparse): Redefine to c_parse_internal.
9300 (pstate): New global variable.
9301 (parse_number): Add "struct parser_state" argument.
9302 (write_destructor_name): Likewise.
9303 (type_exp): Update calls to write_exp* and similars in order to
9305 (exp1, exp, variable, qualified_name, space_identifier,
9306 typename, typebase): Likewise.
9307 (write_destructor_name, parse_number, lex_one_token,
9308 classify_name, classify_inner_name, c_parse): Add "struct
9309 parser_state" argument. Update function to use parser state.
9310 * c-lang.h: Forward declare "struct parser_state".
9311 (c_parse): Add "struct parser_state" argument.
9312 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9313 (yyparse): Redefine macro to ada_parse_internal.
9314 (pstate): New variable.
9315 (write_int, write_object_renaming, write_var_or_type,
9316 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9317 type_int, type_long, type_long_long, type_float, type_double,
9318 type_long_double, type_char, type_boolean, type_system_address):
9319 Add "struct parser_state" argument.
9320 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9321 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9322 var_or_type, aggregate, aggregate_component_list,
9323 positional_list, others, component_group,
9324 component_associations): Update calls to write_exp* and similar
9325 functions in order to use parser state.
9326 (ada_parse, write_var_from_sym, write_int,
9327 write_exp_op_with_string, write_object_renaming,
9328 find_primitive_type, write_selectors, write_ambiguous_var,
9329 write_var_or_type, write_name_assoc, type_int, type_long,
9330 type_long_long, type_float, type_double, type_long_double,
9331 type_char, type_boolean, type_system_address): Add "struct
9332 parser_state" argument. Adjust function to use parser state.
9333 * ada-lang.c (parse): Likewise.
9334 * ada-lang.h: Forward declare "struct parser_state".
9335 (ada_parse): Add "struct parser_state" argument.
9336 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9337 calls to both functions.
9338 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9340 (yyparse): Redefine macro to f_parse_internal.
9341 (pstate): New variable.
9342 (parse_number): Add "struct parser_state" argument.
9343 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9344 and similars in order to use parser state.
9345 (parse_number): Adjust code to use parser state.
9347 (f_parse): New function.
9348 * f-lang.h: Forward declare "struct parser_state".
9349 (f_parse): Add "struct parser_state" argument.
9350 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9352 (yyparse): Redefine macro for java_parse_internal.
9353 (pstate): New variable.
9354 (push_expression_name, push_expression_name, insert_exp): Add
9355 "struct parser_state" argument.
9356 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9357 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9358 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9359 PostIncrementExpression, PostDecrementExpression,
9360 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9361 UnaryExpressionNotPlusMinus, CastExpression,
9362 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9363 RelationalExpression, EqualityExpression, AndExpression,
9364 ExclusiveOrExpression, InclusiveOrExpression,
9365 ConditionalAndExpression, ConditionalOrExpression,
9366 ConditionalExpression, Assignment, LeftHandSide): Update
9367 calls to write_exp* and similars in order to use parser state.
9368 (parse_number): Ajust code to use parser state.
9370 (java_parse): New function.
9371 (push_variable): Add "struct parser_state" argument. Adjust
9372 code to user parser state.
9373 (push_fieldnames, push_qualified_expression_name,
9374 push_expression_name, insert_exp): Likewise.
9375 * jv-lang.h: Forward declare "struct parser_state".
9376 (java_parse): Add "struct parser_state" argument.
9377 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9379 (yyparse): Redefine macro to m2_parse_internal.
9380 (pstate): New variable.
9381 (type_exp, exp, fblock, variable, type): Update calls to
9382 write_exp* and similars to use parser state.
9384 (m2_parse): New function.
9385 * m2-lang.h: Forward declare "struct parser_state".
9386 (m2_parse): Add "struct parser_state" argument.
9387 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9388 * objc-lang.h: Forward declare "struct parser_state".
9389 (end_msglist): Add "struct parser_state" argument.
9390 * p-exp.y (parse_type): Rewrite macro to use parser state.
9391 (yyparse): Redefine macro to pascal_parse_internal.
9392 (pstate): New variable.
9393 (parse_number): Add "struct parser_state" argument.
9394 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9395 write_exp* and similars in order to use parser state.
9396 (parse_number, yylex): Adjust code to use parser state.
9397 (pascal_parse): New function.
9398 * p-lang.h: Forward declare "struct parser_state".
9399 (pascal_parse): Add "struct parser_state" argument.
9400 * go-exp.y (parse_type): Rewrite macro to use parser state.
9401 (yyparse): Redefine macro to go_parse_internal.
9402 (pstate): New variable.
9403 (parse_number): Add "struct parser_state" argument.
9404 (type_exp, exp1, exp, variable, type): Update calls to
9405 write_exp* and similars in order to use parser state.
9406 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9407 to use parser state.
9408 (go_parse): Likewise.
9409 * go-lang.h: Forward declare "struct parser_state".
9410 (go_parse): Add "struct parser_state" argument.
9412 2014-03-27 Doug Evans <dje@google.com>
9414 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9416 2014-03-27 Doug Evans <dje@google.com>
9418 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9419 Remove argument abbrev_section. All callers updated.
9421 2014-03-27 Doug Evans <dje@google.com>
9423 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9424 addr_base, ranges_base.
9426 2014-03-26 Keith Seitz <keiths@redhat.com>
9428 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9429 types, not VAR_DOMAIN.
9431 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9433 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9435 * features/nios2-linux.c: Regenerated.
9436 * features/nios2.c: Regenerated.
9438 2014-03-25 Pedro Alves <palves@redhat.com>
9440 * cli/cli-script.c (script_from_file): Force the interpreter to
9443 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9445 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9446 small stack allocation.
9448 2014-03-24 Tristan Gingold <gingold@adacore.com>
9450 * darwin-nat.c (exc_server): Remove unused prototype.
9451 (darwin_dump_message): Correctly display data on x86_64.
9452 (darwin_encode_reply): Fix style.
9453 Add comments and fix indentation.
9455 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9457 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9459 2014-03-22 Doug Evans <xdje42@gmail.com>
9461 * infcmd.c: Whitespace fixes.
9462 (interrupt_command): Merge two function comments into one.
9464 2014-03-22 Doug Evans <xdje42@gmail.com>
9466 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9469 2014-03-22 Yao Qi <yao@codesourcery.com>
9471 * remote.c (target_read_live_memory): Remove.
9472 (memory_xfer_live_readonly_partial): Rename it to
9473 remote_xfer_live_readonly_partial. Remove argument 'object'.
9474 All callers updated. Call remote_read_bytes_1
9475 instead of target_read_live_memory.
9476 * tracepoint.c (set_traceframe_number): Remove.
9477 (make_cleanup_restore_traceframe_number): Likewise .
9478 * tracepoint.h (set_traceframe_number): Remove declaration.
9479 (make_cleanup_restore_traceframe_number): Likewise.
9481 2014-03-22 Yao Qi <yao@codesourcery.com>
9483 * remote.c (remote_read_bytes): Move code on reading from the
9485 (remote_read_bytes_1): ... here. New function.
9487 2014-03-22 Yao Qi <yao@codesourcery.com>
9489 * ctf.c (ctf_xfer_partial): Check the return value of
9490 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9491 return TARGET_XFER_UNAVAILABLE.
9492 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9493 * target.c (target_read_live_memory): Move it to remote.c.
9494 (memory_xfer_live_readonly_partial): Likewise.
9495 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9496 * remote.c (target_read_live_memory): Moved from target.c.
9497 (memory_xfer_live_readonly_partial): Likewise.
9498 (remote_read_bytes): Factored out from
9499 memory_xfer_partial_1.
9501 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9503 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9506 2014-03-21 Pedro Alves <palves@redhat.com>
9508 * infrun.c (normal_stop): Extend comment.
9510 2014-03-21 Hui Zhu <hui@codesourcery.com>
9511 Pedro Alves <palves@redhat.com>
9513 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9515 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9516 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9517 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9519 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9521 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9522 `z' formatted output modifier.
9524 2014-03-20 Tom Tromey <tromey@redhat.com>
9525 Sergio Durigan Junior <sergiodj@redhat.com>
9527 * probe.c (parse_probes): Turn assert into an ordinary error.
9528 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9529 exceptions when parsing probes. Rearrange the code for clarity.
9531 2014-03-20 Tom Tromey <tromey@redhat.com>
9534 * top.c (execute_command): Only dispatch events if the command
9537 2014-03-20 Tom Tromey <tromey@redhat.com>
9540 * infcall.c: Include event-top.h.
9541 (run_inferior_call): Call async_disable_stdin if needed.
9543 2014-03-20 Pedro Alves <palves@redhat.com>
9545 * infrun.c (prepare_to_proceed): Delete.
9546 (thread_still_needs_step_over): New function.
9547 (find_thread_needs_step_over): New function.
9548 (proceed): If the current thread needs a step-over, set its
9549 steping_over_breakpoint flag. Adjust to use
9550 find_thread_needs_step_over instead of prepare_to_proceed.
9551 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9552 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9554 (switch_back_to_stepped_thread): Step over breakpoints of all
9555 threads not the stepping thread, before switching back to the
9558 2014-03-20 Pedro Alves <palves@redhat.com>
9560 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9562 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9563 * infrun.c (saved_singlestep_ptid)
9564 (stepping_past_singlestep_breakpoint): Delete.
9565 (resume): Remove stepping_past_singlestep_breakpoint handling.
9566 (proceed): Store the prev_pc of the stepping thread too.
9567 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9569 (enum infwait_states): Delete infwait_thread_hop_state.
9570 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9572 (handle_inferior_event): Adjust.
9573 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9574 handling and the thread-hop code. Before removing single-step
9575 breakpoints, check whether the thread hit a single-step breakpoint
9576 of another thread. If it did, the trap is not a random signal.
9577 (switch_back_to_stepped_thread): If the event thread hit a
9578 single-step breakpoint, unblock it before switching to the
9579 stepping thread. Handle the case of the stepped thread having
9581 (keep_going): Handle the case of the current thread moving past a
9582 single-step breakpoint.
9584 2014-03-20 Pedro Alves <palves@redhat.com>
9587 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9588 are being stepped over.
9589 (breakpoint_address_match): Make extern.
9590 * breakpoint.h (breakpoint_address_match): New declaration.
9591 * inferior.h (stepping_past_instruction_at): New declaration.
9592 * infrun.c (struct step_over_info): New type.
9593 (step_over_info): New global.
9594 (set_step_over_info, clear_step_over_info)
9595 (stepping_past_instruction_at): New functions.
9596 (handle_inferior_event): Clear the step-over info when
9597 trap_expected is cleared.
9598 (resume): Remove now stale comment.
9599 (clear_proceed_status): Clear step-over info.
9600 (proceed): Adjust step-over handling to set or clear the step-over
9601 info instead of removing all breakpoints.
9602 (handle_signal_stop): When setting up a thread-hop, don't remove
9604 (stop_stepping): Clear step-over info.
9605 (keep_going): Adjust step-over handling to set or clear step-over
9606 info and then always inserting breakpoints, instead of removing
9607 all breakpoints when stepping over one.
9609 2014-03-20 Pedro Alves <palves@redhat.com>
9611 * infrun.c (previous_inferior_ptid): Adjust comment.
9612 (deferred_step_ptid): Delete.
9613 (infrun_thread_ptid_changed, prepare_to_proceed)
9614 (init_wait_for_inferior): Adjust.
9615 (handle_signal_stop): Delete deferred_step_ptid handling.
9617 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9620 * defs.h (sync_quit_force_run): New declaration.
9621 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9622 * event-top.c (async_sigterm_handler): New declaration.
9623 (async_sigterm_token): New variable.
9624 (async_init_signals): Create also async_sigterm_token.
9625 (async_sigterm_handler): New function.
9626 (sync_quit_force_run): New variable.
9627 (handle_sigterm): Replace quit_force call by other calls.
9628 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9630 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9632 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9633 offset into SPE pseudo registers.
9635 2014-03-18 Pedro Alves <palves@redhat.com>
9638 * inferior.h (print_stop_event): Declare.
9639 * infrun.c (print_stop_event): New, factored out from ...
9640 (normal_stop): ... this.
9641 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9642 of bpstat_print/print_stack_frame.
9644 2014-03-17 Tom Tromey <tromey@redhat.com>
9646 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9648 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9650 * ada-lang.c (decode_constrained_packed_array): Perform a
9651 minimal coercion for reference with coerce_ref instead of
9654 2014-03-17 Tristan Gingold <gingold@adacore.com>
9656 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9657 (darwin_solib_create_inferior_hook): Emit a warning if version
9660 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9662 * python/py-value.c (get_field_flag): Cast flag_name argument to
9663 PyObject_GetAttrString to support Python 2.4.
9665 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9667 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9668 (Global Maintainers): Remove Jan Kratochvil.
9670 2014-03-14 Pedro Alves <palves@redhat.com>
9672 * inferior.h (terminal_ours_for_output): Rename to ...
9673 (child_terminal_ours_for_output): ... this.
9674 (terminal_save_ours): Rename to ...
9675 (child_terminal_save_ours): ... this.
9676 (terminal_ours): Rename to ...
9677 (child_terminal_ours): ... this.
9678 (terminal_inferior): Rename to ...
9679 (child_terminal_inferior): ... this.
9680 (terminal_init_inferior): Rename to ...
9681 (child_terminal_init_inferior): ... this.
9682 (terminal_init_inferior_with_pgrp): Rename to ...
9683 (child_terminal_init_inferior_with_pgrp): ... this.
9684 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9685 (child_terminal_init_with_pgrp): ... this.
9686 (terminal_save_ours): Rename to ...
9687 (child_terminal_save_ours): ... this.
9688 (terminal_init_inferior): Rename to ...
9689 (child_terminal_init): ... this. Adjust.
9690 (terminal_inferior): Rename to ...
9691 (child_terminal_inferior): ... this.
9692 (terminal_ours_for_output): Rename to ...
9693 (child_terminal_ours_for_output): ... this. Adjust.
9694 (terminal_ours): Rename to ...
9695 (child_terminal_ours): ... this.
9696 (terminal_ours_1): Rename to ...
9697 (child_terminal_ours_1): ... this. Adjust.
9698 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9699 * windows-nat.c (do_initial_windows_stuff): Adjust.
9700 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9701 (gnu_terminal_init): ... this. Adjust.
9702 (gnu_target): Adjust.
9703 * inf-child.c (inf_child_target): Adjust.
9705 2014-03-13 Doug Evans <xdje42@gmail.com>
9708 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9711 2014-03-13 Doug Evans <xdje42@gmail.com>
9713 * value.c (record_latest_value): Call release_value_or_incref
9714 instead of release_value.
9716 2014-03-13 Pedro Alves <palves@redhat.com>
9718 * procfs.c (procfs_target): Don't override to_shortname,
9719 to_longname or to_doc.
9721 2014-03-13 Pedro Alves <palves@redhat.com>
9723 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9724 Unix in user visible strings.
9726 2014-03-12 Stan Shebs <stan@codesourcery.com>
9728 * gdbtypes.h: Annotate comments for Doxygen, add a page
9729 block comment with some general info.
9731 2014-03-12 Pedro Alves <palves@redhat.com>
9733 * infcmd.c (prepare_execution_command): New function, factored out
9734 from several execution commands.
9735 (run_command_1, continue_command, step_1, jump_command)
9736 (signal_command, until_command, advance_command, finish_command)
9737 (attach_command): Use prepare_execution_command.
9739 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9741 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9744 (struct arm_linux_thread_points): Removed.
9745 (struct arm_linux_process_info): New.
9746 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9747 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9748 (arm_linux_find_breakpoints_by_tid): Removed.
9749 (struct arch_lwp_info): New.
9750 (arm_linux_find_process_pid): New functions.
9751 (arm_linux_add_process): New functions.
9752 (arm_linux_process_info_get): New functions.
9753 (arm_linux_forget_process): New function.
9754 (arm_linux_get_debug_reg_state): New function.
9755 (struct update_registers_data): New.
9756 (update_registers_callback): New function.
9757 (arm_linux_insert_hw_breakpoint1): Updated.
9758 (arm_linux_remove_hw_breakpoint1): Updated.
9759 (arm_linux_insert_hw_breakpoint): Updated.
9760 (arm_linux_remove_hw_breakpoint): Updated.
9761 (arm_linux_insert_watchpoint): Updated.
9762 (arm_linux_remove_watchpoint): Updated.
9763 (arm_linux_new_thread): Updated.
9764 (arm_linux_prepare_to_resume): New function.
9765 (arm_linux_new_fork): New function.
9766 (_initialize_arm_linux_nat): Updated.
9768 2014-03-12 Pedro Alves <palves@redhat.com>
9770 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9772 2014-03-12 Tom Tromey <tromey@redhat.com>
9774 * inf-child.c (return_zero): New function.
9775 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9776 * aix-thread.c (aix_thread_inferior_created): New function.
9777 (aix_thread_attach): Remove.
9778 (init_aix_thread_ops): Don't set to_attach.
9779 (_initialize_aix_thread): Register inferior_created observer.
9780 * corelow.c (init_core_ops): Don't set to_attach or
9782 * exec.c (init_exec_ops): Don't set to_attach or
9784 * infcmd.c (run_command_1): Use find_run_target. Make direct
9786 (attach_command): Use find_attach_target. Make direct target
9788 * record-btrace.c (init_record_btrace_ops): Don't set
9790 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9792 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9793 set to_create_inferior.
9794 * target.c (complete_target_initialization): Add assertion.
9795 (target_create_inferior): Remove.
9796 (find_default_attach, find_default_create_inferior): Remove.
9797 (find_attach_target, find_run_target): New functions.
9798 (find_default_is_async_p, find_default_can_async_p)
9799 (target_supports_non_stop, target_attach): Remove.
9800 (init_dummy_target): Don't set to_create_inferior or
9801 to_supports_non_stop.
9802 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9803 TARGET_DEFAULT_FUNC.
9804 <to_create_inferior>: Add comment.
9805 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9806 TARGET_DEFAULT_RETURN.
9807 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9808 (find_attach_target, find_run_target): Declare.
9809 (target_create_inferior): Remove.
9810 (target_has_execution_1): Update comment.
9811 (target_supports_non_stop): Remove.
9812 * target-delegates.c: Rebuild.
9814 2014-03-12 Pedro Alves <palves@redhat.com>
9816 * inf-child.h: Update comment to not mention Unix.
9818 2014-03-12 Pedro Alves <palves@redhat.com>
9820 * inf-child.c: Update top comment to not mention Unix. Add
9821 generic comment describing how this target is meant to be used.
9822 (inf_child_post_attach, inf_child_post_startup_inferior)
9823 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9826 2014-03-12 Pedro Alves <palves@redhat.com>
9828 * nto-procfs.c: Include inf-child.h.
9829 (procfs_ops): Delete global.
9830 (procfs_can_run): Delete method.
9831 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9832 target pointer instead of referencing procfs_ops.
9833 (procfs_prepare_to_store): Delete.
9834 (init_procfs_ops): Delete function.
9835 (procfs_target): New function, based on init_procfs_ops, but
9836 inherit inf_child_target.
9837 (_initialize_procfs): Use procfs_target.
9839 2014-03-12 Pedro Alves <palves@redhat.com>
9841 * windows-nat.c: Include inf-child.h.
9842 (windows_ops): Delete global.
9843 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9845 (init_windows_ops): Delete function.
9846 (windows_target): New function, based on init_windows_ops, but
9847 inherit inf_child_target.
9848 (_initialize_windows_nat): Use windows_target. Install x86
9849 specific target methods here.
9851 2014-03-10 Doug Evans <xdje42@gmail.com>
9853 * guile/guile.c (call_initialize_gdb_module): New function.
9854 (initialize_guile): Replace call to scm_init_guile with call to
9857 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9859 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9860 in call to TYPE_CODE macro.
9862 2014-03-10 Jerome Guitton <guitton@adacore.com>
9864 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9865 Resolve tagged types to full view.
9867 2014-03-10 Hui Zhu <hui@codesourcery.com>
9869 * target.h (target_insert_breakpoint): Remove "hardware" from its
9872 2014-03-07 Doug Evans <dje@google.com>
9874 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9876 2014-03-07 Doug Evans <dje@google.com>
9878 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9879 Remove unused local comp_dir_attr. Assert exactly one of
9880 stub_comp_unit_die, stub_comp_dir is non-NULL.
9882 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9884 * target.h (complete_target_initialization, add_target):
9887 2014-03-07 Pedro Alves <palves@redhat.com>
9889 * go32-nat.c: Include inf-child.h.
9890 (go32_ops): Delete global.
9891 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9893 (go32_create_inferior): Push the passed in target pointer instead
9894 of referencing go32_ops.
9895 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9896 (go32_target): New function, based on init_go32_ops, but inherit
9898 (_initialize_go32_nat): Use go32_target. Move parts of
9901 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9903 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9904 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9905 SYMBOL_VALUE_ADDRESS.
9906 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9908 2014-03-06 Yao Qi <yao@codesourcery.com>
9910 * breakpoint.c (get_tracepoint_by_number): Remove argument
9911 optional_p. All callers updated. Adjust comments. Update
9913 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9915 2014-03-06 Yao Qi <yao@codesourcery.com>
9917 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9918 early if get_number returns zero. Use 'p' instead of 'args'.
9920 2014-03-06 Yao Qi <yao@codesourcery.com>
9922 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9925 2014-03-06 Yao Qi <yao@codesourcery.com>
9927 PR breakpoints/16508
9928 * tracepoint.c (check_trace_running): New function.
9929 (trace_find_command): Move code to check_trace_running and
9930 call check_trace_running.
9931 (trace_find_pc_command): Likewise.
9932 (trace_find_tracepoint_command): Likewise.
9933 (trace_find_line_command): Likewise.
9934 (trace_find_range_command): Likewise.
9935 * tracepoint.h (check_trace_running): Likewise.
9936 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9938 2014-03-06 Yao Qi <yao@codesourcery.com>
9940 * target.h (struct target_ops) <to_traceframe_info>: Use
9941 TARGET_DEFAULT_NORETURN (tcomplain ()).
9942 * target-delegates.c: Regenerated.
9944 2014-03-05 Pedro Alves <palves@redhat.com>
9947 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9948 void. Update comment.
9949 (dcache_xfer_memory): Delete.
9950 (dcache_read_memory_partial): New, based on the read bits of
9952 (dcache_update): Add status parameter. Use ULONGEST for len, and
9953 adjust. Discard cache lines if the reason for the update was
9955 * dcache.h (dcache_xfer_memory): Delete declaration.
9956 (dcache_read_memory_partial): New declaration.
9957 (dcache_update): Update prototype.
9958 * target.c (raw_memory_xfer_partial): Update the dcache here.
9959 (memory_xfer_partial_1): Don't handle dcache writes here.
9961 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9963 * remote-sim.c (gdbsim_load): Add const to prog.
9965 2014-03-03 Tom Tromey <tromey@redhat.com>
9967 * elfread.c (probe_key): Change to bfd_data.
9968 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9969 now per-BFD, not per-objfile.
9970 * stap-probe.c (stap_probe_destroy): Update comment.
9971 (handle_stap_probe): Allocate on the per-BFD obstack.
9973 2014-03-03 Tom Tromey <tromey@redhat.com>
9975 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9976 * breakpoint.c (create_longjmp_master_breakpoint): Use
9978 (add_location_to_breakpoint, bkpt_probe_insert_location)
9979 (bkpt_probe_remove_location): Update.
9980 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9981 * elfread.c (elf_symfile_relocate_probe): Remove.
9982 (elf_probe_fns): Update.
9983 (insert_exception_resume_breakpoint): Change type of "probe"
9984 parameter to bound_probe.
9985 (check_exception_resume): Update.
9986 * objfiles.c (objfile_relocate1): Don't relocate probes.
9987 * probe.c (bound_probe_s): New typedef.
9988 (parse_probes): Use get_probe_address. Set sal's objfile.
9989 (find_probe_by_pc): Return a bound_probe.
9990 (collect_probes): Return a VEC(bound_probe_s).
9991 (compare_probes): Update.
9992 (gen_ui_out_table_header_info): Change type of "probes"
9994 (info_probes_for_ops): Update.
9995 (get_probe_address): New function.
9996 (probe_safe_evaluate_at_pc): Update.
9997 * probe.h (struct probe_ops) <get_probe_address>: New field.
9998 <set_semaphore, clear_semaphore>: Add objfile parameter.
9999 (struct probe) <objfile>: Remove field.
10001 <address>: Update comment.
10002 (struct bound_probe): New.
10003 (find_probe_by_pc): Return a bound_probe.
10004 (get_probe_address): Declare.
10005 * solib-svr4.c (struct probe_and_action) <address>: New field.
10006 (hash_probe_and_action, equal_probe_and_action): Update.
10007 (register_solib_event_probe): Add address parameter.
10008 (solib_event_probe_at): Update.
10009 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10011 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10012 (stap_get_probe_address): New function.
10013 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10014 (compile_probe_arg): Update.
10015 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10017 (handle_stap_probe): Don't relocate the probe.
10018 (stap_relocate): Remove.
10019 (stap_gen_info_probes_table_values): Update.
10020 (stap_probe_ops): Remove stap_relocate.
10021 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10022 (debug_sym_probe_fns): Update.
10023 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10024 * symtab.c (init_sal): Use memset.
10025 * symtab.h (struct symtab_and_line) <objfile>: New field.
10026 * tracepoint.c (start_tracing, stop_tracing): Update.
10028 2014-03-03 Tom Tromey <tromey@redhat.com>
10030 * probe.h (parse_probes, find_probe_by_pc)
10031 (find_probes_in_objfile): Fix comments.
10033 2014-03-02 Doug Evans <xdje42@gmail.com>
10035 * infrun.c (handle_signal_stop): Replace test for
10036 TARGET_WAITKIND_STOPPED with an assert.
10038 2014-03-02 Doug Evans <xdje42@gmail.com>
10040 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10042 2014-03-02 Doug Evans <xdje42@gmail.com>
10044 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10046 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10048 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10052 * i386obsd-nat.c: Include "obsd-nat.h".
10053 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10055 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10057 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10059 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10061 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10063 * mips64obsd-nat.c: Include "obsd-nath".
10064 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10066 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10070 * amd64obsd-nat.c: Include "obsd-nat,h.
10071 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10073 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10075 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10077 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10078 (find_overload_match): Update call to find_oload_champ.
10079 (find_oload_champ_namespace_loop): Likewise
10081 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10083 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10085 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10086 * config/sparc/obsd64.mh: New file.
10087 * sparc64obsd-nat.c: New file.
10089 * obsd-nat.h: New file.
10090 * obsd-nat.c: New file.
10091 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10092 (ALLDEPFILES): Add obsd-nat.c.
10094 2014-02-28 Tom Tromey <tromey@redhat.com>
10096 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10097 * cli-out.h (cli_ui_out_impl): Now const.
10098 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10099 * ui-out.c (struct ui_out) <impl>: Now const.
10100 (default_ui_out_impl): Now const.
10101 (ui_out_new): Make 'impl' parameter const.
10102 * ui-out.h (ui_out_new): Update.
10104 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10106 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10108 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10110 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10112 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10114 Additional PR 8882 fix.
10115 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10117 2014-02-27 Pedro Alves <palves@redhat.com>
10119 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10122 2014-02-27 Pedro Alves <palves@redhat.com>
10125 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10126 * nat/linux-waitpid.c: Include string.h.
10127 (status_to_str): Moved here and made extern.
10128 * nat/linux-waitpid.h (status_to_str): New declaration.
10130 2014-02-27 Hui Zhu <hui@codesourcery.com>
10133 * infrun.c (ptid_match): Move ...
10134 * common/ptid.c (ptid_match): ... here.
10135 * inferior.h (ptid_match): Move ...
10136 * common/ptid.h (ptid_match): ... here.
10138 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10140 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10141 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10144 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10146 * obsd-tdep.c (obsd_auxv_parse): New function.
10147 (obsd_init_abi): Set auxv_parse.
10149 * gdbarch.sh (auxv_parse): New.
10150 * gdbarch.h: Regenerated.
10151 * gdbarch.c: Regenerated.
10152 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10154 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10156 * guile/scm-value.c (gdbscm_history_append_x): New function.
10157 (value_functions): Add it.
10159 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10161 * dwarf2read.c (attr_value_as_address): New function.
10162 (dwarf2_find_base_address, read_call_site_scope): Use
10163 attr_value_as_address in place of DW_ADDR.
10164 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10165 the low and high addresses. Slight rework of the handling
10166 of the high pc being a constant form, and limit it to
10167 DWARF verson 4 or higher.
10168 (dwarf2_record_block_ranges): Likewise.
10169 (read_partial_die): Likewise.
10170 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10172 2014-02-26 Tom Tromey <tromey@redhat.com>
10174 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10176 2014-02-26 Tom Tromey <tromey@redhat.com>
10178 * elfread.c (elf_read_minimal_symbols): Return early if
10179 minimal symbols have already been read. Add "ei" parameter.
10180 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10181 * minsyms.c (prim_record_minimal_symbol_full): Update.
10182 * objfiles.h (struct objstats) <n_minsyms>: Move...
10183 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10184 * symmisc.c (print_objfile_statistics): Update.
10186 2014-02-26 Tom Tromey <tromey@redhat.com>
10188 * elfread.c (elf_read_minimal_symbols): New function, from
10190 (elf_symfile_read): Call it.
10192 2014-02-26 Tom Tromey <tromey@redhat.com>
10194 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10195 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10196 (lookup_minimal_symbol_solib_trampoline)
10197 (lookup_minimal_symbol_by_pc_section_1)
10198 (lookup_minimal_symbol_and_objfile): Update.
10199 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10200 Don't allocate a minimal symbol if minsyms have already been read.
10201 (build_minimal_symbol_hash_tables): Update.
10202 (install_minimal_symbols): Do nothing if minsyms already read.
10203 Use the per-BFD obstack.
10204 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10205 * objfiles.c (allocate_objfile): Call
10206 terminate_minimal_symbol_table later.
10207 (have_minimal_symbols): Update.
10208 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10209 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10210 Move from struct objfile.
10211 <minsyms_read>: New field.
10212 (struct objfile) <msymbols, minimal_symbol_count,
10213 msymbol_hash, msymbol_demangled_hash>: Move.
10214 (ALL_OBJFILE_MSYMBOLS): Update.
10215 * symfile.c (read_symbols): Set minsyms_read.
10216 (reread_symbols): Update.
10217 * symmisc.c (dump_objfile, dump_msymbols): Update.
10219 2014-02-26 Tom Tromey <tromey@redhat.com>
10221 * minsyms.c (msymbols_sort): Remove.
10222 * minsyms.h (msymbols_sort): Remove.
10223 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10224 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10225 * elfread.c (elf_symtab_read): Don't add section offsets.
10226 * xcoffread.c (record_minimal_symbol): Don't add section offset
10227 to minimal symbol address.
10228 * somread.c (text_offset, data_offset): Remove.
10229 (som_symtab_read): Don't add section offsets to minimal symbol
10231 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10232 Don't add section offsets to minimal symbols.
10233 * coffread.c (coff_symtab_read): Don't add section offsets
10234 to minimal symbol addresses.
10235 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10236 to minimal symbol addresses.
10237 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10238 section offset to minimal symbol addresses.
10239 * mdebugread.c (parse_partial_symbols): Don't add section
10240 offset to minimal symbol addresses.
10241 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10242 offset to minimal symbol addresses.
10244 2014-02-26 Tom Tromey <tromey@redhat.com>
10246 * ada-lang.c (ada_main_name): Update.
10247 (ada_add_standard_exceptions): Update.
10248 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10249 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10250 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10251 * auxv.c (ld_so_xfer_auxv): Update.
10252 * avr-tdep.c (avr_scan_prologue): Update.
10253 * ax-gdb.c (gen_var_ref): Update.
10254 * blockframe.c (get_pc_function_start)
10255 (find_pc_partial_function_gnu_ifunc): Update.
10256 * breakpoint.c (create_overlay_event_breakpoint)
10257 (create_longjmp_master_breakpoint)
10258 (create_std_terminate_master_breakpoint)
10259 (create_exception_master_breakpoint): Update.
10260 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10261 * c-valprint.c (c_val_print): Update.
10262 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10263 * common/agent.c (agent_look_up_symbols): Update.
10264 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10265 * dwarf2loc.c (call_site_to_target_addr): Update.
10266 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10267 * elfread.c (elf_gnu_ifunc_record_cache)
10268 (elf_gnu_ifunc_resolve_by_got): Update.
10269 * findvar.c (default_read_var_value): Update.
10270 * frame.c (inside_main_func): Update.
10271 * frv-tdep.c (frv_frame_this_id): Update.
10272 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10273 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10275 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10276 (hppa_hpux_find_dummy_bpaddr): Update.
10277 * hppa-tdep.c (hppa_symbol_address): Update.
10278 * infcmd.c (until_next_command): Update.
10279 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10281 * linespec.c (minsym_found, add_minsym): Update.
10282 * linux-nat.c (get_signo): Update.
10283 * linux-thread-db.c (inferior_has_bug): Update.
10284 * m32c-tdep.c (m32c_return_value)
10285 (m32c_m16c_address_to_pointer): Update.
10286 * m32r-tdep.c (m32r_frame_this_id): Update.
10287 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10288 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10289 * maint.c (maintenance_translate_address): Update.
10290 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10291 (frob_address): New function.
10292 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10293 frob_address. Rename parameter to "pc_in".
10294 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10296 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10298 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10299 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10300 * objc-lang.c (find_objc_msgsend): Update.
10301 * objfiles.c (objfile_relocate1): Update.
10302 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10303 * p-valprint.c (pascal_val_print): Update.
10304 * parse.c (write_exp_msymbol): Update.
10305 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10306 (ppc_elfv2_skip_entrypoint): Update.
10307 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10308 * printcmd.c (build_address_symbolic, msym_info)
10309 (address_info): Update.
10310 * proc-service.c (ps_pglobal_lookup): Update.
10311 * psymtab.c (find_pc_sect_psymtab_closer)
10312 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10313 Change msymbol parameter to bound_minimal_symbol.
10314 * ravenscar-thread.c (get_running_thread_id): Update.
10315 * remote.c (remote_check_symbols): Update.
10316 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10318 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10319 * solib-dsbt.c (lm_base): Update.
10320 * solib-frv.c (lm_base, main_got): Update.
10321 * solib-irix.c (locate_base): Update.
10322 * solib-som.c (som_solib_create_inferior_hook)
10323 (link_map_start): Update.
10324 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10325 * solib-svr4.c (elf_locate_base, enable_break): Update.
10326 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10327 (flush_ea_cache): Update.
10328 * stabsread.c (define_symbol, scan_file_globals): Update.
10329 * stack.c (find_frame_funname): Update.
10330 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10331 (debug_qf_find_pc_sect_symtab): Update.
10332 * symfile.c (simple_read_overlay_table)
10333 (simple_overlay_update): Update.
10334 * symfile.h (struct quick_symbol_functions)
10335 <find_pc_sect_symtab>: Change type of msymbol to
10336 bound_minimal_symbol.
10337 * symmisc.c (dump_msymbols): Update.
10338 * symtab.c (find_pc_sect_symtab_via_partial)
10339 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10340 (search_symbols, print_msymbol_info): Update.
10341 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10342 (MSYMBOL_VALUE_ADDRESS): Redefine.
10343 (BMSYMBOL_VALUE_ADDRESS): New macro.
10344 * tracepoint.c (scope_info): Update.
10345 * tui/tui-disasm.c (tui_find_disassembly_address)
10346 (tui_get_begin_asm_address): Update.
10347 * valops.c (find_function_in_inferior): Update.
10348 * value.c (value_static_field, value_fn_field): Update.
10350 2014-02-26 Tom Tromey <tromey@redhat.com>
10352 * ada-lang.c (ada_update_initial_language): Update.
10353 (ada_main_name, ada_has_this_exception_support): Update.
10354 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10355 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10356 * arm-tdep.c (arm_skip_stub): Update.
10357 * auxv.c (ld_so_xfer_auxv): Update.
10358 * avr-tdep.c (avr_scan_prologue): Update.
10359 * ax-gdb.c (gen_var_ref): Update.
10360 * breakpoint.c (struct breakpoint_objfile_data)
10361 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10362 type to bound_minimal_symbol.
10363 (create_overlay_event_breakpoint)
10364 (create_longjmp_master_breakpoint)
10365 (create_std_terminate_master_breakpoint)
10366 (create_exception_master_breakpoint): Update.
10367 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10368 * c-exp.y (classify_name): Update.
10369 * coffread.c (coff_symfile_read): Update.
10370 * common/agent.c (agent_look_up_symbols): Update.
10371 * d-lang.c (d_main_name): Update.
10372 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10373 * dec-thread.c (enable_dec_thread): Update.
10374 * dwarf2loc.c (call_site_to_target_addr): Update.
10375 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10376 * eval.c (evaluate_subexp_standard): Update.
10377 * findvar.c (struct minsym_lookup_data) <result>: Change type
10378 to bound_minimal_symbol.
10380 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10381 * frame.c (inside_main_func): Update.
10382 * frv-tdep.c (frv_frame_this_id): Update.
10383 * gcore.c (call_target_sbrk): Update.
10384 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10385 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10387 * go-lang.c (go_main_name): Update.
10388 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10389 (hppa_hpux_find_import_stub_for_addr): Update.
10390 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10391 Update. Change return type.
10392 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10394 * jit.c (jit_breakpoint_re_set_internal): Update.
10395 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10397 * linux-nat.c (get_signo): Update.
10398 * linux-thread-db.c (inferior_has_bug): Update
10399 * m32c-tdep.c (m32c_return_value)
10400 (m32c_m16c_address_to_pointer): Update.
10401 * m32r-tdep.c (m32r_frame_this_id): Update.
10402 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10403 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10404 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10405 lookup_minimal_symbol. Change return type.
10406 (lookup_minimal_symbol): Remove.
10407 (lookup_bound_minimal_symbol): Update.
10408 (lookup_minimal_symbol_text): Change return type.
10409 (lookup_minimal_symbol_solib_trampoline): Change return type.
10410 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10411 (lookup_minimal_symbol_solib_trampoline): Change return type.
10412 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10413 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10414 (value_nsstring, find_imps): Update.
10415 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10416 * p-lang.c (pascal_main_name): Update.
10417 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10418 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10419 * proc-service.c (ps_pglobal_lookup): Update.
10420 * ravenscar-thread.c (get_running_thread_msymbol): Change
10422 (has_ravenscar_runtime, get_running_thread_id): Update.
10423 * remote.c (remote_check_symbols): Update.
10424 * sol-thread.c (ps_pglobal_lookup): Update.
10425 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10426 * solib-dsbt.c (lm_base): Update.
10427 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10429 * solib-irix.c (locate_base): Update.
10430 * solib-som.c (som_solib_create_inferior_hook)
10431 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10433 * solib-spu.c (spu_enable_break): Update.
10434 * solib-svr4.c (elf_locate_base, enable_break): Update.
10435 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10436 (flush_ea_cache): Update.
10437 * stabsread.c (define_symbol): Update.
10438 * symfile.c (simple_read_overlay_table): Update.
10439 * symtab.c (find_pc_sect_line): Update.
10440 * tracepoint.c (scope_info): Update.
10441 * tui-disasm.c (tui_get_begin_asm_address): Update.
10442 * value.c (value_static_field): Update.
10444 2014-02-26 Tom Tromey <tromey@redhat.com>
10446 * minsyms.c (prim_record_minimal_symbol_full): Use
10447 SET_MSYMBOL_VALUE_ADDRESS.
10448 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10449 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10450 SET_MSYMBOL_VALUE_ADDRESS.
10451 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10452 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10454 2014-02-26 Tom Tromey <tromey@redhat.com>
10456 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10457 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10458 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10459 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10460 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10461 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10462 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10463 * ada-lang.c (ada_main_name): Update.
10464 (ada_lookup_simple_minsym): Update.
10465 (ada_make_symbol_completion_list): Update.
10466 (ada_add_standard_exceptions): Update.
10467 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10468 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10469 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10470 * arm-tdep.c (skip_prologue_function): Update.
10471 (arm_skip_stack_protector, arm_skip_stub): Update.
10472 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10473 (arm_wince_skip_main_prologue): Update.
10474 * auxv.c (ld_so_xfer_auxv): Update.
10475 * avr-tdep.c (avr_scan_prologue): Update.
10476 * ax-gdb.c (gen_var_ref): Update.
10477 * block.c (call_site_for_pc): Update.
10478 * blockframe.c (get_pc_function_start): Update.
10479 (find_pc_partial_function_gnu_ifunc): Update.
10480 * breakpoint.c (create_overlay_event_breakpoint): Update.
10481 (create_longjmp_master_breakpoint): Update.
10482 (create_std_terminate_master_breakpoint): Update.
10483 (create_exception_master_breakpoint): Update.
10484 (resolve_sal_pc): Update.
10485 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10486 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10488 * c-valprint.c (c_val_print): Update.
10489 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10490 * coffread.c (coff_symfile_read): Update.
10491 * common/agent.c (agent_look_up_symbols): Update.
10492 * dbxread.c (find_stab_function_addr): Update.
10493 (end_psymtab): Update.
10494 * dwarf2loc.c (call_site_to_target_addr): Update.
10495 (func_verify_no_selftailcall): Update.
10496 (tailcall_dump): Update.
10497 (call_site_find_chain_1): Update.
10498 (dwarf_expr_reg_to_entry_parameter): Update.
10499 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10500 (elf_gnu_ifunc_resolve_by_got): Update.
10501 * f-valprint.c (info_common_command): Update.
10502 * findvar.c (read_var_value): Update.
10503 * frame.c (get_prev_frame_1): Update.
10504 (inside_main_func): Update.
10505 * frv-tdep.c (frv_skip_main_prologue): Update.
10506 (frv_frame_this_id): Update.
10507 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10508 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10509 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10510 (gnuv3_skip_trampoline): Update.
10511 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10512 (hppa64_hpux_in_solib_call_trampoline): Update.
10513 (hppa_hpux_skip_trampoline_code): Update.
10514 (hppa64_hpux_search_dummy_call_sequence): Update.
10515 (hppa_hpux_find_import_stub_for_addr): Update.
10516 (hppa_hpux_find_dummy_bpaddr): Update.
10517 * hppa-tdep.c (hppa_symbol_address)
10518 (hppa_lookup_stub_minimal_symbol): Update.
10519 * i386-tdep.c (i386_skip_main_prologue): Update.
10520 (i386_pe_skip_trampoline_code): Update.
10521 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10522 * infcall.c (get_function_name): Update.
10523 * infcmd.c (until_next_command): Update.
10524 * jit.c (jit_breakpoint_re_set_internal): Update.
10525 (jit_inferior_init): Update.
10526 * linespec.c (minsym_found): Update.
10527 (add_minsym): Update.
10528 * linux-fork.c (info_checkpoints_command): Update.
10529 * linux-nat.c (get_signo): Update.
10530 * linux-thread-db.c (inferior_has_bug): Update.
10531 * m32c-tdep.c (m32c_return_value): Update.
10532 (m32c_m16c_address_to_pointer): Update.
10533 (m32c_m16c_pointer_to_address): Update.
10534 * m32r-tdep.c (m32r_frame_this_id): Update.
10535 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10536 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10537 * maint.c (maintenance_translate_address): Update.
10538 * minsyms.c (add_minsym_to_hash_table): Update.
10539 (add_minsym_to_demangled_hash_table): Update.
10540 (msymbol_objfile): Update.
10541 (lookup_minimal_symbol): Update.
10542 (iterate_over_minimal_symbols): Update.
10543 (lookup_minimal_symbol_text): Update.
10544 (lookup_minimal_symbol_by_pc_name): Update.
10545 (lookup_minimal_symbol_solib_trampoline): Update.
10546 (lookup_minimal_symbol_by_pc_section_1): Update.
10547 (lookup_minimal_symbol_and_objfile): Update.
10548 (prim_record_minimal_symbol_full): Update.
10549 (compare_minimal_symbols): Update.
10550 (compact_minimal_symbols): Update.
10551 (build_minimal_symbol_hash_tables): Update.
10552 (install_minimal_symbols): Update.
10553 (terminate_minimal_symbol_table): Update.
10554 (find_solib_trampoline_target): Update.
10555 (minimal_symbol_upper_bound): Update.
10556 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10557 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10558 (mips_skip_pic_trampoline_code): Update.
10559 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10560 * objc-lang.c (selectors_info): Update.
10561 (classes_info): Update.
10562 (find_methods): Update.
10563 (find_imps): Update.
10564 (find_objc_msgsend): Update.
10565 * objfiles.c (objfile_relocate1): Update.
10566 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10567 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10568 * p-valprint.c (pascal_val_print): Update.
10569 * parse.c (write_exp_msymbol): Update.
10570 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10571 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10572 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10573 * printcmd.c (build_address_symbolic): Update.
10574 (sym_info): Update.
10575 (address_info): Update.
10576 * proc-service.c (ps_pglobal_lookup): Update.
10577 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10578 (find_pc_sect_psymtab): Update.
10579 * python/py-framefilter.c (py_print_frame): Update.
10580 * ravenscar-thread.c (get_running_thread_id): Update.
10581 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10583 * remote.c (remote_check_symbols): Update.
10584 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10585 (rs6000_skip_trampoline_code): Update.
10586 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10587 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10588 * solib-dsbt.c (lm_base): Update.
10589 * solib-frv.c (lm_base): Update.
10590 (main_got): Update.
10591 * solib-irix.c (locate_base): Update.
10592 * solib-som.c (som_solib_create_inferior_hook): Update.
10593 (som_solib_desire_dynamic_linker_symbols): Update.
10594 (link_map_start): Update.
10595 * solib-spu.c (spu_enable_break): Update.
10596 (ocl_enable_break): Update.
10597 * solib-svr4.c (elf_locate_base): Update.
10598 (enable_break): Update.
10599 * spu-tdep.c (spu_get_overlay_table): Update.
10600 (spu_catch_start): Update.
10601 (flush_ea_cache): Update.
10602 * stabsread.c (define_symbol): Update.
10603 (scan_file_globals): Update.
10604 * stack.c (find_frame_funname): Update.
10605 (frame_info): Update.
10606 * symfile.c (simple_read_overlay_table): Update.
10607 (simple_overlay_update): Update.
10608 * symmisc.c (dump_msymbols): Update.
10609 * symtab.c (fixup_section): Update.
10610 (find_pc_sect_line): Update.
10611 (skip_prologue_sal): Update.
10612 (search_symbols): Update.
10613 (print_msymbol_info): Update.
10614 (rbreak_command): Update.
10615 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10616 (completion_list_objc_symbol): Update.
10617 (default_make_symbol_completion_list_break_on): Update.
10618 * tracepoint.c (scope_info): Update.
10619 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10620 (tui_get_begin_asm_address): Update.
10621 * valops.c (find_function_in_inferior): Update.
10622 * value.c (value_static_field): Update.
10623 (value_fn_field): Update.
10625 2014-02-26 Tom Tromey <tromey@redhat.com>
10627 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10628 bound minimal symbols. Move code that knows about minsym
10630 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10632 * minsyms.h (minimal_symbol_upper_bound): Declare.
10633 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10634 minimal_symbol_upper_bound.
10636 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10638 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10639 Use the type's name if its basic type does not have a tag.
10641 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10643 * dwarf2read.c (read_subrange_type): Add comment.
10645 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10647 * dwarf2read.c (update_enumeration_type_from_children): New
10648 function, mostly extracted from process_structure_scope.
10649 (read_enumeration_type): Call update_enumeration_type_from_children.
10650 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10651 and flag_flag_enum fields.
10653 2014-02-26 Pedro Alves <palves@redhat.com>
10655 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10656 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10657 to_xfer_partial method.
10659 2014-02-26 Pedro Alves <palves@redhat.com>
10661 * target.c (complete_target_initialization): Don't install
10662 default_xfer_partial as to_xfer_partial hook.
10663 (nomemory): Delete.
10664 (update_current_target): Don't INHERIT nor de_fault
10665 deprecated_xfer_memory. Delete de_fault macro.
10666 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10667 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10668 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10671 2014-02-26 Pedro Alves <palves@redhat.com>
10673 * go32-nat.c (my_write_child): New function.
10674 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10675 (go32_xfer_partial): New function.
10676 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10677 Instead install a to_xfer_partial hook.
10679 2014-02-26 Pedro Alves <palves@redhat.com>
10681 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10682 to_xfer_partial helper. Rewrite.
10683 (procfs_xfer_partial): New function.
10684 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10685 Install a to_xfer_partial hook.
10687 2014-02-26 Pedro Alves <palves@redhat.com>
10689 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10690 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10691 (m32r_xfer_partial): New function.
10692 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10693 Install a to_xfer_partial hook.
10695 2014-02-26 Pedro Alves <palves@redhat.com>
10697 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10699 (mips_xfer_partial): New function.
10700 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10701 hook. Install a to_xfer_partial hook.
10703 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10705 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10706 * gdbtypes.c (create_array_type_with_stride): New function,
10707 renaming create_array_type, but with an added parameter
10708 called "bit_stride".
10709 (create_array_type): Re-implement using
10710 create_array_type_with_stride.
10711 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10712 and DW_AT_bit_stride attributes.
10714 2014-02-26 Pedro Alves <palves@redhat.com>
10716 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10717 task-specific breakpoints.
10719 2014-02-25 Pedro Alves <palves@redhat.com>
10721 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10722 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10724 2014-02-25 Stan Shebs <stan@codesourcery.com>
10726 * defs.h: Annotate comments for Doxygen.
10728 2014-02-25 Tom Tromey <tromey@redhat.com>
10730 * target.h (target_ignore): Don't declare.
10731 * target.c (target_ignore): Remove.
10733 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10736 * auto-load.c (auto_load_objfile_script_1): Change filename to
10739 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10741 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10742 documentation. Adjust prototype to match the target_ops
10743 to_xfer_partial method. Adjust implementation accordingly.
10745 2014-02-25 Hui Zhu <hui@codesourcery.com>
10747 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10748 to_traceframe_info.
10750 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10752 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10753 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10754 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10755 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10756 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10757 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10758 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10759 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10761 (rl78_register_type): Use a data pointer type for SP and
10762 new pseudo registers mentioned above. Use a 16 bit integer
10763 type for all other register pairs.
10764 (rl78_register_name, rl78_g10_register_name): Update for
10765 new pseudo registers.
10766 (rl78_pseudo_register_read): Likewise.
10767 (rl78_pseudo_register_write): Likewise.
10768 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10769 to the newly added pseudo registers.
10771 2014-02-24 Doug Evans <dje@google.com>
10773 * value.c (record_latest_value): Fix comment.
10774 * printcmd.c (print_command_1): Remove code to handle -1 return from
10775 record_latest_value.
10777 2014-02-24 Pedro Alves <palves@redhat.com>
10779 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10780 deprecated_xfer_memory hook.
10781 (procfs_xfer_partial): Call procfs_xfer_memory instead
10782 of the deprecated_xfer_memory target hook.
10783 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10786 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10788 * windows-nat.c (windows_xfer_shared_libraries): Return
10789 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10790 requested object is TARGET_OBJECT_LIBRARIES.
10792 2014-02-24 Yao Qi <yao@codesourcery.com>
10794 * target.h (enum target_xfer_status)
10795 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10796 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10798 * corefile.c (memory_error_message): User updated.
10799 * exec.c (section_table_read_available_memory): Likewise.
10800 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10801 * target.c (target_xfer_status_to_string): Likewise.
10802 (raw_memory_xfer_partial): Likewise.
10803 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10804 * valops.c (read_value_memory): Likewise.
10805 * exec.h: Update comments.
10807 2014-02-24 Yao Qi <yao@codesourcery.com>
10809 * target.c (target_xfer_status_to_string): Rename argument err
10811 * target.h (target_xfer_status_to_string): Update declaration.
10812 Replace target_xfer_error_to_string with
10813 target_xfer_status_to_string in comment.
10815 2014-02-24 Yao Qi <yao@codesourcery.com>
10817 * mips-linux-nat.c (super_close): Update its type.
10818 (mips_linux_close): Pass 'self' to super_close.
10820 2014-02-24 Yao Qi <yao@codesourcery.com>
10822 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10823 * corefile.c (read_memory): Adjusted.
10824 * target.c (target_write_with_progress): Adjusted.
10826 2014-02-23 Yao Qi <yao@codesourcery.com>
10828 Revert two patches:
10830 2013-10-25 Yao Qi <yao@codesourcery.com>
10832 * remote.c (remote_traceframe_info): Return early if
10833 traceframe is not selected.
10835 2013-07-19 Yao Qi <yao@codesourcery.com>
10837 * target.c (update_current_target): Change the default action
10838 of 'to_traceframe_info' from tcomplain to return_zero.
10839 * target.h (struct target_ops) <to_traceframe_info>: Add more
10842 2014-02-23 Yao Qi <yao@codesourcery.com>
10844 * valops.c (read_value_memory): Rewrite it. Call
10845 target_xfer_partial in a loop.
10846 * exec.h (section_table_available_memory): Remove declaration.
10847 Move comments to ...
10848 * exec.c (section_table_available_memory): ... here. Make it
10851 2014-02-23 Yao Qi <yao@codesourcery.com>
10853 * exec.c (section_table_read_available_memory): New function.
10854 * exec.h (section_table_read_available_memory): Declare.
10855 * ctf.c (ctf_xfer_partial): Call
10856 section_table_read_available_memory.
10857 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10859 2014-02-23 Yao Qi <yao@codesourcery.com>
10861 * ctf.c (ctf_xfer_partial): Move code to ...
10862 * exec.c (exec_read_partial_read_only): ... it. New function.
10863 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10864 * tracefile.c: Include "exec.h".
10865 * exec.h (exec_read_partial_read_only): Declare.
10867 2014-02-23 Yao Qi <yao@codesourcery.com>
10869 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10870 (tfile_has_memory): Remove.
10871 (init_tfile_ops): Don't set fields to_has_all_memory and
10872 to_has_memory of tfile_ops.
10873 * tracefile.c (tracefile_has_all_memory): New function.
10874 (tracefile_has_memory): New function.
10875 (init_tracefile_ops): Initialize fields to_has_all_memory and
10876 to_has_memory of 'ops'.
10878 2014-02-23 Yao Qi <yao@codesourcery.com>
10880 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10881 (ctf_thread_alive, ctf_get_trace_status): Remove.
10882 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10883 init_tracefile_ops.
10884 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10885 (tfile_has_stack, tfile_has_registers): Remove.
10886 (tfile_thread_alive): Remove.
10887 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10888 init_tracefile_ops.
10889 * tracefile.c (tracefile_has_stack): New function.
10890 (tracefile_has_registers): New function.
10891 (tracefile_thread_alive): New function.
10892 (tracefile_get_trace_status): New function.
10893 (init_tracefile_ops): New function.
10894 * tracefile.h (init_tracefile_ops): Declare.
10896 2014-02-23 Yao Qi <yao@codesourcery.com>
10898 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10899 (O_LARGEFILE): Likewise.
10900 (tfile_ops): Likewise.
10901 (TRACE_HEADER_SIZE): Likewise.
10902 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10903 (cur_data_size): Likewise.
10904 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10905 (tfile_close, tfile_files_info): Likewise.
10906 (tfile_get_trace_status): Likewise.
10907 (tfile_get_tracepoint_status): Likewise.
10908 (tfile_get_traceframe_address): Likewise.
10909 (tfile_trace_find, match_blocktype): Likewise.
10910 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10911 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10912 (tfile_get_trace_state_variable_value): Likewise.
10913 (tfile_has_all_memory, tfile_has_memory): Likewise.
10914 (tfile_has_stack, tfile_has_registers): Likewise.
10915 (tfile_thread_alive, build_traceframe_info): Likewise.
10916 (tfile_traceframe_info, init_tfile_ops): Likewise.
10917 (_initialize_tracepoint): Don't call init_tfile_ops
10918 and add_target_with_completer.
10919 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10920 exec.h, completer.h and filenames.h.
10921 (_initialize_tracefile_tfile): New function.
10923 2014-02-23 Yao Qi <yao@codesourcery.com>
10925 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10927 (HFILES_NO_SRCDIR): Add tracefile.h.
10928 * ctf.c: Include "tracefile.h".
10929 * tracefile.h: New file.
10930 * tracefile.c: New file
10931 * tracefile-tfile.c: New file.
10932 * tracepoint.c: Include "tracefile.h".
10933 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10934 (stop_reason_names): Add const.
10935 (trace_file_writer_xfree): Move it to tracefile.c.
10936 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10937 (trace_save_ctf): Likewise.
10938 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10939 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10940 (tfile_write_header, tfile_write_regblock_type): Likewise.
10941 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10942 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10943 (tfile_write_raw_data, tfile_end): Likewise.
10944 (tfile_trace_file_writer_new): Likewise.
10945 (free_uploaded_tp): Make it extern.
10946 (free_uploaded_tsv): Make it extern.
10947 (_initialize_tracepoint): Move code to register command 'tsave'
10949 * tracepoint.h (stop_reason_names): Declare.
10950 (struct trace_frame_write_ops): Move it to tracefile.h.
10951 (struct trace_file_write_ops): Likewise.
10952 (struct trace_file_writer): Likewise.
10953 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10955 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10960 (get_cores_used_by_process): New parameter num_cores, use it.
10961 (linux_xfer_osdata_processes): Pass num_cores to it.
10962 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10965 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10967 * target.c (memory_xfer_partial): Fix length arg in call to
10968 breakpoint_xfer_memory.
10970 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10973 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10974 number comes after the + or - signs. Adjust length of register
10975 name to be extracted.
10977 2014-02-20 Tom Tromey <tromey@redhat.com>
10979 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10980 (ada_varobj_ops): Mark "extern".
10982 2014-02-20 Tom Tromey <tromey@redhat.com>
10984 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10986 2014-02-20 Doug Evans <xdje42@gmail.com>
10988 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10989 All callers updated.
10990 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10991 All callers updated.
10992 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10993 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10995 2014-02-20 lin zuojian <manjian2006@gmail.com>
10996 Joel Brobecker <brobecker@adacore.com>
10997 Doug Evans <xdje42@gmail.com>
11000 * dwarf2read.c (struct die_info): New member in_process.
11001 (reset_die_in_process): New function.
11002 (process_die): Set it at the start, reset when returning.
11003 (inherit_abstract_dies): Only call process_die if origin_child_die
11004 not already being processed.
11006 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11008 * windows-nat.c (handle_unload_dll): Add function documentation.
11009 (do_initial_windows_stuff): Add comment explaining why we wait
11010 until after inferior initialization has finished before
11011 processing all DLLs.
11013 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11015 * windows-nat.c (get_module_name): Delete.
11016 (windows_get_exec_module_filename): New function, mostly
11017 inspired from get_module_name.
11018 (windows_pid_to_exec_file): Replace call to get_module_name
11019 by call to windows_get_exec_module_filename.
11021 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11023 * windows-nat.c (handle_load_dll): Rewrite this function's
11024 introductory comment. Remove code using get_module_name
11025 to get the DLL's name.
11027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11029 * windows-nat.c (get_windows_debug_event): Ignore
11030 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11031 if windows_initialization_done == 0.
11032 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11033 Adjust implementation to always load all DLLs.
11034 (do_initial_windows_stuff): Replace call to
11035 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11039 * windows-nat.c (_initialize_windows_nat): Deprecate the
11040 "dll-symbols" command. Turn the "add-shared-symbol-files"
11041 and "assf" aliases into commands, and deprecate them as well.
11042 * NEWS: Add entry explaining that "dll-symbols" and its two
11043 aliases are now deprecated.
11045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11047 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11048 new-line in debug string. Remove trailing spaces.
11050 2014-02-19 Stan Shebs <stan@codesourcery.com>
11052 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11054 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11056 * NEWS: Add entry for the new feature
11057 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11060 2014-02-19 Stan Shebs <stan@codesourcery.com>
11062 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11064 2014-02-19 Pedro Alves <palves@redhat.com>
11066 * common/ptid.h (struct ptid): Mention that process_stratum
11067 targets should prefer ptid.lwp.
11069 2014-02-19 Pedro Alves <palves@redhat.com>
11071 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11072 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11073 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11074 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11075 store remote thread ids rather than ptid.tid.
11076 (_initialize_remote): Adjust.
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11080 * target.c (target_get_unwinder): Rewrite.
11081 (target_get_tailcall_unwinder): Rewrite.
11082 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11083 (record_btrace_to_get_tailcall_unwinder): New function.
11084 (init_record_btrace_ops): Update.
11085 * target.h (struct target_ops) <to_get_unwinder,
11086 to_get_tailcall_unwinder>: Now function pointers. Use
11087 TARGET_DEFAULT_RETURN.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11093 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11097 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11099 * target-delegates.c: Rebuild.
11100 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11101 TARGET_DEFAULT_FUNC.
11102 * target.c (default_target_decr_pc_after_break): Rename from
11103 forward_target_decr_pc_after_break. Simplify.
11104 (target_decr_pc_after_break): Rely on delegation.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target.c (update_current_target): Do not INHERIT to_doc or
11109 to_magic. Do not de_fault to_open or to_close.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * gcore.h (objfile_find_memory_regions): Declare.
11114 * gcore.c (objfile_find_memory_regions): No longer static. Add
11116 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11117 * exec.c: Include gcore.h.
11118 (exec_set_find_memory_regions): Remove.
11119 (exec_find_memory_regions): Remove.
11120 (exec_do_find_memory_regions): Remove.
11121 (init_exec_ops): Update.
11122 * defs.h (exec_set_find_memory_regions): Remove.
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * target-delegates.c: Rebuild.
11127 * target.h (struct target_ops) <to_extra_thread_info,
11128 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11129 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11130 not 0, in TARGET_DEFAULT_RETURN.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target.c (complete_target_initialization): Remove casts. Use
11135 return_zero_has_execution.
11136 (return_zero): Add "ignore" argument.
11137 (return_zero_has_execution): New function.
11138 (init_dummy_target): Remove casts. Use
11139 return_zero_has_execution.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.c (update_current_target): Update comments. Do not
11144 INHERIT to_stratum.
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11148 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11150 * corelow.c (core_read_description): Delegate when needed.
11151 * remote.c (remote_read_description): Delegate when needed.
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_read_description): Rewrite.
11154 * target.h (struct target_ops) <to_read_description>: Update
11155 comment. Use TARGET_DEFAULT_RETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11162 (find_default_run_target): Check against delegate_can_run.
11163 * target.h (struct target_ops) <to_can_run>: Use
11164 TARGET_DEFAULT_RETURN.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target-delegates.c: Rebuild.
11169 * target.c (target_disconnect): Unconditionally delegate.
11170 * target.h (struct target_ops) <to_disconnect>: Use
11171 TARGET_DEFAULT_NORETURN.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * record.c (record_stop): Unconditionally delegate.
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_stop_recording): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_stop_recording>: Use
11179 TARGET_DEFAULT_IGNORE.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (target_enable_btrace): Unconditionally delegate.
11185 * target.h (struct target_ops) <to_enable_btrace>: Use
11186 TARGET_DEFAULT_NORETURN.
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target-delegates.c: Rebuild.
11191 * target.c (target_read_btrace): Unconditionally delegate.
11192 * target.h (struct target_ops) <to_read_btrace>: Use
11193 TARGET_DEFAULT_NORETURN.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target-delegates.c: Rebuild.
11198 * target.c (target_teardown_btrace): Unconditionally delegate.
11199 * target.h (struct target_ops) <to_teardown_btrace>: Use
11200 TARGET_DEFAULT_NORETURN.
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11204 * target-delegates.c: Rebuild.
11205 * target.c (target_disable_btrace): Unconditionally delegate.
11206 * target.h (struct target_ops) <to_disable_btrace>: Use
11207 TARGET_DEFAULT_NORETURN.
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11211 * target-delegates.c: Rebuild.
11212 * target.c (default_search_memory): New function.
11213 (simple_search_memory): Update comment.
11214 (target_search_memory): Unconditionally delegate.
11215 * target.h (struct target_ops) <to_search_memory>: Use
11216 TARGET_DEFAULT_FUNC.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * auxv.c (default_auxv_parse): No longer static.
11221 (target_auxv_parse): Unconditionally delegate.
11222 * auxv.h (default_auxv_parse): Declare.
11223 * target-delegates.c: Rebuild.
11224 * target.c: Include auxv.h.
11225 * target.h (struct target_ops) <to_auxv_parse>: Use
11226 TARGET_DEFAULT_FUNC.
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11230 * target-delegates.c: Rebuild.
11231 * target.c (target_memory_map): Unconditionally delegate.
11232 * target.h (struct target_ops) <to_memory_map>: Use
11233 TARGET_DEFAULT_RETURN.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target-delegates.c: Rebuild.
11238 * target.c (target_thread_alive): Unconditionally delegate.
11239 * target.h (struct target_ops) <to_thread_alive>: Use
11240 TARGET_DEFAULT_RETURN.
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target-delegates.c: Rebuild.
11245 * target.c (target_save_record): Unconditionally delegate.
11246 * target.h (struct target_ops) <to_save_record>: Use
11247 TARGET_DEFAULT_NORETURN.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target-delegates.c: Rebuild.
11252 * target.c (target_delete_record): Unconditionally delegate.
11253 * target.h (struct target_ops) <to_delete_record>: Use
11254 TARGET_DEFAULT_NORETURN.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * target-delegates.c: Rebuild.
11259 * target.c (target_record_is_replaying): Unconditionally
11261 * target.h (struct target_ops) <to_record_is_replaying>: Use
11262 TARGET_DEFAULT_RETURN.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_goto_record_begin): Unconditionally delegate.
11268 * target.h (struct target_ops) <to_goto_record_begin>: Use
11269 TARGET_DEFAULT_NORETURN.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target-delegates.c: Rebuild.
11274 * target.c (target_goto_record_end): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_goto_record_end>: Use
11276 TARGET_DEFAULT_NORETURN.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target-delegates.c: Rebuild.
11281 * target.c (target_goto_record): Unconditionally delegate.
11282 * target.h (struct target_ops) <to_goto_record>: Use
11283 TARGET_DEFAULT_NORETURN.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target-delegates.c: Rebuild.
11288 * target.c (target_insn_history): Unconditionally delegate.
11289 * target.h (struct target_ops) <to_insn_history>: Use
11290 TARGET_DEFAULT_NORETURN.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target-delegates.c: Rebuild.
11295 * target.c (target_insn_history_from): Unconditionally delegate.
11296 * target.h (struct target_ops) <to_insn_history_from>: Use
11297 TARGET_DEFAULT_NORETURN.
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11301 * target-delegates.c: Rebuild.
11302 * target.c (target_insn_history_range): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_insn_history_range>: Use
11304 TARGET_DEFAULT_NORETURN.
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_call_history): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_call_history>: Use
11311 TARGET_DEFAULT_NORETURN.
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_call_history_from): Unconditionally delegate.
11317 * target.h (struct target_ops) <to_call_history_from>: Use
11318 TARGET_DEFAULT_NORETURN.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target-delegates.c: Rebuild.
11323 * target.c (target_call_history_range): Unconditionally delegate.
11324 * target.h (struct target_ops) <to_call_history_range>: Use
11325 TARGET_DEFAULT_NORETURN.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target-delegates.c: Rebuild.
11330 * target.c (target_verify_memory): Unconditionally delegate.
11331 * target.h (struct target_ops) <to_verify_memory>: Use
11332 TARGET_DEFAULT_NORETURN.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * target-delegates.c: Rebuild.
11337 * target.c (target_core_of_thread): Unconditionally delegate.
11338 * target.h (struct target_ops) <to_core_of_thread>: Use
11339 TARGET_DEFAULT_RETURN.
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * target-delegates.c: Rebuild.
11344 * target.c (target_flash_done): Unconditionally delegate.
11345 * target.h (struct target_ops) <to_flash_done>: Use
11346 TARGET_DEFAULT_NORETURN.
11348 2014-02-19 Tom Tromey <tromey@redhat.com>
11350 * target-delegates.c: Rebuild.
11351 * target.c (target_flash_erase): Unconditionally delegate.
11352 * target.h (struct target_ops) <to_flash_erase>: Use
11353 TARGET_DEFAULT_NORETURN.
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11357 * target-delegates.c: Rebuild.
11358 * target.c (target_get_section_table): Unconditionally delegate.
11359 * target.h (struct target_ops) <to_get_section_table>: Use
11360 TARGET_DEFAULT_RETURN.
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * target-delegates.c: Rebuild.
11365 * target.c (target_pid_to_str): Unconditionally delegate.
11366 (init_dummy_target): Don't initialize to_pid_to_str.
11367 (default_pid_to_str): Rename from dummy_pid_to_str.
11368 * target.h (struct target_ops) <to_pid_to_str>: Use
11369 TARGET_DEFAULT_FUNC.
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_find_new_threads): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_find_new_threads>: Use
11376 TARGET_DEFAULT_RETURN.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_program_signals): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_program_signals>: Use
11383 TARGET_DEFAULT_IGNORE.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (target_pass_signals): Unconditionally delegate.
11389 * target.h (struct target_ops) <to_pass_signals>: Use
11390 TARGET_DEFAULT_IGNORE.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target-delegates.c: Rebuild.
11395 * target.c (default_mourn_inferior): New function.
11396 (target_mourn_inferior): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_mourn_inferior>: Use
11398 TARGET_DEFAULT_FUNC.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target-delegates.c: Rebuild.
11403 * target.c (default_follow_fork): New function.
11404 (target_follow_fork): Unconditionally delegate.
11405 * target.h (struct target_ops) <to_follow_fork>: Use
11406 TARGET_DEFAULT_FUNC.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (target_kill): Unconditionally delegate.
11412 * target.h (struct target_ops) <to_kill>: Use
11413 TARGET_DEFAULT_NORETURN.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target-delegates.c: Rebuild.
11418 * target.c (target_masked_watch_num_registers): Unconditionally
11420 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11421 Use TARGET_DEFAULT_RETURN.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target-delegates.c: Rebuild.
11426 * target.c (target_remove_mask_watchpoint): Unconditionally
11428 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11429 TARGET_DEFAULT_RETURN.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_insert_mask_watchpoint): Unconditionally
11436 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11437 TARGET_DEFAULT_RETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_ranged_break_num_registers): Unconditionally
11444 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11445 Use TARGET_DEFAULT_RETURN.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_fetch_registers): Unconditionally delegate.
11451 * target.h (struct target_ops) <to_fetch_registers>: Use
11452 TARGET_DEFAULT_NORETURN.
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11459 * target.h (struct target_ops) <to_stop>: Use
11460 TARGET_DEFAULT_IGNORE.
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_can_run_breakpoint_commands.
11467 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11468 Use TARGET_DEFAULT_RETURN.
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_supports_evaluation_of_breakpoint_conditions.
11475 * target.h (struct target_ops)
11476 <to_supports_evaluation_of_breakpoint_conditions>: Use
11477 TARGET_DEFAULT_RETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_augmented_libraries_svr4_read.
11484 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11485 Use TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11492 * target.h (struct target_ops) <to_can_use_agent>: Use
11493 TARGET_DEFAULT_RETURN.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11500 * target.h (struct target_ops) <to_use_agent>: Use
11501 TARGET_DEFAULT_NORETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_traceframe_info.
11508 (return_null): Remove.
11509 * target.h (struct target_ops) <to_traceframe_info>: Use
11510 TARGET_DEFAULT_RETURN.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_static_tracepoint_markers_by_strid.
11517 * target.h (struct target_ops)
11518 <to_static_tracepoint_markers_by_strid>: Use
11519 TARGET_DEFAULT_NORETURN.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target-delegates.c: Rebuild.
11524 * target.c (update_current_target): Don't inherit or default
11525 to_static_tracepoint_marker_at.
11526 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11527 Use TARGET_DEFAULT_RETURN.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11533 to_set_permissions.
11534 * target.h (struct target_ops) <to_set_permissions>: Use
11535 TARGET_DEFAULT_IGNORE.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_get_tib_address.
11542 * target.h (struct target_ops) <to_get_tib_address>: Use
11543 TARGET_DEFAULT_NORETURN.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_set_trace_notes.
11550 * target.h (struct target_ops) <to_set_trace_notes>: Use
11551 TARGET_DEFAULT_RETURN.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't initialize
11557 to_set_trace_buffer_size.
11558 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11559 TARGET_DEFAULT_IGNORE.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_set_circular_trace_buffer.
11566 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11567 TARGET_DEFAULT_IGNORE.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_set_disconnected_tracing.
11574 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11575 TARGET_DEFAULT_IGNORE.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_get_min_fast_tracepoint_insn_len.
11582 (return_minus_one): Remove.
11583 * target.h (struct target_ops)
11584 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target-delegates.c: Rebuild.
11589 * target.c (update_current_target): Don't inherit or default
11590 to_get_raw_trace_data.
11591 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11592 TARGET_DEFAULT_NORETURN.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_upload_trace_state_variables.
11599 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11600 Use TARGET_DEFAULT_RETURN.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_upload_tracepoints.
11607 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11608 TARGET_DEFAULT_RETURN.
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_save_trace_data.
11615 * target.h (struct target_ops) <to_save_trace_data>: Use
11616 TARGET_DEFAULT_NORETURN.
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_get_trace_state_variable_value.
11623 * target.h (struct target_ops)
11624 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11631 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11638 * target.h (struct target_ops) <to_trace_stop>: Use
11639 TARGET_DEFAULT_NORETURN.
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11645 to_get_tracepoint_status.
11646 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11647 TARGET_DEFAULT_NORETURN.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_get_trace_status.
11654 * target.h (struct target_ops) <to_get_trace_status>: Use
11655 TARGET_DEFAULT_RETURN.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11662 * target.h (struct target_ops) <to_trace_start>: Use
11663 TARGET_DEFAULT_NORETURN.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_trace_set_readonly_regions.
11670 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11671 Use TARGET_DEFAULT_NORETURN.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_disable_tracepoint.
11678 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11679 TARGET_DEFAULT_NORETURN.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_enable_tracepoint.
11686 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11687 TARGET_DEFAULT_NORETURN.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_download_trace_state_variable.
11694 * target.h (struct target_ops) <to_download_trace_state_variable>:
11695 Use TARGET_DEFAULT_NORETURN.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_can_download_tracepoint.
11702 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11703 TARGET_DEFAULT_RETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_download_tracepoint.
11710 * target.h (struct target_ops) <to_download_tracepoint>: Use
11711 TARGET_DEFAULT_NORETURN.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11718 * target.h (struct target_ops) <to_trace_init>: Use
11719 TARGET_DEFAULT_RETURN.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_supports_string_tracing.
11726 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11727 TARGET_DEFAULT_RETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_supports_enable_disable_tracepoint.
11734 * target.h (struct target_ops)
11735 <to_supports_enable_disable_tracepoint>: Use
11736 TARGET_DEFAULT_RETURN.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target-delegates.c: Rebuild.
11741 * target.c (update_current_target): Don't inherit or default
11742 to_supports_multi_process.
11743 * target.h (struct target_ops) <to_supports_multi_process>: Use
11744 TARGET_DEFAULT_RETURN.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_get_ada_task_ptid.
11751 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11752 TARGET_DEFAULT_FUNC.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_thread_architecture.
11759 * target.h (struct target_ops) <to_thread_architecture>: Use
11760 TARGET_DEFAULT_FUNC.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_execution_direction.
11767 * target.h (struct target_ops) <to_execution_direction>: Use
11768 TARGET_DEFAULT_FUNC.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_can_execute_reverse.
11775 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11776 TARGET_DEFAULT_RETURN.
11777 (target_can_execute_reverse): Unconditionally delegate.
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11781 * target-delegates.c: Rebuild.
11782 * target.c (update_current_target): Don't inherit or default
11784 (dummy_goto_bookmark): Remove.
11785 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11786 * target.h (struct target_ops) <to_goto_bookmark>: Use
11787 TARGET_DEFAULT_NORETURN.
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11794 (dummy_get_bookmark): Remove.
11795 (init_dummy_target): Don't inherit or default to_get_bookmark.
11796 * target.h (struct target_ops) <to_get_bookmark>: Use
11797 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
11804 (init_dummy_target): Don't initialize to_make_corefile_notes.
11805 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11806 TARGET_DEFAULT_FUNC.
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11810 * target-delegates.c: Rebuild.
11811 * target.c (update_current_target): Don't inherit or default
11812 to_find_memory_regions.
11813 (init_dummy_target): Don't initialize to_find_memory_regions.
11814 * target.h (struct target_ops) <to_find_memory_regions>: Use
11815 TARGET_DEFAULT_FUNC.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11822 * target.h (struct target_ops) <to_log_command>: Use
11823 TARGET_DEFAULT_IGNORE.
11824 (target_log_command): Unconditionally delegate.
11826 2014-02-19 Tom Tromey <tromey@redhat.com>
11828 * target-delegates.c: Rebuild.
11829 * target.c (update_current_target): Don't inherit or default
11830 to_pid_to_exec_file.
11831 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11832 TARGET_DEFAULT_RETURN.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11839 (target_thread_name): Unconditionally delegate.
11840 * target.h (struct target_ops) <to_thread_name>: Use
11841 TARGET_DEFAULT_RETURN.
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_extra_thread_info.
11848 * target.h (struct target_ops) <to_extra_thread_info>: Use
11849 TARGET_DEFAULT_RETURN.
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11856 * target.h (struct target_ops) <to_has_exited>: Use
11857 TARGET_DEFAULT_RETURN..
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_set_syscall_catchpoint.
11864 (return_one): Remove.
11865 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11866 TARGET_DEFAULT_RETURN.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target-delegates.c: Rebuild.
11871 * target.c (update_current_target): Don't inherit or default
11872 to_insert_exec_catchpoint.
11873 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11874 TARGET_DEFAULT_RETURN.
11876 2014-01-08 Tom Tromey <tromey@redhat.com>
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_insert_exec_catchpoint.
11881 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11882 TARGET_DEFAULT_RETURN.
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_remove_vfork_catchpoint.
11889 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11890 TARGET_DEFAULT_RETURN.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target-delegates.c: Rebuild.
11895 * target.c (update_current_target): Don't inherit or default
11896 to_insert_vfork_catchpoint.
11897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11898 TARGET_DEFAULT_RETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_remove_fork_catchpoint.
11905 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_insert_fork_catchpoint.
11913 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_post_startup_inferior.
11921 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11922 TARGET_DEFAULT_IGNORE.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11929 * target.h (struct target_ops) <to_load>: Use
11930 TARGET_DEFAULT_NORETURN.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11937 * target.h (struct target_ops) <to_terminal_info>: Use
11938 TARGET_DEFAULT_FUNC.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_terminal_save_ours.
11945 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11946 TARGET_DEFAULT_IGNORE.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11953 * target.h (struct target_ops) <to_terminal_ours>: Use
11954 TARGET_DEFAULT_IGNORE.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_terminal_ours_for_output.
11961 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11962 TARGET_DEFAULT_IGNORE.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11968 to_terminal_inferior.
11969 * target.h (struct target_ops) <to_terminal_inferior>: Use
11970 TARGET_DEFAULT_IGNORE.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11977 * target.h (struct target_ops) <to_terminal_init>: Use
11978 TARGET_DEFAULT_IGNORE.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_can_accel_watchpoint_condition.
11985 * target.h (struct target_ops)
11986 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11992 to_region_ok_for_hw_watchpoint.
11993 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11994 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
12001 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12002 Use TARGET_DEFAULT_FUNC.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_remove_watchpoint.
12009 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12010 TARGET_DEFAULT_NORETURN.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_insert_watchpoint.
12017 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12018 TARGET_DEFAULT_RETURN.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_remove_hw_breakpoint.
12025 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12026 TARGET_DEFAULT_RETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_insert_hw_breakpoint.
12033 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12034 TARGET_DEFAULT_RETURN.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_can_use_hw_breakpoint.
12041 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12049 * target.h (struct target_ops) <to_files_info>: Use
12050 TARGET_DEFAULT_IGNORE.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12057 * target.h (struct target_ops) <to_store>: Use
12058 TARGET_DEFAULT_NORETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12065 * target.h (struct target_ops) <to_post_attach>: Use
12066 TARGET_DEFAULT_IGNORE.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12073 (default_rcmd): New function.
12074 (do_monitor_command): Unconditionally delegate.
12075 * target.h (struct target_ops) <to_rmcd>: Use
12076 TARGET_DEFAULT_FUNC.
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12080 * target-delegates.c: Rebuild.
12081 * target.c (init_dummy_target): Don't initialize to_attach.
12082 (target_attach): Unconditionally delegate.
12083 * target.h (struct target_ops) <to_attach>: Use
12084 TARGET_DEFAULT_FUNC.
12086 2014-02-19 Tom Tromey <tromey@redhat.com>
12088 * target-delegates.c: Rebuild.
12089 * target.c (target_detach): Unconditionally delegate.
12090 (init_dummy_target): Don't initialize to_detach.
12091 * target.h (struct target_ops) <to_detach>: Use
12092 TARGET_DEFAULT_IGNORE.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12098 (target_augmented_libraries_svr4_read): Add argument.
12099 * target.c (update_current_target): Update.
12100 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * target.h (struct target_ops) <to_call_history_range>: Add
12107 * target.c (target_call_history_range): Add argument.
12108 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12110 (record_btrace_call_history_from): Update.
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target.h (struct target_ops) <to_call_history_from>: Add
12116 * target.c (target_call_history_from): Add argument.
12117 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_call_history>: Add argument.
12123 * target.c (target_call_history): Add argument.
12124 * record-btrace.c (record_btrace_call_history): Add 'self'
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target.h (struct target_ops) <to_insn_history_range>: Add
12131 * target.c (target_insn_history_range): Add argument.
12132 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12134 (record_btrace_insn_history_from): Update.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target.h (struct target_ops) <to_insn_history_from>: Add
12140 * target.c (target_insn_history_from): Add argument.
12141 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops) <to_insn_history>: Add argument.
12147 * target.c (target_insn_history): Add argument.
12148 * record-btrace.c (record_btrace_insn_history): Add 'self'
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12153 * target.h (struct target_ops) <to_goto_record>: Add argument.
12154 * target.c (target_goto_record): Add argument.
12155 * record-full.c (record_full_goto): Add 'self' argument.
12156 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12160 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12161 * target.c (target_goto_record_end): Add argument.
12162 * record-full.c (record_full_goto_end): Add 'self' argument.
12163 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target.h (struct target_ops) <to_goto_record_begin>: Add
12169 * target.c (target_goto_record_begin): Add argument.
12170 * record-full.c (record_full_goto_begin): Add 'self' argument.
12171 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12174 2014-02-19 Tom Tromey <tromey@redhat.com>
12176 * target.h (struct target_ops) <to_record_is_replaying>: Add
12178 * target.c (target_record_is_replaying): Add argument.
12179 * record-full.c (record_full_is_replaying): Add 'self' argument.
12180 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12182 (record_btrace_xfer_partial, record_btrace_store_registers)
12183 (record_btrace_prepare_to_store, record_btrace_resume)
12184 (record_btrace_wait, record_btrace_decr_pc_after_break)
12185 (record_btrace_find_new_threads, record_btrace_thread_alive):
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * target.h (struct target_ops) <to_delete_record>: Add argument.
12191 * target.c (target_delete_record): Add argument.
12192 * record-full.c (record_full_delete): Add 'self' argument.
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * target.h (struct target_ops) <to_save_record>: Add argument.
12197 * target.c (target_save_record): Add argument.
12198 * record-full.c (record_full_save): Add 'self' argument.
12199 (record_full_save): Add 'self' argument.
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12203 * target.h (struct target_ops) <to_info_record>: Add argument.
12204 * target.c (target_info_record): Add argument.
12205 * record.c (info_record_command): Add argument.
12206 * record-full.c (record_full_info): Add 'self' argument.
12207 * record-btrace.c (record_btrace_info): Add 'self' argument.
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12212 * target.c (target_stop_recording): Add argument.
12213 * record.c (record_stop): Add argument.
12214 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12220 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12221 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12223 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12224 (_initialize_amd64_linux_nat): Use it.
12225 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12226 (_initialize_i386_linux_nat): Use it.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12231 * target.c (target_teardown_btrace): Add argument.
12232 * remote.c (remote_teardown_btrace): Add 'self' argument.
12233 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12235 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12240 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12241 * target.c (target_disable_btrace): Add argument.
12242 * remote.c (remote_disable_btrace): Add 'self' argument.
12243 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12245 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12251 * target.c (target_enable_btrace): Add argument.
12252 * remote.c (remote_enable_btrace): Add 'self' argument.
12253 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12255 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12260 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12261 (target_can_use_agent): Add argument.
12262 * target.c (update_current_target): Update.
12263 * remote.c (remote_can_use_agent): Add 'self' argument.
12264 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * target.h (struct target_ops) <to_use_agent>: Add argument.
12269 (target_use_agent): Add argument.
12270 * target.c (update_current_target): Update.
12271 * remote.c (remote_use_agent): Add 'self' argument.
12272 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12276 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12277 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12278 (target_traceframe_info): Add argument.
12279 * target.c (update_current_target): Update.
12280 * remote.c (remote_traceframe_info): Add 'self' argument.
12281 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target.h (target_static_tracepoint_markers_by_strid): Add
12287 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12289 * target.c (update_current_target): Update.
12290 * remote.c (struct target_ops)
12291 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12292 * linux-nat.c (struct target_ops)
12293 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12299 (target_static_tracepoint_marker_at): Add argument.
12300 * target.c (update_current_target): Update.
12301 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12306 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12307 (target_set_permissions): Add argument.
12308 * target.c (update_current_target): Update.
12309 * remote.c (remote_set_permissions): Add 'self' argument.
12310 (remote_start_remote): Update.
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12315 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12316 (target_get_tib_address): Add argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (remote_get_tib_address): Add 'self' argument.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12323 (target_set_trace_notes): Add argument.
12324 * target.c (update_current_target): Update.
12325 * remote.c (remote_set_trace_notes): Add 'self' argument.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12331 (target_set_trace_buffer_size): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12339 (target_set_circular_trace_buffer): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12348 (target_set_disconnected_tracing): Add argument.
12349 * target.c (update_current_target): Update.
12350 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops)
12355 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12356 (target_get_min_fast_tracepoint_insn_len): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12361 2014-02-19 Tom Tromey <tromey@redhat.com>
12363 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12365 (target_get_raw_trace_data): Add argument.
12366 * target.c (update_current_target): Update.
12367 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12371 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12373 (target_upload_trace_state_variables): Add argument.
12374 * target.c (update_current_target): Update.
12375 * remote.c (remote_upload_trace_state_variables): Add 'self'
12377 (remote_start_remote): Update.
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12381 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12383 (target_upload_tracepoints): Add argument.
12384 * target.c (update_current_target): Update.
12385 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12386 (remote_start_remote): Update.
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12390 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12391 (target_save_trace_data): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_save_trace_data): Add 'self' argument.
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12397 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12399 * target.h (struct target_ops)
12400 <to_get_trace_state_variable_value>: Add argument.
12401 (target_get_trace_state_variable_value): Add argument.
12402 * target.c (update_current_target): Update.
12403 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12405 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12410 * target.h (struct target_ops) <to_trace_find>: Add argument.
12411 (target_trace_find): Add argument.
12412 * target.c (update_current_target): Update.
12413 * remote.c (remote_trace_find): Add 'self' argument.
12414 * ctf.c (ctf_trace_find): Add 'self' argument.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12419 (target_trace_stop): Add argument.
12420 * target.c (update_current_target): Update.
12421 * remote.c (remote_trace_stop): Add 'self' argument.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12426 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12428 (target_get_tracepoint_status): Add argument.
12429 * target.c (update_current_target): Update.
12430 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12435 * target.h (struct target_ops) <to_get_trace_status>: Add
12437 (target_get_trace_status): Add argument.
12438 * target.c (update_current_target): Update.
12439 * remote.c (remote_get_trace_status): Add 'self' argument.
12440 (remote_start_remote, remote_can_download_tracepoint): Update.
12441 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12445 * target.h (struct target_ops) <to_trace_start>: Add argument.
12446 (target_trace_start): Add argument.
12447 * target.c (update_current_target): Update.
12448 * remote.c (remote_trace_start): Add 'self' argument.
12450 2014-02-19 Tom Tromey <tromey@redhat.com>
12452 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12454 (target_trace_set_readonly_regions): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12459 2014-02-19 Tom Tromey <tromey@redhat.com>
12461 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12463 (target_disable_tracepoint): Add argument.
12464 * target.c (update_current_target): Update.
12465 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12471 (target_enable_tracepoint): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12477 * target.h (struct target_ops) <to_download_trace_state_variable>:
12479 (target_download_trace_state_variable): Add argument.
12480 * target.c (update_current_target): Update.
12481 * remote.c (remote_download_trace_state_variable): Add 'self'
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12486 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12488 (target_can_download_tracepoint): Add argument.
12489 * target.c (update_current_target): Update.
12490 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_download_tracepoint>: Add
12496 (target_download_tracepoint): Add argument.
12497 * target.c (update_current_target): Update.
12498 * remote.c (remote_download_tracepoint): Add 'self' argument.
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12502 * target.h (struct target_ops) <to_trace_init>: Add argument.
12503 (target_trace_init): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_trace_init): Add 'self' argument.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12510 * target.c (target_fileio_readlink): Add argument.
12511 * remote.c (remote_hostio_readlink): Add 'self' argument.
12512 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12517 * target.c (target_fileio_unlink): Add argument.
12518 * remote.c (remote_hostio_unlink): Add 'self' argument.
12519 (remote_file_delete): Update.
12520 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12522 2014-02-19 Tom Tromey <tromey@redhat.com>
12524 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12525 * target.c (target_fileio_close): Add argument.
12526 * remote.c (remote_hostio_close): Add 'self' argument.
12527 (remote_hostio_close_cleanup): Update.
12528 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12530 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12535 * target.c (target_fileio_pread): Add argument.
12536 * remote.c (remote_hostio_pread): Add 'self' argument.
12537 (remote_bfd_iovec_pread, remote_file_get): Update.
12538 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12543 * target.c (target_fileio_pwrite): Add argument.
12544 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12545 (remote_file_put): Update.
12546 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12550 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12551 * target.c (target_fileio_open): Add argument.
12552 * remote.c (remote_hostio_open): Add 'self' argument.
12553 (remote_bfd_iovec_open): Add 'self' argument.
12554 (remote_file_put): Add 'self' argument.
12555 (remote_file_get): Add 'self' argument.
12556 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12558 2014-02-19 Tom Tromey <tromey@redhat.com>
12560 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12562 (target_can_run_breakpoint_commands): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12566 (remote_insert_breakpoint): Add 'self' argument.
12567 (remote_insert_hw_breakpoint): Add 'self' argument.
12568 (remote_can_run_breakpoint_commands): Add 'self' argument.
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12572 * target.h (struct target_ops)
12573 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12574 (target_supports_evaluation_of_breakpoint_conditions): Add
12576 * target.c (update_current_target): Update.
12577 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12579 (remote_insert_breakpoint): Add 'self' argument.
12580 (remote_insert_hw_breakpoint): Add 'self' argument.
12581 (remote_supports_cond_breakpoints): Add 'self' argument.
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12585 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12587 (target_supports_string_tracing): Add argument.
12588 * target.c (update_current_target): Update.
12589 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12593 * target.h (struct target_ops)
12594 <to_supports_disable_randomization>: Add argument.
12595 * target.c (find_default_supports_disable_randomization): Add
12597 (target_supports_disable_randomization): Add argument.
12598 (find_default_supports_disable_randomization): Add 'self'
12600 * remote.c (extended_remote_supports_disable_randomization): Add
12602 (remote_supports_disable_randomization): Add 'self' argument.
12603 (extended_remote_create_inferior): Update.
12604 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target.h (struct target_ops)
12610 <to_supports_enable_disable_tracepoint>: Add argument.
12611 (target_supports_enable_disable_tracepoint): Add argument.
12612 * target.c (update_current_target): Update.
12613 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12618 * target.h (struct target_ops) <to_supports_multi_process>: Add
12620 (target_supports_multi_process): Add argument.
12621 * target.c (update_current_target): Update.
12622 * remote.c (remote_supports_multi_process): Add 'self' argument.
12623 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12625 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12630 * target.h (struct target_ops) <to_execution_direction>: Add
12632 (target_execution_direction): Add argument.
12633 * target.c (default_execution_direction): Add 'self' argument.
12634 * record-full.c (record_full_execution_direction): Add 'self'
12637 2014-02-19 Tom Tromey <tromey@redhat.com>
12639 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12641 (target_can_execute_reverse): Add argument.
12642 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12643 * record-full.c (record_full_can_execute_reverse): Add 'self'
12645 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12650 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12651 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12653 (target_get_ada_task_ptid): Add argument.
12654 * target.c (update_current_target): Update.
12655 (default_get_ada_task_ptid): Add 'self' argument.
12656 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12657 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12658 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12660 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12662 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12664 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12666 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12667 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12672 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12673 (target_goto_bookmark): Add argument.
12674 * target.c (dummy_goto_bookmark): Add 'self' argument.
12675 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12677 2014-02-19 Tom Tromey <tromey@redhat.com>
12679 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12680 (target_get_bookmark): Add argument.
12681 * target.c (dummy_get_bookmark): Add 'self' argument.
12682 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12686 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12688 (target_make_corefile_notes): Add argument.
12689 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12690 * procfs.c (procfs_make_note_section): Add 'self' argument.
12691 (procfs_make_note_section): Add 'self' argument.
12692 (procfs_make_note_section): Add 'self' argument.
12693 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12695 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12696 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12697 * exec.c (exec_make_note_section): Add 'self' argument.
12698 (exec_make_note_section): Add 'self' argument.
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12702 * target.h (struct target_ops) <to_find_memory_regions>: Add
12704 (target_find_memory_regions): Add argument.
12705 * target.c (dummy_find_memory_regions): Add 'self' argument.
12706 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12707 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12708 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12709 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12710 * exec. (exec_do_find_memory_regions): New global.
12711 (exec_set_find_memory_regions): Rewrite.
12712 (exec_find_memory_regions): New function.
12713 (init_exec_ops): Use exec_find_memory_regions.
12715 2014-02-19 Tom Tromey <tromey@redhat.com>
12717 * target.h (struct target_ops) <to_supports_non_stop>: Add
12719 * target.c (find_default_supports_non_stop): Add argument.
12720 (target_supports_non_stop): Add argument.
12721 (find_default_supports_non_stop): Add 'self' argument.
12722 * remote.c (remote_supports_non_stop): Add 'self' argument.
12723 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12725 2014-02-19 Tom Tromey <tromey@redhat.com>
12727 * target.h (struct target_ops) <to_log_command>: Add argument.
12728 (target_log_command): Add argument.
12729 * serial.h (serial_log_command): Add 'self' argument.
12730 * serial.c (serial_log_command): Add 'self' argument.
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12734 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12735 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12737 (target_pid_to_exec_file): Add argument.
12738 * target.c (debug_to_pid_to_exec_file): Add argument.
12739 (update_current_target): Update.
12740 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12741 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12742 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12743 (linux_handle_extended_wait): Update.
12744 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12745 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12746 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12747 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12751 * target.h (struct target_ops) <to_rcmd>: Add argument.
12752 (target_rcmd): Add argument.
12753 * target.c (debug_to_rcmd): Add argument.
12754 (update_current_target, do_monitor_command): Update.
12755 * remote.c (remote_rcmd): Add 'self' argument.
12756 * monitor.c (monitor_rcmd): Add 'self' argument.
12758 2014-02-19 Tom Tromey <tromey@redhat.com>
12760 * windows-nat.c (windows_stop): Add 'self' argument.
12761 * target.h (struct target_ops) <to_stop>: Add argument.
12762 * target.c (target_stop): Add argument.
12763 (debug_to_stop): Add argument.
12764 (update_current_target): Update.
12765 * remote.c (remote_stop): Add 'self' argument.
12766 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12767 (gdbsim_cntrl_c): Update.
12768 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12769 * procfs.c (procfs_stop): Add 'self' argument.
12770 * nto-procfs.c (procfs_stop): Add 'self' argument.
12771 * monitor.c (monitor_stop): Add 'self' argument.
12772 (monitor_open): Update.
12773 * linux-nat.c (linux_nat_stop): Add argument.
12774 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12775 * gnu-nat.c (gnu_stop): Add 'self' argument.
12776 * darwin-nat.c (darwin_stop): Add 'self' argument.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * target.h (struct target_ops) <to_thread_name>: Add argument.
12781 * target.c (target_thread_name): Add argument.
12782 (update_current_target): Update.
12783 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12787 * target.h (struct target_ops) <to_extra_thread_info>: Add
12789 (target_extra_thread_info): Add argument.
12790 * target.c (update_current_target): Update.
12791 * remote.c (remote_threads_extra_info): Add 'self' argument.
12792 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12794 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12795 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12796 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12798 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12800 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12802 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12805 2014-02-19 Tom Tromey <tromey@redhat.com>
12807 * target.h (struct target_ops) <to_program_signals>: Add argument.
12808 * target.c (target_program_signals): Add argument.
12809 * remote.c (remote_program_signals): Add 'self' argument.
12811 2014-02-19 Tom Tromey <tromey@redhat.com>
12813 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12814 * target.c (target_pass_signals): Add argument.
12815 * remote.c (remote_pass_signals): Add 'self' argument.
12816 (remote_start_remote): Update.
12817 * procfs.c (procfs_pass_signals): Add 'self' argument.
12818 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12819 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12820 (linux_nat_create_inferior, linux_nat_attach): Update.
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * windows-nat.c (windows_can_run): Add 'self' argument.
12825 * target.h (struct target_ops) <to_can_run>: Add argument.
12826 (target_can_run): Add argument.
12827 * target.c (debug_to_can_run): Add argument.
12828 (update_current_target): Update.
12829 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12830 * inf-child.c (inf_child_can_run): Add 'self' argument.
12831 * go32-nat.c (go32_can_run): Add 'self' argument.
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12835 * target.h (struct target_ops) <to_has_exited>: Add argument.
12836 (target_has_exited): Add argument.
12837 * target.c (debug_to_has_exited): Add argument.
12838 (update_current_target): Update.
12840 2014-02-19 Tom Tromey <tromey@redhat.com>
12842 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12844 (target_set_syscall_catchpoint): Add argument.
12845 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12847 * target.c (update_current_target): Update.
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12851 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12853 (target_remove_exec_catchpoint): Add argument.
12854 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12855 (update_current_target): Update.
12856 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12861 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12863 (target_insert_exec_catchpoint): Add argument.
12864 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12865 (update_current_target): Update.
12866 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12871 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12873 (target_remove_vfork_catchpoint): Add argument.
12874 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12875 (update_current_target): Update.
12876 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12879 2014-02-19 Tom Tromey <tromey@redhat.com>
12881 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12883 (target_insert_vfork_catchpoint): Add argument.
12884 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12885 (update_current_target): Update.
12886 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12889 2014-02-19 Tom Tromey <tromey@redhat.com>
12891 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12893 (target_remove_fork_catchpoint): Add argument.
12894 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12895 (update_current_target): Update.
12896 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12903 (target_insert_fork_catchpoint): Add argument.
12904 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12905 (update_current_target): Update.
12906 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12911 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12913 (target_post_startup_inferior): Add argument.
12914 * target.c (debug_to_post_startup_inferior): Add argument.
12915 (update_current_target): Update.
12916 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12918 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12920 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12922 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12924 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12926 (super_post_startup_inferior): Likewise.
12927 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12929 (super_post_startup_inferior): Likewise.
12930 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12931 Add 'self' argument.
12932 (super_post_startup_inferior): Likewise.
12934 2014-02-19 Tom Tromey <tromey@redhat.com>
12936 * target.h (struct target_ops) <to_load>: Add argument.
12937 * target.c (target_load): Add argument.
12938 (debug_to_load): Add argument.
12939 (update_current_target): Update.
12940 * remote.c (remote_load): Add 'self' argument.
12941 * remote-sim.c (gdbsim_load): Add 'self' argument.
12942 * remote-mips.c (mips_load): Add 'self' argument.
12943 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12944 * monitor.c (monitor_load): Add 'self' argument.
12945 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12949 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12950 (target_terminal_info): Add argument.
12951 * target.c (debug_to_terminal_info): Add argument.
12952 (default_terminal_info): Likewise.
12953 * inflow.c (child_terminal_info): Add 'self' argument.
12954 * inferior.h (child_terminal_info): Add 'self' argument.
12955 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12957 2014-02-19 Tom Tromey <tromey@redhat.com>
12959 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12961 (target_terminal_save_ours): Add argument.
12962 * target.c (debug_to_terminal_save_ours): Add argument.
12963 (update_current_target): Update.
12964 * inflow.c (terminal_save_ours): Add 'self' argument.
12965 * inferior.h (terminal_save_ours): Add 'self' argument.
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12970 (target_terminal_ours): Add argument.
12971 * target.c (debug_to_terminal_ours): Add argument.
12972 (update_current_target): Update.
12973 * remote.c (remote_terminal_ours): Add 'self' argument.
12974 (remote_close): Update.
12975 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12976 * inflow.c (terminal_ours): Add 'self' argument.
12977 * inferior.h (terminal_ours): Add 'self' argument.
12978 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12980 2014-02-19 Pedro Alves <palves@redhat.com>
12981 Tom Tromey <tromey@redhat.com>
12983 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12985 (target_terminal_ours_for_output): Add argument.
12986 * target.c (debug_to_terminal_ours_for_output): Add argument.
12987 (update_current_target): Update.
12988 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12989 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12990 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12994 * target.h (struct target_ops) <to_terminal_inferior>: Add
12996 * target.c (target_terminal_inferior): Add argument.
12997 (update_current_target): Update.
12998 * remote.c (remote_terminal_inferior): Add 'self' argument.
12999 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13000 * inflow.c (terminal_inferior): Add 'self' argument.
13001 * inferior.h (terminal_inferior): Add 'self' argument.
13002 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13003 (go32_terminal_inferior): Add 'self' argument.
13005 2014-02-19 Tom Tromey <tromey@redhat.com>
13007 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13008 (target_terminal_init): Add argument.
13009 * target.c (debug_to_terminal_init): Add argument.
13010 (update_current_target): Update.
13011 * inflow.c (terminal_init_inferior): Add 'self' argument.
13012 * inferior.h (terminal_init_inferior): Add 'self' argument.
13013 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13014 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13018 * target.h (struct target_ops)
13019 <to_can_accel_watchpoint_condition>: Add argument.
13020 (target_can_accel_watchpoint_condition): Add argument.
13021 * target.c (debug_to_can_accel_watchpoint_condition): Add
13023 (update_current_target): Update.
13024 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13027 2014-02-19 Tom Tromey <tromey@redhat.com>
13029 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13031 (target_region_ok_for_hw_watchpoint): Add argument.
13032 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13033 (default_region_ok_for_hw_watchpoint): Add argument.
13034 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13035 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13037 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13039 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13041 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13043 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13045 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13047 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13048 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13050 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13051 Add 'self' argument.
13053 2014-02-19 Tom Tromey <tromey@redhat.com>
13055 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13057 (target_insert_watchpoint): Add argument.
13058 * target.c (debug_to_insert_watchpoint): Add argument.
13059 (update_current_target): Update.
13060 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13061 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13062 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13063 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13064 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13065 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13067 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13068 (procfs_insert_hw_watchpoint): Add 'self' argument.
13069 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13071 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13073 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13075 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13076 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13078 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13081 2014-02-19 Tom Tromey <tromey@redhat.com>
13083 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13085 (target_remove_watchpoint): Add argument.
13086 * target.c (debug_to_remove_watchpoint): Add argument.
13087 (update_current_target): Update.
13088 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13089 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13090 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13091 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13092 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13093 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13095 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13096 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13098 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13100 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13102 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13103 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13105 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13108 2014-02-19 Tom Tromey <tromey@redhat.com>
13110 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13112 (target_remove_hw_breakpoint): Add argument.
13113 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13114 (update_current_target): Update.
13115 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13116 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13118 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13119 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13121 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13128 (target_insert_hw_breakpoint): Add argument.
13129 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13130 (update_current_target): Update.
13131 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13132 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13134 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13135 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13136 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13138 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13141 2014-02-19 Tom Tromey <tromey@redhat.com>
13143 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13145 (target_can_use_hardware_watchpoint): Add argument.
13146 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13147 (update_current_target): Update.
13148 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13150 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13152 * remote.c (remote_check_watch_resources): Add 'self' argument.
13153 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13154 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13156 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13157 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13159 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13161 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13163 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13165 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13167 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13169 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13170 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13172 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13175 2014-02-19 Tom Tromey <tromey@redhat.com>
13177 * target.h (struct target_ops) <to_post_attach>: Add argument.
13178 (target_post_attach): Add argument.
13179 * target.c (debug_to_post_attach): Add argument.
13180 (update_current_target): Update.
13181 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13182 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13183 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13184 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13185 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13187 2014-02-19 Tom Tromey <tromey@redhat.com>
13189 * windows-nat.c (windows_close): Add 'self' argument.
13190 * tracepoint.c (tfile_close): Add 'self' argument.
13191 * target.h (struct target_ops) <to_close>: Add argument.
13192 * target.c (target_close): Add argument.
13193 (update_current_target): Update.
13194 * remote.c (remote_close): Add 'self' argument.
13195 * remote-sim.c (gdbsim_close): Add 'self' argument.
13196 * remote-mips.c (mips_close): Add 'self' argument.
13197 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13198 * record-full.c (record_full_close): Add 'self' argument.
13199 * record-btrace.c (record_btrace_close): Add 'self' argument.
13200 * monitor.h (monitor_close): Add 'self' argument.
13201 * monitor.c (monitor_close): Add 'self' argument.
13202 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13203 * linux-nat.c (linux_nat_close): Add argument.
13204 * go32-nat.c (go32_close): Add 'self' argument.
13205 * exec.c (exec_close_1): Add 'self' argument.
13206 * ctf.c (ctf_close): Add 'self' argument.
13207 * corelow.c (core_close): Add 'self' argument.
13208 (core_close_cleanup): Update.
13209 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13210 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13212 2014-02-19 Tom Tromey <tromey@redhat.com>
13214 * remote.c (remote_load): New function.
13215 (init_remote_ops): Use it.
13217 2014-02-19 Tom Tromey <tromey@redhat.com>
13219 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13221 * common/linux-btrace.h (linux_supports_btrace): Update.
13222 * remote.c (remote_supports_btrace): Add "self" argument.
13223 * target-delegates.c: Rebuild.
13224 * target.c (target_supports_btrace): Remove.
13225 * target.h (struct target_ops) <to_supports_btrace>: Add
13226 target_ops argument.
13227 (target_supports_btrace): New define.
13229 2014-02-19 Tom Tromey <tromey@redhat.com>
13231 * record-full.c (record_full_beneath_to_resume_ops)
13232 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13233 (record_full_beneath_to_wait)
13234 (record_full_beneath_to_store_registers_ops)
13235 (record_full_beneath_to_store_registers)
13236 (record_full_beneath_to_xfer_partial_ops)
13237 (record_full_beneath_to_xfer_partial)
13238 (record_full_beneath_to_insert_breakpoint_ops)
13239 (record_full_beneath_to_insert_breakpoint)
13240 (record_full_beneath_to_remove_breakpoint_ops)
13241 (record_full_beneath_to_remove_breakpoint)
13242 (record_full_beneath_to_stopped_by_watchpoint)
13243 (record_full_beneath_to_stopped_data_address)
13244 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13245 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13246 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13247 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13248 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13249 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13250 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13251 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13252 (record_full_resume, record_full_wait_1)
13253 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13254 (record_full_store_registers, record_full_xfer_partial)
13255 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13256 (record_full_async, record_full_core_xfer_partial): Use target
13258 * target-delegates.c: Rebuild.
13259 * target.c (current_xfer_partial): Remove.
13260 (update_current_target): Do not INHERIT or de_fault
13261 to_insert_breakpoint, to_remove_breakpoint,
13262 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13263 to_is_async_p, to_async. Do not set to_xfer_partial field.
13264 (default_xfer_partial): Simplify.
13265 (current_xfer_partial): Remove.
13266 (target_wait, target_resume): Simplify.
13267 (find_default_can_async_p, find_default_is_async_p): Update.
13268 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13269 to_xfer_partial, to_stopped_by_watchpoint,
13270 to_stopped_data_address.
13271 (target_store_registers): Simplify.
13272 (forward_target_remove_breakpoint)
13273 (forward_target_insert_breakpoint): Remove.
13274 (target_remove_breakpoint, target_insert_breakpoint)
13275 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13276 * target.h (struct target_ops) <to_resume, to_wait,
13277 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13278 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13279 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13281 (forward_target_remove_breakpoint)
13282 (forward_target_insert_breakpoint): Remove.
13283 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13285 (record_btrace_insert_breakpoint): Delegate directly.
13287 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * target-delegates.c: New file.
13291 * target.c: Include target-delegates.c.
13292 (init_dummy_target): Call install_dummy_methods.
13293 (complete_target_initialization): Call install_delegators.
13294 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13295 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13296 * make-target-delegates: New file.
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13300 * record.c (find_record_target): Use find_target_at.
13301 * target.c (find_target_at): New function.
13302 * target.h (find_target_at): Declare.
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13306 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13307 Add 'ops' argument.
13308 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13310 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13311 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13313 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13315 * linux-nat.c (save_sigtrap): Update.
13316 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13317 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13318 (linux_nat_close): Update.
13319 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13321 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13323 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13324 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13325 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13326 (tmp_to_async): Add 'ops' argument.
13327 (record_full_stopped_by_watchpoint, record_full_async)
13328 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13330 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13331 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13332 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13333 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13334 (remote_is_async_p, remote_async): Add 'ops' argument.
13335 (remote_stopped_data_address): Update.
13336 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13337 * target.c (update_current_target)
13338 (find_default_can_async_p, find_default_is_async_p): Update.
13339 (init_dummy_target): Update.
13340 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13341 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13342 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13343 (target_can_async_p, target_is_async_p, target_async)
13344 (target_stopped_by_watchpoint): Update.
13346 2014-02-19 Yao Qi <yao@codesourcery.com>
13349 * gdbarch.sh: Remove startup_gdbarch.
13350 * gdbarch.c: Regenerated.
13351 * gdbarch.h: Likewise.
13353 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13355 * rl78-tdep.c (rl78_g10_register_name): New function.
13356 (rl78_return_value): Add g10 support.
13357 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13360 2014-02-17 Doug Evans <xdje42@gmail.com>
13362 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13363 (SUBDIR_GUILE_SRCS): Ditto.
13364 (scm-gsmob.o): Ditto.
13366 2014-02-17 Yao Qi <yao@codesourcery.com>
13368 * gnu-nat.c (ILL_RPC): Declare defined function.
13370 2014-02-17 Yao Qi <yao@codesourcery.com>
13372 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13373 mach_msg_type_number_t.
13374 (gnu_write_inferior): Likewise.
13376 2014-02-17 Yao Qi <yao@codesourcery.com>
13378 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13380 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13381 (inf_validate_procs, inf_signal): Likewise.
13382 (S_exception_raise_request): Likewise.
13383 (do_mach_notify_dead_name): Likewise.
13384 (steal_exc_port): Likewise.
13385 (gnu_read_inferior): Change 'copy_count''s type to
13386 mach_msg_type_number_t.
13387 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13390 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13392 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13393 flag. Adjust all users; in particular...
13394 (gnu_wait): ..., don't decrement its value in here...
13395 (gnu_create_inferior): ..., and instead set the flag in here,
13396 around the startup_inferior call, and call that one with
13397 START_INFERIOR_TRAPS_EXPECTED.
13399 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13400 (ILL_RPC): ... new macro.
13401 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13402 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13403 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13404 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13405 functions with ILL_RPC macro.
13406 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13407 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13408 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13409 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13410 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13411 (S_proc_getlogin_reply, S_proc_getsid_reply)
13412 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13413 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13414 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13415 (S_proc_getnports_reply, S_proc_is_important_reply)
13416 (S_proc_get_code_reply): New stub functions, generated with
13419 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13420 collected the type check structures.
13422 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13424 2014-02-14 Doug Evans <dje@google.com>
13426 * target.c (target_write_partial): Fix result type.
13428 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13430 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13431 the proper offsets to access fpregset_t.
13433 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13435 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13436 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13437 * h8300-tdep.c (setmachinelist): Remove global.
13438 * hppa-tdep.c (hppa_sigtramp): Remove global.
13439 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13440 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13441 * ravenscar-thread.c (update_target_observer): Remove global.
13442 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13444 2014-02-12 Tom Tromey <tromey@redhat.com>
13446 * common/rsp-low.c: Update comments.
13447 * common/rsp-low.h: Update comments.
13449 2014-02-12 Tom Tromey <tromey@redhat.com>
13451 * common/rsp-low.c (convert_ascii_to_int): Remove.
13452 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13454 2014-02-12 Tom Tromey <tromey@redhat.com>
13456 * common/rsp-low.h (unhexify): Don't declare.
13457 * common/rsp-low.c (unhexify): Remove.
13459 2014-02-12 Tom Tromey <tromey@redhat.com>
13461 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13462 * common/rsp-low.c (convert_int_to_ascii): Remove.
13464 2014-02-12 Tom Tromey <tromey@redhat.com>
13466 * common/rsp-low.h (hexify): Don't declare.
13467 * common/rsp-low.c (hexify): Remove.
13469 2014-02-12 Tom Tromey <tromey@redhat.com>
13471 * common/rsp-low.c (hexify): Never take strlen of argument.
13473 2014-02-12 Tom Tromey <tromey@redhat.com>
13475 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13476 * remote.c (extended_remote_run, remote_rcmd)
13477 (remote_download_trace_state_variable, remote_save_trace_data)
13478 (remote_set_trace_notes): Update.
13479 * tracepoint.c (encode_source_string, tfile_write_status)
13480 (tfile_write_uploaded_tsv): Update.
13482 2014-02-12 Tom Tromey <tromey@redhat.com>
13484 * tracepoint.c: Include rsp-low.h.
13485 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13486 * remote.c: Include rsp-low.h.
13487 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13488 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13489 (remote_unescape_input): Move to common/rsp-low.c.
13490 * common/rsp-low.h: New file.
13491 * common/rsp-low.c: New file.
13492 * Makefile.in (SFILES): Add common/rsp-low.c.
13493 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13494 (COMMON_OBS): Add rsp-low.o.
13495 (rsp-low.o): New target.
13497 2014-02-12 Tom Tromey <tromey@redhat.com>
13499 * utils.h: Include print-utils.h.
13500 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13501 (int_string, core_addr_to_string, core_addr_to_string_nz)
13502 (hex_string, hex_string_custom): Don't declare.
13503 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13504 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13505 (hex_string_custom, int_string, core_addr_to_string)
13506 (core_addr_to_string_nz, host_address_to_string): Move to
13507 common/print-utils.c.
13508 * common/print-utils.h: New file.
13509 * common/print-utils.c: New file
13510 * Makefile.in (SFILES): Add common/print-utils.c.
13511 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13512 (COMMON_OBS): Add print-utils.o.
13513 (print-utils.o): New target.
13515 2014-02-12 Tom Tromey <tromey@redhat.com>
13517 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13519 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13521 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13523 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13525 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13526 if a PT_IO ptrace request returns sucessfully but indicates that 0
13527 bytes were transferred.
13529 2014-02-12 Pedro Alves <palves@redhat.com>
13530 Kevin Buettner <kevinb@redhat.com>
13532 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13533 TYPE_INSTANCE_FLAG_CODE_SPACE.
13535 2014-02-12 Pedro Alves <palves@redhat.com>
13537 * h8300-tdep.c (pseudo_from_raw_register)
13538 (raw_from_pseudo_register): New functions.
13539 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13542 2014-02-12 Pedro Alves <palves@redhat.com>
13544 * h8300-tdep.c (h8300_register_sim_regno): New function.
13545 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13546 gdbarch_register_sim_regno hook.
13548 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13550 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13552 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13554 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13556 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13558 * obsd-tdep.h (obsd_init_abi): New prototype.
13559 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13560 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13561 (obsd_init_abi): New functions.
13562 * i386obsd-tdep.c: Include "obsd-tdep.h".
13563 (i386obsd_init_abi): Call obsd_init_abi.
13564 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13565 (amd64obsd_init_abi): Call obsd_init_abi.
13566 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13567 obsd-tdep.c to gdb_target_obs.
13569 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13571 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13572 double float arguments to 16-byte in the argument slots.
13574 2014-02-11 Doug Evans <xdje42@gmail.com>
13576 * configure.ac: Don't crash if pkg-config is not found and guile
13577 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13579 * configure: Regenerate.
13581 2014-02-11 Yao Qi <yao@codesourcery.com>
13583 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13584 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13585 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13586 * gnu-nat.c (gnu_xfer_memory): Likewise.
13587 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13588 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13589 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13590 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13592 2014-02-11 Yao Qi <yao@codesourcery.com>
13594 * target.h (enum target_xfer_error): Rename to ...
13595 (enum target_xfer_status): ... it. New. All users updated.
13596 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13598 (TARGET_XFER_STATUS_ERROR_P): New macro.
13599 (target_xfer_error_to_string): Remove declaration.
13600 (target_xfer_status_to_string): Declare.
13601 (target_xfer_partial_ftype): Adjust it.
13602 (struct target_ops) <to_xfer_partial>: Return
13603 target_xfer_status. Add argument xfered_len. Update
13605 * target.c (target_xfer_error_to_string): Rename to ...
13606 (target_xfer_status_to_string): ... it. New. All callers
13608 (target_read_live_memory): Likewise. Call target_xfer_partial
13609 instead of target_read.
13610 (memory_xfer_live_readonly_partial): Return
13611 target_xfer_status. Add argument xfered_len.
13612 (raw_memory_xfer_partial): Likewise.
13613 (memory_xfer_partial_1): Likewise.
13614 (memory_xfer_partial): Likewise.
13615 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13616 properly. Update debug message.
13617 (default_xfer_partial, current_xfer_partial): Likewise.
13618 (target_write_partial): Likewise.
13619 (target_read_partial): Likewise. All callers updated.
13620 (read_whatever_is_readable): Likewise.
13621 (target_write_with_progress): Likewise.
13622 (target_read_alloc_1): Likewise.
13624 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13625 * auxv.c (procfs_xfer_auxv): Likewise.
13626 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13627 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13628 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13629 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13630 * corefile.c (read_memory): Adjust.
13631 * corelow.c (core_xfer_partial): Likewise.
13632 * ctf.c (ctf_xfer_partial): Likewise.
13633 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13635 (darwin_xfer_partial): Likewise.
13636 * exec.c (section_table_xfer_memory_partial): Likewise. All
13638 (exec_xfer_partial): Likewise.
13639 * exec.h (section_table_xfer_memory_partial): Update
13641 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13643 (gnu_xfer_partial): Likewise.
13644 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13645 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13646 (ia64_hpux_xfer_solib_got): Likewise.
13647 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13648 type of 'partial_len' to ULONGEST.
13649 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13650 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13651 (linux_nat_xfer_partial): Likewise.
13652 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13653 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13654 * monitor.c (monitor_xfer_memory): Likewise.
13655 (monitor_xfer_partial): Likewise.
13656 * procfs.c (procfs_xfer_partial): Likewise.
13657 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13658 * record-full.c (record_full_xfer_partial): Likewise.
13659 (record_full_core_xfer_partial): Likewise.
13660 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13661 (gdbsim_xfer_partial): Likewise.
13662 * remote.c (remote_write_bytes_aux): Likewise. All callers
13664 (remote_write_bytes, remote_read_bytes): Likewise. All
13666 (remote_flash_erase): Likewise. All callers updated.
13667 (remote_write_qxfer): Likewise. All callers updated.
13668 (remote_read_qxfer): Likewise. All callers updated.
13669 (remote_xfer_partial): Likewise.
13670 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13671 (rs6000_xfer_shared_libraries): Likewise.
13672 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13673 (sol_thread_xfer_partial): Likewise.
13674 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13675 (sparc_xfer_partial): Likewise.
13676 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13678 (spu_xfer_partial): Likewise.
13679 * spu-multiarch.c (spu_xfer_partial): Likewise.
13680 * tracepoint.c (tfile_xfer_partial): Likewise.
13681 * windows-nat.c (windows_xfer_memory): Likewise.
13682 (windows_xfer_shared_libraries): Likewise.
13683 (windows_xfer_partial): Likewise.
13684 * valprint.c: Replace 'target_xfer_error' with
13685 'target_xfer_status' in comments.
13687 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13689 Checked in by Joel Brobecker <brobecker@adacore.com>.
13690 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13692 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13694 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13695 function parameters.
13697 2014-02-10 Will Newton <will.newton@linaro.org>
13699 * elfread.c (elf_rel_plt_read): Look for a .got section if
13700 looking up .got.plt fails.
13701 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13702 on address passed to elf_gnu_ifunc_record_cache.
13703 (elf_gnu_ifunc_resolve_addr): Likewise.
13704 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13706 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13708 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13709 (X_RETTURN): New macro.
13710 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13712 * sparc64-tdep.c (sparc64_init_abi): Hook
13713 sparc_in_function_epilogue_p.
13715 2014-02-10 Gary Benson <gbenson@redhat.com>
13717 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13718 Rename name_matcher to symbol_matcher.
13720 2014-02-10 Gary Benson <gbenson@redhat.com>
13722 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13723 Use expand_symtabs_file_matcher_ftype and
13724 expand_symtabs_symbol_matcher_ftype.
13726 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13728 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13729 (struct ada_symbol_cache): New.
13730 (ada_free_symbol_cache): Forward declare.
13731 (struct ada_pspace_data): New.
13732 (ada_pspace_data_handle): New static global.
13733 (get_ada_pspace_data, ada_pspace_data_cleanup)
13734 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13735 (cache_space, cache): Delete, now folded inside struct
13737 (ada_get_symbol_cache): New function.
13738 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13740 (_initialize_ada_language): Remove initialization of cache_space.
13741 Move call to observer_attach_inferior_exit up, grouping it
13742 with the other observer registrations inside this function.
13743 Rename command to be more general. Add call to
13744 register_program_space_data_with_cleanup.
13746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13748 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13749 ada_new_objfile_observer.
13750 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13751 (_initialize_tasks): Update uses of ada_new_objfile_observer
13752 and ada_tasks_normal_stop_observer.
13754 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13756 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13757 returned by the 'Length attribute to integer.
13759 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13761 * ada-lang.c (_initialize_ada_language): Initialize
13762 cache_space obstack.
13764 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13766 * ada-lang.c (HASH_SIZE): New macro.
13767 (struct cache_entry): New type.
13768 (cache_space, cache): New static globals.
13769 (ada_clear_symbol_cache, find_entry): New functions.
13770 (lookup_cached_symbol, cache_symbol): Implement.
13771 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13772 (_initialize_ada_language): Attach ada_new_objfile_observer
13773 and ada_free_objfile_observer.
13775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13777 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13778 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13779 struct block * parameter.
13780 (ada_lookup_symbol_list_worker): Constify local variable "block".
13781 Remove cast which is no longer necessary.
13783 2014-02-10 Doug Evans <xdje42@gmail.com>
13785 Add Guile as an extension language.
13786 * NEWS: Mention Guile scripting.
13787 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13788 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13789 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13790 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13791 (CLIBS): Add GUILE_LIBS.
13792 (install-guile): New rule.
13793 (guile.o): New rule.
13794 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13795 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13796 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13797 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13798 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13799 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13800 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13801 * configure.ac: New option --with-guile.
13802 * configure: Regenerate.
13803 * config.in: Regenerate.
13804 * auto-load.c: Remove #include "python/python.h". Add #include
13805 "gdb/section-scripts.h".
13806 (source_section_scripts): Handle Guile scripts.
13807 (_initialize_auto_load): Add name of Guile objfile script to
13808 scripts-directory help text.
13809 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13810 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13811 (struct breakpoint): New member scm_bp_object.
13812 * defs.h (enum command_control_type): New value guile_control.
13813 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13815 (show_user): Update comment.
13816 (_initialize_cli_cmds): Update help text for "show user". Update help
13817 text for max-user-call-depth.
13818 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13820 (multi_line_command_p): Add guile_control.
13821 (print_command_lines): Handle guile_control.
13822 (execute_control_command, recurse_read_control_structure): Ditto.
13823 (process_next_line): Recognize "guile" commands.
13824 * disasm.c (gdb_disassemble_info): Make non-static.
13825 * disasm.h: #include "dis-asm.h".
13826 (struct gdbarch): Add forward decl.
13827 (gdb_disassemble_info): Declare.
13828 * extension.c: #include "guile/guile.h".
13829 (extension_languages): Add guile.
13830 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13831 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13832 * gdbtypes.c (get_unsigned_type_max): New function.
13833 (get_signed_type_minmax): New function.
13834 * gdbtypes.h (get_unsigned_type_max): Declare.
13835 (get_signed_type_minmax): Declare.
13836 * guile/README: New file.
13837 * guile/guile-internal.h: New file.
13838 * guile/guile.c: New file.
13839 * guile/guile.h: New file.
13840 * guile/scm-arch.c: New file.
13841 * guile/scm-auto-load.c: New file.
13842 * guile/scm-block.c: New file.
13843 * guile/scm-breakpoint.c: New file.
13844 * guile/scm-disasm.c: New file.
13845 * guile/scm-exception.c: New file.
13846 * guile/scm-frame.c: New file.
13847 * guile/scm-gsmob.c: New file.
13848 * guile/scm-iterator.c: New file.
13849 * guile/scm-lazy-string.c: New file.
13850 * guile/scm-math.c: New file.
13851 * guile/scm-objfile.c: New file.
13852 * guile/scm-ports.c: New file.
13853 * guile/scm-pretty-print.c: New file.
13854 * guile/scm-safe-call.c: New file.
13855 * guile/scm-string.c: New file.
13856 * guile/scm-symbol.c: New file.
13857 * guile/scm-symtab.c: New file.
13858 * guile/scm-type.c: New file.
13859 * guile/scm-utils.c: New file.
13860 * guile/scm-value.c: New file.
13861 * guile/lib/gdb.scm: New file.
13862 * guile/lib/gdb/boot.scm: New file.
13863 * guile/lib/gdb/experimental.scm: New file.
13864 * guile/lib/gdb/init.scm: New file.
13865 * guile/lib/gdb/iterator.scm: New file.
13866 * guile/lib/gdb/printing.scm: New file.
13867 * guile/lib/gdb/types.scm: New file.
13868 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13869 (VPATH): Add $(GUILE_SRCDIR).
13870 (GUILE_DIR): New variable.
13871 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13872 (all): Add stamp-guile dependency.
13873 (stamp-guile): New rule.
13874 (clean-guile, install-guile, uninstall-guile): New rules.
13875 (install-only): Add install-guile dependency.
13876 (uninstall): Add uninstall-guile dependency.
13877 (clean): Add clean-guile dependency.
13879 2014-02-09 Doug Evans <xdje42@gmail.com>
13881 Revert this patch (which I approved, mea culpa).
13883 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13885 * Makefile.in (all-lib): Remove.
13886 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13888 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13890 Fix Python stack corruption.
13891 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13894 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13896 * Makefile.in (all-lib): Remove.
13897 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13899 2014-02-07 Doug Evans <dje@google.com>
13901 * extension-priv.h (extension_language_script_ops): Add comment.
13902 (extension_language_ops): Add comment.
13903 (active_ext_lang_state): Fix typo in comment.
13905 2014-02-07 Pedro Alves <palves@redhat.com>
13907 PR breakpoints/16292
13908 * infrun.c (handle_signal_stop) <signal arrives while stepping
13909 over a breakpoint>: Switch back to the stepping thread.
13911 2014-02-07 Yao Qi <yao@codesourcery.com>
13913 * target.c (target_xfer_partial): Return zero if LEN is zero.
13915 2014-02-07 Yao Qi <yao@codesourcery.com>
13917 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13918 (ld_so_xfer_auxv): Likewise.
13919 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13920 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13921 * corelow.c (core_xfer_partial): Likewise.
13922 * ctf.c (ctf_xfer_partial): Likewise.
13923 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13924 (darwin_xfer_partial): Likewise.
13925 * exec.c (exec_xfer_partial): Likewise.
13926 * gnu-nat.c (gnu_xfer_partial): Likewise.
13927 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13928 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13929 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13930 * linux-nat.c (linux_xfer_siginfo): Likewise.
13931 (linux_proc_xfer_spu): Likewise.
13932 * procfs.c (procfs_xfer_partial): Likewise.
13933 * record-full.c (record_full_xfer_partial): Likewise.
13934 (record_full_core_xfer_partial): Likewise.
13935 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13936 * remote.c (remote_write_qxfer): Likewise.
13937 (remote_write_qxfer, remote_read_qxfer): Likewise.
13938 (remote_xfer_partial): Likewise.
13939 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13940 (rs6000_xfer_shared_libraries): Likewise.
13941 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13942 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13943 (spu_xfer_partial): Likewise.
13944 * target.c (memory_xfer_partial_1): Likewise.
13945 * tracepoint.c (tfile_xfer_partial): Likewise.
13946 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13947 (windows_xfer_partial): Likewise.
13949 2014-02-07 Yao Qi <yao@codesourcery.com>
13951 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13953 (core_xfer_shared_libraries_aix): Likewise.
13954 * gdbarch.c, gdbarch.h: Regenerated.
13955 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13956 ULONGEST. Change 'len_avail' type to ULONGEST.
13957 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13958 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13960 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13962 2014-02-07 Yao Qi <yao@codesourcery.com>
13964 * corefile.c (memory_error): Get 'exception' from ERR and pass
13965 'exception' to throw_error.
13967 2014-02-06 Doug Evans <xdje42@gmail.com>
13969 * configure.ac (libpython checking): Remove all but python.o from
13970 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13971 * configure: Regenerate.
13973 * Makefile.in (SFILES): Add extension.c.
13974 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13975 (COMMON_OBS): Add extension.o.
13976 * extension.h: New file.
13977 * extension-priv.h: New file.
13978 * extension.c: New file.
13980 * python/python-internal.h: #include "extension.h".
13981 (gdbpy_auto_load_enabled): Declare.
13982 (gdbpy_apply_val_pretty_printer): Declare.
13983 (gdbpy_apply_frame_filter): Declare.
13984 (gdbpy_preserve_values): Declare.
13985 (gdbpy_breakpoint_cond_says_stop): Declare.
13986 (gdbpy_breakpoint_has_cond): Declare.
13987 (void source_python_script_for_objfile): Delete.
13988 * python/python.c: #include "extension-priv.h".
13989 Delete inclusion of "observer.h".
13990 (extension_language_python): Moved here and renamed from
13991 script_language_python in py-auto-load.c.
13992 Redefined to be of type extension_language_defn.
13993 (python_extension_script_ops): New global.
13994 (python_extension_ops): New global.
13995 (struct python_env): New member previous_active.
13996 (restore_python_env): Call restore_active_ext_lang.
13997 (ensure_python_env): Call set_active_ext_lang.
13998 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14000 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14002 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14004 (gdbpy_eval_from_control_command): Renamed from
14005 eval_python_from_control_command, made static. New arg extlang.
14006 (gdbpy_source_script) Renamed from source_python_script, made static.
14008 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14009 result to int. New arg extlang.
14010 (gdbpy_source_objfile_script): Renamed from
14011 source_python_script_for_objfile, made static. New arg extlang.
14012 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14013 static. New args extlang, extlang_printers. Change result type to
14015 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14016 static. New arg extlang. Rename arg printers to extlang_printers
14017 and change type to ext_lang_type_printers *.
14018 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14019 static. Replace argument arg with extlang, extlang_printers.
14020 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14021 (!HAVE_PYTHON, source_python_script): Delete.
14022 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14023 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14024 (!HAVE_PYTHON, start_type_printers): Delete.
14025 (!HAVE_PYTHON, apply_type_printers): Delete.
14026 (!HAVE_PYTHON, free_type_printers): Delete.
14027 (_initialize_python): Delete call to observer_attach_before_prompt.
14028 (finalize_python): Set/restore active extension language.
14029 (gdbpy_finish_initialization) Renamed from
14030 finish_python_initialization, made static. New arg extlang.
14031 (gdbpy_initialized): New function.
14032 * python/python.h: #include "extension.h". Delete #include
14033 "value.h", "mi/mi-cmds.h".
14034 (extension_language_python): Declare.
14035 (GDBPY_AUTO_FILE_NAME): Delete.
14036 (enum py_bt_status): Moved to extension.h and renamed to
14037 ext_lang_bt_status.
14038 (enum frame_filter_flags): Moved to extension.h.
14039 (enum py_frame_args): Moved to extension.h and renamed to
14040 ext_lang_frame_args.
14041 (finish_python_initialization): Delete.
14042 (eval_python_from_control_command): Delete.
14043 (source_python_script): Delete.
14044 (apply_val_pretty_printer): Delete.
14045 (apply_frame_filter): Delete.
14046 (preserve_python_values): Delete.
14047 (gdbpy_script_language_defn): Delete.
14048 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14049 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14051 * auto-load.c: #include "extension.h".
14052 (GDB_AUTO_FILE_NAME): Delete.
14053 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14054 (script_language_gdb): Delete, moved to extension.c and renamed to
14055 extension_language_gdb.
14056 (source_gdb_script_for_objfile): Delete.
14057 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14058 (loaded_script): Change type of language member to
14059 struct extension_language_defn *.
14060 (init_loaded_scripts_info): Initialize
14061 unsupported_script_warning_printed.
14062 (maybe_add_script): Make static. Change type of language arg to
14063 struct extension_language_defn *.
14064 (clear_section_scripts): Reset unsupported_script_warning_printed.
14065 (auto_load_objfile_script_1): Rewrite to use extension language API.
14066 (auto_load_objfile_script): Make public. Remove support-compiled-in
14067 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14068 (source_section_scripts): Rewrite to use extension language API.
14069 (load_auto_scripts_for_objfile): Rewrite to use
14070 auto_load_scripts_for_objfile.
14071 (collect_matching_scripts_data): Change type of language member to
14072 struct extension_language_defn *.
14073 (auto_load_info_scripts): Change type of language arg to
14074 struct extension_language_defn *.
14075 (unsupported_script_warning_print): New function.
14076 (script_not_found_warning_print): Make static.
14077 (_initialize_auto_load): Rewrite construction of scripts-directory
14079 * auto-load.h (struct objfile): Add forward decl.
14080 (struct script_language): Delete.
14081 (struct auto_load_pspace_info): Add forward decl.
14082 (struct extension_language_defn): Add forward decl.
14083 (maybe_add_script): Delete.
14084 (auto_load_objfile_script): Declare.
14085 (script_not_found_warning_print): Delete.
14086 (auto_load_info_scripts): Update prototype.
14087 (auto_load_gdb_scripts_enabled): Declare.
14088 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14089 auto_load_python_scripts_enabled and made public.
14090 (script_language_python): Delete, moved to python.c.
14091 (gdbpy_script_language_defn): Delete.
14092 (info_auto_load_python_scripts): Update to use
14093 extension_language_python.
14095 * breakpoint.c (condition_command): Replace call to
14096 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14097 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14098 with call to breakpoint_ext_lang_cond_says_stop.
14099 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14100 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14101 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14102 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14104 (local_setattro): Print name of extension language with existing
14107 * valprint.c (val_print, value_print): Update to call
14108 apply_ext_lang_val_pretty_printer.
14109 * cp-valprint.c (cp_print_value): Update call to
14110 apply_ext_lang_val_pretty_printer.
14111 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14112 (gdbpy_apply_val_pretty_printer): Renamed from
14113 apply_val_pretty_printer. New arg extlang.
14114 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14116 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14117 extension language API.
14118 * cli/cli-script.c (execute_control_command): Update to call
14119 eval_ext_lang_from_control_command.
14121 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14122 enum ext_lang_bt_status values. Update call to
14123 apply_ext_lang_frame_filter.
14124 (mi_cmd_stack_list_locals): Ditto.
14125 (mi_cmd_stack_list_args): Ditto.
14126 (mi_cmd_stack_list_variables): Ditto.
14127 * mi/mi-main.c: Delete #include "python/python-internal.h".
14128 Add #include "extension.h".
14129 (mi_cmd_list_features): Replace reference to python internal variable
14130 gdb_python_initialized with call to ext_lang_initialized_p.
14132 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14133 Update to use enum ext_lang_frame_args. Update to call
14134 apply_ext_lang_frame_filter.
14135 * python/py-framefilter.c (extract_sym): Update to use enum
14136 ext_lang_bt_status.
14137 (extract_value, py_print_type, py_print_value): Ditto.
14138 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14139 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14140 (py_print_frame): Ditto.
14141 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14142 New arg extlang. Update to use enum ext_lang_bt_status.
14144 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14145 finish_python_initialization. Replace with call to
14146 finish_ext_lang_initialization.
14148 * typeprint.c (do_free_global_table): Update to call
14149 free_ext_lang_type_printers.
14150 (create_global_typedef_table): Update to call
14151 start_ext_lang_type_printers.
14152 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14153 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14154 (type_print_options): Change type of global_printers from "void *"
14155 to "struct ext_lang_type_printers *".
14157 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14158 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14159 (gdbpy_preserve_values): Renamed from preserve_python_values.
14161 (!HAVE_PYTHON, preserve_python_values): Delete.
14163 * utils.c (quit_flag): Delete, moved to extension.c.
14164 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14167 * eval.c: Delete #include "python/python.h".
14168 * main.c: Delete #include "python/python.h".
14170 * defs.h: Update comment.
14172 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14176 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14178 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14181 2014-02-05 Yao Qi <yao@codesourcery.com>
14183 * remote.c (remote_pass_signals): Remove local 'buf' and use
14185 (remote_program_signals): Likewise.
14187 2014-02-05 Yao Qi <yao@codesourcery.com>
14189 * ctf.c: Include "inferior.h" and "gdbthread.h".
14190 (CTF_PID): A new macro.
14191 (ctf_open): Call inferior_appeared and add_thread_silent.
14192 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14193 (ctf_thread_alive): New function.
14194 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14196 2014-02-05 Yao Qi <yao@codesourcery.com>
14200 2013-05-24 Yao Qi <yao@codesourcery.com>
14202 * tracepoint.c (TFILE_PID): Remove.
14203 (tfile_open): Don't add thread and inferior.
14204 (tfile_close): Don't set 'inferior_ptid'. Don't call
14205 exit_inferior_silent.
14206 (tfile_thread_alive): Remove.
14207 (init_tfile_ops): Don't set field 'to_thread_alive' of
14210 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14212 * remote.c (remote_start_remote): Call remote_check_symbols even
14213 if only symbol-file (not file) has been given.
14215 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14217 * gdbarch.sh (skip_entrypoint): New callback.
14218 * gdbarch.c, gdbarch.h: Regenerate.
14219 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14220 * infrun.c (fill_in_stop_func): Likewise.
14221 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14222 (ppc_elfv2_elf_make_msymbol_special): New function.
14223 (ppc_elfv2_skip_entrypoint): Likewise.
14224 (ppc_linux_init_abi): Install them for ELFv2.
14226 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14228 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14229 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14230 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14231 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14232 structures returned in GPRs.
14234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14237 offset to the stack parameter list for the ELFv2 ABI.
14239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14241 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14242 set_gdbarch_convert_from_func_ptr_addr and
14243 set_gdbarch_elf_make_msymbol_special for ELFv1.
14244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14245 function descriptors on ELFv1.
14246 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14247 set up r12 at function entry.
14249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14251 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14252 (struct gdbarch_tdep): New member elf_abi.
14254 * rs6000-tdep.c: Include "elf/ppc64.h".
14255 (rs6000_gdbarch_init): Detect ELF ABI version.
14257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14259 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14260 within a register pair holding a DFP 128-bit value on little-endian.
14261 (ppc64_sysv_abi_return_value_base): Likewise.
14262 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14263 (dfp_pseudo_register_write): Likewise.
14265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14267 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14268 offset on little-endian when passing _Decimal32.
14269 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14273 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14274 of the overlapped FP register within the VSX register on little-
14276 (efpr_pseudo_register_write): Likewise.
14278 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14281 offset on little-endian when passing small structures.
14283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14285 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14286 (struct ppc64_sysv_argpos): New data structure.
14287 (ppc64_sysv_abi_push_float): Remove.
14288 (ppc64_sysv_abi_push_val): New function.
14289 (ppc64_sysv_abi_push_integer): Likewise.
14290 (ppc64_sysv_abi_push_freg): Likewise.
14291 (ppc64_sysv_abi_push_vreg): Likewise.
14292 (ppc64_sysv_abi_push_param): Likewise.
14293 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14294 (ppc64_sysv_abi_return_value_base): New function.
14295 (ppc64_sysv_abi_return_value): Refactor to use it.
14297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14299 * NEWS: Document new target powerpc64le-*-linux*.
14301 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14303 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14304 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14306 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14307 register set used in ELF core dumps. Add floating-point register set.
14309 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14311 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14312 dwarf2_to_gdb[] table using symbolic constants. Adjust
14313 penultimate entry from number representing the PC register
14314 to symbolic constant representing the MDR register. Add
14315 constant for the PC register to the end of the table.
14317 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14319 * bsd-kvm.c: Include <sys/param.h>
14321 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14323 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14325 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14327 * ada-lang.h (clear_ada_sym_cache): Delete.
14329 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14331 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14333 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14335 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14336 the sigreturn register save area only if the syscall is
14339 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14341 * valops.c (value_slice): Minor reformatting.
14343 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14345 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14347 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14349 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14350 New static globals.
14351 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14352 (ada_ignore_descriptive_types_p): New static global.
14353 (find_parallel_type_by_descriptive_type): Return immediately
14354 if ada_ignore_descriptive_types_p is set.
14355 (_initialize_ada_language): Register new commands "maintenance
14356 set ada", "maintenance show ada", "maintenance set ada
14357 ignore-descriptive-types" and "maintenance show ada
14358 ignore-descriptive-types".
14359 * NEWS: Add entry for new "maint ada set/show
14360 ignore-descriptive-types" commands.
14362 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14364 * record-btrace.c (record_btrace_close): Call btrace_teardown
14367 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14369 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14372 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14374 * ada-typeprint (type_is_full_subrange_of_target_type):
14376 (print_range): Add parameter bounds_prefered_p. If not set,
14377 try printing range types using the name of their base type.
14378 (print_range_type): Add parameter bounds_prefered_p.
14379 Use it in call to print_range.
14380 (print_array_type, ada_print_type): Update calls to print_range
14381 and print_range_type.
14383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14385 * ada-typeprint.c (print_array_type, print_choices, print_range)
14386 (print_range_bound, print_dynamic_range_bound, print_range_type):
14387 Remove declaration.
14389 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14391 * ada-typeprint.c (print_range): Add missing empty line
14392 after local declaration.
14394 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14396 * ada-valprint.c (print_optional_low_bound): Get index_type's
14397 target type for as long as it is a TYPE_CODE_RANGE.
14399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14401 * procfs.c (procfs_make_note_section): Remove assertion and
14402 associated comment.
14404 2014-01-24 Yao Qi <yao@codesourcery.com>
14406 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14407 * corelow.c (get_core_siginfo): Likewise.
14409 2014-01-24 Yao Qi <yao@codesourcery.com>
14411 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14412 ULONGEST. Don't check 'len' is negative.
14413 (remote_write_bytes): Change type of 'len' to ULONGEST.
14415 2014-01-23 Tom Tromey <tromey@redhat.com>
14418 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14419 Handle exception from frame.block.
14420 (FrameVars.fetch_frame_locals): Likewise.
14422 2014-01-23 Tom Tromey <tromey@redhat.com>
14425 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14426 on a NULL pointer. Move "goto error" to correct place.
14428 2014-01-23 Tom Tromey <tromey@redhat.com>
14431 * python/py-framefilter.c (apply_frame_filter): Call
14432 ensure_python_env after computing gdbarch.
14434 2014-01-23 Yao Qi <yao@codesourcery.com>
14436 * target.c (raw_memory_xfer_partial): Change argument type
14437 from void * to gdb_byte *.
14438 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14440 2014-01-22 Doug Evans <dje@google.com>
14442 New gdbserver option --debug-format=timestamp.
14443 * NEWS: Mention it.
14445 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14447 * syscalls/s390x-linux.xml: New file.
14448 * syscalls/s390-linux.xml: New file.
14449 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14450 (XML_SYSCALL_FILENAME_S390X): Likewise.
14451 (op_svc): New enum value for SVC opcode.
14452 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14453 (s390_linux_get_syscall_number): New function.
14454 (s390_gdbarch_init): Register '*get_syscall_number' and the
14455 syscall xml file name.
14456 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14457 "s390-linux.xml" and "s390x-linux.xml".
14458 * NEWS: Announce new feature.
14460 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14462 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14464 2014-01-22 Pedro Alves <palves@redhat.com>
14466 * xtensa-config.c: Include defs.h.
14468 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14470 * common/common-utils.h: Add "ARI:" comment beside __func__
14473 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14475 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14476 documentation a bit.
14478 2014-01-21 Roland McGrath <mcgrathr@google.com>
14480 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14481 * configure: Regenerate.
14482 * aclocal.m4: Regenerate.
14483 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14484 New substituted variables.
14485 (install-strip): New target.
14486 (INSTALL_SCRIPT): New substituted variable.
14487 (FLAGS_TO_PASS): Add it.
14488 (install-only): Use $(INSTALL_SCRIPT) rather than
14489 $(INSTALL_PROGRAM) for gcore.
14491 2014-01-20 Tom Tromey <tromey@redhat.com>
14493 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14496 2014-01-20 Tom Tromey <tromey@redhat.com>
14498 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14499 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14500 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14501 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14502 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14503 (struct cmd_list_element) <flags>: Remove.
14504 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14505 doc_allocated>: New fields.
14506 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14508 * maint.c (maintenance_do_deprecate): Update.
14509 * top.c (execute_command): Update.
14511 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14513 * xtensa-linux-nat.c: Include asm/ptrace.h.
14515 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14517 * Makefile.in (SFILES): Add d-support.c.
14518 (COMMON_OBS): Add d-support.o.
14519 * d-lang.h (d_parse_symbol): Add comment, now defined in
14521 * d-lang.c (parse_call_convention)
14522 (parse_attributes, parse_function_types)
14523 (parse_function_args, parse_type, parse_identifier)
14524 (call_convention_p, d_parse_symbol): Move functions to ...
14525 * d-support.c: ... New file.
14527 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14529 * d-lang.h (d_parse_symbol): Add declaration.
14530 * d-lang.c (extract_identifiers)
14531 (extract_type_info): Remove functions.
14532 (parse_call_convention, parse_attributes)
14533 (parse_function_types, parse_function_args)
14534 (parse_type, parse_identifier, call_convention_p)
14535 (d_parse_symbol): New functions.
14536 (d_demangle): Use d_parse_symbol to demangle D symbols.
14538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14540 * d-lang.h (struct builtin_d_type): New data type.
14541 (builtin_d_type): Add declaration.
14542 * d-lang.c (d_language_arch_info, build_d_types)
14543 (builtin_d_type): New functions.
14544 (enum d_primitive_types): New data type.
14545 (d_language_defn): Change c_language_arch_info to
14546 d_language_arch_info.
14547 (d_type_data): New static variable.
14548 (_initialize_d_language): Initialize d_type_data.
14550 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14552 * d-lang.h (d_main_name): Add declaration.
14553 * d-lang.c (d_main_name): New function.
14554 * symtab.c (find_main_name): Add call to d_main_name.
14556 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14558 * d-lang.c (d_language_defn): Change macro_expansion_c to
14559 macro_expansion_no.
14561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14563 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14565 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14567 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14568 gdb_exception" declaration.
14569 * remote.c (getpkt_or_notif_sane): Likewise.
14571 2014-01-17 Doug Evans <dje@google.com>
14573 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14574 function, contents of dirnames_to_char_ptr_vec_append moved here.
14575 (delim_string_to_char_ptr_vec): New function.
14576 (dirnames_to_char_ptr_vec_append): Rewrite.
14577 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14579 2014-01-17 Doug Evans <dje@google.com>
14581 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14583 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14584 #include "common-utils.h".
14585 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14586 * common/vec.h (VEC_ASSERT_PASS): Update.
14587 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14588 (MACH_CHECK_ERROR): Update.
14590 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14592 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14594 * gdbarch.h: Regenerate.
14596 2014-01-16 Tom Tromey <tromey@redhat.com>
14598 * value.c (struct value) <regnum>: Move earlier.
14600 2014-01-16 Tom Tromey <tromey@redhat.com>
14602 * remote.c (extended_remote_create_inferior): Rename from
14603 extended_remote_create_inferior_1. Add "ops" argument. Remove
14604 old implementation.
14606 2014-01-16 Pedro Alves <palves@redhat.com>
14608 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14609 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14612 2014-01-16 Doug Evans <dje@google.com>
14614 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14618 * btrace.h (btrace_thread_flag): New.
14619 (struct btrace_thread_info) <flags>: New.
14620 * record-btrace.c (record_btrace_resume_thread)
14621 (record_btrace_find_thread_to_move, btrace_step_no_history)
14622 (btrace_step_stopped, record_btrace_start_replaying)
14623 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14624 (record_btrace_find_resume_thread): New.
14625 (record_btrace_resume, record_btrace_wait): Extend.
14626 (record_btrace_can_execute_reverse): New.
14627 (record_btrace_open): Fail in non-stop mode.
14628 (record_btrace_set_replay): Split into this, ...
14629 (record_btrace_stop_replaying): ... this, ...
14630 (record_btrace_clear_histories): ... and this.
14631 (init_record_btrace_ops): Init to_can_execute_reverse.
14632 * NEWS: Announce it.
14634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14636 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14637 (forward_target_decr_pc_after_break)
14638 (target_decr_pc_after_break): New.
14639 * target.c (forward_target_decr_pc_after_break)
14640 (target_decr_pc_after_break): New.
14641 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14642 instead of gdbarch_decr_pc_after_break.
14643 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14644 instead of gdbarch_decr_pc_after_break.
14645 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14646 instead of gdbarch_decr_pc_after_break.
14647 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14648 instead of gdbarch_decr_pc_after_break.
14649 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14650 instead of gdbarch_decr_pc_after_break.
14651 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14652 instead of gdbarch_decr_pc_after_break.
14654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14656 * btrace.c: Include regcache.h.
14657 (btrace_add_pc): New.
14658 (btrace_enable): Call btrace_add_pc.
14659 (btrace_is_empty): New.
14660 * btrace.h (btrace_is_empty): New.
14661 * record-btrace.c (require_btrace, record_btrace_info): Call
14664 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14666 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14667 Support delta reads.
14668 (linux_disable_btrace): Change return type.
14669 * common/linux-btrace.h (linux_read_btrace): Change parameters
14670 and return type to allow error reporting. Update users.
14671 (linux_disable_btrace): Change return type. Update users.
14672 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14674 (btrace_error): New.
14675 (btrace_block) <begin>: Comment on BEGIN == 0.
14676 * btrace.c (btrace_compute_ftrace): Start from the end of
14678 (btrace_stitch_trace, btrace_clear_history): New.
14679 (btrace_fetch): Read delta trace, return if replaying.
14680 (btrace_clear): Move clear history code to btrace_clear_history.
14681 (parse_xml_btrace): Throw an error if parsing failed.
14682 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14683 and return type to allow error reporting.
14684 (target_read_btrace): Change parameters and return type to allow
14686 * target.c (target_read_btrace): Update.
14687 * remote.c (remote_read_btrace): Support delta reads. Pass
14689 * NEWS: Announce it.
14691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14693 * record.h (record_btrace_frame_unwind)
14694 (record_btrace_tailcall_frame_unwind): New declarations.
14695 * dwarf2-frame: Include record.h
14696 (dwarf2_frame_cfa): Throw an error for btrace frames.
14697 * record-btrace.c: Include hashtab.h.
14698 (btrace_get_bfun_name): New.
14699 (btrace_call_history): Call btrace_get_bfun_name.
14700 (struct btrace_frame_cache): New.
14702 (bfcache_hash, bfcache_eq, bfcache_new): New.
14703 (btrace_get_frame_function): New.
14704 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14705 (record_btrace_frame_this_id): Compute own id.
14706 (record_btrace_frame_prev_register): Provide PC, throw_error
14707 for all other registers.
14708 (record_btrace_frame_sniffer): Detect btrace frames.
14709 (record_btrace_tailcall_frame_sniffer): New.
14710 (record_btrace_frame_dealloc_cache): New.
14711 (record_btrace_frame_unwind): Add new functions.
14712 (record_btrace_tailcall_frame_unwind): New.
14713 (_initialize_record_btrace): Allocate cache.
14714 * btrace.c (btrace_clear): Call reinit_frame_cache.
14715 * NEWS: Announce it.
14717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14719 * record-btrace.c (record_btrace_set_replay)
14720 (record_btrace_goto_begin, record_btrace_goto_end)
14721 (record_btrace_goto): New.
14722 (init_record_btrace_ops): Initialize them.
14723 * NEWS: Announce it.
14725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14727 * record-btrace.c (record_btrace_find_new_threads)
14728 (record_btrace_thread_alive): New.
14729 (init_record_btrace_ops): Initialize to_find_new_threads and
14732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14734 * record-btrace.c (record_btrace_resume): New.
14735 (record_btrace_wait): New.
14736 (init_record_btrace_ops): Initialize to_wait and to_resume.
14738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14740 * record-btrace.c (record_btrace_xfer_partial)
14741 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14742 (record_btrace_allow_memory_access): New.
14743 (init_record_btrace_ops): Initialize new methods.
14744 * target.c (raw_memory_xfer_partial): Bail out if target reports
14745 that this memory is not available.
14747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14749 * target.h (target_ops) <to_insert_breakpoint>
14750 <to_remove_breakpoint>: Add target_ops parameter.
14751 (forward_target_insert_breakpoint): New.
14752 (forward_target_remove_breakpoint): New.
14753 (memory_remove_breakpoint, memory_insert_breakpoint):
14754 Add target_ops parameter.
14755 * target.c (target_insert_breakpoint): Split into this and ...
14756 (forward_target_insert_breakpoint): ... this.
14757 (target_remove_breakpoint): Split into this and ...
14758 (forward_target_remove_breakpoint): ... this.
14759 (debug_to_insert_breakpoint): Add target_ops parameter.
14760 Call forward_target_insert_breakpoint.
14761 (debug_to_remove_breakpoint): Add target_ops parameter.
14762 Call forward_target_remove_breakpoint.
14763 (update_current_target): Do not inherit or default to_insert_breakpoint
14764 and to_remove_breakpoint.
14765 * corelow.c (ignore): Add target_ops parameter.
14766 * exec.c (ignore): Add target_ops parameter.
14767 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14768 Add target_ops parameter.
14769 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14770 Add target_ops parameter.
14771 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14772 Add target_ops parameter.
14773 * record-full.c (record_full_beneath_to_insert_breakpoint)
14774 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14775 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14776 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14777 (record_full_core_remove_breakpoint): Add target_ops parameter.
14779 (record_full_beneath_to_insert_breakpoint_ops)
14780 (record_full_beneath_to_remove_breakpoint_ops)
14781 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14782 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14783 tmp_to_remove_breakpoint_ops,
14784 record_full_beneath_to_insert_breakpoint_ops, and
14785 record_full_beneath_to_remove_breakpoint_ops.
14786 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14787 (m32r_remove_breakpoint): Add target_ops parameter.
14788 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14789 Add target_ops parameter.
14790 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14791 Add target_ops parameter.
14793 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14794 Markus Metzger <markus.t.metzger@intel.com>
14796 * record-btrace.c: Include frame-unwind.h.
14797 (record_btrace_frame_unwind_stop_reason)
14798 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14799 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14801 (init_record_btrace_ops): Install it.
14803 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14805 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14808 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14810 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14813 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14815 * frame-unwind.c: Include target.h.
14816 (frame_unwind_try_unwinder): New function with code from ...
14817 (frame_unwind_find_by_frame): ... here. New variable
14818 unwinder_from_target, call also target_get_unwinder)
14819 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14820 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14821 * target.h (struct target_ops): New fields to_get_unwinder and
14822 to_get_tailcall_unwinder.
14823 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14827 * record-btrace.c (record_btrace_fetch_registers)
14828 (record_btrace_store_registers)
14829 (record_btrace_to_prepare_to_store): New.
14830 (init_record_btrace_ops): Add the above.
14832 2014-01-16 Tom Tromey <tromey@redhat.com>
14834 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14835 * target.h (struct target_ops) <to_prepare_to_store>: Add
14837 (target_prepare_to_store): Add argument.
14838 * target.c (debug_to_prepare_to_store): Add argument.
14839 (update_current_target): Update.
14840 * remote.c (remote_prepare_to_store): Add 'self' argument.
14841 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14842 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14843 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14844 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14846 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14847 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14848 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14849 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14850 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14854 * btrace.h (replay) <replay>: New.
14855 (btrace_is_replaying): New.
14856 * btrace.c (btrace_clear): Free replay iterator.
14857 (btrace_is_replaying): New.
14858 * record-btrace.c (record_btrace_is_replaying): New.
14859 (record_btrace_info): Print insn number if replaying.
14860 (record_btrace_insn_history): Start at replay position.
14861 (record_btrace_call_history): Start at replay position.
14862 (init_record_btrace_ops): Init to_record_is_replaying.
14864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14866 * record-btrace.c (record_btrace_insn_history_range): Include
14868 (record_btrace_insn_history_from): Adjust range.
14869 (record_btrace_call_history_range): Include
14871 (record_btrace_call_history_from): Adjust range.
14872 * NEWS: Announce changes.
14874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14876 * record.h (enum record_print_flag)
14877 <record_print_indent_calls>: New.
14878 * record.c (get_call_history_modifiers): Recognize /c modifier.
14879 (_initialize_record): Document /c modifier.
14880 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14881 Reorder fields. Optionally indent the function name. Update
14883 * NEWS: Announce changes.
14885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14887 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14891 * btrace.c (ftrace_new_function): Start counting at one.
14892 * record-btrace.c (record_btrace_info): Adjust number of calls
14894 * NEWS: Announce it.
14896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898 * record-btrace.c (btrace_call_history_insn_range): Print
14899 insn range as [begin, end].
14901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14903 * btrace.h (struct btrace_func_link): New.
14904 (enum btrace_function_flag): New.
14905 (struct btrace_inst): Rename to ...
14906 (struct btrace_insn): ...this. Update all users.
14907 (struct btrace_func) <ibegin, iend>: Remove.
14908 (struct btrace_func_link): New.
14909 (struct btrace_func): Rename to ...
14910 (struct btrace_function): ...this. Update all users.
14911 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14912 (number, level, flags>: New.
14913 (struct btrace_insn_iterator): Rename to ...
14914 (struct btrace_insn_history): ...this.
14916 (struct btrace_insn_iterator, btrace_call_iterator): New.
14917 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14918 (struct btrace_target_info) <begin, end, level>
14919 <insn_history, call_history>: New.
14920 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14921 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14922 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14923 (btrace_call_number, btrace_call_begin, btrace_call_end)
14924 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14925 (btrace_find_function_by_number, btrace_set_insn_history)
14926 (btrace_set_call_history): New.
14927 * btrace.c (btrace_init_insn_iterator)
14928 (btrace_init_func_iterator, compute_itrace): Remove.
14929 (ftrace_print_function_name, ftrace_print_filename)
14930 (ftrace_skip_file): Change
14931 parameter to const.
14932 (ftrace_init_func): Remove.
14933 (ftrace_debug): Use new btrace_function fields.
14934 (ftrace_function_switched): Also consider gaining and
14935 losing symbol information).
14936 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14937 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14938 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14940 (ftrace_new_function): Move. Remove debug print.
14941 (ftrace_update_lines, ftrace_update_insns): New.
14942 (ftrace_update_function): Check for call, ret, and jump.
14943 (compute_ftrace): Renamed to ...
14944 (btrace_compute_ftrace): ...this. Rewritten to compute call
14946 (btrace_fetch, btrace_clear): Updated.
14947 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14948 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14949 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14950 (btrace_call_number, btrace_call_begin, btrace_call_end)
14951 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14952 (btrace_find_function_by_number, btrace_set_insn_history)
14953 (btrace_set_call_history): New.
14954 * record-btrace.c (require_btrace): Use new btrace thread
14956 (record_btrace_info, btrace_insn_history)
14957 (record_btrace_insn_history, record_btrace_insn_history_range):
14958 Use new btrace thread info fields and new iterator.
14959 (btrace_func_history_src_line): Rename to ...
14960 (btrace_call_history_src_line): ...this. Use new btrace
14961 thread info fields.
14962 (btrace_func_history): Rename to ...
14963 (btrace_call_history): ...this. Use new btrace thread info
14964 fields and new iterator.
14965 (record_btrace_call_history, record_btrace_call_history_range):
14966 Use new btrace thread info fields and new iterator.
14968 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14970 * frame.h (frame_id_build_unavailable_stack_special): New.
14971 * frame.c (frame_id_build_unavailable_stack_special): New.
14973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14975 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14976 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14977 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14979 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14980 (i386_insn_is_jump, i386_jmp_p): New.
14981 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14982 insn_is_jump to gdbarch.
14983 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14984 * gdbarch.h: Regenerated.
14985 * gdbarch.c: Regenerated.
14986 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14987 (default_insn_is_jump): New.
14988 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14989 (default_insn_is_jump): New.
14991 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14993 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14995 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14996 (btrace_read_type) <btrace_read_new>: Change to ...
14997 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15001 * common/linux-btrace.c (linux_read_btrace): Free trace from
15002 previous iteration.
15004 2014-01-15 Doug Evans <dje@google.com>
15006 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15009 2014-01-15 Tom Tromey <tromey@redhat.com>
15011 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15012 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15013 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15014 (set_objfile_main_name): New function.
15015 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15016 language_of_main>: New fields.
15017 (set_objfile_main_name): Declare.
15018 * symtab.c (find_main_name): Loop over objfiles to find the main
15020 (set_main_name): Now static.
15021 (get_main_info): Add comment.
15022 * symtab.h (set_main_name): Don't declare.
15024 2014-01-15 Tom Tromey <tromey@redhat.com>
15026 * symtab.c (main_progspace_key): New global.
15027 (struct main_info): New.
15028 (name_of_main, language_of_main): Remove.
15029 (get_main_info, main_info_cleanup): New function.
15030 (set_main_name, main_name, main_language): Use get_main_info.
15031 (_initialize_symtab): Initialize main_progspace_key.
15033 2014-01-15 Tom Tromey <tromey@redhat.com>
15035 * dbxread.c (process_one_symbol): Update.
15036 * dwarf2read.c (read_partial_die): Update.
15037 * symfile.c (set_initial_language): Call main_language.
15038 * symtab.c (language_of_main): Now static.
15039 (set_main_name): Add 'lang' parameter.
15040 (find_main_name): Update.
15041 (main_language): New function.
15042 (symtab_observer_executable_changed): Update.
15043 * symtab.h (set_main_name): Update.
15044 (language_of_main): Remove.
15045 (main_language): Declare.
15047 2014-01-15 Tom Tromey <tromey@redhat.com>
15049 * symfile.c (init_entry_point_info): Use new "initialized" field.
15051 * objfiles.h (struct entry_point) <initialized>: New field.
15052 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15053 (struct objfile) <ei>: ...here. Remove.
15054 * objfiles.c (entry_point_address_query): Update.
15056 2014-01-15 Tom Tromey <tromey@redhat.com>
15058 * objfiles.c (entry_point_address_query): Relocate entry point
15060 (objfile_relocate1): Do not relocate entry point address.
15061 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15062 <the_bfd_section_index>: New field.
15063 * symfile.c (init_entry_point_info): Find the entry point's
15066 2014-01-15 Tom Tromey <tromey@redhat.com>
15068 * solib-frv.c (enable_break): Use entry_point_address_query.
15070 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15072 * NEWS: Add note on improved process record-replay on
15073 arm*-linux* targets.
15075 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15077 * arm-tdep.c (enum arm_record_result): New enum.
15078 (arm_record_unsupported_insn): New function.
15079 (arm_record_coproc_data_proc): Removed.
15080 (thumb2_record_ld_st_multiple): New function.
15081 (thumb2_record_ld_st_dual_ex_tbb): New function.
15082 (thumb2_record_data_proc_sreg_mimm): New function.
15083 (thumb2_record_ps_dest_generic): New function.
15084 (thumb2_record_branch_misc_cntrl): New function.
15085 (thumb2_record_str_single_data): New function.
15086 (thumb2_record_ld_mem_hints): New function.
15087 (thumb2_record_ld_word): New function.
15088 (thumb2_record_lmul_lmla_div): New function.
15089 (thumb2_record_decode_insn_handler): New function.
15090 (decode_insn): Add thumb32 instruction handlers.
15092 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15094 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15095 (struct arm_linux_record_tdep): Declare.
15096 (arm_canonicalize_syscall): New function.
15097 (arm_all_but_pc_registers_record): New function.
15098 (arm_linux_syscall_record): New function.
15099 (arm_linux_init_abi): Add syscall recording constructs.
15100 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15101 decoding. (arm_record_coproc_data_proc): Update arm syscall
15103 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15104 <arm_syscall_record>: New field.
15105 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15108 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15110 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15111 register for push instruction recording.
15113 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15115 * arm-tdep.c (thumb_record_misc): Update to correct logical
15116 error while recording ldm, ldmia and pop instructions.
15118 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15120 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15122 2014-01-15 Pedro Alves <palves@redhat.com>
15124 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15125 (go32_resume, go32_fetch_registers, store_register)
15126 (go32_store_registers, go32_prepare_to_store)
15127 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15128 (go32_create_inferior, go32_can_run, go32_terminal_init)
15129 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15132 2014-01-15 Tom Tromey <tromey@redhat.com>
15134 * target.h (async_callback_ftype): New typedef.
15135 (struct target_ops) <to_async>: Use it.
15137 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15139 * python/py-value.c (get_field_type): Remove unnecessary curly
15140 braces for single-statement if block.
15142 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15144 * python/py-type.c (convert_field): Add missing empty line
15145 after declarations.
15147 2014-01-14 Doug Evans <dje@google.com>
15149 * symfile.h (expand_symtabs_matching): Renamed from
15150 expand_partial_symbol_names. Update prototype.
15151 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15152 * symfile.c (expand_symtabs_matching): Renamed from
15153 expand_partial_symbol_names. New args file_matcher, kind.
15154 Rename arg fun to symbol_matcher.
15155 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15156 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15157 ada_expand_partial_symbol_name.
15158 (ada_make_symbol_completion_list): Update to call
15159 expand_symtabs_matching.
15160 (ada_add_global_exceptions): Call expand_symtabs_matching.
15161 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15162 call map_symbol_filenames.
15163 * symtab.c (sources_info): Update to call map_symbol_filenames.
15164 (search_symbols): Call expand_symtabs_matching.
15165 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15166 (default_make_symbol_completion_list_break_on): Update to call
15167 expand_symtabs_matching.
15168 (make_source_files_completion_list): Update to call
15169 map_symbol_filenames.
15171 2014-01-14 Doug Evans <dje@google.com>
15173 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15174 (expand_symtabs_symbol_matcher_ftype): New typedef.
15175 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15176 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15177 * symfile.c (expand_partial_symbol_names): Update to use
15178 expand_symtabs_symbol_matcher_ftype.
15179 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15180 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15181 Arg name_matcher renamed to symbol_matcher.
15182 * psymtab.c (recursively_search_psymtabs): Update to use
15183 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15185 (expand_symtabs_matching_via_partial): Update to use
15186 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15187 Arg name_matcher renamed to symbol_matcher.
15189 2014-01-14 Doug Evans <dje@google.com>
15191 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15192 (map_partial_symbol_filenames): Ditto.
15193 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15194 (map_partial_symbol_filenames): Ditto.
15195 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15196 (map_partial_symbol_filenames): Ditto.
15197 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15198 (map_partial_symbol_filenames): Ditto.
15199 * symtab.c: Delete #include "psymtab.h".
15201 2014-01-14 Pedro Alves <palves@redhat.com>
15202 Tom Tromey <tromey@redhat.com>
15204 * infrun.c (use_displaced_stepping): Use find_record_target
15205 instead of RECORD_IS_USED.
15206 (adjust_pc_after_break): Use record_full_is_used instead of
15208 * record-btrace.c (record_btrace_open): Call record_preopen
15209 instead of checking RECORD_IS_USED.
15210 * record-full.c (record_full_shortname)
15211 (record_full_core_shortname): New globals.
15212 (record_full_is_used): New function.
15213 (find_full_open): Call record_preopen instead of checking
15215 (init_record_full_ops): Set the target's shortname to
15216 record_full_shortname.
15217 (init_record_full_core_ops): Set the target's shortname to
15218 record_full_core_shortname.
15219 * record-full.h (record_full_is_used): Declare.
15220 * record.c (find_record_target): Make extern.
15221 (record_preopen): New function.
15222 * record.h (RECORD_IS_USED): Delete macro.
15223 (find_record_target, record_preopen): Declare functions.
15225 2014-01-14 Yao Qi <yao@codesourcery.com>
15227 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15228 'len''s type to ULONGEST.
15229 (core_xfer_shared_libraries_aix): Likewise.
15230 * gdbarch.c, gdbarch.h: Regenerated.
15231 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15232 Change type of 'len' to ULONGEST.
15233 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15234 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15236 2014-01-14 Yao Qi <yao@codesourcery.com>
15238 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15239 type of 'len' to ULONGEST.
15240 (linux_xfer_osdata_processgroups): Likewise.
15241 (linux_xfer_osdata_threads): Likewise.
15242 (linux_xfer_osdata_fds): Likewise.
15243 (linux_xfer_osdata_isockets): Likewise.
15244 (linux_xfer_osdata_shm): Likewise.
15245 (linux_xfer_osdata_sem): Likewise.
15246 (linux_xfer_osdata_msg): Likewise.
15247 (linux_common_xfer_osdata): Likewise.
15248 (struct osdata_type) <getter>: Likewise.
15249 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15252 2014-01-14 Yao Qi <yao@codesourcery.com>
15254 * target.h (target_xfer_partial_ftype): Update.
15255 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15257 * aix-thread.c (aix_thread_xfer_partial): Change type of
15258 argument 'len' to ULONGEST.
15259 * auxv.c (procfs_xfer_auxv): Likewise.
15260 (ld_so_xfer_auxv): Likewise.
15261 (memory_xfer_auxv): Likewise.
15262 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15263 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15264 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15265 * corelow.c (core_xfer_partial): Likewise.
15266 * ctf.c (ctf_xfer_partial): Likewise.
15267 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15269 (darwin_read_dyld_info): Likewise.
15270 (darwin_xfer_partial): Likewise.
15271 * exec.c (section_table_xfer_memory_partial): Likewise.
15272 (exec_xfer_partial): Likewise.
15273 * exec.h (section_table_xfer_memory_partial): Update
15275 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15276 instead of plongest.
15277 (gnu_xfer_partial): Likewise.
15278 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15279 (ia64_hpux_xfer_solib_got): Likewise.
15280 (ia64_hpux_xfer_partial): Likewise.
15281 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15282 * inf-ptrace.c (inf_ptrace_xfer_partial):
15283 * inf-ttrace.c (inf_ttrace_xfer_partial):
15284 * linux-nat.c (linux_xfer_siginfo): Likewise.
15285 (linux_nat_xfer_partial): Likewise.
15286 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15287 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15288 * monitor.c (monitor_xfer_memory): Likewise.
15289 (monitor_xfer_partial): Likewise.
15290 * procfs.c (procfs_xfer_partial): Likewise.
15291 * record-full.c (record_full_xfer_partial): Likewise.
15292 (record_full_core_xfer_partial): Likewise.
15293 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15294 instead of plongest.
15295 (gdbsim_xfer_partial): Likewise.
15296 * remote.c (remote_xfer_partial): Likewise.
15297 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15298 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15300 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15301 (rs6000_xfer_shared_libraries): Likewise.
15302 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15303 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15304 (sparc_xfer_partial): Likewise.
15305 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15306 (spu_xfer_partial): Likewise.
15307 * spu-multiarch.c (spu_xfer_partial): Likewise.
15308 * target.c (target_read_live_memory): Likewise.
15309 (memory_xfer_live_readonly_partial): Likewise.
15310 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15311 (target_xfer_partial, default_xfer_partial): Likewise.
15312 (current_xfer_partial): Likewise.
15313 * tracepoint.c (tfile_xfer_partial): Likewise.
15314 * windows-nat.c (windows_xfer_memory): Likewise. Call
15315 pulongest instead of plongest.
15316 (windows_xfer_partial): Likewise.
15317 (windows_xfer_shared_libraries): Likewise.
15319 2014-01-14 Yao Qi <yao@codesourcery.com>
15321 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15322 target_xfer_partial_ftype.
15324 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15328 * valops.c (value_struct_elt_bitpos): New function
15329 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15330 object to 'None' if the field name is an empty string ("").
15331 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15332 attribute to look for a field when 'name' is 'None'.
15333 (get_field_type): New function
15335 2014-01-13 Doug Evans <dje@google.com>
15338 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15339 (try_open_dwop_file): Ditto.
15340 * gdb_bfd.c: #include "vec.h".
15341 (bfdp): New typedef.
15342 (struct gdb_bfd_data): New member included_bfds.
15343 (gdb_bfd_unref): Unref all included bfds.
15344 (gdb_bfd_record_inclusion): New function.
15345 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15347 2014-01-13 Tom Tromey <tromey@redhat.com>
15349 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15351 2014-01-13 Tom Tromey <tromey@redhat.com>
15353 * defs.h (use_windows): Remove.
15354 * gdb.c (main): Update.
15355 * main.c (captured_main, gdb_main): Update.
15356 * main.h (struct captured_main_args) <use_windows>: Remove.
15357 * top.c (use_windows): Remove.
15359 2014-01-13 Tom Tromey <tromey@redhat.com>
15361 * defs.h (deprecated_flush_hook): Remove.
15363 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15366 * linux-thread-db.c (try_thread_db_load): Add parameter
15367 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15368 (try_thread_db_load_from_pdir_1): Move it there from here.
15369 (try_thread_db_load_from_sdir): Update caller.
15370 (try_thread_db_load_from_dir): Move it there from here.
15372 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15374 * regformats/regdat.sh: Always rewrite the register file.
15376 2014-01-13 Pedro Alves <palves@redhat.com>
15378 * Makefile.in (CHECK_HEADERS): New variable.
15379 (check-headers:): New rule.
15381 2014-01-13 Tom Tromey <tromey@redhat.com>
15383 * cli/cli-setshow.c (do_set_command): Update.
15384 * defs.h (deprecated_set_hook): Remove.
15385 * top.c (deprecated_set_hook): Remove.
15387 2014-01-13 Pedro Alves <palves@redhat.com>
15389 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15390 the tracepoint if the PC is a pseudo-register.
15392 2014-01-13 Tom Tromey <tromey@redhat.com>
15394 * defs.h (XCALLOC): Remove.
15395 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15396 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15397 * dwarf2loc.c (allocate_piece_closure): Likewise.
15398 * elfread.c (elf_symfile_segments): Likewise.
15399 (elf_symfile_segments): Likewise.
15400 * gdbtypes.c (copy_type_recursive): Likewise.
15401 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15402 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15403 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15405 * mt-tdep.c (mt_gdbarch_init): Likewise.
15406 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15408 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15409 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15410 * registry.c (registry_alloc_data): Likewise.
15411 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15412 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15413 * serial.c (serial_fdopen_ops): Likewise.
15414 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15416 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15417 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15420 2014-01-13 Tom Tromey <tromey@redhat.com>
15422 * defs.h (XMALLOC): Remove.
15423 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15424 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15425 * cli-out.c (struct ui_out *): Likewise.
15426 * cli/cli-dump.c (add_dump_command): Likewise.
15427 (add_dump_command): Likewise.
15428 * complaints.c (get_complaints): Likewise.
15429 (find_complaint): Likewise.
15430 * dwarf2-frame.c (execute_cfa_program): Likewise.
15431 * dwarf2read.c (abbrev_table_read_table): Likewise.
15432 * gdbarch.sh: Likewise.
15433 * gdbarch.c: Rebuild.
15434 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15435 * interps.c (interp_new): Likewise.
15436 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15437 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15438 * mi/mi-console.c (mi_console_file_new): Likewise.
15439 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15440 * mi/mi-out.c (mi_out_new): Likewise.
15441 * mi/mi-parse.c (mi_parse): Likewise.
15442 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15443 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15444 * observer.c (xalloc_observer_list_node): Likewise.
15445 * regcache.c (regcache_xmalloc_1): Likewise.
15446 * reggroups.c (reggroup_new): Likewise.
15447 (_initialize_reggroup): Likewise.
15448 * registry.c (register_data_with_cleanup): Likewise.
15449 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15450 * ser-base.c (serial_ttystate): Likewise.
15451 * ser-mingw.c (make_pipe_state): Likewise.
15452 * ser-pipe.c (pipe_open): Likewise.
15453 * serial.c (serial_open): Likewise.
15454 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15455 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15456 (tui_alloc_win_info): Likewise.
15457 (tui_add_content_elements): Likewise.
15458 * tui/tui-file.c (tui_file_new): Likewise.
15459 * tui/tui-out.c (tui_out_new): Likewise.
15460 * ui-file.c (mem_file_new): Likewise.
15461 * ui-out.c (push_level): Likewise.
15462 (make_cleanup_ui_out_end): Likewise.
15463 (append_header_to_list): Likewise.
15464 (ui_out_new): Likewise.
15465 * user-regs.c (user_reg_add_builtin): Likewise.
15467 2014-01-13 Tom Tromey <tromey@redhat.com>
15469 * defs.h (XZALLOC): Remove.
15470 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15471 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15472 (get_ada_tasks_inferior_data): Likewise.
15473 * auto-load.c (get_auto_load_pspace_data): Likewise.
15474 * auxv.c (get_auxv_inferior_data): Likewise.
15475 * bfd-target.c (target_bfd_reopen): Likewise.
15476 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15477 (deprecated_insert_raw_breakpoint): Likewise.
15478 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15479 * corelow.c (core_open): Likewise.
15480 * darwin-nat.c (darwin_check_new_threads): Likewise.
15481 (darwin_attach_pid): Likewise.
15482 * dummy-frame.c (dummy_frame_push): Likewise.
15483 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15484 * dwarf2loc.c (allocate_piece_closure): Likewise.
15485 * elfread.c (elf_symfile_segments): Likewise.
15486 * eval.c (ptrmath_type_p): Likewise.
15487 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15488 * gdbtypes.c (alloc_type_arch): Likewise.
15489 (alloc_type_instance): Likewise.
15490 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15491 * inf-child.c (inf_child_can_use_agent): Likewise.
15492 * inflow.c (get_inflow_inferior_data): Likewise.
15493 * infrun.c (save_infcall_suspend_state): Likewise.
15494 * jit.c (jit_reader_load): Likewise.
15495 (get_jit_objfile_data): Likewise.
15496 (get_jit_program_space_data): Likewise.
15497 (jit_object_open_impl): Likewise.
15498 (jit_symtab_open_impl): Likewise.
15499 (jit_block_open_impl): Likewise.
15500 (jit_frame_sniffer): Likewise.
15501 * linux-fork.c (add_fork): Likewise.
15502 * maint.c (make_command_stats_cleanup): Likewise.
15503 * objfiles.c (get_objfile_pspace_data): Likewise.
15504 * opencl-lang.c (struct lval_closure): Likewise.
15505 * osdata.c (osdata_start_osdata): Likewise.
15506 * progspace.c (new_address_space): Likewise.
15507 (add_program_space): Likewise.
15508 * remote-sim.c (get_sim_inferior_data): Likewise.
15509 * sh-tdep.c (sh_gdbarch_init): Likewise.
15510 * skip.c (Ignore): Likewise.
15511 (skip_delete_command): Likewise.
15512 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15513 (library_list_start_library): Likewise.
15514 (solib_aix_current_sos): Likewise.
15515 * solib-darwin.c (get_darwin_info): Likewise.
15516 (darwin_current_sos): Likewise.
15517 * solib-dsbt.c (get_dsbt_info): Likewise.
15518 * solib-ia64-hpux.c (new_so_list): Likewise.
15519 (ia64_hpux_get_solib_linkage_addr): Likewise.
15520 * solib-spu.c (append_ocl_sos): Likewise.
15521 (spu_current_sos): Likewise.
15522 * solib-svr4.c (get_svr4_info): Likewise.
15523 (svr4_keep_data_in_core): Likewise.
15524 (library_list_start_library): Likewise.
15525 (svr4_default_sos): Likewise.
15526 (svr4_read_so_list): Likewise.
15527 * solib-target.c (library_list_start_library): Likewise.
15528 (solib_target_current_sos): Likewise.
15529 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15530 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15531 * symfile.c (default_symfile_segments): Likewise.
15532 * target-descriptions.c (tdesc_data_init): Likewise.
15533 (tdesc_create_reg): Likewise.
15534 (struct tdesc_type *): Likewise.
15535 (tdesc_create_vector): Likewise.
15536 (tdesc_set_struct_size): Likewise.
15537 (struct tdesc_type *): Likewise.
15538 (tdesc_free_feature): Likewise.
15539 (tdesc_create_feature): Likewise.
15540 * windows-nat.c (windows_add_thread): Likewise.
15541 (windows_make_so): Likewise.
15542 * xml-support.c (gdb_xml_body_text): Likewise.
15543 (gdb_xml_create_parser_and_cleanup): Likewise.
15544 (xml_process_xincludes): Likewise.
15545 * xml-syscall.c (allocate_syscalls_info): Likewise.
15546 (syscall_create_syscall_desc): Likewise.
15548 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15550 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15551 function, with code from i386_stap_parse_special_token.
15552 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15553 (i386_stap_parse_special_token): Move code to the two functions
15554 above; simplify it.
15556 2014-01-09 Pedro Alves <palves@redhat.com>
15557 Hui Zhu <hui@codesourcery.com>
15560 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15561 bp_err_string. Don't mark the location shlib_disabled if the
15562 error thrown wasn't a generic or memory error. Catch errors
15563 thrown while inserting breakpoints in overlayed code. Output
15564 error message of software breakpoints.
15565 * remote.c (remote_insert_breakpoint): If this breakpoint has
15566 target-side commands but this stub doesn't support Z0 packets,
15567 throw NOT_SUPPORTED_ERROR error.
15568 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15569 * target.h (target_insert_breakpoint): Extend comment.
15570 (target_insert_hw_breakpoint): Add comment.
15572 2014-01-08 Pedro Alves <palves@redhat.com>
15574 * remote.c (remote_add_thread): Add threads silently if starting
15576 (remote_notice_new_inferior): If in all-stop, and starting up,
15577 don't call notice_new_inferior.
15578 (get_current_thread): New function, factored out from ...
15579 (add_current_inferior_and_thread): ... this. Adjust.
15580 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15581 found any thread, then select the remote's current thread as GDB's
15582 current thread too.
15584 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15586 * NEWS: Create a new section for the next release branch.
15587 Rename the section of the current branch, now that it has
15590 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15592 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15593 * version.in: Bump version to 7.7.50.DATE-cvs.
15595 2014-01-08 Yao Qi <yao@codesourcery.com>
15597 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15598 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15599 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15601 2014-01-08 Yao Qi <yao@codesourcery.com>
15603 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15604 return value of bfd_get_filename to symbol_file_add_from_bfd.
15606 2014-01-08 Pierre Muller <muller@sourceware.org>
15609 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15610 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15611 to prim_record_mininal_symbol_and_info.
15612 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15613 in call to prim_record_minimal_symbol_and_info.
15614 (read_pe_exported_syms): Set index field of section_data.
15616 2014-01-07 Andrew Pinski <apinski@cavium.com>
15618 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15619 * features/aarch64.c: Regenerate.
15621 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15623 * target.c (return_null): Define.
15624 (update_current_target): Use it instead of return_zero for
15625 functions that return a pointer.
15627 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15629 * source.c (add_path): Fix check for duplicated paths in the previously
15632 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15634 * ada-lang.c: Remove duplicated include statements.
15635 * alphabsd-nat.c: Ditto.
15636 * amd64-darwin-tdep.c: Ditto.
15637 * amd64fbsd-nat.c: Ditto.
15638 * auto-load.c: Ditto.
15640 * breakpoint.c: Ditto.
15641 * dbxread.c: Ditto.
15642 * fork-child.c: Ditto.
15643 * gdb_usleep.c: Ditto.
15644 * i386-darwin-tdep.c: Ditto.
15645 * i386fbsd-nat.c: Ditto.
15647 * inferior.c: Ditto.
15648 * jv-lang.c: Ditto.
15649 * linux-nat.c: Ditto.
15650 * linux-tdep.c: Ditto.
15651 * m68kbsd-nat.c: Ditto.
15652 * m68klinux-nat.c: Ditto.
15653 * microblaze-tdep.c: Ditto.
15654 * mips-linux-tdep.c: Ditto.
15655 * mn10300-tdep.c: Ditto.
15656 * nto-tdep.c: Ditto.
15657 * opencl-lang.c: Ditto.
15659 * printcmd.c: Ditto.
15660 * regcache.c: Ditto.
15661 * remote-m32r-sdi.c: Ditto.
15663 * symfile.c: Ditto.
15665 * tilegx-linux-nat.c: Ditto.
15666 * tilegx-tdep.c: Ditto.
15667 * tracepoint.c: Ditto.
15669 * vaxbsd-nat.c: Ditto.
15670 * windows-nat.c: Ditto.
15671 * xtensa-tdep.c: Ditto.
15673 2014-01-07 Yao Qi <yao@codesourcery.com>
15675 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15677 2014-01-07 Yao Qi <yao@codesourcery.com>
15678 Joel Brobecker <brobecker@adacore.com>
15680 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15681 (pdc_write_regs): Likewise.
15682 (fetch_regs_kernel_thread): Likewise.
15683 (store_regs_kernel_thread): Likewise.
15685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15687 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15688 tagged type objects to their actual type.
15690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15692 * ada-valprint.c (print_field_values): Add "language" parameter.
15693 Update calls to print_field_values and print_variant_part.
15694 Pass new parameter "language" in call to val_print instead
15695 of "current_language". Replace call to ada_val_print by call
15697 (print_variant_part): Add "language" parameter.
15698 (ada_val_print_struct_union): Update call to print_field_values.
15700 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15702 * ada-valprint.c (ui_memcpy): Delete.
15703 (ada_print_floating): Update documentation. Add empty line
15704 between between function documentation and implementation.
15705 Delete variable "buffer". Use ui_file_xstrdup in place of
15706 ui_file_put. Minor adjustments following this change.
15708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15710 * ada-valprint.c (ada_val_print_string): New function,
15711 extracted from ada_val_print_array.
15712 (ada_val_print_array): Replace extracted code by call
15713 to ada_val_print_string followed by a return. Move
15714 "else" branch to the function's top block.
15716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15718 * ada-valprint.c (ada_val_print_array): Move implementation
15719 down. Rename parameter "offset" and "val" into "offset_aligned"
15720 and "original_value" respectively. Add parameter "offset".
15722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15724 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15725 re-organizing the code. Change the "???" message printed
15726 when target type is a TYPE_CODE_UNDEF into
15727 "<ref to undefined type>".
15729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15731 * ada-valprint.c (print_record): Delete, implementation inlined...
15732 (ada_val_print_struct_union): ... here. Remove call to
15733 ada_check_typedef in inlined implementation.
15735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15737 * ada-valprint.c (ada_val_print_gnat_array): New function,
15738 extracted from ada_val_print_1;
15739 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15740 (ada_val_print_flt, ada_val_print_struct_union)
15741 (ada_val_print_ref): Likewise.
15742 (ada_val_print_1): Delete variables i and elttype.
15743 Replace extracted-out code by call to corresponding
15746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15748 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15752 * ada-valprint.c (ada_val_print_1): Replace calls to
15753 ada_val_print_1 by calls to val_print.
15755 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15757 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15758 Update calls to self accordingly. Replace calls to c_val_print
15759 by calls to val_print.
15761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15763 * ada-valprint.c (print_record): Delete declaration.
15764 (adjust_type_signedness, ada_val_print_1): Likewise.
15765 (ada_val_print): Move function implementation down.
15766 (print_variant_part, print_field_values, print_record):
15767 Move function implementation up.
15769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15771 * python/py-type.c (typy_get_name): New function.
15772 (type_object_getset): Add entry for attribute "name".
15773 * NEWS: Add entry mentioning this new attribute.
15775 2014-01-07 Yao Qi <yao@codesourcery.com>
15777 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15780 2014-01-07 Yao Qi <yao@codesourcery.com>
15782 * gnu-nat.c (info_port_rights): Add qualifier const to
15785 2014-01-07 Yao Qi <yao@codesourcery.com>
15787 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15789 2014-01-07 Yao Qi <yao@codesourcery.com>
15791 * gnu-nat.c (make_inf) Update declaration.
15792 (make_inf): Make it static.
15793 (inf_set_traced): Likewise.
15794 (inf_port_to_thread, inf_task_died_status): Likewise.
15796 2014-01-07 Yao Qi <yao@codesourcery.com>
15798 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15800 2014-01-07 Yao Qi <yao@codesourcery.com>
15802 * gnu-nat.c (_initialize_gnu_nat): Declare.
15804 2014-01-07 Yao Qi <yao@codesourcery.com>
15806 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15808 (struct gdbarch_info) <byte_order>: Change type to
15810 <byte_order_for_code>: Likewise.
15811 * gdbarch.c, gdbarch.h: Regenerated.
15813 2014-01-06 Sasha Smundak <asmundak@google.com>
15815 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15817 2014-01-06 Tom Tromey <tromey@redhat.com>
15819 * doublest.c (convert_doublest_to_floatformat): Use const, not
15821 * somread.c (som_symtab_read): Likewise.
15823 2014-01-07 Hui Zhu <hui@codesourcery.com>
15825 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15826 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15827 (gdb_bfd_fopen): Ditto.
15828 (gdb_bfd_openr): Ditto.
15829 (gdb_bfd_openw): Ditto.
15830 (gdb_bfd_openr_iovec): Ditto.
15831 (gdb_bfd_fdopenr): Ditto.
15832 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15833 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15835 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15837 * symfile-mem.c (symbol_file_add_from_memory): Removed
15838 gdb_bfd_stash_filename.
15840 2014-01-03 Doug Evans <dje@google.com>
15842 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15845 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15847 Update year range in copyright notice of all files.
15849 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15851 * top.c (print_gdb_version): Set copyright year to 2014.
15853 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15855 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15857 For older changes see ChangeLog-2013.
15863 version-control: never