1 2014-12-05 Andreas From <andreas.from@ericsson.com>
3 * MAINTAINERS (Write After Approval): Add "Andreas From"
5 2014-12-05 Doug Evans <xdje42@gmail.com>
9 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
11 2014-12-04 Doug Evans <dje@google.com>
13 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
14 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
15 (objfile_getset): Add "add_separate_debug_file".
17 2014-12-04 Doug Evans <dje@google.com>
19 * NEWS: Mention gdb.Objfile.build_id.
20 * build-id.c (build_id_bfd_get): Make non-static.
21 * build-id.h (build_id_bfd_get): Add declaration.
22 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
23 (OBJFPY_REQUIRE_VALID): New macro.
24 (objfpy_get_build_id): New function.
25 (objfile_getset): Add "build_id".
26 * utils.c (make_hex_string): New function.
27 * utils.h (make_hex_string): Add declaration.
29 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
31 * block.c (block_lookup_symbol_primary): New function.
32 * block.h (block_lookup_symbol_primary): New declaration.
33 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
34 Call block_lookup_symbol_primary.
36 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
38 * tramp-frame.h (tramp_frame): Add `validate' member.
39 * tramp-frame.c (tramp_frame_start): Validate trampoline before
41 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
42 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
43 (mips_linux_o32_sigframe): Initialize `validate' member.
44 (mips_linux_o32_rt_sigframe): Likewise.
45 (mips_linux_n32_rt_sigframe): Likewise.
46 (mips_linux_n64_rt_sigframe): Likewise.
47 (micromips_linux_o32_sigframe): New variable.
48 (micromips_linux_o32_rt_sigframe): Likewise.
49 (micromips_linux_n32_rt_sigframe): Likewise.
50 (micromips_linux_n64_rt_sigframe): Likewise.
51 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
52 (mips_linux_n32n64_sigframe_init): Likewise.
53 (mips_linux_sigframe_validate): New function.
54 (micromips_linux_sigframe_validate): Likewise.
55 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
57 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
59 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
60 * sparc-sol2-tdep.c: Include "regset.h".
61 (sparc32_sol2_supply_core_gregset): New function.
62 (sparc32_sol2_collect_core_gregset): Likewise.
63 (sparc32_sol2_supply_core_fpregset): Likewise.
64 (sparc32_sol2_collect_core_fpregset): Likewise.
65 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
66 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
67 tdep->fpregset/sizeof_fpregset.
68 * sparc64-sol2-tdep.c: Include "regset.h".
69 (sparc64_sol2_supply_core_gregset): New function.
70 (sparc64_sol2_collect_core_gregset): Likewise.
71 (sparc64_sol2_supply_core_fpregset): Likewise.
72 (sparc64_sol2_collect_core_fpregset): Likewise.
73 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
74 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
75 tdep->fpregset/sizeof_fpregset.
77 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
79 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
82 2014-12-02 Doug Evans <dje@google.com>
84 * symtab.c (symbol_init_cplus_specific): Delete.
85 (symbol_set_demangled_name): Remove special c++ support.
86 (symbol_get_demangled_name, symbol_set_language): Ditto.
87 * symtab.h (struct cplus_specific): Delete.
88 (struct general_symbol_info) <language_specific>: Remove
91 2014-12-02 Doug Evans <dje@google.com>
94 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
96 2014-12-02 Doug Evans <dje@google.com>
99 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
102 2014-12-02 Doug Evans <dje@google.com>
104 * dwarf2read.c (peek_die_abbrev): Improve error message text.
106 2014-12-02 Doug Evans <dje@google.com>
108 * valops.c (do_search_struct_field): Remove remnant of Chill support.
109 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
111 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
113 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
115 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
117 * NEWS: Mention new Python events.
118 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
119 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
120 (py-infevents.o): New rule.
121 * doc/observer.texi (inferior_call_pre, inferior_call_post)
122 (memory_changed, register_changed): New observers.
123 * infcall.c (call_function_by_hand): Notify observer before and
125 * python/py-event.h (inferior_call_kind): New enum.
126 (emit_inferior_call_event): New prototype.
127 (emit_register_changed_event): New prototype.
128 (emit_memory_changed_event): New prototype.
129 * python/py-events.h (events_object): New registries
130 inferior_call, memory_changed and register_changed.
131 * python/py-evts.c (gdbpy_initialize_py_events): Add the
132 inferior_call, memory_changed and register_changed registries.
133 * python/py-infevents.c: New.
134 * python/py-inferior.c (python_on_inferior_call_pre)
135 (python_on_inferior_call_post, python_on_register_change)
136 (python_on_memory_change): New functions.
137 (gdbpy_initialize_inferior): Attach python handler to new
139 * python/py-infthread.c(gdbpy_create_ptid_object): New.
140 (thpy_get_ptid) Use gdbpy_create_ptid_object.
141 * python/python-internal.h:
142 (gdbpy_create_ptid_object)
143 (gdbpy_initialize_inferior_call_pre_event)
144 (gdbpy_initialize_inferior_call_post_event)
145 (gdbpy_initialize_register_changed_event)
146 (gdbpy_initialize_memory_changed_event): New prototypes.
147 * python/python.c (_initialize_python): Initialize new events.
148 * valops.c (value_assign): Notify register_changed observer.
150 2014-12-02 Doug Evans <dje@google.com>
152 * python/py-infthread.c: Whitespace fixes.
154 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
156 * features/Makefile (s390-te-linux64-expedite): Replace
157 non-existant r14 and r15 by r14l and r15l, respectively.
158 * regformats/s390-te-linux64.dat: Regenerate.
160 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
162 * objfiles.c (allocate_objfile): Remove duplicate comment.
164 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
166 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
167 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
168 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
169 (supply_gregset, supply_fpregset): Remove.
170 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
171 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
174 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Add add-auto-load-scripts-directory.
177 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
178 * auto-load.c (add_auto_load_dir): New function.
179 (_initialize_auto_load): Install it.
181 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
183 Pushed by Joel Brobecker <brobecker@adacore.com>.
184 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
186 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
188 * eval.c (evaluate_subexp): Check that the thread stack temporaries
189 are not already enabled before enabling them.
191 2014-11-29 Yao Qi <yao@codesourcery.com>
193 * arm-tdep.c (arm_analyze_prologue): Move local variables
194 'framereg' and 'framesize' to inner block. Move code to
197 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
199 * eval.c: Include gdbthread.h.
200 (evaluate_subexp): Enable thread stack temporaries before
201 evaluating a complete expression and clean them up after the
202 evaluation is complete.
203 * gdbthread.h: Include common/vec.h.
204 (value_ptr): New typedef.
205 (VEC (value_ptr)): New vector type.
206 (value_vec): New typedef.
207 (struct thread_info): Add new fields stack_temporaries_enabled
208 and stack_temporaries.
209 (enable_thread_stack_temporaries)
210 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
211 (get_last_thread_stack_temporary)
212 (value_in_thread_stack_temporaries): Declare.
213 * gdbtypes.c (class_or_union_p): New function.
214 * gdbtypes.h (class_or_union_p): Declare.
215 * infcall.c (call_function_by_hand): Store return values of class
216 type as temporaries on stack.
217 * thread.c (enable_thread_stack_temporaries): New function.
218 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
219 (get_last_thread_stack_temporary): Likewise.
220 (value_in_thread_stack_temporaries): Likewise.
221 * value.c (value_force_lval): New function.
222 * value.h (value_force_lval): Declare.
224 2014-11-28 Pierre Muller <muller@sourceware.org>
226 Pushed by Joel Brobecker <brobecker@adacore.com>.
227 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
230 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
232 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
233 * config/sparc/linux.mh (NATDEPFILES): Likewise.
234 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
235 * m68klinux-nat.c (fetch_core_registers): Remove.
236 (linux_elf_core_fns): Remove.
237 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
239 2014-11-28 Joel Brobecker <brobecker@adacore.com>
241 * utils.c (gdb_realpath): Rework comment about handling on
244 2014-11-28 Yao Qi <yao@codesourcery.com>
246 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
248 * gnulib/aclocal.m4: Re-generated.
249 * gnulib/config.in: Re-generated.
250 * gnulib/configure: Re-generated.
251 * gnulib/import/Makefile.am: Re-generated.
252 * gnulib/import/Makefile.in: Re-generated.
253 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
254 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
255 * import/basename-lgpl.c: New file.
256 * import/dirname-lgpl.c: New file.
257 * import/dirname.h: New file.
258 * import/m4/dirname.m4: New file.
259 * import/m4/malloc.m4: New file.
260 * import/m4/rename.m4: New file.
261 * import/m4/rmdir.m4: New file.
262 * import/m4/stdio_h.m4: New file.
263 * import/malloc.c: New file.
264 * import/rename.c: New file.
265 * import/rmdir.c: New file.
266 * import/same-inode.h: New file.
267 * import/stdio.c: New file.
268 * import/stdio.in.h: New file.
269 * import/stripslash.c: New file.
271 2014-11-28 Yao Qi <yao@codesourcery.com>
273 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
275 * config.in: Re-generated.
276 * configure: Re-generated.
277 * utils.c (gdb_realpath): Remove code calling realpath,
278 canonicalize_file_name and pathconf.
279 [!_WIN32]: Call canonicalize_file_name.
281 2014-11-28 Yao Qi <yao@codesourcery.com>
283 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
285 * aclocal.m4: Re-generated.
286 * config.in: Re-generated.
287 * configure: Re-generated.
288 * import/Makefile.am: Re-generated.
289 * import/Makefile.in: Re-generated.
290 * import/m4/gnulib-cache.m4: Re-generated.
291 * import/m4/gnulib-comp.m4: Re-generated.
292 * import/canonicalize-lgpl.c: New file.
293 * import/extra/snippet/_Noreturn.h: New file.
294 * import/m4/canonicalize.m4: New file.
295 * import/m4/double-slash-root.m4: New file.
296 * import/m4/eealloc.m4: New file.
297 * import/m4/malloca.m4: New file.
298 * import/m4/nocrash.m4: New file.
299 * import/m4/stdlib_h.m4: New file.
300 * import/malloca.c: New file.
301 * import/malloca.h: New file.
302 * import/malloca.valgrind: New file.
304 2014-11-28 Yao Qi <yao@codesourcery.com>
306 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
307 * config.in, configure: Regenerate.
308 * symfile.c (find_separate_debug_file_by_debuglink): Remove
309 code checking HAVE_LSTAT is defined.
311 2014-11-28 Yao Qi <yao@codesourcery.com>
313 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
315 * gnulib/aclocal.m4: Re-generated.
316 * gnulib/config.in: Re-generated.
317 * gnulib/configure: Re-generated.
318 * gnulib/import/Makefile.am: Re-generated.
319 * gnulib/import/Makefile.in: Re-generated.
320 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
321 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
322 * gnulib/import/lstat.c: New file.
323 * gnulib/import/m4/lstat.m4: New file.
325 2014-11-28 Yao Qi <yao@codesourcery.com>
327 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
328 * config.in, configure: Re-generate.
329 * inf-child.c (inf_child_fileio_readlink): Don't check
330 HAVE_READLINK is defined.
332 2014-11-28 Yao Qi <yao@codesourcery.com>
334 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
335 * gnulib/aclocal.m4: Re-generated.
336 * gnulib/config.in: Likewise.
337 * gnulib/configure: Likewise.
338 * gnulib/import/Makefile.am: Likewise.
339 * gnulib/import/Makefile.in: Likewise.
340 * gnulib/import/m4/gnulib-cache.m4: Likewise.
341 * gnulib/import/m4/gnulib-comp.m4: Likewise.
342 * gnulib/import/dosname.h: New file
343 * gnulib/import/m4/largefile.m4: New file.
344 * gnulib/import/m4/readlink.m4: New file.
345 * gnulib/import/m4/stat.m4: New file.
346 * gnulib/import/readlink.c: New file.
347 * gnulib/import/stat.c: New file.
349 2014-11-26 Mark Wielaard <mjw@redhat.com>
351 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
352 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
354 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
356 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
357 that there can be only one stack adjustment in the prologue
358 with tests to detect specific disallowed stack adjustments.
360 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
362 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
365 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
367 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
368 the instruction as well as reading it from memory.
369 (nios2_match_add): New.
370 (nios2_match_sub): New.
371 (nios2_match_addi): New.
372 (nios2_match_orhi): New.
373 (nios2_match_stw): New.
374 (nios2_match_ldw): New.
375 (nios2_match_rdctl): New.
376 (enum branch_condition): New.
377 (nios2_match_branch): New.
378 (nios2_match_jmpi): New.
379 (nios2_match_calli): New.
380 (nios2_match_jmpr): New.
381 (nios2_match_callr): New.
382 (nios2_match_break): New.
383 (nios2_match_trap): New.
384 (nios2_in_epilogue_p): Rewrite to use new functions.
385 (nios2_analyze_prologue): Likewise.
386 (nios2_skip_prologue): Delete unused local limit_pc.
387 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
388 (nios2_get_next_pc): Rewrite to use new functions.
390 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
392 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
394 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
396 Pushed by Joel Brobecker <brobecker@adacore.com>
397 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
398 elements pi_len by the size of the elements before calling
400 (inf_validate_task_sc): Likewise, and properly deallocate the
403 2014-11-23 Doug Evans <xdje42@gmail.com>
405 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
406 number and name if present. All callers updated.
407 (dump_fn_fieldlists): Fix indentation of args.
409 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
411 * MAINTAINERS (Write After Approval): Add myself.
413 2014-11-23 Joel Brobecker <brobecker@adacore.com>
415 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
416 to a bp_call_dummy breakpoint type.
418 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
420 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
421 registering the signal handler.
423 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
425 * event-top.h (call_stdin_event_handler_again_p): Declare.
426 * event-top.c (call_stdin_event_handler_again_p): Define.
427 (stdin_event_handler): Use it.
428 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
429 handler again if there is pending input following a
432 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
434 Pushed by Joel Brobecker <brobecker@adacore.com>
435 * linux-fork.c (checkpoint_command): Print index of new
436 checkpoint in response message.
438 2014-11-23 Yao Qi <yao@codesourcery.com>
440 * valprint.c (read_string): Move local variables 'found_nul',
441 'chunksize' and 'limit' to inner scope. Update comments.
443 2014-11-22 Doug Evans <xdje42@gmail.com>
445 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
447 (search_symbols): Fix comments and whitespace.
449 2014-11-22 Doug Evans <xdje42@gmail.com>
451 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
453 2014-11-21 Doug Evans <dje@google.com>
455 * psymtab.c (psymtab_search_name): Fix whitespace.
457 2014-11-21 Yao Qi <yao@codesourcery.com>
459 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
461 * gnulib/import/Makefile.am: Re-generated.
462 * gnulib/import/Makefile.in: Likewise.
463 * gnulib/import/m4/gnulib-cache.m4: Likewise.
465 2014-11-21 Yao Qi <yao@codesourcery.com>
467 * gdb_wchar.h: Include wchar.h and wctype.h.
468 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
469 include wchar.h and wctype.h.
470 Don't check HAVE_WCHAR_H.
472 2014-11-21 Yao Qi <yao@codesourcery.com>
474 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
476 * gnulib/import/Makefile.am: Re-generated.
477 * gnulib/import/Makefile.in: Likewise.
478 * gnulib/import/m4/gnulib-cache.m4: Likewise.
480 2014-11-21 Yao Qi <yao@codesourcery.com>
482 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
484 * gnulib/import/Makefile.am: Re-generated.
485 * gnulib/import/Makefile.in: Likewise.
486 * gnulib/import/m4/gnulib-cache.m4: Likewise.
488 2014-11-21 Yao Qi <yao@codesourcery.com>
490 * common/common-defs.h: Include alloca.h
491 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
492 * configure: Re-generated.
493 * defs.h: Remove code handling alloca.
494 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
497 2014-11-21 Yao Qi <yao@codesourcery.com>
499 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
501 * gnulib/import/Makefile.am: Re-generated.
502 * gnulib/import/Makefile.in: Likewise..
503 * gnulib/import/m4/gnulib-cache.m4: Likewise.
505 2014-11-21 Yao Qi <yao@codesourcery.com>
507 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
510 2014-11-21 Joel Brobecker <brobecker@adacore.com>
512 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
513 flag_unsigned if HIGH_BOUND is constant and negative.
515 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
518 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
519 modifier from "struct gdbarch" when compiling without Expat (XML)
521 (get_syscall_by_number): Likewise.
522 (get_syscall_by_name): Likewise.
523 (get_syscall_names): Likewise.
525 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
528 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
529 set_xml_syscall_file_name to provide gdbarch.
530 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
531 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
532 * breakpoint.c (print_it_catch_syscall): Adjust call to
533 get_syscall_by_number to provide gdbarch.
534 (print_one_catch_syscall): Likewise.
535 (print_mention_catch_syscall): Likewise.
536 (print_recreate_catch_syscall): Likewise.
537 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
538 and get_syscall_by_name to provide gdbarch.
539 (catch_syscall_completer): Adjust call to get_syscall_names to
541 * gdbarch.c: Regenerate.
542 * gdbarch.h: Likewise.
543 * gdbarch.sh: Forward declare "struct syscalls_info".
544 (xml_syscall_file): New variable.
545 (syscalls_info): Likewise.
546 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
547 set_xml_syscall_file_name to provide gdbarch.
548 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
549 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
550 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
551 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
552 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
553 * xml-syscall.c: Include gdbarch.h.
554 (set_xml_syscall_file_name): Accept gdbarch parameter.
555 (get_syscall_by_number): Likewise.
556 (get_syscall_by_name): Likewise.
557 (get_syscall_names): Likewise.
558 (my_gdb_datadir): Delete global variable.
559 (struct syscalls_info) <my_gdb_datadir>: New variable.
560 (struct syscalls_info) <sysinfo>: Rename variable to
562 (sysinfo): Delete global variable.
563 (have_initialized_sysinfo): Likewise.
564 (xml_syscall_file): Likewise.
565 (sysinfo_free_syscalls_desc): Rename to...
566 (syscalls_info_free_syscalls_desc): ... this.
567 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
568 code to the new layout of "struct syscalls_info".
569 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
571 (syscall_create_syscall_desc): Likewise.
572 (syscall_start_syscall): Likewise.
573 (syscall_parse_xml): Likewise.
574 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
575 (init_sysinfo): Rename to...
576 (init_syscalls_info): ...this. Add gdbarch as a parameter.
577 Adjust function to deal with gdbarch.
578 (xml_get_syscall_number): Delete parameter sysinfo. Accept
579 gdbarch as a parameter. Adjust code.
580 (xml_get_syscall_name): Likewise.
581 (xml_list_of_syscalls): Likewise.
582 (set_xml_syscall_file_name): Accept gdbarch as parameter.
583 (get_syscall_by_number): Likewise.
584 (get_syscall_by_name): Likewise.
585 (get_syscall_names): Likewise.
586 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
587 (get_syscall_by_number): Likewise.
588 (get_syscall_by_name): Likewise.
589 (get_syscall_names): Likewise.
591 2014-11-20 Doug Evans <xdje42@gmail.com>
593 Split struct symtab into two: struct symtab and compunit_symtab.
594 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
595 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
596 to "struct compunit_symtab *". All callers updated.
597 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
598 "struct symtab *" argument to "struct compunit_symtab *".
600 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
601 result to "struct compunit_symtab *". All callers updated.
602 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
603 Change result to "struct compunit_symtab *". All callers updated.
604 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
605 hange type to "struct compunit_symtab *". All uses updated.
606 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
607 Change type to "struct compunit_symtab *". All uses updated.
608 * buildsym.c (struct buildsym_compunit): New struct.
609 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
610 (buildsym_compunit): New static global.
611 (finish_block_internal): Update to fetch objfile from
613 (make_blockvector): Delete objfile argument.
614 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
615 debugformat, producer.
616 (start_buildsym_compunit): New function.
617 (free_buildsym_compunit): Renamed from free_subfiles_list.
619 (patch_subfile_names): Rewrite to use buildsym_compunit.
620 (get_compunit_symtab): New function.
621 (get_macro_table): Delete argument comp_dir. All callers updated.
622 (start_symtab): Change result to "struct compunit_symtab *".
623 All callers updated. Create the subfile of the main source file.
624 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
625 (reset_symtab_globals): Update.
626 (end_symtab_get_static_block): Update to use buildsym_compunit.
627 (end_symtab_without_blockvector): Rewrite.
628 (end_symtab_with_blockvector): Change result to
629 "struct compunit_symtab *". All callers updated.
630 Update to use buildsym_compunit. Don't set symtab->dirname,
631 instead set it in the compunit.
632 Explicitly make sure main symtab is first in its list.
633 Set debugformat, producer, blockvector, block_line_section, and
634 macrotable in the compunit.
635 (end_symtab_from_static_block): Change result to
636 "struct compunit_symtab *". All callers updated.
637 (end_symtab, end_expandable_symtab): Ditto.
638 (set_missing_symtab): Change symtab argument to
639 "struct compunit_symtab *". All callers updated.
640 (augment_type_symtab): Ditto.
641 (record_debugformat): Update to use buildsym_compunit.
642 (record_producer): Update to use buildsym_compunit.
643 * buildsym.h (struct subfile) <dirname>: Delete.
644 <producer, debugformat>: Delete.
645 <buildsym_compunit>: New member.
646 (get_compunit_symtab): Declare.
647 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
648 from primary_symtab. Change type to "struct compunit_symtab *".
650 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
652 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
653 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
654 symtab. Change type to "struct compunit_symtab *". All uses updated.
655 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
657 (dw2_find_last_source_symtab): Ditto.
658 (dw2_lookup_symbol): Ditto.
659 (recursively_find_pc_sect_compunit_symtab): Renamed from
660 recursively_find_pc_sect_symtab. Change result to
661 "struct compunit_symtab *". All callers updated.
662 (dw2_find_pc_sect_compunit_symtab): Renamed from
663 dw2_find_pc_sect_symtab. Change result to
664 "struct compunit_symtab *". All callers updated.
665 (get_compunit_symtab): Renamed from get_symtab. Change result to
666 "struct compunit_symtab *". All callers updated.
667 (recursively_compute_inclusions): Change type of immediate_parent
668 argument to "struct compunit_symtab *". All callers updated.
669 (compute_compunit_symtab_includes): Renamed from
670 compute_symtab_includes. All callers updated. Rewrite to compute
671 includes of compunit_symtabs and not symtabs.
672 (process_full_comp_unit): Update to work with struct compunit_symtab.
673 (process_full_type_unit): Ditto.
674 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
675 (dwarf_decode_lines): Remove special case handling of main subfile.
676 (macro_start_file): Delete argument comp_dir. All callers updated.
677 (dwarf_decode_macro_bytes): Ditto.
678 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
679 use struct compunit_symtab.
680 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
681 * jit.c (finalize_symtab): Build compunit_symtab.
682 * jv-lang.c (get_java_class_symtab): Change result to
683 "struct compunit_symtab *". All callers updated.
684 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
685 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
686 comp_dir. Change type to "struct compunit_symtab *".
688 (new_macro_table): Change comp_dir argument to cust,
689 "struct compunit_symtab *". All callers updated.
690 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
691 nr_primary_symtabs. All uses updated.
692 (count_symtabs_and_blocks): Update to handle compunits.
693 (report_command_stats): Update output, "primary symtabs" renamed to
695 * mdebugread.c (new_symtab): Change result to
696 "struct compunit_symtab *". All callers updated.
697 (parse_procedure): Change type of search_symtab argument to
698 "struct compunit_symtab *". All callers updated.
699 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
701 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
702 symtabs. Change type to "struct compunit_symtab *". All uses updated.
703 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
705 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
707 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
708 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
709 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
710 symtab. Change type to "struct compunit_symtab *". All uses updated.
711 * psymtab.c (psymtab_to_symtab): Change result type to
712 "struct compunit_symtab *". All callers updated.
713 (find_pc_sect_compunit_symtab_from_partial): Renamed from
714 find_pc_sect_symtab_from_partial. Change result type to
715 "struct compunit_symtab *". All callers updated.
716 (lookup_symbol_aux_psymtabs): Change result type to
717 "struct compunit_symtab *". All callers updated.
718 (find_last_source_symtab_from_partial): Ditto.
719 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
720 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
721 and macro_table from compunit.
722 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
723 type to "struct compunit_symtab *". All callers updated.
724 (debug_qf_lookup_symbol): Ditto.
725 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
726 debug_qf_find_pc_sect_symtab, change result type to
727 "struct compunit_symtab *". All callers updated.
728 * symfile.c (allocate_symtab): Delete objfile argument.
730 (allocate_compunit_symtab): New function.
731 (add_compunit_symtab_to_objfile): New function.
732 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
733 Change result type to "struct compunit_symtab *". All uses updated.
734 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
735 Change result type to "struct compunit_symtab *". All uses updated.
736 * symmisc.c (print_objfile_statistics): Compute blockvector count in
738 (dump_symtab_1): Update test for primary source symtab.
739 (maintenance_info_symtabs): Update to handle compunit symtabs.
740 (maintenance_check_symtabs): Ditto.
741 * symtab.c (set_primary_symtab): Delete.
742 (compunit_primary_filetab): New function.
743 (compunit_language): New function.
744 (iterate_over_some_symtabs): Change type of arguments "first",
745 "after_last" to "struct compunit_symtab *". All callers updated.
746 Update to loop over symtabs in each compunit.
747 (error_in_psymtab_expansion): Rename symtab argument to cust,
748 and change type to "struct compunit_symtab *". All callers updated.
749 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
750 Change result type to "struct compunit_symtab *". All callers updated.
751 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
752 Change result type to "struct compunit_symtab *". All callers updated.
753 (find_pc_sect_line): Only loop over symtabs within selected compunit
754 instead of all symtabs in the objfile.
755 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
756 <compunit_symtab> New member.
757 <block_line_section>: Moved to compunit_symtab.
758 <locations_valid>: Ditto.
759 <epilogue_unwind_valid>: Ditto.
760 <macro_table>: Ditto.
762 <debugformat>: Ditto.
765 <call_site_htab>: Ditto.
769 (SYMTAB_COMPUNIT): New macro.
770 (SYMTAB_BLOCKVECTOR): Update definition.
771 (SYMTAB_OBJFILE): Update definition.
772 (SYMTAB_DIRNAME): Update definition.
773 (struct compunit_symtab): New type. Common members among all source
774 symtabs within a compilation unit moved here. All uses updated.
775 (COMPUNIT_OBJFILE): New macro.
776 (COMPUNIT_FILETABS): New macro.
777 (COMPUNIT_DEBUGFORMAT): New macro.
778 (COMPUNIT_PRODUCER): New macro.
779 (COMPUNIT_DIRNAME): New macro.
780 (COMPUNIT_BLOCKVECTOR): New macro.
781 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
782 (COMPUNIT_LOCATIONS_VALID): New macro.
783 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
784 (COMPUNIT_CALL_SITE_HTAB): New macro.
785 (COMPUNIT_MACRO_TABLE): New macro.
786 (ALL_COMPUNIT_FILETABS): New macro.
787 (compunit_symtab_ptr): New typedef.
788 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
790 2014-11-20 Joel Brobecker <brobecker@adacore.com>
792 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
793 if the TYPE_CODE of range_type's base type does not match
794 the TYPE_CODE of encoding_type's base type.
796 2014-11-19 Joel Brobecker <brobecker@adacore.com>
798 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
801 2014-11-19 Joel Brobecker <brobecker@adacore.com>
803 * ada-lang.c (ada_is_redundant_range_encoding): New function.
804 (ada_is_redundant_index_type_desc): New function.
805 (to_fixed_array_type): Ignore parallel XA type if redundant.
807 2014-11-19 Joel Brobecker <brobecker@adacore.com>
809 * ada-lang.c (constrained_packed_array_type): Set the length
810 of the return array as if both bounds where zero if that
811 returned array's index type is dynamic.
813 2014-11-19 Yao Qi <yao@codesourcery.com>
815 * config/i386/go32.mh (CC): Remove.
817 2014-11-18 Doug Evans <xdje42@gmail.com>
819 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
822 2014-11-18 Doug Evans <xdje42@gmail.com>
824 * buildsym.c (buildsym_objfile): New static global.
825 (buildsym_comp_dir): New static global.
826 (finish_block_internal): Delete arg objfile. All callers updated.
827 (finish_block): Delete arg objfile. All callers updated.
828 (start_subfile): Delete arg dirname. All callers updated.
829 (patch_subfile_names): Update buildsym_comp_dir.
830 (get_macro_table): Delete arg objfile. All callers updated.
831 (start_symtab): New arg objfile. All callers updated.
832 Rename arg dirname to comp_dir.
833 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
834 (end_symtab_get_static_block): Delete arg objfile. All callers
836 (end_symtab_without_blockvector): Ditto.
837 (end_symtab_with_blockvector): Ditto.
838 (end_symtab_from_static_block): Ditto.
840 (end_expandable_symtab): Ditto.
841 (augment_type_symtab): Ditto.
842 * coffread.c (coff_start_symtab): New arg objfile. All callers
845 2014-11-18 Doug Evans <xdje42@gmail.com>
847 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
850 2014-11-18 Doug Evans <xdje42@gmail.com>
852 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
853 symtab.dirname updated to use it.
855 2014-11-18 Doug Evans <xdje42@gmail.com>
857 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
858 symtab.objfile updated to use it.
860 2014-11-18 Doug Evans <xdje42@gmail.com>
862 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
864 2014-11-18 Doug Evans <xdje42@gmail.com>
866 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
868 * findvar.c (default_read_var_value): Ditto.
869 * jv-lang.c (add_class_symtab_symbol): Ditto.
870 * parse.c (operator_check_standard): Ditto.
871 * printcmd.c (address_info): Ditto.
872 * symtab.c (fixup_symbol_section): Ditto.
873 (skip_prologue_sal): Ditto.
874 * tracepoint.c (scope_info): Ditto.
875 * valops.c (find_function_in_inferior): Ditto.
876 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
877 * python/py-symbol.c (set_symbol): Ditto.
879 2014-11-18 Doug Evans <xdje42@gmail.com>
881 * buildsym.c (main_subfile): New static global.
882 (free_subfiles_list): New function.
883 (start_symtab): Set main_subfile.
884 (restart_symtab): Replace init of subfiles, current_subfile with
885 call to free_subfiles_list.
886 (watch_main_source_file_lossage): Use main_subfile.
887 (reset_symtab_globals): Replace init of current_subfile with call
888 to free_subfiles_list.
889 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
890 functions, split out from ...
891 (end_symtab_from_static_block): ... here. Rewrite to call them.
893 2014-11-18 Doug Evans <xdje42@gmail.com>
895 The result of symtab expansion is always a primary symtab.
896 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
897 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
898 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
899 (psymtab_to_symtab): Add comment and assert.
900 (map_matching_symbols_psymtab): Remove unnecessary test for
903 2014-11-15 Doug Evans <xdje42@gmail.com>
906 * symtab.c (find_pc_line_symtab): New function.
907 * symtab.h (find_pc_line_symtab): Declare.
908 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
910 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
911 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
912 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
913 * tui/tui-win.c (make_visible_with_new_height): Ditto.
914 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
915 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
917 2014-11-15 Doug Evans <xdje42@gmail.com>
919 * symtab.c (expand_symtab_containing_pc): Renamed from
920 find_pc_sect_symtab_via_partial. All callers updated.
922 2014-11-15 Yao Qi <yao@codesourcery.com>
924 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
926 2014-11-14 Joel Brobecker <brobecker@adacore.com>
928 * common/common-defs.h: Move <stdarg.h> #include ahead of
931 2014-11-14 Pedro Alves <palves@redhat.com>
933 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
934 [!PHONY_ICONV] (gdb_iconv): New function.
935 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
937 2014-11-13 Doug Evans <dje@google.com>
940 * dwarf2read.c (find_slot_in_mapped_hash): Handle
941 "(anonymous namespace)".
943 2014-11-13 Doug Evans <dje@google.com>
945 * dwarf2read.c (update_enumeration_type_from_children): Avoid
948 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
950 * NEWS (maint set target-async): Fix typo.
952 2014-11-12 Pedro Alves <palves@redhat.com>
954 * infrun.c (enum infwait_states, infwait_state): Delete.
956 2014-11-12 Pedro Alves <palves@redhat.com>
958 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
959 Rewrite stepping over a permanent breakpoint.
960 (thread_still_needs_step_over, proceed): Don't set
961 stepping_over_breakpoint for permanent breakpoints.
962 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
963 single-step breakpoints out of the target on hardware step
965 (process_event_stop_test): If stepping a permanent breakpoint
966 doesn't hit the step-resume breakpoint, delete the step-resume
968 (switch_back_to_stepped_thread): Also check if the stepped thread
969 has advanced already on hardware step targets.
970 (currently_stepping): Return true if the thread stepped a
973 2014-11-12 Pedro Alves <palves@redhat.com>
975 Mark locations as permanent, not the whole breakpoint.
976 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
977 (mark_breakpoints_out): Don't mark permanent breakpoints as
979 (breakpoint_init_inferior): Use mark_breakpoints_out.
980 (breakpoint_here_p): Adjust.
981 (bpstat_stop_status, describe_other_breakpoints): Remove handling
982 of permanent breakpoints.
983 (make_breakpoint_permanent): Mark each location as permanent,
984 instead of marking the breakpoint.
985 (add_location_to_breakpoint): If the location is permanent, mark
986 it as such, and as inserted.
987 (init_breakpoint_sal): Don't make the breakpoint permanent here.
988 (bp_location_compare, update_global_location_list): Adjust.
989 (update_breakpoint_locations): Don't make the breakpoint permanent
991 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
993 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
994 (struct bp_location) <permanent>: New field.
995 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
996 reference to bp_permanent.
998 2014-11-12 Pedro Alves <palves@redhat.com>
1000 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1001 * arch-utils.h (default_skip_permanent_breakpoint): New
1003 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1004 Install default_skip_permanent_breakpoint as default method.
1005 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1006 (i386_gdbarch_init): Don't install it.
1007 * infrun.c (resume): Assume there's always a
1008 gdbarch_skip_permanent_breakpoint implementation.
1009 * gdbarch.h, gdbarch.c: Regenerate.
1011 2014-11-11 Daniel Colascione <dancol@dancol.org>
1013 Warn about cross-PID-namespace debugging.
1014 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1015 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1016 * linux-thread-db.c (check_pid_namespace_match): New function.
1017 (thread_db_inferior_created): Call it.
1019 2014-11-10 Doug Evans <xdje42@gmail.com>
1021 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1022 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1024 2014-11-10 Doug Evans <xdje42@gmail.com>
1026 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1028 2014-11-10 Doug Evans <xdje42@gmail.com>
1031 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1032 (lookup_static_symbol): Move definition to new location and rewrite.
1033 (lookup_symbol_in_objfile): New function.
1034 (lookup_symbol_global_iterator_cb): Call it.
1036 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1038 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1040 2014-11-07 Pedro Alves <palves@redhat.com>
1042 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1043 check if we did a "nexti" inside a prologue.
1044 * symtab.c (in_prologue): Delete function.
1045 * symtab.h (in_prologue): Delete declaration.
1047 2014-11-06 Doug Evans <xdje42@gmail.com>
1049 * symtab.h (lookup_global_symbol): Improve function comment.
1051 2014-11-06 Doug Evans <xdje42@gmail.com>
1053 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1054 All callers updated.
1055 * symtab.h (lookup_global_symbol): Update decl.
1056 (lookup_static_symbol): Move decl to better location.
1058 2014-11-06 Doug Evans <xdje42@gmail.com>
1060 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1062 2014-11-06 Doug Evans <xdje42@gmail.com>
1064 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1065 All callers updated.
1066 (lookup_symbol_in_all_objfiles): Renamed from
1067 lookup_symbol_aux_symtabs. All callers updated.
1068 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1069 All callers updated.
1070 (lookup_symbol_in_objfile_symtabs): Renamed from
1071 lookup_symbol_aux_objfile. All callers updated.
1073 2014-11-06 Doug Evans <xdje42@gmail.com>
1075 * symtab.c (lookup_symbol_in_block): Renamed from
1076 lookup_symbol_aux_block. All callers updated.
1078 2014-11-06 Doug Evans <xdje42@gmail.com>
1080 * symtab.c (lookup_static_symbol): Renamed from
1081 lookup_static_symbol_aux. All callers updated.
1082 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1083 All callers updated.
1085 2014-11-06 Doug Evans <xdje42@gmail.com>
1087 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1088 * block.c (block_lookup_symbol): Use it.
1089 * cp-support.c (make_symbol_overload_list_block): Use it.
1090 * symtab.c (iterate_over_symbols): Use it.
1092 2014-11-06 Doug Evans <xdje42@gmail.com>
1094 * symtab.c (lookup_block_symbol): Moved to ...
1095 * block.c (block_lookup_symbol): ... here and renamed.
1096 All callers updated.
1097 * block.h (block_lookup_symbol): Declare.
1098 * symtab.h (lookup_block_symbol): Delete.
1100 2014-11-06 Doug Evans <xdje42@gmail.com>
1102 * ada-lang.c (ada_make_symbol_completion_list): Use
1103 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1104 * symtab.c (lookup_objfile_from_block): Ditto.
1106 2014-11-06 Doug Evans <xdje42@gmail.com>
1108 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1111 2014-11-06 Doug Evans <xdje42@gmail.com>
1113 * objfiles.c (get_objfile_arch): Constify.
1114 * objfiles.h (get_objfile_arch): Update prototype.
1115 * solib.c (solib_global_lookup): Fetch arch from objfile,
1118 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1120 * nios2-tdep.c (wild_insn): Delete.
1121 (profiler_insn, irqentry_insn): Delete.
1122 (nios2_match_sequence): Delete.
1123 (nios2_analyze_prologue): Update comments. Remove matching
1124 of obsolete profiler_insn and irqentry_insn sequences.
1126 2014-11-05 Alan Modra <amodra@gmail.com>
1128 * charset.c (convert_between_encodings): Shrink obstack using
1130 * minsyms.c (install_minimal_symbols): Likewise.
1131 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1132 to char* before doing pointer arithmetic.
1134 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1136 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1138 2014-11-04 Pedro Alves <palves@redhat.com>
1140 * breakpoint.c (breakpoint_thread_match): Delete function.
1141 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1143 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1146 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1147 the method args also under EVAL_SKIP when evaluating method
1148 calls under EVAL_SKIP.
1150 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1152 * dwarf2loc.c (read_pieced_value): Do big endian
1153 processing only if gdb_regnum is not -1.
1154 (write_pieced_value): Ditto.
1156 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1158 * arm-linux-tdep.c (arm_linux_init_abi): Use
1159 info.byte_order_for_code to choose endianity of breakpoint
1160 instructions snippets.
1162 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1164 * arm-tdep.c (extract_arm_insn): Use
1165 gdbarch_byte_order_for_code to read arm instruction.
1167 2014-11-02 Doug Evans <xdje42@gmail.com>
1169 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1171 2014-11-02 Doug Evans <xdje42@gmail.com>
1173 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1174 main_subfile before returning.
1176 2014-10-31 Doug Evans <xdje42@gmail.com>
1178 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1179 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1181 2014-10-31 Doug Evans <xdje42@gmail.com>
1183 * valops.c (value_cast_pointers): Fix whitespace.
1184 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1187 2014-10-30 Doug Evans <dje@google.com>
1189 * NEWS: Mention ability add attributes to gdb.Objfile and
1190 gdb.Progspace objects.
1191 * python/py-objfile.c (objfile_object): New member dict.
1192 (objfpy_dealloc): Py_XDECREF dict.
1193 (objfpy_initialize): Initialize dict.
1194 (objfile_getset): Add __dict__.
1195 (objfile_object_type): Set tp_dictoffset member.
1196 * python/py-progspace.c (progspace_object): New member dict.
1197 (pspy_dealloc): Py_XDECREF dict.
1198 (pspy_initialize): Initialize dict.
1199 (pspace_getset): Add __dict__.
1200 (pspace_object_type): Set tp_dictoffset member.
1202 2014-10-30 Yao Qi <yao@codesourcery.com>
1204 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1205 replace '\\' with '\\\\'.
1207 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1211 2014-10-29 Pedro Alves <palves@redhat.com>
1214 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1215 instead of assuming a thread with a stepping range is always
1218 2014-10-29 Pedro Alves <palves@redhat.com>
1221 * event-top.c (change_line_handler): Call
1222 gdb_rl_callback_handler_remove instead of
1223 rl_callback_handler_remove.
1224 (callback_handler_installed): New global.
1225 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1226 (gdb_rl_callback_handler_reinstall): New functions.
1227 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1228 gdb_rl_callback_handler_install instead of
1229 rl_callback_handler_remove and rl_callback_handler_install.
1230 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1231 instead of rl_callback_handler_remove.
1232 * event-top.h (gdb_rl_callback_handler_remove)
1233 (gdb_rl_callback_handler_install)
1234 (gdb_rl_callback_handler_reinstall): New declarations.
1235 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1237 (fetch_inferior_event): Install it.
1238 * top.c (gdb_readline_wrapper_line) Call
1239 gdb_rl_callback_handler_remove instead of
1240 rl_callback_handler_remove.
1241 (gdb_readline_wrapper_cleanup): Don't call
1242 rl_callback_handler_install.
1244 2014-10-29 Pedro Alves <palves@redhat.com>
1246 * event-top.c (command_line_handler): Clear the first byte of
1247 linebuffer, when it is first allocated.
1249 2014-10-29 Pedro Alves <palves@redhat.com>
1251 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1254 2014-10-29 Pedro Alves <palves@redhat.com>
1258 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1259 (tui_allowed_p): Delete function.
1260 * tui/tui.c: Include "interps.h".
1261 (tui_enable): Don't use tui_allowed_p. Error out here with
1262 detailed error messages if the TUI is the top level interpreter,
1263 or if output is not a terminal. Use newterm instead of initscr,
1264 and error out if initializing the terminal fails. Also error out if
1265 the terminal doesn't support cursor addressing.
1266 * tui/tui.h (tui_allowed_p): Delete declaration.
1268 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1270 * arm-tdep.c (arm_skip_stack_protector): Return early if
1271 address loaded by first "ldr" instruction does not have
1272 a corresponding minimal symbol. Update comment.
1274 2014-10-29 Yao Qi <yao@codesourcery.com>
1276 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1277 loaded address correctly of ldr instruction.
1279 2014-10-28 Pedro Alves <palves@redhat.com>
1282 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1284 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1285 thread's stepped_breakpoint field. Skip if reverse debugging.
1287 (init_thread_stepping_state, handle_signal_stop): Clear the
1288 thread's stepped_breakpoint field.
1290 2014-10-27 Pedro Alves <palves@redhat.com>
1292 * remote.c (remote_thread_alive): New, factored out from ...
1293 (remote_thread_alive): ... this.
1294 (remote_update_thread_list): Bail out before deleting threads if
1295 the target returned an empty list, and, the current thread has a
1298 2014-10-27 Pedro Alves <palves@redhat.com>
1300 * infrun.c (handle_signal_stop): Also skip handlers when a random
1301 signal arrives while handling a "stepi" or a "nexti". Set the
1302 thread's 'step_after_step_resume_breakpoint' flag.
1304 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1306 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1307 (arm_record_ld_st_imm_offset): Reimplement to cover all
1308 load/store cases for ARM opcode 010.
1309 (arm_record_ld_st_multiple): Reimplement to cover all
1310 load/store cases for ARM opcode 100.
1312 2014-10-26 Doug Evans <xdje42@gmail.com>
1314 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1316 2014-10-26 Doug Evans <xdje42@gmail.com>
1318 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1319 parameter "kind" to "block_index".
1320 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1322 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1324 2014-10-26 Doug Evans <xdje42@gmail.com>
1326 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1328 2014-10-26 Doug Evans <xdje42@gmail.com>
1330 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1333 2014-10-26 Doug Evans <xdje42@gmail.com>
1335 * parser-defs.h (block_found): Move decl from here ...
1336 * symtab.h (block_found): ... to here.
1338 2014-10-26 Doug Evans <xdje42@gmail.com>
1340 * symtab.h (struct field_of_this_result): Fix typo in comment.
1341 (lookup_symbol_in_language): Move function comment here.
1342 (lookup_symbol): Improve function comment.
1343 (basic_lookup_symbol_nonlocal): Ditto.
1344 (lookup_symbol_static, lookup_symbol_global): Ditto.
1345 (lookup_symbol_aux_block): Ditto.
1346 (lookup_language_this): Add function comment.
1347 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1349 (lookup_block_symbol): Improve function comment.
1350 (lookup_struct): Fix capitalization in function comment.
1351 (lookup_transparent_type): Add function comment.
1352 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1353 Improve function comment.
1354 (lookup_objfile_from_block): Add function comment.
1355 * symtab.c (lookup_symbol_in_language): Update function comment.
1356 (lookup_symbol, lookup_language_this): Ditto.
1357 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1358 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1359 (basic_lookup_symbol_nonlocal): Ditto.
1360 (lookup_symbol_static, lookup_symbol_global): Ditto.
1361 (lookup_transparent_type, lookup_block_symbol): Ditto.
1363 2014-10-25 Doug Evans <xdje42@gmail.com>
1365 * symtab.c (types_info): Delete forward decl.
1366 (functions_info, variables_info, sources_info): Ditto.
1367 (_initialize_symtab): Rewrite forward decl to use
1368 initialize_file_ftype.
1370 2014-10-25 Doug Evans <xdje42@gmail.com>
1372 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1374 2014-10-25 Doug Evans <xdje42@gmail.com>
1376 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1377 of local var child_die.
1379 2014-10-24 Don Breazeal <donb@codesourcery.com>
1381 * infrun.c (follow_fork_inferior): Update fork message printing
1382 to use target_terminal_ours_for_output instead of
1383 target_terminal_ours, to use _() for all format strings, to print
1384 "vfork" instead of "fork" for vforks, and to add a detach message.
1385 (handle_vfork_child_exec_or_exit): Update message printing to use
1386 target_terminal_ours_for_output instead of target_terminal_ours, to
1387 use _() for all format strings, and to fix some formatting.
1389 2014-10-24 Pedro Alves <palves@redhat.com>
1391 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1392 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1393 * config/vax/vax.mh: Delete.
1394 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1395 obsolete configurations section.
1396 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1397 * vax-nat.c: Delete file.
1399 2014-10-24 Pedro Alves <palves@redhat.com>
1401 * NEWS (Removed targets): Add OS/arch column.
1403 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1405 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1406 on the arg type of a constructor only if it is of reference type.
1408 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1410 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1411 accessors and constants from nios2 opcodes update.
1412 (nios2_get_next_pc): Likewise.
1414 2014-10-19 Doug Evans <xdje42@gmail.com>
1416 * gdbthread.h (set_running): Fix comment.
1417 (set_executing, finish_thread_state): Fix comment.
1419 2014-10-18 Doug Evans <xdje42@gmail.com>
1421 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1423 2014-10-17 Doug Evans <dje@google.com>
1425 * NEWS: Mention new event gdb.clear_objfiles.
1426 * python/py-event.h (emit_clear_objfiles_event): Clear
1427 * python/py-events.h (events_object): New member clear_objfiles.
1428 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1430 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1431 emit clear_objfiles event.
1432 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1434 (emit_clear_objfiles_event): New function.
1435 (clear_objfiles): New event.
1436 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1438 * python/python.c (_initialize_python): Call
1439 gdbpy_initialize_clear_objfiles_event.
1441 2014-10-17 Doug Evans <dje@google.com>
1443 * NEWS: Mention new gdb.Objfile.progspace attribute.
1444 * python/py-objfile.c (objfpy_get_progspace): New function.
1445 (objfile_getset): New entry for "progspace".
1447 2014-10-17 Pedro Alves <palves@redhat.com>
1450 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1451 returns a copy of the input.
1452 (run_command_1, continue_command, step_1, jump_command)
1453 (signal_command, until_command, advance_command, finish_command)
1454 (attach_command): Adjust and install a cleanup to free the
1457 2014-10-17 Pedro Alves <palves@redhat.com>
1460 * infcmd.c (continue_1): If continuing all threads in the
1461 foreground, make sure the inferior's terminal settings are put in
1464 2014-10-17 Pedro Alves <palves@redhat.com>
1467 * annotate.c (annotate_breakpoints_invalid): Use
1468 target_terminal_our_for_output instead of target_terminal_ours.
1469 Give back the terminal to the target.
1470 (annotate_frames_invalid): Likewise.
1472 2014-10-17 Pedro Alves <palves@redhat.com>
1474 * target.c (enum terminal_state): New enum.
1475 (terminal_state): New global.
1476 (target_terminal_init): New function.
1477 (target_terminal_inferior): Skip if inferior already owns the
1479 (target_terminal_ours, target_terminal_ours_for_output): New
1481 * target.h (target_terminal_init): Convert to function prototype.
1482 (target_terminal_ours_for_output): Convert to function prototype
1484 (target_terminal_ours): Convert to function prototype and tweak
1486 * windows-nat.c (do_initial_windows_stuff): Call
1487 target_terminal_init instead of child_terminal_init_with_pgrp.
1489 2014-10-17 Pedro Alves <palves@redhat.com>
1491 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1492 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1493 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1495 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1496 * ada-lang.h [__alpha__ && __osf__]
1497 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1498 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1499 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1501 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1503 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1504 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1505 * configure: Regenerate.
1506 * configure.ac: Remove references to osf.
1507 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1508 section. Remove all other references to osf.
1509 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1510 Remove all other references to osf.
1511 * dec-thread.c: Delete file.
1512 * defs.h (GDB_OSABI_OSF1): Delete.
1513 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1515 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1516 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1518 (unconditionally_kill_inferior)
1519 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1520 * solib-osf.c: Delete file.
1522 2014-10-17 Pedro Alves <palves@redhat.com>
1524 * remote.c (clear_threads_listing_context): Move higher up, out of
1525 the HAVE_LIBEXPAT guard.
1527 2014-10-16 Tristan Gingold <gingold@adacore.com>
1529 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1530 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1533 2014-10-15 Pedro Alves <palves@redhat.com>
1535 * dec-thread.c (dec_thread_count_gdb_threads)
1536 (dec_thread_add_gdb_thread): Delete.
1537 (dec_thread_update_thread_list): Delete.
1538 (dec_thread_find_new_threads): Rename to ...
1539 (dec_thread_update_thread_list): ... this. Delete GDB-size
1540 threads that are no longer found in dec_thread_list.
1541 (resync_thread_list): Delete.
1542 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1545 2014-10-15 Pedro Alves <palves@redhat.com>
1547 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1548 * remote.c (remote_update_thread_list): Skip calling prune_threads
1549 if any thread listing method is supported, and instead walk over
1550 the set of remote threads listed, deleting those that are not
1551 found in GDB's thread list.
1553 2014-10-15 Pedro Alves <palves@redhat.com>
1555 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1556 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1557 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1558 (bsd_uthread_target): Adjust.
1559 * corelow.c (core_open): Adjust.
1560 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1561 (dec_thread_update_thread_list): New function.
1562 (init_dec_thread_ops): Adjust.
1563 * gdbthread.h (prune_threads): New declaration.
1564 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1565 (thread_db_update_thread_list): ... this. Call prune_threads.
1566 (init_thread_db_ops): Adjust.
1567 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1568 (procfs_update_thread_list): ... this. Call prune_threads.
1569 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1571 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1572 (obsd_update_thread_list): ... this. Call prune_threads.
1573 (obsd_add_target): Adjust.
1574 * procfs.c (procfs_target): Adjust.
1575 (procfs_notice_thread): Update comment.
1576 (procfs_find_new_threads): Rename to ...
1577 (procfs_update_thread_list): ... this. Call prune_threads.
1578 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1580 (ravenscar_wait): Adjust.
1581 (ravenscar_find_new_threads): Rename to ...
1582 (ravenscar_update_thread_list): ... this. Call prune_threads.
1583 (init_ravenscar_thread_ops): Adjust.
1584 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1585 (record_btrace_update_thread_list): ... this. Adjust comment.
1586 (init_record_btrace_ops): Adjust.
1587 * remote.c (remote_threads_info): Rename to ...
1588 (remote_update_thread_list): ... this. Call prune_threads.
1589 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1591 * sol-thread.c (check_for_thread_db): Adjust.
1592 (sol_find_new_threads_callback): Rename to ...
1593 (sol_update_thread_list_callback): ... this.
1594 (sol_find_new_threads): Rename to ...
1595 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1596 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1597 * target-delegates.c: Regenerate.
1598 * target.c (target_find_new_threads): Rename to ...
1599 (target_update_thread_list): ... this.
1600 * target.h (struct target_ops): Rename to_find_new_threads field
1601 to to_update_thread_list.
1602 (target_find_new_threads): Rename to ...
1603 (target_update_thread_list): ... this.
1604 * thread.c (prune_threads): Make extern.
1605 (update_thread_list): Adjust.
1607 2014-10-15 Pedro Alves <palves@redhat.com>
1609 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1610 Add describing comment. Return -1 if the qL packet is not
1612 (struct thread_item, thread_item_t): Move higher up in
1613 the file. Add comments.
1614 (struct threads_parsing_context): Move higher up in
1615 the file, add comments, and remote to ...
1616 (struct threads_listing_context): ... this.
1617 (remote_newthread_step): Don't add the thread to GDB's thread
1618 database here. Instead push it to the thread_listing_context
1620 (remote_find_new_threads): Rename to ...
1621 (remote_get_threads_with_ql): ... this. Add target_ops and
1622 targets_listing_context parameters. Pass down context.
1623 (start_thread): Adjust.
1624 (clear_threads_parsing_context): Rename to ...
1625 (clear_threads_listing_context): ... this.
1626 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1627 remote_threads_info.
1628 (remote_get_threads_with_qthreadinfo): Ditto.
1629 (remote_threads_info): Reimplement.
1631 2014-10-15 Pedro Alves <palves@redhat.com>
1633 * infrun.c (resume): Don't force displaced-stepping for all
1634 single-steps on software single-stepping archs.
1636 2014-10-15 Pedro Alves <palves@redhat.com>
1638 * breakpoint.c (single_step_breakpoints): Delete global.
1639 (insert_single_step_breakpoint): Adjust to store the breakpoint
1640 pointer in the current thread.
1641 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1642 (cancel_single_step_breakpoints): Delete functions.
1643 (breakpoint_has_location_inserted_here): Make extern.
1644 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1646 * breakpoint.h (breakpoint_has_location_inserted_here): New
1648 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1649 (cancel_single_step_breakpoints): Remove declarations.
1650 * gdbthread.h (struct thread_control_state)
1651 <single_step_breakpoints>: New field.
1652 (delete_single_step_breakpoints)
1653 (thread_has_single_step_breakpoints_set)
1654 (thread_has_single_step_breakpoint_here): New declarations.
1655 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1656 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1657 (singlestep_pc): Delete globals.
1658 (infrun_thread_ptid_changed): Remove references to removed
1660 (resume_cleanups): Delete the current thread's single-step
1662 (maybe_software_singlestep): Remove references to removed globals.
1663 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1664 delete_single_step_breakpoints.
1665 (init_wait_for_inferior): Remove references to removed globals.
1666 (delete_thread_infrun_breakpoints): Delete the thread's
1667 single-step breakpoints too.
1668 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1669 single-step breakpoints here.
1670 (delete_stopped_threads_single_step_breakpoints): New function.
1671 (adjust_pc_after_break): Adjust to use
1672 thread_has_single_step_breakpoints_set.
1673 (handle_inferior_event): Remove references to removed globals.
1674 Use delete_stopped_threads_single_step_breakpoints.
1675 (handle_signal_stop): Adjust to per-thread single-step
1676 breakpoints. Swap test order to do cheaper tests first.
1677 (switch_back_to_stepped_thread): Extend debug output. Remove
1678 references to removed globals.
1679 * record-full.c (record_full_wait_1): Adjust to per-thread
1680 single-step breakpoints.
1681 * thread.c (delete_single_step_breakpoints)
1682 (thread_has_single_step_breakpoints_set)
1683 (thread_has_single_step_breakpoint_here): New functions.
1684 (clear_thread_inferior_resources): Also delete the thread's
1685 single-step breakpoints.
1687 2014-10-15 Pedro Alves <palves@redhat.com>
1689 * thread.c (delete_thread_breakpoint): New function.
1690 (delete_step_resume_breakpoint)
1691 (delete_exception_resume_breakpoint): Use it.
1692 (delete_at_next_stop): New function.
1693 (clear_thread_inferior_resources): Use delete_at_next_stop.
1695 2014-10-15 Pedro Alves <palves@redhat.com>
1697 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1698 (breakpoint_inserted_here_p): ... here. Remove special case for
1699 software single-step breakpoints.
1700 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1701 (software_breakpoint_inserted_here_p): ... here. Remove special
1702 case for software single-step breakpoints.
1703 (bp_target_info_copy_insertion_state)
1704 (deprecated_insert_raw_breakpoint)
1705 (deprecated_remove_raw_breakpoint): Delete functions.
1706 * breakpoint.h (deprecated_insert_raw_breakpoint)
1707 (deprecated_remove_raw_breakpoint): Remove declarations.
1709 2014-10-15 Pedro Alves <palves@redhat.com>
1712 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1713 Delete array globals.
1714 (single_step_breakpoints): New global.
1715 (breakpoint_xfer_memory): Remove special handling for single-step
1717 (update_breakpoints_after_exec): Delete bp_single_step
1719 (detach_breakpoints): Remove special handling for single-step
1721 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1722 (bpstat_stop_status): Add comment.
1723 (bpstat_what, bptype_string, print_one_breakpoint_location)
1724 (adjust_breakpoint_address, init_bp_location): Handle
1726 (new_single_step_breakpoint): New function.
1727 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1728 handling for single-step breakpoints.
1729 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1730 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1732 (detach_single_step_breakpoints, find_single_step_breakpoint):
1734 (breakpoint_has_location_inserted_here): New function.
1735 (single_step_breakpoint_inserted_here_p): Rewrite.
1736 * breakpoint.h: Remove FIXME.
1737 (enum bptype) <bp_single_step>: New enum value.
1738 (insert_single_step_breakpoint): Update comment.
1739 * infrun.c (resume_cleanups)
1740 (delete_step_thread_step_resume_breakpoint): Remove single-step
1742 (fetch_inferior_event): Install a cleanup that removes infrun
1744 (switch_back_to_stepped_thread) <expect thread advanced also>:
1745 Clear step-over info.
1747 2014-10-15 Pedro Alves <palves@redhat.com>
1749 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1750 (delete_thread_infrun_breakpoints): New function, with parts
1751 salvaged from delete_step_resume_breakpoint_callback.
1752 (delete_step_thread_step_resume_breakpoint): Delete.
1753 (for_each_just_stopped_thread_callback_func): New typedef.
1754 (for_each_just_stopped_thread): New function.
1755 (delete_just_stopped_threads_infrun_breakpoints): New function.
1756 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1757 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1759 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1761 2014-10-15 Pedro Alves <palves@redhat.com>
1763 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1764 trying to step past a non-steppable watchpoint.
1765 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1767 * infrun.c (struct step_over_info): Add new field
1768 'nonsteppable_watchpoint_p' and adjust comments.
1769 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1771 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1772 (stepping_past_nonsteppable_watchpoint): New function.
1773 (step_over_info_valid_p): Also return true if stepping past a
1774 nonsteppable watchpoint.
1775 (proceed): Adjust call to set_step_over_info. Remove reference to
1777 (init_wait_for_inferior): Remove reference to init_infwait_state.
1778 (waiton_ptid): Delete global.
1779 (struct execution_control_state)
1780 <stepped_after_stopped_by_watchpoint>: Delete field.
1781 (wait_for_inferior, fetch_inferior_event): Always pass
1782 minus_one_ptid to target_wait.
1783 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1785 (init_infwait_state): Delete function.
1786 (handle_inferior_event): Remove infwait_state handling.
1787 (handle_signal_stop) <watchpoints handling>: Adjust after
1788 stepped_after_stopped_by_watchpoint removal. Don't remove
1789 breakpoints here nor set infwait_state. Set the thread's
1790 stepping_over_watchpoint flag, and call keep_going instead.
1791 (keep_going): Handle stepping_over_watchpoint. Adjust
1792 set_step_over_info calls.
1793 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1796 2014-10-15 Pedro Alves <palves@redhat.com>
1798 * infrun.c (step_over_info_valid_p): New function.
1799 (resume): Use step_over_info_valid_p instead of checking the
1800 threads's trap_expected flag.
1802 2014-10-15 Doug Evans <dje@google.com>
1803 Walfred Tedeschi <walfred.tedeschi@intel.com>
1806 * python/lib/gdb/__init__.py (packages): Add "printer".
1807 * python/lib/gdb/command/bound_registers.py: Moved to ...
1808 * python/lib/gdb/printer/bound_registers.py: ... here.
1809 Add printer to global set of builtin printers. Rename printer from
1810 "bound" to "mpx_bound128".
1811 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1812 registered as global "builtin" printer.
1813 (add_builtin_pretty_printer): New function.
1814 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1815 gdb/printer/__init__.py.
1817 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1819 * Makefile.in (SFILES): Remove d-support.c.
1820 (COMMON_OBS): Remove d-support.o.
1821 * d-lang.h (d_parse_symbol): Remove declaration.
1822 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1823 * d-support.c: Remove file.
1825 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1827 * gdb/infrun.c (process_event_stop_test): Apply
1828 gdbarch_addr_bits_remove to longjmp resume address.
1830 2014-10-15 Pedro Alves <palves@redhat.com>
1832 * regformats/microblaze.dat: Delete file.
1834 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1836 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1837 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1839 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1841 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1844 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1848 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1849 with qualified args.
1851 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1853 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1854 of the case where the second operand is a pointer.
1855 <BINOP_SUB>: Likewise.
1857 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1859 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1860 only if it is not NULL.
1861 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1862 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1863 (struct probe_ops) <clear_semaphore>: Likewise.
1864 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1866 (stop_tracing): Likewise, for clear_semaphore.
1868 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1870 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1871 using language_c, instead of current_language.
1873 2014-10-13 Doug Evans <dje@google.com>
1875 * python/py-objfile.c (objfpy_initialize): New function.
1876 (objfpy_new, objfile_to_objfile_object): Call it.
1877 * python/py-progspace.c (pspy_initialize): New function.
1878 (pspy_new, pspace_to_pspace_object): Call it.
1880 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1881 Jan Kratochvil <jan.kratochvil@redhat.com>
1883 Fix "save breakpoints" for "catch" command.
1884 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1887 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1889 Fix "save breakpoints" for "disable $bpnum" command.
1890 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1892 2014-10-10 Pedro Alves <palves@redhat.com>
1894 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1895 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1896 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1897 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1899 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1900 * configure.ac: Remove references to IRIX.
1901 * configure.host: Add *-*-irix* to the obsolete hosts section.
1902 Remove all other references to irix.
1903 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1906 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1908 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1909 isn't valid, release the tdesc arch data and return NULL.
1911 2014-10-10 Pedro Alves <palves@redhat.com>
1913 * linux-tdep.c: Include observer.h.
1914 (linux_inferior_data): New global.
1915 (struct linux_info): New structure.
1916 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1917 (get_linux_inferior_data): New functions.
1918 (linux_vsyscall_range): Rename to ...
1919 (linux_vsyscall_range_raw): ... this.
1920 (linux_vsyscall_range): New function; handles caching.
1921 (_initialize_linux_tdep): Register linux_inferior_data. Install
1922 inferior_exit and inferior_appeared observers.
1924 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1925 Pedro Alves <palves@redhat.com>
1928 * solib-svr4.c (svr4_read_so_list): Rename to ...
1929 (svr4_current_sos_1): ... this and change the function comment.
1930 (svr4_current_sos): New function.
1932 2014-10-10 Pedro Alves <palves@redhat.com>
1934 * arch-utils.c (default_vsyscall_range): New function.
1935 * arch-utils.h (default_vsyscall_range): New declaration.
1936 * gdbarch.sh (vsyscall_range): New hook.
1937 * gdbarch.h, gdbarch.c: Regenerate.
1938 * linux-tdep.c (linux_vsyscall_range): New function.
1939 (linux_init_abi): Install linux_vsyscall_range as
1940 vsyscall_range gdbarch hook.
1941 * memrange.c (address_in_mem_range): New function.
1942 * memrange.h (address_in_mem_range): New declaration.
1943 * symfile-mem.c (find_vdso_size): Delete function.
1944 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1946 2014-10-10 Pedro Alves <palves@redhat.com>
1948 * infrun.c (normal_stop): Fix typo in comment.
1950 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1953 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1954 typo when using logical AND to determine instruction type.
1956 2014-10-09 Yao Qi <yao@codesourcery.com>
1958 * infrun.c (handle_signal_stop): Remove local variable
1961 2014-10-08 Stan Shebs <stan@codesourcery.com>
1963 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1965 2014-10-08 Gary Benson <gbenson@redhat.com>
1967 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1969 2014-10-08 Gary Benson <gbenson@redhat.com>
1971 * common/common-defs.h: Include common-exceptions.h.
1972 * exceptions.h: Do not include common-exceptions.h.
1974 2014-10-08 Gary Benson <gbenson@redhat.com>
1976 * common/common-defs.h: Include cleanups.h.
1977 * common/common-exceptions.c: Do not include cleanups.h.
1978 * utils.h: Likewise.
1980 2014-10-08 Gary Benson <gbenson@redhat.com>
1982 * ada-lang.c: Do not include exceptions.h.
1983 * ada-valprint.c: Likewise.
1984 * amd64-tdep.c: Likewise.
1985 * auto-load.c: Likewise.
1986 * block.c: Likewise.
1987 * break-catch-throw.c: Likewise.
1988 * breakpoint.c: Likewise.
1989 * btrace.c: Likewise.
1990 * c-lang.c: Likewise.
1991 * cli/cli-cmds.c: Likewise.
1992 * cli/cli-interp.c: Likewise.
1993 * cli/cli-script.c: Likewise.
1994 * completer.c: Likewise.
1995 * corefile.c: Likewise.
1996 * corelow.c: Likewise.
1997 * cp-abi.c: Likewise.
1998 * cp-support.c: Likewise.
1999 * cp-valprint.c: Likewise.
2000 * darwin-nat.c: Likewise.
2001 * dwarf2-frame-tailcall.c: Likewise.
2002 * dwarf2-frame.c: Likewise.
2003 * dwarf2loc.c: Likewise.
2004 * dwarf2read.c: Likewise.
2006 * event-loop.c: Likewise.
2007 * event-top.c: Likewise.
2008 * f-valprint.c: Likewise.
2009 * frame-unwind.c: Likewise.
2010 * frame.c: Likewise.
2011 * gdbtypes.c: Likewise.
2012 * gnu-v2-abi.c: Likewise.
2013 * gnu-v3-abi.c: Likewise.
2014 * guile/scm-auto-load.c: Likewise.
2015 * guile/scm-breakpoint.c: Likewise.
2016 * guile/scm-cmd.c: Likewise.
2017 * guile/scm-frame.c: Likewise.
2018 * guile/scm-lazy-string.c: Likewise.
2019 * guile/scm-param.c: Likewise.
2020 * guile/scm-symbol.c: Likewise.
2021 * guile/scm-type.c: Likewise.
2022 * hppa-hpux-tdep.c: Likewise.
2023 * i386-tdep.c: Likewise.
2024 * inf-loop.c: Likewise.
2025 * infcall.c: Likewise.
2026 * infcmd.c: Likewise.
2027 * infrun.c: Likewise.
2028 * interps.c: Likewise.
2029 * interps.h: Likewise.
2031 * linespec.c: Likewise.
2032 * linux-nat.c: Likewise.
2033 * linux-thread-db.c: Likewise.
2034 * m32r-rom.c: Likewise.
2036 * memory-map.c: Likewise.
2037 * mi/mi-cmd-break.c: Likewise.
2038 * mi/mi-cmd-stack.c: Likewise.
2039 * mi/mi-interp.c: Likewise.
2040 * mi/mi-main.c: Likewise.
2041 * monitor.c: Likewise.
2042 * nto-procfs.c: Likewise.
2043 * objc-lang.c: Likewise.
2044 * p-valprint.c: Likewise.
2045 * parse.c: Likewise.
2046 * ppc-linux-tdep.c: Likewise.
2047 * printcmd.c: Likewise.
2048 * probe.c: Likewise.
2049 * python/py-auto-load.c: Likewise.
2050 * python/py-breakpoint.c: Likewise.
2051 * python/py-cmd.c: Likewise.
2052 * python/py-finishbreakpoint.c: Likewise.
2053 * python/py-frame.c: Likewise.
2054 * python/py-framefilter.c: Likewise.
2055 * python/py-function.c: Likewise.
2056 * python/py-gdb-readline.c: Likewise.
2057 * python/py-inferior.c: Likewise.
2058 * python/py-infthread.c: Likewise.
2059 * python/py-lazy-string.c: Likewise.
2060 * python/py-linetable.c: Likewise.
2061 * python/py-param.c: Likewise.
2062 * python/py-prettyprint.c: Likewise.
2063 * python/py-symbol.c: Likewise.
2064 * python/py-type.c: Likewise.
2065 * python/py-value.c: Likewise.
2066 * python/python-internal.h: Likewise.
2067 * python/python.c: Likewise.
2068 * record-btrace.c: Likewise.
2069 * record-full.c: Likewise.
2070 * regcache.c: Likewise.
2071 * remote-fileio.c: Likewise.
2072 * remote-mips.c: Likewise.
2073 * remote.c: Likewise.
2074 * rs6000-aix-tdep.c: Likewise.
2075 * rs6000-nat.c: Likewise.
2077 * solib-darwin.c: Likewise.
2078 * solib-dsbt.c: Likewise.
2079 * solib-frv.c: Likewise.
2080 * solib-ia64-hpux.c: Likewise.
2081 * solib-spu.c: Likewise.
2082 * solib-svr4.c: Likewise.
2083 * solib.c: Likewise.
2084 * spu-tdep.c: Likewise.
2085 * stack.c: Likewise.
2086 * stap-probe.c: Likewise.
2087 * symfile-mem.c: Likewise.
2088 * symmisc.c: Likewise.
2089 * target.c: Likewise.
2090 * thread.c: Likewise.
2092 * tracepoint.c: Likewise.
2093 * tui/tui-interp.c: Likewise.
2094 * typeprint.c: Likewise.
2095 * utils.c: Likewise.
2096 * valarith.c: Likewise.
2097 * valops.c: Likewise.
2098 * valprint.c: Likewise.
2099 * value.c: Likewise.
2100 * varobj.c: Likewise.
2101 * windows-nat.c: Likewise.
2102 * xml-support.c: Likewise.
2104 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2106 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2108 (extended_mips16_next_pc): Update accordingly.
2110 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2112 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2114 (micromips_instruction_is_compact_branch): Likewise.
2115 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2116 or a compact jump, reaching a jump delay slot, or seeing a
2117 second non-prologue instruction.
2118 (micromips_scan_prologue): Also terminate scanning upon seeing a
2119 compact branch or jump, or reaching a branch or jump delay slot.
2120 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2121 or jump delay slot, or seeing a second non-prologue instruction.
2122 (mips32_instruction_has_delay_slot): Retain instruction
2123 examination code only, update arguments accordingly and move
2124 instruction fetch pieces to...
2125 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2126 (micromips_instruction_has_delay_slot): Likewise and to...
2127 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2128 (mips16_instruction_has_delay_slot): Likewise and to...
2129 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2130 (mips_single_step_through_delay): Update accordingly.
2131 (mips_adjust_breakpoint_address): Likewise.
2133 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2135 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2136 !mustbe32 also return 1 for 32-bit instructions.
2137 (mips16_instruction_has_delay_slot): Likewise. Add an
2138 explanatory comment.
2140 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2142 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2145 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2147 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2149 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2150 for the breakpoint's address. Don't preinitialize `placed_size'.
2151 (insert_bp_location): Set `reqstd_address' rather than
2153 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2154 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2156 (bkpt_remove_location): Likewise.
2157 (deprecated_insert_raw_breakpoint): Likewise.
2158 (deprecated_remove_raw_breakpoint): Likewise.
2159 (find_single_step_breakpoint): Likewise.
2160 * mem-break.c (default_memory_insert_breakpoint): Use
2161 `reqstd_address' for the breakpoint's address. Don't set
2162 `placed_address' or `placed_size' if breakpoint contents couldn't
2163 have been determined.
2164 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2165 the breakpoint's address.
2166 (remote_insert_hw_breakpoint): Likewise. Don't set
2167 `placed_address' or `placed_size' if breakpoint couldn't have been
2169 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2170 `reqstd_address' for the breakpoint's address.
2171 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2172 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2173 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2174 * microblaze-linux-tdep.c
2175 (microblaze_linux_memory_remove_breakpoint): Likewise.
2176 * monitor.c (monitor_insert_breakpoint): Likewise.
2177 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2178 (procfs_insert_hw_breakpoint): Likewise.
2179 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2180 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2181 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2182 * remote-mips.c (mips_insert_breakpoint): Likewise.
2183 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2185 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2187 * valops.c (value_assign): Check for bit field assignments
2188 before calling architecture-specific register value
2189 conversion functions.
2191 2014-10-03 Pierre Muller <muller@sourceware.org>
2193 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2195 2014-10-02 Pedro Alves <palves@redhat.com>
2197 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2198 threads_are_executing.
2199 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2201 * gdbthread.h (threads_are_executing): Declare.
2202 (handle_signal_stop) <random signals>: Don't print about the
2203 signal here if stopping.
2204 (end_stepping_range): Don't notify observers here.
2205 (normal_stop): Update the thread list. If stopped by a random
2206 signal or a stepping range ended, notify observers.
2207 * thread.c (threads_executing): New global.
2208 (init_thread_list): Clear 'threads_executing'.
2209 (set_executing): Set or clear 'threads_executing'.
2210 (threads_are_executing): New function.
2211 (update_threads_executing): New function.
2212 (update_thread_list): Use it.
2214 2014-10-02 Pedro Alves <palves@redhat.com>
2216 PR breakpoints/17431
2217 * breakpoint.c (update_breakpoints_after_exec): Don't create
2218 overlay, longjmp, std terminate nor exception breakpoints here.
2220 2014-10-02 Pedro Alves <palves@redhat.com>
2222 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2224 * inferior.c (find_inferior_for_program_space): Give preference to
2225 the current inferior.
2226 * inferior.h (find_inferior_for_program_space): Update comment.
2227 * progspace.c (switch_to_program_space_and_thread): Prefer the
2228 current inferior if it's bound to the program space requested. If
2229 the inferior found doesn't have a PID yet, don't bother looking up
2231 * progspace.h (switch_to_program_space_and_thread): Adjust
2233 * thread.c (any_thread_of_process, any_live_thread_of_process):
2234 Give preference to the current thread.
2236 2014-10-01 Pedro Alves <palves@redhat.com>
2238 * breakpoint.c (insert_bp_location): Error out if inserting a
2239 software breakpoint at a read-only address.
2240 * target.c (memory_xfer_check_region): New function, factored out
2242 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2244 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2245 against the memory region attributes.
2247 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2249 * NEWS: Announce new exit-code field in -list-thread-groups
2251 * inferior.c (exit_inferior_1): Don't clear exit code.
2252 (inferior_appeared): Clear exit code.
2253 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2256 2014-10-01 Pedro Alves <palves@redhat.com>
2258 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2259 GENERATED" along with emacs/vi read-only markers.
2260 * regformats/aarch64.dat: Regenerate.
2261 * regformats/arm-with-iwmmxt.dat: Regenerate.
2262 * regformats/arm-with-neon.dat: Regenerate.
2263 * regformats/arm-with-vfpv2.dat: Regenerate.
2264 * regformats/arm-with-vfpv3.dat: Regenerate.
2265 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2266 * regformats/i386/amd64-avx.dat: Regenerate.
2267 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2268 * regformats/i386/amd64-avx512.dat: Regenerate.
2269 * regformats/i386/amd64-linux.dat: Regenerate.
2270 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2271 * regformats/i386/amd64-mpx.dat: Regenerate.
2272 * regformats/i386/amd64.dat: Regenerate.
2273 * regformats/i386/i386-avx-linux.dat: Regenerate.
2274 * regformats/i386/i386-avx.dat: Regenerate.
2275 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2276 * regformats/i386/i386-avx512.dat: Regenerate.
2277 * regformats/i386/i386-linux.dat: Regenerate.
2278 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2279 * regformats/i386/i386-mmx.dat: Regenerate.
2280 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2281 * regformats/i386/i386-mpx.dat: Regenerate.
2282 * regformats/i386/i386.dat: Regenerate.
2283 * regformats/i386/x32-avx-linux.dat: Regenerate.
2284 * regformats/i386/x32-avx.dat: Regenerate.
2285 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2286 * regformats/i386/x32-avx512.dat: Regenerate.
2287 * regformats/i386/x32-linux.dat: Regenerate.
2288 * regformats/i386/x32.dat: Regenerate.
2289 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2290 * regformats/mips-dsp-linux.dat: Regenerate.
2291 * regformats/mips-linux.dat: Regenerate.
2292 * regformats/mips64-dsp-linux.dat: Regenerate.
2293 * regformats/mips64-linux.dat: Regenerate.
2294 * regformats/nios2-linux.dat: Regenerate.
2295 * regformats/rs6000/powerpc-32.dat: Regenerate.
2296 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2297 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2298 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2299 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2300 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2301 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2302 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2303 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2304 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2305 * regformats/s390-linux32.dat: Regenerate.
2306 * regformats/s390-linux32v1.dat: Regenerate.
2307 * regformats/s390-linux32v2.dat: Regenerate.
2308 * regformats/s390-linux64.dat: Regenerate.
2309 * regformats/s390-linux64v1.dat: Regenerate.
2310 * regformats/s390-linux64v2.dat: Regenerate.
2311 * regformats/s390-te-linux64.dat: Regenerate.
2312 * regformats/s390x-linux64.dat: Regenerate.
2313 * regformats/s390x-linux64v1.dat: Regenerate.
2314 * regformats/s390x-linux64v2.dat: Regenerate.
2315 * regformats/s390x-te-linux64.dat: Regenerate.
2316 * regformats/tic6x-c62x-linux.dat: Regenerate.
2317 * regformats/tic6x-c62x.dat: Regenerate.
2318 * regformats/tic6x-c64x-linux.dat: Regenerate.
2319 * regformats/tic6x-c64x.dat: Regenerate.
2320 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2321 * regformats/tic6x-c64xp.dat: Regenerate.
2323 2014-10-01 Pedro Alves <palves@redhat.com>
2325 * features/Makefile: Update comments.
2326 (XMLTOC): List all xml files we build C files from.
2327 (clean-cfiles): New rule.
2329 2014-10-01 Pedro Alves <palves@redhat.com>
2331 * features/i386/amd64-avx512-linux.c: Regenerate.
2332 * features/i386/amd64-avx512.c: Regenerate.
2333 * features/i386/x32-avx512-linux.c: Regenerate.
2334 * features/i386/x32-avx512.c: Regenerate.
2336 2014-10-01 Pedro Alves <palves@redhat.com>
2338 * features/Makefile (WHICH): Remove arm-with-m,
2339 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2341 2014-10-01 Pedro Alves <palves@redhat.com>
2343 * features/Makefile (clean): New rule.
2345 2014-10-01 Pedro Alves <palves@redhat.com>
2347 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2348 (zmm14h): Add missing end quotes.
2350 2014-10-01 Pedro Alves <palves@redhat.com>
2352 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2353 * features/aarch64.c: Regenerate.
2355 2014-09-30 Don Breazeal <donb@codesourcery.com>
2357 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2358 code so as to work with follow_fork_inferior.
2359 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2360 (inf_ttrace_create_inferior): Remove reference to
2361 inf_ttrace_vfork_ppid.
2362 (inf_ttrace_attach): Ditto.
2363 (inf_ttrace_detach): Ditto.
2364 (inf_ttrace_kill): Use current_inferior instead of
2365 inf_ttrace_vfork_ppid.
2366 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2367 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2368 inferior away from the parent.
2369 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2371 (follow_fork_inferior): New function.
2372 (follow_inferior_reset_breakpoints): Make function static.
2373 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2374 * linux-nat.c (linux_child_follow_fork): Move target-independent
2375 code to infrun.c:follow_fork_inferior.
2377 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2379 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2380 * gdbarch.c: Regenerate.
2381 * gdbarch.h: Likewise.
2382 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2383 gdbarch method 'regset_from_core_section'.
2384 (get_core_register_section): Remove handling for the case that
2385 regset == NULL and regset_from_core_section is defined.
2386 (get_core_registers): Drop check for deleted method.
2387 * procfs.c (procfs_do_thread_registers): Adjust comment.
2389 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2391 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2392 (linux_nat_make_corefile_notes): Remove.
2393 (linux_target_install_ops): Do not set target method
2394 'make_corefile_notes'.
2395 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2397 (linux_corefile_thread_callback): Instead of args->collect, call
2398 linux_collect_thread_registers.
2399 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2400 NULL unless there is a regset iterator.
2401 (linux_make_corefile_notes_1): Remove.
2402 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2403 by linux_make_corefile_notes.
2404 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2406 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2409 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2411 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2413 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2415 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2416 (xtensa_iterate_over_regset_sections): New.
2417 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2419 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2421 * vax-tdep.c (vax_regset_from_core_section): Remove.
2422 (vax_iterate_over_regset_sections): New.
2423 (vax_gdbarch_init): Adjust gdbarch initialization.
2425 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2427 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2428 (tilegx_regset_from_core_section): Remove.
2429 (tilegx_iterate_over_regset_sections): New.
2430 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2432 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2434 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2435 (sparc_iterate_over_regset_sections): New.
2436 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2437 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2439 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2440 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2441 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2442 target method 'make_corefile_notes'.
2444 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2446 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2447 'sizeof_gregset' and 'sizeof_fpregset'.
2448 * sh-tdep.c (sh_regset_from_core_section): Remove.
2449 (sh_iterate_over_regset_sections): New.
2450 (sh_gdbarch_init): Adjust gdbarch initialization.
2451 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2453 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2456 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2458 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2459 (score7_linux_iterate_over_regset_sections): New.
2460 (score_gdbarch_init): Adjust gdbarch initialization.
2462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2464 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2466 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2467 method 'make_corefile_notes'.
2468 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2469 (ppcfbsd_regset_from_core_section): Remove.
2470 (ppcfbsd_iterate_over_regset_sections): New.
2471 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2473 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2474 (ppcnbsd_iterate_over_regset_sections): New.
2475 (ppcnbsd_init_abi): Adjust.
2476 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2477 (ppcobsd_iterate_over_regset_sections): New.
2478 (ppcobsd_init_abi): Adjust.
2479 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2480 (rs6000_aix_iterate_over_regset_sections): New.
2481 (rs6000_aix_init_osabi): Adjust.
2483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2486 (nios2_regset_from_core_section): Remove.
2487 (nios2_iterate_over_regset_sections): New.
2488 (nios2_linux_init_abi): Adjust gdbarch initialization.
2490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2493 (am33_iterate_over_regset_sections): New.
2494 (am33_linux_init_osabi): Adjust gdbarch initialization.
2496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2498 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2499 (mips_linux_iterate_over_regset_sections): New.
2500 (mips_linux_init_abi): Adjust gdbarch initialization.
2501 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2502 (mips64obsd_iterate_over_regset_sections): New.
2503 (mips64obsd_init_abi): Adjust.
2504 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2505 (mipsnbsd_iterate_over_regset_sections): New.
2506 (mipsnbsd_init_abi): Adjust.
2508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2510 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2511 (m88k_iterate_over_regset_sections): New.
2512 (m88k_gdbarch_init): Adjust gdbarch initialization.
2514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2516 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2517 (ia64_linux_iterate_over_regset_sections): New.
2518 (ia64_linux_init_abi): Adjust gdbarch initialization.
2520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2522 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2523 (m68kbsd_iterate_over_regset_sections): New.
2524 (m68kbsd_init_abi): Adjust gdbarch initialization.
2525 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2526 (m68k_linux_iterate_over_regset_sections): New.
2527 (m68k_linux_init_abi): Adjust gdbarch initialization.
2529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2531 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2532 (m32r_linux_regset_from_core_section): Remove.
2533 (m32r_linux_iterate_over_regset_sections): New.
2534 (m32r_linux_init_abi): Adjust gdbarch initialization.
2536 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2539 (amd64obsd_iterate_over_regset_sections): New.
2540 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2541 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2543 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2544 regset_from_core_section initialization.
2545 * i386-tdep.c (i386_regset_from_core_section): Remove.
2546 (i386_iterate_over_regset_sections): New.
2547 (i386_gdbarch_init): Adjust gdbarch initialization.
2548 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2549 (i386_iterate_over_regset_sections): New prototype.
2550 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2552 (i386obsd_aout_iterate_over_regset_sections): New.
2553 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2554 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2556 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2557 (amd64fbsd_init_abi): Call fbsd_init_abi.
2558 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2559 (i386fbsd4_init_abi): Call fbsd_init_abi.
2560 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2561 target method 'make_corefile_notes'.
2562 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2567 (hppa_hpux_iterate_over_regset_sections): New.
2568 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2569 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2570 (hppa_linux_iterate_over_regset_sections): New.
2571 (hppa_linux_init_abi): Adjust.
2572 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2573 (hppanbsd_iterate_over_regset_sections): New.
2574 (hppanbsd_init_abi): Adjust.
2575 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2576 (hppaobsd_iterate_over_regset_sections): New.
2577 (hppaobsd_init_abi): Adjust.
2579 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2581 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2582 (frv_linux_iterate_over_regset_sections): New.
2583 (frv_linux_init_abi): Adjust gdbarch initialization.
2585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2588 (armbsd_iterate_over_regset_sections): New prototype.
2589 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2590 (armbsd_iterate_over_regset_sections): New.
2591 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2594 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2596 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2597 (alpha_linux_iterate_over_regset_sections): New.
2598 (alpha_linux_init_abi): Adjust gdbarch initialization.
2599 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2601 (alphanbsd_iterate_over_regset_sections): New prototype.
2603 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2605 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2607 (aarch64_linux_iterate_over_regset_sections): New.
2608 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2610 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612 * fbsd-tdep.c: New file.
2613 * fbsd-tdep.h: New file.
2614 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2615 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2616 (ALLDEPFILES): Add fbsd-tdep.c.
2618 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2620 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2622 * gdbarch.h: Regenerate.
2623 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2625 (get_core_register_section): Add parameter 'regset' and use it, if
2626 set. Add parameter 'min_size' and verify the bfd section size
2628 (get_core_registers_cb): Add parameter 'regset' and pass it to
2629 get_core_register section. For the "standard" register sections
2630 ".reg" and ".reg2", set an appropriate default for human_name.
2631 (get_core_registers): Don't abort when the gdbarch has an iterator
2632 but no regset_from_core_section. Add NULL/0 for parameters
2633 'regset'/'min_size' in calls to get_core_register_section.
2634 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2635 'regset' and use it instead of calling the
2636 regset_from_core_section gdbarch method.
2637 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2638 * i386-tdep.c (i386_supply_xstateregset)
2639 (i386_collect_xstateregset, i386_xstateregset): Moved to
2641 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2643 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2644 core file support only if the regset iterator hasn't been set.
2645 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2646 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2647 Moved from i386-tdep.c and renamed to *_linux*.
2648 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2649 each callback invocation. Allow any .reg-xstate size when reading
2651 * amd64-tdep.c (amd64_supply_xstateregset)
2652 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2654 (amd64_regset_from_core_section): Remove.
2655 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2656 install an amd64-specific regset_from_core_section gdbarch method.
2657 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2658 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2659 Moved from amd64-tdep.c and renamed to *_linux*.
2660 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2661 to each callback invocation. Allow any .reg-xstate size when
2662 reading from a core file.
2663 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2664 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2665 each callback invocation.
2666 (arm_linux_init_abi): No longer set the regset_from_core_section
2668 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2669 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2670 each callback invocation.
2671 (ppc_linux_init_abi): No longer set the regset_from_core_section
2673 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2674 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2675 (s390_regset_from_core_section): Remove.
2676 (s390_iterate_over_regset_sections): Add regset parameter to each
2677 callback invocation.
2678 (s390_gdbarch_init): No longer set the regset_from_core_section
2679 gdbarch method. Drop initialization of deleted tdep fields.
2681 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2683 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2684 (amd64_linux_iterate_over_regset_sections): New.
2685 (amd64_linux_init_abi_common): Don't install the regset section
2686 list, but the new iterator in gdbarch.
2687 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2688 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2689 (arm_linux_iterate_over_regset_sections): ...here. New function.
2690 (arm_linux_init_abi): Set iterator instead of section list.
2691 * corelow.c (get_core_registers_cb): New function, logic moved
2693 (get_core_registers): ...loop body here. Use new iterator method
2694 instead of walking through the regset section list.
2695 * gdbarch.sh: Remove 'core_regset_sections'. New method
2696 'iterate_over_regset_sections'. New typedef
2697 'iterate_over_regset_sections_cb'.
2698 * gdbarch.c: Regenerate.
2699 * gdbarch.h: Likewise.
2700 * i386-linux-tdep.c (i386_linux_regset_sections)
2701 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2703 (i386_linux_iterate_over_regset_sections): New.
2704 (i386_linux_init_abi): Don't choose a regset section list, but
2705 install new iterator in gdbarch.
2706 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2707 (linux_collect_regset_section_cb): New function, logic moved
2709 (linux_collect_thread_registers): ...loop body here. Use iterator
2710 method instead of walking through list.
2711 (linux_make_corefile_notes_1): Check for presence of iterator
2712 method instead of regset section list.
2713 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2714 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2715 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2716 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2717 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2718 (ppc_linux_init_abi): Don't choose from above regset section
2719 lists, but install new iterator in gdbarch.
2720 * regset.h (struct core_regset_section): Remove.
2721 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2722 have_linux_v1, have_linux_v2, and have_tdb.
2723 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2724 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2725 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2726 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2727 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2728 (s390_iterate_over_regset_sections): ...here. New function. Use
2730 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2731 regset section lists, but install new iterator.
2733 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2735 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2737 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2739 * progspace.c (print_program_space): Don't prune program spaces
2740 before printing them.
2742 2014-09-25 Pedro Alves <palves@redhat.com>
2744 * infrun.c (user_visible_resume_ptid): Don't check
2745 singlestep_breakpoints_inserted_p.
2747 2014-09-25 Pedro Alves <palves@redhat.com>
2749 * breakpoint.c (should_be_inserted): Add debug output.
2751 2014-09-25 Pedro Alves <palves@redhat.com>
2753 * infrun.c (stepping_past_instruction_at)
2754 (clear_exit_convenience_vars): Point at infrun.h instead of
2756 (handle_signal_stop): Fix typo.
2758 2014-09-24 Yao Qi <yao@codesourcery.com>
2760 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2763 2014-09-22 Gary Benson <gbenson@redhat.com>
2765 * target.c (target_stop): Updated comment.
2767 2014-09-22 Gary Benson <gbenson@redhat.com>
2769 * target/target.h (target_stop_ptid): Renamed as...
2770 (target_stop_and_wait): New function. Updated comment.
2772 (target_continue_ptid): Renamed as...
2773 (target_continue_no_signal): New function. Updated comment.
2776 2014-09-22 Pedro Alves <palves@redhat.com>
2778 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2780 * breakpoint.c (enum ugll_insert_mode): New enum.
2781 (always_inserted_mode): Now a plain boolean.
2782 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2783 (breakpoints_always_inserted_mode): Delete.
2784 (breakpoints_should_be_inserted_now): New function.
2785 (insert_breakpoints): Pass UGLL_INSERT to
2786 update_global_location_list instead of calling
2787 insert_breakpoint_locations manually.
2788 (create_solib_event_breakpoint_1): New, factored out from ...
2789 (create_solib_event_breakpoint): ... this.
2790 (create_and_insert_solib_event_breakpoint): Use
2791 create_solib_event_breakpoint_1 instead of calling
2792 insert_breakpoint_locations manually.
2793 (update_global_location_list): Change parameter type from boolean
2794 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2795 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2796 (update_global_location_list_nothrow): Change parameter type from
2797 boolean to enum ugll_insert_mode.
2798 (_initialize_breakpoint): "breakpoint always-inserted" option is
2799 now a boolean command. Update help text.
2800 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2801 (breakpoints_should_be_inserted_now): New declaration.
2802 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2803 Remove breakpoints_always_inserted_mode check.
2804 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2805 * remote.c (remote_start_remote): Likewise.
2807 2014-09-22 Pedro Alves <palves@redhat.com>
2809 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2810 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2811 Instead, pass UGLL_INSERT to update_global_location_list.
2812 (update_global_location_list): Change parameter type from boolean
2813 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2814 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2815 (create_solib_event_breakpoint_1): New, factored out from ...
2816 (create_solib_event_breakpoint): ... this.
2817 (create_and_insert_solib_event_breakpoint): Use
2818 create_solib_event_breakpoint_1 instead of calling
2819 insert_breakpoint_locations manually.
2820 (update_global_location_list): Handle UGLL_INSERT.
2822 2014-09-22 Pedro Alves <palves@redhat.com>
2824 * breakpoint.c (enum ugll_insert_mode): New enum.
2825 (update_global_location_list)
2826 (update_global_location_list_nothrow): Change parameter type from
2827 boolean to enum ugll_insert_mode. All callers adjusted.
2829 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2831 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2832 SystemTap support in GDB.
2834 2014-09-19 Don Breazeal <donb@codesourcery.com>
2836 * linux-nat.c (linux_handle_extended_wait): Call
2837 linux_ptrace_get_extended_event.
2838 (wait_lwp): Call linux_is_extended_waitstatus.
2839 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2840 and linux_is_extended_waitstatus.
2841 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2842 linux_ptrace_get_extended_event.
2843 (linux_ptrace_get_extended_event): New function.
2844 (linux_is_extended_waitstatus): New function.
2845 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2846 (linux_is_extended_waitstatus): New declarations.
2848 2014-09-19 Yao Qi <yao@codesourcery.com>
2850 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2851 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2852 comments. Callers update.
2853 (dwarf_decode_lines): Likewise.
2854 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2855 comments. Skip the line table if 'lowpc' is greater than
2856 'address'. Don't check
2857 dwarf2_per_objfile->has_section_at_zero.
2859 2014-09-18 Doug Evans <dje@google.com>
2861 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2862 * python/py-symtab.c (stpy_get_producer): New function.
2863 (symtab_object_getset): Add "producer" attribute.
2865 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2868 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2869 (do_captured_read_memory_integer): Remove.
2870 (safe_read_memory_integer): Use target_read_memory directly instead
2871 of catching errors in do_captured_read_memory_integer.
2873 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2875 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2878 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2880 * objc-lang.c (find_implementation_from_class): Remove dead code.
2882 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2885 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2886 "fprintf_unfiltered (gdb_stdlog...)".
2888 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2890 PR breakpoints/12526
2891 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2893 * breakpoint.c (watch_command_1): Use these fields to retain
2894 bitfield information.
2895 (extract_bitfield_from_watchpoint_value): New function.
2896 (watchpoint_check): Use it.
2897 (update_watchpoint): Use it. Optimize the address and length of a
2898 HW watchpoint pointing to a bitfield.
2899 * value.h (unpack_value_bitfield): New prototype.
2900 * value.c (unpack_value_bitfield): Make extern.
2902 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2904 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2906 * gnu-nat.c (inf_threads): New function.
2907 * gnu-nat.h (inf_threads_ftype): New typedef.
2908 (inf_threads): New declaration.
2909 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2910 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2911 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2912 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2913 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2914 (i386_gnu_dr_get_control): New functions.
2915 (reg_addr): New structure.
2916 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2917 i386 debugging register hooks.
2918 * NEWS: Mention this.
2920 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2922 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2923 vector data transfer instructions.
2924 (arm_record_coproc_data_proc): Updated.
2926 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2928 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2929 arm_record_exreg_ld_st_insn.
2930 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2933 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2935 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2936 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2937 processing instructions.
2939 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2941 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2942 for advance SIMD struct ld/st insn.
2943 (thumb2_record_decode_insn_handler): Replace stub handler with
2944 thumb2_record_asimd_struct_ld_st.
2946 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2948 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2949 for asimd, vfp and coprocessor insns.
2950 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2951 and coprocessor insns.
2952 (thumb2_record_coproc_insn): New function.
2953 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2955 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2958 2014-09-13 Doug Evans <xdje42@gmail.com>
2960 * NEWS: Mention new "queue-signal" command.
2961 * infcmd.c (queue_signal_command): New function.
2962 (_initialize_infcmd): Add new queue-signal command.
2964 2014-09-13 Doug Evans <xdje42@gmail.com>
2966 * linux-nat.c (wait_lwp): Add debugging printf.
2967 (linux_nat_wait_1): Ditto.
2969 2014-09-12 Pedro Alves <palves@redhat.com>
2971 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2972 (create_and_insert_solib_event_breakpoint): New functions.
2973 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2974 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2975 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2976 (remove_dbx_link_breakpoint): Delete function.
2977 (insert_dbx_link_bpt_in_file): Use
2978 create_and_insert_solib_event_breakpoint instead of
2979 deprecated_insert_raw_breakpoint.
2980 (procfs_wait): Don't check whether we hit __dbx_link here.
2981 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2983 * solib-irix.c (base_breakpoint): Delete global.
2984 (disable_break): Delete function.
2985 (enable_break): Use create_solib_event_breakpoint
2986 instead of deprecated_insert_raw_breakpoint.
2987 (irix_solib_handle_event): New function.
2988 (irix_solib_create_inferior_hook): Don't run the target or disable
2989 the mapping-complete breakpoint here.
2990 (_initialize_irix_solib): Install irix_solib_handle_event as
2991 so_ops->handle_event hook.
2993 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2994 Ulrich Weigand <uweigand@de.ibm.com>
2997 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2998 instead of read_memory_unsigned_integer.
3000 2014-09-12 Gary Benson <gbenson@redhat.com>
3002 * nat/linux-waitpid.c: Include common-defs.h.
3003 [GDBSERVER]: Add FIXME comment.
3004 [!GDBSERVER]: Don't include defs.h or signal.h.
3005 (linux_debug) [!GDBSERVER]: Remove empty block.
3007 2014-09-12 Gary Benson <gbenson@redhat.com>
3009 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3010 Don't include defs.h or server.h.
3012 2014-09-12 Gary Benson <gbenson@redhat.com>
3014 * nat/linux-btrace.c: Include common-defs.h.
3015 Don't include defs.h, server.h or gdbthread.h.
3016 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3018 2014-09-12 Gary Benson <gbenson@redhat.com>
3020 * common/agent.c: Include common-defs.h.
3021 Don't include defs.h or server.h.
3022 * common/buffer.c: Likewise.
3023 * common/common-debug.c: Likewise.
3024 * common/common-utils.c: Likewise.
3025 * common/errors.c: Likewise.
3026 * common/filestuff.c: Likewise.
3027 * common/format.c: Likewise.
3028 * common/gdb_vecs.c: Likewise.
3029 * common/print-utils.c: Likewise.
3030 * common/ptid.c: Likewise.
3031 * common/rsp-low.c: Likewise.
3032 * common/signals.c: Likewise.
3033 * common/vec.c: Likewise.
3034 * common/xml-utils.c: Likewise.
3035 * nat/linux-osdata.c: Likewise.
3036 * nat/linux-procfs.c: Likewise.
3037 * nat/linux-ptrace.c: Likewise.
3038 * nat/mips-linux-watch.c: Likewise.
3039 * target/waitstatus.c: Likewise.
3041 2014-09-12 Tom Tromey <tromey@redhat.com>
3042 Gary Benson <gbenson@redhat.com>
3044 * common/common-regcache.h: New file.
3045 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3046 * regcache.h: Include common-regcache.h.
3047 (regcache_read_pc): Don't declare.
3048 * regcache.c (get_thread_regcache_for_ptid): New function.
3049 * nat/linux-btrace.c: Don't include regcache.h.
3050 Include common-regcache.h.
3051 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3053 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3055 * regcache.h (struct regset): Declare.
3057 2014-09-11 Pedro Alves <palves@redhat.com>
3060 * main.c: Include "infrun.h".
3061 (catch_command_errors, catch_command_errors_const): Wait for the
3062 foreground command to complete.
3063 * top.c (maybe_wait_sync_command_done): New function, factored out
3065 (maybe_wait_sync_command_done): ... here.
3066 * top.h (maybe_wait_sync_command_done): New declaration.
3068 2014-09-11 Tom Tromey <tromey@redhat.com>
3069 Gary Benson <gbenson@redhat.com>
3071 * common/symbol.h: New file.
3072 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3073 * minsyms.c (find_minimal_symbol_address): New function.
3074 * common/agent.c: Include common/symbol.h.
3075 [!GDBSERVER]: Don't include objfiles.h.
3076 (agent_look_up_symbols): Use find_minimal_symbol_address.
3078 2014-09-11 Gary Benson <gbenson@redhat.com>
3080 * target/target.h (target_stop_ptid, target_continue_ptid):
3082 * target.c (target_stop_ptid, target_continue_ptid): New
3084 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3085 (agent_run_command): Always use target_stop_ptid and
3086 target_continue_ptid.
3088 2014-09-11 Tom Tromey <tromey@redhat.com>
3089 Gary Benson <gbenson@redhat.com>
3091 * target/target.h: New file.
3092 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3093 * target.h: Include target/target.h.
3094 (target_read_memory, target_write_memory): Don't declare.
3095 * target.c (target_read_uint32): New function.
3096 * common/agent.c: Include target/target.h.
3097 [!GDBSERVER]: Don't include target.h.
3098 (helper_thread_id): Type changed to uint32_t.
3099 (agent_get_helper_thread_id): Use target_read_uint32.
3100 (agent_run_command): Always use target_read_memory and
3101 target_write_memory.
3102 (agent_capability): Type changed to uint32_t.
3103 (agent_capability_check): Use target_read_uint32.
3105 2014-09-11 Gary Benson <gbenson@redhat.com>
3107 * common/common-debug.h (show_debug_regs): Declare.
3108 * common/common-debug.c (show_debug_regs): Define.
3109 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3110 all uses with show_debug_regs. Replace all uses that considered
3111 debug_hw_points as a multi-value integer with straight boolean
3113 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3114 with show_debug_regs.
3115 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3116 all uses with show_debug_regs.
3117 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3118 uses with show_debug_regs.
3120 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3122 * findvar.c (address_from_register): Handle targets requiring
3123 a special conversion routine even for plain pointer types.
3125 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3127 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3128 (store_register): Do not call exec_one_dummy_insn.
3130 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3132 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3133 dereference it first. Use value_enclosing_type instead of
3135 (ada_array_length): Likewise.
3137 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3139 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3140 Adjust function implementation and documentation accordingly.
3141 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3142 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3143 Update call to ada_value_ptr_subscript.
3145 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3147 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3148 instead of VAL's type.
3150 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3152 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3154 2014-09-09 Doug Evans <xdje42@gmail.com>
3157 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3158 last parameter to pkg-config, not first.
3159 * configure.ac: Pass --with-guile provided pkg-config path to
3160 GDB_GUILE_PROGRAM_NAMES.
3161 * configure: Regenerate.
3163 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3165 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3168 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3170 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3171 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3172 the list of sections determining GDB_OSABI_IRIX.
3174 2014-09-09 James Hogan <james.hogan@imgtec.com>
3176 * MAINTAINERS (Write After Approval): Add "James Hogan".
3178 2014-09-09 James Hogan <james.hogan@imgtec.com>
3180 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3182 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3184 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3186 2014-09-08 Doug Evans <xdje42@gmail.com>
3189 * guile.c: #include <signal.h>.
3190 (_initialize_guile): Block SIGCHLD while initializing Guile.
3192 Replaces the following, which is reverted.
3194 2014-07-26 Doug Evans <xdje42@gmail.com>
3197 * configure.ac: Add check for header gc/gc.h.
3198 Add check for function setenv.
3199 * configure: Regenerate.
3200 * config.in: Regenerate.
3201 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3203 2014-09-08 Doug Evans <xdje42@gmail.com>
3205 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3206 with named constant. Fix style of pointer comparison.
3207 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3209 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3212 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3213 decide whether we display the command on "show user".
3214 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3215 printing command name.
3216 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3217 * cli/cli-decode.c (cli_user_command_p): Create helper function
3218 to verify whether cmd_list_element is a user-defined command.
3220 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3223 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3224 Fix goto out of TRY_CATCH.
3226 2014-09-06 Doug Evans <xdje42@gmail.com>
3227 Tom Tromey <tromey@redhat.com>
3230 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3231 $_any_caller_matches.
3232 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3233 * python/lib/gdb/function/caller_is.py: New file.
3235 2014-09-06 Doug Evans <xdje42@gmail.com>
3237 * infcmd.c (program_info): Fix typo.
3239 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3242 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3243 'number'. New variable 'has_digit'. Rewrite code to deal with
3244 subexpressions on SDT probes.
3246 2014-09-04 Pedro Alves <palves@redhat.com>
3248 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3249 the input is only one character long.
3251 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3254 * f-valprint.c (f_val_print): Specify the correct print option to
3255 use when printing integer values.
3257 2014-09-04 Gary Benson <gbenson@redhat.com>
3259 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3260 Remove code to cope with LWPs wrapped as PIDs.
3261 Add assertions to ensure no wrapped LWPs are passed.
3263 2014-09-04 Pedro Alves <palves@redhat.com>
3265 * value.c (value_ranges_copy_adjusted): New function, factored out
3267 (value_contents_copy_raw): ... here.
3268 (unpack_value_bits_as_long_1): Rename back to ...
3269 (unpack_bits_as_long): ... this. Remove 'original_value' and
3270 'result' parameters. Change return type to LONGEST.
3271 (unpack_value_bits_as_long): Delete.
3272 (unpack_value_field_as_long_1): Delete.
3273 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3274 (unpack_value_bitfield): New function.
3275 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3276 (value_fetch_lazy): Use unpack_value_bitfield.
3277 * value.h (unpack_value_bits_as_long): Delete declaration.
3279 2014-09-03 Sasha Smundak <asmundak@google.com>
3281 * python/py-frame.c (frapy_read_register): New function.
3283 2014-09-03 James Hogan <james.hogan@imgtec.com>
3285 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3286 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3288 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3291 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3293 (add_cmd): Set "completer_handle_brkchars" to NULL.
3294 * cli/cli-decode.h (struct cmd_list_element)
3295 <completer_handle_brkchars>: New field.
3296 * command.h (completer_ftype_void): New typedef.
3297 (set_cmd_completer_handle_brkchars): New prototype.
3298 * completer.c (set_gdb_completion_word_break_characters): New
3300 (complete_line_internal): Call "completer_handle_brkchars"
3301 callback from command.
3302 * completer.h: Include "command.h".
3303 (set_gdb_completion_word_break_characters): New prototype.
3304 * python/py-cmd.c (cmdpy_completer_helper): New function.
3305 (cmdpy_completer_handle_brkchars): New function.
3306 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3307 (cmdpy_init): Set completer_handle_brkchars to
3308 cmdpy_completer_handle_brkchars.
3310 2014-09-03 Gary Benson <gbenson@redhat.com>
3312 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3313 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3314 Loop conditions changed to equivalent form.
3315 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3316 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3317 ALL_DEBUG_ADDRESS_REGISTERS.
3319 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3321 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3324 2014-09-02 Doug Evans <dje@google.com>
3326 * typeprint.c (find_global_typedef): Fix comment.
3328 2014-09-02 Gary Benson <gbenson@redhat.com>
3330 * i386-nat.h: Renamed as...
3331 * x86-nat.h: New file. All type, function and variable name
3332 prefixes changed from "i386_" to "x86_". All references updated.
3333 * i386-nat.c: Renamed as...
3334 * x86-nat.c: New file. All type, function and variable name
3335 prefixes changed from "i386_" to "x86_". All references updated.
3336 * common/i386-xstate.h: Renamed as...
3337 * common/x86-xstate.h: New file. All type, function and variable
3338 name prefixes changed from "i386_" to "x86_". All references
3340 * nat/i386-cpuid.h: Renamed as...
3341 * nat/x86-cpuid.h: New file. All type, function and variable name
3342 prefixes changed from "i386_" to "x86_". All references updated.
3343 * nat/i386-gcc-cpuid.h: Renamed as...
3344 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3345 name prefixes changed from "i386_" to "x86_". All references
3347 * nat/i386-dregs.h: Renamed as...
3348 * nat/x86-dregs.h: New file. All type, function and variable name
3349 prefixes changed from "i386_" to "x86_". All references updated.
3350 * nat/i386-dregs.c: Renamed as...
3351 * nat/x86-dregs.c: New file. All type, function and variable name
3352 prefixes changed from "i386_" to "x86_". All references updated.
3354 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3356 * varobj.c (_initialize_varobj): Move to the end of file.
3358 2014-08-29 Gary Benson <gbenson@redhat.com>
3360 * common/common-exceptions.h: New file.
3361 * common/common-exceptions.c: Likewise.
3362 * Makefile.in (SFILES): Add common/common-exceptions.c.
3363 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3364 (COMMON_OBS): Add common-exceptions.o.
3365 (common-exceptions.o): New rule.
3366 * exceptions.h (common-exceptions.h): Include.
3367 (gdb_setjmp.h): Do not include.
3368 (return_reason): Moved to common-exceptions.h.
3369 (enum return_reason): Likewise.
3370 (RETURN_MASK): Likewise.
3371 (typedef return_mask): Likewise.
3372 (enum errors): Likewise.
3373 (struct gdb_exception): Likewise.
3374 (exceptions_state_mc_init): Likewise.
3375 (exceptions_state_mc_action_iter): Likewise.
3376 (exceptions_state_mc_action_iter_1): Likewise.
3377 (TRY_CATCH): Likewise.
3378 (throw_exception): Likewise.
3379 (throw_verror): Likewise.
3380 (throw_vquit): Likewise.
3381 (throw_error): Likewise.
3382 (throw_quit): Likewise.
3383 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3384 (enum catcher_action): Likewise.
3385 (struct catcher): Likewise.
3386 (current_catcher): Likewise.
3387 (catcher_list_size): Likewise.
3388 (exceptions_state_mc_init): Likewise.
3389 (catcher_pop): Likewise.
3390 (exceptions_state_mc): Likewise.
3391 (exceptions_state_mc_action_iter): Likewise.
3392 (exceptions_state_mc_action_iter_1): Likewise.
3393 (throw_exception): Likewise.
3394 (exception_messages): Likewise.
3395 (exception_messages_size): Likewise.
3396 (throw_it): Likewise.
3397 (throw_verror): Likewise.
3398 (throw_vquit): Likewise.
3399 (throw_error): Likewise.
3400 (throw_quit): Likewise.
3401 (prepare_to_throw_exception): New function.
3403 2014-08-29 Gary Benson <gbenson@redhat.com>
3405 * common/gdb_setjmp.h: New file.
3406 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3407 * configure.ac: Move sigsetjmp check...
3408 * common/common.m4: ...here.
3409 * configure: Regenerate.
3410 * cp-support.c (SIGJMP_BUF): Delete.
3411 (SIGSETJMP): Likewise.
3412 (SIGLONGJMP): Likewise.
3413 * exceptions.h (gdb_setjmp.h): Include.
3414 (setjmp.h): Do not include.
3415 (EXCEPTIONS_SIGJMP_BUF): Delete.
3416 (EXCEPTIONS_SIGSETJMP): Likewise.
3417 (EXCEPTIONS_SIGLONGJMP): Likewise.
3418 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3420 * exceptions.c: Likewise.
3422 2014-08-29 Gary Benson <gbenson@redhat.com>
3424 * cleanups.h: Moved to...
3425 * common/cleanups.h: New file.
3426 * cleanups.c: Moved to...
3427 * common/cleanups.c: New file. Include common-defs.h and
3428 cleanups.h. Do not include defs.h.
3429 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3430 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3431 (cleanups.o): New rule.
3433 2014-08-29 Gary Benson <gbenson@redhat.com>
3435 * common/errors.h (internal_warning): New declaration.
3436 (internal_vwarning): Likewise.
3437 * common/errors.c (internal_warning): New function.
3438 * utils.h (internal_warning): Don't declare.
3439 (internal_vwarning): Likewise.
3440 * utils.c (internal_warning): Removed.
3442 2014-08-29 Gary Benson <gbenson@redhat.com>
3444 * main.c (captured_main): Use warning during startup.
3445 Prefix startup warning messages with command name.
3447 2014-08-29 Gary Benson <gbenson@redhat.com>
3449 * main.c (captured_main): Handle usage errors with error.
3451 2014-08-29 Gary Benson <gbenson@redhat.com>
3453 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3454 exit pair with a call to error. Wrap the message with _().
3456 2014-08-29 Gary Benson <gbenson@redhat.com>
3458 * main.c (captured_main): Replace a fprintf/exit
3459 pair with a call to error. Wrap the message with _().
3461 2014-08-29 Gary Benson <gbenson@redhat.com>
3463 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3464 pairs with calls to error. Wrap the message with _().
3466 2014-08-29 Gary Benson <gbenson@redhat.com>
3468 * utils.c (vwarning): Protect calls to target_terminal_ours
3471 2014-08-29 Gary Benson <gbenson@redhat.com>
3473 * exceptions.c (print_flush): Protect calls to
3474 target_terminal_ours and wrap_here.
3476 2014-08-29 Gary Benson <gbenson@redhat.com>
3478 * utils.h (filtered_printing_initialized): New declaration.
3479 * utils.c (abort_with_message): New function.
3480 (internal_vproblem): Use abort_with_message for first level
3481 recursive internal problems, and if gdb_stderr is not set up.
3482 Protect calls to target_terminal_ours, begin_line and query.
3484 2014-08-28 Doug Evans <dje@google.com>
3486 * symtab.c (in_prologue): Move definition to better spot.
3487 (skip_prologue_using_sal): Ditto.
3489 2014-08-28 Doug Evans <dje@google.com>
3491 * symtab.c (find_function_start_sal): Move definition to better spot.
3493 2014-08-28 Yao Qi <yao@codesourcery.com>
3495 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3496 found_stack_adjust in forward scan. Remove condition check
3497 on found_stack_adjust which is always true. Indent the code.
3499 2014-08-28 Yao Qi <yao@codesourcery.com>
3501 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3502 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3503 (dwarf_decode_lines): Remove argument
3504 want_line_info. Remove condition check on want_line_info.
3507 2014-08-27 Doug Evans <dje@google.com>
3509 * dwarf2read.c (dwarf_record_line): Fix typo.
3511 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3513 * target.h (struct target_ops::to_terminal_save_ours): Remove
3515 (target_terminal_save_ours): Remove macro.
3516 * target-delegates.c: Regenerate.
3517 * inf-child.c (inf_child_target): Don't set the nonexistent
3518 field to_terminal_save_ours.
3519 * inferior.h (child_terminal_save_ours): Remove declaration.
3520 * terminal.h (gdb_save_tty_state): New declaration.
3521 * inflow.c (child_terminal_save_ours): Rename to ...
3522 (gdb_save_tty_state): ... this.
3523 * tui/tui.c: Include terminal.h.
3524 (tui_enable): Use gdb_save_tty_state instead of
3525 target_terminal_save_ours.
3526 (tui_disable): Likewise.
3528 2014-08-25 Doug Evans <dje@google.com>
3530 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3531 Pass NULL instead of 0 for context pointer.
3533 2014-08-25 Yao Qi <yao@codesourcery.com>
3535 * dwarf2read.c: Fix grammatical error.
3537 2014-08-24 Yao Qi <yao@codesourcery.com>
3539 * dwarf2read.c (scan_partial_symbols): Update comments.
3540 Rename argument 'need_pc' with 'set_addrmap'.
3541 (add_partial_namespace): Rename argument 'need_pc' with
3543 (add_partial_module): Likewise.
3544 (add_partial_subprogram): Likewise. Update comments.
3545 (dwarf2_name): Fix typo.
3547 2014-08-22 Doug Evans <dje@google.com>
3550 * dwarf2read.c (dwarf_record_line_p): New function.
3551 (dwarf_decode_lines_1): Ignore subsequent line number entries
3552 for the same line if any entry had a non-zero discriminator.
3554 2014-08-22 Doug Evans <dje@google.com>
3556 * buildsym.h (record_line_ftype): New typedef.
3557 (record_line): Use it.
3558 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3559 (dwarf_decode_lines_1): Call them.
3561 2014-08-22 Yao Qi <yao@codesourcery.com>
3563 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3564 (ctf_end): Remove code.
3566 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3569 (linux_make_corefile_notes): call update_thread_list, protected against
3572 2014-08-21 Pedro Alves <palves@redhat.com>
3574 * infcmd.c (attach_command): Remove comment.
3576 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3578 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3579 unsigned LONGEST to ULONGEST.
3581 2014-08-20 Pedro Alves <palves@redhat.com>
3583 * Makefile.in (check-read1): New rule.
3585 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3587 * value.c (value_from_contents_and_address): Strip resolved_type's
3588 typedef layers before checking its TYPE_DATA_LOCATION.
3590 2014-08-20 Pedro Alves <palves@redhat.com>
3592 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3594 2014-08-20 Yao Qi <yao@codesourcery.com>
3596 * amd64-tdep.c (amd64_classify): Add a blank line after the
3597 example. Move "*/" to a new line.
3598 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3599 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3600 * dwarf2read.c (psymtab_include_file_name): Likewise.
3602 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3603 Pedro Alves <palves@redhat.com>
3607 * ada-lang.c (coerce_unspec_val_to_type): Use
3608 value_contents_copy_raw.
3609 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3610 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3611 * cp-valprint.c (cp_print_value_fields): Let the common printing
3612 code handle optimized out values.
3613 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3614 * d-valprint.c (dynamic_array_type): Use
3615 value_bits_any_optimized_out.
3616 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3617 check_any_valid fields.
3618 (check_pieced_value_bits): Delete and inline ...
3619 (check_pieced_synthetic_pointer): ... here.
3620 (check_pieced_value_validity): Delete.
3621 (check_pieced_value_invalid): Delete.
3622 (pieced_value_funcs): Remove check_validity and check_any_valid
3624 (read_pieced_value): Use mark_value_bits_optimized_out.
3625 (write_pieced_value): Switch to use
3626 mark_value_bytes_optimized_out.
3627 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3628 of assuming the whole value is optimized out.
3629 * findvar.c (read_frame_register_value): Remove special handling
3630 of optimized out registers.
3631 (value_from_register): Use mark_value_bytes_optimized_out.
3632 * frame-unwind.c (frame_unwind_got_optimized): Use
3633 mark_value_bytes_optimized_out.
3634 * jv-valprint.c (java_value_print): Adjust.
3635 (java_print_value_fields): Let the common printing code handle
3636 optimized out values.
3637 * mips-tdep.c (mips_print_register): Remove special handling of
3638 optimized out registers.
3639 * opencl-lang.c (lval_func_check_validity): Delete.
3640 (lval_func_check_any_valid): Delete.
3641 (opencl_value_funcs): Remove check_validity and check_any_valid
3643 * p-valprint.c (pascal_object_print_value_fields): Let the common
3644 printing code handle optimized out values.
3645 * stack.c (read_frame_arg): Remove special handling of optimized
3646 out values. Fetch both VAL and ENTRYVAL before comparing
3647 contents. Adjust to value_available_contents_eq rename.
3648 * valprint.c (valprint_check_validity)
3649 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3650 (val_print_array_elements): Adjust.
3651 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3652 (value_bits_any_optimized_out): New function.
3653 (value_entirely_covered_by_range_vector): New function, factored
3654 out from value_entirely_unavailable.
3655 (value_entirely_unavailable): Reimplement.
3656 (value_entirely_optimized_out): New function.
3657 (insert_into_bit_range_vector): New function, factored out from
3658 mark_value_bits_unavailable.
3659 (mark_value_bits_unavailable): Reimplement.
3660 (struct ranges_and_idx): New struct.
3661 (find_first_range_overlap_and_match): New function, factored out
3662 from value_available_contents_bits_eq.
3663 (value_available_contents_bits_eq): Rename to ...
3664 (value_contents_bits_eq): ... this. Check both unavailable
3665 contents and optimized out contents.
3666 (value_available_contents_eq): Rename to ...
3667 (value_contents_eq): ... this.
3668 (allocate_value_lazy): Remove reference to the old optimized_out
3670 (allocate_optimized_out_value): Use
3671 mark_value_bytes_optimized_out.
3672 (require_not_optimized_out): Adjust to check whether the
3673 optimized_out vec is empty.
3674 (ranges_copy_adjusted): New function, factored out from
3675 value_contents_copy_raw.
3676 (value_contents_copy_raw): Also copy the optimized out ranges.
3677 Assert the destination ranges aren't optimized out.
3678 (value_contents_copy): Update comment, remove call to
3679 require_not_optimized_out.
3680 (value_contents_equal): Adjust to check whether the optimized_out
3682 (set_value_optimized_out, value_optimized_out_const): Delete.
3683 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3685 (value_entirely_optimized_out, value_bits_valid): Delete.
3686 (value_copy): Take a VEC copy of the 'optimized_out' field.
3687 (value_primitive_field): Remove special handling of optimized out.
3688 (value_fetch_lazy): Assert that lazy values have no unavailable
3689 regions. Use value_bits_any_optimized_out. Remove some special
3690 handling for optimized out values.
3691 * value.h: Add intro comment about <optimized out> and
3693 (struct lval_funcs): Remove check_validity and check_any_valid
3695 (set_value_optimized_out, value_optimized_out_const): Remove.
3696 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3698 (value_bits_any_optimized_out): New declaration.
3699 (value_bits_valid): Delete declaration.
3700 (value_available_contents_eq): Rename to ...
3701 (value_contents_eq): ... this, and extend comments.
3703 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3705 Fix -fsanitize=address on unreadable inferior strings.
3706 * valprint.c (val_print_string): Fix access before BUFFER.
3708 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3710 * target.c (target_struct_size): Remove.
3711 (target_struct_allocsize): Remove.
3712 (DEFAULT_ALLOCSIZE): Remove.
3713 (target_ops_p): New typedef.
3714 (DEF_VEC_P (target_ops_p)): New vector type.
3715 (target_structs): Change type to VEC (target_ops_p).
3716 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3717 (find_default_run_target): Rewrite for loop following changes to
3720 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3722 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3723 Adjust code accordingly. Adjust function description comment.
3725 2014-08-19 Yao Qi <yao@codesourcery.com>
3727 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3730 2014-08-19 Alan Modra <amodra@gmail.com>
3732 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3733 * config.in: Regenerate.
3734 * configure: Regenerate.
3736 2014-08-19 Tom Tromey <tromey@redhat.com>
3737 Gary Benson <gbenson@redhat.com>
3739 * common/common-debug.h: New file.
3740 * common/common-debug.c: Likewise.
3741 * debug.c: Likewise.
3742 * Makefile.in (SFILES): Add common/common-debug.c.
3743 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3744 (COMMON_OBS): Add common-debug.o and debug.o.
3745 (common-debug.o): New rule.
3746 * common/common-defs.h: Include common-debug.h.
3747 * common/agent.c (debug_agent_printf): New function.
3748 (DEBUG_AGENT): Redefine.
3749 * nat/i386-dregs.c (debug_printf): Undefine.
3751 2014-08-19 Gary Benson <gbenson@redhat.com>
3753 * common/common-defs.h: Include print-utils.h.
3754 * utils.h: Do not include print-utils.h.
3756 2014-08-19 Tom Tromey <tromey@redhat.com>
3757 Gary Benson <gbenson@redhat.com>
3759 * common/common-types.h: New file.
3760 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3761 * common/common-defs.h: Include common-types.h.
3762 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3765 2014-08-19 Tom Tromey <tromey@redhat.com>
3766 Gary Benson <gbenson@redhat.com>
3768 * common/errors.h: New file.
3769 * common/errors.c: Likewise.
3770 * Makefile.in (SFILES): Add common/errors.c.
3771 (HFILES_NO_SRCDIR): Add common/errors.h.
3772 (COMMON_OBS): Add errors.o.
3773 (errors.o): New rule.
3774 * common/common-defs.h: Include errors.h.
3775 * utils.h (perror_with_name, error, verror, warning, vwarning):
3777 * common/common-utils.h: (malloc_failure, internal_error):
3780 2014-08-19 Gary Benson <gbenson@redhat.com>
3782 * utils.c (internal_vproblem): Always print the message.
3784 2014-08-18 Doug Evans <dje@google.com>
3786 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3788 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3790 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3791 Return 0 if TYPE is dynamic.
3792 (print_range): Add handling of dynamic ranges.
3794 2014-08-18 Keven Boell <keven.boell@intel.com>
3795 Joel Brobecker <brobecker@adacore.com>
3797 * gdbtypes.h (struct main_type): Add field "data_location".
3798 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3799 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3800 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3801 a dynamic data location.
3802 (resolve_dynamic_type): Add DW_AT_data_location handling.
3803 (copy_recursive, copy_type): Copy the data_location information
3805 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3806 * value.c (value_from_contents_and_address): Add
3807 DW_AT_data_location handling.
3809 2014-08-18 Keven Boell <keven.boell@intel.com>
3810 Joel Brobecker <brobecker@adacore.com>
3812 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3813 field "get_object_address".
3814 * dwarf2expr.c (execute_stack_op): Add handling for
3815 DW_OP_push_object_address.
3816 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3817 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3818 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3819 (dwarf_expr_get_obj_addr): New function.
3820 (dwarf_expr_ctx_funcs): Add get_object_address field.
3821 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3822 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3823 (dwarf2_evaluate_property): Add parameter "address". Use it.
3824 (needs_get_obj_addr): New function.
3825 (needs_frame_ctx_funcs): Add get_object_address field.
3826 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3827 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3828 (resolve_dynamic_array): Likewise.
3830 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3832 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3833 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3834 fixed value for records and unions for which some GNAT encodings
3837 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3839 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3840 rewrite to avoid "else if" and "else" constructs. Should be
3841 a no-op in practice.
3843 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3845 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3848 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3851 * eval.c: Update all calls to find_overload_match.
3852 * valarith.c: Likewise.
3853 (value_user_defined_cpp_op, value_user_defined_op): New
3854 argument NOSIDE. Update all callers.
3855 * valops.c (find_overload_match): New argument NOSIDE.
3856 * value.h (find_overload_match): Update signature.
3858 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3860 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3861 'items' methods instead of 'iteritems' method on dictionaries.
3863 2014-08-15 Doug Evans <dje@google.com>
3865 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3868 2014-08-15 Doug Evans <dje@google.com>
3870 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3872 2014-08-15 Doug Evans <dje@google.com>
3874 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3876 2014-08-15 Doug Evans <dje@google.com>
3878 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3881 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3883 * dcache.h: Include target.h, to avoid compile time warnings.
3885 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3887 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3888 frame_info" partial declaration.
3889 * gdbarch.h: Regenerate.
3891 2014-08-15 Yao Qi <yao@codesourcery.com>
3893 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3894 Add parameter 'decode_for_pst_p'. Callers update.
3896 2014-08-13 Yao Qi <yao@codesourcery.com>
3899 * configure.ac: Use local variable 'pos'.
3900 * configure: Regenerated.
3902 2014-08-11 Doug Evans <dje@google.com>
3904 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3905 message, it is redundant with "Reading symbols from ..." message.
3907 2014-08-10 Doug Evans <xdje42@gmail.com>
3909 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3911 2014-08-09 Yao Qi <yao@codesourcery.com>
3914 * remote.c (remote_xfer_partial): Remove dead code.
3916 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3918 * ia64-linux-tdep.c: Include "regset.h".
3919 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3920 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3921 (ia64_linux_supply_fpregset): New function.
3922 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3923 (ia64_linux_regset_from_core_section): New function.
3924 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3927 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3929 * m68klinux-tdep.c: Include "regset.h".
3930 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3931 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3932 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3933 (m68k_linux_regset_from_core_section): New function.
3934 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3937 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3939 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3940 function. Move logic to...
3941 (tilegx_linux_regmap): ... this new register map.
3942 (tilegx_linux_regset): Refer to register map, replace supply
3943 method by regcache_supply_regset, and add collect method.
3944 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3945 TILEGX_FIRST_EASY_REGNUM.
3947 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3949 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3950 that calls regcache_supply_regset and handles the EPC register
3951 separately. Move main logic to...
3952 (score7_linux_gregmap): ... this new register map.
3953 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3954 (score7_linux_gregset): Refer to register map. Add collect method.
3955 (score7_linux_regset_from_core_section): Replace
3956 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3957 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3958 (struct regset): Delete unused forward declaraction.
3959 (struct pt_regs): Delete structure definition.
3960 (elf_gregset_t): Delete typedef.
3962 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3964 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3965 (nios2_core_regset): Add collect method.
3967 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3969 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3970 platform-independent and don't write to read-only input buffer.
3971 (m32r_linux_collect_gregset): New function.
3972 (m32r_linux_gregset): Add collect method.
3974 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3976 * hppa-linux-tdep.c (greg_map): Rename to...
3977 (hppa_linux_gregmap): ... this. Also convert to
3978 regcache_map_entry format.
3979 (hppa_linux_supply_regset): Delete function.
3980 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3981 (hppa_linux_fpregmap): ... this new register map.
3982 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3983 register map, replace supply method by regcache_supply_regset, and
3984 add collect method regcache_collect_regset.
3986 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3988 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3989 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3990 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3991 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3992 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3993 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3994 (frv_linux_supply_gregset): Replace main logic by call to
3995 regcache_supply_regset, but keep clearing gr32-gr63.
3996 (frv_linux_supply_fpregset): Delete function.
3997 (frv_linux_gregset): Refer to appropriate register map and add
3998 regcache_collect_regset as the collect method.
3999 (frv_linux_fpregset): Likewise. Also exchange the supply method
4000 by regcache_supply_regset.
4002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4004 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4005 by call to alpha_supply_int_regs.
4006 (alpha_linux_collect_gregset): New function.
4007 (alpha_linux_supply_fpregset): Replace logic by call to
4008 alpha_supply_fp_regs.
4009 (alpha_linux_collect_fpregset): New function.
4010 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4012 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4014 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4015 by call to regcache_collect_regset.
4016 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4017 instead of aarch64_linux_supply_gregset/_fpregset.
4018 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4019 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4020 header file instead.
4021 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4022 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4023 functions. Move logic to ...
4024 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4026 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4027 refer to new register maps, replace *_regset_from_core by
4028 regcache_supply_regset, and also use regcache_collect_regset.
4029 * aarch64-linux-tdep.h: Include "regset.h".
4030 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4032 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4033 macros, moved from C source file.
4034 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4035 variable declarations.
4037 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4039 * s390-linux-nat.c: Include "regset.h".
4040 (regmap_gregset): Delete macro.
4041 (s390_64_regmap_gregset): New register map for
4042 regcache_supply/_collect_regset.
4043 (s390_64_gregset): New regset.
4044 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4045 (regmap_fpregset): Delete macro.
4046 (s390_native_supply, s390_native_collect): Delete functions.
4047 (supply_gregset, fill_gregset): Replace s390-specific regmap
4048 handling by a call to regcache_supply/_collect_regset.
4049 (supply_fpregset, fill_fpregset): Call regcache_supply/
4050 _collect_regset instead of s390_native_supply/_collect.
4051 (fetch_regset, store_regset): Likewise. Also change the last
4052 parameter to a regset instead of a regmap.
4053 (s390_linux_fetch_inferior_registers)
4054 (390_linux_store_inferior_registers): Adjust last parameter in
4055 calls to fetch_regset and store_regset.
4056 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4057 (s390_gregmap): ... this. Also make static const and convert to
4058 regcache_map_entry format.
4059 (s390x_regmap_gregset): Delete.
4060 (s390_regmap_fpregset): Rename to...
4061 (s390_fpregmap): ... this. Make static const and convert to
4062 regcache_map_entry format.
4063 (s390_regmap_upper, s390_regmap_last_break)
4064 (s390x_regmap_last_break, s390_regmap_system_call)
4065 (s390_regmap_tdb): Likewise.
4066 (s390_supply_regset, s390_collect_regset): Remove functions.
4067 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4069 (s390_gregset, s390_fpregset, s390_upper_regset)
4070 (s390_last_break_regset, s390x_last_break_regset)
4071 (s390_system_call_regset, s390_tdb_regset): Make global and
4072 replace s390_supply/_collect_regset by regcache_supply/
4074 (s390x_gregset): Delete.
4075 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4076 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4077 (s390_regmap_fpregset, s390_regmap_last_break)
4078 (s390x_regmap_last_break, s390_regmap_system_call)
4079 (s390_regmap_tdb): Delete global variable declarations.
4080 (s390_gregset, s390_fpregset, s390_last_break_regset)
4081 (s390x_last_break_regset, s390_system_call_regset)
4082 (s390_tdb_regset): New global variable declarations.
4084 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4086 * regcache.c: Include "regset.h".
4087 (regcache_transfer_regset): New local function.
4088 (regcache_supply_regset, regcache_collect_regset): New functions.
4089 * regcache.h (struct regcache_map_entry): New structure.
4090 (REGCACHE_MAP_SKIP): New enum value.
4091 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4095 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4096 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4097 (ppc_linux_collect_gregset ): Likewise.
4098 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4099 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4100 (ppc_collect_vrregset): Likewise.
4101 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4104 2014-08-07 Yao Qi <yao@codesourcery.com>
4106 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4107 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4108 * remote.c (remote_read_bytes): Likewise.
4110 2014-08-07 Yao Qi <yao@codesourcery.com>
4112 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4114 2014-08-07 Yao Qi <yao@codesourcery.com>
4117 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4118 TARGET_XFER_OK instead of 0.
4120 2014-08-07 Gary Benson <gbenson@redhat.com>
4122 * common/common-defs.h: Include errno.h.
4123 * defs.h: Do not include errno.h.
4124 * ada-typeprint.c: Likewise.
4125 * c-typeprint.c: Likewise.
4126 * core-regset.c: Likewise.
4127 * corefile.c: Likewise.
4128 * corelow.c: Likewise.
4129 * event-loop.c: Likewise.
4130 * f-typeprint.c: Likewise.
4131 * gnu-nat.c: Likewise.
4132 * go32-nat.c: Likewise.
4133 * i386gnu-nat.c: Likewise.
4134 * m2-typeprint.c: Likewise.
4135 * nat/linux-btrace.c: Likewise.
4136 * p-typeprint.c: Likewise.
4137 * procfs.c: Likewise.
4138 * remote-sim.c: Likewise.
4139 * rs6000-nat.c: Likewise.
4140 * target.c: Likewise.
4141 * typeprint.c: Likewise.
4142 * ui-file.c: Likewise.
4143 * valops.c: Likewise.
4144 * valprint.c: Likewise.
4146 2014-08-07 Gary Benson <gbenson@redhat.com>
4148 * common/common-defs.h: Include string.h.
4149 * aarch64-tdep.c: Do not include string.h.
4150 * ada-exp.y: Likewise.
4151 * ada-lang.c: Likewise.
4152 * ada-lex.l: Likewise.
4153 * ada-typeprint.c: Likewise.
4154 * ada-valprint.c: Likewise.
4155 * aix-thread.c: Likewise.
4156 * alpha-linux-tdep.c: Likewise.
4157 * alpha-mdebug-tdep.c: Likewise.
4158 * alpha-nat.c: Likewise.
4159 * alpha-osf1-tdep.c: Likewise.
4160 * alpha-tdep.c: Likewise.
4161 * alphanbsd-tdep.c: Likewise.
4162 * amd64-dicos-tdep.c: Likewise.
4163 * amd64-linux-tdep.c: Likewise.
4164 * amd64-nat.c: Likewise.
4165 * amd64-sol2-tdep.c: Likewise.
4166 * amd64fbsd-tdep.c: Likewise.
4167 * amd64obsd-tdep.c: Likewise.
4168 * arch-utils.c: Likewise.
4169 * arm-linux-nat.c: Likewise.
4170 * arm-linux-tdep.c: Likewise.
4171 * arm-tdep.c: Likewise.
4172 * arm-wince-tdep.c: Likewise.
4173 * armbsd-tdep.c: Likewise.
4174 * armnbsd-nat.c: Likewise.
4175 * armnbsd-tdep.c: Likewise.
4176 * armobsd-tdep.c: Likewise.
4177 * avr-tdep.c: Likewise.
4178 * ax-gdb.c: Likewise.
4179 * ax-general.c: Likewise.
4180 * bcache.c: Likewise.
4181 * bfin-tdep.c: Likewise.
4182 * breakpoint.c: Likewise.
4183 * build-id.c: Likewise.
4184 * buildsym.c: Likewise.
4185 * c-exp.y: Likewise.
4186 * c-lang.c: Likewise.
4187 * c-typeprint.c: Likewise.
4188 * c-valprint.c: Likewise.
4189 * charset.c: Likewise.
4190 * cli-out.c: Likewise.
4191 * cli/cli-cmds.c: Likewise.
4192 * cli/cli-decode.c: Likewise.
4193 * cli/cli-dump.c: Likewise.
4194 * cli/cli-interp.c: Likewise.
4195 * cli/cli-logging.c: Likewise.
4196 * cli/cli-script.c: Likewise.
4197 * cli/cli-setshow.c: Likewise.
4198 * cli/cli-utils.c: Likewise.
4199 * coffread.c: Likewise.
4200 * common/agent.c: Likewise.
4201 * common/buffer.c: Likewise.
4202 * common/buffer.h: Likewise.
4203 * common/common-utils.c: Likewise.
4204 * common/filestuff.c: Likewise.
4205 * common/filestuff.c: Likewise.
4206 * common/format.c: Likewise.
4207 * common/print-utils.c: Likewise.
4208 * common/rsp-low.c: Likewise.
4209 * common/signals.c: Likewise.
4210 * common/vec.h: Likewise.
4211 * common/xml-utils.c: Likewise.
4212 * core-regset.c: Likewise.
4213 * corefile.c: Likewise.
4214 * corelow.c: Likewise.
4215 * cp-abi.c: Likewise.
4216 * cp-name-parser.y: Likewise.
4217 * cp-support.c: Likewise.
4218 * cp-valprint.c: Likewise.
4219 * cris-tdep.c: Likewise.
4220 * d-exp.y: Likewise.
4221 * darwin-nat.c: Likewise.
4222 * dbxread.c: Likewise.
4223 * dcache.c: Likewise.
4224 * demangle.c: Likewise.
4225 * dicos-tdep.c: Likewise.
4226 * disasm.c: Likewise.
4227 * doublest.c: Likewise.
4228 * dsrec.c: Likewise.
4229 * dummy-frame.c: Likewise.
4230 * dwarf2-frame.c: Likewise.
4231 * dwarf2loc.c: Likewise.
4232 * dwarf2read.c: Likewise.
4233 * elfread.c: Likewise.
4234 * environ.c: Likewise.
4236 * event-loop.c: Likewise.
4237 * exceptions.c: Likewise.
4239 * expprint.c: Likewise.
4240 * f-exp.y: Likewise.
4241 * f-lang.c: Likewise.
4242 * f-typeprint.c: Likewise.
4243 * f-valprint.c: Likewise.
4244 * fbsd-nat.c: Likewise.
4245 * findcmd.c: Likewise.
4246 * findvar.c: Likewise.
4247 * fork-child.c: Likewise.
4248 * frame.c: Likewise.
4249 * frv-linux-tdep.c: Likewise.
4250 * frv-tdep.c: Likewise.
4252 * gdb_bfd.c: Likewise.
4253 * gdbarch.c: Likewise.
4254 * gdbarch.sh: Likewise.
4255 * gdbtypes.c: Likewise.
4256 * gnu-nat.c: Likewise.
4257 * gnu-v2-abi.c: Likewise.
4258 * gnu-v3-abi.c: Likewise.
4259 * go-exp.y: Likewise.
4260 * go-lang.c: Likewise.
4261 * go32-nat.c: Likewise.
4262 * guile/guile.c: Likewise.
4263 * guile/scm-auto-load.c: Likewise.
4264 * hppa-hpux-tdep.c: Likewise.
4265 * hppa-linux-nat.c: Likewise.
4266 * hppanbsd-tdep.c: Likewise.
4267 * hppaobsd-tdep.c: Likewise.
4268 * i386-cygwin-tdep.c: Likewise.
4269 * i386-dicos-tdep.c: Likewise.
4270 * i386-linux-tdep.c: Likewise.
4271 * i386-nto-tdep.c: Likewise.
4272 * i386-sol2-tdep.c: Likewise.
4273 * i386-tdep.c: Likewise.
4274 * i386bsd-tdep.c: Likewise.
4275 * i386gnu-nat.c: Likewise.
4276 * i386nbsd-tdep.c: Likewise.
4277 * i386obsd-tdep.c: Likewise.
4278 * i387-tdep.c: Likewise.
4279 * ia64-libunwind-tdep.c: Likewise.
4280 * ia64-linux-nat.c: Likewise.
4281 * inf-child.c: Likewise.
4282 * inf-ptrace.c: Likewise.
4283 * inf-ttrace.c: Likewise.
4284 * infcall.c: Likewise.
4285 * infcmd.c: Likewise.
4286 * inflow.c: Likewise.
4287 * infrun.c: Likewise.
4288 * interps.c: Likewise.
4289 * iq2000-tdep.c: Likewise.
4290 * irix5-nat.c: Likewise.
4291 * jv-exp.y: Likewise.
4292 * jv-lang.c: Likewise.
4293 * jv-typeprint.c: Likewise.
4294 * jv-valprint.c: Likewise.
4295 * language.c: Likewise.
4296 * linux-fork.c: Likewise.
4297 * linux-nat.c: Likewise.
4298 * lm32-tdep.c: Likewise.
4299 * m2-exp.y: Likewise.
4300 * m2-typeprint.c: Likewise.
4301 * m32c-tdep.c: Likewise.
4302 * m32r-linux-nat.c: Likewise.
4303 * m32r-linux-tdep.c: Likewise.
4304 * m32r-rom.c: Likewise.
4305 * m32r-tdep.c: Likewise.
4306 * m68hc11-tdep.c: Likewise.
4307 * m68k-tdep.c: Likewise.
4308 * m68kbsd-tdep.c: Likewise.
4309 * m68klinux-nat.c: Likewise.
4310 * m68klinux-tdep.c: Likewise.
4311 * m88k-tdep.c: Likewise.
4312 * machoread.c: Likewise.
4313 * macrocmd.c: Likewise.
4315 * mdebugread.c: Likewise.
4316 * mem-break.c: Likewise.
4317 * memattr.c: Likewise.
4318 * memory-map.c: Likewise.
4319 * mep-tdep.c: Likewise.
4320 * mi/mi-cmd-break.c: Likewise.
4321 * mi/mi-cmd-disas.c: Likewise.
4322 * mi/mi-cmd-env.c: Likewise.
4323 * mi/mi-cmd-stack.c: Likewise.
4324 * mi/mi-cmd-var.c: Likewise.
4325 * mi/mi-cmds.c: Likewise.
4326 * mi/mi-console.c: Likewise.
4327 * mi/mi-getopt.c: Likewise.
4328 * mi/mi-interp.c: Likewise.
4329 * mi/mi-main.c: Likewise.
4330 * mi/mi-parse.c: Likewise.
4331 * microblaze-rom.c: Likewise.
4332 * microblaze-tdep.c: Likewise.
4333 * mingw-hdep.c: Likewise.
4334 * minidebug.c: Likewise.
4335 * minsyms.c: Likewise.
4336 * mips-irix-tdep.c: Likewise.
4337 * mips-linux-tdep.c: Likewise.
4338 * mips-tdep.c: Likewise.
4339 * mips64obsd-tdep.c: Likewise.
4340 * mipsnbsd-tdep.c: Likewise.
4341 * mipsread.c: Likewise.
4342 * mn10300-linux-tdep.c: Likewise.
4343 * mn10300-tdep.c: Likewise.
4344 * monitor.c: Likewise.
4345 * moxie-tdep.c: Likewise.
4346 * mt-tdep.c: Likewise.
4347 * nat/linux-btrace.c: Likewise.
4348 * nat/linux-osdata.c: Likewise.
4349 * nat/linux-procfs.c: Likewise.
4350 * nat/linux-ptrace.c: Likewise.
4351 * nat/linux-waitpid.c: Likewise.
4352 * nbsd-tdep.c: Likewise.
4353 * nios2-linux-tdep.c: Likewise.
4354 * nto-procfs.c: Likewise.
4355 * nto-tdep.c: Likewise.
4356 * objc-lang.c: Likewise.
4357 * objfiles.c: Likewise.
4358 * opencl-lang.c: Likewise.
4359 * osabi.c: Likewise.
4360 * osdata.c: Likewise.
4361 * p-exp.y: Likewise.
4362 * p-lang.c: Likewise.
4363 * p-typeprint.c: Likewise.
4364 * parse.c: Likewise.
4365 * posix-hdep.c: Likewise.
4366 * ppc-linux-nat.c: Likewise.
4367 * ppc-sysv-tdep.c: Likewise.
4368 * ppcfbsd-tdep.c: Likewise.
4369 * ppcnbsd-tdep.c: Likewise.
4370 * ppcobsd-tdep.c: Likewise.
4371 * printcmd.c: Likewise.
4372 * procfs.c: Likewise.
4373 * prologue-value.c: Likewise.
4374 * python/py-auto-load.c: Likewise.
4375 * python/py-gdb-readline.c: Likewise.
4376 * ravenscar-thread.c: Likewise.
4377 * regcache.c: Likewise.
4378 * registry.c: Likewise.
4379 * remote-fileio.c: Likewise.
4380 * remote-m32r-sdi.c: Likewise.
4381 * remote-mips.c: Likewise.
4382 * remote-notif.c: Likewise.
4383 * remote-sim.c: Likewise.
4384 * remote.c: Likewise.
4385 * reverse.c: Likewise.
4386 * rs6000-aix-tdep.c: Likewise.
4387 * ser-base.c: Likewise.
4388 * ser-go32.c: Likewise.
4389 * ser-mingw.c: Likewise.
4390 * ser-pipe.c: Likewise.
4391 * ser-tcp.c: Likewise.
4392 * ser-unix.c: Likewise.
4393 * serial.c: Likewise.
4394 * sh-tdep.c: Likewise.
4395 * sh64-tdep.c: Likewise.
4396 * shnbsd-tdep.c: Likewise.
4398 * sol-thread.c: Likewise.
4399 * solib-dsbt.c: Likewise.
4400 * solib-frv.c: Likewise.
4401 * solib-osf.c: Likewise.
4402 * solib-som.c: Likewise.
4403 * solib-spu.c: Likewise.
4404 * solib-target.c: Likewise.
4405 * solib.c: Likewise.
4406 * somread.c: Likewise.
4407 * source.c: Likewise.
4408 * sparc-nat.c: Likewise.
4409 * sparc-sol2-tdep.c: Likewise.
4410 * sparc-tdep.c: Likewise.
4411 * sparc64-tdep.c: Likewise.
4412 * sparc64fbsd-tdep.c: Likewise.
4413 * sparc64nbsd-tdep.c: Likewise.
4414 * sparcnbsd-tdep.c: Likewise.
4415 * spu-linux-nat.c: Likewise.
4416 * spu-multiarch.c: Likewise.
4417 * spu-tdep.c: Likewise.
4418 * stabsread.c: Likewise.
4419 * stack.c: Likewise.
4420 * std-regs.c: Likewise.
4421 * symfile.c: Likewise.
4422 * symmisc.c: Likewise.
4423 * symtab.c: Likewise.
4424 * target.c: Likewise.
4425 * thread.c: Likewise.
4426 * tilegx-linux-nat.c: Likewise.
4427 * tilegx-tdep.c: Likewise.
4429 * tracepoint.c: Likewise.
4430 * tui/tui-command.c: Likewise.
4431 * tui/tui-data.c: Likewise.
4432 * tui/tui-disasm.c: Likewise.
4433 * tui/tui-file.c: Likewise.
4434 * tui/tui-layout.c: Likewise.
4435 * tui/tui-out.c: Likewise.
4436 * tui/tui-regs.c: Likewise.
4437 * tui/tui-source.c: Likewise.
4438 * tui/tui-stack.c: Likewise.
4439 * tui/tui-win.c: Likewise.
4440 * tui/tui-windata.c: Likewise.
4441 * tui/tui-winsource.c: Likewise.
4442 * typeprint.c: Likewise.
4443 * ui-file.c: Likewise.
4444 * ui-out.c: Likewise.
4445 * user-regs.c: Likewise.
4446 * utils.c: Likewise.
4447 * v850-tdep.c: Likewise.
4448 * valarith.c: Likewise.
4449 * valops.c: Likewise.
4450 * valprint.c: Likewise.
4451 * value.c: Likewise.
4452 * varobj.c: Likewise.
4453 * vax-tdep.c: Likewise.
4454 * vaxnbsd-tdep.c: Likewise.
4455 * vaxobsd-tdep.c: Likewise.
4456 * windows-nat.c: Likewise.
4457 * xcoffread.c: Likewise.
4458 * xml-support.c: Likewise.
4459 * xstormy16-tdep.c: Likewise.
4460 * xtensa-linux-nat.c: Likewise.
4462 2014-08-07 Gary Benson <gbenson@redhat.com>
4464 * common/common-defs.h: Include gdb_assert.h.
4465 * aarch64-tdep.c: Do not include gdb_assert.h.
4466 * addrmap.c: Likewise.
4467 * aix-thread.c: Likewise.
4468 * alpha-linux-tdep.c: Likewise.
4469 * alpha-mdebug-tdep.c: Likewise.
4470 * alphanbsd-tdep.c: Likewise.
4471 * amd64-nat.c: Likewise.
4472 * amd64-tdep.c: Likewise.
4473 * amd64bsd-nat.c: Likewise.
4474 * amd64fbsd-nat.c: Likewise.
4475 * amd64fbsd-tdep.c: Likewise.
4476 * amd64nbsd-nat.c: Likewise.
4477 * amd64nbsd-tdep.c: Likewise.
4478 * amd64obsd-nat.c: Likewise.
4479 * amd64obsd-tdep.c: Likewise.
4480 * arch-utils.c: Likewise.
4481 * arm-tdep.c: Likewise.
4482 * armbsd-tdep.c: Likewise.
4484 * bcache.c: Likewise.
4485 * bfin-tdep.c: Likewise.
4486 * blockframe.c: Likewise.
4487 * breakpoint.c: Likewise.
4488 * bsd-kvm.c: Likewise.
4489 * bsd-uthread.c: Likewise.
4490 * buildsym.c: Likewise.
4491 * c-exp.y: Likewise.
4492 * c-lang.c: Likewise.
4493 * charset.c: Likewise.
4494 * cleanups.c: Likewise.
4495 * cli-out.c: Likewise.
4496 * cli/cli-decode.c: Likewise.
4497 * cli/cli-dump.c: Likewise.
4498 * cli/cli-logging.c: Likewise.
4499 * cli/cli-script.c: Likewise.
4500 * cli/cli-utils.c: Likewise.
4501 * coffread.c: Likewise.
4502 * common/common-utils.c: Likewise.
4503 * common/queue.h: Likewise.
4504 * common/signals.c: Likewise.
4505 * common/vec.h: Likewise.
4506 * complaints.c: Likewise.
4507 * completer.c: Likewise.
4508 * corelow.c: Likewise.
4509 * cp-abi.c: Likewise.
4510 * cp-name-parser.y: Likewise.
4511 * cp-namespace.c: Likewise.
4512 * cp-support.c: Likewise.
4513 * cris-tdep.c: Likewise.
4514 * dbxread.c: Likewise.
4515 * dictionary.c: Likewise.
4516 * doublest.c: Likewise.
4517 * dsrec.c: Likewise.
4518 * dummy-frame.c: Likewise.
4519 * dwarf2-frame-tailcall.c: Likewise.
4520 * dwarf2-frame.c: Likewise.
4521 * dwarf2expr.c: Likewise.
4522 * dwarf2loc.c: Likewise.
4523 * dwarf2read.c: Likewise.
4525 * event-loop.c: Likewise.
4526 * exceptions.c: Likewise.
4527 * expprint.c: Likewise.
4528 * f-valprint.c: Likewise.
4529 * fbsd-nat.c: Likewise.
4530 * findvar.c: Likewise.
4531 * frame-unwind.c: Likewise.
4532 * frame.c: Likewise.
4533 * frv-tdep.c: Likewise.
4534 * gcore.c: Likewise.
4535 * gdb-dlfcn.c: Likewise.
4536 * gdb_bfd.c: Likewise.
4537 * gdbarch.c: Likewise.
4538 * gdbarch.sh: Likewise.
4539 * gdbtypes.c: Likewise.
4540 * gnu-nat.c: Likewise.
4541 * gnu-v3-abi.c: Likewise.
4542 * go-lang.c: Likewise.
4543 * guile/scm-exception.c: Likewise.
4544 * guile/scm-gsmob.c: Likewise.
4545 * guile/scm-lazy-string.c: Likewise.
4546 * guile/scm-math.c: Likewise.
4547 * guile/scm-pretty-print.c: Likewise.
4548 * guile/scm-safe-call.c: Likewise.
4549 * guile/scm-utils.c: Likewise.
4550 * guile/scm-value.c: Likewise.
4551 * h8300-tdep.c: Likewise.
4552 * hppa-hpux-nat.c: Likewise.
4553 * hppa-tdep.c: Likewise.
4554 * hppanbsd-tdep.c: Likewise.
4555 * hppaobsd-tdep.c: Likewise.
4556 * i386-darwin-nat.c: Likewise.
4557 * i386-darwin-tdep.c: Likewise.
4558 * i386-nto-tdep.c: Likewise.
4559 * i386-tdep.c: Likewise.
4560 * i386bsd-nat.c: Likewise.
4561 * i386fbsd-tdep.c: Likewise.
4562 * i386gnu-nat.c: Likewise.
4563 * i386nbsd-tdep.c: Likewise.
4564 * i386obsd-tdep.c: Likewise.
4565 * i387-tdep.c: Likewise.
4566 * ia64-libunwind-tdep.c: Likewise.
4567 * ia64-tdep.c: Likewise.
4568 * inf-ptrace.c: Likewise.
4569 * inf-ttrace.c: Likewise.
4570 * infcall.c: Likewise.
4571 * infcmd.c: Likewise.
4572 * infrun.c: Likewise.
4573 * inline-frame.c: Likewise.
4574 * interps.c: Likewise.
4575 * jv-lang.c: Likewise.
4576 * jv-typeprint.c: Likewise.
4577 * linux-fork.c: Likewise.
4578 * linux-nat.c: Likewise.
4579 * linux-thread-db.c: Likewise.
4580 * m32c-tdep.c: Likewise.
4581 * m32r-linux-nat.c: Likewise.
4582 * m32r-tdep.c: Likewise.
4583 * m68k-tdep.c: Likewise.
4584 * m68kbsd-nat.c: Likewise.
4585 * m68kbsd-tdep.c: Likewise.
4586 * m88k-tdep.c: Likewise.
4587 * machoread.c: Likewise.
4588 * macroexp.c: Likewise.
4589 * macrotab.c: Likewise.
4590 * maint.c: Likewise.
4591 * mdebugread.c: Likewise.
4592 * memory-map.c: Likewise.
4593 * mep-tdep.c: Likewise.
4594 * mi/mi-common.c: Likewise.
4595 * microblaze-tdep.c: Likewise.
4596 * mingw-hdep.c: Likewise.
4597 * mips-linux-nat.c: Likewise.
4598 * mips-linux-tdep.c: Likewise.
4599 * mips-tdep.c: Likewise.
4600 * mips64obsd-tdep.c: Likewise.
4601 * mipsnbsd-tdep.c: Likewise.
4602 * mn10300-linux-tdep.c: Likewise.
4603 * mn10300-tdep.c: Likewise.
4604 * moxie-tdep.c: Likewise.
4605 * mt-tdep.c: Likewise.
4606 * nat/linux-btrace.c: Likewise.
4607 * nat/linux-osdata.c: Likewise.
4608 * nat/linux-ptrace.c: Likewise.
4609 * nat/mips-linux-watch.c: Likewise.
4610 * nios2-linux-tdep.c: Likewise.
4611 * nios2-tdep.c: Likewise.
4612 * objc-lang.c: Likewise.
4613 * objfiles.c: Likewise.
4614 * obsd-nat.c: Likewise.
4615 * opencl-lang.c: Likewise.
4616 * osabi.c: Likewise.
4617 * parse.c: Likewise.
4618 * ppc-linux-nat.c: Likewise.
4619 * ppc-sysv-tdep.c: Likewise.
4620 * ppcfbsd-nat.c: Likewise.
4621 * ppcfbsd-tdep.c: Likewise.
4622 * ppcnbsd-nat.c: Likewise.
4623 * ppcnbsd-tdep.c: Likewise.
4624 * ppcobsd-nat.c: Likewise.
4625 * ppcobsd-tdep.c: Likewise.
4626 * printcmd.c: Likewise.
4627 * procfs.c: Likewise.
4628 * prologue-value.c: Likewise.
4629 * psymtab.c: Likewise.
4630 * python/py-lazy-string.c: Likewise.
4631 * python/py-value.c: Likewise.
4632 * regcache.c: Likewise.
4633 * reggroups.c: Likewise.
4634 * registry.c: Likewise.
4635 * remote-sim.c: Likewise.
4636 * remote.c: Likewise.
4637 * rs6000-aix-tdep.c: Likewise.
4638 * rs6000-tdep.c: Likewise.
4639 * s390-linux-tdep.c: Likewise.
4640 * score-tdep.c: Likewise.
4641 * ser-base.c: Likewise.
4642 * ser-mingw.c: Likewise.
4643 * sh-tdep.c: Likewise.
4644 * sh64-tdep.c: Likewise.
4645 * solib-darwin.c: Likewise.
4646 * solib-spu.c: Likewise.
4647 * solib-svr4.c: Likewise.
4648 * source.c: Likewise.
4649 * sparc-nat.c: Likewise.
4650 * sparc-sol2-tdep.c: Likewise.
4651 * sparc-tdep.c: Likewise.
4652 * sparc64-sol2-tdep.c: Likewise.
4653 * sparc64-tdep.c: Likewise.
4654 * sparc64fbsd-tdep.c: Likewise.
4655 * sparc64nbsd-tdep.c: Likewise.
4656 * sparc64obsd-tdep.c: Likewise.
4657 * sparcnbsd-tdep.c: Likewise.
4658 * sparcobsd-tdep.c: Likewise.
4659 * spu-multiarch.c: Likewise.
4660 * spu-tdep.c: Likewise.
4661 * stabsread.c: Likewise.
4662 * stack.c: Likewise.
4663 * symfile.c: Likewise.
4664 * symtab.c: Likewise.
4665 * target-descriptions.c: Likewise.
4666 * target-memory.c: Likewise.
4667 * target.c: Likewise.
4668 * tic6x-linux-tdep.c: Likewise.
4669 * tic6x-tdep.c: Likewise.
4670 * tilegx-linux-nat.c: Likewise.
4671 * tilegx-tdep.c: Likewise.
4673 * tramp-frame.c: Likewise.
4674 * tui/tui-out.c: Likewise.
4675 * tui/tui-winsource.c: Likewise.
4676 * ui-out.c: Likewise.
4677 * user-regs.c: Likewise.
4678 * utils.c: Likewise.
4679 * v850-tdep.c: Likewise.
4680 * valops.c: Likewise.
4681 * value.c: Likewise.
4682 * varobj.c: Likewise.
4683 * vax-nat.c: Likewise.
4684 * xml-syscall.c: Likewise.
4685 * xml-tdesc.c: Likewise.
4686 * xstormy16-tdep.c: Likewise.
4687 * xtensa-linux-nat.c: Likewise.
4688 * xtensa-tdep.c: Likewise.
4690 2014-08-07 Gary Benson <gbenson@redhat.com>
4692 * common/common-defs.h: Include common-utils.h.
4693 * defs.h: Do not include common-utils.h.
4694 * common/gdb_assert.h: Likewise.
4695 * darwin-nat.h: Likewise.
4696 * nat/linux-btrace.c: Likewise.
4697 * target/waitstatus.h: Likewise.
4699 2014-08-07 Gary Benson <gbenson@redhat.com>
4701 * common/common-defs.h: Include ptid.h.
4702 * defs.h: Do not include ptid.h.
4703 * inferior.h: Likewise.
4704 * infrun.h: Likewise.
4705 * nat/linux-btrace.h: Likewise.
4706 * nat/linux-osdata.h: Likewise.
4707 * target/waitstatus.h: Likewise.
4709 2014-08-07 Gary Benson <gbenson@redhat.com>
4711 * common/common-defs.h: Include gdb_locale.h.
4712 * defs.h: Do not include gdb_locale.h.
4714 2014-08-07 Gary Benson <gbenson@redhat.com>
4716 * common/common-defs.h: Include gdb/signals.h.
4717 * defs.h: Do not include gdb/signals.h.
4719 2014-08-07 Gary Benson <gbenson@redhat.com>
4721 * common/common-defs.h: Include pathmax.h.
4722 * defs.h: Do not include pathmax.h.
4724 2014-08-07 Gary Benson <gbenson@redhat.com>
4726 * common/common-defs.h: Include libiberty.h.
4727 * defs.h: Do not include libiberty.h.
4728 * common/queue.h: Likewise.
4729 * cp-name-parser.y: Likewise.
4730 * mi/mi-cmd-catch.c: Likewise.
4731 * python/python.c: Likewise.
4733 2014-08-07 Gary Benson <gbenson@redhat.com>
4735 * common/common-defs.h: Include ansidecl.h.
4736 * defs.h: Do not include ansidecl.h.
4737 * common/buffer.h: Likewise.
4738 * common/common-utils.h: Likewise.
4740 2014-08-07 Gary Benson <gbenson@redhat.com>
4742 * common/common-defs.h: Include stddef.h.
4743 * defs.h: Do not include stddef.h.
4744 * common/common-utils.h: Likewise.
4745 * amd64fbsd-nat.c: Likewise.
4746 * bcache.c: Likewise.
4747 * charset.c: Likewise.
4748 * common/buffer.h: Likewise.
4749 * common/vec.h: Likewise.
4750 * i386bsd-nat.c: Likewise.
4751 * nat/linux-btrace.h: Likewise.
4752 * ppcfbsd-nat.c: Likewise.
4753 * ppcnbsd-tdep.h: Likewise.
4754 * ppcobsd-nat.c: Likewise.
4755 * ppcobsd-tdep.h: Likewise.
4756 * python/py-gdb-readline.c: Likewise.
4758 2014-08-07 Gary Benson <gbenson@redhat.com>
4760 * common/common-defs.h: Include stdarg.h.
4761 * defs.h: Do not include stdarg.h.
4762 * ada-lang.c: Likewise.
4763 * common/common-utils.h: Likewise.
4764 * guile/scm-string.c: Likewise.
4765 * guile/scm-utils.c: Likewise.
4766 * m32c-tdep.c: Likewise.
4768 2014-08-07 Gary Benson <gbenson@redhat.com>
4770 * common/common-defs.h: Include stdlib.h.
4771 * defs.h: Do not include stdlib.h.
4772 * addrmap.c: Likewise.
4773 * bcache.c: Likewise.
4774 * common/buffer.c: Likewise.
4775 * common/common-utils.c: Likewise.
4776 * cp-name-parser.y: Likewise.
4777 * go32-nat.c: Likewise.
4778 * mn10300-linux-tdep.c: Likewise.
4779 * nat/linux-osdata.c: Likewise.
4780 * tui/tui.c: Likewise.
4781 * windows-nat.c: Likewise.
4783 2014-08-07 Gary Benson <gbenson@redhat.com>
4785 * common/common-defs.h: Include stdio.h.
4786 * defs.h: Do not include stdio.h.
4787 * ada-lang.c: Likewise.
4788 * common/buffer.c: Likewise.
4789 * common/common-utils.c: Likewise.
4790 * cp-name-parser.y: Likewise.
4791 * gnu-nat.c: Likewise.
4792 * go32-nat.c: Likewise.
4793 * i386gnu-nat.c: Likewise.
4794 * proc-api.c: Likewise.
4795 * proc-events.c: Likewise.
4796 * proc-flags.c: Likewise.
4797 * proc-why.c: Likewise.
4798 * python/python-internal.h: Likewise.
4799 * target-memory.c: Likewise.
4800 * tui/tui-io.c: Likewise.
4801 * tui/tui.c: Likewise.
4803 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4805 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4806 (scan_dyntag_auxv): Same.
4808 2014-08-06 Yao Qi <yao@codesourcery.com>
4810 * amd64-linux-nat.c: Remove duplicated include
4812 * i386-linux-nat.c: Likewise.
4814 2014-08-06 Yao Qi <yao@codesourcery.com>
4816 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4817 operand" with "Special opcode" in comments.
4819 2014-08-05 Gary Benson <gbenson@redhat.com>
4821 * interps.c (initialize_interps): Remove prototype.
4822 (interpreter_initialized): Remove static global.
4823 (interp_add): Do not call initialize_interps.
4824 (initialize_interps): Remove function.
4826 2014-08-05 Gary Benson <gbenson@redhat.com>
4828 * utils.c (vwarning): Remove spurious va_end.
4830 2014-08-05 Alan Modra <amodra@gmail.com>
4832 * charset.c (convert_between_encodings): Cast result of obstack_base.
4833 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4834 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4835 (read_unwind_info): Use size_t for some locals.
4836 * jit.c (finalize_symtab): Likewise.
4837 * utils.c (hashtab_obstack_allocate): Likewise.
4838 * symmisc.c (print_objfile_statistics): Update format strings.
4840 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4843 (Changes in GDB 7.8): ... here.
4845 2014-08-04 Tom Tromey <tromey@redhat.com>
4847 * target.c (set_targetdebug): New function.
4848 (initialize_targets): Pass set_targetdebug when creating "set
4851 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4853 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4854 if detecting a variable-sized field that is not the last field.
4855 Fix struct type length computation.
4857 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4859 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4862 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4864 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4865 Remove "+ 8" offset in computation of CHAIN_VMA.
4867 2014-07-31 Doug Evans <dje@google.com>
4869 * inflow.c (child_terminal_inferior): Add comment.
4870 (child_terminal_ours_for_output): Add comment.
4871 (child_terminal_ours): Add comment.
4872 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4873 (linux_nat_terminal_ours): Add comment.
4875 2014-07-31 Gary Benson <gbenson@redhat.com>
4877 * common/btrace-common.h: Do not include defs.h or server.h.
4878 * nat/mips-linux-watch.h: Likewise.
4879 * gdb-dlfcn.h: Do not include defs.h.
4880 * tracefile.h: Likewise.
4882 2014-07-30 Roland McGrath <mcgrathr@google.com>
4884 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4886 2014-07-30 Tom Tromey <tromey@redhat.com>
4888 * bsd-kvm.c (bsd_kvm_open): Constify.
4889 * corelow.c (core_open): Constify.
4890 * ctf.c (ctf_open): Constify.
4891 * dbug-rom.c (dbug_open): Constify.
4892 * exec.c (exec_open): Constify.
4893 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4894 * microblaze-rom.c (picobug_open): Constify.
4895 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4897 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4898 * record-btrace.c (record_btrace_open): Constify.
4899 * record-full.c (record_full_core_open_1, record_full_open_1)
4900 (record_full_open): Constify.
4901 * remote-m32r-sdi.c (m32r_open): Constify.
4902 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4903 (rockhopper_open, lsi_open): Constify.
4904 * remote-sim.c (gdbsim_open): Constify.
4905 * remote.c (remote_open, extended_remote_open, remote_open_1):
4907 * target.h (struct target_ops) <to_open>: Make "arg" const.
4908 * tracefile-tfile.c (tfile_open): Constify.
4910 2014-07-30 Tom Tromey <tromey@redhat.com>
4912 * breakpoint.c (map_breakpoint_numbers): Update.
4913 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4914 (get_number_const): New function.
4915 (get_number): Rewrite using get_number_const.
4916 (init_number_or_range): Make "string" const.
4917 (number_is_in_list): Make "list" const.
4918 * cli/cli-utils.h (get_number_const): Declare.
4919 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4920 (init_number_or_range, number_is_in_list): Update.
4921 * printcmd.c (map_display_numbers): Update.
4922 * value.c (value_from_history_ref): Constify.
4923 * value.h (value_from_history_ref): Update.
4925 2014-07-30 Tom Tromey <tromey@redhat.com>
4927 * corefile.c (hook_type, call_extra_exec_file_hooks)
4928 (specify_exec_file_hook): Constify.
4929 * exec.c (exec_file_attach): Make "filename" const.
4930 * gdbcore.h (deprecated_exec_file_display_hook)
4931 (specify_exec_file_hook, exec_file_attach): Constify.
4932 * main.c (captured_main): Use catch_command_errors_const.
4934 2014-07-30 Tom Tromey <tromey@redhat.com>
4936 * target.c (open_target): New function.
4937 (add_target_with_completer, add_deprecated_target_alias): Use
4938 set_cmd_sfunc, set_cmd_context.
4939 (debug_to_open): Remove.
4940 (setup_target_debug): Update.
4942 2014-07-30 Yao Qi <yao@codesourcery.com>
4944 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4946 * parse.c (exp_iterate): Update comments.
4948 2014-07-30 Gary Benson <gbenson@redhat.com>
4950 * common/common-defs.h: New file.
4951 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4952 * defs.h: Include common-defs.h.
4953 Do not include config.h or build-gnulib/config.h.
4955 2014-07-30 Gary Benson <gbenson@redhat.com>
4957 * common/common-utils.h: Do not include config.h.
4958 * nat/linux-btrace.h: Likewise.
4960 2014-07-30 Gary Benson <gbenson@redhat.com>
4962 * btrace.c: Include defs.h.
4963 * common/ptid.c: Include defs.h or server.h as appropriate.
4964 * nat/mips-linux-watch.c: Likewise.
4966 2014-07-29 Tom Tromey <tromey@redhat.com>
4968 * target.c (target_is_pushed): Simplify.
4970 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4974 2014-07-29 Yao Qi <yao@codesourcery.com>
4977 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4979 2014-07-28 Doug Evans <xdje42@gmail.com>
4982 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4983 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4986 2014-07-28 Will Newton <will.newton@linaro.org>
4988 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4989 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4990 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4991 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4992 (THUMB2_EABI_SYSCALL): Likewise.
4993 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4995 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4996 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4998 2014-07-27 Doug Evans <xdje42@gmail.com>
5000 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5002 2014-07-27 Doug Evans <xdje42@gmail.com>
5004 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5006 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5007 Doug Evans <xdje42@gmail.com>
5010 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5011 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5012 * configure.ac: Try to use guild to compile an scm file, if it fails
5013 then disable guile support.
5014 * configure: Regenerate.
5015 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5017 (GUILE_COMPILED_FILES): New variable.
5018 (GUILE_FILES) Update.
5019 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5020 (stamp-guile): Compile scm files.
5021 * guile/guile.c (boot_guile_support): New function.
5022 (standard_throw_args_p): New function.
5023 (print_standard_throw_error, print_throw_error): New functions.
5024 (handle_boot_error): New function.
5025 (initialize_scheme_side): Rewrite to call boot_guile_support.
5026 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5027 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5029 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5030 Doug Evans <xdje42@gmail.com>
5033 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5034 * guile/lib/gdb/support.scm: New file.
5035 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5036 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5038 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5040 (%assert-type): Ditto, and renamed to assert-type.
5041 (%exception-print-style): Delete.
5043 2014-07-26 Doug Evans <xdje42@gmail.com>
5046 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5047 * configure: Regenerate.
5048 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5050 (PYTHON_FILES): New variable.
5051 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5052 (GUILE_FILES): New variable.
5053 (stamp-python, install-python, uninstall-python): Handle empty
5055 (stamp-guile, install-guile, uninstall-guile): Ditto.
5057 2014-07-26 Doug Evans <xdje42@gmail.com>
5060 * guile/lib/gdb.scm (pretty-printers): Export.
5061 (set-pretty-printers!): Export.
5062 * guile/lib/gdb/printing.scm (gdb module): Update.
5063 (prepend-pretty-printer!, append-pretty-printer!): Update.
5064 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5065 (pretty_printer_list_var): Delete.
5066 (pretty_printer_list): New static global.
5067 (gdbscm_pretty_printers): New function.
5068 (gdbscm_set_pretty_printers_x): New function.
5069 (ppscm_find_pretty_printer_from_gdb): Update.
5070 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5071 (gdbscm_initialize_pretty_printers): Update.
5073 2014-07-26 Doug Evans <xdje42@gmail.com>
5076 * configure.ac: Add check for header gc/gc.h.
5077 Add check for function setenv.
5078 * configure: Regenerate.
5079 * config.in: Regenerate.
5080 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5082 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5084 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5085 variation in gdbarch matching.
5087 2014-07-25 Tom Tromey <tromey@redhat.com>
5089 * exec.c (using_exec_ops): Remove.
5090 (exec_close_1): Update. Remove extraneous block, reindent.
5091 (add_target_sections): Use target_is_pushed.
5093 2014-07-25 Pedro Alves <palves@redhat.com>
5095 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5096 * monitor.c (monitor_create_inferior): Likewise.
5097 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5098 * remote-sim.c (gdbsim_create_inferior): Likewise.
5099 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5100 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5101 * windows-nat.c (do_initial_windows_stuff): Likewise.
5103 2014-07-25 Pedro Alves <palves@redhat.com>
5105 * NEWS: Mention signal passing and "signal" command changes.
5106 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5108 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5110 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5111 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5112 (jump_command): Adjust clear_proceed_status call.
5113 (signal_command): Warn if other thread that are resumed have
5114 signals that will be delivered. Adjust clear_proceed_status call.
5115 (until_next_command, finish_command)
5116 (proceed_after_attach_callback, attach_command_post_wait)
5117 (attach_command): Adjust clear_proceed_status call.
5118 * infrun.c (proceed_after_vfork_done): Likewise.
5119 (proceed_after_attach_callback): Adjust comment.
5120 (clear_proceed_status_thread): Clear stop_signal if not in pass
5122 (clear_proceed_status_callback): Delete.
5123 (clear_proceed_status): New 'step' parameter. Only clear the
5124 proceed status of threads the command being prepared is about to
5126 (proceed): If passed in an explicit signal, override stop_signal
5127 with it. Don't pass the last stop signal to the thread we're
5129 (init_wait_for_inferior): Adjust clear_proceed_status call.
5130 (switch_back_to_stepped_thread): Clear the signal if it should not
5132 * infrun.h (clear_proceed_status): New 'step' parameter.
5133 (user_visible_resume_ptid): Add comment.
5134 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5135 signal is in pass state.
5136 * remote.c (append_pending_thread_resumptions): Likewise.
5137 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5139 2014-07-25 Tom Tromey <tromey@redhat.com>
5141 * target.h (target_stopped_data_address)
5142 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5145 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5147 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5149 (avr_pointer_to_address): Likewise.
5151 2014-07-24 Tom Tromey <tromey@redhat.com>
5153 * monitor.c (compile_pattern): Update.
5154 * target.h (struct target_ops) <to_shortname, to_longname,
5157 2014-07-24 Tom Tromey <tromey@redhat.com>
5159 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5160 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5161 (add_info_alias, add_com): Make "doc" const.
5162 (print_doc_line): Make "str" const.
5163 (delete_cmd): Update.
5164 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5165 (print_doc_line): Update.
5166 * cli/cli-script.c (document_command): Update.
5167 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5168 (add_com, add_info, add_info_alias): Update.
5169 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5170 * python/py-cmd.c (cmdpy_destroyer): Update.
5172 2014-07-24 Tom Tromey <tromey@redhat.com>
5174 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5175 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5176 (help_cmd_list): Constify.
5177 (lookup_cmd): Update.
5178 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5180 (help_cmd_list, apropos_cmd): Update.
5181 * cli/cli-script.c (show_user): Update.
5182 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5183 * cli/cli-setshow.h (cmd_show_list): Update.
5184 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5185 (cmd_show_list): Update.
5186 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5187 * python/py-cmd.c (cmdpy_destroyer): Update.
5189 2014-07-24 Tom Tromey <tromey@redhat.com>
5191 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5192 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5194 * command.h (deprecate_cmd): Update.
5195 * maint.c (maintenance_do_deprecate): Add casts.
5197 2014-07-24 Tom Tromey <tromey@redhat.com>
5199 * cli/cli-decode.c (help_cmd): Make parameter "const".
5200 * cli/cli-decode.h (help_cmd): Update.
5202 2014-07-24 Tom Tromey <tromey@redhat.com>
5204 * stack.c (up_silently_base, down_silently_base): Make argument
5207 2014-07-24 Tom Tromey <tromey@redhat.com>
5209 * solib.c (solib_add): Make "pattern" const.
5210 * solib.h (solib_add): Update.
5212 2014-07-24 Tom Tromey <tromey@redhat.com>
5214 * remote.c (remote_serial_open, print_packet, putpkt)
5215 (putpkt_binary): Constify.
5216 * remote.h (putpkt): Update.
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5220 * monitor.c (monitor_open): Make "args" const.
5221 * monitor.h (monitor_open): Update.
5223 2014-07-24 Tom Tromey <tromey@redhat.com>
5225 * maint.c (match_bfd_flags): Make "string" const.
5226 (print_bfd_section_info): Remove casts.
5227 (print_objfile_section_info): Make "string" const.
5229 2014-07-24 Tom Tromey <tromey@redhat.com>
5231 * inf-child.c (inf_child_open_target): Make "arg" const.
5232 * inf-child.h (inf_child_open_target): Update.
5234 2014-07-24 Tom Tromey <tromey@redhat.com>
5236 * environ.c (unset_in_environ): Make "var" const.
5237 * environ.h (unset_in_environ): Update.
5239 2014-07-24 Tom Tromey <tromey@redhat.com>
5241 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5243 (scan_filename_with_cleanup): Likewise.
5244 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5245 Make arguments const.
5246 (restore_command): Update.
5248 2014-07-24 Pedro Alves <palves@redhat.com>
5250 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5252 2014-07-24 Tom Tromey <tromey@redhat.com>
5253 Gary Benson <gbenson@redhat.com>
5255 * nat/linux-ptrace.c (additional_flags): New global.
5256 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5257 additional_flags; don't check GDBSERVER.
5258 (linux_ptrace_set_additional_flags): New function.
5259 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5261 * linux-nat.c (_initialize_linux_nat): Call
5262 linux_ptrace_set_additional_flags.
5264 2014-07-24 Tom Tromey <tromey@redhat.com>
5266 * make-target-delegates (munge_type, write_debugmethod): New
5268 (debug_names): New global.
5269 ($TARGET_DEBUG_PRINTER): New global.
5270 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5272 Write debug methods. Generate init_debug_target.
5273 * target-debug.h: New file.
5274 * target-delegates.c: Rebuild.
5275 * target.c: Include target-debug.h.
5276 (debug_target): Hoist definition.
5277 (target_kill, target_get_section_table, target_memory_map)
5278 (target_flash_erase, target_flash_done, target_detach)
5279 (target_disconnect, target_wait, target_resume)
5280 (target_pass_signals, target_program_signals, target_follow_fork)
5281 (target_mourn_inferior, target_search_memory)
5282 (target_thread_address_space, target_close)
5283 (target_find_new_threads, target_core_of_thread)
5284 (target_verify_memory, target_insert_mask_watchpoint)
5285 (target_remove_mask_watchpoint): Remove targetdebug code.
5286 (debug_to_post_attach, debug_to_prepare_to_store)
5287 (debug_to_files_info, debug_to_insert_breakpoint)
5288 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5289 (debug_to_region_ok_for_hw_watchpoint)
5290 (debug_to_can_accel_watchpoint_condition)
5291 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5292 (debug_to_watchpoint_addr_within_range)
5293 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5294 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5295 (debug_to_terminal_init, debug_to_terminal_inferior)
5296 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5297 (debug_to_terminal_save_ours, debug_to_terminal_info)
5298 (debug_to_load, debug_to_post_startup_inferior)
5299 (debug_to_insert_fork_catchpoint)
5300 (debug_to_remove_fork_catchpoint)
5301 (debug_to_insert_vfork_catchpoint)
5302 (debug_to_remove_vfork_catchpoint)
5303 (debug_to_insert_exec_catchpoint)
5304 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5305 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5306 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5307 (setup_target_debug): Call init_debug_target.
5308 * target.h (TARGET_DEBUG_PRINTER): New macro.
5309 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5310 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5312 2014-07-24 Gary Benson <gbenson@redhat.com>
5314 * exceptions.h (throw_vfatal): Renamed to...
5315 (throw_vquit): New declaration.
5316 (throw_quit): Likewise.
5317 * exceptions.c (throw_vfatal): Renamed to...
5318 (throw_vquit): New function.
5319 (throw_quit): Likewise.
5320 (throw_error): Call throw_verror rather than throw_it.
5321 * utils.h (vfatal): Removed.
5323 * utils.c (vfatal): Removed.
5325 (internal_verror): Replaced call to fatal with call to throw_quit.
5326 (quit): Replaced calls to fatal with calls to throw_quit.
5328 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5330 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5333 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5335 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5336 less than zero in conditional expression.
5338 2014-07-23 Tom Tromey <tromey@redhat.com>
5340 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5341 ($INTRO_PART): Don't match whitespace.
5342 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5344 ($METHOD): Add $METHOD_TRAILER.
5346 (scan_target_h): New sub.
5347 Change main loop not to collect state.
5348 * target-delegates.c: Rebuild.
5350 2014-07-23 Gary Benson <gbenson@redhat.com>
5352 * cp-support.c (gdb_demangle): Fix build on systems without
5355 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5357 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5358 for reference entry value target data value.
5360 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5362 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5363 value_available_contents_eq.
5365 2014-07-22 Pedro Alves <palves@redhat.com>
5367 * value.c (allocate_optimized_out_value): Don't mark value as
5370 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5372 * MAINTAINERS (Write After Approval): Update my email address.
5374 2014-07-20 Doug Evans <dje@google.com>
5377 * remote.c (putpkt_binary): Add text to error message.
5379 2014-07-20 Yao Qi <yao@codesourcery.com>
5381 * eval.c: Remove "Chill" from comments.
5382 * gdbtypes.h: Likewise.
5383 * symtab.h: Likewise.
5385 2014-07-20 Yao Qi <yao@codesourcery.com>
5387 * std-operator.def: Update comments to TERNOP_SLICE.
5389 2014-07-20 Yao Qi <yao@codesourcery.com>
5391 * std-operator.def: Remove BINOP_RANGE.
5392 * breakpoint.c (watchpoint_exp_is_const): Update.
5393 * expprint.c (dump_subexp_body_standard): Likewise.
5394 * eval.c (init_array_element): Remove dead code.
5395 (evaluate_subexp_standard): Likewise.
5397 2014-07-20 Yao Qi <yao@codesourcery.com>
5399 * std-operator.def: Remove BINOP_IN.
5400 * breakpoint.c (watchpoint_exp_is_const): Update.
5401 * eval.c (evaluate_subexp_standard): Likewise.
5402 * expprint.c (dump_subexp_body_standard): Likewise.
5404 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5406 * microblaze-tdep.c (microblaze_register_names): Add
5407 the rshr and rslr register names.
5408 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5409 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5410 Use of tdesc_numbered_register. Use of
5411 microblaze_register_g_packet_guesses. Use of
5412 tdesc_use_registers. Use of set_gdbarch_register_type.
5413 (microblaze_register_g_packet_guesses): New.
5414 * microblaze-tdep.h (microblaze_reg_num): Add
5415 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5416 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5417 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5418 * features/microblaze-core.xml: New file.
5419 * features/microblaze-stack-protect.xml: New file.
5420 * features/microblaze-with-stack-protect.c: New file.
5421 * features/microblaze-with-stack-protect.xml: New file.
5422 * features/microblaze.xml: New file.
5423 * features/microblaze.c: New file.
5424 * features/Makefile (microblaze-with-stack-protect): Add
5425 microblaze-with-stack-protect microblaze and microblaze-expedite.
5426 * regformats/microblaze-with-stack-protect.dat: New file.
5427 * regformats/microblaze.dat: New file.
5428 * doc/gdb.texinfo (MicroBlaze Features): Added.
5430 2014-07-18 Tom Tromey <tromey@redhat.com>
5432 * exec.c (exec_ops): Now static.
5433 * exec.h (exec_ops): Don't declare.
5435 2014-07-18 Tom Tromey <tromey@redhat.com>
5437 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5438 to find_target_beneath.
5439 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5440 find_target_beneath.
5441 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5443 2014-07-18 Tom Tromey <tromey@redhat.com>
5446 * utils.c (quit): Use target_supports_terminal_ours.
5447 * target.h (target_supports_terminal_ours): Declare.
5448 * target.c (target_supports_delete_record): Don't check
5449 to_delete_record against NULL.
5450 (target_supports_terminal_ours): New function.
5452 2014-07-18 Tom Tromey <tromey@redhat.com>
5455 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5456 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5457 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5458 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5459 * windows-nat.c (windows_xfer_partial): Always delegate.
5460 * record-btrace.c (record_btrace_xfer_partial): Simplify
5462 (record_btrace_fetch_registers, record_btrace_store_registers)
5463 (record_btrace_prepare_to_store, record_btrace_resume)
5464 (record_btrace_wait, record_btrace_find_new_threads)
5465 (record_btrace_thread_alive): Likewise.
5466 * procfs.c (procfs_xfer_partial): Always delegate.
5467 * corelow.c (core_xfer_partial): Always delegate.
5468 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5470 2014-07-18 Tom Tromey <tromey@redhat.com>
5472 * exec.c (exec_make_note_section): Move earlier.
5474 2014-07-17 Doug Evans <dje@google.com>
5477 * maint.c (count_symtabs_and_blocks): Handle NULL
5478 current_program_space.
5479 (report_command_stats): Check global enabled flag in addition to
5480 recorded enabled flag.
5481 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5483 2014-07-16 Pedro Alves <palves@redhat.com>
5485 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5487 2014-07-16 Tom Tromey <tromey@redhat.com>
5489 * target.h (struct target_ops) <to_delete_record>: Reformat
5492 2014-07-16 Tom Tromey <tromey@redhat.com>
5494 * target-delegates.c: Rebuild.
5496 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5498 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5499 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5500 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5501 (avr_pointer_to_address): Likewise.
5502 (avr_address_class_type_flags): New function.
5503 (avr_address_class_type_flags_to_name): Likewise.
5504 (avr_address_class_name_to_type_flags): Likewise.
5505 (avr_gdbarch_init): Set address_class_type_flags,
5506 address_class_type_flags_to_name and
5507 address_class_name_to_type_flags.
5509 2014-07-15 Pedro Alves <palves@redhat.com>
5511 * linux-nat.c (kill_callback): Save errno and work with saved
5514 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5516 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5518 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5520 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5521 breakpoint support correctly.
5523 2014-07-14 Pedro Alves <palves@redhat.com>
5525 * utils.c (prompt_for_continue): Call target_terminal_ours.
5527 2014-07-14 Pedro Alves <palves@redhat.com>
5529 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5530 catch_errors. Don't re-enable stdin or notify observers where,
5532 (fetch_inferior_event_wrapper): Delete.
5534 2014-07-14 Pedro Alves <palves@redhat.com>
5537 * top.c: Include "inf-loop.h".
5538 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5540 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5542 (gdb_readline_wrapper): Store whether the target is async, and
5545 2014-07-14 Pedro Alves <palves@redhat.com>
5548 * top.c (gdb_readline_wrapper_line): Tweak comment.
5549 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5550 the input handler callback.
5552 2014-07-14 Pedro Alves <palves@redhat.com>
5555 * main.c: Include event-top.h.
5556 (handle_command_errors): New function.
5557 (catch_command_errors, catch_command_errors_const): Use it.
5559 2014-07-14 Pedro Alves <palves@redhat.com>
5561 * exceptions.c (catch_command_errors, catch_command_errors_const):
5563 * exceptions.h (catch_command_errors_ftype)
5564 (catch_command_errors_const_ftype): Moved to main.c.
5565 (catch_command_errors, catch_command_errors_const): Delete
5567 * main.c (catch_command_errors_ftype)
5568 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5569 (catch_command_errors, catch_command_errors_const)): Moved here
5570 from exceptions.c and make static.
5572 2014-07-14 Pedro Alves <palves@redhat.com>
5574 * exceptions.c (print_any_exception): Delete.
5575 (catch_exceptions_with_msg): Use exception_print instead of
5576 print_any_exception.
5577 (catch_errors): Use exception_fprintf instead of
5578 print_any_exception.
5579 (catch_command_errors, catch_command_errors_const): Use
5580 exception_print instead of print_any_exception.
5582 2014-07-14 Pedro Alves <palves@redhat.com>
5584 * infcall.c (run_inferior_call): Set 'sync_execution' while
5585 running the inferior call.
5587 2014-07-14 Pedro Alves <palves@redhat.com>
5589 * value.c (value_contents_equal): Delete function.
5590 * value.h (value_contents_equal): Delete declaration.
5592 2014-07-14 Tom Tromey <tromey@redhat.com>
5595 * gdbtypes.c (is_dynamic_type_internal): New function, from
5597 (is_dynamic_type): Rewrite.
5598 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5599 (resolve_dynamic_struct): Likewise.
5600 (resolve_dynamic_type_internal): New function, from
5601 resolve_dynamic_type.
5602 (resolve_dynamic_type): Rewrite.
5604 2014-07-14 Tom Tromey <tromey@redhat.com>
5606 * target.c (target_require_runnable): Also check record_stratum.
5609 2014-07-11 Yao Qi <yao@codesourcery.com>
5611 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5612 thumb_instruction_restores_sp return true.
5614 2014-07-11 Yao Qi <yao@codesourcery.com>
5616 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5617 (thumb_in_function_epilogue_p): Call
5618 thumb_instruction_restores_sp.
5620 2014-07-11 Yao Qi <yao@codesourcery.com>
5622 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5624 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5626 2014-07-11 Gary Benson <gbenson@redhat.com>
5628 * amd64-linux-nat.c (gdbcore.h): Remove include.
5629 (regset.h): Likewise.
5630 (nat/linux-btrace.h): Likewise.
5631 (btrace.h): Likewise.
5632 (gdb_assert.h): Likewise.
5633 (string.h): Likewise.
5634 (sys/uio.h): Likewise.
5635 (sys/debugreg.h): Likewise.
5636 (sys/syscall.h): Likewise.
5637 (sys/procfs.h): Likewise.
5638 (sys/user.h): Likewise.
5639 (asm/ptrace.h): Likewise.
5640 (i386-nat.h): Likewise.
5641 * i386-linux-nat.c (i386-nat.h): Likewise.
5642 (regset.h): Likewise.
5643 (target.h): Likewise.
5644 (linux-nat.h): Likewise.
5645 (nat/linux-btrace.h): Likewise.
5646 (btrace.h): Likewise.
5647 (gdb_assert.h): Likewise.
5648 (string.h): Likewise.
5649 (sys/uio.h): Likewise.
5650 (sys/user.h): Likewise.
5651 (sys/procfs.h): Likewise.
5652 (sys/reg.h): Likewise.
5653 (sys/debugreg.h): Likewise.
5654 (ORIG_EAX): Remove definition.
5656 2014-07-11 Gary Benson <gbenson@redhat.com>
5658 * i386-linux-nat.h: New file.
5659 * x86-linux-nat.h: Likewise.
5660 * x86-linux-nat.c: Likewise.
5661 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5662 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5663 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5664 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5665 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5666 (PTRACE_SETREGSET): Likewise.
5667 (arch_lwp_info): Now in x86-linux-nat.c.
5668 (have_ptrace_getregset): Now in x86-linux-nat.h.
5669 (x86_linux_dr_get): Now in x86-linux-nat.c.
5670 (x86_linux_dr_set): Likewise.
5671 (x86_linux_dr_get_addr): Likewise.
5672 (x86_linux_dr_get_control): Likewise.
5673 (x86_linux_dr_get_status): Likewise.
5674 (update_debug_registers_callback): Likewise.
5675 (x86_linux_dr_set_control): Likewise.
5676 (x86_linux_dr_set_addr): Likewise.
5677 (x86_linux_prepare_to_resume): Likewise.
5678 (x86_linux_new_thread): Likewise.
5679 (x86_linux_new_fork): Likewise.
5680 (x86_linux_get_thread_area): Likewise.
5681 (super_post_startup_inferior): Likewise.
5682 (x86_linux_child_post_startup_inferior): Likewise.
5683 (AMD64_LINUX_USER64_CS): Likewise.
5684 (AMD64_LINUX_X32_DS): Likewise.
5685 (x86_linux_read_description): Likewise.
5686 (x86_linux_enable_btrace): Likewise.
5687 (x86_linux_disable_btrace): Likewise.
5688 (x86_linux_teardown_btrace): Likewise.
5689 (x86_linux_read_btrace): Likewise.
5690 (x86_linux_create_target): Likewise.
5691 (x86_linux_add_target): Likewise.
5692 * i386-linux-nat.c (x86-linux-nat.h): New include.
5693 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5694 (PTRACE_SETREGSET): Likewise.
5695 (arch_lwp_info): Now in x86-linux-nat.c.
5696 (have_ptrace_getregset): Now in x86-linux-nat.h.
5697 (x86_linux_dr_get): Now in x86-linux-nat.c.
5698 (x86_linux_dr_set): Likewise.
5699 (x86_linux_dr_get_addr): Likewise.
5700 (x86_linux_dr_get_control): Likewise.
5701 (x86_linux_dr_get_status): Likewise.
5702 (update_debug_registers_callback): Likewise.
5703 (x86_linux_dr_set_control): Likewise.
5704 (x86_linux_dr_set_addr): Likewise.
5705 (x86_linux_prepare_to_resume): Likewise.
5706 (x86_linux_new_thread): Likewise.
5707 (x86_linux_new_fork): Likewise.
5708 (x86_linux_get_thread_area): Likewise.
5709 (super_post_startup_inferior): Likewise.
5710 (x86_linux_child_post_startup_inferior): Likewise.
5711 (AMD64_LINUX_USER64_CS): Likewise.
5712 (AMD64_LINUX_X32_DS): Likewise.
5713 (x86_linux_read_description): Likewise.
5714 (x86_linux_enable_btrace): Likewise.
5715 (x86_linux_disable_btrace): Likewise.
5716 (x86_linux_teardown_btrace): Likewise.
5717 (x86_linux_read_btrace): Likewise.
5718 (x86_linux_create_target): Likewise.
5719 (x86_linux_add_target): Likewise.
5721 2014-07-11 Gary Benson <gbenson@redhat.com>
5723 * amd64-linux-nat.c: Comment and whitespace changes.
5724 * i386-linux-nat.c: Comment and whitespace changes.
5726 2014-07-11 Gary Benson <gbenson@redhat.com>
5728 * amd64-linux-nat.c (x86_linux_create_target): New function.
5729 (x86_linux_add_target): Likewise.
5730 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5731 * i386-linux-nat.c (x86_linux_create_target): New function.
5732 (x86_linux_add_target): Likewise.
5733 (_initialize_i386_linux_nat): Delegate to the above new functions.
5735 2014-07-11 Gary Benson <gbenson@redhat.com>
5737 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5738 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5739 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5740 (ps_get_thread_area): Delegate to the above.
5742 2014-07-11 Gary Benson <gbenson@redhat.com>
5744 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5745 x86_linux_read_description. All uses updated. amd64-specific
5746 code conditionalized. Conditionalized i386-specific code added.
5747 Redundant cast removed.
5748 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5749 x86_linux_read_description. All uses updated. i386-specific
5750 code conditionalized. Conditionalized amd64-specific code added.
5751 One sizeof replaced with the actual type it is describing.
5753 2014-07-11 Gary Benson <gbenson@redhat.com>
5755 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5756 x86_linux_dr_get. All uses updated.
5757 (amd64_linux_dr_set): Renamed to
5758 x86_linux_dr_set. All uses updated.
5759 (amd64_linux_dr_get_addr): Renamed to
5760 x86_linux_dr_get_addr. All uses updated.
5761 (amd64_linux_dr_get_control): Renamed to
5762 x86_linux_dr_get_control. All uses updated.
5763 (amd64_linux_dr_get_status): Renamed to
5764 x86_linux_dr_get_status. All uses updated.
5765 (amd64_linux_dr_set_control): Renamed to
5766 x86_linux_dr_set_control. All uses updated.
5767 (amd64_linux_dr_set_addr): Renamed to
5768 x86_linux_dr_set_addr. All uses updated.
5769 (amd64_linux_prepare_to_resume): Renamed to
5770 x86_linux_prepare_to_resume. All uses updated.
5771 (amd64_linux_new_thread): Renamed to
5772 x86_linux_new_thread. All uses updated.
5773 (amd64_linux_new_fork): Renamed to
5774 x86_linux_new_fork. All uses updated.
5775 (amd64_linux_child_post_startup_inferior): Renamed to
5776 x86_linux_child_post_startup_inferior. All uses updated.
5777 (amd64_linux_enable_btrace): Renamed to
5778 x86_linux_enable_btrace. All uses updated.
5779 (amd64_linux_disable_btrace): Renamed to
5780 x86_linux_disable_btrace. All uses updated.
5781 (amd64_linux_teardown_btrace): Renamed to
5782 x86_linux_teardown_btrace. All uses updated.
5783 (amd64_linux_read_btrace): Renamed to
5784 x86_linux_read_btrace. All uses updated.
5785 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5786 x86_linux_dr_get. All uses updated.
5787 (i386_linux_dr_set): Renamed to
5788 x86_linux_dr_set. All uses updated.
5789 (i386_linux_dr_get_addr): Renamed to
5790 x86_linux_dr_get_addr. All uses updated.
5791 (i386_linux_dr_get_control): Renamed to
5792 x86_linux_dr_get_control. All uses updated.
5793 (i386_linux_dr_get_status): Renamed to
5794 x86_linux_dr_get_status. All uses updated.
5795 (i386_linux_dr_set_control): Renamed to
5796 x86_linux_dr_set_control. All uses updated.
5797 (i386_linux_dr_set_addr): Renamed to
5798 x86_linux_dr_set_addr. All uses updated.
5799 (i386_linux_prepare_to_resume): Renamed to
5800 x86_linux_prepare_to_resume. All uses updated.
5801 (i386_linux_new_thread): Renamed to
5802 x86_linux_new_thread. All uses updated.
5803 (i386_linux_new_fork): Renamed to
5804 x86_linux_new_fork. All uses updated.
5805 (i386_linux_child_post_startup_inferior): Renamed to
5806 x86_linux_child_post_startup_inferior. All uses updated.
5807 (i386_linux_enable_btrace): Renamed to
5808 x86_linux_enable_btrace. All uses updated.
5809 (i386_linux_disable_btrace): Renamed to
5810 x86_linux_disable_btrace. All uses updated.
5811 (i386_linux_teardown_btrace): Renamed to
5812 x86_linux_teardown_btrace. All uses updated.
5813 (i386_linux_read_btrace): Renamed to
5814 x86_linux_read_btrace. All uses updated.
5816 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5818 * remote.c (extended_remote_post_attach): New function.
5819 (init_extended_remote_ops): Install it as to_post_attach method.
5821 2014-07-09 Pedro Alves <palves@redhat.com>
5823 * infcmd.c (attach_command_post_wait): Don't call
5824 target_terminal_inferior here.
5825 (attach_command): Call it here instead.
5827 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5829 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5831 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5832 from varobj.c, with additional checks.
5833 (c_varobj_ops): Fill in is_path_expr_parent field.
5834 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5835 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5837 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5839 (varobj_default_is_path_expr_parent): New function.
5840 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5841 (varobj_default_is_path_expr_parent): Declare new function.
5843 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5845 * infcmd.c (finish_backward): Turn internal error into normal error.
5847 2014-07-07 Pedro Alves <palves@redhat.com>
5850 * remote.c (async_handle_remote_sigint)
5851 (async_handle_remote_sigint_twice): Call
5852 gdb_call_async_signal_handler instead of
5853 mark_async_signal_handler.
5855 2014-07-07 Tom Tromey <tromey@redhat.com>
5857 * target-delegates.c: Rebuild.
5858 * target.c (target_info_record): Remove.
5859 * record.c (info_record_command): Unconditionally call
5861 * target.h (struct target_ops) <to_info_record>: Use
5862 TARGET_DEFAULT_IGNORE.
5863 (target_info_record): Remove.
5865 2014-07-07 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5868 TARGET_DEFAULT_NORETURN.
5869 * target.c (generic_tls_error): New function.
5870 (target_translate_tls_address): Don't search target stack.
5871 * target-delegates.c: Rebuild.
5872 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5874 * linux-thread-db.c (thread_db_get_thread_local_address):
5875 Unconditionally call beneath target.
5877 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5879 * cli/cli-logging.c (pop_output_files): Assign targerr to
5882 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5884 * MAINTAINERS (Write After Approval): Update my email address.
5886 2014-07-02 Gary Benson <gbenson@redhat.com>
5888 * proc-service.c (ps_xfer_memory): Update comment.
5889 (ps_pstop): Remove unused function.
5890 (ps_pcontinue): Likewise.
5891 (ps_lstop): Likewise.
5892 (ps_lcontinue): Likewise.
5893 (ps_lgetxregsize): Likewise.
5894 (ps_lgetxregs): Likewise.
5895 (ps_lsetxregs): Likewise.
5896 (ps_plog): Likewise.
5897 (ps_ptread): Likewise.
5898 (ps_ptwrite): Likewise.
5900 2014-07-01 Mark Wielaard <mjw@redhat.com>
5902 * dwarf2read.c (add_array_cv_type): New function.
5903 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5904 (read_tag_volatile_type): Likewise.
5906 2014-07-01 Tom Tromey <tromey@redhat.com>
5908 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5909 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5910 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5911 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5912 * command.h (cmd_cfunc_ftype): Move earlier.
5913 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5914 (add_com, add_info): Use cmd_cfunc_ftype.
5916 2014-06-30 Tom Tromey <tromey@redhat.com>
5918 * symtab.c (operator_chars): Make parameters and return type
5920 (file_matches): Make "files" const.
5921 (struct search_symbols_data) <files>: Now const.
5922 (search_symbols): Make "regexp" and "files" parameters const.
5924 (symtab_symbol_info): Remove cast.
5925 (rbreak_command): Update.
5926 * symtab.h (search_symbols): Update.
5928 2014-06-27 Yao Qi <yao@codesourcery.com>
5930 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5931 Change parameter type to 'struct thread_info *'. Caller
5933 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5935 * dummy-frame.c (struct dummy_frame_id): New.
5936 (dummy_frame_id_eq): New function.
5937 (struct dummy_frame) <id>: Change its type to 'struct
5939 (dummy_frame_push): Add parameter ptid and save it in
5941 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5943 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5945 (lookup_dummy_frame): Change parameter type to 'struct
5946 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5947 instead of frame_id_eq.
5948 (dummy_frame_pop): Add parameter ptid. Callers updated.
5949 Update comments. Compose dummy_frame_id and pass it to
5951 (dummy_frame_discard): Add parameter ptid.
5952 (dummy_frame_sniffer): Compose dummy_frame_id and call
5953 dummy_frame_id_eq instead of frame_id_eq.
5954 (fprint_dummy_frames): Print ptid.
5955 * dummy-frame.h: Remove comments.
5956 (dummy_frame_push): Add ptid in declaration.
5957 (dummy_frame_pop, dummy_frame_discard): Likewise.
5959 2014-06-26 Tom Tromey <tromey@redhat.com>
5961 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5962 * command.h (error_no_arg): Update.
5964 2014-06-26 Tom Tromey <tromey@redhat.com>
5966 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5967 (do_show_command): Make "arg" const.
5968 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5970 2014-06-26 Tom Tromey <tromey@redhat.com>
5972 * record-full.c (record_full_get_bookmark): Make "args" const.
5973 (record_full_goto_bookmark): Make "raw_bookmark" const.
5974 * record.c (record_goto): New function.
5975 (cmd_record_goto): Use it. Now static.
5976 * record.h (record_goto): Declare.
5977 (cmd_record_goto): Remove declaration.
5978 * target-delegates.c: Rebuild.
5979 * target.h (struct target_ops) <to_get_bookmark,
5980 to_goto_bookmark>: Make parameter const.
5982 2014-06-26 Tom Tromey <tromey@redhat.com>
5984 * defs.h (generic_load): Update.
5985 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5986 * monitor.c (monitor_load): Make "args" const.
5987 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5988 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5990 (mips_load): Make "file" const.
5991 * remote-sim.c (gdbsim_load): Make "args" const.
5992 * remote.c (remote_load): Make "name" const.
5993 * symfile.c (generic_load): Make "args" const.
5994 * target-delegates.c: Rebuild.
5995 * target.c (target_load): Make "arg" const.
5996 (debug_to_load): Make "args" const.
5997 * target.h (struct target_ops) <to_load>: Make parameter const.
5998 (target_load): Update.
6000 2014-06-26 Tom Tromey <tromey@redhat.com>
6003 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6004 (dwarf2_physname, read_partial_die)
6005 (guess_partial_die_structure_name, fixup_partial_die)
6006 (guess_full_die_structure_name, anonymous_struct_prefix)
6007 (dwarf2_name): Use per-BFD obstack.
6009 2014-06-26 Yao Qi <yao@codesourcery.com>
6011 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6012 dummyframe and this_id into inner block below.
6014 2014-06-26 Yao Qi <yao@codesourcery.com>
6016 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6017 with "signal_pass[0]" in the initialization of signal_pass.
6019 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6021 * record-btrace.c (record_btrace_generating_corefile)
6022 (record_btrace_prepare_to_generate_core)
6023 (record_btrace_done_generating_core): New.
6024 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6025 (record_btrace_store_registers, record_btrace_prepare_to_store):
6026 Forward request when generating a core file.
6027 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6028 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6029 to_done_generating_core.
6031 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6033 * target.h (target_ops) <to_prepare_to_generate_core>
6034 <to_done_generating_core>: New.
6035 (target_prepare_to_generate_core, target_done_generating_core): New.
6036 * target.c (target_prepare_to_generate_core)
6037 (target_done_generating_core): New.
6038 * target-delegates.c: Regenerate.
6039 * gcore.c: (write_gcore_file): Rename to ...
6040 (write_gcore_file_1): ...this.
6041 (write_gcore_file): Call target_prepare_to_generate_core
6042 and target_done_generating_core.
6044 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6046 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6047 * gcore.c (write_gcore_file): Free memory returned from
6048 make_corefile_notes.
6049 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6050 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6052 2014-06-24 Yao Qi <yao@codesourcery.com>
6054 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6055 (arm_linux_init_abi): Set skip_trampoline_code with
6056 gdbarch_skip_trampoline_code instead of
6057 find_solib_trampoline_target.
6059 2014-06-24 Yao Qi <yao@codesourcery.com>
6061 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6062 arm_skip_bx_reg returns non-zero.
6064 2014-06-24 Yao Qi <yao@codesourcery.com>
6066 * arm-tdep.c (arm_skip_bx_reg): New function.
6067 (arm_skip_stub): Call arm_skip_bx_reg.
6069 2014-06-23 Don Breazeal <donb@codesourcery.com>
6071 * MAINTAINERS: Add myself as write-after-approval maintainer.
6073 2014-06-23 Pedro Alves <palves@redhat.com>
6075 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6076 DR_CONTROL before setting DR0..DR3.
6077 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6078 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6079 bits of DR_CONTROL related to the debug register slot being
6080 disabled. If all slots are vacant, clear local slowdown as well,
6081 and assert DR_CONTROL is 0.
6083 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6085 * python/lib/gdb/command/xmethods.py
6086 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6087 current progspace only if the string "progspace" matches LOCUS_RE.
6089 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6091 Fix --with-system-readline with readline-6.3 patch 5.
6092 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6093 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6096 2014-06-20 Tom Tromey <tromey@redhat.com>
6098 * dwarf2read.c (dw2_get_real_path): Use correct type in
6100 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6102 2014-06-20 Gary Benson <gbenson@redhat.com>
6104 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6105 * common/glibc_thread_db.h: Likewise.
6106 * common/i386-cpuid.h: Likewise.
6107 * common/i386-gcc-cpuid.h: Likewise.
6108 * common/linux-btrace.h: Likewise.
6109 * common/linux-osdata.h: Likewise.
6110 * common/linux-procfs.h: Likewise.
6111 * common/linux-ptrace.h: Likewise.
6112 * common/mips-linux-watch.h: Likewise.
6113 * common/linux-btrace.c: Moved to nat.
6114 * common/linux-osdata.c: Likewise.
6115 * common/linux-procfs.c: Likewise.
6116 * common/linux-ptrace.c: Likewise.
6117 * common/mips-linux-watch.c: Likewise.
6118 * nat/gdb_thread_db.h: Moved from common.
6119 * nat/glibc_thread_db.h: Likewise.
6120 * nat/i386-cpuid.h: Likewise.
6121 * nat/i386-gcc-cpuid.h: Likewise.
6122 * nat/linux-btrace.c: Likewise.
6123 * nat/linux-btrace.h: Likewise.
6124 * nat/linux-osdata.c: Likewise.
6125 * nat/linux-osdata.h: Likewise.
6126 * nat/linux-procfs.c: Likewise.
6127 * nat/linux-procfs.h: Likewise.
6128 * nat/linux-ptrace.c: Likewise.
6129 * nat/linux-ptrace.h: Likewise.
6130 * nat/mips-linux-watch.c: Likewise.
6131 * nat/mips-linux-watch.h: Likewise.
6132 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6133 (object file files): Reordered.
6134 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6135 of glibc_thread_db.h.
6137 2014-06-20 Gary Benson <gbenson@redhat.com>
6139 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6140 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6141 (i386_dr_low): Likewise.
6142 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6143 (i386_dr_low_set_addr): Likewise.
6144 (i386_dr_low_get_addr): Likewise.
6145 (i386_dr_low_can_set_control): Likewise.
6146 (i386_dr_low_set_control): Likewise.
6147 (i386_dr_low_get_control): Likewise.
6148 (i386_dr_low_get_status): Likewise.
6149 (i386_get_debug_register_length): Likewise.
6150 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6151 (i386_dr_low): Likewise.
6152 * nat/i386-dregs.c (i386-low.h): Remove include.
6153 (i386-nat.h): Likewise.
6154 (nat/i386-dregs.h): New include.
6155 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6156 (i386_dr_low_set_addr): Likewise.
6157 (i386_dr_low_get_addr): Likewise.
6158 (i386_dr_low_can_set_control): Likewise.
6159 (i386_dr_low_set_control): Likewise.
6160 (i386_dr_low_get_control): Likewise.
6161 (i386_dr_low_get_status): Likewise.
6162 (i386_get_debug_register_length): Likewise.
6163 (debug_hw_points): Likewise.
6165 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6167 * Makefile.in (SFILES): Add d-exp.y.
6168 (YYFILES): Add d-exp.c.
6169 (YYOBJ): Add d-exp.o.
6170 (local-maintainer-clean): Delete d-exp.c.
6171 * d-exp.y: New file.
6172 * d-lang.h (d_parse): New declaration.
6173 (d_error): New declaration.
6174 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6175 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6176 PREC_ORDER operators.
6177 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6179 2014-06-19 Yao Qi <yao@codesourcery.com>
6181 * gdbthread.h (any_running): Remove the declaration.
6182 * thread.c (any_running): Remove.
6184 2014-06-19 Yao Qi <yao@codesourcery.com>
6186 * gdbthread.h (struct thread_info) <state>: Change its type to
6187 'enum thread_state'. Update comments.
6189 2014-06-19 Pedro Alves <palves@redhat.com>
6191 * gdbthread.h (ALL_THREADS): Delete.
6192 (ALL_NON_EXITED_THREADS): New macro.
6193 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6194 instead of ALL_THREADS.
6195 * infrun.c (find_thread_needs_step_over)
6196 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6197 instead of ALL_THREADS.
6198 * record-btrace.c (record_btrace_open)
6199 (record_btrace_stop_recording, record_btrace_close)
6200 (record_btrace_is_replaying, record_btrace_resume)
6201 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6202 * remote.c (append_pending_thread_resumptions): Likewise.
6203 * thread.c (thread_apply_all_command): Likewise.
6205 2014-06-19 Gary Benson <gbenson@redhat.com>
6207 * i386-nat.c (i386_stopped_by_watchpoint):
6208 Use i386_dr_stopped_by_watchpoint.
6209 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6210 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6212 2014-06-19 Gary Benson <gbenson@redhat.com>
6214 * nat/i386-dregs.c: New file.
6215 * Makefile.in (i386-dregs.o): New rule.
6216 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6217 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6218 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6219 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6220 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6221 * config/i386/go32.mh (NATDEPFILES): Likewise.
6222 * config/i386/linux.mh (NATDEPFILES): Likewise.
6223 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6224 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6225 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6226 * i386-nat.h (debug_hw_points): New declaration.
6227 * i386-nat.c (breakpoint.h): Remove include.
6228 (command.h): Likewise.
6229 (target.h): Likewise.
6230 (gdb_assert.h): Likewise.
6231 (debug_hw_points): Made nonstatic.
6232 (debug_printf): Now in i386-dregs.c.
6233 (TARGET_HAS_DR_LEN_8): Likewise.
6234 (DR_CONTROL_SHIFT): Likewise.
6235 (DR_CONTROL_SIZE): Likewise.
6236 (DR_RW_EXECUTE): Likewise.
6237 (DR_RW_WRITE): Likewise.
6238 (DR_RW_READ): Likewise.
6239 (DR_RW_IORW): Likewise.
6240 (DR_LEN_1): Likewise.
6241 (DR_LEN_2): Likewise.
6242 (DR_LEN_4): Likewise.
6243 (DR_LEN_8): Likewise.
6244 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6245 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6246 (DR_ENABLE_SIZE): Likewise.
6247 (DR_LOCAL_SLOWDOWN): Likewise.
6248 (DR_GLOBAL_SLOWDOWN): Likewise.
6249 (DR_CONTROL_RESERVED): Likewise.
6250 (I386_DR_CONTROL_MASK): Likewise.
6251 (I386_DR_VACANT): Likewise.
6252 (I386_DR_LOCAL_ENABLE): Likewise.
6253 (I386_DR_GLOBAL_ENABLE): Likewise.
6254 (I386_DR_DISABLE): Likewise.
6255 (I386_DR_SET_RW_LEN): Likewise.
6256 (I386_DR_GET_RW_LEN): Likewise.
6257 (I386_DR_WATCH_HIT): Likewise.
6258 (i386_wp_op_t): Likewise.
6259 (i386_show_dr): Likewise.
6260 (i386_length_and_rw_bits): Likewise.
6261 (i386_insert_aligned_watchpoint): Likewise.
6262 (i386_remove_aligned_watchpoint): Likewise.
6263 (i386_handle_nonaligned_watchpoint): Likewise.
6264 (i386_update_inferior_debug_regs): Likewise.
6265 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6266 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6267 (i386_region_ok_for_watchpoint):
6268 Use i386_dr_region_ok_for_watchpoint.
6269 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6271 2014-06-19 Gary Benson <gbenson@redhat.com>
6273 * i386-nat.c (i386_insert_hw_breakpoint): Use
6274 i386_insert_watchpoint.
6275 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6277 2014-06-19 Gary Benson <gbenson@redhat.com>
6279 * i386-nat.c (i386_dr_show): Renamed to
6280 i386_show_dr and made static. All uses updated.
6281 (i386_dr_length_and_rw_bits): Renamed to
6282 i386_length_and_rw_bits and made static.
6284 (i386_dr_insert_aligned_watchpoint): Renamed to
6285 i386_insert_aligned_watchpoint and made static.
6287 (i386_dr_remove_aligned_watchpoint): Renamed to
6288 i386_remove_aligned_watchpoint and made static.
6290 (i386_dr_update_inferior_debug_regs): Renamed to
6291 i386_update_inferior_debug_regs and made static.
6293 * nat/i386-dregs.h (i386_dr_show): Removed.
6294 (i386_dr_length_and_rw_bits): Likewise.
6295 (i386_dr_insert_aligned_watchpoint): Likewise.
6296 (i386_dr_remove_aligned_watchpoint): Likewise.
6297 (i386_dr_update_inferior_debug_regs): Likewise.
6299 2014-06-19 Gary Benson <gbenson@redhat.com>
6301 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6302 * configure: Regenerate.
6303 * config.in: Likewise.
6304 * main.c (signal.h): New include.
6305 (setup_alternate_signal_stack): New function.
6306 (captured_main): Call the above.
6307 * cp-support.c (signal.h): New include.
6308 (catch_demangler_crashes): New flag.
6309 (SIGJMP_BUF): New define.
6310 (SIGSETJMP): Likewise.
6311 (SIGLONGJMP): Likewise.
6312 (gdb_demangle_jmp_buf): New static global.
6313 (gdb_demangle_attempt_core_dump): Likewise.
6314 (gdb_demangle_signal_handler): New function.
6315 (gdb_demangle): If catch_demangler_crashes is set, install the
6316 above signal handler before calling bfd_demangle, and restore
6317 the original signal handler afterwards. Display the offending
6318 symbol and call demangler_warning the first time a segmentation
6320 (_initialize_cp_support): New maint set/show command.
6322 2014-06-19 Gary Benson <gbenson@redhat.com>
6324 * utils.h (resource_limit_kind): New enum.
6325 (can_dump_core): New declaration.
6326 (warn_cant_dump_core): Likewise.
6327 (dump_core): Likewise.
6328 * utils.c (dump_core): Made nonstatic. Added new
6329 parameter "limit_kind".
6330 (can_dump_core): Made nonstatic. Moved printing code to...
6331 (warn_cant_dump_core): New function.
6332 (can_dump_core_warn): Likewise.
6333 (internal_vproblem): Replace calls to can_dump_core with
6334 calls to can_dump_core_warn. Supply new argument to each.
6336 2014-06-19 Gary Benson <gbenson@redhat.com>
6338 * utils.h (demangler_vwarning): New declaration.
6339 (demangler_warning): Likewise.
6340 * utils.c (struct internal_problem)
6341 <user_settable_should_quit>: New field.
6342 <user_settable_should_dump_core>: Likewise
6343 (internal_error_problem): Add values for above new fields.
6344 (internal_warning_problem): Likewise.
6345 (demangler_warning_problem): New static global.
6346 (demangler_vwarning): New function.
6347 (demangler_warning): Likewise.
6348 (add_internal_problem_command): Selectively add commands.
6349 (_initialize_utils): New internal problem command.
6350 * maint.c (maintenance_demangler_warning): New function.
6351 (_initialize_maint_cmds): New command.
6353 2014-06-18 Tom Tromey <tromey@redhat.com>
6355 * f-valprint.c (info_common_command_for_block): Update.
6356 * symtab.h (struct general_symbol_info) <common_block>: Now
6359 2014-06-18 Tom Tromey <tromey@redhat.com>
6361 * symtab.h (struct symtab) <blockvector>: Now const.
6362 * ada-lang.c (ada_add_global_exceptions): Update.
6363 * buildsym.c (augment_type_symtab): Update.
6364 * dwarf2read.c (dw2_lookup_symbol): Update.
6365 * jit.c (finalize_symtab): Update.
6366 * jv-lang.c (add_class_symtab_symbol): Update.
6367 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6369 * objfiles.c (objfile_relocate1): Update.
6370 * psymtab.c (lookup_symbol_aux_psymtabs)
6371 (maintenance_check_psymtabs): Update.
6372 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6374 * spu-tdep.c (spu_catch_start): Update.
6375 * symmisc.c (dump_symtab_1): Update.
6376 * symtab.c (lookup_global_symbol_from_objfile)
6377 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6378 (basic_lookup_transparent_type_quick)
6379 (basic_lookup_transparent_type, find_pc_sect_symtab)
6380 (find_pc_sect_line, search_symbols): Update.
6381 * block.c (find_block_in_blockvector): Make "bl" const.
6382 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6384 (blockvector_contains_pc): Make "bv" const.
6385 (block_for_pc_sect): Update.
6386 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6387 (blockvector_contains_pc): Update.
6388 * breakpoint.c (resolve_sal_pc): Update.
6389 * inline-frame.c (block_starting_point_at): Update.
6391 2014-06-18 Tom Tromey <tromey@redhat.com>
6393 * completer.c (complete_line): Make "line_buffer" const.
6394 * completer.h (complete_line): Update.
6396 2014-06-18 Tom Tromey <tromey@redhat.com>
6398 * symtab.c (add_macro_name): Remove unneeded cast.
6400 2014-06-18 Tom Tromey <tromey@redhat.com>
6402 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6403 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6405 2014-06-18 Tom Tromey <tromey@redhat.com>
6407 * probe.c (info_probes_for_ops): Make "arg" const.
6408 * probe.h (info_probes_for_ops): Update.
6410 2014-06-18 Tom Tromey <tromey@redhat.com>
6412 * varobj.c (varobj_create): Update.
6413 * valops.c (value_of_this): Update.
6414 * tracepoint.c (add_local_symbols, scope_info): Update.
6415 * symtab.h (struct general_symbol_info) <block>: Now const.
6416 * symtab.c (skip_prologue_sal)
6417 (default_make_symbol_completion_list_break_on)
6418 (skip_prologue_using_sal): Update.
6419 * stack.h (iterate_over_block_locals)
6420 (iterate_over_block_local_vars): Update.
6421 * stack.c (print_frame_args): Update.
6422 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6424 (get_selected_block): Make return type const.
6425 * python/py-frame.c (frapy_block): Update.
6426 * python/py-block.c (gdbpy_block_for_pc): Update.
6427 * p-exp.y (%union) <bval>: Now const.
6428 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6429 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6430 * m2-exp.y (%union) <bval>: Now const.
6431 * linespec.c (get_current_search_block): Make return type const.
6432 (create_sals_line_offset, find_label_symbols): Update.
6433 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6435 (block_starting_point_at): Make "block" const.
6436 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6437 (check_exception_resume): Update.
6438 * guile/scm-frame.c (gdbscm_frame_block): Update.
6439 * guile/scm-block.c (gdbscm_lookup_block): Update.
6440 * frame.h (get_frame_block): Update.
6441 (get_selected_block): Make return type const.
6442 * frame.c (frame_id_inner): Update.
6443 * f-valprint.c (info_common_command_for_block)
6444 (info_common_command): Update.
6445 * dwarf2loc.c (dwarf2_find_location_expression)
6446 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6447 (locexpr_describe_location_piece): Update.
6448 * c-exp.y (%union) <bval>: Now const.
6449 * breakpoint.c (resolve_sal_pc): Update.
6450 * blockframe.c (get_frame_block):Make return type const.
6451 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6452 (block_innermost_frame): Update.
6453 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6454 (block_for_pc, block_for_pc_sect): Update.
6455 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6457 (block_for_pc_sect, block_for_pc): Make return type const.
6458 * ax-gdb.c (gen_expr): Update.
6459 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6460 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6461 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6462 (ada_read_var_value): Update.
6463 * ada-exp.y (struct name_info) <block>: Now const.
6465 (block_lookup): Constify.
6467 2014-06-18 Gary Benson <gbenson@redhat.com>
6469 * nat/i386-dregs.h: New file.
6470 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6471 * i386-nat.h (i386-dregs.h): New include.
6472 (DR_FIRSTADDR): Now in i386-dregs.h.
6473 (DR_LASTADDR): Likewise.
6474 (DR_NADDR): Likewise.
6475 (DR_STATUS): Likewise.
6476 (DR_CONTROL): Likewise.
6477 (i386_debug_reg_state): Likewise.
6478 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6480 2014-06-18 Don Breazeal <donb@codesourcery.com>
6482 * breakpoint.c (set_longjmp_breakpoint): Call
6483 momentary_breakpoint_from_master with additional argument.
6484 (set_longjmp_breakpoint_for_call_dummy): Call
6485 momentary_breakpoint_from_master with additional argument.
6486 (set_std_terminate_breakpoint): Call
6487 momentary_breakpoint_from_master with additional argument.
6488 (momentary_breakpoint_from_master): Add argument to function
6489 definition and use it to initialize structure member flag.
6490 (clone_momentary_breakpoint): Call
6491 momentary_breakpoint_from_master with additional argument.
6492 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6493 member flags set in momentary_breakpoint_from_master.
6495 2014-06-18 Gary Benson <gbenson@redhat.com>
6497 * i386-nat.c (i386_show_dr): Renamed to
6498 i386_dr_show and made nonstatic. All uses updated.
6499 (i386_length_and_rw_bits): Renamed to
6500 i386_dr_length_and_rw_bits and made nonstatic.
6502 (i386_insert_aligned_watchpoint): Renamed to
6503 i386_dr_insert_aligned_watchpoint and made nonstatic.
6505 (i386_remove_aligned_watchpoint): Renamed to
6506 i386_dr_remove_aligned_watchpoint and made nonstatic.
6508 (i386_update_inferior_debug_regs): Renamed to
6509 i386_dr_update_inferior_debug_regs and made nonstatic.
6512 2014-06-18 Gary Benson <gbenson@redhat.com>
6514 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6515 (i386_dr_low_can_set_control): Likewise.
6516 (i386_dr_low_set_addr): Likewise.
6517 (i386_dr_low_set_control): Likewise.
6518 (i386_dr_low_get_addr): Likewise.
6519 (i386_dr_low_get_status): Likewise.
6520 (i386_dr_low_get_control): Likewise.
6521 (i386_insert_aligned_watchpoint): Use new macros.
6522 (i386_update_inferior_debug_regs): Likewise.
6523 (i386_stopped_data_address): Likewise.
6525 2014-06-18 Gary Benson <gbenson@redhat.com>
6527 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6528 New parameter. All uses updated.
6530 2014-06-18 Gary Benson <gbenson@redhat.com>
6532 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6535 2014-06-18 Gary Benson <gbenson@redhat.com>
6537 * i386-nat.c (debug_printf): New macro.
6538 (i386_get_debug_register_length): Likewise.
6539 (TARGET_HAS_DR_LEN_8): Use above macro.
6540 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6541 and printf_unfiltered. Use phex to format values.
6543 2014-06-18 Gary Benson <gbenson@redhat.com>
6545 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6548 2014-06-18 Gary Benson <gbenson@redhat.com>
6550 * i386-nat.c: Comment changes.
6552 2014-06-18 Gary Benson <gbenson@redhat.com>
6554 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6556 2014-06-18 Gary Benson <gbenson@redhat.com>
6558 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6559 (i386_insert_aligned_watchpoint): Likewise.
6560 (i386_remove_aligned_watchpoint): Likewise.
6561 (i386_handle_nonaligned_watchpoint): Likewise.
6563 2014-06-18 Gary Benson <gbenson@redhat.com>
6565 * i386-nat.c: Whitespace changes.
6567 2014-06-17 Samuel Bronson <naesten@gmail.com>
6569 * MAINTAINERS: Update Roland McGrath's email address.
6570 Thanks to Sergio Durigan Junior for pointing out that he left
6571 Red Hat a while ago, and giving me a current address.
6573 2014-06-17 Tom Tromey <tromey@redhat.com>
6575 * utils.h (savestring): Remove declaration.
6577 2014-06-17 Tom Tromey <tromey@redhat.com>
6579 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6581 2014-06-16 Keith Seitz <keiths@redhat.com>
6584 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6585 to update the varobj if inferior_ptid is null_ptid.
6587 2014-06-16 Tom Tromey <tromey@redhat.com>
6589 * target.h (struct target_ops) <to_info_proc>: Make parameter
6591 (target_info_proc): Update.
6592 * target.c (target_info_proc): Make "args" const.
6593 * procfs.c (procfs_info_proc): Update.
6594 * linux-tdep.c (linux_info_proc): Update.
6595 (linux_core_info_proc_mappings): Make "args" const.
6596 (linux_core_info_proc): Update.
6597 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6598 * gdbarch.c: Rebuild.
6599 * gdbarch.h: Rebuild.
6600 * corelow.c (core_info_proc): Update.
6602 2014-06-16 Tom Tromey <tromey@redhat.com>
6604 * target.h (struct target_ops) <to_disconnect>: Make parameter
6606 (target_disconnect): Update.
6607 * target.c (target_disconnect): Make "args" const.
6608 * target-delegates.c: Rebuild.
6609 * remote.c (remote_disconnect): Update.
6610 * record.h (record_disconnect): Update.
6611 * record.c (record_disconnect): Update.
6612 * inf-child.c (inf_child_disconnect): Update.
6614 2014-06-16 Tom Tromey <tromey@redhat.com>
6616 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6617 * target.c (debug_to_rcmd, default_rcmd): Update.
6618 * target-delegates.c: Rebuild.
6619 * remote.c (remote_rcmd): Update.
6620 * monitor.c (monitor_rcmd): Update.
6622 2014-06-16 Pedro Alves <palves@redhat.com>
6624 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6625 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6626 have OBJF_SHARED set.
6627 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6628 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6629 instead of OBJF_USERLOADED.
6630 * objfiles.h (OBJF_SHARED): Update comment.
6631 (userloaded_objfile_contains_address_p): Rename to ...
6632 (shared_objfile_contains_address_p): ... this, and update
6634 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6636 (remove_symbol_file_command): Skip objfiles that don't have
6639 2014-06-16 Tom Tromey <tromey@redhat.com>
6641 * minsyms.h (prim_record_minimal_symbol)
6642 (prim_record_minimal_symbol_and_info): Update comments.
6644 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6646 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6647 or --without-guile, according to how GDB was built.
6649 2014-06-13 Tom Tromey <tromey@redhat.com>
6651 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6653 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6655 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6657 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6658 help_list.Pass all_commands, not -1, to help_list.
6659 * cli/cli-dump.c (dump_command, append_command)
6660 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6661 (binary_dump_command, binary_append_command): Pass all_commands,
6662 not -1, to help_list.
6663 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6665 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6667 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6669 * top.c (set_history): Pass all_commands, not -1, to help_list.
6670 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6671 all_commands, not -1, to help_list.
6672 * symfile.c (overlay_command): Pass all_commands, not -1, to
6674 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6676 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6678 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6680 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6681 not -1, to help_list.
6682 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6683 not -1, to help_list.
6684 * maint.c (maintenance_command, maintenance_info_command)
6685 (maintenance_print_command, maintenance_set_cmd): Pass
6686 all_commands, not -1, to help_list.
6687 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6689 * language.c (set_check): Pass all_commands, not -1, to help_list.
6690 * infcmd.c (unset_command): Pass all_commands, not -1, to
6692 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6694 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6696 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6698 * breakpoint.c (save_command): Pass all_commands, not -1, to
6700 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6701 all_commands, not -1, to help_list.
6703 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6705 * regcache.c (struct register_to_invalidate): New structure.
6706 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6708 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6710 2014-06-12 Yao Qi <yao@codesourcery.com>
6712 * varobj.c (varobj_get_num_children): Call
6713 varobj_is_dynamic_p.
6714 (varobj_list_children): Likewise.
6715 (varobj_update): Likewise. Update comments.
6717 2014-06-12 Yao Qi <yao@codesourcery.com>
6719 * varobj.c (varobj_pretty_printed_p): Rename to ...
6720 (varobj_is_dynamic_p): ... this. New function.
6721 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6722 (varobj_is_dynamic_p): Declare.
6723 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6724 (mi_print_value_p, varobj_update_one): Likewise.
6726 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6727 Yao Qi <yao@codesourcery.com>
6729 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6730 (varobj_get_iterator): Wrap up code for pretty-printer by
6731 "#if HAVE_PYTHON" and "#endif".
6732 (update_dynamic_varobj_children): Likewise.
6734 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6735 Yao Qi <yao@codesourcery.com>
6737 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6738 gdb_python_initialized is false. Move some code from varobj.c.
6739 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6740 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6741 (struct varobj_item): Moved to varobj-iter.h".
6742 (varobj_clear_saved_item): New function.
6743 (update_dynamic_varobj_children): Move python-related code to
6745 (free_variable): Call varobj_clear_saved_item and
6748 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6749 Yao Qi <yao@codesourcery.com>
6751 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6752 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6753 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6754 (py-varobj.o): New rule.
6755 * python/py-varobj.c: New file.
6756 * python/python-internal.h (py_varobj_get_iterator): Declare.
6757 * varobj-iter.h: New file.
6758 * varobj.c: Include "varobj-iter.h"
6759 (struct varobj) <child_iter>: Change its type from "PyObject *"
6760 to "struct varobj_iter *".
6761 <saved_item>: Likewise.
6762 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6763 [HAVE_PYTHON] (varobj_get_iterator): New function.
6764 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6765 python-specific code to python/py-varobj.c.
6766 (install_visualizer): Call varobj_iter_delete instead of
6768 * varobj.h (varobj_ensure_python_env): Declare.
6770 2014-06-12 Yao Qi <yao@codesourcery.com>
6772 * varobj.c (struct varobj_item): New structure.
6773 (create_child_with_value): Update declaration.
6774 (varobj_add_child): Replace arguments 'name' and 'value' with
6775 'item'. All callers updated.
6776 (install_dynamic_child): Likewise.
6777 (update_dynamic_varobj_children): Likewise.
6778 (varobj_add_child): Likewise.
6779 (create_child_with_value): Likewise.
6781 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6783 * NEWS: Create a new section for the next release branch.
6784 Rename the section of the current branch, now that it has
6787 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6789 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6790 * version.in: Bump version to 7.8.50.DATE-cvs.
6792 2014-06-11 Pedro Alves <palves@redhat.com>
6795 * ser-mingw.c (net_windows_socket_check_pending): New function.
6796 (net_windows_select_thread): Ignore spurious wakeups. Use
6797 net_windows_socket_check_pending.
6798 (net_windows_wait_handle): Check for pending events with
6799 ioctlsocket, through net_windows_socket_check_pending, instead of
6800 checking the socket's event.
6802 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6804 * python/python-internal.h (gdb_PyObject_GetAttrString)
6805 (gdb_PyObject_HasAttrString): New inline function definitions.
6806 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6807 char * of the second argument to PyObject_GetAttrString.
6809 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6811 * serial.c (serial_write): Fix index of character to be printed
6812 in call to serial_logchar when serial debug traces are enabled.
6814 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6816 * gdbtypes (resolve_dynamic_range): Add function description.
6818 2014-06-09 Pedro Alves <palves@redhat.com>
6820 * linux-nat.c (linux_child_follow_fork): Initialize status with
6821 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6822 inner block. Only pass the signal to PTRACE_DETACH if in pass
6825 2014-06-09 Gary Benson <gbenson@redhat.com>
6827 * common/signals.c (gdb_signal_from_host): Reorder to separate
6828 the always-available ANSI-standard signals from the signals that
6830 (do_gdb_signal_to_host): Likewise.
6831 * proc-events.c (signal_table): Likewise.
6833 2014-06-08 Hui Zhu <hui@codesourcery.com>
6835 * common/linux-ptrace.c (linux_disable_event_reporting): New
6837 * common/linux-ptrace.h (linux_disable_event_reporting): New
6839 * linux-nat.c (linux_child_follow_fork): Do a single step before
6842 2014-06-07 Keith Seitz <keiths@redhat.com>
6846 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6847 from symbol_matches_domain in symtab.c. All local callers
6848 of symbol_matches_domain updated.
6849 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6850 search STRUCT_DOMAIN.
6851 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6852 independently. standard_lookup will do that automatically.
6853 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6854 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6855 (cp_lookup_symbol_in_namespace): Likewise.
6856 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6857 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6858 may return a STRUCT_DOMAIN match.
6859 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6860 * cp-support.c: Include language.h.
6861 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6863 * psymtab.c (match_partial_symbol): Compare the requested
6864 domain with the symbol's domain directly.
6865 (lookup_partial_symbol): Likewise.
6866 * symtab.c (lookup_symbol_in_language): Explain when/why
6867 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6869 appropriate languages.
6870 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6871 and moved to ada-lang.c
6872 (lookup_block_symbol): Explain that this function only returns
6873 symbol matching the requested DOMAIN.
6874 Compare the requested domain with the symbol's domain directly.
6875 (iterate_over_symbols): Compare the requested domain with the
6876 symbol's domain directly.
6877 * symtab.h (symbol_matches_domain): Remove.
6879 2014-06-06 Doug Evans <xdje42@gmail.com>
6881 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6882 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6883 (gdbscm_guile_version_is_at_least): Declare.
6884 (gdbscm_scm_string_to_int): Declare.
6885 * guile/guile.c (gdbscm_guile_major_version): New global.
6886 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6887 (guile_datadir): New static global.
6888 (gdbscm_guile_data_directory): New function.
6889 (initialize_scheme_side): Update.
6890 (misc_guile_functions): Add guile-data-directory.
6891 (initialize_gdb_module): Fetch guile version number.
6892 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6893 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6894 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6895 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6897 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6898 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6899 * guile/scm-value.c (gdbscm_value_to_string): Only call
6900 scm_port_conversion_strategy if Guile version >= 2.0.6.
6902 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6904 * main.c (print_gdb_help): Add -q and --silent.
6906 2014-06-06 Gary Benson <gbenson@redhat.com>
6908 * common/signals.c: Remove preprocessor conditionals for
6909 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6910 SIGSEGV and SIGTERM.
6911 * proc-events.c: Likewise.
6913 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6915 * symfile.c (symfile_free_objfile): Remove restriction to
6917 * symfile-mem.c (symbol_file_add_from_memory): Call
6918 add_target_sections_of_objfile.
6920 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6922 * guile/scm-value.c (gdbscm_history_append_x): Use
6923 'vlscm_get_value_smob_arg_unsafe' instead of
6924 'vlscm_scm_to_value'.
6926 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6929 * utils.c (printchar): Don't escape at all if quoter is NUL.
6930 Update function documentation to clarify effect of parameter
6932 * remote.c (escape_buffer): Pass '\\' as the quoter to
6933 fputstrn_unfiltered.
6934 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6935 generate the output.
6936 (mi_solib_unloaded): Same.
6938 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6940 * development.sh: Delete.
6941 * Makefile.in (config.status): Adjust dependency on development.sh.
6942 * configure.ac: Adjust development.sh source call.
6943 * configure: Regenerate.
6945 2014-06-04 Doug Evans <xdje42@gmail.com>
6947 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6948 is_scheme_bkpt, spec.
6949 (bpscm_make_breakpoint_smob): Initialize new members.
6950 (gdbscm_create_breakpoint_x): Split into two ...
6951 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6952 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6953 (scheme_function breakpoint_functions): Update.
6954 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6955 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6956 register-breakpoint!.
6958 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6961 * mem-break.c (z_type_supported): Return zero if
6962 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6964 2014-06-04 Tom Tromey <tromey@redhat.com>
6966 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6967 value_from_contents_and_address_unresolved.
6968 (ada_template_to_fixed_record_type_1): Likewise.
6969 (ada_which_variant_applies): Likewise.
6970 * value.h (value_from_contents_and_address_unresolved): Declare.
6971 * value.c (value_from_contents_and_address_unresolved): New
6973 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6974 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6975 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6977 2014-06-04 Tom Tromey <tromey@redhat.com>
6979 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6981 2014-06-04 Tom Tromey <tromey@redhat.com>
6983 * procfs.c (procfs_attach): Make "args" const.
6984 * windows-nat.c (windows_attach): Make "args" const.
6985 * nto-procfs.c (procfs_attach): Make "args" const.
6986 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6987 * go32-nat.c (go32_attach): Make "args" const.
6988 * gnu-nat.c (gnu_attach): Make "args" const.
6989 * darwin-nat.c (darwin_attach): Make "args" const.
6990 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6991 * linux-nat.c (linux_nat_attach): Make "args" const.
6992 * remote.c (extended_remote_attach_1, extended_remote_attach):
6994 * target.h (struct target_ops) <to_attach>: Make "args" const.
6995 (find_default_attach): Likewise.
6996 * utils.c (parse_pid_to_attach): Make "args" const.
6997 * utils.h (parse_pid_to_attach): Update.
6999 2014-06-04 Tom Tromey <tromey@redhat.com>
7001 * target-delegates.c: Rebuild.
7002 * target.c (default_thread_address_space): New function.
7003 (target_thread_address_space): Simplify.
7004 * target.h (struct target_ops) <to_thread_address_space>: Add
7005 TARGET_DEFAULT_FUNC.
7007 2014-06-04 Doug Evans <xdje42@gmail.com>
7009 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7011 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7013 * record-btrace.c: Include event-loop.h and inf-loop.h.
7014 (record_btrace_resume_exec_dir)
7015 (record_btrace_async_inferior_event_handler)
7016 (record_btrace_handle_async_inferior_event): New.
7017 (record_btrace_open): Create async event handler.
7018 (record_btrace_close): Delete async event handler.
7019 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7020 Mark async event handler.
7021 (record_btrace_execution_direction): New.
7022 (init_record_btrace_ops): Initialize to_execution_direction.
7024 2014-06-03 Doug Evans <xdje42@gmail.com>
7026 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7027 (gdbscm_make_parameter): Ditto.
7029 2014-06-03 Doug Evans <dje@google.com>
7031 * exec.c (exec_close_1): Call clear_section_table instead of
7032 resize_section_table.
7033 (clear_section_table): New function.
7034 (resize_section_table): Make static. Rename arg num_added to
7036 * exec.h (clear_section_table): Declare.
7037 (resize_section_table): Delete.
7038 * progspace.c (release_program_space): Call clear_section_table
7039 instead of resize_section_table.
7041 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7043 * NEWS (Python Scripting): Add entry about the new xmethods
7046 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7048 * python/py-xmethods.c: New file.
7049 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7050 (objfpy_dealloc): XDECREF on the new xmethods field.
7051 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7053 (objfpy_get_xmethods): New function.
7054 (objfile_getset): New entry 'xmethods'.
7055 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7056 (pspy_dealloc): XDECREF on the new xmethods field.
7057 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7059 (pspy_get_xmethods): New function.
7060 (pspace_getset): New entry 'xmethods'.
7061 * python/python-internal.h: Add declarations for new functions.
7062 * python/python.c (_initialize_python): Invoke
7063 gdbpy_initialize_xmethods.
7064 * python/lib/gdb/__init__.py (xmethods): New
7066 * python/lib/gdb/xmethod.py: New file.
7067 * python/lib/gdb/command/xmethods.py: New file.
7069 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7071 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7072 best match method returned by find_overload_match is an xmethod.
7073 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7074 the best matching operator returned by find_overload_match is an
7076 * valops.c: #include "extension.h".
7077 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7078 Return void. The list of matching source methods is returned in
7079 "fn_list" and a vector of matching debug method workers is
7080 returned in "xm_worker_vec". Update all callers.
7081 (value_find_oload_method_list): Likewise.
7082 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7083 non-NULL, then the index of the best matching method in this
7084 vector is returned. Update all callers.
7085 (find_overload_match): Include xmethods while performing overload
7088 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7090 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7091 * extension-priv.h (struct extension_language_ops): Add the
7093 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7094 get_matching_xmethod_workers, get_xmethod_argtypes,
7095 invoke_xmethod, free_xmethod_worker,
7096 free_xmethod_worker_vec): New functions.
7097 * extension.h: #include "common/vec.h".
7098 New function declarations.
7099 (struct xmethod_worker): New struct.
7100 (VEC (xmethod_worker_ptr)): New vector type.
7101 (xmethod_worker_ptr): New typedef.
7102 (xmethod_worker_vec): Likewise.
7103 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7105 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7106 (struct builtin_type): New field "xmethod".
7107 * valarith.c (value_ptradd): Assert that the value argument is not
7109 * valops.c (value_must_coerce_to_target): Return 0 for
7110 lval_xcallable values.
7111 * value.c (struct value): New field XM_WORKER in the field
7113 (value_address, value_raw_address): Return 0 for lval_xcallable
7115 (set_value_address): Assert that the value is not an
7117 (value_free): Free the associated xmethod worker when freeing
7118 lval_xcallable values.
7119 (set_value_component_location): Assert that the WHOLE value is not
7121 (value_of_xmethod, call_xmethod): New functions.
7122 * value.h: Declare "struct xmethod_worker".
7123 Declare new functions value_of_xmethod, call_xmethod.
7125 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7126 Pedro Alves <palves@redhat.com>
7128 PR breakpoints/17000
7129 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7130 New function, extracted from software_breakpoint_inserted_here_p.
7131 (software_breakpoint_inserted_here_p): Replace factored out code
7132 by call to find_non_raw_software_breakpoint_inserted_here.
7133 (bp_target_info_copy_insertion_state): New function.
7134 (bkpt_insert_location): Handle the case of a single-step
7135 breakpoint already inserted at the same address.
7136 (bkpt_remove_location): Handle the case of a single-step
7137 breakpoint still inserted at the same address.
7138 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7139 breakpoint already inserted at the same address.
7140 (deprecated_remove_raw_breakpoint): Handle the case of a
7141 non-raw breakpoint still inserted at the same address.
7142 (find_single_step_breakpoint): New function, extracted from
7143 single_step_breakpoint_inserted_here_p.
7144 (find_single_step_breakpoint): New function,
7145 factored out from single_step_breakpoint_inserted_here_p.
7146 (single_step_breakpoint_inserted_here_p): Reimplement.
7148 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7150 Pushed by Joel Brobecker <brobecker@adacore.com>
7151 * source.c (show_substitute_path_command): Fix display of matching
7154 2014-06-03 Gary Benson <gbenson@redhat.com>
7156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7158 2014-06-02 Doug Evans <xdje42@gmail.com>
7160 Add parameter support for Guile.
7161 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7162 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7163 (scm-param.o): New rule.
7164 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7165 (gdbscm_misc_error): Declare.
7166 (gdbscm_canonicalize_command_name): Declare.
7167 (gdbscm_scm_to_host_string): Declare.
7168 (gdbscm_scm_from_host_string): Declare.
7169 (gdbscm_initialize_parameters): Declare.
7170 * guile/guile.c (initialize_gdb_module): Call
7171 gdbscm_initialize_parameters.
7172 * guile/lib/gdb.scm: Export parameter symbols.
7173 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7174 cmdscm_canonicalize_name and made public. All callers updated.
7175 * guile/scm-exception.c (gdbscm_misc_error): New function.
7176 * guile/scm-param.c: New file.
7177 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7178 (gdbscm_scm_to_host_string): New function.
7179 (gdbscm_scm_from_host_string): New function.
7180 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7182 2014-06-02 Doug Evans <xdje42@gmail.com>
7184 Add command support for Guile.
7185 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7186 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7187 (scm-cmd.o): New rule.
7188 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7189 (gdbscm_user_error_p): Declare.
7190 (gdbscm_parse_command_name): Declare.
7191 (gdbscm_valid_command_class_p): Declare.
7192 (gdbscm_initialize_commands): Declare.
7193 * guile/guile.c (initialize_gdb_module): Call
7194 gdbscm_initialize_commands.
7195 * guile/lib/gdb.scm: Export command symbols.
7196 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7197 (throw-user-error): New function.
7198 * guile/scm-cmd.c: New file.
7199 * guile/scm-exception.c (user_error_symbol): New static global.
7200 (gdbscm_user_error_p): New function.
7201 (gdbscm_initialize_exceptions): Set user_error_symbol.
7202 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7204 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7206 * top.c (command_loop): Handle comments here...
7207 (command_line_input): ... not here.
7209 2014-06-02 Doug Evans <xdje42@gmail.com>
7211 Add progspace support for Guile.
7212 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7213 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7214 (scm-progspace.o): New rule.
7215 * guile/guile-internal.h (pspace_smob): New typedef.
7216 (psscm_pspace_smob_pretty_printers): Declare.
7217 (psscm_pspace_smob_from_pspace): Declare.
7218 (psscm_scm_from_pspace): Declare.
7219 * guile/guile.c (initialize_gdb_module): Call
7220 gdbscm_initialize_pspaces.
7221 * guile/lib/gdb.scm: Export progspace symbols.
7222 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7224 (append-pretty-printer!): Ditto.
7225 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7227 * guile/scm-progspace.c: New file.
7229 2014-06-03 Alan Modra <amodra@gmail.com>
7231 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7232 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7234 2014-06-02 Doug Evans <dje@google.com>
7236 Add support for skeletonless type units.
7237 * dwarf2read.c (struct dwarf2_per_objfile): New member
7238 n_allocated_type_units.
7239 (struct dwarf2_per_objfile) <tu_stats>: New member
7240 nr_all_type_units_reallocs.
7241 (create_signatured_type_table_from_index): Initialize
7242 n_allocated_type_units
7243 (create_all_type_units): Ditto.
7244 (add_type_unit): Move up in file. New arg slot.
7245 All callers updated. Increase space for all_type_units more
7247 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7248 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7249 (lookup_dwp_signatured_type): Ditto.
7250 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7251 All callers updated.
7252 (build_type_psymtabs_1): Leave type_unit_groups as
7253 NULL if no TUs present.
7254 (print_tu_stats): New function.
7255 (process_skeletonless_type_unit): New function.
7256 (process_dwo_file_for_skeletonless_type_units): New
7258 (process_skeletonless_type_units): New function.
7259 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7260 Call print tu_stats if debugging enabled.
7262 2014-06-02 Pedro Alves <palves@redhat.com>
7264 * breakpoint.c (build_target_command_list): Don't build a command
7265 list if we have any duplicate location that isn't a dprintf.
7267 2014-06-02 Pedro Alves <palves@redhat.com>
7269 * breakpoint.c (dprintf_breakpoint_hit): New function.
7270 (initialize_breakpoint_ops): Install it as dprintf's
7271 breakpoint_hit method.
7273 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7275 * source.c (substitute_path_rule_matches): Simplify using
7276 filename_ncmp instead of FILENAME_CMP.
7278 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7280 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7282 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7284 * configure.ac: When Guile is available, check for the
7285 availability of 'scm_new_smob'.
7286 * configure, config.h.in: Regenerate.
7287 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7290 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7292 * frame.c (struct frame_info): Add stop_string field.
7293 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7294 (get_prev_frame_always): Old content moved into
7295 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7296 TRY_CATCH, handle MEMORY_ERROR exceptions.
7297 (frame_stop_reason_string): New function definition.
7298 * frame.h (unwind_stop_reason_to_string): Extend comment to
7299 mention frame_stop_reason_string.
7300 (frame_stop_reason_string): New function declaration.
7301 * stack.c (frame_info): Switch to frame_stop_reason_string.
7302 (backtrace_command_1): Switch to frame_stop_reason_string.
7303 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7304 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7305 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7307 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7309 * frame.c (frame_stop_reason_string): Rename to ...
7310 (unwind_stop_reason_to_string): this.
7311 * frame.h (frame_stop_reason_string): Rename to ...
7312 (unwind_stop_reason_to_string): this.
7313 * stack.c (frame_info): Update call to frame_stop_reason_string.
7314 (backtrace_command_1): Likewise.
7315 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7316 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7318 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7320 * frame.c (remove_prev_frame): New function.
7321 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7324 2014-05-29 Pedro Alves <palves@redhat.com>
7326 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7327 and make it const. When a single-step decays to a continue,
7328 clear 'step', not 'hw_step'. Pass whether the caller wanted
7329 to step to user_visible_resume_ptid, not what we ask the
7332 2014-05-29 Pedro Alves <palves@redhat.com>
7334 * infrun.c (process_event_stop_test, handle_step_into_function)
7335 (handle_step_into_function_backward): Adjust.
7336 Don't set the even thread's stop_step and call stop_waiting before
7337 calling end_stepping_range. Instead do that ...
7338 (end_stepping_range): ... here. Take an ecs pointer parameter.
7340 2014-05-29 Pedro Alves <palves@redhat.com>
7342 * infrun.c (stop_stepping): Rename to ...
7343 (stop_waiting): ... this.
7344 (proceed): Update comment.
7345 (process_event_stop_test, handle_inferior_event)
7346 (handle_signal_stop, handle_step_into_function)
7347 (handle_step_into_function_backward): Update.
7349 2014-05-29 Pedro Alves <palves@redhat.com>
7351 * infcall.c (run_inferior_call): Don't check whether the current
7352 thread is running after the proceed call.
7354 2014-05-29 Pedro Alves <palves@redhat.com>
7355 Tom Tromey <tromey@redhat.com>
7357 * NEWS: Mention "maint set target-async", "set mi-async", and that
7358 background execution commands are now always available.
7359 * target.h (target_async_permitted): Update comment.
7360 * target.c (target_async_permitted, target_async_permitted_1):
7362 (set_target_async_command): Rename to ...
7363 (maint_set_target_async_command): ... this.
7364 (show_target_async_command): Rename to ...
7365 (maint_show_target_async_command): ... this.
7366 (_initialize_target): Adjust.
7367 * infcmd.c (prepare_execution_command): Make extern.
7368 * inferior.h (prepare_execution_command): Declare.
7369 * infrun.c (set_observer_mode): Leave target async alone.
7370 * mi/mi-interp.c (mi_interpreter_init): Install
7371 mi_on_sync_execution_done as sync_execution_done observer.
7372 (mi_on_sync_execution_done): New function.
7373 (mi_execute_command_input_handler): Don't print the prompt if we
7374 just started a synchronous command with an async target.
7375 (mi_on_resume): Check sync_execution before printing prompt.
7376 * mi/mi-main.h (mi_async_p): Declare.
7377 * mi/mi-main.c: Include gdbcmd.h.
7378 (mi_async_p): New function.
7379 (mi_async, mi_async_1): New globals.
7380 (set_mi_async_command, show_mi_async_command, mi_async): New
7382 (exec_continue): Call prepare_execution_command.
7383 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7384 (mi_execute_async_cli_command): Use mi_async_p.
7385 (_initialize_mi_main): Install "set mi-async". Make
7386 "target-async" a deprecated alias.
7388 2014-05-29 Pedro Alves <palves@redhat.com>
7390 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7391 (_initialize_cli_interp): Adjust.
7392 * event-loop.c: Include "observer.h".
7393 (start_event_loop): Notify 'command_error' observers instead of
7394 calling display_gdb_prompt. Remove FIXME comment.
7395 * event-top.c (display_gdb_prompt): Remove call into the
7397 * inf-loop.c: Include "observer.h".
7398 (inferior_event_handler): Notify 'command_error' observers instead
7399 of calling display_gdb_prompt.
7400 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7401 observers instead of calling display_gdb_prompt.
7402 * interps.c (interp_set): Don't call display_gdb_prompt.
7403 (current_interp_display_prompt_p): Delete.
7404 * interps.h (interp_prompt_p): Delete declaration.
7405 (interp_prompt_p_ftype): Delete.
7406 (struct interp_procs) <prompt_proc_p>: Delete field.
7407 (current_interp_display_prompt_p): Delete declaration.
7408 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7409 (_initialize_mi_interp): Adjust.
7410 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7411 'command_error' observers.
7412 (tui_on_sync_execution_done, tui_on_command_error): New
7414 (tui_display_prompt_p): Delete.
7415 (_initialize_tui_interp): Adjust.
7417 2014-05-29 Pedro Alves <palves@redhat.com>
7420 * cli/cli-interp.c: Include infrun.h and observer.h.
7421 (cli_uiout, cli_interp): New globals.
7422 (cli_on_signal_received, cli_on_end_stepping_range)
7423 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7425 (cli_interpreter_init): Install them as 'end_stepping_range',
7426 'signal_received' 'signal_exited', 'exited' and 'no_history'
7428 (_initialize_cli_interp): Remove cli_interp local.
7429 * infrun.c (handle_inferior_event): Call the several stop reason
7430 observers instead of printing the stop reason directly.
7431 (end_stepping_range): New function.
7432 (print_end_stepping_range_reason, print_signal_exited_reason)
7433 (print_exited_reason, print_signal_received_reason)
7434 (print_no_history_reason): Make static, and add an uiout
7435 parameter. Print to that instead of to CURRENT_UIOUT.
7436 * infrun.h (print_end_stepping_range_reason)
7437 (print_signal_exited_reason, print_exited_reason)
7438 (print_signal_received_reason print_no_history_reason): New
7440 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7442 <cli_uiout>: New field.
7443 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7444 uiout for CLI output. Install 'signal_received',
7445 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7447 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7448 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7449 (mi_on_no_history): New functions.
7450 (ui_out_free_cleanup): Delete function.
7451 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7452 instead use the one already stored in the MI interpreter data.
7453 (mi_ui_out): Adjust.
7454 * tui/tui-interp.c: Include infrun.h and observer.h.
7455 (tui_interp): New global.
7456 (tui_on_signal_received, tui_on_end_stepping_range)
7457 (tui_on_signal_exited, tui_on_exited)
7458 (tui_on_no_history): New functions.
7459 (tui_init): Install them as 'end_stepping_range',
7460 'signal_received' 'signal_exited', 'exited' and 'no_history'
7462 (_initialize_tui_interp): Delete tui_interp local.
7464 2014-05-29 Pedro Alves <palves@redhat.com>
7467 * linux-nat.c (linux_nat_resume_callback): Rename the second
7468 parameter to 'except'. Skip LP if it points to EXCEPT.
7469 (linux_nat_resume): Don't mark the event lwp as not stopped
7470 before resuming sibling lwps. Instead ask
7471 linux_nat_resume_callback to skip the event lwp. Mark it as not
7472 stopped after actually resuming it.
7473 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7475 (wait_lwp): Mark the lwp as stopped here.
7476 (stop_wait_callback): Mark the lwp as not stopped right after
7477 resuming it. Don't mark lwps as stopped here.
7478 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7479 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7481 2014-05-29 Pedro Alves <palves@redhat.com>
7484 * infrun.c (resume): Determine how much to resume depending on
7485 whether the caller wanted a step, not whether we can hardware step
7486 the target. Mark all threads that we intend to run as running,
7487 unless we're calling an inferior function.
7488 (normal_stop): If the thread is running an infcall, don't finish
7490 * target.c (target_resume): Don't mark threads as running here.
7492 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7494 * serial.c (_initialize_serial): Remove support for
7495 the "set remotebaud" and "show remotebaud" commands.
7496 * NEWS: Add entry documenting the removal of that command.
7498 2014-05-28 Yao Qi <yao@codesourcery.com>
7500 * charset.c: Fix typo in comments.
7502 2014-05-27 Gary Benson <gbenson@redhat.com>
7504 * utils.c (internal_vproblem): Prompt for a bug report.
7506 2014-05-26 Andy Wingo <wingo@igalia.com>
7508 * guile/scm-arch.c (arscm_mark_arch_smob):
7509 * guile/scm-block.c (bkscm_mark_block_smob)
7510 (bkscm_mark_block_syms_progress_smob):
7511 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7512 * guile/scm-exception.c (exscm_mark_exception_smob):
7513 * guile/scm-frame.c (frscm_mark_frame_smob):
7514 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7515 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7516 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7517 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7518 (ppscm_mark_pretty_printer_worker_smob):
7519 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7520 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7521 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7522 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7524 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7527 2014-05-26 Andy Wingo <wingo@igalia.com>
7528 Doug Evans <xdje42@gmail.com>
7530 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7531 empty_base_class. All uses updated.
7532 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7533 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7535 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7536 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7537 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7538 (gdbscm_gsmob_has_property_p, add_property_name)
7539 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7540 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7541 (gdb-object-has-property?, gdb-object-properties): Remove.
7542 (gdb-object-kind): Renamed from gsmob-kind.
7544 2014-05-26 Andy Wingo <wingo@igalia.com>
7546 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7547 * configure: Regenerate.
7549 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7551 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7553 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7555 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7556 (replay_memory_access_read_only, replay_memory_access_read_write)
7557 (replay_memory_access_types, replay_memory_access)
7558 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7559 (cmd_set_record_btrace, cmd_show_record_btrace)
7560 (cmd_show_replay_memory_access): New.
7561 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7562 (record_btrace_remove_breakpoint): Replace
7563 record_btrace_allow_memory_access with replay_memory_access.
7564 (_initialize_record_btrace): Add commands.
7565 * NEWS: Announce it.
7567 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7569 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7571 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7573 * MAINTAINERS (Write After Approval): Move self back from
7576 2014-05-22 Pedro Alves <palves@redhat.com>
7578 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7579 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7580 (disable_randomization, enum exec_direction_kind)
7581 (execution_direction, stop_registers, start_remote)
7582 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7583 (wait_for_inferior, normal_stop, get_last_target_status)
7584 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7585 (insert_step_resume_breakpoint_at_sal)
7586 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7587 (set_step_info, print_stop_event, signal_stop_state)
7588 (signal_print_state, signal_pass_state, signal_stop_update)
7589 (signal_print_update, signal_pass_update)
7590 (update_signals_program_target, clear_exit_convenience_vars)
7591 (displaced_step_dump_bytes, update_observer_mode)
7592 (signal_catch_update, gdb_signal_from_command): Move
7594 * infrun.h: ... to this new file.
7595 * amd64-tdep.c: Include infrun.h.
7596 * annotate.c: Include infrun.h.
7597 * arch-utils.c: Include infrun.h.
7598 * arm-linux-tdep.c: Include infrun.h.
7599 * arm-tdep.c: Include infrun.h.
7600 * break-catch-sig.c: Include infrun.h.
7601 * breakpoint.c: Include infrun.h.
7602 * common/agent.c: Include infrun.h instead of inferior.h.
7603 * corelow.c: Include infrun.h.
7604 * event-top.c: Include infrun.h.
7605 * go32-nat.c: Include infrun.h.
7606 * i386-tdep.c: Include infrun.h.
7607 * inf-loop.c: Include infrun.h.
7608 * infcall.c: Include infrun.h.
7609 * infcmd.c: Include infrun.h.
7610 * infrun.c: Include infrun.h.
7611 * linux-fork.c: Include infrun.h.
7612 * linux-nat.c: Include infrun.h.
7613 * linux-thread-db.c: Include infrun.h.
7614 * monitor.c: Include infrun.h.
7615 * nto-tdep.c: Include infrun.h.
7616 * procfs.c: Include infrun.h.
7617 * record-btrace.c: Include infrun.h.
7618 * record-full.c: Include infrun.h.
7619 * remote-m32r-sdi.c: Include infrun.h.
7620 * remote-mips.c: Include infrun.h.
7621 * remote-notif.c: Include infrun.h.
7622 * remote-sim.c: Include infrun.h.
7623 * remote.c: Include infrun.h.
7624 * reverse.c: Include infrun.h.
7625 * rs6000-tdep.c: Include infrun.h.
7626 * s390-linux-tdep.c: Include infrun.h.
7627 * solib-irix.c: Include infrun.h.
7628 * solib-osf.c: Include infrun.h.
7629 * solib-svr4.c: Include infrun.h.
7630 * target.c: Include infrun.h.
7631 * top.c: Include infrun.h.
7632 * windows-nat.c: Include infrun.h.
7633 * mi/mi-interp.c: Include infrun.h.
7634 * mi/mi-main.c: Include infrun.h.
7635 * python/py-threadevent.c: Include infrun.h.
7637 2014-05-22 Pedro Alves <palves@redhat.com>
7639 * infrun.c (handle_inferior_event): Store the exit code for
7640 --return-child-result here, instead of ...
7641 (print_exited_reason): ... here.
7643 2014-05-21 Pedro Alves <palves@redhat.com>
7646 * gdbthread.h (struct thread_control_state): New field
7648 * infrun.c (follow_fork): Copy the new thread control field to the
7650 (clear_proceed_status_thread): Clear the new thread control field.
7651 (proceed): Set the new thread control field.
7652 * interps.h (command_interp): Declare.
7653 * interps.c (command_interpreter): New global.
7654 (command_interp): New function.
7655 (interp_exec): Set `command_interpreter' while here.
7656 * cli-out.c (cli_uiout_dtor): New function.
7657 (cli_ui_out_impl): Install it.
7658 * mi/mi-interp.c: Include cli-out.h.
7659 (mi_cmd_interpreter_exec): Add comment.
7660 (restore_current_uiout_cleanup): New function.
7661 (ui_out_free_cleanup): New function.
7662 (mi_on_normal_stop): If finishing an execution command started by
7663 a CLI command, or any kind of breakpoint-like event triggered,
7664 print the stop event to the output (CLI) stream.
7665 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7667 2014-05-21 Pedro Alves <palves@redhat.com>
7669 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7670 current source line having changed.
7671 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7672 * infrun.c (normal_stop): Adjust call to
7673 set_current_sal_from_frame.
7674 * source.c (clear_lines_listed_range): New function.
7675 (set_current_source_symtab_and_line, identify_source_line): Clear
7676 the lines listed range.
7677 (line_info): Handle the first "info line" after the current source
7678 line having changed.
7679 * stack.c (print_stack_frame): Remove center handling.
7680 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7683 2014-05-21 Pedro Alves <palves@redhat.com>
7685 * inf-child.c (inf_child_mourn_inferior): New function.
7686 * inf-child.h (inf_child_mourn_inferior): New declaration.
7687 * darwin-nat.c (darwin_mourn_inferior): Use
7688 inf_child_mourn_inferior.
7689 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7690 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7691 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7692 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7693 * windows-nat.c (windows_mourn_inferior): Likewise.
7695 2014-05-21 Doug Evans <xdje42@gmail.com>
7697 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7699 2014-05-21 Doug Evans <xdje42@gmail.com>
7701 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7702 (gdbscm_out_of_range_error): Ditto.
7703 (gdbscm_memory_error): Ditto.
7704 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7705 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7706 (gdbscm_out_of_range_error): Update.
7707 (gdbscm_memory_error): Update.
7708 (gdbscm_scm_to_target_string_unsafe): Delete.
7710 2014-05-21 Pedro Alves <palves@redhat.com>
7712 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7714 (inf_child_open_target): New function.
7715 (inf_child_open): Use inf_child_open_target to push the target
7716 instead of erroring out.
7717 (inf_child_disconnect, inf_child_close)
7718 (inf_child_maybe_unpush_target): New functions.
7719 (inf_child_target): Install inf_child_disconnect and
7720 inf_child_close. Store a pointer to the returned object.
7721 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7723 * target.c (auto_connect_native_target): New global.
7724 (show_default_run_target): New function.
7725 (find_default_run_target): Return NULL if automatically connecting
7726 to the native target is disabled.
7727 (_initialize_target): Install set/show auto-connect-native-target.
7728 * NEWS: Mention "set auto-connect-native-target", and "target
7730 * linux-nat.c (super_close): New global.
7731 (linux_nat_close): Call super_close.
7732 (linux_nat_add_target): Store a pointer to the base class's
7734 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7735 inf_child_maybe_unpush.
7736 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7738 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7739 the inferior. Use inf_child_maybe_unpush_target.
7740 (inf_ttrace_attach): Don't push the target if it is already
7742 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7743 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7744 after mourning the inferior. Use inf_child_maybe_unpush_target.
7745 (darwin_attach_pid): Don't push the target if it is already
7747 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7748 mourning the inferior. Use inf_child_maybe_unpush_target.
7749 (gnu_detach): Use inf_child_maybe_unpush_target.
7750 * go32-nat.c (go32_create_inferior): Don't push the target if it
7752 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7753 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7754 (procfs_open): Rename to ...
7755 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7756 comments. Can target_preopen before changing node. Call
7757 inf_child_open_target to push the target explicitly.
7758 (procfs_attach): Don't push the target if it is already pushed.
7759 (procfs_detach): Use inf_child_maybe_unpush_target.
7760 (procfs_create_inferior): Don't push the target if it is already
7762 (nto_native_ops): New global.
7763 (procfs_open): Reimplement.
7764 (procfs_native_open): New function.
7765 (init_procfs_targets): Install procfs_native_open as to_open of
7766 "target native". Store a pointer to the "native" target in
7768 * procfs.c (procfs_attach): Don't push the target if it is already
7770 (procfs_detach): Use inf_child_maybe_unpush_target.
7771 (procfs_mourn_inferior): Only unpush the target after mourning the
7772 inferior. Use inf_child_maybe_unpush_target.
7773 (procfs_init_inferior): Don't push the target if it is already
7775 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7776 if it is already pushed.
7778 2014-05-21 Pedro Alves <palves@redhat.com>
7780 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7781 and "procfs" targets are now called "native" instead.
7783 2014-05-21 Pedro Alves <palves@redhat.com>
7785 * go32-nat.c (go32_open): Delete.
7786 (go32_target): Don't override the to_open method.
7788 2014-05-21 Pedro Alves <palves@redhat.com>
7790 * nto-procfs.c (procfs_can_run): New function.
7791 (nto_procfs_ops): New global.
7792 (init_procfs_targets): New, based on procfs_target. Install
7793 "target native" in addition to "target procfs".
7794 (_initialize_procfs): Call init_procfs_targets instead of adding
7797 2014-05-21 Pedro Alves <palves@redhat.com>
7799 * windows-nat.c (windows_target): Don't override to_shortname,
7800 to_longname or to_doc.
7802 2014-05-21 Pedro Alves <palves@redhat.com>
7804 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7807 2014-05-21 Pedro Alves <palves@redhat.com>
7809 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7810 to_shortname, to_longname or to_doc.
7812 2014-05-21 Pedro Alves <palves@redhat.com>
7814 * go32-nat.c (go32_target): Don't override to_shortname,
7815 to_longname or to_doc.
7817 2014-05-21 Pedro Alves <palves@redhat.com>
7819 * inf-child.c (inf_child_open): Remove mention of "child".
7820 (inf_child_target): Rename target to "native" instead of "child".
7822 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7824 * Makefile.in (SFILES): Delete "regset.c".
7825 (COMMON_OBS): Delete "regset.o".
7827 * regset.h (regset_alloc): Delete prototype.
7829 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7831 * sparc-linux-tdep.c (sparc32_linux_gregset)
7832 (sparc32_linux_fpregset): New static regset structures.
7833 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7834 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7836 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7837 (sparc64_linux_fpregset): New static regset structures.
7838 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7839 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7840 New static regset structures.
7841 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7842 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7843 New static regset structures.
7844 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7845 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7846 New static regset structures.
7847 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7848 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7849 New static regset structures.
7850 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7852 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7854 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7855 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7856 register maps ("regmaps") from "*regset" to "*regmap". Do this
7857 for all regmap types and variables.
7858 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7859 (sparc32_linux_supply_core_gregset)
7860 (sparc32_linux_collect_core_gregset)
7861 (sparc32_linux_supply_core_fpregset)
7862 (sparc32_linux_collect_core_fpregset): Likewise.
7863 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7864 (sparc_gregmap, sparc_fpregmap): ... these.
7865 (sparc_supply_gregset, sparc_collect_gregset)
7866 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7867 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7868 (_initialize_sparc_nat): Rename regmaps.
7869 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7870 (sparc_gregmap, sparc_fpregmap): ... these.
7871 (sparc_supply_gregset, sparc_collect_gregset)
7872 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7873 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7875 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7876 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7878 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7880 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7881 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7882 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7884 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7885 (sparc32_bsd_fpregset): Rename to...
7886 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7887 (sparc32_bsd_fpregmap): ... these.
7888 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7889 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7890 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7891 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7892 (struct sparc_gregmap, struct sparc_fpregmap)
7893 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7894 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7895 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7896 (sparc32_supply_regset, sparc32_collect_gregset)
7897 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7899 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7900 (sparc64_linux_ptrace_gregmap): ... this.
7901 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7902 (_initialize_sparc64_linux_nat): Rename regmaps.
7903 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7904 (sparc64_linux_core_gregmap): ... this.
7905 (sparc64_linux_supply_core_gregset)
7906 (sparc64_linux_collect_core_gregset)
7907 (sparc64_linux_supply_core_fpregset)
7908 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7909 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7910 (sparc64_sol2_fpregset): Rename to...
7911 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7912 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7913 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7915 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7916 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7917 (sparc64_bsd_fpregset): Rename to...
7918 (struct sparc_gregmap, sparc64_sol2_gregmap)
7919 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7920 (sparc64_bsd_fpregmap): ... these.
7921 (sparc64_supply_gregset, sparc64_collect_gregset)
7922 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7924 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7925 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7926 (sparc64fbsd_gregmap): ... this.
7927 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7928 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7930 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7931 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7932 (sparc64nbsd_collect_fpregset): Likewise.
7933 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7934 (sparc64nbsd_gregmap): ... this.
7935 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7937 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7938 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7939 (sparc64obsd_gregmap): ... this.
7940 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7942 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7943 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7944 (sparc32nbsd_gregmap): ... this.
7945 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7948 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7950 * score-tdep.c (score7_linux_gregset): New static regset
7952 (score7_linux_regset_from_core_section): Remove dynamic regset
7954 (score_gdbarch_init): Drop allocation of tdep structure.
7955 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7957 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7959 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7961 (am33_regset_from_core_section): Remove dynamic regset
7964 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7966 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7967 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7969 (mips_linux_regset_from_core_section): Remove dynamic regset
7971 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7972 'gregset64', 'fpregset', and 'fpregset64'.
7973 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7974 deleted tdep fields.
7976 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7978 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7980 (amd64_regset_from_core_section): Remove dynamic regset
7982 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7984 (amd64obsd_regset_from_core_section): Remove dynamic regset
7986 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7988 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7989 x86-common regset supply function.
7990 * i386-tdep.c (i386_collect_gregset): Make static.
7991 (i386_gregset): New global regset structure.
7992 (i386_fpregset, i386_xstateregset): New static regset structures.
7993 (i386_regset_from_core_section): Remove dynamic regset
7995 (i386_gdbarch_init): Remove initialization of tdep fields
7996 'gregset', 'fpregset', and 'xstateregset'.
7997 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7998 'fpregset', and 'xstateregset'.
7999 (i386_collect_gregset): Remove prototype.
8000 (i386_gregset): New declaration.
8001 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8003 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8006 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8008 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8009 (arm_linux_vfpregset): New static regset structures.
8010 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8012 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8013 and 'vfpregset' fields.
8015 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8017 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8018 (aarch64_linux_fpregset): New static regset structures.
8019 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8020 of regset structures.
8021 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8024 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8026 * regset.h (struct regset): Remove gdbarch field.
8027 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8028 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8029 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8031 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8032 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8033 (ppc32_linux_vsxregset): Likewise.
8034 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8035 via the regcache instead of the regset.
8036 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8037 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8038 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8039 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8042 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8044 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8045 Constify structures.
8046 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8047 (alphanbsd_aout_gregset): Likewise.
8048 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8049 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8051 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8052 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8054 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8055 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8056 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8057 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8058 * m88k-tdep.c (m88k_gregset): Likewise.
8059 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8060 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8061 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8062 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8063 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8064 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8065 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8066 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8067 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8069 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8070 * sh-tdep.h (sh_corefile_gregset): Likewise.
8071 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8072 * vax-tdep.c (vax_gregset): Likewise.
8074 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8076 Fix TLS access for -static -pthread.
8077 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8078 (try_thread_db_load_1): Initialize it.
8079 (thread_db_get_thread_local_address): Call it if LM is zero.
8080 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8081 * target.h (struct target_ops) (to_get_thread_local_address): Add
8082 load_module_addr comment.
8084 2014-05-21 Pedro Alves <palves@redhat.com>
8086 * dcache.c (dcache_read_memory_partial): If reading the cache line
8087 fails, fallback to reading just the memory the caller wanted.
8089 2014-05-20 Doug Evans <dje@google.com>
8091 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8092 instead of get_current_arch.
8094 2014-05-20 Pedro Alves <palves@redhat.com>
8096 * NEWS: Mention that compare-sections now works with all targets.
8098 * remote.c (PACKET_qCRC): New enum value.
8099 (remote_verify_memory): Don't send qCRC if the target has no
8100 execution. Use packet_support/packet_ok. If the target doesn't
8101 support the qCRC packet, fallback to a deep memory copy.
8102 (compare_sections_command): Say "target image" instead of "remote
8104 (_initialize_remote): Add PACKET_qCRC to the list of config
8105 packets that have no associated command. Extend comment.
8106 * target.c (simple_verify_memory, default_verify_memory): New
8108 * target.h (struct target_ops) <to_verify_memory>: Default to
8109 default_verify_memory.
8110 (simple_verify_memory): New declaration.
8111 * target-delegates.c: Regenerate.
8113 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8115 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8117 2014-05-20 Hui Zhu <hui@codesourcery.com>
8118 Yao Qi <yao@codesourcery.com>
8121 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8122 and change address of sp and pc.
8124 2014-05-19 Tom Tromey <tromey@redhat.com>
8126 * gdbtypes.c (rank_function): Use XNEWVEC.
8127 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8129 2014-05-19 Doug Evans <dje@google.com>
8131 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8132 build_type_unit_groups and moved closer to only caller. Remove
8133 arguments. All references updated. Remove outdated .gdb_index
8135 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8136 build_type_psymtabs_1.
8138 2014-05-19 Doug Evans <dje@google.com>
8140 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8141 n_type_unit_groups, all_type_unit_groups. All uses removed.
8142 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8143 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8144 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8145 (add_type_unit_group_to_table): Delete.
8147 2014-05-19 Doug Evans <dje@google.com>
8149 * eval.c (evaluate_subexp_standard): Add some comments.
8151 2014-05-17 Doug Evans <xdje42@gmail.com>
8153 * progspace.c (remove_program_space): Delete, unused.
8154 * progspace.h (remove_program_space): Ditto.
8156 2014-05-17 Doug Evans <xdje42@gmail.com>
8158 * inferior.c (prune_inferiors): Fix comment.
8159 (remove_inferior_command): Call prune_program_spaces.
8161 2014-05-16 Doug Evans <dje@google.com>
8163 New command line option -D.
8165 * main.c (set_gdb_data_directory): New function.
8166 (captured_main): Recognize -D. Flag error for --data-directory "".
8167 Call set_gdb_data_directory.
8168 (print_gdb_help): Print --data-directory, -D.
8169 * main.h (set_gdb_data_directory): Declare.
8170 * top.c (staged_gdb_datadir): New static global.
8171 (set_gdb_datadir): Call set_gdb_data_directory
8172 (show_gdb_datadir): New function.
8173 (init_main): Update init of data-directory parameter.
8175 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8177 Import the "dirfd" gnulib module.
8178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8179 * gnulib/aclocal.m4: Update.
8180 * gnulib/config.in: Update.
8181 * gnulib/configure: Update.
8182 * gnulib/import/Makefile.am: Update.
8183 * gnulib/import/Makefile.in: Update.
8184 * gnulib/import/dirfd.c: New.
8185 * gnulib/import/m4/dirfd.m4: New.
8186 * gnulib/import/m4/gnulib-cache.m4: Update.
8187 * gnulib/import/m4/gnulib-comp.m4: Update.
8189 2014-05-16 Pierre Muller <muller@sourceware.org>
8190 Yao Qi <yao@codesourcery.com>
8192 * valprint.c (print_wchar): Move the code on checking whether
8193 W is a printable wide char to the default branch of switch
8194 statement below. Call wchar_printable instead of gdb_iswprint.
8196 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8198 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8199 ldr.w and ldrd instructions.
8201 2014-05-15 Doug Evans <dje@google.com>
8203 * dwarf2read.c (read_structure_type): Delete outdated comments.
8205 2014-05-14 Tom Tromey <tromey@redhat.com>
8207 * macrocmd.c (print_macro_definition): Reindent.
8209 2014-05-13 Doug Evans <xdje42@gmail.com>
8211 * python/py-cmd.c (cmdpy_completer): Add comment.
8212 (completers): Make const.
8214 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8216 * infrun.c (resume): Remove should_resume (unused). Move up
8217 declaration of resume_ptid.
8219 2014-05-13 Tom Tromey <tromey@redhat.com>
8221 * language.h (unop_type_check): Remove.
8222 (binop_type_check): Don't declare.
8224 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8226 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8227 call to regcache_raw_collect.
8229 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8231 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8232 mi_console->quote as the quoting character.
8234 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8236 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8238 2014-04-29 Tom Tromey <tromey@redhat.com>
8240 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8241 "show debug varobj".
8243 2014-05-07 Kyle McMartin <kyle@redhat.com>
8245 Pushed by Joel Brobecker <brobecker@adacore.com>.
8246 * aarch64-tdep.c (aarch64_software_single_step): New function.
8247 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8248 with aarch64_software_single_step.
8250 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8254 2014-05-05 Keith Seitz <keiths@redhat.com>
8256 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8257 variable or history value is successfully parsed.
8259 2014-05-05 Yao Qi <yao@codesourcery.com>
8260 Pedro Alves <palves@redhat.com>
8262 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8263 address of blocks that intersects the requested range. Trim
8264 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8266 * ctf.c (ctf_xfer_partial): Likewise.
8268 2014-05-05 Yao Qi <yao@codesourcery.com>
8270 * printcmd.c (display_command): Remove the check to
8271 target_has_execution.
8273 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8275 * ppcobsd-nat.c: Include "obsd-nat.h".
8276 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8278 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8280 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8282 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8283 and 16-bit signed and unsigned arguments. Update comment.
8284 (stap_parse_probe_arguments): Extend code to handle such
8285 arguments. Use warning instead of complaint to notify about
8286 unrecognized bitness.
8288 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8290 PR breakpoints/16889
8291 * stap-probe.c (stap_parse_probe_arguments): Simplify
8292 check for non-prefixed probes (i.e., probes whose
8293 arguments do not start with "N@"). Always set the
8294 argument type to a sane value.
8296 2014-05-01 David Taylor <dtaylor@emc.com>
8298 * remote.c (compare_sections_command): Add -r option to compare
8299 all loadable read-only sections.
8301 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8303 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8304 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8306 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8307 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8308 Remove unused CORE_ADDR argument. Update all callers.
8310 2014-04-29 Pedro Alves <palves@redhat.com>
8312 * remote.c (struct packet_config) <detect>: Extend comment.
8313 (add_packet_config_cmd): Don't set the config's detect or support
8315 (init_all_packet_configs): Also initialize the config's 'detect'
8317 (reset_all_packet_configs_support): New function.
8318 (remote_open_1): Call reset_all_packet_configs_support instead of
8319 init_all_packet_configs.
8320 (_initialize_remote): Initialize all packet configs. Assert that
8321 all packets have an associated command, except a few known
8324 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8326 * dwarf2read.c (read_subrange_type): Handle dynamic
8327 DW_AT_lower_bound attributes.
8329 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8331 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8332 dynamic bounds before computing its upper bound.
8333 (ada_discrete_type_low_bound): Same as above with the lower bound.
8335 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8337 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8338 range types. Adjust the array handling implementation to
8339 take advantage of this change.
8340 (resolve_dynamic_range): New function, mostly extracted from
8341 resolve_dynamic_bounds.
8342 (resolve_dynamic_array): New function, mostly extracted from
8343 resolve_dynamic_bounds.
8344 (resolve_dynamic_bounds): Delete.
8345 (resolve_dynamic_type): Reimplement. Add handling of
8346 TYPE_CODE_RANGE types.
8348 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8350 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8351 handling of parallel ___XA types.
8353 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8355 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8356 unnecessary second call to static_unwrap_type.
8358 2014-04-27 Hui Zhu <hui@codesourcery.com>
8360 * stack.c (print_frame_info): Call do_gdb_disassembly with
8361 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8363 2014-04-26 Doug Evans <xdje42@gmail.com>
8365 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8367 2014-04-25 Pedro Alves <palves@redhat.com>
8370 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8371 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8372 and newline from built string.
8373 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8374 (linux_ptrace_attach_fail_reason): ... this.
8375 * linux-nat.c (linux_nat_attach): Adjust to use
8376 linux_ptrace_attach_fail_reason.
8378 2014-04-25 Pedro Alves <palves@redhat.com>
8380 * remote.c (struct remote_state): Remove multi_process_aware,
8381 non_stop_aware, cond_tracepoints, cond_breakpoints,
8382 breakpoint_commands, fast_tracepoints, static_tracepoints,
8383 install_in_trace, disconnected_tracing,
8384 enable_disable_tracepoints, string_tracing, and
8385 augmented_libraries_svr4_read fields.
8386 (remote_multi_process_p): Move further below in the file.
8387 (struct packet_config): Add comments.
8388 (update_packet_config): Delete function.
8389 (show_packet_config_cmd): Use packet_config_support.
8390 (add_packet_config_cmd): Use NULL as set callback.
8391 (packet_ok): "set remote foo-packet"-style commands no longer
8392 change config->supported -- adjust.
8393 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8394 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8395 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8396 (PACKET_QNonStop, PACKET_multiprocess_feature)
8397 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8398 (PACKET_DisconnectedTracing_feature)
8399 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8400 (set_remote_protocol_packet_cmd): Delete function.
8401 (packet_config_support, packet_support): New functions.
8402 (set_remote_protocol_Z_packet_cmd): Don't call
8403 update_packet_config.
8404 (remote_query_attached, remote_pass_signals)
8405 (remote_program_signals, remote_threads_info)
8406 (remote_threads_extra_info, remote_start_remote): Use
8408 (remote_start_remote): Use packet_config_support and
8410 (init_all_packet_configs): Set all packets to unknown support,
8411 instead of calling update_packet_config.
8412 (remote_check_symbols): Use packet_support.
8413 (remote_supported_packet): Unconditionally set the packet config's
8415 (remote_multi_process_feature, remote_non_stop_feature)
8416 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8417 (remote_breakpoint_commands_feature)
8418 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8419 (remote_install_in_trace_feature)
8420 (remote_disconnected_tracing_feature)
8421 (remote_enable_disable_tracepoint_feature)
8422 (remote_string_tracing_feature)
8423 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8424 (remote_protocol_features): Adjust to use remote_supported_packet
8425 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8426 "ConditionalTracepoints", "ConditionalBreakpoints",
8427 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8428 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8429 "EnableDisableTracepoints", and "tracenz".
8430 (remote_query_supported): Use packet_support.
8431 (remote_open_1): Adjust.
8432 (extended_remote_attach_1): Use packet_support. Switch on the
8433 result of packet_ok instead of checking whether the packet ended
8435 (remote_vcont_resume): Use packet_support.
8436 (remote_resume, remote_stop_ns, fetch_register_using_p)
8437 (remote_prepare_to_store, store_register_using_P)
8438 (check_binary_download, remote_write_bytes): Use packet_support.
8439 (remote_vkill): Use packet_support. Switch on the result of
8440 packet_ok instead of checking whether the packet ended up
8442 (extended_remote_supports_disable_randomization): Use
8444 (extended_remote_run): Switch on the result of packet_ok instead
8445 of checking whether the packet ended up disabled.
8446 (remote_insert_breakpoint, remote_remove_breakpoint)
8447 (remote_insert_watchpoint, remote_remove_watchpoint)
8448 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8450 (remote_search_memory): Use packet_config_support.
8451 (remote_get_thread_local_address, remote_get_tib_address)
8452 (remote_hostio_send_command, remote_can_execute_reverse): Use
8454 (remote_supports_cond_tracepoints)
8455 (remote_supports_cond_breakpoints)
8456 (remote_supports_fast_tracepoints)
8457 (remote_supports_static_tracepoints)
8458 (remote_supports_install_in_trace)
8459 (remote_supports_enable_disable_tracepoint)
8460 (remote_supports_string_tracing)
8461 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8462 the packet config says the feature is enabled or disabled.
8463 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8464 (remote_get_trace_status): Use packet_support.
8465 (remote_set_disconnected_tracing): Adjust to check whether the
8466 feature is enabled with packet_support.
8467 (remote_set_trace_buffer_size, remote_use_agent)
8468 (remote_can_use_agent, remote_supports_btrace): Use
8470 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8471 Use packet_config_support.
8472 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8473 the packet config says the feature is enabled or disabled.
8474 (set_range_stepping): Use packet_support.
8476 2014-04-25 Tom Tromey <tromey@redhat.com>
8478 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8481 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8483 * NEWS: Mention support for C99 variable length arrays.
8485 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8487 * ada-lang.c (standard_exc): Expand introductory comment.
8489 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8490 Walfred Tedeschi <walfred.tedeschi@intel.com>
8492 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8494 (amd64_linux_read_description): Add code to handle AVX512 xstate
8495 mask and return respective tdesc.
8496 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8497 and features/i386/x32-avx512-linux.c.
8498 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8499 (amd64_linux_core_read_description): Add code to handle AVX512
8500 xstate mask and return respective tdesc.
8501 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8502 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8504 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8505 (tdesc_amd64_avx512_linux): New prototype.
8506 (tdesc_x32_avx512_linux): Likewise.
8507 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8508 features/i386/x32-avx512.c.
8509 (amd64_ymm_avx512_names): New register names for pseudo
8511 (amd64_ymmh_avx512_names): New register names for raw registers
8513 (amd64_k_names): New register names for K registers.
8514 (amd64_zmmh_names): New register names for ZMM raw registers.
8515 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8516 (amd64_xmm_avx512_names): New register names for XMM16-31
8518 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8520 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8521 if feature is present.
8522 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8523 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8524 (AMD64_NUM_REGS): Adjust to new number of registers.
8525 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8526 registers supplied via XSTATE by AVX512 registers.
8527 (i386_linux_read_description): Add case for AVX512.
8528 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8529 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8530 (i386_linux_core_read_description): Add case for AVX512.
8531 (i386_linux_init_abi): Install supported register note section
8533 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8535 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8536 registers to be number of zmm7h + 1.
8537 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8538 * i386-tdep.c: Include features/i386/i386-avx512.c.
8539 (i386_zmm_names): Add ZMM pseudo register names array.
8540 (i386_zmmh_names): Add ZMM raw register names array.
8541 (i386_k_names): Add K raw register names array.
8542 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8543 registers. AVX512 has 16 more ZMM registers than there are YMM
8545 (i386_zmmh_regnum_p): Add function to look up register number of
8547 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8548 (i386_k_regnum_p): Likewise for K raw registers.
8549 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8550 registers added by AVX512.
8551 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8552 registers added by AVX512.
8553 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8555 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8556 (i386_pseudo_register_name): Add ZMM pseudo registers.
8557 (i386_zmm_type): Construct and return vector registers type for ZMM
8559 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8560 ZMM0-31 pseudo registers and K registers.
8561 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8562 and YMM16-31 registers from register cache.
8563 (i386_pseudo_register_write): Add code to write K, ZMM and
8565 (i386_register_reggroup_p): Add code to include/exclude AVX512
8566 registers in/from respective register groups.
8567 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8568 registers if feature is present in xcr0.
8569 (i386_gdbarch_init): Add code to initialize AVX512 feature
8570 variables in tdep structure, wire in pseudo registers and call
8571 initialize_tdesc_i386_avx512.
8572 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8574 (i386_regnum): Add AVX512 registers.
8575 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8576 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8577 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8578 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8580 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8581 (i386_ymm_avx512_regnum_p): Likewise.
8582 (i386_k_regnum_p): Likewise.
8583 (i386_zmm_regnum_p): Likewise.
8584 (i386_zmmh_regnum_p): Likewise.
8585 * i387-tdep.c : Update year in copyright notice.
8586 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8588 (XSAVE_YMM_AVX512_ADDR): New macro.
8589 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8591 (XSAVE_XMM_AVX512_ADDR): New macro.
8592 (xsave_avx512_k_offset): New table for K register offsets in
8594 (XSAVE_AVX512_K_ADDR): New macro.
8595 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8597 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8598 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8600 (i387_collect_xsave): Add code to collect AVX512 registers from
8602 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8603 of XMM16-31 registers.
8604 (I387_NUM_K_REGS): New define for number of K registers.
8605 (I387_K0_REGNUM): New define for K0 register number.
8606 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8607 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8608 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8610 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8611 (I387_XMM16_REGNUM): New define for XMM16 register number.
8612 (I387_YMM0_REGNUM): New define for YMM0 register number.
8613 (I387_KEND_REGNUM): New define for last K register number.
8614 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8615 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8617 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8619 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8621 * features/Makefile: Add AVX512 related files.
8622 * features/i386/32bit-avx512.xml: New file.
8623 * features/i386/64bit-avx512.xml: Likewise.
8624 * features/i386/amd64-avx512-linux.c: Likewise.
8625 * features/i386/amd64-avx512-linux.xml: Likewise.
8626 * features/i386/amd64-avx512.c: Likewise.
8627 * features/i386/amd64-avx512.xml: Likewise.
8628 * features/i386/i386-avx512-linux.c: Likewise.
8629 * features/i386/i386-avx512-linux.xml: Likewise.
8630 * features/i386/i386-avx512.c: Likewise.
8631 * features/i386/i386-avx512.xml: Likewise.
8632 * features/i386/x32-avx512-linux.c: Likewise.
8633 * features/i386/x32-avx512-linux.xml: Likewise.
8634 * features/i386/x32-avx512.c: Likewise.
8635 * features/i386/x32-avx512.xml: Likewise.
8636 * regformats/i386/amd64-avx512-linux.dat: New file.
8637 * regformats/i386/amd64-avx512.dat: Likewise.
8638 * regformats/i386/i386-avx512-linux.dat: Likewise.
8639 * regformats/i386/i386-avx512.dat: Likewise.
8640 * regformats/i386/x32-avx512-linux.dat: Likewise.
8641 * regformats/i386/x32-avx512.dat: Likewise.
8642 * NEWS: Add note about new support for AVX512.
8645 2014-04-23 Pedro Alves <palves@redhat.com>
8647 * breakpoint.c (insert_bp_location): Tolerate errors if the
8648 breakpoint is set in a user-loaded objfile.
8649 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8650 location is marked shlib_disabled. If the breakpoint is set in a
8651 user-loaded objfile is a GDB-side memory breakpoint, validate it
8652 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8653 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8655 * mem-break.c (memory_validate_breakpoint): New function.
8656 * objfiles.c (userloaded_objfile_contains_address_p): New
8658 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8659 * target.h (memory_validate_breakpoint): New declaration.
8661 2014-04-23 Pedro Alves <palves@redhat.com>
8663 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8664 the breakpoint is set in a shared library, only suppress
8665 errors for software breakpoints, not hardware breakpoints.
8667 2014-04-22 Pedro Alves <palves@redhat.com>
8669 * infrun.c (schedlock_applies): New function, factored out from
8670 find_thread_needs_step_over.
8671 (find_thread_needs_step_over): Use it.
8672 (switch_back_to_stepped_thread): Always clear trap_expected if the
8673 step over is finished. Return early if scheduler locking applies.
8674 Look for the stepping thread and a potential step-over thread with
8676 (currently_stepping_or_nexting_callback): Delete.
8678 2014-04-22 Nick Clifton <nickc@redhat.com>
8680 * NEWS: Mention that ARM sim now supports tracing.
8682 2014-04-22 Yao Qi <yao@codesourcery.com>
8684 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8686 * tracefile.c (tracefile_fetch_registers): ... it. New
8688 * tracefile.h (tracefile_fetch_registers): Declare.
8689 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8690 tracefile_fetch_registers.
8692 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8695 * windows-nat.c (thread_rec): Don't display a warning when
8696 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8697 fails for any reason, set th->suspended to -1, so that we don't
8698 try to resume such a thread. Also, don't return NULL in these
8699 cases, to avoid completely ruin the session due to "PC register is
8700 not available" error.
8701 (do_windows_fetch_inferior_registers): Check errors in
8702 GetThreadContext call.
8703 (windows_continue): Accept an additional argument KILLED; if not
8704 zero, ignore errors in the SetThreadContext call, since the
8705 inferior was killed and is shutting down.
8706 (windows_resume, get_windows_debug_event)
8707 (windows_create_inferior, windows_mourn_inferior)
8708 (windows_kill_inferior): All callers of windows_continue changed
8709 to adjust to its new calling sequence.
8711 2014-04-19 Yao Qi <yao@codesourcery.com>
8713 * ctf.c (ctf_open): Call post_create_inferior.
8715 2014-04-19 Yao Qi <yao@codesourcery.com>
8717 * ctf.c (handle_id): New static variable.
8718 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8719 value. Get the declaration of event "register" and get length
8720 of field "contents".
8722 2014-04-19 Yao Qi <yao@codesourcery.com>
8724 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8726 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8728 * valops.c (oload_method_static): Remove unnecessary argument
8729 METHOD. Update all callers.
8731 2014-04-18 Pedro alves <palves@redhat.com>
8732 Tom Tromey <tromey@redhat.com>
8735 * frame.c (get_prev_frame_1): Rename to ...
8736 (get_prev_frame_always): ... this, and make extern. Adjust.
8737 (skip_artificial_frames): Use get_prev_frame_always.
8738 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8739 (get_frame_unwind_stop_reason): Adjust to rename.
8740 * frame.h (get_prev_frame_always): Declare.
8741 * inline-frame.c: Include frame.h.
8742 (inline_frame_this_id): Use get_prev_frame_always.
8744 2014-04-18 Tristan Gingold <gingold@adacore.com>
8746 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8747 code by using bfd_mach_o_get_base_address.
8749 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8751 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8752 (spu_ax_pseudo_register_collect): New function.
8753 (spu_ax_pseudo_register_push_stack): Likewise.
8754 (spu_dwarf_reg_to_regnum): Likewise.
8755 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8757 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8759 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8760 Replace FRAME argument with FRAME_ID.
8761 * gdbarch.c, gdbarch.h: Regenerate.
8762 * findvar.c (default_value_from_register): Add GDBARCH argument;
8763 replace FRAME by FRAME_ID. No longer call get_frame_id.
8764 (value_from_register): Update call to gdbarch_value_from_register.
8765 * value.h (default_value_from_register): Update prototype.
8766 * s390-linux-tdep.c (s390_value_from_register): Update interface
8767 and call to default_value_from_register.
8768 * spu-tdep.c (spu_value_from_register): Likewise.
8770 * findvar.c (address_from_register): Remove TYPE argument.
8771 Do not call value_from_register; use gdbarch_value_from_register
8772 with null_frame_id instead.
8773 * value.h (address_from_register): Update prototype.
8774 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8775 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8776 address_from_register interface change.
8778 2014-04-17 Yao Qi <yao@codesourcery.com>
8780 * gdbtypes.h: Update comments to link to types and macros'
8783 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8785 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8787 2014-04-16 Keith Seitz <keiths@redhat.com>
8790 * dwarf2read.c (skip_one_die): Check that all relative-offset
8791 sibling DIEs fall within range of the current reader's buffer.
8792 (read_partial_die): Likewise.
8794 2014-04-16 Keith Seitz <keiths@redhat.com>
8797 * cp-namespace.c (lookup_symbol_file): If the type name of
8798 `this' is NULL, return immediately.
8800 2014-04-14 Keith Seitz <keiths@redhat.com>
8803 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8804 from symbol_matches_domain in symtab.c. All local callers
8805 of symbol_matches_domain updated.
8806 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8807 search STRUCT_DOMAIN.
8808 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8809 independently. standard_lookup will do that automatically.
8810 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8811 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8812 (cp_lookup_symbol_in_namespace): Likewise.
8813 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8814 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8815 may return a STRUCT_DOMAIN match.
8816 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8817 * cp-support.c: Include language.h.
8818 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8820 * psymtab.c (match_partial_symbol): Compare the requested
8821 domain with the symbol's domain directly.
8822 (lookup_partial_symbol): Likewise.
8823 * symtab.c (lookup_symbol_in_language): Explain when/why
8824 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8825 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8826 appropriate languages.
8827 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8828 and moved to ada-lang.c
8829 (lookup_block_symbol): Explain that this function only returns
8830 symbol matching the requested DOMAIN.
8831 Compare the requested domain with the symbol's domain directly.
8832 (iterate_over_symbols): Compare the requested domain with the
8833 symbol's domain directly.
8834 * symtab.h (symbol_matches_domain): Remove.
8836 2014-04-14 Tom Tromey <tromey@redhat.com>
8839 * c-exp.y (type_aggregate_p): New function.
8840 (qualified_name, classify_inner_name): Use it.
8841 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8842 and TYPE_TARGET_TYPE of an enum type.
8843 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8845 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8846 handle TYPE_DECLARED_CLASS.
8847 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8849 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8850 * valops.c (enum_constant_from_type): New function.
8851 (value_aggregate_elt): Use it.
8852 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8855 2014-04-14 Tom Tromey <tromey@redhat.com>
8857 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8858 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8860 * value.h (value_aggregate_elt): Update.
8862 2014-04-14 Tom Tromey <tromey@redhat.com>
8864 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8866 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8868 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8869 (evaluate_subexp_standard): Pass noside argument.
8870 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8871 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8872 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8873 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8874 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8876 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8878 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8879 points to a constant blob.
8881 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8883 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8884 property and store it as the high bound and flag the range accordingly.
8885 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8886 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8887 * gdbtypes.h (enum range_flags): New enum.
8888 (struct range_bounds): Add flags member.
8890 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8892 * c-typeprint.c (c_type_print_varspec_suffix): Added
8893 check for not yet resolved high bound. If unresolved, print
8894 "variable length" string to the console instead of random
8897 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8899 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8901 (ada_template_to_fixed_record_type_1): Likewise.
8902 (ada_to_fixed_type_1): Likewise.
8903 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8904 (cp_print_value): Likewise.
8905 * d-valprint.c (dynamic_array_type): Likewise.
8906 * findvar.c (address_of_variable): Likewise.
8907 * jv-valprint.c (java_value_print): Likewise.
8908 * valops.c (value_ind): Likewise.
8909 * value.c (coerce_ref): Likewise.
8911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8913 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8914 value and retrieve the dynamic type size.
8916 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8918 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8919 passed to sizeof is dynamic evaluate the argument to compute the length.
8921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8922 Joel Brobecker <brobecker@adacore.com>
8924 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8925 (dwarf2_evaluate_property): New function.
8926 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8927 * dwarf2read.c (attr_to_dynamic_prop): New function.
8928 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8930 * gdbtypes.c: Include dwarf2loc.h.
8931 (is_dynamic_type): New function.
8932 (resolve_dynamic_type): New function.
8933 (resolve_dynamic_bounds): New function.
8934 (get_type_length): New function.
8935 (check_typedef): Use get_type_length to compute type length.
8936 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8937 (TYPE_LOW_BOUND_KIND): New macro.
8938 (is_dynamic_type): New function prototype.
8939 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8940 to resolve dynamic properties of the type. Update comment.
8941 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8943 2014-04-14 Richard Henderson <rth@redhat.com>
8945 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8947 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8948 Doug Evans <xdje42@gmail.com>
8950 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8951 dereference TYPE_CODE_REF values.
8953 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8955 Revert the following changes due to regressions:
8957 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8958 (dwarf2_evaluate_property): New function.
8959 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8960 * dwarf2read.c (attr_to_dynamic_prop): New function.
8961 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8963 * gdbtypes.c: Include dwarf2loc.h.
8964 (is_dynamic_type): New function.
8965 (resolve_dynamic_type): New function.
8966 (resolve_dynamic_bounds): New function.
8967 (get_type_length): New function.
8968 (check_typedef): Use get_type_length to compute type length.
8969 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8970 (TYPE_LOW_BOUND_KIND): New macro.
8971 (is_dynamic_type): New function prototype.
8972 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8973 to resolve dynamic properties of the type. Update comment.
8974 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8976 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8977 passed to sizeof is dynamic evaluate the argument to compute the length.
8979 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8980 value and retrieve the dynamic type size.
8982 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8983 (ada_template_to_fixed_record_type_1): Likewise.
8984 (ada_to_fixed_type_1): Likewise.
8985 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8986 (cp_print_value): Likewise.
8987 * d-valprint.c (dynamic_array_type): Likewise.
8988 * eval.c (evaluate_subexp_with_coercion): Likewise.
8989 * findvar.c (address_of_variable): Likewise.
8990 * jv-valprint.c (java_value_print): Likewise.
8991 * valops.c (value_ind): Likewise.
8992 * value.c (coerce_ref): Likewise.
8994 * c-typeprint.c (c_type_print_varspec_suffix): Added
8995 check for not yet resolved high bound. If unresolved, print
8996 "variable length" string to the console instead of random
8999 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9000 property and store it as the high bound and flag the range accordingly.
9001 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9002 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9003 * gdbtypes.h (enum range_flags): New enum.
9004 (struct range_bounds): Add flags member.
9006 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9007 points to a constant blob.
9009 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9010 (evaluate_subexp_standard): Pass noside argument.
9011 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9012 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9013 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9014 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9015 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9017 2014-04-11 Keith Seitz <keiths@redhat.com>
9020 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9021 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9024 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9026 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9027 (evaluate_subexp_standard): Pass noside argument.
9028 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9029 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9030 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9031 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9032 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9034 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9036 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9037 points to a constant blob.
9039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9041 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9042 property and store it as the high bound and flag the range accordingly.
9043 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9044 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9045 * gdbtypes.h (enum range_flags): New enum.
9046 (struct range_bounds): Add flags member.
9048 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9050 * c-typeprint.c (c_type_print_varspec_suffix): Added
9051 check for not yet resolved high bound. If unresolved, print
9052 "variable length" string to the console instead of random
9055 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9057 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9058 (ada_template_to_fixed_record_type_1): Likewise.
9059 (ada_to_fixed_type_1): Likewise.
9060 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9061 (cp_print_value): Likewise.
9062 * d-valprint.c (dynamic_array_type): Likewise.
9063 * eval.c (evaluate_subexp_with_coercion): Likewise.
9064 * findvar.c (address_of_variable): Likewise.
9065 * jv-valprint.c (java_value_print): Likewise.
9066 * valops.c (value_ind): Likewise.
9067 * value.c (coerce_ref): Likewise.
9069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9071 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9072 value and retrieve the dynamic type size.
9074 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9076 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9077 passed to sizeof is dynamic evaluate the argument to compute the length.
9079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9081 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9082 (dwarf2_evaluate_property): New function.
9083 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9084 * dwarf2read.c (attr_to_dynamic_prop): New function.
9085 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9087 * gdbtypes.c: Include dwarf2loc.h.
9088 (is_dynamic_type): New function.
9089 (resolve_dynamic_type): New function.
9090 (resolve_dynamic_bounds): New function.
9091 (get_type_length): New function.
9092 (check_typedef): Use get_type_length to compute type length.
9093 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9094 (TYPE_LOW_BOUND_KIND): New macro.
9095 (is_dynamic_type): New function prototype.
9096 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9097 to resolve dynamic properties of the type. Update comment.
9098 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9102 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9103 declaring high/low bounds and change uses accordingly. Call
9104 create_range_type instead of create_static_range_type.
9105 * gdbtypes.c (create_range_type): New function.
9106 (create_range_type): Convert bounds into struct bound_prop and pass
9107 them to create_range_type.
9108 * gdbtypes.h (struct bound_prop): New struct.
9109 (create_range_type): New function prototype.
9110 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9111 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9112 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9114 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9118 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9119 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9120 * ada-lang.c: All uses of create_range_type updated.
9121 * coffread.c: All uses of create_range_type updated.
9122 * dwarf2read.c: All uses of create_range_type updated.
9123 * f-exp.y: All uses of create_range_type updated.
9124 * m2-valprint.c: All uses of create_range_type updated.
9125 * mdebugread.c: All uses of create_range_type updated.
9126 * stabsread.c: All uses of create_range_type updated.
9127 * valops.c: All uses of create_range_type updated.
9128 * valprint.c: All uses of create_range_type updated.
9130 2014-04-10 Pedro Alves <palves@redhat.com>
9132 * breakpoint.c (single_step_breakpoints)
9133 (single_step_gdbarch): Move up in the file.
9134 (one_breakpoint_xfer_memory): New function, factored out from ...
9135 (breakpoint_xfer_memory): ... here. Also process single-step
9138 2014-04-09 Tristan Gingold <gingold@adacore.com>
9140 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9142 (darwin_decode_exception_message): Free port only after use.
9144 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9146 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9147 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9148 when setting the size of call_length.
9150 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9152 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9153 dereference TYPE_CODE_REF values.
9155 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9157 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9158 end of warning message.
9160 2014-04-03 Doug Evans <dje@google.com>
9162 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9163 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9165 2014-04-02 Alan Modra <amodra@gmail.com>
9167 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9168 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9169 (struct symbol_file_add_from_memory_args): Add size field.
9170 (find_vdso_size): New function.
9171 (add_vsyscall_page): Attempt to find vdso size.
9173 2014-04-01 Doug Evans <dje@google.com>
9175 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9177 2014-04-01 Tristan Gingold <gingold@adacore.com>
9179 * darwin-nat.c (darwin_encode_reply): Add prototype.
9180 (darwin_decode_exception_message): Reply to unknown inferiors.
9181 (darwin_decode_message): Handle message by id. Ignore message
9182 to unknown inferior.
9183 (darwin_wait): Discard unknown messages, add debug trace.
9185 2014-03-31 Doug Evans <dje@google.com>
9187 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9190 2014-03-31 Doug Evans <dje@google.com>
9192 New option "set print symbol-loading".
9194 * solib.c (solib_read_symbols): Only print symbol loading messages
9196 (solib_add): If symbol loading is in "brief" mode, notify user
9197 symbols are being loaded.
9198 (reload_shared_libraries_1): Ditto.
9199 * symfile.c (print_symbol_loading_off): New static global.
9200 (print_symbol_loading_brief): New static global.
9201 (print_symbol_loading_full): New static global.
9202 (print_symbol_loading_enums): New static global.
9203 (print_symbol_loading): New static global.
9204 (print_symbol_loading_p): New function.
9205 (symbol_file_add_with_addrs): Only print symbol loading messages
9207 (_initialize_symfile): Register "print symbol-loading" set/show
9209 * symfile.h (print_symbol_loading_p): Declare.
9211 2014-03-30 Doug Evans <xdje42@gmail.com>
9213 * infrun.c (set_last_target_status): New function.
9214 (handle_inferior_event): Call it.
9216 2014-03-30 Doug Evans <xdje42@gmail.com>
9218 * inferior.h (enum stop_kind): Improve comment.
9220 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9222 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9223 a reference, strip the reference layer before calling
9224 the lang_ops value_has_mutated callback.
9226 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9228 Remove some globals from our parser.
9229 * language.c (unk_lang_parser): Add "struct parser_state"
9231 * language.h (struct language_defn) <la_parser>: Likewise.
9232 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9233 (initialize_expout): Add "struct parser_state" argument.
9234 Rewrite function to use the parser state.
9235 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9236 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9237 write_exp_elt_longcst, write_exp_elt_dblcst,
9238 write_exp_elt_decfloatcst, write_exp_elt_type,
9239 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9240 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9241 write_dollar_variable): Likewise.
9242 (parse_exp_in_context_1): Use parser state.
9243 (insert_type_address_space): Add "struct parser_state" argument.
9245 (increase_expout_size): New function.
9246 * parser-defs.h: Forward declare "struct language_defn" and
9247 "struct parser_state".
9248 (expout, expout_size, expout_ptr): Remove extern declarations.
9249 (parse_gdbarch, parse_language): Rewrite macro declarations to
9250 accept the parser state.
9251 (struct parser_state): New struct.
9252 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9253 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9254 write_exp_elt_decfloatcst, write_exp_elt_type,
9255 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9256 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9257 write_exp_msymbol, write_dollar_variable,
9258 mark_struct_expression, insert_type_address_space): Add "struct
9259 parser_state" argument.
9260 (increase_expout_size): New function.
9261 * utils.c (do_clear_parser_state): New function.
9262 (make_cleanup_clear_parser_state): Likewise.
9263 * utils.h (make_cleanup_clear_parser_state): New function
9265 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9266 Update calls to write_exp* in order to pass the parser state.
9267 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9268 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9269 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9270 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9271 * stap-probe.c (stap_parse_register_operand): Likewise.
9272 (stap_parse_single_operand): Likewise.
9273 (stap_parse_argument_1): Likewise.
9274 (stap_parse_argument): Use parser state.
9275 * stap-probe.h: Include "parser-defs.h".
9276 (struct stap_parse_info) <pstate>: New field.
9277 * c-exp.y (parse_type): Rewrite to use parser state.
9278 (yyparse): Redefine to c_parse_internal.
9279 (pstate): New global variable.
9280 (parse_number): Add "struct parser_state" argument.
9281 (write_destructor_name): Likewise.
9282 (type_exp): Update calls to write_exp* and similars in order to
9284 (exp1, exp, variable, qualified_name, space_identifier,
9285 typename, typebase): Likewise.
9286 (write_destructor_name, parse_number, lex_one_token,
9287 classify_name, classify_inner_name, c_parse): Add "struct
9288 parser_state" argument. Update function to use parser state.
9289 * c-lang.h: Forward declare "struct parser_state".
9290 (c_parse): Add "struct parser_state" argument.
9291 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9292 (yyparse): Redefine macro to ada_parse_internal.
9293 (pstate): New variable.
9294 (write_int, write_object_renaming, write_var_or_type,
9295 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9296 type_int, type_long, type_long_long, type_float, type_double,
9297 type_long_double, type_char, type_boolean, type_system_address):
9298 Add "struct parser_state" argument.
9299 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9300 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9301 var_or_type, aggregate, aggregate_component_list,
9302 positional_list, others, component_group,
9303 component_associations): Update calls to write_exp* and similar
9304 functions in order to use parser state.
9305 (ada_parse, write_var_from_sym, write_int,
9306 write_exp_op_with_string, write_object_renaming,
9307 find_primitive_type, write_selectors, write_ambiguous_var,
9308 write_var_or_type, write_name_assoc, type_int, type_long,
9309 type_long_long, type_float, type_double, type_long_double,
9310 type_char, type_boolean, type_system_address): Add "struct
9311 parser_state" argument. Adjust function to use parser state.
9312 * ada-lang.c (parse): Likewise.
9313 * ada-lang.h: Forward declare "struct parser_state".
9314 (ada_parse): Add "struct parser_state" argument.
9315 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9316 calls to both functions.
9317 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9319 (yyparse): Redefine macro to f_parse_internal.
9320 (pstate): New variable.
9321 (parse_number): Add "struct parser_state" argument.
9322 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9323 and similars in order to use parser state.
9324 (parse_number): Adjust code to use parser state.
9326 (f_parse): New function.
9327 * f-lang.h: Forward declare "struct parser_state".
9328 (f_parse): Add "struct parser_state" argument.
9329 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9331 (yyparse): Redefine macro for java_parse_internal.
9332 (pstate): New variable.
9333 (push_expression_name, push_expression_name, insert_exp): Add
9334 "struct parser_state" argument.
9335 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9336 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9337 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9338 PostIncrementExpression, PostDecrementExpression,
9339 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9340 UnaryExpressionNotPlusMinus, CastExpression,
9341 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9342 RelationalExpression, EqualityExpression, AndExpression,
9343 ExclusiveOrExpression, InclusiveOrExpression,
9344 ConditionalAndExpression, ConditionalOrExpression,
9345 ConditionalExpression, Assignment, LeftHandSide): Update
9346 calls to write_exp* and similars in order to use parser state.
9347 (parse_number): Ajust code to use parser state.
9349 (java_parse): New function.
9350 (push_variable): Add "struct parser_state" argument. Adjust
9351 code to user parser state.
9352 (push_fieldnames, push_qualified_expression_name,
9353 push_expression_name, insert_exp): Likewise.
9354 * jv-lang.h: Forward declare "struct parser_state".
9355 (java_parse): Add "struct parser_state" argument.
9356 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9358 (yyparse): Redefine macro to m2_parse_internal.
9359 (pstate): New variable.
9360 (type_exp, exp, fblock, variable, type): Update calls to
9361 write_exp* and similars to use parser state.
9363 (m2_parse): New function.
9364 * m2-lang.h: Forward declare "struct parser_state".
9365 (m2_parse): Add "struct parser_state" argument.
9366 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9367 * objc-lang.h: Forward declare "struct parser_state".
9368 (end_msglist): Add "struct parser_state" argument.
9369 * p-exp.y (parse_type): Rewrite macro to use parser state.
9370 (yyparse): Redefine macro to pascal_parse_internal.
9371 (pstate): New variable.
9372 (parse_number): Add "struct parser_state" argument.
9373 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9374 write_exp* and similars in order to use parser state.
9375 (parse_number, yylex): Adjust code to use parser state.
9376 (pascal_parse): New function.
9377 * p-lang.h: Forward declare "struct parser_state".
9378 (pascal_parse): Add "struct parser_state" argument.
9379 * go-exp.y (parse_type): Rewrite macro to use parser state.
9380 (yyparse): Redefine macro to go_parse_internal.
9381 (pstate): New variable.
9382 (parse_number): Add "struct parser_state" argument.
9383 (type_exp, exp1, exp, variable, type): Update calls to
9384 write_exp* and similars in order to use parser state.
9385 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9386 to use parser state.
9387 (go_parse): Likewise.
9388 * go-lang.h: Forward declare "struct parser_state".
9389 (go_parse): Add "struct parser_state" argument.
9391 2014-03-27 Doug Evans <dje@google.com>
9393 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9395 2014-03-27 Doug Evans <dje@google.com>
9397 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9398 Remove argument abbrev_section. All callers updated.
9400 2014-03-27 Doug Evans <dje@google.com>
9402 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9403 addr_base, ranges_base.
9405 2014-03-26 Keith Seitz <keiths@redhat.com>
9407 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9408 types, not VAR_DOMAIN.
9410 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9412 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9414 * features/nios2-linux.c: Regenerated.
9415 * features/nios2.c: Regenerated.
9417 2014-03-25 Pedro Alves <palves@redhat.com>
9419 * cli/cli-script.c (script_from_file): Force the interpreter to
9422 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9424 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9425 small stack allocation.
9427 2014-03-24 Tristan Gingold <gingold@adacore.com>
9429 * darwin-nat.c (exc_server): Remove unused prototype.
9430 (darwin_dump_message): Correctly display data on x86_64.
9431 (darwin_encode_reply): Fix style.
9432 Add comments and fix indentation.
9434 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9436 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9438 2014-03-22 Doug Evans <xdje42@gmail.com>
9440 * infcmd.c: Whitespace fixes.
9441 (interrupt_command): Merge two function comments into one.
9443 2014-03-22 Doug Evans <xdje42@gmail.com>
9445 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9448 2014-03-22 Yao Qi <yao@codesourcery.com>
9450 * remote.c (target_read_live_memory): Remove.
9451 (memory_xfer_live_readonly_partial): Rename it to
9452 remote_xfer_live_readonly_partial. Remove argument 'object'.
9453 All callers updated. Call remote_read_bytes_1
9454 instead of target_read_live_memory.
9455 * tracepoint.c (set_traceframe_number): Remove.
9456 (make_cleanup_restore_traceframe_number): Likewise .
9457 * tracepoint.h (set_traceframe_number): Remove declaration.
9458 (make_cleanup_restore_traceframe_number): Likewise.
9460 2014-03-22 Yao Qi <yao@codesourcery.com>
9462 * remote.c (remote_read_bytes): Move code on reading from the
9464 (remote_read_bytes_1): ... here. New function.
9466 2014-03-22 Yao Qi <yao@codesourcery.com>
9468 * ctf.c (ctf_xfer_partial): Check the return value of
9469 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9470 return TARGET_XFER_UNAVAILABLE.
9471 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9472 * target.c (target_read_live_memory): Move it to remote.c.
9473 (memory_xfer_live_readonly_partial): Likewise.
9474 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9475 * remote.c (target_read_live_memory): Moved from target.c.
9476 (memory_xfer_live_readonly_partial): Likewise.
9477 (remote_read_bytes): Factored out from
9478 memory_xfer_partial_1.
9480 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9482 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9485 2014-03-21 Pedro Alves <palves@redhat.com>
9487 * infrun.c (normal_stop): Extend comment.
9489 2014-03-21 Hui Zhu <hui@codesourcery.com>
9490 Pedro Alves <palves@redhat.com>
9492 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9494 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9495 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9496 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9498 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9500 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9501 `z' formatted output modifier.
9503 2014-03-20 Tom Tromey <tromey@redhat.com>
9504 Sergio Durigan Junior <sergiodj@redhat.com>
9506 * probe.c (parse_probes): Turn assert into an ordinary error.
9507 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9508 exceptions when parsing probes. Rearrange the code for clarity.
9510 2014-03-20 Tom Tromey <tromey@redhat.com>
9513 * top.c (execute_command): Only dispatch events if the command
9516 2014-03-20 Tom Tromey <tromey@redhat.com>
9519 * infcall.c: Include event-top.h.
9520 (run_inferior_call): Call async_disable_stdin if needed.
9522 2014-03-20 Pedro Alves <palves@redhat.com>
9524 * infrun.c (prepare_to_proceed): Delete.
9525 (thread_still_needs_step_over): New function.
9526 (find_thread_needs_step_over): New function.
9527 (proceed): If the current thread needs a step-over, set its
9528 steping_over_breakpoint flag. Adjust to use
9529 find_thread_needs_step_over instead of prepare_to_proceed.
9530 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9531 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9533 (switch_back_to_stepped_thread): Step over breakpoints of all
9534 threads not the stepping thread, before switching back to the
9537 2014-03-20 Pedro Alves <palves@redhat.com>
9539 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9541 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9542 * infrun.c (saved_singlestep_ptid)
9543 (stepping_past_singlestep_breakpoint): Delete.
9544 (resume): Remove stepping_past_singlestep_breakpoint handling.
9545 (proceed): Store the prev_pc of the stepping thread too.
9546 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9548 (enum infwait_states): Delete infwait_thread_hop_state.
9549 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9551 (handle_inferior_event): Adjust.
9552 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9553 handling and the thread-hop code. Before removing single-step
9554 breakpoints, check whether the thread hit a single-step breakpoint
9555 of another thread. If it did, the trap is not a random signal.
9556 (switch_back_to_stepped_thread): If the event thread hit a
9557 single-step breakpoint, unblock it before switching to the
9558 stepping thread. Handle the case of the stepped thread having
9560 (keep_going): Handle the case of the current thread moving past a
9561 single-step breakpoint.
9563 2014-03-20 Pedro Alves <palves@redhat.com>
9566 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9567 are being stepped over.
9568 (breakpoint_address_match): Make extern.
9569 * breakpoint.h (breakpoint_address_match): New declaration.
9570 * inferior.h (stepping_past_instruction_at): New declaration.
9571 * infrun.c (struct step_over_info): New type.
9572 (step_over_info): New global.
9573 (set_step_over_info, clear_step_over_info)
9574 (stepping_past_instruction_at): New functions.
9575 (handle_inferior_event): Clear the step-over info when
9576 trap_expected is cleared.
9577 (resume): Remove now stale comment.
9578 (clear_proceed_status): Clear step-over info.
9579 (proceed): Adjust step-over handling to set or clear the step-over
9580 info instead of removing all breakpoints.
9581 (handle_signal_stop): When setting up a thread-hop, don't remove
9583 (stop_stepping): Clear step-over info.
9584 (keep_going): Adjust step-over handling to set or clear step-over
9585 info and then always inserting breakpoints, instead of removing
9586 all breakpoints when stepping over one.
9588 2014-03-20 Pedro Alves <palves@redhat.com>
9590 * infrun.c (previous_inferior_ptid): Adjust comment.
9591 (deferred_step_ptid): Delete.
9592 (infrun_thread_ptid_changed, prepare_to_proceed)
9593 (init_wait_for_inferior): Adjust.
9594 (handle_signal_stop): Delete deferred_step_ptid handling.
9596 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9599 * defs.h (sync_quit_force_run): New declaration.
9600 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9601 * event-top.c (async_sigterm_handler): New declaration.
9602 (async_sigterm_token): New variable.
9603 (async_init_signals): Create also async_sigterm_token.
9604 (async_sigterm_handler): New function.
9605 (sync_quit_force_run): New variable.
9606 (handle_sigterm): Replace quit_force call by other calls.
9607 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9609 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9611 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9612 offset into SPE pseudo registers.
9614 2014-03-18 Pedro Alves <palves@redhat.com>
9617 * inferior.h (print_stop_event): Declare.
9618 * infrun.c (print_stop_event): New, factored out from ...
9619 (normal_stop): ... this.
9620 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9621 of bpstat_print/print_stack_frame.
9623 2014-03-17 Tom Tromey <tromey@redhat.com>
9625 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9627 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9629 * ada-lang.c (decode_constrained_packed_array): Perform a
9630 minimal coercion for reference with coerce_ref instead of
9633 2014-03-17 Tristan Gingold <gingold@adacore.com>
9635 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9636 (darwin_solib_create_inferior_hook): Emit a warning if version
9639 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9641 * python/py-value.c (get_field_flag): Cast flag_name argument to
9642 PyObject_GetAttrString to support Python 2.4.
9644 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9646 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9647 (Global Maintainers): Remove Jan Kratochvil.
9649 2014-03-14 Pedro Alves <palves@redhat.com>
9651 * inferior.h (terminal_ours_for_output): Rename to ...
9652 (child_terminal_ours_for_output): ... this.
9653 (terminal_save_ours): Rename to ...
9654 (child_terminal_save_ours): ... this.
9655 (terminal_ours): Rename to ...
9656 (child_terminal_ours): ... this.
9657 (terminal_inferior): Rename to ...
9658 (child_terminal_inferior): ... this.
9659 (terminal_init_inferior): Rename to ...
9660 (child_terminal_init_inferior): ... this.
9661 (terminal_init_inferior_with_pgrp): Rename to ...
9662 (child_terminal_init_inferior_with_pgrp): ... this.
9663 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9664 (child_terminal_init_with_pgrp): ... this.
9665 (terminal_save_ours): Rename to ...
9666 (child_terminal_save_ours): ... this.
9667 (terminal_init_inferior): Rename to ...
9668 (child_terminal_init): ... this. Adjust.
9669 (terminal_inferior): Rename to ...
9670 (child_terminal_inferior): ... this.
9671 (terminal_ours_for_output): Rename to ...
9672 (child_terminal_ours_for_output): ... this. Adjust.
9673 (terminal_ours): Rename to ...
9674 (child_terminal_ours): ... this.
9675 (terminal_ours_1): Rename to ...
9676 (child_terminal_ours_1): ... this. Adjust.
9677 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9678 * windows-nat.c (do_initial_windows_stuff): Adjust.
9679 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9680 (gnu_terminal_init): ... this. Adjust.
9681 (gnu_target): Adjust.
9682 * inf-child.c (inf_child_target): Adjust.
9684 2014-03-13 Doug Evans <xdje42@gmail.com>
9687 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9690 2014-03-13 Doug Evans <xdje42@gmail.com>
9692 * value.c (record_latest_value): Call release_value_or_incref
9693 instead of release_value.
9695 2014-03-13 Pedro Alves <palves@redhat.com>
9697 * procfs.c (procfs_target): Don't override to_shortname,
9698 to_longname or to_doc.
9700 2014-03-13 Pedro Alves <palves@redhat.com>
9702 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9703 Unix in user visible strings.
9705 2014-03-12 Stan Shebs <stan@codesourcery.com>
9707 * gdbtypes.h: Annotate comments for Doxygen, add a page
9708 block comment with some general info.
9710 2014-03-12 Pedro Alves <palves@redhat.com>
9712 * infcmd.c (prepare_execution_command): New function, factored out
9713 from several execution commands.
9714 (run_command_1, continue_command, step_1, jump_command)
9715 (signal_command, until_command, advance_command, finish_command)
9716 (attach_command): Use prepare_execution_command.
9718 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9720 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9723 (struct arm_linux_thread_points): Removed.
9724 (struct arm_linux_process_info): New.
9725 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9726 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9727 (arm_linux_find_breakpoints_by_tid): Removed.
9728 (struct arch_lwp_info): New.
9729 (arm_linux_find_process_pid): New functions.
9730 (arm_linux_add_process): New functions.
9731 (arm_linux_process_info_get): New functions.
9732 (arm_linux_forget_process): New function.
9733 (arm_linux_get_debug_reg_state): New function.
9734 (struct update_registers_data): New.
9735 (update_registers_callback): New function.
9736 (arm_linux_insert_hw_breakpoint1): Updated.
9737 (arm_linux_remove_hw_breakpoint1): Updated.
9738 (arm_linux_insert_hw_breakpoint): Updated.
9739 (arm_linux_remove_hw_breakpoint): Updated.
9740 (arm_linux_insert_watchpoint): Updated.
9741 (arm_linux_remove_watchpoint): Updated.
9742 (arm_linux_new_thread): Updated.
9743 (arm_linux_prepare_to_resume): New function.
9744 (arm_linux_new_fork): New function.
9745 (_initialize_arm_linux_nat): Updated.
9747 2014-03-12 Pedro Alves <palves@redhat.com>
9749 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9751 2014-03-12 Tom Tromey <tromey@redhat.com>
9753 * inf-child.c (return_zero): New function.
9754 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9755 * aix-thread.c (aix_thread_inferior_created): New function.
9756 (aix_thread_attach): Remove.
9757 (init_aix_thread_ops): Don't set to_attach.
9758 (_initialize_aix_thread): Register inferior_created observer.
9759 * corelow.c (init_core_ops): Don't set to_attach or
9761 * exec.c (init_exec_ops): Don't set to_attach or
9763 * infcmd.c (run_command_1): Use find_run_target. Make direct
9765 (attach_command): Use find_attach_target. Make direct target
9767 * record-btrace.c (init_record_btrace_ops): Don't set
9769 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9771 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9772 set to_create_inferior.
9773 * target.c (complete_target_initialization): Add assertion.
9774 (target_create_inferior): Remove.
9775 (find_default_attach, find_default_create_inferior): Remove.
9776 (find_attach_target, find_run_target): New functions.
9777 (find_default_is_async_p, find_default_can_async_p)
9778 (target_supports_non_stop, target_attach): Remove.
9779 (init_dummy_target): Don't set to_create_inferior or
9780 to_supports_non_stop.
9781 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9782 TARGET_DEFAULT_FUNC.
9783 <to_create_inferior>: Add comment.
9784 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9785 TARGET_DEFAULT_RETURN.
9786 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9787 (find_attach_target, find_run_target): Declare.
9788 (target_create_inferior): Remove.
9789 (target_has_execution_1): Update comment.
9790 (target_supports_non_stop): Remove.
9791 * target-delegates.c: Rebuild.
9793 2014-03-12 Pedro Alves <palves@redhat.com>
9795 * inf-child.h: Update comment to not mention Unix.
9797 2014-03-12 Pedro Alves <palves@redhat.com>
9799 * inf-child.c: Update top comment to not mention Unix. Add
9800 generic comment describing how this target is meant to be used.
9801 (inf_child_post_attach, inf_child_post_startup_inferior)
9802 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9805 2014-03-12 Pedro Alves <palves@redhat.com>
9807 * nto-procfs.c: Include inf-child.h.
9808 (procfs_ops): Delete global.
9809 (procfs_can_run): Delete method.
9810 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9811 target pointer instead of referencing procfs_ops.
9812 (procfs_prepare_to_store): Delete.
9813 (init_procfs_ops): Delete function.
9814 (procfs_target): New function, based on init_procfs_ops, but
9815 inherit inf_child_target.
9816 (_initialize_procfs): Use procfs_target.
9818 2014-03-12 Pedro Alves <palves@redhat.com>
9820 * windows-nat.c: Include inf-child.h.
9821 (windows_ops): Delete global.
9822 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9824 (init_windows_ops): Delete function.
9825 (windows_target): New function, based on init_windows_ops, but
9826 inherit inf_child_target.
9827 (_initialize_windows_nat): Use windows_target. Install x86
9828 specific target methods here.
9830 2014-03-10 Doug Evans <xdje42@gmail.com>
9832 * guile/guile.c (call_initialize_gdb_module): New function.
9833 (initialize_guile): Replace call to scm_init_guile with call to
9836 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9838 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9839 in call to TYPE_CODE macro.
9841 2014-03-10 Jerome Guitton <guitton@adacore.com>
9843 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9844 Resolve tagged types to full view.
9846 2014-03-10 Hui Zhu <hui@codesourcery.com>
9848 * target.h (target_insert_breakpoint): Remove "hardware" from its
9851 2014-03-07 Doug Evans <dje@google.com>
9853 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9855 2014-03-07 Doug Evans <dje@google.com>
9857 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9858 Remove unused local comp_dir_attr. Assert exactly one of
9859 stub_comp_unit_die, stub_comp_dir is non-NULL.
9861 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9863 * target.h (complete_target_initialization, add_target):
9866 2014-03-07 Pedro Alves <palves@redhat.com>
9868 * go32-nat.c: Include inf-child.h.
9869 (go32_ops): Delete global.
9870 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9872 (go32_create_inferior): Push the passed in target pointer instead
9873 of referencing go32_ops.
9874 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9875 (go32_target): New function, based on init_go32_ops, but inherit
9877 (_initialize_go32_nat): Use go32_target. Move parts of
9880 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9882 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9883 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9884 SYMBOL_VALUE_ADDRESS.
9885 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9887 2014-03-06 Yao Qi <yao@codesourcery.com>
9889 * breakpoint.c (get_tracepoint_by_number): Remove argument
9890 optional_p. All callers updated. Adjust comments. Update
9892 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9894 2014-03-06 Yao Qi <yao@codesourcery.com>
9896 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9897 early if get_number returns zero. Use 'p' instead of 'args'.
9899 2014-03-06 Yao Qi <yao@codesourcery.com>
9901 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9904 2014-03-06 Yao Qi <yao@codesourcery.com>
9906 PR breakpoints/16508
9907 * tracepoint.c (check_trace_running): New function.
9908 (trace_find_command): Move code to check_trace_running and
9909 call check_trace_running.
9910 (trace_find_pc_command): Likewise.
9911 (trace_find_tracepoint_command): Likewise.
9912 (trace_find_line_command): Likewise.
9913 (trace_find_range_command): Likewise.
9914 * tracepoint.h (check_trace_running): Likewise.
9915 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9917 2014-03-06 Yao Qi <yao@codesourcery.com>
9919 * target.h (struct target_ops) <to_traceframe_info>: Use
9920 TARGET_DEFAULT_NORETURN (tcomplain ()).
9921 * target-delegates.c: Regenerated.
9923 2014-03-05 Pedro Alves <palves@redhat.com>
9926 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9927 void. Update comment.
9928 (dcache_xfer_memory): Delete.
9929 (dcache_read_memory_partial): New, based on the read bits of
9931 (dcache_update): Add status parameter. Use ULONGEST for len, and
9932 adjust. Discard cache lines if the reason for the update was
9934 * dcache.h (dcache_xfer_memory): Delete declaration.
9935 (dcache_read_memory_partial): New declaration.
9936 (dcache_update): Update prototype.
9937 * target.c (raw_memory_xfer_partial): Update the dcache here.
9938 (memory_xfer_partial_1): Don't handle dcache writes here.
9940 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9942 * remote-sim.c (gdbsim_load): Add const to prog.
9944 2014-03-03 Tom Tromey <tromey@redhat.com>
9946 * elfread.c (probe_key): Change to bfd_data.
9947 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9948 now per-BFD, not per-objfile.
9949 * stap-probe.c (stap_probe_destroy): Update comment.
9950 (handle_stap_probe): Allocate on the per-BFD obstack.
9952 2014-03-03 Tom Tromey <tromey@redhat.com>
9954 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9955 * breakpoint.c (create_longjmp_master_breakpoint): Use
9957 (add_location_to_breakpoint, bkpt_probe_insert_location)
9958 (bkpt_probe_remove_location): Update.
9959 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9960 * elfread.c (elf_symfile_relocate_probe): Remove.
9961 (elf_probe_fns): Update.
9962 (insert_exception_resume_breakpoint): Change type of "probe"
9963 parameter to bound_probe.
9964 (check_exception_resume): Update.
9965 * objfiles.c (objfile_relocate1): Don't relocate probes.
9966 * probe.c (bound_probe_s): New typedef.
9967 (parse_probes): Use get_probe_address. Set sal's objfile.
9968 (find_probe_by_pc): Return a bound_probe.
9969 (collect_probes): Return a VEC(bound_probe_s).
9970 (compare_probes): Update.
9971 (gen_ui_out_table_header_info): Change type of "probes"
9973 (info_probes_for_ops): Update.
9974 (get_probe_address): New function.
9975 (probe_safe_evaluate_at_pc): Update.
9976 * probe.h (struct probe_ops) <get_probe_address>: New field.
9977 <set_semaphore, clear_semaphore>: Add objfile parameter.
9978 (struct probe) <objfile>: Remove field.
9980 <address>: Update comment.
9981 (struct bound_probe): New.
9982 (find_probe_by_pc): Return a bound_probe.
9983 (get_probe_address): Declare.
9984 * solib-svr4.c (struct probe_and_action) <address>: New field.
9985 (hash_probe_and_action, equal_probe_and_action): Update.
9986 (register_solib_event_probe): Add address parameter.
9987 (solib_event_probe_at): Update.
9988 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9990 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9991 (stap_get_probe_address): New function.
9992 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9993 (compile_probe_arg): Update.
9994 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9996 (handle_stap_probe): Don't relocate the probe.
9997 (stap_relocate): Remove.
9998 (stap_gen_info_probes_table_values): Update.
9999 (stap_probe_ops): Remove stap_relocate.
10000 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10001 (debug_sym_probe_fns): Update.
10002 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10003 * symtab.c (init_sal): Use memset.
10004 * symtab.h (struct symtab_and_line) <objfile>: New field.
10005 * tracepoint.c (start_tracing, stop_tracing): Update.
10007 2014-03-03 Tom Tromey <tromey@redhat.com>
10009 * probe.h (parse_probes, find_probe_by_pc)
10010 (find_probes_in_objfile): Fix comments.
10012 2014-03-02 Doug Evans <xdje42@gmail.com>
10014 * infrun.c (handle_signal_stop): Replace test for
10015 TARGET_WAITKIND_STOPPED with an assert.
10017 2014-03-02 Doug Evans <xdje42@gmail.com>
10019 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10021 2014-03-02 Doug Evans <xdje42@gmail.com>
10023 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10025 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10027 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10029 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10031 * i386obsd-nat.c: Include "obsd-nat.h".
10032 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10034 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10036 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10038 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10040 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10042 * mips64obsd-nat.c: Include "obsd-nath".
10043 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10045 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10047 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10049 * amd64obsd-nat.c: Include "obsd-nat,h.
10050 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10052 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10054 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10056 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10057 (find_overload_match): Update call to find_oload_champ.
10058 (find_oload_champ_namespace_loop): Likewise
10060 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10062 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10064 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10065 * config/sparc/obsd64.mh: New file.
10066 * sparc64obsd-nat.c: New file.
10068 * obsd-nat.h: New file.
10069 * obsd-nat.c: New file.
10070 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10071 (ALLDEPFILES): Add obsd-nat.c.
10073 2014-02-28 Tom Tromey <tromey@redhat.com>
10075 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10076 * cli-out.h (cli_ui_out_impl): Now const.
10077 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10078 * ui-out.c (struct ui_out) <impl>: Now const.
10079 (default_ui_out_impl): Now const.
10080 (ui_out_new): Make 'impl' parameter const.
10081 * ui-out.h (ui_out_new): Update.
10083 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10085 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10087 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10089 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10091 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10093 Additional PR 8882 fix.
10094 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10096 2014-02-27 Pedro Alves <palves@redhat.com>
10098 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10101 2014-02-27 Pedro Alves <palves@redhat.com>
10104 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10105 * nat/linux-waitpid.c: Include string.h.
10106 (status_to_str): Moved here and made extern.
10107 * nat/linux-waitpid.h (status_to_str): New declaration.
10109 2014-02-27 Hui Zhu <hui@codesourcery.com>
10112 * infrun.c (ptid_match): Move ...
10113 * common/ptid.c (ptid_match): ... here.
10114 * inferior.h (ptid_match): Move ...
10115 * common/ptid.h (ptid_match): ... here.
10117 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10119 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10120 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10123 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10125 * obsd-tdep.c (obsd_auxv_parse): New function.
10126 (obsd_init_abi): Set auxv_parse.
10128 * gdbarch.sh (auxv_parse): New.
10129 * gdbarch.h: Regenerated.
10130 * gdbarch.c: Regenerated.
10131 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10133 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10135 * guile/scm-value.c (gdbscm_history_append_x): New function.
10136 (value_functions): Add it.
10138 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10140 * dwarf2read.c (attr_value_as_address): New function.
10141 (dwarf2_find_base_address, read_call_site_scope): Use
10142 attr_value_as_address in place of DW_ADDR.
10143 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10144 the low and high addresses. Slight rework of the handling
10145 of the high pc being a constant form, and limit it to
10146 DWARF verson 4 or higher.
10147 (dwarf2_record_block_ranges): Likewise.
10148 (read_partial_die): Likewise.
10149 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10151 2014-02-26 Tom Tromey <tromey@redhat.com>
10153 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10155 2014-02-26 Tom Tromey <tromey@redhat.com>
10157 * elfread.c (elf_read_minimal_symbols): Return early if
10158 minimal symbols have already been read. Add "ei" parameter.
10159 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10160 * minsyms.c (prim_record_minimal_symbol_full): Update.
10161 * objfiles.h (struct objstats) <n_minsyms>: Move...
10162 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10163 * symmisc.c (print_objfile_statistics): Update.
10165 2014-02-26 Tom Tromey <tromey@redhat.com>
10167 * elfread.c (elf_read_minimal_symbols): New function, from
10169 (elf_symfile_read): Call it.
10171 2014-02-26 Tom Tromey <tromey@redhat.com>
10173 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10174 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10175 (lookup_minimal_symbol_solib_trampoline)
10176 (lookup_minimal_symbol_by_pc_section_1)
10177 (lookup_minimal_symbol_and_objfile): Update.
10178 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10179 Don't allocate a minimal symbol if minsyms have already been read.
10180 (build_minimal_symbol_hash_tables): Update.
10181 (install_minimal_symbols): Do nothing if minsyms already read.
10182 Use the per-BFD obstack.
10183 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10184 * objfiles.c (allocate_objfile): Call
10185 terminate_minimal_symbol_table later.
10186 (have_minimal_symbols): Update.
10187 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10188 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10189 Move from struct objfile.
10190 <minsyms_read>: New field.
10191 (struct objfile) <msymbols, minimal_symbol_count,
10192 msymbol_hash, msymbol_demangled_hash>: Move.
10193 (ALL_OBJFILE_MSYMBOLS): Update.
10194 * symfile.c (read_symbols): Set minsyms_read.
10195 (reread_symbols): Update.
10196 * symmisc.c (dump_objfile, dump_msymbols): Update.
10198 2014-02-26 Tom Tromey <tromey@redhat.com>
10200 * minsyms.c (msymbols_sort): Remove.
10201 * minsyms.h (msymbols_sort): Remove.
10202 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10203 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10204 * elfread.c (elf_symtab_read): Don't add section offsets.
10205 * xcoffread.c (record_minimal_symbol): Don't add section offset
10206 to minimal symbol address.
10207 * somread.c (text_offset, data_offset): Remove.
10208 (som_symtab_read): Don't add section offsets to minimal symbol
10210 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10211 Don't add section offsets to minimal symbols.
10212 * coffread.c (coff_symtab_read): Don't add section offsets
10213 to minimal symbol addresses.
10214 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10215 to minimal symbol addresses.
10216 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10217 section offset to minimal symbol addresses.
10218 * mdebugread.c (parse_partial_symbols): Don't add section
10219 offset to minimal symbol addresses.
10220 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10221 offset to minimal symbol addresses.
10223 2014-02-26 Tom Tromey <tromey@redhat.com>
10225 * ada-lang.c (ada_main_name): Update.
10226 (ada_add_standard_exceptions): Update.
10227 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10228 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10229 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10230 * auxv.c (ld_so_xfer_auxv): Update.
10231 * avr-tdep.c (avr_scan_prologue): Update.
10232 * ax-gdb.c (gen_var_ref): Update.
10233 * blockframe.c (get_pc_function_start)
10234 (find_pc_partial_function_gnu_ifunc): Update.
10235 * breakpoint.c (create_overlay_event_breakpoint)
10236 (create_longjmp_master_breakpoint)
10237 (create_std_terminate_master_breakpoint)
10238 (create_exception_master_breakpoint): Update.
10239 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10240 * c-valprint.c (c_val_print): Update.
10241 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10242 * common/agent.c (agent_look_up_symbols): Update.
10243 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10244 * dwarf2loc.c (call_site_to_target_addr): Update.
10245 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10246 * elfread.c (elf_gnu_ifunc_record_cache)
10247 (elf_gnu_ifunc_resolve_by_got): Update.
10248 * findvar.c (default_read_var_value): Update.
10249 * frame.c (inside_main_func): Update.
10250 * frv-tdep.c (frv_frame_this_id): Update.
10251 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10252 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10254 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10255 (hppa_hpux_find_dummy_bpaddr): Update.
10256 * hppa-tdep.c (hppa_symbol_address): Update.
10257 * infcmd.c (until_next_command): Update.
10258 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10260 * linespec.c (minsym_found, add_minsym): Update.
10261 * linux-nat.c (get_signo): Update.
10262 * linux-thread-db.c (inferior_has_bug): Update.
10263 * m32c-tdep.c (m32c_return_value)
10264 (m32c_m16c_address_to_pointer): Update.
10265 * m32r-tdep.c (m32r_frame_this_id): Update.
10266 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10267 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10268 * maint.c (maintenance_translate_address): Update.
10269 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10270 (frob_address): New function.
10271 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10272 frob_address. Rename parameter to "pc_in".
10273 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10275 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10277 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10278 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10279 * objc-lang.c (find_objc_msgsend): Update.
10280 * objfiles.c (objfile_relocate1): Update.
10281 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10282 * p-valprint.c (pascal_val_print): Update.
10283 * parse.c (write_exp_msymbol): Update.
10284 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10285 (ppc_elfv2_skip_entrypoint): Update.
10286 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10287 * printcmd.c (build_address_symbolic, msym_info)
10288 (address_info): Update.
10289 * proc-service.c (ps_pglobal_lookup): Update.
10290 * psymtab.c (find_pc_sect_psymtab_closer)
10291 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10292 Change msymbol parameter to bound_minimal_symbol.
10293 * ravenscar-thread.c (get_running_thread_id): Update.
10294 * remote.c (remote_check_symbols): Update.
10295 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10297 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10298 * solib-dsbt.c (lm_base): Update.
10299 * solib-frv.c (lm_base, main_got): Update.
10300 * solib-irix.c (locate_base): Update.
10301 * solib-som.c (som_solib_create_inferior_hook)
10302 (link_map_start): Update.
10303 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10304 * solib-svr4.c (elf_locate_base, enable_break): Update.
10305 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10306 (flush_ea_cache): Update.
10307 * stabsread.c (define_symbol, scan_file_globals): Update.
10308 * stack.c (find_frame_funname): Update.
10309 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10310 (debug_qf_find_pc_sect_symtab): Update.
10311 * symfile.c (simple_read_overlay_table)
10312 (simple_overlay_update): Update.
10313 * symfile.h (struct quick_symbol_functions)
10314 <find_pc_sect_symtab>: Change type of msymbol to
10315 bound_minimal_symbol.
10316 * symmisc.c (dump_msymbols): Update.
10317 * symtab.c (find_pc_sect_symtab_via_partial)
10318 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10319 (search_symbols, print_msymbol_info): Update.
10320 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10321 (MSYMBOL_VALUE_ADDRESS): Redefine.
10322 (BMSYMBOL_VALUE_ADDRESS): New macro.
10323 * tracepoint.c (scope_info): Update.
10324 * tui/tui-disasm.c (tui_find_disassembly_address)
10325 (tui_get_begin_asm_address): Update.
10326 * valops.c (find_function_in_inferior): Update.
10327 * value.c (value_static_field, value_fn_field): Update.
10329 2014-02-26 Tom Tromey <tromey@redhat.com>
10331 * ada-lang.c (ada_update_initial_language): Update.
10332 (ada_main_name, ada_has_this_exception_support): Update.
10333 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10334 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10335 * arm-tdep.c (arm_skip_stub): Update.
10336 * auxv.c (ld_so_xfer_auxv): Update.
10337 * avr-tdep.c (avr_scan_prologue): Update.
10338 * ax-gdb.c (gen_var_ref): Update.
10339 * breakpoint.c (struct breakpoint_objfile_data)
10340 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10341 type to bound_minimal_symbol.
10342 (create_overlay_event_breakpoint)
10343 (create_longjmp_master_breakpoint)
10344 (create_std_terminate_master_breakpoint)
10345 (create_exception_master_breakpoint): Update.
10346 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10347 * c-exp.y (classify_name): Update.
10348 * coffread.c (coff_symfile_read): Update.
10349 * common/agent.c (agent_look_up_symbols): Update.
10350 * d-lang.c (d_main_name): Update.
10351 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10352 * dec-thread.c (enable_dec_thread): Update.
10353 * dwarf2loc.c (call_site_to_target_addr): Update.
10354 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10355 * eval.c (evaluate_subexp_standard): Update.
10356 * findvar.c (struct minsym_lookup_data) <result>: Change type
10357 to bound_minimal_symbol.
10359 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10360 * frame.c (inside_main_func): Update.
10361 * frv-tdep.c (frv_frame_this_id): Update.
10362 * gcore.c (call_target_sbrk): Update.
10363 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10364 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10366 * go-lang.c (go_main_name): Update.
10367 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10368 (hppa_hpux_find_import_stub_for_addr): Update.
10369 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10370 Update. Change return type.
10371 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10373 * jit.c (jit_breakpoint_re_set_internal): Update.
10374 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10376 * linux-nat.c (get_signo): Update.
10377 * linux-thread-db.c (inferior_has_bug): Update
10378 * m32c-tdep.c (m32c_return_value)
10379 (m32c_m16c_address_to_pointer): Update.
10380 * m32r-tdep.c (m32r_frame_this_id): Update.
10381 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10382 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10383 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10384 lookup_minimal_symbol. Change return type.
10385 (lookup_minimal_symbol): Remove.
10386 (lookup_bound_minimal_symbol): Update.
10387 (lookup_minimal_symbol_text): Change return type.
10388 (lookup_minimal_symbol_solib_trampoline): Change return type.
10389 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10390 (lookup_minimal_symbol_solib_trampoline): Change return type.
10391 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10392 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10393 (value_nsstring, find_imps): Update.
10394 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10395 * p-lang.c (pascal_main_name): Update.
10396 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10397 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10398 * proc-service.c (ps_pglobal_lookup): Update.
10399 * ravenscar-thread.c (get_running_thread_msymbol): Change
10401 (has_ravenscar_runtime, get_running_thread_id): Update.
10402 * remote.c (remote_check_symbols): Update.
10403 * sol-thread.c (ps_pglobal_lookup): Update.
10404 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10405 * solib-dsbt.c (lm_base): Update.
10406 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10408 * solib-irix.c (locate_base): Update.
10409 * solib-som.c (som_solib_create_inferior_hook)
10410 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10412 * solib-spu.c (spu_enable_break): Update.
10413 * solib-svr4.c (elf_locate_base, enable_break): Update.
10414 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10415 (flush_ea_cache): Update.
10416 * stabsread.c (define_symbol): Update.
10417 * symfile.c (simple_read_overlay_table): Update.
10418 * symtab.c (find_pc_sect_line): Update.
10419 * tracepoint.c (scope_info): Update.
10420 * tui-disasm.c (tui_get_begin_asm_address): Update.
10421 * value.c (value_static_field): Update.
10423 2014-02-26 Tom Tromey <tromey@redhat.com>
10425 * minsyms.c (prim_record_minimal_symbol_full): Use
10426 SET_MSYMBOL_VALUE_ADDRESS.
10427 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10428 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10429 SET_MSYMBOL_VALUE_ADDRESS.
10430 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10431 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10433 2014-02-26 Tom Tromey <tromey@redhat.com>
10435 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10436 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10437 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10438 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10439 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10440 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10441 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10442 * ada-lang.c (ada_main_name): Update.
10443 (ada_lookup_simple_minsym): Update.
10444 (ada_make_symbol_completion_list): Update.
10445 (ada_add_standard_exceptions): Update.
10446 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10447 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10448 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10449 * arm-tdep.c (skip_prologue_function): Update.
10450 (arm_skip_stack_protector, arm_skip_stub): Update.
10451 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10452 (arm_wince_skip_main_prologue): Update.
10453 * auxv.c (ld_so_xfer_auxv): Update.
10454 * avr-tdep.c (avr_scan_prologue): Update.
10455 * ax-gdb.c (gen_var_ref): Update.
10456 * block.c (call_site_for_pc): Update.
10457 * blockframe.c (get_pc_function_start): Update.
10458 (find_pc_partial_function_gnu_ifunc): Update.
10459 * breakpoint.c (create_overlay_event_breakpoint): Update.
10460 (create_longjmp_master_breakpoint): Update.
10461 (create_std_terminate_master_breakpoint): Update.
10462 (create_exception_master_breakpoint): Update.
10463 (resolve_sal_pc): Update.
10464 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10465 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10467 * c-valprint.c (c_val_print): Update.
10468 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10469 * coffread.c (coff_symfile_read): Update.
10470 * common/agent.c (agent_look_up_symbols): Update.
10471 * dbxread.c (find_stab_function_addr): Update.
10472 (end_psymtab): Update.
10473 * dwarf2loc.c (call_site_to_target_addr): Update.
10474 (func_verify_no_selftailcall): Update.
10475 (tailcall_dump): Update.
10476 (call_site_find_chain_1): Update.
10477 (dwarf_expr_reg_to_entry_parameter): Update.
10478 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10479 (elf_gnu_ifunc_resolve_by_got): Update.
10480 * f-valprint.c (info_common_command): Update.
10481 * findvar.c (read_var_value): Update.
10482 * frame.c (get_prev_frame_1): Update.
10483 (inside_main_func): Update.
10484 * frv-tdep.c (frv_skip_main_prologue): Update.
10485 (frv_frame_this_id): Update.
10486 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10487 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10488 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10489 (gnuv3_skip_trampoline): Update.
10490 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10491 (hppa64_hpux_in_solib_call_trampoline): Update.
10492 (hppa_hpux_skip_trampoline_code): Update.
10493 (hppa64_hpux_search_dummy_call_sequence): Update.
10494 (hppa_hpux_find_import_stub_for_addr): Update.
10495 (hppa_hpux_find_dummy_bpaddr): Update.
10496 * hppa-tdep.c (hppa_symbol_address)
10497 (hppa_lookup_stub_minimal_symbol): Update.
10498 * i386-tdep.c (i386_skip_main_prologue): Update.
10499 (i386_pe_skip_trampoline_code): Update.
10500 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10501 * infcall.c (get_function_name): Update.
10502 * infcmd.c (until_next_command): Update.
10503 * jit.c (jit_breakpoint_re_set_internal): Update.
10504 (jit_inferior_init): Update.
10505 * linespec.c (minsym_found): Update.
10506 (add_minsym): Update.
10507 * linux-fork.c (info_checkpoints_command): Update.
10508 * linux-nat.c (get_signo): Update.
10509 * linux-thread-db.c (inferior_has_bug): Update.
10510 * m32c-tdep.c (m32c_return_value): Update.
10511 (m32c_m16c_address_to_pointer): Update.
10512 (m32c_m16c_pointer_to_address): Update.
10513 * m32r-tdep.c (m32r_frame_this_id): Update.
10514 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10515 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10516 * maint.c (maintenance_translate_address): Update.
10517 * minsyms.c (add_minsym_to_hash_table): Update.
10518 (add_minsym_to_demangled_hash_table): Update.
10519 (msymbol_objfile): Update.
10520 (lookup_minimal_symbol): Update.
10521 (iterate_over_minimal_symbols): Update.
10522 (lookup_minimal_symbol_text): Update.
10523 (lookup_minimal_symbol_by_pc_name): Update.
10524 (lookup_minimal_symbol_solib_trampoline): Update.
10525 (lookup_minimal_symbol_by_pc_section_1): Update.
10526 (lookup_minimal_symbol_and_objfile): Update.
10527 (prim_record_minimal_symbol_full): Update.
10528 (compare_minimal_symbols): Update.
10529 (compact_minimal_symbols): Update.
10530 (build_minimal_symbol_hash_tables): Update.
10531 (install_minimal_symbols): Update.
10532 (terminate_minimal_symbol_table): Update.
10533 (find_solib_trampoline_target): Update.
10534 (minimal_symbol_upper_bound): Update.
10535 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10536 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10537 (mips_skip_pic_trampoline_code): Update.
10538 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10539 * objc-lang.c (selectors_info): Update.
10540 (classes_info): Update.
10541 (find_methods): Update.
10542 (find_imps): Update.
10543 (find_objc_msgsend): Update.
10544 * objfiles.c (objfile_relocate1): Update.
10545 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10546 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10547 * p-valprint.c (pascal_val_print): Update.
10548 * parse.c (write_exp_msymbol): Update.
10549 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10550 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10551 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10552 * printcmd.c (build_address_symbolic): Update.
10553 (sym_info): Update.
10554 (address_info): Update.
10555 * proc-service.c (ps_pglobal_lookup): Update.
10556 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10557 (find_pc_sect_psymtab): Update.
10558 * python/py-framefilter.c (py_print_frame): Update.
10559 * ravenscar-thread.c (get_running_thread_id): Update.
10560 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10562 * remote.c (remote_check_symbols): Update.
10563 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10564 (rs6000_skip_trampoline_code): Update.
10565 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10566 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10567 * solib-dsbt.c (lm_base): Update.
10568 * solib-frv.c (lm_base): Update.
10569 (main_got): Update.
10570 * solib-irix.c (locate_base): Update.
10571 * solib-som.c (som_solib_create_inferior_hook): Update.
10572 (som_solib_desire_dynamic_linker_symbols): Update.
10573 (link_map_start): Update.
10574 * solib-spu.c (spu_enable_break): Update.
10575 (ocl_enable_break): Update.
10576 * solib-svr4.c (elf_locate_base): Update.
10577 (enable_break): Update.
10578 * spu-tdep.c (spu_get_overlay_table): Update.
10579 (spu_catch_start): Update.
10580 (flush_ea_cache): Update.
10581 * stabsread.c (define_symbol): Update.
10582 (scan_file_globals): Update.
10583 * stack.c (find_frame_funname): Update.
10584 (frame_info): Update.
10585 * symfile.c (simple_read_overlay_table): Update.
10586 (simple_overlay_update): Update.
10587 * symmisc.c (dump_msymbols): Update.
10588 * symtab.c (fixup_section): Update.
10589 (find_pc_sect_line): Update.
10590 (skip_prologue_sal): Update.
10591 (search_symbols): Update.
10592 (print_msymbol_info): Update.
10593 (rbreak_command): Update.
10594 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10595 (completion_list_objc_symbol): Update.
10596 (default_make_symbol_completion_list_break_on): Update.
10597 * tracepoint.c (scope_info): Update.
10598 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10599 (tui_get_begin_asm_address): Update.
10600 * valops.c (find_function_in_inferior): Update.
10601 * value.c (value_static_field): Update.
10602 (value_fn_field): Update.
10604 2014-02-26 Tom Tromey <tromey@redhat.com>
10606 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10607 bound minimal symbols. Move code that knows about minsym
10609 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10611 * minsyms.h (minimal_symbol_upper_bound): Declare.
10612 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10613 minimal_symbol_upper_bound.
10615 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10617 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10618 Use the type's name if its basic type does not have a tag.
10620 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10622 * dwarf2read.c (read_subrange_type): Add comment.
10624 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10626 * dwarf2read.c (update_enumeration_type_from_children): New
10627 function, mostly extracted from process_structure_scope.
10628 (read_enumeration_type): Call update_enumeration_type_from_children.
10629 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10630 and flag_flag_enum fields.
10632 2014-02-26 Pedro Alves <palves@redhat.com>
10634 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10635 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10636 to_xfer_partial method.
10638 2014-02-26 Pedro Alves <palves@redhat.com>
10640 * target.c (complete_target_initialization): Don't install
10641 default_xfer_partial as to_xfer_partial hook.
10642 (nomemory): Delete.
10643 (update_current_target): Don't INHERIT nor de_fault
10644 deprecated_xfer_memory. Delete de_fault macro.
10645 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10646 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10647 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10650 2014-02-26 Pedro Alves <palves@redhat.com>
10652 * go32-nat.c (my_write_child): New function.
10653 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10654 (go32_xfer_partial): New function.
10655 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10656 Instead install a to_xfer_partial hook.
10658 2014-02-26 Pedro Alves <palves@redhat.com>
10660 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10661 to_xfer_partial helper. Rewrite.
10662 (procfs_xfer_partial): New function.
10663 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10664 Install a to_xfer_partial hook.
10666 2014-02-26 Pedro Alves <palves@redhat.com>
10668 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10669 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10670 (m32r_xfer_partial): New function.
10671 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10672 Install a to_xfer_partial hook.
10674 2014-02-26 Pedro Alves <palves@redhat.com>
10676 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10678 (mips_xfer_partial): New function.
10679 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10680 hook. Install a to_xfer_partial hook.
10682 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10684 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10685 * gdbtypes.c (create_array_type_with_stride): New function,
10686 renaming create_array_type, but with an added parameter
10687 called "bit_stride".
10688 (create_array_type): Re-implement using
10689 create_array_type_with_stride.
10690 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10691 and DW_AT_bit_stride attributes.
10693 2014-02-26 Pedro Alves <palves@redhat.com>
10695 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10696 task-specific breakpoints.
10698 2014-02-25 Pedro Alves <palves@redhat.com>
10700 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10701 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10703 2014-02-25 Stan Shebs <stan@codesourcery.com>
10705 * defs.h: Annotate comments for Doxygen.
10707 2014-02-25 Tom Tromey <tromey@redhat.com>
10709 * target.h (target_ignore): Don't declare.
10710 * target.c (target_ignore): Remove.
10712 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10715 * auto-load.c (auto_load_objfile_script_1): Change filename to
10718 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10720 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10721 documentation. Adjust prototype to match the target_ops
10722 to_xfer_partial method. Adjust implementation accordingly.
10724 2014-02-25 Hui Zhu <hui@codesourcery.com>
10726 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10727 to_traceframe_info.
10729 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10731 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10732 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10733 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10734 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10735 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10736 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10737 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10738 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10740 (rl78_register_type): Use a data pointer type for SP and
10741 new pseudo registers mentioned above. Use a 16 bit integer
10742 type for all other register pairs.
10743 (rl78_register_name, rl78_g10_register_name): Update for
10744 new pseudo registers.
10745 (rl78_pseudo_register_read): Likewise.
10746 (rl78_pseudo_register_write): Likewise.
10747 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10748 to the newly added pseudo registers.
10750 2014-02-24 Doug Evans <dje@google.com>
10752 * value.c (record_latest_value): Fix comment.
10753 * printcmd.c (print_command_1): Remove code to handle -1 return from
10754 record_latest_value.
10756 2014-02-24 Pedro Alves <palves@redhat.com>
10758 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10759 deprecated_xfer_memory hook.
10760 (procfs_xfer_partial): Call procfs_xfer_memory instead
10761 of the deprecated_xfer_memory target hook.
10762 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10765 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10767 * windows-nat.c (windows_xfer_shared_libraries): Return
10768 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10769 requested object is TARGET_OBJECT_LIBRARIES.
10771 2014-02-24 Yao Qi <yao@codesourcery.com>
10773 * target.h (enum target_xfer_status)
10774 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10775 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10777 * corefile.c (memory_error_message): User updated.
10778 * exec.c (section_table_read_available_memory): Likewise.
10779 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10780 * target.c (target_xfer_status_to_string): Likewise.
10781 (raw_memory_xfer_partial): Likewise.
10782 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10783 * valops.c (read_value_memory): Likewise.
10784 * exec.h: Update comments.
10786 2014-02-24 Yao Qi <yao@codesourcery.com>
10788 * target.c (target_xfer_status_to_string): Rename argument err
10790 * target.h (target_xfer_status_to_string): Update declaration.
10791 Replace target_xfer_error_to_string with
10792 target_xfer_status_to_string in comment.
10794 2014-02-24 Yao Qi <yao@codesourcery.com>
10796 * mips-linux-nat.c (super_close): Update its type.
10797 (mips_linux_close): Pass 'self' to super_close.
10799 2014-02-24 Yao Qi <yao@codesourcery.com>
10801 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10802 * corefile.c (read_memory): Adjusted.
10803 * target.c (target_write_with_progress): Adjusted.
10805 2014-02-23 Yao Qi <yao@codesourcery.com>
10807 Revert two patches:
10809 2013-10-25 Yao Qi <yao@codesourcery.com>
10811 * remote.c (remote_traceframe_info): Return early if
10812 traceframe is not selected.
10814 2013-07-19 Yao Qi <yao@codesourcery.com>
10816 * target.c (update_current_target): Change the default action
10817 of 'to_traceframe_info' from tcomplain to return_zero.
10818 * target.h (struct target_ops) <to_traceframe_info>: Add more
10821 2014-02-23 Yao Qi <yao@codesourcery.com>
10823 * valops.c (read_value_memory): Rewrite it. Call
10824 target_xfer_partial in a loop.
10825 * exec.h (section_table_available_memory): Remove declaration.
10826 Move comments to ...
10827 * exec.c (section_table_available_memory): ... here. Make it
10830 2014-02-23 Yao Qi <yao@codesourcery.com>
10832 * exec.c (section_table_read_available_memory): New function.
10833 * exec.h (section_table_read_available_memory): Declare.
10834 * ctf.c (ctf_xfer_partial): Call
10835 section_table_read_available_memory.
10836 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10838 2014-02-23 Yao Qi <yao@codesourcery.com>
10840 * ctf.c (ctf_xfer_partial): Move code to ...
10841 * exec.c (exec_read_partial_read_only): ... it. New function.
10842 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10843 * tracefile.c: Include "exec.h".
10844 * exec.h (exec_read_partial_read_only): Declare.
10846 2014-02-23 Yao Qi <yao@codesourcery.com>
10848 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10849 (tfile_has_memory): Remove.
10850 (init_tfile_ops): Don't set fields to_has_all_memory and
10851 to_has_memory of tfile_ops.
10852 * tracefile.c (tracefile_has_all_memory): New function.
10853 (tracefile_has_memory): New function.
10854 (init_tracefile_ops): Initialize fields to_has_all_memory and
10855 to_has_memory of 'ops'.
10857 2014-02-23 Yao Qi <yao@codesourcery.com>
10859 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10860 (ctf_thread_alive, ctf_get_trace_status): Remove.
10861 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10862 init_tracefile_ops.
10863 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10864 (tfile_has_stack, tfile_has_registers): Remove.
10865 (tfile_thread_alive): Remove.
10866 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10867 init_tracefile_ops.
10868 * tracefile.c (tracefile_has_stack): New function.
10869 (tracefile_has_registers): New function.
10870 (tracefile_thread_alive): New function.
10871 (tracefile_get_trace_status): New function.
10872 (init_tracefile_ops): New function.
10873 * tracefile.h (init_tracefile_ops): Declare.
10875 2014-02-23 Yao Qi <yao@codesourcery.com>
10877 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10878 (O_LARGEFILE): Likewise.
10879 (tfile_ops): Likewise.
10880 (TRACE_HEADER_SIZE): Likewise.
10881 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10882 (cur_data_size): Likewise.
10883 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10884 (tfile_close, tfile_files_info): Likewise.
10885 (tfile_get_trace_status): Likewise.
10886 (tfile_get_tracepoint_status): Likewise.
10887 (tfile_get_traceframe_address): Likewise.
10888 (tfile_trace_find, match_blocktype): Likewise.
10889 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10890 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10891 (tfile_get_trace_state_variable_value): Likewise.
10892 (tfile_has_all_memory, tfile_has_memory): Likewise.
10893 (tfile_has_stack, tfile_has_registers): Likewise.
10894 (tfile_thread_alive, build_traceframe_info): Likewise.
10895 (tfile_traceframe_info, init_tfile_ops): Likewise.
10896 (_initialize_tracepoint): Don't call init_tfile_ops
10897 and add_target_with_completer.
10898 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10899 exec.h, completer.h and filenames.h.
10900 (_initialize_tracefile_tfile): New function.
10902 2014-02-23 Yao Qi <yao@codesourcery.com>
10904 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10906 (HFILES_NO_SRCDIR): Add tracefile.h.
10907 * ctf.c: Include "tracefile.h".
10908 * tracefile.h: New file.
10909 * tracefile.c: New file
10910 * tracefile-tfile.c: New file.
10911 * tracepoint.c: Include "tracefile.h".
10912 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10913 (stop_reason_names): Add const.
10914 (trace_file_writer_xfree): Move it to tracefile.c.
10915 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10916 (trace_save_ctf): Likewise.
10917 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10918 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10919 (tfile_write_header, tfile_write_regblock_type): Likewise.
10920 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10921 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10922 (tfile_write_raw_data, tfile_end): Likewise.
10923 (tfile_trace_file_writer_new): Likewise.
10924 (free_uploaded_tp): Make it extern.
10925 (free_uploaded_tsv): Make it extern.
10926 (_initialize_tracepoint): Move code to register command 'tsave'
10928 * tracepoint.h (stop_reason_names): Declare.
10929 (struct trace_frame_write_ops): Move it to tracefile.h.
10930 (struct trace_file_write_ops): Likewise.
10931 (struct trace_file_writer): Likewise.
10932 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10934 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10937 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10939 (get_cores_used_by_process): New parameter num_cores, use it.
10940 (linux_xfer_osdata_processes): Pass num_cores to it.
10941 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10944 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10946 * target.c (memory_xfer_partial): Fix length arg in call to
10947 breakpoint_xfer_memory.
10949 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10952 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10953 number comes after the + or - signs. Adjust length of register
10954 name to be extracted.
10956 2014-02-20 Tom Tromey <tromey@redhat.com>
10958 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10959 (ada_varobj_ops): Mark "extern".
10961 2014-02-20 Tom Tromey <tromey@redhat.com>
10963 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10965 2014-02-20 Doug Evans <xdje42@gmail.com>
10967 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10968 All callers updated.
10969 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10970 All callers updated.
10971 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10972 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10974 2014-02-20 lin zuojian <manjian2006@gmail.com>
10975 Joel Brobecker <brobecker@adacore.com>
10976 Doug Evans <xdje42@gmail.com>
10979 * dwarf2read.c (struct die_info): New member in_process.
10980 (reset_die_in_process): New function.
10981 (process_die): Set it at the start, reset when returning.
10982 (inherit_abstract_dies): Only call process_die if origin_child_die
10983 not already being processed.
10985 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10987 * windows-nat.c (handle_unload_dll): Add function documentation.
10988 (do_initial_windows_stuff): Add comment explaining why we wait
10989 until after inferior initialization has finished before
10990 processing all DLLs.
10992 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10994 * windows-nat.c (get_module_name): Delete.
10995 (windows_get_exec_module_filename): New function, mostly
10996 inspired from get_module_name.
10997 (windows_pid_to_exec_file): Replace call to get_module_name
10998 by call to windows_get_exec_module_filename.
11000 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11002 * windows-nat.c (handle_load_dll): Rewrite this function's
11003 introductory comment. Remove code using get_module_name
11004 to get the DLL's name.
11006 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11008 * windows-nat.c (get_windows_debug_event): Ignore
11009 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11010 if windows_initialization_done == 0.
11011 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11012 Adjust implementation to always load all DLLs.
11013 (do_initial_windows_stuff): Replace call to
11014 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11016 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11018 * windows-nat.c (_initialize_windows_nat): Deprecate the
11019 "dll-symbols" command. Turn the "add-shared-symbol-files"
11020 and "assf" aliases into commands, and deprecate them as well.
11021 * NEWS: Add entry explaining that "dll-symbols" and its two
11022 aliases are now deprecated.
11024 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11026 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11027 new-line in debug string. Remove trailing spaces.
11029 2014-02-19 Stan Shebs <stan@codesourcery.com>
11031 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11033 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11035 * NEWS: Add entry for the new feature
11036 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11039 2014-02-19 Stan Shebs <stan@codesourcery.com>
11041 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11043 2014-02-19 Pedro Alves <palves@redhat.com>
11045 * common/ptid.h (struct ptid): Mention that process_stratum
11046 targets should prefer ptid.lwp.
11048 2014-02-19 Pedro Alves <palves@redhat.com>
11050 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11051 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11052 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11053 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11054 store remote thread ids rather than ptid.tid.
11055 (_initialize_remote): Adjust.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target.c (target_get_unwinder): Rewrite.
11060 (target_get_tailcall_unwinder): Rewrite.
11061 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11062 (record_btrace_to_get_tailcall_unwinder): New function.
11063 (init_record_btrace_ops): Update.
11064 * target.h (struct target_ops) <to_get_unwinder,
11065 to_get_tailcall_unwinder>: Now function pointers. Use
11066 TARGET_DEFAULT_RETURN.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11072 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11078 * target-delegates.c: Rebuild.
11079 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11080 TARGET_DEFAULT_FUNC.
11081 * target.c (default_target_decr_pc_after_break): Rename from
11082 forward_target_decr_pc_after_break. Simplify.
11083 (target_decr_pc_after_break): Rely on delegation.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target.c (update_current_target): Do not INHERIT to_doc or
11088 to_magic. Do not de_fault to_open or to_close.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * gcore.h (objfile_find_memory_regions): Declare.
11093 * gcore.c (objfile_find_memory_regions): No longer static. Add
11095 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11096 * exec.c: Include gcore.h.
11097 (exec_set_find_memory_regions): Remove.
11098 (exec_find_memory_regions): Remove.
11099 (exec_do_find_memory_regions): Remove.
11100 (init_exec_ops): Update.
11101 * defs.h (exec_set_find_memory_regions): Remove.
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11105 * target-delegates.c: Rebuild.
11106 * target.h (struct target_ops) <to_extra_thread_info,
11107 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11108 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11109 not 0, in TARGET_DEFAULT_RETURN.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target.c (complete_target_initialization): Remove casts. Use
11114 return_zero_has_execution.
11115 (return_zero): Add "ignore" argument.
11116 (return_zero_has_execution): New function.
11117 (init_dummy_target): Remove casts. Use
11118 return_zero_has_execution.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target.c (update_current_target): Update comments. Do not
11123 INHERIT to_stratum.
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11127 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11129 * corelow.c (core_read_description): Delegate when needed.
11130 * remote.c (remote_read_description): Delegate when needed.
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_read_description): Rewrite.
11133 * target.h (struct target_ops) <to_read_description>: Update
11134 comment. Use TARGET_DEFAULT_RETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (update_current_target): Don't inherit or default
11141 (find_default_run_target): Check against delegate_can_run.
11142 * target.h (struct target_ops) <to_can_run>: Use
11143 TARGET_DEFAULT_RETURN.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target-delegates.c: Rebuild.
11148 * target.c (target_disconnect): Unconditionally delegate.
11149 * target.h (struct target_ops) <to_disconnect>: Use
11150 TARGET_DEFAULT_NORETURN.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * record.c (record_stop): Unconditionally delegate.
11155 * target-delegates.c: Rebuild.
11156 * target.c (target_stop_recording): Unconditionally delegate.
11157 * target.h (struct target_ops) <to_stop_recording>: Use
11158 TARGET_DEFAULT_IGNORE.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target-delegates.c: Rebuild.
11163 * target.c (target_enable_btrace): Unconditionally delegate.
11164 * target.h (struct target_ops) <to_enable_btrace>: Use
11165 TARGET_DEFAULT_NORETURN.
11167 2014-02-19 Tom Tromey <tromey@redhat.com>
11169 * target-delegates.c: Rebuild.
11170 * target.c (target_read_btrace): Unconditionally delegate.
11171 * target.h (struct target_ops) <to_read_btrace>: Use
11172 TARGET_DEFAULT_NORETURN.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_teardown_btrace): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_teardown_btrace>: Use
11179 TARGET_DEFAULT_NORETURN.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (target_disable_btrace): Unconditionally delegate.
11185 * target.h (struct target_ops) <to_disable_btrace>: Use
11186 TARGET_DEFAULT_NORETURN.
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target-delegates.c: Rebuild.
11191 * target.c (default_search_memory): New function.
11192 (simple_search_memory): Update comment.
11193 (target_search_memory): Unconditionally delegate.
11194 * target.h (struct target_ops) <to_search_memory>: Use
11195 TARGET_DEFAULT_FUNC.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * auxv.c (default_auxv_parse): No longer static.
11200 (target_auxv_parse): Unconditionally delegate.
11201 * auxv.h (default_auxv_parse): Declare.
11202 * target-delegates.c: Rebuild.
11203 * target.c: Include auxv.h.
11204 * target.h (struct target_ops) <to_auxv_parse>: Use
11205 TARGET_DEFAULT_FUNC.
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11209 * target-delegates.c: Rebuild.
11210 * target.c (target_memory_map): Unconditionally delegate.
11211 * target.h (struct target_ops) <to_memory_map>: Use
11212 TARGET_DEFAULT_RETURN.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * target-delegates.c: Rebuild.
11217 * target.c (target_thread_alive): Unconditionally delegate.
11218 * target.h (struct target_ops) <to_thread_alive>: Use
11219 TARGET_DEFAULT_RETURN.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_save_record): Unconditionally delegate.
11225 * target.h (struct target_ops) <to_save_record>: Use
11226 TARGET_DEFAULT_NORETURN.
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11230 * target-delegates.c: Rebuild.
11231 * target.c (target_delete_record): Unconditionally delegate.
11232 * target.h (struct target_ops) <to_delete_record>: Use
11233 TARGET_DEFAULT_NORETURN.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target-delegates.c: Rebuild.
11238 * target.c (target_record_is_replaying): Unconditionally
11240 * target.h (struct target_ops) <to_record_is_replaying>: Use
11241 TARGET_DEFAULT_RETURN.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_goto_record_begin): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_goto_record_begin>: Use
11248 TARGET_DEFAULT_NORETURN.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_goto_record_end): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_goto_record_end>: Use
11255 TARGET_DEFAULT_NORETURN.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_goto_record): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_goto_record>: Use
11262 TARGET_DEFAULT_NORETURN.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_insn_history): Unconditionally delegate.
11268 * target.h (struct target_ops) <to_insn_history>: Use
11269 TARGET_DEFAULT_NORETURN.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target-delegates.c: Rebuild.
11274 * target.c (target_insn_history_from): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_insn_history_from>: Use
11276 TARGET_DEFAULT_NORETURN.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target-delegates.c: Rebuild.
11281 * target.c (target_insn_history_range): Unconditionally delegate.
11282 * target.h (struct target_ops) <to_insn_history_range>: Use
11283 TARGET_DEFAULT_NORETURN.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target-delegates.c: Rebuild.
11288 * target.c (target_call_history): Unconditionally delegate.
11289 * target.h (struct target_ops) <to_call_history>: Use
11290 TARGET_DEFAULT_NORETURN.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target-delegates.c: Rebuild.
11295 * target.c (target_call_history_from): Unconditionally delegate.
11296 * target.h (struct target_ops) <to_call_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_call_history_range): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_call_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_verify_memory): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_verify_memory>: Use
11311 TARGET_DEFAULT_NORETURN.
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_core_of_thread): Unconditionally delegate.
11317 * target.h (struct target_ops) <to_core_of_thread>: Use
11318 TARGET_DEFAULT_RETURN.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target-delegates.c: Rebuild.
11323 * target.c (target_flash_done): Unconditionally delegate.
11324 * target.h (struct target_ops) <to_flash_done>: Use
11325 TARGET_DEFAULT_NORETURN.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target-delegates.c: Rebuild.
11330 * target.c (target_flash_erase): Unconditionally delegate.
11331 * target.h (struct target_ops) <to_flash_erase>: Use
11332 TARGET_DEFAULT_NORETURN.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * target-delegates.c: Rebuild.
11337 * target.c (target_get_section_table): Unconditionally delegate.
11338 * target.h (struct target_ops) <to_get_section_table>: Use
11339 TARGET_DEFAULT_RETURN.
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * target-delegates.c: Rebuild.
11344 * target.c (target_pid_to_str): Unconditionally delegate.
11345 (init_dummy_target): Don't initialize to_pid_to_str.
11346 (default_pid_to_str): Rename from dummy_pid_to_str.
11347 * target.h (struct target_ops) <to_pid_to_str>: Use
11348 TARGET_DEFAULT_FUNC.
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11352 * target-delegates.c: Rebuild.
11353 * target.c (target_find_new_threads): Unconditionally delegate.
11354 * target.h (struct target_ops) <to_find_new_threads>: Use
11355 TARGET_DEFAULT_RETURN.
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11359 * target-delegates.c: Rebuild.
11360 * target.c (target_program_signals): Unconditionally delegate.
11361 * target.h (struct target_ops) <to_program_signals>: Use
11362 TARGET_DEFAULT_IGNORE.
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11366 * target-delegates.c: Rebuild.
11367 * target.c (target_pass_signals): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_pass_signals>: Use
11369 TARGET_DEFAULT_IGNORE.
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target-delegates.c: Rebuild.
11374 * target.c (default_mourn_inferior): New function.
11375 (target_mourn_inferior): Unconditionally delegate.
11376 * target.h (struct target_ops) <to_mourn_inferior>: Use
11377 TARGET_DEFAULT_FUNC.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * target-delegates.c: Rebuild.
11382 * target.c (default_follow_fork): New function.
11383 (target_follow_fork): Unconditionally delegate.
11384 * target.h (struct target_ops) <to_follow_fork>: Use
11385 TARGET_DEFAULT_FUNC.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11389 * target-delegates.c: Rebuild.
11390 * target.c (target_kill): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_kill>: Use
11392 TARGET_DEFAULT_NORETURN.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target-delegates.c: Rebuild.
11397 * target.c (target_masked_watch_num_registers): Unconditionally
11399 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11400 Use TARGET_DEFAULT_RETURN.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target-delegates.c: Rebuild.
11405 * target.c (target_remove_mask_watchpoint): Unconditionally
11407 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11408 TARGET_DEFAULT_RETURN.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_insert_mask_watchpoint): Unconditionally
11415 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11416 TARGET_DEFAULT_RETURN.
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_ranged_break_num_registers): Unconditionally
11423 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11424 Use TARGET_DEFAULT_RETURN.
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target-delegates.c: Rebuild.
11429 * target.c (target_fetch_registers): Unconditionally delegate.
11430 * target.h (struct target_ops) <to_fetch_registers>: Use
11431 TARGET_DEFAULT_NORETURN.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * target-delegates.c: Rebuild.
11436 * target.c (update_current_target): Don't inherit or default
11438 * target.h (struct target_ops) <to_stop>: Use
11439 TARGET_DEFAULT_IGNORE.
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11443 * target-delegates.c: Rebuild.
11444 * target.c (update_current_target): Don't inherit or default
11445 to_can_run_breakpoint_commands.
11446 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11447 Use TARGET_DEFAULT_RETURN.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * target-delegates.c: Rebuild.
11452 * target.c (update_current_target): Don't inherit or default
11453 to_supports_evaluation_of_breakpoint_conditions.
11454 * target.h (struct target_ops)
11455 <to_supports_evaluation_of_breakpoint_conditions>: Use
11456 TARGET_DEFAULT_RETURN.
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_augmented_libraries_svr4_read.
11463 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11464 Use TARGET_DEFAULT_RETURN.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11471 * target.h (struct target_ops) <to_can_use_agent>: Use
11472 TARGET_DEFAULT_RETURN.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11479 * target.h (struct target_ops) <to_use_agent>: Use
11480 TARGET_DEFAULT_NORETURN.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11486 to_traceframe_info.
11487 (return_null): Remove.
11488 * target.h (struct target_ops) <to_traceframe_info>: Use
11489 TARGET_DEFAULT_RETURN.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_static_tracepoint_markers_by_strid.
11496 * target.h (struct target_ops)
11497 <to_static_tracepoint_markers_by_strid>: Use
11498 TARGET_DEFAULT_NORETURN.
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11502 * target-delegates.c: Rebuild.
11503 * target.c (update_current_target): Don't inherit or default
11504 to_static_tracepoint_marker_at.
11505 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11506 Use TARGET_DEFAULT_RETURN.
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11510 * target-delegates.c: Rebuild.
11511 * target.c (update_current_target): Don't inherit or default
11512 to_set_permissions.
11513 * target.h (struct target_ops) <to_set_permissions>: Use
11514 TARGET_DEFAULT_IGNORE.
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target-delegates.c: Rebuild.
11519 * target.c (update_current_target): Don't inherit or default
11520 to_get_tib_address.
11521 * target.h (struct target_ops) <to_get_tib_address>: Use
11522 TARGET_DEFAULT_NORETURN.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target-delegates.c: Rebuild.
11527 * target.c (update_current_target): Don't inherit or default
11528 to_set_trace_notes.
11529 * target.h (struct target_ops) <to_set_trace_notes>: Use
11530 TARGET_DEFAULT_RETURN.
11532 2014-02-19 Tom Tromey <tromey@redhat.com>
11534 * target-delegates.c: Rebuild.
11535 * target.c (update_current_target): Don't initialize
11536 to_set_trace_buffer_size.
11537 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11538 TARGET_DEFAULT_IGNORE.
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11542 * target-delegates.c: Rebuild.
11543 * target.c (update_current_target): Don't inherit or default
11544 to_set_circular_trace_buffer.
11545 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11546 TARGET_DEFAULT_IGNORE.
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11550 * target-delegates.c: Rebuild.
11551 * target.c (update_current_target): Don't inherit or default
11552 to_set_disconnected_tracing.
11553 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11554 TARGET_DEFAULT_IGNORE.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target-delegates.c: Rebuild.
11559 * target.c (update_current_target): Don't inherit or default
11560 to_get_min_fast_tracepoint_insn_len.
11561 (return_minus_one): Remove.
11562 * target.h (struct target_ops)
11563 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11567 * target-delegates.c: Rebuild.
11568 * target.c (update_current_target): Don't inherit or default
11569 to_get_raw_trace_data.
11570 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11571 TARGET_DEFAULT_NORETURN.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_upload_trace_state_variables.
11578 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11579 Use TARGET_DEFAULT_RETURN.
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11583 * target-delegates.c: Rebuild.
11584 * target.c (update_current_target): Don't inherit or default
11585 to_upload_tracepoints.
11586 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11587 TARGET_DEFAULT_RETURN.
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * target-delegates.c: Rebuild.
11592 * target.c (update_current_target): Don't inherit or default
11593 to_save_trace_data.
11594 * target.h (struct target_ops) <to_save_trace_data>: Use
11595 TARGET_DEFAULT_NORETURN.
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't inherit or default
11601 to_get_trace_state_variable_value.
11602 * target.h (struct target_ops)
11603 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11610 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11614 * target-delegates.c: Rebuild.
11615 * target.c (update_current_target): Don't inherit or default
11617 * target.h (struct target_ops) <to_trace_stop>: Use
11618 TARGET_DEFAULT_NORETURN.
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target-delegates.c: Rebuild.
11623 * target.c (update_current_target): Don't inherit or default
11624 to_get_tracepoint_status.
11625 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11626 TARGET_DEFAULT_NORETURN.
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11630 * target-delegates.c: Rebuild.
11631 * target.c (update_current_target): Don't inherit or default
11632 to_get_trace_status.
11633 * target.h (struct target_ops) <to_get_trace_status>: Use
11634 TARGET_DEFAULT_RETURN.
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11638 * target-delegates.c: Rebuild.
11639 * target.c (update_current_target): Don't inherit or default
11641 * target.h (struct target_ops) <to_trace_start>: Use
11642 TARGET_DEFAULT_NORETURN.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target-delegates.c: Rebuild.
11647 * target.c (update_current_target): Don't inherit or default
11648 to_trace_set_readonly_regions.
11649 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11650 Use TARGET_DEFAULT_NORETURN.
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11654 * target-delegates.c: Rebuild.
11655 * target.c (update_current_target): Don't inherit or default
11656 to_disable_tracepoint.
11657 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11658 TARGET_DEFAULT_NORETURN.
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11662 * target-delegates.c: Rebuild.
11663 * target.c (update_current_target): Don't inherit or default
11664 to_enable_tracepoint.
11665 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11666 TARGET_DEFAULT_NORETURN.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target-delegates.c: Rebuild.
11671 * target.c (update_current_target): Don't inherit or default
11672 to_download_trace_state_variable.
11673 * target.h (struct target_ops) <to_download_trace_state_variable>:
11674 Use TARGET_DEFAULT_NORETURN.
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11678 * target-delegates.c: Rebuild.
11679 * target.c (update_current_target): Don't inherit or default
11680 to_can_download_tracepoint.
11681 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11682 TARGET_DEFAULT_RETURN.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11688 to_download_tracepoint.
11689 * target.h (struct target_ops) <to_download_tracepoint>: Use
11690 TARGET_DEFAULT_NORETURN.
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11697 * target.h (struct target_ops) <to_trace_init>: Use
11698 TARGET_DEFAULT_RETURN.
11700 2014-02-19 Tom Tromey <tromey@redhat.com>
11702 * target-delegates.c: Rebuild.
11703 * target.c (update_current_target): Don't inherit or default
11704 to_supports_string_tracing.
11705 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11706 TARGET_DEFAULT_RETURN.
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target-delegates.c: Rebuild.
11711 * target.c (update_current_target): Don't inherit or default
11712 to_supports_enable_disable_tracepoint.
11713 * target.h (struct target_ops)
11714 <to_supports_enable_disable_tracepoint>: Use
11715 TARGET_DEFAULT_RETURN.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target-delegates.c: Rebuild.
11720 * target.c (update_current_target): Don't inherit or default
11721 to_supports_multi_process.
11722 * target.h (struct target_ops) <to_supports_multi_process>: Use
11723 TARGET_DEFAULT_RETURN.
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target-delegates.c: Rebuild.
11728 * target.c (update_current_target): Don't inherit or default
11729 to_get_ada_task_ptid.
11730 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11731 TARGET_DEFAULT_FUNC.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_thread_architecture.
11738 * target.h (struct target_ops) <to_thread_architecture>: Use
11739 TARGET_DEFAULT_FUNC.
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_execution_direction.
11746 * target.h (struct target_ops) <to_execution_direction>: Use
11747 TARGET_DEFAULT_FUNC.
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_can_execute_reverse.
11754 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11755 TARGET_DEFAULT_RETURN.
11756 (target_can_execute_reverse): Unconditionally delegate.
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11763 (dummy_goto_bookmark): Remove.
11764 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11765 * target.h (struct target_ops) <to_goto_bookmark>: Use
11766 TARGET_DEFAULT_NORETURN.
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11773 (dummy_get_bookmark): Remove.
11774 (init_dummy_target): Don't inherit or default to_get_bookmark.
11775 * target.h (struct target_ops) <to_get_bookmark>: Use
11776 TARGET_DEFAULT_NORETURN
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_make_corefile_notes.
11783 (init_dummy_target): Don't initialize to_make_corefile_notes.
11784 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11785 TARGET_DEFAULT_FUNC.
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11789 * target-delegates.c: Rebuild.
11790 * target.c (update_current_target): Don't inherit or default
11791 to_find_memory_regions.
11792 (init_dummy_target): Don't initialize to_find_memory_regions.
11793 * target.h (struct target_ops) <to_find_memory_regions>: Use
11794 TARGET_DEFAULT_FUNC.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target-delegates.c: Rebuild.
11799 * target.c (update_current_target): Don't inherit or default
11801 * target.h (struct target_ops) <to_log_command>: Use
11802 TARGET_DEFAULT_IGNORE.
11803 (target_log_command): Unconditionally delegate.
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_pid_to_exec_file.
11810 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11811 TARGET_DEFAULT_RETURN.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11818 (target_thread_name): Unconditionally delegate.
11819 * target.h (struct target_ops) <to_thread_name>: Use
11820 TARGET_DEFAULT_RETURN.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_extra_thread_info.
11827 * target.h (struct target_ops) <to_extra_thread_info>: Use
11828 TARGET_DEFAULT_RETURN.
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11835 * target.h (struct target_ops) <to_has_exited>: Use
11836 TARGET_DEFAULT_RETURN..
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_set_syscall_catchpoint.
11843 (return_one): Remove.
11844 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11845 TARGET_DEFAULT_RETURN.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * target-delegates.c: Rebuild.
11850 * target.c (update_current_target): Don't inherit or default
11851 to_insert_exec_catchpoint.
11852 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11853 TARGET_DEFAULT_RETURN.
11855 2014-01-08 Tom Tromey <tromey@redhat.com>
11857 * target-delegates.c: Rebuild.
11858 * target.c (update_current_target): Don't inherit or default
11859 to_insert_exec_catchpoint.
11860 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11861 TARGET_DEFAULT_RETURN.
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_remove_vfork_catchpoint.
11868 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11869 TARGET_DEFAULT_RETURN.
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't inherit or default
11875 to_insert_vfork_catchpoint.
11876 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11877 TARGET_DEFAULT_RETURN.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_remove_fork_catchpoint.
11884 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11885 TARGET_DEFAULT_RETURN.
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * target-delegates.c: Rebuild.
11890 * target.c (update_current_target): Don't inherit or default
11891 to_insert_fork_catchpoint.
11892 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11893 TARGET_DEFAULT_RETURN.
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11897 * target-delegates.c: Rebuild.
11898 * target.c (update_current_target): Don't inherit or default
11899 to_post_startup_inferior.
11900 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11901 TARGET_DEFAULT_IGNORE.
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11905 * target-delegates.c: Rebuild.
11906 * target.c (update_current_target): Don't inherit or default
11908 * target.h (struct target_ops) <to_load>: Use
11909 TARGET_DEFAULT_NORETURN.
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11913 * target-delegates.c: Rebuild.
11914 * target.c (update_current_target): Don't inherit or default
11916 * target.h (struct target_ops) <to_terminal_info>: Use
11917 TARGET_DEFAULT_FUNC.
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11921 * target-delegates.c: Rebuild.
11922 * target.c (update_current_target): Don't inherit or default
11923 to_terminal_save_ours.
11924 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11925 TARGET_DEFAULT_IGNORE.
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * target-delegates.c: Rebuild.
11930 * target.c (update_current_target): Don't inherit or default
11932 * target.h (struct target_ops) <to_terminal_ours>: Use
11933 TARGET_DEFAULT_IGNORE.
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target-delegates.c: Rebuild.
11938 * target.c (update_current_target): Don't inherit or default
11939 to_terminal_ours_for_output.
11940 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11941 TARGET_DEFAULT_IGNORE.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11947 to_terminal_inferior.
11948 * target.h (struct target_ops) <to_terminal_inferior>: Use
11949 TARGET_DEFAULT_IGNORE.
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11956 * target.h (struct target_ops) <to_terminal_init>: Use
11957 TARGET_DEFAULT_IGNORE.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_can_accel_watchpoint_condition.
11964 * target.h (struct target_ops)
11965 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target-delegates.c: Rebuild.
11970 * target.c (update_current_target): Don't inherit or default
11971 to_region_ok_for_hw_watchpoint.
11972 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11973 Use TARGET_DEFAULT_FUNC.
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_watchpoint_addr_within_range.
11980 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11981 Use TARGET_DEFAULT_FUNC.
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target-delegates.c: Rebuild.
11986 * target.c (update_current_target): Don't inherit or default
11987 to_remove_watchpoint.
11988 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11989 TARGET_DEFAULT_NORETURN.
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11993 * target-delegates.c: Rebuild.
11994 * target.c (update_current_target): Don't inherit or default
11995 to_insert_watchpoint.
11996 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11997 TARGET_DEFAULT_RETURN.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target-delegates.c: Rebuild.
12002 * target.c (update_current_target): Don't inherit or default
12003 to_remove_hw_breakpoint.
12004 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12005 TARGET_DEFAULT_RETURN.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target-delegates.c: Rebuild.
12010 * target.c (update_current_target): Don't inherit or default
12011 to_insert_hw_breakpoint.
12012 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12013 TARGET_DEFAULT_RETURN.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target-delegates.c: Rebuild.
12018 * target.c (update_current_target): Don't inherit or default
12019 to_can_use_hw_breakpoint.
12020 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12021 TARGET_DEFAULT_RETURN.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12028 * target.h (struct target_ops) <to_files_info>: Use
12029 TARGET_DEFAULT_IGNORE.
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12036 * target.h (struct target_ops) <to_store>: Use
12037 TARGET_DEFAULT_NORETURN.
12039 2014-02-19 Tom Tromey <tromey@redhat.com>
12041 * target-delegates.c: Rebuild.
12042 * target.c (update_current_target): Don't inherit or default
12044 * target.h (struct target_ops) <to_post_attach>: Use
12045 TARGET_DEFAULT_IGNORE.
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12049 * target-delegates.c: Rebuild.
12050 * target.c (update_current_target): Don't inherit or default
12052 (default_rcmd): New function.
12053 (do_monitor_command): Unconditionally delegate.
12054 * target.h (struct target_ops) <to_rmcd>: Use
12055 TARGET_DEFAULT_FUNC.
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12059 * target-delegates.c: Rebuild.
12060 * target.c (init_dummy_target): Don't initialize to_attach.
12061 (target_attach): Unconditionally delegate.
12062 * target.h (struct target_ops) <to_attach>: Use
12063 TARGET_DEFAULT_FUNC.
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12067 * target-delegates.c: Rebuild.
12068 * target.c (target_detach): Unconditionally delegate.
12069 (init_dummy_target): Don't initialize to_detach.
12070 * target.h (struct target_ops) <to_detach>: Use
12071 TARGET_DEFAULT_IGNORE.
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12075 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12077 (target_augmented_libraries_svr4_read): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target.h (struct target_ops) <to_call_history_range>: Add
12086 * target.c (target_call_history_range): Add argument.
12087 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12089 (record_btrace_call_history_from): Update.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * target.h (struct target_ops) <to_call_history_from>: Add
12095 * target.c (target_call_history_from): Add argument.
12096 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target.h (struct target_ops) <to_call_history>: Add argument.
12102 * target.c (target_call_history): Add argument.
12103 * record-btrace.c (record_btrace_call_history): Add 'self'
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target.h (struct target_ops) <to_insn_history_range>: Add
12110 * target.c (target_insn_history_range): Add argument.
12111 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12113 (record_btrace_insn_history_from): Update.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_insn_history_from>: Add
12119 * target.c (target_insn_history_from): Add argument.
12120 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target.h (struct target_ops) <to_insn_history>: Add argument.
12126 * target.c (target_insn_history): Add argument.
12127 * record-btrace.c (record_btrace_insn_history): Add 'self'
12130 2014-02-19 Tom Tromey <tromey@redhat.com>
12132 * target.h (struct target_ops) <to_goto_record>: Add argument.
12133 * target.c (target_goto_record): Add argument.
12134 * record-full.c (record_full_goto): Add 'self' argument.
12135 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12139 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12140 * target.c (target_goto_record_end): Add argument.
12141 * record-full.c (record_full_goto_end): Add 'self' argument.
12142 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops) <to_goto_record_begin>: Add
12148 * target.c (target_goto_record_begin): Add argument.
12149 * record-full.c (record_full_goto_begin): Add 'self' argument.
12150 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target.h (struct target_ops) <to_record_is_replaying>: Add
12157 * target.c (target_record_is_replaying): Add argument.
12158 * record-full.c (record_full_is_replaying): Add 'self' argument.
12159 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12161 (record_btrace_xfer_partial, record_btrace_store_registers)
12162 (record_btrace_prepare_to_store, record_btrace_resume)
12163 (record_btrace_wait, record_btrace_decr_pc_after_break)
12164 (record_btrace_find_new_threads, record_btrace_thread_alive):
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12169 * target.h (struct target_ops) <to_delete_record>: Add argument.
12170 * target.c (target_delete_record): Add argument.
12171 * record-full.c (record_full_delete): Add 'self' argument.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target.h (struct target_ops) <to_save_record>: Add argument.
12176 * target.c (target_save_record): Add argument.
12177 * record-full.c (record_full_save): Add 'self' argument.
12178 (record_full_save): Add 'self' argument.
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12182 * target.h (struct target_ops) <to_info_record>: Add argument.
12183 * target.c (target_info_record): Add argument.
12184 * record.c (info_record_command): Add argument.
12185 * record-full.c (record_full_info): Add 'self' argument.
12186 * record-btrace.c (record_btrace_info): Add 'self' argument.
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12191 * target.c (target_stop_recording): Add argument.
12192 * record.c (record_stop): Add argument.
12193 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12198 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12199 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12200 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12202 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12203 (_initialize_amd64_linux_nat): Use it.
12204 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12205 (_initialize_i386_linux_nat): Use it.
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12209 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12210 * target.c (target_teardown_btrace): Add argument.
12211 * remote.c (remote_teardown_btrace): Add 'self' argument.
12212 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12214 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12220 * target.c (target_disable_btrace): Add argument.
12221 * remote.c (remote_disable_btrace): Add 'self' argument.
12222 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12224 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12229 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12230 * target.c (target_enable_btrace): Add argument.
12231 * remote.c (remote_enable_btrace): Add 'self' argument.
12232 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12234 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12240 (target_can_use_agent): Add argument.
12241 * target.c (update_current_target): Update.
12242 * remote.c (remote_can_use_agent): Add 'self' argument.
12243 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12247 * target.h (struct target_ops) <to_use_agent>: Add argument.
12248 (target_use_agent): Add argument.
12249 * target.c (update_current_target): Update.
12250 * remote.c (remote_use_agent): Add 'self' argument.
12251 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12255 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12256 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12257 (target_traceframe_info): Add argument.
12258 * target.c (update_current_target): Update.
12259 * remote.c (remote_traceframe_info): Add 'self' argument.
12260 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * target.h (target_static_tracepoint_markers_by_strid): Add
12266 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12268 * target.c (update_current_target): Update.
12269 * remote.c (struct target_ops)
12270 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12271 * linux-nat.c (struct target_ops)
12272 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12276 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12278 (target_static_tracepoint_marker_at): Add argument.
12279 * target.c (update_current_target): Update.
12280 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12286 (target_set_permissions): Add argument.
12287 * target.c (update_current_target): Update.
12288 * remote.c (remote_set_permissions): Add 'self' argument.
12289 (remote_start_remote): Update.
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12294 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12295 (target_get_tib_address): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_get_tib_address): Add 'self' argument.
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12301 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12302 (target_set_trace_notes): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_set_trace_notes): Add 'self' argument.
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12308 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12310 (target_set_trace_buffer_size): Add argument.
12311 * target.c (update_current_target): Update.
12312 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12318 (target_set_circular_trace_buffer): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12325 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12327 (target_set_disconnected_tracing): Add argument.
12328 * target.c (update_current_target): Update.
12329 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12331 2014-02-19 Tom Tromey <tromey@redhat.com>
12333 * target.h (struct target_ops)
12334 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12335 (target_get_min_fast_tracepoint_insn_len): Add argument.
12336 * target.c (update_current_target): Update.
12337 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12342 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12344 (target_get_raw_trace_data): Add argument.
12345 * target.c (update_current_target): Update.
12346 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12350 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12352 (target_upload_trace_state_variables): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_upload_trace_state_variables): Add 'self'
12356 (remote_start_remote): Update.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12362 (target_upload_tracepoints): Add argument.
12363 * target.c (update_current_target): Update.
12364 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12365 (remote_start_remote): Update.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12370 (target_save_trace_data): Add argument.
12371 * target.c (update_current_target): Update.
12372 * remote.c (remote_save_trace_data): Add 'self' argument.
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12378 * target.h (struct target_ops)
12379 <to_get_trace_state_variable_value>: Add argument.
12380 (target_get_trace_state_variable_value): Add argument.
12381 * target.c (update_current_target): Update.
12382 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12384 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12389 * target.h (struct target_ops) <to_trace_find>: Add argument.
12390 (target_trace_find): Add argument.
12391 * target.c (update_current_target): Update.
12392 * remote.c (remote_trace_find): Add 'self' argument.
12393 * ctf.c (ctf_trace_find): Add 'self' argument.
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12397 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12398 (target_trace_stop): Add argument.
12399 * target.c (update_current_target): Update.
12400 * remote.c (remote_trace_stop): Add 'self' argument.
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12405 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12407 (target_get_tracepoint_status): Add argument.
12408 * target.c (update_current_target): Update.
12409 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12413 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12414 * target.h (struct target_ops) <to_get_trace_status>: Add
12416 (target_get_trace_status): Add argument.
12417 * target.c (update_current_target): Update.
12418 * remote.c (remote_get_trace_status): Add 'self' argument.
12419 (remote_start_remote, remote_can_download_tracepoint): Update.
12420 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target.h (struct target_ops) <to_trace_start>: Add argument.
12425 (target_trace_start): Add argument.
12426 * target.c (update_current_target): Update.
12427 * remote.c (remote_trace_start): Add 'self' argument.
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12431 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12433 (target_trace_set_readonly_regions): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12440 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12442 (target_disable_tracepoint): Add argument.
12443 * target.c (update_current_target): Update.
12444 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12450 (target_enable_tracepoint): Add argument.
12451 * target.c (update_current_target): Update.
12452 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12456 * target.h (struct target_ops) <to_download_trace_state_variable>:
12458 (target_download_trace_state_variable): Add argument.
12459 * target.c (update_current_target): Update.
12460 * remote.c (remote_download_trace_state_variable): Add 'self'
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12467 (target_can_download_tracepoint): Add argument.
12468 * target.c (update_current_target): Update.
12469 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops) <to_download_tracepoint>: Add
12475 (target_download_tracepoint): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_download_tracepoint): Add 'self' argument.
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12481 * target.h (struct target_ops) <to_trace_init>: Add argument.
12482 (target_trace_init): Add argument.
12483 * target.c (update_current_target): Update.
12484 * remote.c (remote_trace_init): Add 'self' argument.
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12488 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12489 * target.c (target_fileio_readlink): Add argument.
12490 * remote.c (remote_hostio_readlink): Add 'self' argument.
12491 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12496 * target.c (target_fileio_unlink): Add argument.
12497 * remote.c (remote_hostio_unlink): Add 'self' argument.
12498 (remote_file_delete): Update.
12499 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12501 2014-02-19 Tom Tromey <tromey@redhat.com>
12503 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12504 * target.c (target_fileio_close): Add argument.
12505 * remote.c (remote_hostio_close): Add 'self' argument.
12506 (remote_hostio_close_cleanup): Update.
12507 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12509 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12513 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12514 * target.c (target_fileio_pread): Add argument.
12515 * remote.c (remote_hostio_pread): Add 'self' argument.
12516 (remote_bfd_iovec_pread, remote_file_get): Update.
12517 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12522 * target.c (target_fileio_pwrite): Add argument.
12523 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12524 (remote_file_put): Update.
12525 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12529 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12530 * target.c (target_fileio_open): Add argument.
12531 * remote.c (remote_hostio_open): Add 'self' argument.
12532 (remote_bfd_iovec_open): Add 'self' argument.
12533 (remote_file_put): Add 'self' argument.
12534 (remote_file_get): Add 'self' argument.
12535 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12537 2014-02-19 Tom Tromey <tromey@redhat.com>
12539 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12541 (target_can_run_breakpoint_commands): Add argument.
12542 * target.c (update_current_target): Update.
12543 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12545 (remote_insert_breakpoint): Add 'self' argument.
12546 (remote_insert_hw_breakpoint): Add 'self' argument.
12547 (remote_can_run_breakpoint_commands): Add 'self' argument.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops)
12552 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12553 (target_supports_evaluation_of_breakpoint_conditions): Add
12555 * target.c (update_current_target): Update.
12556 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12558 (remote_insert_breakpoint): Add 'self' argument.
12559 (remote_insert_hw_breakpoint): Add 'self' argument.
12560 (remote_supports_cond_breakpoints): Add 'self' argument.
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12564 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12566 (target_supports_string_tracing): Add argument.
12567 * target.c (update_current_target): Update.
12568 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12572 * target.h (struct target_ops)
12573 <to_supports_disable_randomization>: Add argument.
12574 * target.c (find_default_supports_disable_randomization): Add
12576 (target_supports_disable_randomization): Add argument.
12577 (find_default_supports_disable_randomization): Add 'self'
12579 * remote.c (extended_remote_supports_disable_randomization): Add
12581 (remote_supports_disable_randomization): Add 'self' argument.
12582 (extended_remote_create_inferior): Update.
12583 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12586 2014-02-19 Tom Tromey <tromey@redhat.com>
12588 * target.h (struct target_ops)
12589 <to_supports_enable_disable_tracepoint>: Add argument.
12590 (target_supports_enable_disable_tracepoint): Add argument.
12591 * target.c (update_current_target): Update.
12592 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12595 2014-02-19 Tom Tromey <tromey@redhat.com>
12597 * target.h (struct target_ops) <to_supports_multi_process>: Add
12599 (target_supports_multi_process): Add argument.
12600 * target.c (update_current_target): Update.
12601 * remote.c (remote_supports_multi_process): Add 'self' argument.
12602 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12604 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target.h (struct target_ops) <to_execution_direction>: Add
12611 (target_execution_direction): Add argument.
12612 * target.c (default_execution_direction): Add 'self' argument.
12613 * record-full.c (record_full_execution_direction): Add 'self'
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12618 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12620 (target_can_execute_reverse): Add argument.
12621 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12622 * record-full.c (record_full_can_execute_reverse): Add 'self'
12624 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12627 2014-02-19 Tom Tromey <tromey@redhat.com>
12629 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12630 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12632 (target_get_ada_task_ptid): Add argument.
12633 * target.c (update_current_target): Update.
12634 (default_get_ada_task_ptid): Add 'self' argument.
12635 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12636 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12637 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12639 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12641 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12643 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12645 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12646 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12649 2014-02-19 Tom Tromey <tromey@redhat.com>
12651 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12652 (target_goto_bookmark): Add argument.
12653 * target.c (dummy_goto_bookmark): Add 'self' argument.
12654 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12659 (target_get_bookmark): Add argument.
12660 * target.c (dummy_get_bookmark): Add 'self' argument.
12661 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12663 2014-02-19 Tom Tromey <tromey@redhat.com>
12665 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12667 (target_make_corefile_notes): Add argument.
12668 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12669 * procfs.c (procfs_make_note_section): Add 'self' argument.
12670 (procfs_make_note_section): Add 'self' argument.
12671 (procfs_make_note_section): Add 'self' argument.
12672 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12674 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12675 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12676 * exec.c (exec_make_note_section): Add 'self' argument.
12677 (exec_make_note_section): Add 'self' argument.
12679 2014-02-19 Tom Tromey <tromey@redhat.com>
12681 * target.h (struct target_ops) <to_find_memory_regions>: Add
12683 (target_find_memory_regions): Add argument.
12684 * target.c (dummy_find_memory_regions): Add 'self' argument.
12685 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12686 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12687 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12688 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12689 * exec. (exec_do_find_memory_regions): New global.
12690 (exec_set_find_memory_regions): Rewrite.
12691 (exec_find_memory_regions): New function.
12692 (init_exec_ops): Use exec_find_memory_regions.
12694 2014-02-19 Tom Tromey <tromey@redhat.com>
12696 * target.h (struct target_ops) <to_supports_non_stop>: Add
12698 * target.c (find_default_supports_non_stop): Add argument.
12699 (target_supports_non_stop): Add argument.
12700 (find_default_supports_non_stop): Add 'self' argument.
12701 * remote.c (remote_supports_non_stop): Add 'self' argument.
12702 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target.h (struct target_ops) <to_log_command>: Add argument.
12707 (target_log_command): Add argument.
12708 * serial.h (serial_log_command): Add 'self' argument.
12709 * serial.c (serial_log_command): Add 'self' argument.
12711 2014-02-19 Tom Tromey <tromey@redhat.com>
12713 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12714 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12716 (target_pid_to_exec_file): Add argument.
12717 * target.c (debug_to_pid_to_exec_file): Add argument.
12718 (update_current_target): Update.
12719 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12720 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12721 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12722 (linux_handle_extended_wait): Update.
12723 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12724 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12725 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12726 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12728 2014-02-19 Tom Tromey <tromey@redhat.com>
12730 * target.h (struct target_ops) <to_rcmd>: Add argument.
12731 (target_rcmd): Add argument.
12732 * target.c (debug_to_rcmd): Add argument.
12733 (update_current_target, do_monitor_command): Update.
12734 * remote.c (remote_rcmd): Add 'self' argument.
12735 * monitor.c (monitor_rcmd): Add 'self' argument.
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12739 * windows-nat.c (windows_stop): Add 'self' argument.
12740 * target.h (struct target_ops) <to_stop>: Add argument.
12741 * target.c (target_stop): Add argument.
12742 (debug_to_stop): Add argument.
12743 (update_current_target): Update.
12744 * remote.c (remote_stop): Add 'self' argument.
12745 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12746 (gdbsim_cntrl_c): Update.
12747 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12748 * procfs.c (procfs_stop): Add 'self' argument.
12749 * nto-procfs.c (procfs_stop): Add 'self' argument.
12750 * monitor.c (monitor_stop): Add 'self' argument.
12751 (monitor_open): Update.
12752 * linux-nat.c (linux_nat_stop): Add argument.
12753 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12754 * gnu-nat.c (gnu_stop): Add 'self' argument.
12755 * darwin-nat.c (darwin_stop): Add 'self' argument.
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12759 * target.h (struct target_ops) <to_thread_name>: Add argument.
12760 * target.c (target_thread_name): Add argument.
12761 (update_current_target): Update.
12762 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * target.h (struct target_ops) <to_extra_thread_info>: Add
12768 (target_extra_thread_info): Add argument.
12769 * target.c (update_current_target): Update.
12770 * remote.c (remote_threads_extra_info): Add 'self' argument.
12771 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12773 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12774 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12775 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12777 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12779 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12781 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12786 * target.h (struct target_ops) <to_program_signals>: Add argument.
12787 * target.c (target_program_signals): Add argument.
12788 * remote.c (remote_program_signals): Add 'self' argument.
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12792 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12793 * target.c (target_pass_signals): Add argument.
12794 * remote.c (remote_pass_signals): Add 'self' argument.
12795 (remote_start_remote): Update.
12796 * procfs.c (procfs_pass_signals): Add 'self' argument.
12797 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12798 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12799 (linux_nat_create_inferior, linux_nat_attach): Update.
12801 2014-02-19 Tom Tromey <tromey@redhat.com>
12803 * windows-nat.c (windows_can_run): Add 'self' argument.
12804 * target.h (struct target_ops) <to_can_run>: Add argument.
12805 (target_can_run): Add argument.
12806 * target.c (debug_to_can_run): Add argument.
12807 (update_current_target): Update.
12808 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12809 * inf-child.c (inf_child_can_run): Add 'self' argument.
12810 * go32-nat.c (go32_can_run): Add 'self' argument.
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12814 * target.h (struct target_ops) <to_has_exited>: Add argument.
12815 (target_has_exited): Add argument.
12816 * target.c (debug_to_has_exited): Add argument.
12817 (update_current_target): Update.
12819 2014-02-19 Tom Tromey <tromey@redhat.com>
12821 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12823 (target_set_syscall_catchpoint): Add argument.
12824 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12826 * target.c (update_current_target): Update.
12828 2014-02-19 Tom Tromey <tromey@redhat.com>
12830 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12832 (target_remove_exec_catchpoint): Add argument.
12833 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12834 (update_current_target): Update.
12835 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12838 2014-02-19 Tom Tromey <tromey@redhat.com>
12840 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12842 (target_insert_exec_catchpoint): Add argument.
12843 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12844 (update_current_target): Update.
12845 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12848 2014-02-19 Tom Tromey <tromey@redhat.com>
12850 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12852 (target_remove_vfork_catchpoint): Add argument.
12853 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12854 (update_current_target): Update.
12855 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12862 (target_insert_vfork_catchpoint): Add argument.
12863 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12864 (update_current_target): Update.
12865 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12868 2014-02-19 Tom Tromey <tromey@redhat.com>
12870 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12872 (target_remove_fork_catchpoint): Add argument.
12873 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12874 (update_current_target): Update.
12875 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12878 2014-02-19 Tom Tromey <tromey@redhat.com>
12880 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12882 (target_insert_fork_catchpoint): Add argument.
12883 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12884 (update_current_target): Update.
12885 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12888 2014-02-19 Tom Tromey <tromey@redhat.com>
12890 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12892 (target_post_startup_inferior): Add argument.
12893 * target.c (debug_to_post_startup_inferior): Add argument.
12894 (update_current_target): Update.
12895 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12897 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12899 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12901 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12903 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12905 (super_post_startup_inferior): Likewise.
12906 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12908 (super_post_startup_inferior): Likewise.
12909 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12910 Add 'self' argument.
12911 (super_post_startup_inferior): Likewise.
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12915 * target.h (struct target_ops) <to_load>: Add argument.
12916 * target.c (target_load): Add argument.
12917 (debug_to_load): Add argument.
12918 (update_current_target): Update.
12919 * remote.c (remote_load): Add 'self' argument.
12920 * remote-sim.c (gdbsim_load): Add 'self' argument.
12921 * remote-mips.c (mips_load): Add 'self' argument.
12922 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12923 * monitor.c (monitor_load): Add 'self' argument.
12924 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12926 2014-02-19 Tom Tromey <tromey@redhat.com>
12928 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12929 (target_terminal_info): Add argument.
12930 * target.c (debug_to_terminal_info): Add argument.
12931 (default_terminal_info): Likewise.
12932 * inflow.c (child_terminal_info): Add 'self' argument.
12933 * inferior.h (child_terminal_info): Add 'self' argument.
12934 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12936 2014-02-19 Tom Tromey <tromey@redhat.com>
12938 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12940 (target_terminal_save_ours): Add argument.
12941 * target.c (debug_to_terminal_save_ours): Add argument.
12942 (update_current_target): Update.
12943 * inflow.c (terminal_save_ours): Add 'self' argument.
12944 * inferior.h (terminal_save_ours): Add 'self' argument.
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12949 (target_terminal_ours): Add argument.
12950 * target.c (debug_to_terminal_ours): Add argument.
12951 (update_current_target): Update.
12952 * remote.c (remote_terminal_ours): Add 'self' argument.
12953 (remote_close): Update.
12954 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12955 * inflow.c (terminal_ours): Add 'self' argument.
12956 * inferior.h (terminal_ours): Add 'self' argument.
12957 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12959 2014-02-19 Pedro Alves <palves@redhat.com>
12960 Tom Tromey <tromey@redhat.com>
12962 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12964 (target_terminal_ours_for_output): Add argument.
12965 * target.c (debug_to_terminal_ours_for_output): Add argument.
12966 (update_current_target): Update.
12967 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12968 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12969 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12973 * target.h (struct target_ops) <to_terminal_inferior>: Add
12975 * target.c (target_terminal_inferior): Add argument.
12976 (update_current_target): Update.
12977 * remote.c (remote_terminal_inferior): Add 'self' argument.
12978 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12979 * inflow.c (terminal_inferior): Add 'self' argument.
12980 * inferior.h (terminal_inferior): Add 'self' argument.
12981 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12982 (go32_terminal_inferior): Add 'self' argument.
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12986 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12987 (target_terminal_init): Add argument.
12988 * target.c (debug_to_terminal_init): Add argument.
12989 (update_current_target): Update.
12990 * inflow.c (terminal_init_inferior): Add 'self' argument.
12991 * inferior.h (terminal_init_inferior): Add 'self' argument.
12992 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12993 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12995 2014-02-19 Tom Tromey <tromey@redhat.com>
12997 * target.h (struct target_ops)
12998 <to_can_accel_watchpoint_condition>: Add argument.
12999 (target_can_accel_watchpoint_condition): Add argument.
13000 * target.c (debug_to_can_accel_watchpoint_condition): Add
13002 (update_current_target): Update.
13003 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13008 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13010 (target_region_ok_for_hw_watchpoint): Add argument.
13011 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13012 (default_region_ok_for_hw_watchpoint): Add argument.
13013 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13014 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13016 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13018 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13020 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13022 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13024 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13026 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13027 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13029 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13030 Add 'self' argument.
13032 2014-02-19 Tom Tromey <tromey@redhat.com>
13034 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13036 (target_insert_watchpoint): Add argument.
13037 * target.c (debug_to_insert_watchpoint): Add argument.
13038 (update_current_target): Update.
13039 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13040 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13041 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13042 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13043 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13044 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13046 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13047 (procfs_insert_hw_watchpoint): Add 'self' argument.
13048 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13050 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13052 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13054 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13055 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13057 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13060 2014-02-19 Tom Tromey <tromey@redhat.com>
13062 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13064 (target_remove_watchpoint): Add argument.
13065 * target.c (debug_to_remove_watchpoint): Add argument.
13066 (update_current_target): Update.
13067 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13068 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13069 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13070 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13071 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13072 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13074 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13075 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13077 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13079 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13081 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13082 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13084 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13089 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13091 (target_remove_hw_breakpoint): Add argument.
13092 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13093 (update_current_target): Update.
13094 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13095 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13097 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13098 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13100 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13105 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13107 (target_insert_hw_breakpoint): Add argument.
13108 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13109 (update_current_target): Update.
13110 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13111 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13113 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13114 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13115 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13117 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13122 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13124 (target_can_use_hardware_watchpoint): Add argument.
13125 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13126 (update_current_target): Update.
13127 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13129 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13131 * remote.c (remote_check_watch_resources): Add 'self' argument.
13132 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13133 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13135 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13136 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13138 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13140 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13142 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13144 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13146 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13148 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13149 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13151 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13154 2014-02-19 Tom Tromey <tromey@redhat.com>
13156 * target.h (struct target_ops) <to_post_attach>: Add argument.
13157 (target_post_attach): Add argument.
13158 * target.c (debug_to_post_attach): Add argument.
13159 (update_current_target): Update.
13160 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13161 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13162 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13163 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13164 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13168 * windows-nat.c (windows_close): Add 'self' argument.
13169 * tracepoint.c (tfile_close): Add 'self' argument.
13170 * target.h (struct target_ops) <to_close>: Add argument.
13171 * target.c (target_close): Add argument.
13172 (update_current_target): Update.
13173 * remote.c (remote_close): Add 'self' argument.
13174 * remote-sim.c (gdbsim_close): Add 'self' argument.
13175 * remote-mips.c (mips_close): Add 'self' argument.
13176 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13177 * record-full.c (record_full_close): Add 'self' argument.
13178 * record-btrace.c (record_btrace_close): Add 'self' argument.
13179 * monitor.h (monitor_close): Add 'self' argument.
13180 * monitor.c (monitor_close): Add 'self' argument.
13181 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13182 * linux-nat.c (linux_nat_close): Add argument.
13183 * go32-nat.c (go32_close): Add 'self' argument.
13184 * exec.c (exec_close_1): Add 'self' argument.
13185 * ctf.c (ctf_close): Add 'self' argument.
13186 * corelow.c (core_close): Add 'self' argument.
13187 (core_close_cleanup): Update.
13188 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13189 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13191 2014-02-19 Tom Tromey <tromey@redhat.com>
13193 * remote.c (remote_load): New function.
13194 (init_remote_ops): Use it.
13196 2014-02-19 Tom Tromey <tromey@redhat.com>
13198 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13200 * common/linux-btrace.h (linux_supports_btrace): Update.
13201 * remote.c (remote_supports_btrace): Add "self" argument.
13202 * target-delegates.c: Rebuild.
13203 * target.c (target_supports_btrace): Remove.
13204 * target.h (struct target_ops) <to_supports_btrace>: Add
13205 target_ops argument.
13206 (target_supports_btrace): New define.
13208 2014-02-19 Tom Tromey <tromey@redhat.com>
13210 * record-full.c (record_full_beneath_to_resume_ops)
13211 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13212 (record_full_beneath_to_wait)
13213 (record_full_beneath_to_store_registers_ops)
13214 (record_full_beneath_to_store_registers)
13215 (record_full_beneath_to_xfer_partial_ops)
13216 (record_full_beneath_to_xfer_partial)
13217 (record_full_beneath_to_insert_breakpoint_ops)
13218 (record_full_beneath_to_insert_breakpoint)
13219 (record_full_beneath_to_remove_breakpoint_ops)
13220 (record_full_beneath_to_remove_breakpoint)
13221 (record_full_beneath_to_stopped_by_watchpoint)
13222 (record_full_beneath_to_stopped_data_address)
13223 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13224 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13225 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13226 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13227 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13228 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13229 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13230 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13231 (record_full_resume, record_full_wait_1)
13232 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13233 (record_full_store_registers, record_full_xfer_partial)
13234 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13235 (record_full_async, record_full_core_xfer_partial): Use target
13237 * target-delegates.c: Rebuild.
13238 * target.c (current_xfer_partial): Remove.
13239 (update_current_target): Do not INHERIT or de_fault
13240 to_insert_breakpoint, to_remove_breakpoint,
13241 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13242 to_is_async_p, to_async. Do not set to_xfer_partial field.
13243 (default_xfer_partial): Simplify.
13244 (current_xfer_partial): Remove.
13245 (target_wait, target_resume): Simplify.
13246 (find_default_can_async_p, find_default_is_async_p): Update.
13247 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13248 to_xfer_partial, to_stopped_by_watchpoint,
13249 to_stopped_data_address.
13250 (target_store_registers): Simplify.
13251 (forward_target_remove_breakpoint)
13252 (forward_target_insert_breakpoint): Remove.
13253 (target_remove_breakpoint, target_insert_breakpoint)
13254 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13255 * target.h (struct target_ops) <to_resume, to_wait,
13256 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13257 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13258 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13260 (forward_target_remove_breakpoint)
13261 (forward_target_insert_breakpoint): Remove.
13262 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13264 (record_btrace_insert_breakpoint): Delegate directly.
13266 2014-02-19 Tom Tromey <tromey@redhat.com>
13269 * target-delegates.c: New file.
13270 * target.c: Include target-delegates.c.
13271 (init_dummy_target): Call install_dummy_methods.
13272 (complete_target_initialization): Call install_delegators.
13273 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13274 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13275 * make-target-delegates: New file.
13277 2014-02-19 Tom Tromey <tromey@redhat.com>
13279 * record.c (find_record_target): Use find_target_at.
13280 * target.c (find_target_at): New function.
13281 * target.h (find_target_at): Declare.
13283 2014-02-19 Tom Tromey <tromey@redhat.com>
13285 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13286 Add 'ops' argument.
13287 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13289 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13290 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13292 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13294 * linux-nat.c (save_sigtrap): Update.
13295 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13296 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13297 (linux_nat_close): Update.
13298 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13300 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13302 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13303 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13304 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13305 (tmp_to_async): Add 'ops' argument.
13306 (record_full_stopped_by_watchpoint, record_full_async)
13307 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13309 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13310 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13311 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13312 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13313 (remote_is_async_p, remote_async): Add 'ops' argument.
13314 (remote_stopped_data_address): Update.
13315 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13316 * target.c (update_current_target)
13317 (find_default_can_async_p, find_default_is_async_p): Update.
13318 (init_dummy_target): Update.
13319 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13320 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13321 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13322 (target_can_async_p, target_is_async_p, target_async)
13323 (target_stopped_by_watchpoint): Update.
13325 2014-02-19 Yao Qi <yao@codesourcery.com>
13328 * gdbarch.sh: Remove startup_gdbarch.
13329 * gdbarch.c: Regenerated.
13330 * gdbarch.h: Likewise.
13332 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13334 * rl78-tdep.c (rl78_g10_register_name): New function.
13335 (rl78_return_value): Add g10 support.
13336 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13339 2014-02-17 Doug Evans <xdje42@gmail.com>
13341 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13342 (SUBDIR_GUILE_SRCS): Ditto.
13343 (scm-gsmob.o): Ditto.
13345 2014-02-17 Yao Qi <yao@codesourcery.com>
13347 * gnu-nat.c (ILL_RPC): Declare defined function.
13349 2014-02-17 Yao Qi <yao@codesourcery.com>
13351 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13352 mach_msg_type_number_t.
13353 (gnu_write_inferior): Likewise.
13355 2014-02-17 Yao Qi <yao@codesourcery.com>
13357 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13359 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13360 (inf_validate_procs, inf_signal): Likewise.
13361 (S_exception_raise_request): Likewise.
13362 (do_mach_notify_dead_name): Likewise.
13363 (steal_exc_port): Likewise.
13364 (gnu_read_inferior): Change 'copy_count''s type to
13365 mach_msg_type_number_t.
13366 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13369 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13371 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13372 flag. Adjust all users; in particular...
13373 (gnu_wait): ..., don't decrement its value in here...
13374 (gnu_create_inferior): ..., and instead set the flag in here,
13375 around the startup_inferior call, and call that one with
13376 START_INFERIOR_TRAPS_EXPECTED.
13378 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13379 (ILL_RPC): ... new macro.
13380 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13381 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13382 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13383 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13384 functions with ILL_RPC macro.
13385 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13386 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13387 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13388 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13389 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13390 (S_proc_getlogin_reply, S_proc_getsid_reply)
13391 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13392 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13393 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13394 (S_proc_getnports_reply, S_proc_is_important_reply)
13395 (S_proc_get_code_reply): New stub functions, generated with
13398 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13399 collected the type check structures.
13401 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13403 2014-02-14 Doug Evans <dje@google.com>
13405 * target.c (target_write_partial): Fix result type.
13407 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13409 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13410 the proper offsets to access fpregset_t.
13412 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13414 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13415 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13416 * h8300-tdep.c (setmachinelist): Remove global.
13417 * hppa-tdep.c (hppa_sigtramp): Remove global.
13418 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13419 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13420 * ravenscar-thread.c (update_target_observer): Remove global.
13421 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13423 2014-02-12 Tom Tromey <tromey@redhat.com>
13425 * common/rsp-low.c: Update comments.
13426 * common/rsp-low.h: Update comments.
13428 2014-02-12 Tom Tromey <tromey@redhat.com>
13430 * common/rsp-low.c (convert_ascii_to_int): Remove.
13431 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13433 2014-02-12 Tom Tromey <tromey@redhat.com>
13435 * common/rsp-low.h (unhexify): Don't declare.
13436 * common/rsp-low.c (unhexify): Remove.
13438 2014-02-12 Tom Tromey <tromey@redhat.com>
13440 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13441 * common/rsp-low.c (convert_int_to_ascii): Remove.
13443 2014-02-12 Tom Tromey <tromey@redhat.com>
13445 * common/rsp-low.h (hexify): Don't declare.
13446 * common/rsp-low.c (hexify): Remove.
13448 2014-02-12 Tom Tromey <tromey@redhat.com>
13450 * common/rsp-low.c (hexify): Never take strlen of argument.
13452 2014-02-12 Tom Tromey <tromey@redhat.com>
13454 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13455 * remote.c (extended_remote_run, remote_rcmd)
13456 (remote_download_trace_state_variable, remote_save_trace_data)
13457 (remote_set_trace_notes): Update.
13458 * tracepoint.c (encode_source_string, tfile_write_status)
13459 (tfile_write_uploaded_tsv): Update.
13461 2014-02-12 Tom Tromey <tromey@redhat.com>
13463 * tracepoint.c: Include rsp-low.h.
13464 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13465 * remote.c: Include rsp-low.h.
13466 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13467 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13468 (remote_unescape_input): Move to common/rsp-low.c.
13469 * common/rsp-low.h: New file.
13470 * common/rsp-low.c: New file.
13471 * Makefile.in (SFILES): Add common/rsp-low.c.
13472 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13473 (COMMON_OBS): Add rsp-low.o.
13474 (rsp-low.o): New target.
13476 2014-02-12 Tom Tromey <tromey@redhat.com>
13478 * utils.h: Include print-utils.h.
13479 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13480 (int_string, core_addr_to_string, core_addr_to_string_nz)
13481 (hex_string, hex_string_custom): Don't declare.
13482 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13483 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13484 (hex_string_custom, int_string, core_addr_to_string)
13485 (core_addr_to_string_nz, host_address_to_string): Move to
13486 common/print-utils.c.
13487 * common/print-utils.h: New file.
13488 * common/print-utils.c: New file
13489 * Makefile.in (SFILES): Add common/print-utils.c.
13490 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13491 (COMMON_OBS): Add print-utils.o.
13492 (print-utils.o): New target.
13494 2014-02-12 Tom Tromey <tromey@redhat.com>
13496 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13498 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13500 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13502 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13504 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13505 if a PT_IO ptrace request returns sucessfully but indicates that 0
13506 bytes were transferred.
13508 2014-02-12 Pedro Alves <palves@redhat.com>
13509 Kevin Buettner <kevinb@redhat.com>
13511 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13512 TYPE_INSTANCE_FLAG_CODE_SPACE.
13514 2014-02-12 Pedro Alves <palves@redhat.com>
13516 * h8300-tdep.c (pseudo_from_raw_register)
13517 (raw_from_pseudo_register): New functions.
13518 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13521 2014-02-12 Pedro Alves <palves@redhat.com>
13523 * h8300-tdep.c (h8300_register_sim_regno): New function.
13524 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13525 gdbarch_register_sim_regno hook.
13527 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13529 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13531 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13533 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13535 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13537 * obsd-tdep.h (obsd_init_abi): New prototype.
13538 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13539 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13540 (obsd_init_abi): New functions.
13541 * i386obsd-tdep.c: Include "obsd-tdep.h".
13542 (i386obsd_init_abi): Call obsd_init_abi.
13543 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13544 (amd64obsd_init_abi): Call obsd_init_abi.
13545 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13546 obsd-tdep.c to gdb_target_obs.
13548 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13550 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13551 double float arguments to 16-byte in the argument slots.
13553 2014-02-11 Doug Evans <xdje42@gmail.com>
13555 * configure.ac: Don't crash if pkg-config is not found and guile
13556 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13558 * configure: Regenerate.
13560 2014-02-11 Yao Qi <yao@codesourcery.com>
13562 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13563 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13564 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13565 * gnu-nat.c (gnu_xfer_memory): Likewise.
13566 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13567 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13568 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13569 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13571 2014-02-11 Yao Qi <yao@codesourcery.com>
13573 * target.h (enum target_xfer_error): Rename to ...
13574 (enum target_xfer_status): ... it. New. All users updated.
13575 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13577 (TARGET_XFER_STATUS_ERROR_P): New macro.
13578 (target_xfer_error_to_string): Remove declaration.
13579 (target_xfer_status_to_string): Declare.
13580 (target_xfer_partial_ftype): Adjust it.
13581 (struct target_ops) <to_xfer_partial>: Return
13582 target_xfer_status. Add argument xfered_len. Update
13584 * target.c (target_xfer_error_to_string): Rename to ...
13585 (target_xfer_status_to_string): ... it. New. All callers
13587 (target_read_live_memory): Likewise. Call target_xfer_partial
13588 instead of target_read.
13589 (memory_xfer_live_readonly_partial): Return
13590 target_xfer_status. Add argument xfered_len.
13591 (raw_memory_xfer_partial): Likewise.
13592 (memory_xfer_partial_1): Likewise.
13593 (memory_xfer_partial): Likewise.
13594 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13595 properly. Update debug message.
13596 (default_xfer_partial, current_xfer_partial): Likewise.
13597 (target_write_partial): Likewise.
13598 (target_read_partial): Likewise. All callers updated.
13599 (read_whatever_is_readable): Likewise.
13600 (target_write_with_progress): Likewise.
13601 (target_read_alloc_1): Likewise.
13603 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13604 * auxv.c (procfs_xfer_auxv): Likewise.
13605 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13606 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13607 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13608 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13609 * corefile.c (read_memory): Adjust.
13610 * corelow.c (core_xfer_partial): Likewise.
13611 * ctf.c (ctf_xfer_partial): Likewise.
13612 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13614 (darwin_xfer_partial): Likewise.
13615 * exec.c (section_table_xfer_memory_partial): Likewise. All
13617 (exec_xfer_partial): Likewise.
13618 * exec.h (section_table_xfer_memory_partial): Update
13620 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13622 (gnu_xfer_partial): Likewise.
13623 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13624 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13625 (ia64_hpux_xfer_solib_got): Likewise.
13626 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13627 type of 'partial_len' to ULONGEST.
13628 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13629 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13630 (linux_nat_xfer_partial): Likewise.
13631 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13632 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13633 * monitor.c (monitor_xfer_memory): Likewise.
13634 (monitor_xfer_partial): Likewise.
13635 * procfs.c (procfs_xfer_partial): Likewise.
13636 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13637 * record-full.c (record_full_xfer_partial): Likewise.
13638 (record_full_core_xfer_partial): Likewise.
13639 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13640 (gdbsim_xfer_partial): Likewise.
13641 * remote.c (remote_write_bytes_aux): Likewise. All callers
13643 (remote_write_bytes, remote_read_bytes): Likewise. All
13645 (remote_flash_erase): Likewise. All callers updated.
13646 (remote_write_qxfer): Likewise. All callers updated.
13647 (remote_read_qxfer): Likewise. All callers updated.
13648 (remote_xfer_partial): Likewise.
13649 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13650 (rs6000_xfer_shared_libraries): Likewise.
13651 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13652 (sol_thread_xfer_partial): Likewise.
13653 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13654 (sparc_xfer_partial): Likewise.
13655 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13657 (spu_xfer_partial): Likewise.
13658 * spu-multiarch.c (spu_xfer_partial): Likewise.
13659 * tracepoint.c (tfile_xfer_partial): Likewise.
13660 * windows-nat.c (windows_xfer_memory): Likewise.
13661 (windows_xfer_shared_libraries): Likewise.
13662 (windows_xfer_partial): Likewise.
13663 * valprint.c: Replace 'target_xfer_error' with
13664 'target_xfer_status' in comments.
13666 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13668 Checked in by Joel Brobecker <brobecker@adacore.com>.
13669 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13671 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13673 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13674 function parameters.
13676 2014-02-10 Will Newton <will.newton@linaro.org>
13678 * elfread.c (elf_rel_plt_read): Look for a .got section if
13679 looking up .got.plt fails.
13680 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13681 on address passed to elf_gnu_ifunc_record_cache.
13682 (elf_gnu_ifunc_resolve_addr): Likewise.
13683 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13685 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13687 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13688 (X_RETTURN): New macro.
13689 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13691 * sparc64-tdep.c (sparc64_init_abi): Hook
13692 sparc_in_function_epilogue_p.
13694 2014-02-10 Gary Benson <gbenson@redhat.com>
13696 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13697 Rename name_matcher to symbol_matcher.
13699 2014-02-10 Gary Benson <gbenson@redhat.com>
13701 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13702 Use expand_symtabs_file_matcher_ftype and
13703 expand_symtabs_symbol_matcher_ftype.
13705 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13707 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13708 (struct ada_symbol_cache): New.
13709 (ada_free_symbol_cache): Forward declare.
13710 (struct ada_pspace_data): New.
13711 (ada_pspace_data_handle): New static global.
13712 (get_ada_pspace_data, ada_pspace_data_cleanup)
13713 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13714 (cache_space, cache): Delete, now folded inside struct
13716 (ada_get_symbol_cache): New function.
13717 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13719 (_initialize_ada_language): Remove initialization of cache_space.
13720 Move call to observer_attach_inferior_exit up, grouping it
13721 with the other observer registrations inside this function.
13722 Rename command to be more general. Add call to
13723 register_program_space_data_with_cleanup.
13725 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13727 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13728 ada_new_objfile_observer.
13729 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13730 (_initialize_tasks): Update uses of ada_new_objfile_observer
13731 and ada_tasks_normal_stop_observer.
13733 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13735 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13736 returned by the 'Length attribute to integer.
13738 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13740 * ada-lang.c (_initialize_ada_language): Initialize
13741 cache_space obstack.
13743 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13745 * ada-lang.c (HASH_SIZE): New macro.
13746 (struct cache_entry): New type.
13747 (cache_space, cache): New static globals.
13748 (ada_clear_symbol_cache, find_entry): New functions.
13749 (lookup_cached_symbol, cache_symbol): Implement.
13750 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13751 (_initialize_ada_language): Attach ada_new_objfile_observer
13752 and ada_free_objfile_observer.
13754 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13756 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13757 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13758 struct block * parameter.
13759 (ada_lookup_symbol_list_worker): Constify local variable "block".
13760 Remove cast which is no longer necessary.
13762 2014-02-10 Doug Evans <xdje42@gmail.com>
13764 Add Guile as an extension language.
13765 * NEWS: Mention Guile scripting.
13766 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13767 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13768 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13769 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13770 (CLIBS): Add GUILE_LIBS.
13771 (install-guile): New rule.
13772 (guile.o): New rule.
13773 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13774 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13775 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13776 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13777 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13778 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13779 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13780 * configure.ac: New option --with-guile.
13781 * configure: Regenerate.
13782 * config.in: Regenerate.
13783 * auto-load.c: Remove #include "python/python.h". Add #include
13784 "gdb/section-scripts.h".
13785 (source_section_scripts): Handle Guile scripts.
13786 (_initialize_auto_load): Add name of Guile objfile script to
13787 scripts-directory help text.
13788 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13789 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13790 (struct breakpoint): New member scm_bp_object.
13791 * defs.h (enum command_control_type): New value guile_control.
13792 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13794 (show_user): Update comment.
13795 (_initialize_cli_cmds): Update help text for "show user". Update help
13796 text for max-user-call-depth.
13797 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13799 (multi_line_command_p): Add guile_control.
13800 (print_command_lines): Handle guile_control.
13801 (execute_control_command, recurse_read_control_structure): Ditto.
13802 (process_next_line): Recognize "guile" commands.
13803 * disasm.c (gdb_disassemble_info): Make non-static.
13804 * disasm.h: #include "dis-asm.h".
13805 (struct gdbarch): Add forward decl.
13806 (gdb_disassemble_info): Declare.
13807 * extension.c: #include "guile/guile.h".
13808 (extension_languages): Add guile.
13809 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13810 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13811 * gdbtypes.c (get_unsigned_type_max): New function.
13812 (get_signed_type_minmax): New function.
13813 * gdbtypes.h (get_unsigned_type_max): Declare.
13814 (get_signed_type_minmax): Declare.
13815 * guile/README: New file.
13816 * guile/guile-internal.h: New file.
13817 * guile/guile.c: New file.
13818 * guile/guile.h: New file.
13819 * guile/scm-arch.c: New file.
13820 * guile/scm-auto-load.c: New file.
13821 * guile/scm-block.c: New file.
13822 * guile/scm-breakpoint.c: New file.
13823 * guile/scm-disasm.c: New file.
13824 * guile/scm-exception.c: New file.
13825 * guile/scm-frame.c: New file.
13826 * guile/scm-gsmob.c: New file.
13827 * guile/scm-iterator.c: New file.
13828 * guile/scm-lazy-string.c: New file.
13829 * guile/scm-math.c: New file.
13830 * guile/scm-objfile.c: New file.
13831 * guile/scm-ports.c: New file.
13832 * guile/scm-pretty-print.c: New file.
13833 * guile/scm-safe-call.c: New file.
13834 * guile/scm-string.c: New file.
13835 * guile/scm-symbol.c: New file.
13836 * guile/scm-symtab.c: New file.
13837 * guile/scm-type.c: New file.
13838 * guile/scm-utils.c: New file.
13839 * guile/scm-value.c: New file.
13840 * guile/lib/gdb.scm: New file.
13841 * guile/lib/gdb/boot.scm: New file.
13842 * guile/lib/gdb/experimental.scm: New file.
13843 * guile/lib/gdb/init.scm: New file.
13844 * guile/lib/gdb/iterator.scm: New file.
13845 * guile/lib/gdb/printing.scm: New file.
13846 * guile/lib/gdb/types.scm: New file.
13847 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13848 (VPATH): Add $(GUILE_SRCDIR).
13849 (GUILE_DIR): New variable.
13850 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13851 (all): Add stamp-guile dependency.
13852 (stamp-guile): New rule.
13853 (clean-guile, install-guile, uninstall-guile): New rules.
13854 (install-only): Add install-guile dependency.
13855 (uninstall): Add uninstall-guile dependency.
13856 (clean): Add clean-guile dependency.
13858 2014-02-09 Doug Evans <xdje42@gmail.com>
13860 Revert this patch (which I approved, mea culpa).
13862 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13864 * Makefile.in (all-lib): Remove.
13865 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13867 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13869 Fix Python stack corruption.
13870 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13873 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13875 * Makefile.in (all-lib): Remove.
13876 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13878 2014-02-07 Doug Evans <dje@google.com>
13880 * extension-priv.h (extension_language_script_ops): Add comment.
13881 (extension_language_ops): Add comment.
13882 (active_ext_lang_state): Fix typo in comment.
13884 2014-02-07 Pedro Alves <palves@redhat.com>
13886 PR breakpoints/16292
13887 * infrun.c (handle_signal_stop) <signal arrives while stepping
13888 over a breakpoint>: Switch back to the stepping thread.
13890 2014-02-07 Yao Qi <yao@codesourcery.com>
13892 * target.c (target_xfer_partial): Return zero if LEN is zero.
13894 2014-02-07 Yao Qi <yao@codesourcery.com>
13896 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13897 (ld_so_xfer_auxv): Likewise.
13898 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13899 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13900 * corelow.c (core_xfer_partial): Likewise.
13901 * ctf.c (ctf_xfer_partial): Likewise.
13902 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13903 (darwin_xfer_partial): Likewise.
13904 * exec.c (exec_xfer_partial): Likewise.
13905 * gnu-nat.c (gnu_xfer_partial): Likewise.
13906 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13907 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13908 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13909 * linux-nat.c (linux_xfer_siginfo): Likewise.
13910 (linux_proc_xfer_spu): Likewise.
13911 * procfs.c (procfs_xfer_partial): Likewise.
13912 * record-full.c (record_full_xfer_partial): Likewise.
13913 (record_full_core_xfer_partial): Likewise.
13914 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13915 * remote.c (remote_write_qxfer): Likewise.
13916 (remote_write_qxfer, remote_read_qxfer): Likewise.
13917 (remote_xfer_partial): Likewise.
13918 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13919 (rs6000_xfer_shared_libraries): Likewise.
13920 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13921 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13922 (spu_xfer_partial): Likewise.
13923 * target.c (memory_xfer_partial_1): Likewise.
13924 * tracepoint.c (tfile_xfer_partial): Likewise.
13925 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13926 (windows_xfer_partial): Likewise.
13928 2014-02-07 Yao Qi <yao@codesourcery.com>
13930 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13932 (core_xfer_shared_libraries_aix): Likewise.
13933 * gdbarch.c, gdbarch.h: Regenerated.
13934 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13935 ULONGEST. Change 'len_avail' type to ULONGEST.
13936 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13937 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13939 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13941 2014-02-07 Yao Qi <yao@codesourcery.com>
13943 * corefile.c (memory_error): Get 'exception' from ERR and pass
13944 'exception' to throw_error.
13946 2014-02-06 Doug Evans <xdje42@gmail.com>
13948 * configure.ac (libpython checking): Remove all but python.o from
13949 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13950 * configure: Regenerate.
13952 * Makefile.in (SFILES): Add extension.c.
13953 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13954 (COMMON_OBS): Add extension.o.
13955 * extension.h: New file.
13956 * extension-priv.h: New file.
13957 * extension.c: New file.
13959 * python/python-internal.h: #include "extension.h".
13960 (gdbpy_auto_load_enabled): Declare.
13961 (gdbpy_apply_val_pretty_printer): Declare.
13962 (gdbpy_apply_frame_filter): Declare.
13963 (gdbpy_preserve_values): Declare.
13964 (gdbpy_breakpoint_cond_says_stop): Declare.
13965 (gdbpy_breakpoint_has_cond): Declare.
13966 (void source_python_script_for_objfile): Delete.
13967 * python/python.c: #include "extension-priv.h".
13968 Delete inclusion of "observer.h".
13969 (extension_language_python): Moved here and renamed from
13970 script_language_python in py-auto-load.c.
13971 Redefined to be of type extension_language_defn.
13972 (python_extension_script_ops): New global.
13973 (python_extension_ops): New global.
13974 (struct python_env): New member previous_active.
13975 (restore_python_env): Call restore_active_ext_lang.
13976 (ensure_python_env): Call set_active_ext_lang.
13977 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13979 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13981 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13983 (gdbpy_eval_from_control_command): Renamed from
13984 eval_python_from_control_command, made static. New arg extlang.
13985 (gdbpy_source_script) Renamed from source_python_script, made static.
13987 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13988 result to int. New arg extlang.
13989 (gdbpy_source_objfile_script): Renamed from
13990 source_python_script_for_objfile, made static. New arg extlang.
13991 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13992 static. New args extlang, extlang_printers. Change result type to
13994 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13995 static. New arg extlang. Rename arg printers to extlang_printers
13996 and change type to ext_lang_type_printers *.
13997 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13998 static. Replace argument arg with extlang, extlang_printers.
13999 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14000 (!HAVE_PYTHON, source_python_script): Delete.
14001 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14002 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14003 (!HAVE_PYTHON, start_type_printers): Delete.
14004 (!HAVE_PYTHON, apply_type_printers): Delete.
14005 (!HAVE_PYTHON, free_type_printers): Delete.
14006 (_initialize_python): Delete call to observer_attach_before_prompt.
14007 (finalize_python): Set/restore active extension language.
14008 (gdbpy_finish_initialization) Renamed from
14009 finish_python_initialization, made static. New arg extlang.
14010 (gdbpy_initialized): New function.
14011 * python/python.h: #include "extension.h". Delete #include
14012 "value.h", "mi/mi-cmds.h".
14013 (extension_language_python): Declare.
14014 (GDBPY_AUTO_FILE_NAME): Delete.
14015 (enum py_bt_status): Moved to extension.h and renamed to
14016 ext_lang_bt_status.
14017 (enum frame_filter_flags): Moved to extension.h.
14018 (enum py_frame_args): Moved to extension.h and renamed to
14019 ext_lang_frame_args.
14020 (finish_python_initialization): Delete.
14021 (eval_python_from_control_command): Delete.
14022 (source_python_script): Delete.
14023 (apply_val_pretty_printer): Delete.
14024 (apply_frame_filter): Delete.
14025 (preserve_python_values): Delete.
14026 (gdbpy_script_language_defn): Delete.
14027 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14028 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14030 * auto-load.c: #include "extension.h".
14031 (GDB_AUTO_FILE_NAME): Delete.
14032 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14033 (script_language_gdb): Delete, moved to extension.c and renamed to
14034 extension_language_gdb.
14035 (source_gdb_script_for_objfile): Delete.
14036 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14037 (loaded_script): Change type of language member to
14038 struct extension_language_defn *.
14039 (init_loaded_scripts_info): Initialize
14040 unsupported_script_warning_printed.
14041 (maybe_add_script): Make static. Change type of language arg to
14042 struct extension_language_defn *.
14043 (clear_section_scripts): Reset unsupported_script_warning_printed.
14044 (auto_load_objfile_script_1): Rewrite to use extension language API.
14045 (auto_load_objfile_script): Make public. Remove support-compiled-in
14046 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14047 (source_section_scripts): Rewrite to use extension language API.
14048 (load_auto_scripts_for_objfile): Rewrite to use
14049 auto_load_scripts_for_objfile.
14050 (collect_matching_scripts_data): Change type of language member to
14051 struct extension_language_defn *.
14052 (auto_load_info_scripts): Change type of language arg to
14053 struct extension_language_defn *.
14054 (unsupported_script_warning_print): New function.
14055 (script_not_found_warning_print): Make static.
14056 (_initialize_auto_load): Rewrite construction of scripts-directory
14058 * auto-load.h (struct objfile): Add forward decl.
14059 (struct script_language): Delete.
14060 (struct auto_load_pspace_info): Add forward decl.
14061 (struct extension_language_defn): Add forward decl.
14062 (maybe_add_script): Delete.
14063 (auto_load_objfile_script): Declare.
14064 (script_not_found_warning_print): Delete.
14065 (auto_load_info_scripts): Update prototype.
14066 (auto_load_gdb_scripts_enabled): Declare.
14067 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14068 auto_load_python_scripts_enabled and made public.
14069 (script_language_python): Delete, moved to python.c.
14070 (gdbpy_script_language_defn): Delete.
14071 (info_auto_load_python_scripts): Update to use
14072 extension_language_python.
14074 * breakpoint.c (condition_command): Replace call to
14075 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14076 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14077 with call to breakpoint_ext_lang_cond_says_stop.
14078 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14079 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14080 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14081 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14083 (local_setattro): Print name of extension language with existing
14086 * valprint.c (val_print, value_print): Update to call
14087 apply_ext_lang_val_pretty_printer.
14088 * cp-valprint.c (cp_print_value): Update call to
14089 apply_ext_lang_val_pretty_printer.
14090 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14091 (gdbpy_apply_val_pretty_printer): Renamed from
14092 apply_val_pretty_printer. New arg extlang.
14093 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14095 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14096 extension language API.
14097 * cli/cli-script.c (execute_control_command): Update to call
14098 eval_ext_lang_from_control_command.
14100 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14101 enum ext_lang_bt_status values. Update call to
14102 apply_ext_lang_frame_filter.
14103 (mi_cmd_stack_list_locals): Ditto.
14104 (mi_cmd_stack_list_args): Ditto.
14105 (mi_cmd_stack_list_variables): Ditto.
14106 * mi/mi-main.c: Delete #include "python/python-internal.h".
14107 Add #include "extension.h".
14108 (mi_cmd_list_features): Replace reference to python internal variable
14109 gdb_python_initialized with call to ext_lang_initialized_p.
14111 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14112 Update to use enum ext_lang_frame_args. Update to call
14113 apply_ext_lang_frame_filter.
14114 * python/py-framefilter.c (extract_sym): Update to use enum
14115 ext_lang_bt_status.
14116 (extract_value, py_print_type, py_print_value): Ditto.
14117 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14118 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14119 (py_print_frame): Ditto.
14120 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14121 New arg extlang. Update to use enum ext_lang_bt_status.
14123 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14124 finish_python_initialization. Replace with call to
14125 finish_ext_lang_initialization.
14127 * typeprint.c (do_free_global_table): Update to call
14128 free_ext_lang_type_printers.
14129 (create_global_typedef_table): Update to call
14130 start_ext_lang_type_printers.
14131 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14132 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14133 (type_print_options): Change type of global_printers from "void *"
14134 to "struct ext_lang_type_printers *".
14136 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14137 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14138 (gdbpy_preserve_values): Renamed from preserve_python_values.
14140 (!HAVE_PYTHON, preserve_python_values): Delete.
14142 * utils.c (quit_flag): Delete, moved to extension.c.
14143 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14146 * eval.c: Delete #include "python/python.h".
14147 * main.c: Delete #include "python/python.h".
14149 * defs.h: Update comment.
14151 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14155 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14157 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14160 2014-02-05 Yao Qi <yao@codesourcery.com>
14162 * remote.c (remote_pass_signals): Remove local 'buf' and use
14164 (remote_program_signals): Likewise.
14166 2014-02-05 Yao Qi <yao@codesourcery.com>
14168 * ctf.c: Include "inferior.h" and "gdbthread.h".
14169 (CTF_PID): A new macro.
14170 (ctf_open): Call inferior_appeared and add_thread_silent.
14171 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14172 (ctf_thread_alive): New function.
14173 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14175 2014-02-05 Yao Qi <yao@codesourcery.com>
14179 2013-05-24 Yao Qi <yao@codesourcery.com>
14181 * tracepoint.c (TFILE_PID): Remove.
14182 (tfile_open): Don't add thread and inferior.
14183 (tfile_close): Don't set 'inferior_ptid'. Don't call
14184 exit_inferior_silent.
14185 (tfile_thread_alive): Remove.
14186 (init_tfile_ops): Don't set field 'to_thread_alive' of
14189 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14191 * remote.c (remote_start_remote): Call remote_check_symbols even
14192 if only symbol-file (not file) has been given.
14194 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14196 * gdbarch.sh (skip_entrypoint): New callback.
14197 * gdbarch.c, gdbarch.h: Regenerate.
14198 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14199 * infrun.c (fill_in_stop_func): Likewise.
14200 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14201 (ppc_elfv2_elf_make_msymbol_special): New function.
14202 (ppc_elfv2_skip_entrypoint): Likewise.
14203 (ppc_linux_init_abi): Install them for ELFv2.
14205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14207 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14208 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14209 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14210 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14211 structures returned in GPRs.
14213 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14215 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14216 offset to the stack parameter list for the ELFv2 ABI.
14218 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14220 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14221 set_gdbarch_convert_from_func_ptr_addr and
14222 set_gdbarch_elf_make_msymbol_special for ELFv1.
14223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14224 function descriptors on ELFv1.
14225 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14226 set up r12 at function entry.
14228 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14230 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14231 (struct gdbarch_tdep): New member elf_abi.
14233 * rs6000-tdep.c: Include "elf/ppc64.h".
14234 (rs6000_gdbarch_init): Detect ELF ABI version.
14236 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14238 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14239 within a register pair holding a DFP 128-bit value on little-endian.
14240 (ppc64_sysv_abi_return_value_base): Likewise.
14241 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14242 (dfp_pseudo_register_write): Likewise.
14244 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14246 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14247 offset on little-endian when passing _Decimal32.
14248 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14252 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14253 of the overlapped FP register within the VSX register on little-
14255 (efpr_pseudo_register_write): Likewise.
14257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14259 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14260 offset on little-endian when passing small structures.
14262 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14264 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14265 (struct ppc64_sysv_argpos): New data structure.
14266 (ppc64_sysv_abi_push_float): Remove.
14267 (ppc64_sysv_abi_push_val): New function.
14268 (ppc64_sysv_abi_push_integer): Likewise.
14269 (ppc64_sysv_abi_push_freg): Likewise.
14270 (ppc64_sysv_abi_push_vreg): Likewise.
14271 (ppc64_sysv_abi_push_param): Likewise.
14272 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14273 (ppc64_sysv_abi_return_value_base): New function.
14274 (ppc64_sysv_abi_return_value): Refactor to use it.
14276 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14278 * NEWS: Document new target powerpc64le-*-linux*.
14280 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14282 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14283 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14285 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14286 register set used in ELF core dumps. Add floating-point register set.
14288 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14290 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14291 dwarf2_to_gdb[] table using symbolic constants. Adjust
14292 penultimate entry from number representing the PC register
14293 to symbolic constant representing the MDR register. Add
14294 constant for the PC register to the end of the table.
14296 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14298 * bsd-kvm.c: Include <sys/param.h>
14300 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14302 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14304 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14306 * ada-lang.h (clear_ada_sym_cache): Delete.
14308 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14310 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14312 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14314 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14315 the sigreturn register save area only if the syscall is
14318 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14320 * valops.c (value_slice): Minor reformatting.
14322 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14324 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14326 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14328 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14329 New static globals.
14330 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14331 (ada_ignore_descriptive_types_p): New static global.
14332 (find_parallel_type_by_descriptive_type): Return immediately
14333 if ada_ignore_descriptive_types_p is set.
14334 (_initialize_ada_language): Register new commands "maintenance
14335 set ada", "maintenance show ada", "maintenance set ada
14336 ignore-descriptive-types" and "maintenance show ada
14337 ignore-descriptive-types".
14338 * NEWS: Add entry for new "maint ada set/show
14339 ignore-descriptive-types" commands.
14341 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14343 * record-btrace.c (record_btrace_close): Call btrace_teardown
14346 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14348 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14351 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14353 * ada-typeprint (type_is_full_subrange_of_target_type):
14355 (print_range): Add parameter bounds_prefered_p. If not set,
14356 try printing range types using the name of their base type.
14357 (print_range_type): Add parameter bounds_prefered_p.
14358 Use it in call to print_range.
14359 (print_array_type, ada_print_type): Update calls to print_range
14360 and print_range_type.
14362 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14364 * ada-typeprint.c (print_array_type, print_choices, print_range)
14365 (print_range_bound, print_dynamic_range_bound, print_range_type):
14366 Remove declaration.
14368 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14370 * ada-typeprint.c (print_range): Add missing empty line
14371 after local declaration.
14373 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14375 * ada-valprint.c (print_optional_low_bound): Get index_type's
14376 target type for as long as it is a TYPE_CODE_RANGE.
14378 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14380 * procfs.c (procfs_make_note_section): Remove assertion and
14381 associated comment.
14383 2014-01-24 Yao Qi <yao@codesourcery.com>
14385 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14386 * corelow.c (get_core_siginfo): Likewise.
14388 2014-01-24 Yao Qi <yao@codesourcery.com>
14390 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14391 ULONGEST. Don't check 'len' is negative.
14392 (remote_write_bytes): Change type of 'len' to ULONGEST.
14394 2014-01-23 Tom Tromey <tromey@redhat.com>
14397 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14398 Handle exception from frame.block.
14399 (FrameVars.fetch_frame_locals): Likewise.
14401 2014-01-23 Tom Tromey <tromey@redhat.com>
14404 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14405 on a NULL pointer. Move "goto error" to correct place.
14407 2014-01-23 Tom Tromey <tromey@redhat.com>
14410 * python/py-framefilter.c (apply_frame_filter): Call
14411 ensure_python_env after computing gdbarch.
14413 2014-01-23 Yao Qi <yao@codesourcery.com>
14415 * target.c (raw_memory_xfer_partial): Change argument type
14416 from void * to gdb_byte *.
14417 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14419 2014-01-22 Doug Evans <dje@google.com>
14421 New gdbserver option --debug-format=timestamp.
14422 * NEWS: Mention it.
14424 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14426 * syscalls/s390x-linux.xml: New file.
14427 * syscalls/s390-linux.xml: New file.
14428 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14429 (XML_SYSCALL_FILENAME_S390X): Likewise.
14430 (op_svc): New enum value for SVC opcode.
14431 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14432 (s390_linux_get_syscall_number): New function.
14433 (s390_gdbarch_init): Register '*get_syscall_number' and the
14434 syscall xml file name.
14435 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14436 "s390-linux.xml" and "s390x-linux.xml".
14437 * NEWS: Announce new feature.
14439 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14441 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14443 2014-01-22 Pedro Alves <palves@redhat.com>
14445 * xtensa-config.c: Include defs.h.
14447 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14449 * common/common-utils.h: Add "ARI:" comment beside __func__
14452 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14454 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14455 documentation a bit.
14457 2014-01-21 Roland McGrath <mcgrathr@google.com>
14459 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14460 * configure: Regenerate.
14461 * aclocal.m4: Regenerate.
14462 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14463 New substituted variables.
14464 (install-strip): New target.
14465 (INSTALL_SCRIPT): New substituted variable.
14466 (FLAGS_TO_PASS): Add it.
14467 (install-only): Use $(INSTALL_SCRIPT) rather than
14468 $(INSTALL_PROGRAM) for gcore.
14470 2014-01-20 Tom Tromey <tromey@redhat.com>
14472 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14475 2014-01-20 Tom Tromey <tromey@redhat.com>
14477 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14478 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14479 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14480 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14481 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14482 (struct cmd_list_element) <flags>: Remove.
14483 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14484 doc_allocated>: New fields.
14485 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14487 * maint.c (maintenance_do_deprecate): Update.
14488 * top.c (execute_command): Update.
14490 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14492 * xtensa-linux-nat.c: Include asm/ptrace.h.
14494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14496 * Makefile.in (SFILES): Add d-support.c.
14497 (COMMON_OBS): Add d-support.o.
14498 * d-lang.h (d_parse_symbol): Add comment, now defined in
14500 * d-lang.c (parse_call_convention)
14501 (parse_attributes, parse_function_types)
14502 (parse_function_args, parse_type, parse_identifier)
14503 (call_convention_p, d_parse_symbol): Move functions to ...
14504 * d-support.c: ... New file.
14506 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14508 * d-lang.h (d_parse_symbol): Add declaration.
14509 * d-lang.c (extract_identifiers)
14510 (extract_type_info): Remove functions.
14511 (parse_call_convention, parse_attributes)
14512 (parse_function_types, parse_function_args)
14513 (parse_type, parse_identifier, call_convention_p)
14514 (d_parse_symbol): New functions.
14515 (d_demangle): Use d_parse_symbol to demangle D symbols.
14517 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14519 * d-lang.h (struct builtin_d_type): New data type.
14520 (builtin_d_type): Add declaration.
14521 * d-lang.c (d_language_arch_info, build_d_types)
14522 (builtin_d_type): New functions.
14523 (enum d_primitive_types): New data type.
14524 (d_language_defn): Change c_language_arch_info to
14525 d_language_arch_info.
14526 (d_type_data): New static variable.
14527 (_initialize_d_language): Initialize d_type_data.
14529 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14531 * d-lang.h (d_main_name): Add declaration.
14532 * d-lang.c (d_main_name): New function.
14533 * symtab.c (find_main_name): Add call to d_main_name.
14535 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14537 * d-lang.c (d_language_defn): Change macro_expansion_c to
14538 macro_expansion_no.
14540 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14542 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14544 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14546 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14547 gdb_exception" declaration.
14548 * remote.c (getpkt_or_notif_sane): Likewise.
14550 2014-01-17 Doug Evans <dje@google.com>
14552 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14553 function, contents of dirnames_to_char_ptr_vec_append moved here.
14554 (delim_string_to_char_ptr_vec): New function.
14555 (dirnames_to_char_ptr_vec_append): Rewrite.
14556 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14558 2014-01-17 Doug Evans <dje@google.com>
14560 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14562 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14563 #include "common-utils.h".
14564 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14565 * common/vec.h (VEC_ASSERT_PASS): Update.
14566 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14567 (MACH_CHECK_ERROR): Update.
14569 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14571 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14573 * gdbarch.h: Regenerate.
14575 2014-01-16 Tom Tromey <tromey@redhat.com>
14577 * value.c (struct value) <regnum>: Move earlier.
14579 2014-01-16 Tom Tromey <tromey@redhat.com>
14581 * remote.c (extended_remote_create_inferior): Rename from
14582 extended_remote_create_inferior_1. Add "ops" argument. Remove
14583 old implementation.
14585 2014-01-16 Pedro Alves <palves@redhat.com>
14587 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14588 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14591 2014-01-16 Doug Evans <dje@google.com>
14593 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14595 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14597 * btrace.h (btrace_thread_flag): New.
14598 (struct btrace_thread_info) <flags>: New.
14599 * record-btrace.c (record_btrace_resume_thread)
14600 (record_btrace_find_thread_to_move, btrace_step_no_history)
14601 (btrace_step_stopped, record_btrace_start_replaying)
14602 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14603 (record_btrace_find_resume_thread): New.
14604 (record_btrace_resume, record_btrace_wait): Extend.
14605 (record_btrace_can_execute_reverse): New.
14606 (record_btrace_open): Fail in non-stop mode.
14607 (record_btrace_set_replay): Split into this, ...
14608 (record_btrace_stop_replaying): ... this, ...
14609 (record_btrace_clear_histories): ... and this.
14610 (init_record_btrace_ops): Init to_can_execute_reverse.
14611 * NEWS: Announce it.
14613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14615 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14616 (forward_target_decr_pc_after_break)
14617 (target_decr_pc_after_break): New.
14618 * target.c (forward_target_decr_pc_after_break)
14619 (target_decr_pc_after_break): New.
14620 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14621 instead of gdbarch_decr_pc_after_break.
14622 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14623 instead of gdbarch_decr_pc_after_break.
14624 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14625 instead of gdbarch_decr_pc_after_break.
14626 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14627 instead of gdbarch_decr_pc_after_break.
14628 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14629 instead of gdbarch_decr_pc_after_break.
14630 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14631 instead of gdbarch_decr_pc_after_break.
14633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14635 * btrace.c: Include regcache.h.
14636 (btrace_add_pc): New.
14637 (btrace_enable): Call btrace_add_pc.
14638 (btrace_is_empty): New.
14639 * btrace.h (btrace_is_empty): New.
14640 * record-btrace.c (require_btrace, record_btrace_info): Call
14643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14645 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14646 Support delta reads.
14647 (linux_disable_btrace): Change return type.
14648 * common/linux-btrace.h (linux_read_btrace): Change parameters
14649 and return type to allow error reporting. Update users.
14650 (linux_disable_btrace): Change return type. Update users.
14651 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14653 (btrace_error): New.
14654 (btrace_block) <begin>: Comment on BEGIN == 0.
14655 * btrace.c (btrace_compute_ftrace): Start from the end of
14657 (btrace_stitch_trace, btrace_clear_history): New.
14658 (btrace_fetch): Read delta trace, return if replaying.
14659 (btrace_clear): Move clear history code to btrace_clear_history.
14660 (parse_xml_btrace): Throw an error if parsing failed.
14661 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14662 and return type to allow error reporting.
14663 (target_read_btrace): Change parameters and return type to allow
14665 * target.c (target_read_btrace): Update.
14666 * remote.c (remote_read_btrace): Support delta reads. Pass
14668 * NEWS: Announce it.
14670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14672 * record.h (record_btrace_frame_unwind)
14673 (record_btrace_tailcall_frame_unwind): New declarations.
14674 * dwarf2-frame: Include record.h
14675 (dwarf2_frame_cfa): Throw an error for btrace frames.
14676 * record-btrace.c: Include hashtab.h.
14677 (btrace_get_bfun_name): New.
14678 (btrace_call_history): Call btrace_get_bfun_name.
14679 (struct btrace_frame_cache): New.
14681 (bfcache_hash, bfcache_eq, bfcache_new): New.
14682 (btrace_get_frame_function): New.
14683 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14684 (record_btrace_frame_this_id): Compute own id.
14685 (record_btrace_frame_prev_register): Provide PC, throw_error
14686 for all other registers.
14687 (record_btrace_frame_sniffer): Detect btrace frames.
14688 (record_btrace_tailcall_frame_sniffer): New.
14689 (record_btrace_frame_dealloc_cache): New.
14690 (record_btrace_frame_unwind): Add new functions.
14691 (record_btrace_tailcall_frame_unwind): New.
14692 (_initialize_record_btrace): Allocate cache.
14693 * btrace.c (btrace_clear): Call reinit_frame_cache.
14694 * NEWS: Announce it.
14696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14698 * record-btrace.c (record_btrace_set_replay)
14699 (record_btrace_goto_begin, record_btrace_goto_end)
14700 (record_btrace_goto): New.
14701 (init_record_btrace_ops): Initialize them.
14702 * NEWS: Announce it.
14704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14706 * record-btrace.c (record_btrace_find_new_threads)
14707 (record_btrace_thread_alive): New.
14708 (init_record_btrace_ops): Initialize to_find_new_threads and
14711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14713 * record-btrace.c (record_btrace_resume): New.
14714 (record_btrace_wait): New.
14715 (init_record_btrace_ops): Initialize to_wait and to_resume.
14717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14719 * record-btrace.c (record_btrace_xfer_partial)
14720 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14721 (record_btrace_allow_memory_access): New.
14722 (init_record_btrace_ops): Initialize new methods.
14723 * target.c (raw_memory_xfer_partial): Bail out if target reports
14724 that this memory is not available.
14726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14728 * target.h (target_ops) <to_insert_breakpoint>
14729 <to_remove_breakpoint>: Add target_ops parameter.
14730 (forward_target_insert_breakpoint): New.
14731 (forward_target_remove_breakpoint): New.
14732 (memory_remove_breakpoint, memory_insert_breakpoint):
14733 Add target_ops parameter.
14734 * target.c (target_insert_breakpoint): Split into this and ...
14735 (forward_target_insert_breakpoint): ... this.
14736 (target_remove_breakpoint): Split into this and ...
14737 (forward_target_remove_breakpoint): ... this.
14738 (debug_to_insert_breakpoint): Add target_ops parameter.
14739 Call forward_target_insert_breakpoint.
14740 (debug_to_remove_breakpoint): Add target_ops parameter.
14741 Call forward_target_remove_breakpoint.
14742 (update_current_target): Do not inherit or default to_insert_breakpoint
14743 and to_remove_breakpoint.
14744 * corelow.c (ignore): Add target_ops parameter.
14745 * exec.c (ignore): Add target_ops parameter.
14746 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14747 Add target_ops parameter.
14748 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14749 Add target_ops parameter.
14750 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14751 Add target_ops parameter.
14752 * record-full.c (record_full_beneath_to_insert_breakpoint)
14753 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14754 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14755 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14756 (record_full_core_remove_breakpoint): Add target_ops parameter.
14758 (record_full_beneath_to_insert_breakpoint_ops)
14759 (record_full_beneath_to_remove_breakpoint_ops)
14760 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14761 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14762 tmp_to_remove_breakpoint_ops,
14763 record_full_beneath_to_insert_breakpoint_ops, and
14764 record_full_beneath_to_remove_breakpoint_ops.
14765 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14766 (m32r_remove_breakpoint): Add target_ops parameter.
14767 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14768 Add target_ops parameter.
14769 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14770 Add target_ops parameter.
14772 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14773 Markus Metzger <markus.t.metzger@intel.com>
14775 * record-btrace.c: Include frame-unwind.h.
14776 (record_btrace_frame_unwind_stop_reason)
14777 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14778 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14780 (init_record_btrace_ops): Install it.
14782 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14784 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14787 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14789 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14792 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14794 * frame-unwind.c: Include target.h.
14795 (frame_unwind_try_unwinder): New function with code from ...
14796 (frame_unwind_find_by_frame): ... here. New variable
14797 unwinder_from_target, call also target_get_unwinder)
14798 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14799 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14800 * target.h (struct target_ops): New fields to_get_unwinder and
14801 to_get_tailcall_unwinder.
14802 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14804 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14806 * record-btrace.c (record_btrace_fetch_registers)
14807 (record_btrace_store_registers)
14808 (record_btrace_to_prepare_to_store): New.
14809 (init_record_btrace_ops): Add the above.
14811 2014-01-16 Tom Tromey <tromey@redhat.com>
14813 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14814 * target.h (struct target_ops) <to_prepare_to_store>: Add
14816 (target_prepare_to_store): Add argument.
14817 * target.c (debug_to_prepare_to_store): Add argument.
14818 (update_current_target): Update.
14819 * remote.c (remote_prepare_to_store): Add 'self' argument.
14820 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14821 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14822 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14823 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14825 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14826 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14827 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14828 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14829 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14833 * btrace.h (replay) <replay>: New.
14834 (btrace_is_replaying): New.
14835 * btrace.c (btrace_clear): Free replay iterator.
14836 (btrace_is_replaying): New.
14837 * record-btrace.c (record_btrace_is_replaying): New.
14838 (record_btrace_info): Print insn number if replaying.
14839 (record_btrace_insn_history): Start at replay position.
14840 (record_btrace_call_history): Start at replay position.
14841 (init_record_btrace_ops): Init to_record_is_replaying.
14843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14845 * record-btrace.c (record_btrace_insn_history_range): Include
14847 (record_btrace_insn_history_from): Adjust range.
14848 (record_btrace_call_history_range): Include
14850 (record_btrace_call_history_from): Adjust range.
14851 * NEWS: Announce changes.
14853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14855 * record.h (enum record_print_flag)
14856 <record_print_indent_calls>: New.
14857 * record.c (get_call_history_modifiers): Recognize /c modifier.
14858 (_initialize_record): Document /c modifier.
14859 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14860 Reorder fields. Optionally indent the function name. Update
14862 * NEWS: Announce changes.
14864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14866 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14870 * btrace.c (ftrace_new_function): Start counting at one.
14871 * record-btrace.c (record_btrace_info): Adjust number of calls
14873 * NEWS: Announce it.
14875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14877 * record-btrace.c (btrace_call_history_insn_range): Print
14878 insn range as [begin, end].
14880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14882 * btrace.h (struct btrace_func_link): New.
14883 (enum btrace_function_flag): New.
14884 (struct btrace_inst): Rename to ...
14885 (struct btrace_insn): ...this. Update all users.
14886 (struct btrace_func) <ibegin, iend>: Remove.
14887 (struct btrace_func_link): New.
14888 (struct btrace_func): Rename to ...
14889 (struct btrace_function): ...this. Update all users.
14890 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14891 (number, level, flags>: New.
14892 (struct btrace_insn_iterator): Rename to ...
14893 (struct btrace_insn_history): ...this.
14895 (struct btrace_insn_iterator, btrace_call_iterator): New.
14896 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14897 (struct btrace_target_info) <begin, end, level>
14898 <insn_history, call_history>: New.
14899 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14900 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14901 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14902 (btrace_call_number, btrace_call_begin, btrace_call_end)
14903 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14904 (btrace_find_function_by_number, btrace_set_insn_history)
14905 (btrace_set_call_history): New.
14906 * btrace.c (btrace_init_insn_iterator)
14907 (btrace_init_func_iterator, compute_itrace): Remove.
14908 (ftrace_print_function_name, ftrace_print_filename)
14909 (ftrace_skip_file): Change
14910 parameter to const.
14911 (ftrace_init_func): Remove.
14912 (ftrace_debug): Use new btrace_function fields.
14913 (ftrace_function_switched): Also consider gaining and
14914 losing symbol information).
14915 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14916 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14917 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14919 (ftrace_new_function): Move. Remove debug print.
14920 (ftrace_update_lines, ftrace_update_insns): New.
14921 (ftrace_update_function): Check for call, ret, and jump.
14922 (compute_ftrace): Renamed to ...
14923 (btrace_compute_ftrace): ...this. Rewritten to compute call
14925 (btrace_fetch, btrace_clear): Updated.
14926 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14927 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14928 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14929 (btrace_call_number, btrace_call_begin, btrace_call_end)
14930 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14931 (btrace_find_function_by_number, btrace_set_insn_history)
14932 (btrace_set_call_history): New.
14933 * record-btrace.c (require_btrace): Use new btrace thread
14935 (record_btrace_info, btrace_insn_history)
14936 (record_btrace_insn_history, record_btrace_insn_history_range):
14937 Use new btrace thread info fields and new iterator.
14938 (btrace_func_history_src_line): Rename to ...
14939 (btrace_call_history_src_line): ...this. Use new btrace
14940 thread info fields.
14941 (btrace_func_history): Rename to ...
14942 (btrace_call_history): ...this. Use new btrace thread info
14943 fields and new iterator.
14944 (record_btrace_call_history, record_btrace_call_history_range):
14945 Use new btrace thread info fields and new iterator.
14947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14949 * frame.h (frame_id_build_unavailable_stack_special): New.
14950 * frame.c (frame_id_build_unavailable_stack_special): New.
14952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14954 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14955 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14956 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14958 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14959 (i386_insn_is_jump, i386_jmp_p): New.
14960 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14961 insn_is_jump to gdbarch.
14962 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14963 * gdbarch.h: Regenerated.
14964 * gdbarch.c: Regenerated.
14965 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14966 (default_insn_is_jump): New.
14967 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14968 (default_insn_is_jump): New.
14970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14972 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14974 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14975 (btrace_read_type) <btrace_read_new>: Change to ...
14976 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14978 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14980 * common/linux-btrace.c (linux_read_btrace): Free trace from
14981 previous iteration.
14983 2014-01-15 Doug Evans <dje@google.com>
14985 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14988 2014-01-15 Tom Tromey <tromey@redhat.com>
14990 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14991 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14992 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14993 (set_objfile_main_name): New function.
14994 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14995 language_of_main>: New fields.
14996 (set_objfile_main_name): Declare.
14997 * symtab.c (find_main_name): Loop over objfiles to find the main
14999 (set_main_name): Now static.
15000 (get_main_info): Add comment.
15001 * symtab.h (set_main_name): Don't declare.
15003 2014-01-15 Tom Tromey <tromey@redhat.com>
15005 * symtab.c (main_progspace_key): New global.
15006 (struct main_info): New.
15007 (name_of_main, language_of_main): Remove.
15008 (get_main_info, main_info_cleanup): New function.
15009 (set_main_name, main_name, main_language): Use get_main_info.
15010 (_initialize_symtab): Initialize main_progspace_key.
15012 2014-01-15 Tom Tromey <tromey@redhat.com>
15014 * dbxread.c (process_one_symbol): Update.
15015 * dwarf2read.c (read_partial_die): Update.
15016 * symfile.c (set_initial_language): Call main_language.
15017 * symtab.c (language_of_main): Now static.
15018 (set_main_name): Add 'lang' parameter.
15019 (find_main_name): Update.
15020 (main_language): New function.
15021 (symtab_observer_executable_changed): Update.
15022 * symtab.h (set_main_name): Update.
15023 (language_of_main): Remove.
15024 (main_language): Declare.
15026 2014-01-15 Tom Tromey <tromey@redhat.com>
15028 * symfile.c (init_entry_point_info): Use new "initialized" field.
15030 * objfiles.h (struct entry_point) <initialized>: New field.
15031 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15032 (struct objfile) <ei>: ...here. Remove.
15033 * objfiles.c (entry_point_address_query): Update.
15035 2014-01-15 Tom Tromey <tromey@redhat.com>
15037 * objfiles.c (entry_point_address_query): Relocate entry point
15039 (objfile_relocate1): Do not relocate entry point address.
15040 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15041 <the_bfd_section_index>: New field.
15042 * symfile.c (init_entry_point_info): Find the entry point's
15045 2014-01-15 Tom Tromey <tromey@redhat.com>
15047 * solib-frv.c (enable_break): Use entry_point_address_query.
15049 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15051 * NEWS: Add note on improved process record-replay on
15052 arm*-linux* targets.
15054 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15056 * arm-tdep.c (enum arm_record_result): New enum.
15057 (arm_record_unsupported_insn): New function.
15058 (arm_record_coproc_data_proc): Removed.
15059 (thumb2_record_ld_st_multiple): New function.
15060 (thumb2_record_ld_st_dual_ex_tbb): New function.
15061 (thumb2_record_data_proc_sreg_mimm): New function.
15062 (thumb2_record_ps_dest_generic): New function.
15063 (thumb2_record_branch_misc_cntrl): New function.
15064 (thumb2_record_str_single_data): New function.
15065 (thumb2_record_ld_mem_hints): New function.
15066 (thumb2_record_ld_word): New function.
15067 (thumb2_record_lmul_lmla_div): New function.
15068 (thumb2_record_decode_insn_handler): New function.
15069 (decode_insn): Add thumb32 instruction handlers.
15071 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15073 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15074 (struct arm_linux_record_tdep): Declare.
15075 (arm_canonicalize_syscall): New function.
15076 (arm_all_but_pc_registers_record): New function.
15077 (arm_linux_syscall_record): New function.
15078 (arm_linux_init_abi): Add syscall recording constructs.
15079 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15080 decoding. (arm_record_coproc_data_proc): Update arm syscall
15082 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15083 <arm_syscall_record>: New field.
15084 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15087 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15089 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15090 register for push instruction recording.
15092 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15094 * arm-tdep.c (thumb_record_misc): Update to correct logical
15095 error while recording ldm, ldmia and pop instructions.
15097 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15099 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15101 2014-01-15 Pedro Alves <palves@redhat.com>
15103 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15104 (go32_resume, go32_fetch_registers, store_register)
15105 (go32_store_registers, go32_prepare_to_store)
15106 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15107 (go32_create_inferior, go32_can_run, go32_terminal_init)
15108 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15111 2014-01-15 Tom Tromey <tromey@redhat.com>
15113 * target.h (async_callback_ftype): New typedef.
15114 (struct target_ops) <to_async>: Use it.
15116 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15118 * python/py-value.c (get_field_type): Remove unnecessary curly
15119 braces for single-statement if block.
15121 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15123 * python/py-type.c (convert_field): Add missing empty line
15124 after declarations.
15126 2014-01-14 Doug Evans <dje@google.com>
15128 * symfile.h (expand_symtabs_matching): Renamed from
15129 expand_partial_symbol_names. Update prototype.
15130 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15131 * symfile.c (expand_symtabs_matching): Renamed from
15132 expand_partial_symbol_names. New args file_matcher, kind.
15133 Rename arg fun to symbol_matcher.
15134 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15135 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15136 ada_expand_partial_symbol_name.
15137 (ada_make_symbol_completion_list): Update to call
15138 expand_symtabs_matching.
15139 (ada_add_global_exceptions): Call expand_symtabs_matching.
15140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15141 call map_symbol_filenames.
15142 * symtab.c (sources_info): Update to call map_symbol_filenames.
15143 (search_symbols): Call expand_symtabs_matching.
15144 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15145 (default_make_symbol_completion_list_break_on): Update to call
15146 expand_symtabs_matching.
15147 (make_source_files_completion_list): Update to call
15148 map_symbol_filenames.
15150 2014-01-14 Doug Evans <dje@google.com>
15152 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15153 (expand_symtabs_symbol_matcher_ftype): New typedef.
15154 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15155 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15156 * symfile.c (expand_partial_symbol_names): Update to use
15157 expand_symtabs_symbol_matcher_ftype.
15158 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15159 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15160 Arg name_matcher renamed to symbol_matcher.
15161 * psymtab.c (recursively_search_psymtabs): Update to use
15162 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15164 (expand_symtabs_matching_via_partial): Update to use
15165 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15166 Arg name_matcher renamed to symbol_matcher.
15168 2014-01-14 Doug Evans <dje@google.com>
15170 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15171 (map_partial_symbol_filenames): Ditto.
15172 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15173 (map_partial_symbol_filenames): Ditto.
15174 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15175 (map_partial_symbol_filenames): Ditto.
15176 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15177 (map_partial_symbol_filenames): Ditto.
15178 * symtab.c: Delete #include "psymtab.h".
15180 2014-01-14 Pedro Alves <palves@redhat.com>
15181 Tom Tromey <tromey@redhat.com>
15183 * infrun.c (use_displaced_stepping): Use find_record_target
15184 instead of RECORD_IS_USED.
15185 (adjust_pc_after_break): Use record_full_is_used instead of
15187 * record-btrace.c (record_btrace_open): Call record_preopen
15188 instead of checking RECORD_IS_USED.
15189 * record-full.c (record_full_shortname)
15190 (record_full_core_shortname): New globals.
15191 (record_full_is_used): New function.
15192 (find_full_open): Call record_preopen instead of checking
15194 (init_record_full_ops): Set the target's shortname to
15195 record_full_shortname.
15196 (init_record_full_core_ops): Set the target's shortname to
15197 record_full_core_shortname.
15198 * record-full.h (record_full_is_used): Declare.
15199 * record.c (find_record_target): Make extern.
15200 (record_preopen): New function.
15201 * record.h (RECORD_IS_USED): Delete macro.
15202 (find_record_target, record_preopen): Declare functions.
15204 2014-01-14 Yao Qi <yao@codesourcery.com>
15206 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15207 'len''s type to ULONGEST.
15208 (core_xfer_shared_libraries_aix): Likewise.
15209 * gdbarch.c, gdbarch.h: Regenerated.
15210 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15211 Change type of 'len' to ULONGEST.
15212 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15213 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15215 2014-01-14 Yao Qi <yao@codesourcery.com>
15217 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15218 type of 'len' to ULONGEST.
15219 (linux_xfer_osdata_processgroups): Likewise.
15220 (linux_xfer_osdata_threads): Likewise.
15221 (linux_xfer_osdata_fds): Likewise.
15222 (linux_xfer_osdata_isockets): Likewise.
15223 (linux_xfer_osdata_shm): Likewise.
15224 (linux_xfer_osdata_sem): Likewise.
15225 (linux_xfer_osdata_msg): Likewise.
15226 (linux_common_xfer_osdata): Likewise.
15227 (struct osdata_type) <getter>: Likewise.
15228 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15231 2014-01-14 Yao Qi <yao@codesourcery.com>
15233 * target.h (target_xfer_partial_ftype): Update.
15234 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15236 * aix-thread.c (aix_thread_xfer_partial): Change type of
15237 argument 'len' to ULONGEST.
15238 * auxv.c (procfs_xfer_auxv): Likewise.
15239 (ld_so_xfer_auxv): Likewise.
15240 (memory_xfer_auxv): Likewise.
15241 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15242 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15243 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15244 * corelow.c (core_xfer_partial): Likewise.
15245 * ctf.c (ctf_xfer_partial): Likewise.
15246 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15248 (darwin_read_dyld_info): Likewise.
15249 (darwin_xfer_partial): Likewise.
15250 * exec.c (section_table_xfer_memory_partial): Likewise.
15251 (exec_xfer_partial): Likewise.
15252 * exec.h (section_table_xfer_memory_partial): Update
15254 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15255 instead of plongest.
15256 (gnu_xfer_partial): Likewise.
15257 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15258 (ia64_hpux_xfer_solib_got): Likewise.
15259 (ia64_hpux_xfer_partial): Likewise.
15260 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15261 * inf-ptrace.c (inf_ptrace_xfer_partial):
15262 * inf-ttrace.c (inf_ttrace_xfer_partial):
15263 * linux-nat.c (linux_xfer_siginfo): Likewise.
15264 (linux_nat_xfer_partial): Likewise.
15265 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15266 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15267 * monitor.c (monitor_xfer_memory): Likewise.
15268 (monitor_xfer_partial): Likewise.
15269 * procfs.c (procfs_xfer_partial): Likewise.
15270 * record-full.c (record_full_xfer_partial): Likewise.
15271 (record_full_core_xfer_partial): Likewise.
15272 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15273 instead of plongest.
15274 (gdbsim_xfer_partial): Likewise.
15275 * remote.c (remote_xfer_partial): Likewise.
15276 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15277 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15279 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15280 (rs6000_xfer_shared_libraries): Likewise.
15281 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15282 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15283 (sparc_xfer_partial): Likewise.
15284 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15285 (spu_xfer_partial): Likewise.
15286 * spu-multiarch.c (spu_xfer_partial): Likewise.
15287 * target.c (target_read_live_memory): Likewise.
15288 (memory_xfer_live_readonly_partial): Likewise.
15289 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15290 (target_xfer_partial, default_xfer_partial): Likewise.
15291 (current_xfer_partial): Likewise.
15292 * tracepoint.c (tfile_xfer_partial): Likewise.
15293 * windows-nat.c (windows_xfer_memory): Likewise. Call
15294 pulongest instead of plongest.
15295 (windows_xfer_partial): Likewise.
15296 (windows_xfer_shared_libraries): Likewise.
15298 2014-01-14 Yao Qi <yao@codesourcery.com>
15300 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15301 target_xfer_partial_ftype.
15303 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15307 * valops.c (value_struct_elt_bitpos): New function
15308 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15309 object to 'None' if the field name is an empty string ("").
15310 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15311 attribute to look for a field when 'name' is 'None'.
15312 (get_field_type): New function
15314 2014-01-13 Doug Evans <dje@google.com>
15317 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15318 (try_open_dwop_file): Ditto.
15319 * gdb_bfd.c: #include "vec.h".
15320 (bfdp): New typedef.
15321 (struct gdb_bfd_data): New member included_bfds.
15322 (gdb_bfd_unref): Unref all included bfds.
15323 (gdb_bfd_record_inclusion): New function.
15324 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15326 2014-01-13 Tom Tromey <tromey@redhat.com>
15328 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15330 2014-01-13 Tom Tromey <tromey@redhat.com>
15332 * defs.h (use_windows): Remove.
15333 * gdb.c (main): Update.
15334 * main.c (captured_main, gdb_main): Update.
15335 * main.h (struct captured_main_args) <use_windows>: Remove.
15336 * top.c (use_windows): Remove.
15338 2014-01-13 Tom Tromey <tromey@redhat.com>
15340 * defs.h (deprecated_flush_hook): Remove.
15342 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15345 * linux-thread-db.c (try_thread_db_load): Add parameter
15346 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15347 (try_thread_db_load_from_pdir_1): Move it there from here.
15348 (try_thread_db_load_from_sdir): Update caller.
15349 (try_thread_db_load_from_dir): Move it there from here.
15351 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15353 * regformats/regdat.sh: Always rewrite the register file.
15355 2014-01-13 Pedro Alves <palves@redhat.com>
15357 * Makefile.in (CHECK_HEADERS): New variable.
15358 (check-headers:): New rule.
15360 2014-01-13 Tom Tromey <tromey@redhat.com>
15362 * cli/cli-setshow.c (do_set_command): Update.
15363 * defs.h (deprecated_set_hook): Remove.
15364 * top.c (deprecated_set_hook): Remove.
15366 2014-01-13 Pedro Alves <palves@redhat.com>
15368 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15369 the tracepoint if the PC is a pseudo-register.
15371 2014-01-13 Tom Tromey <tromey@redhat.com>
15373 * defs.h (XCALLOC): Remove.
15374 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15375 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15376 * dwarf2loc.c (allocate_piece_closure): Likewise.
15377 * elfread.c (elf_symfile_segments): Likewise.
15378 (elf_symfile_segments): Likewise.
15379 * gdbtypes.c (copy_type_recursive): Likewise.
15380 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15381 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15382 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15384 * mt-tdep.c (mt_gdbarch_init): Likewise.
15385 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15387 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15388 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15389 * registry.c (registry_alloc_data): Likewise.
15390 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15391 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15392 * serial.c (serial_fdopen_ops): Likewise.
15393 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15395 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15396 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15399 2014-01-13 Tom Tromey <tromey@redhat.com>
15401 * defs.h (XMALLOC): Remove.
15402 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15403 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15404 * cli-out.c (struct ui_out *): Likewise.
15405 * cli/cli-dump.c (add_dump_command): Likewise.
15406 (add_dump_command): Likewise.
15407 * complaints.c (get_complaints): Likewise.
15408 (find_complaint): Likewise.
15409 * dwarf2-frame.c (execute_cfa_program): Likewise.
15410 * dwarf2read.c (abbrev_table_read_table): Likewise.
15411 * gdbarch.sh: Likewise.
15412 * gdbarch.c: Rebuild.
15413 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15414 * interps.c (interp_new): Likewise.
15415 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15416 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15417 * mi/mi-console.c (mi_console_file_new): Likewise.
15418 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15419 * mi/mi-out.c (mi_out_new): Likewise.
15420 * mi/mi-parse.c (mi_parse): Likewise.
15421 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15422 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15423 * observer.c (xalloc_observer_list_node): Likewise.
15424 * regcache.c (regcache_xmalloc_1): Likewise.
15425 * reggroups.c (reggroup_new): Likewise.
15426 (_initialize_reggroup): Likewise.
15427 * registry.c (register_data_with_cleanup): Likewise.
15428 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15429 * ser-base.c (serial_ttystate): Likewise.
15430 * ser-mingw.c (make_pipe_state): Likewise.
15431 * ser-pipe.c (pipe_open): Likewise.
15432 * serial.c (serial_open): Likewise.
15433 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15434 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15435 (tui_alloc_win_info): Likewise.
15436 (tui_add_content_elements): Likewise.
15437 * tui/tui-file.c (tui_file_new): Likewise.
15438 * tui/tui-out.c (tui_out_new): Likewise.
15439 * ui-file.c (mem_file_new): Likewise.
15440 * ui-out.c (push_level): Likewise.
15441 (make_cleanup_ui_out_end): Likewise.
15442 (append_header_to_list): Likewise.
15443 (ui_out_new): Likewise.
15444 * user-regs.c (user_reg_add_builtin): Likewise.
15446 2014-01-13 Tom Tromey <tromey@redhat.com>
15448 * defs.h (XZALLOC): Remove.
15449 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15450 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15451 (get_ada_tasks_inferior_data): Likewise.
15452 * auto-load.c (get_auto_load_pspace_data): Likewise.
15453 * auxv.c (get_auxv_inferior_data): Likewise.
15454 * bfd-target.c (target_bfd_reopen): Likewise.
15455 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15456 (deprecated_insert_raw_breakpoint): Likewise.
15457 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15458 * corelow.c (core_open): Likewise.
15459 * darwin-nat.c (darwin_check_new_threads): Likewise.
15460 (darwin_attach_pid): Likewise.
15461 * dummy-frame.c (dummy_frame_push): Likewise.
15462 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15463 * dwarf2loc.c (allocate_piece_closure): Likewise.
15464 * elfread.c (elf_symfile_segments): Likewise.
15465 * eval.c (ptrmath_type_p): Likewise.
15466 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15467 * gdbtypes.c (alloc_type_arch): Likewise.
15468 (alloc_type_instance): Likewise.
15469 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15470 * inf-child.c (inf_child_can_use_agent): Likewise.
15471 * inflow.c (get_inflow_inferior_data): Likewise.
15472 * infrun.c (save_infcall_suspend_state): Likewise.
15473 * jit.c (jit_reader_load): Likewise.
15474 (get_jit_objfile_data): Likewise.
15475 (get_jit_program_space_data): Likewise.
15476 (jit_object_open_impl): Likewise.
15477 (jit_symtab_open_impl): Likewise.
15478 (jit_block_open_impl): Likewise.
15479 (jit_frame_sniffer): Likewise.
15480 * linux-fork.c (add_fork): Likewise.
15481 * maint.c (make_command_stats_cleanup): Likewise.
15482 * objfiles.c (get_objfile_pspace_data): Likewise.
15483 * opencl-lang.c (struct lval_closure): Likewise.
15484 * osdata.c (osdata_start_osdata): Likewise.
15485 * progspace.c (new_address_space): Likewise.
15486 (add_program_space): Likewise.
15487 * remote-sim.c (get_sim_inferior_data): Likewise.
15488 * sh-tdep.c (sh_gdbarch_init): Likewise.
15489 * skip.c (Ignore): Likewise.
15490 (skip_delete_command): Likewise.
15491 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15492 (library_list_start_library): Likewise.
15493 (solib_aix_current_sos): Likewise.
15494 * solib-darwin.c (get_darwin_info): Likewise.
15495 (darwin_current_sos): Likewise.
15496 * solib-dsbt.c (get_dsbt_info): Likewise.
15497 * solib-ia64-hpux.c (new_so_list): Likewise.
15498 (ia64_hpux_get_solib_linkage_addr): Likewise.
15499 * solib-spu.c (append_ocl_sos): Likewise.
15500 (spu_current_sos): Likewise.
15501 * solib-svr4.c (get_svr4_info): Likewise.
15502 (svr4_keep_data_in_core): Likewise.
15503 (library_list_start_library): Likewise.
15504 (svr4_default_sos): Likewise.
15505 (svr4_read_so_list): Likewise.
15506 * solib-target.c (library_list_start_library): Likewise.
15507 (solib_target_current_sos): Likewise.
15508 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15509 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15510 * symfile.c (default_symfile_segments): Likewise.
15511 * target-descriptions.c (tdesc_data_init): Likewise.
15512 (tdesc_create_reg): Likewise.
15513 (struct tdesc_type *): Likewise.
15514 (tdesc_create_vector): Likewise.
15515 (tdesc_set_struct_size): Likewise.
15516 (struct tdesc_type *): Likewise.
15517 (tdesc_free_feature): Likewise.
15518 (tdesc_create_feature): Likewise.
15519 * windows-nat.c (windows_add_thread): Likewise.
15520 (windows_make_so): Likewise.
15521 * xml-support.c (gdb_xml_body_text): Likewise.
15522 (gdb_xml_create_parser_and_cleanup): Likewise.
15523 (xml_process_xincludes): Likewise.
15524 * xml-syscall.c (allocate_syscalls_info): Likewise.
15525 (syscall_create_syscall_desc): Likewise.
15527 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15529 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15530 function, with code from i386_stap_parse_special_token.
15531 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15532 (i386_stap_parse_special_token): Move code to the two functions
15533 above; simplify it.
15535 2014-01-09 Pedro Alves <palves@redhat.com>
15536 Hui Zhu <hui@codesourcery.com>
15539 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15540 bp_err_string. Don't mark the location shlib_disabled if the
15541 error thrown wasn't a generic or memory error. Catch errors
15542 thrown while inserting breakpoints in overlayed code. Output
15543 error message of software breakpoints.
15544 * remote.c (remote_insert_breakpoint): If this breakpoint has
15545 target-side commands but this stub doesn't support Z0 packets,
15546 throw NOT_SUPPORTED_ERROR error.
15547 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15548 * target.h (target_insert_breakpoint): Extend comment.
15549 (target_insert_hw_breakpoint): Add comment.
15551 2014-01-08 Pedro Alves <palves@redhat.com>
15553 * remote.c (remote_add_thread): Add threads silently if starting
15555 (remote_notice_new_inferior): If in all-stop, and starting up,
15556 don't call notice_new_inferior.
15557 (get_current_thread): New function, factored out from ...
15558 (add_current_inferior_and_thread): ... this. Adjust.
15559 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15560 found any thread, then select the remote's current thread as GDB's
15561 current thread too.
15563 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15565 * NEWS: Create a new section for the next release branch.
15566 Rename the section of the current branch, now that it has
15569 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15571 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15572 * version.in: Bump version to 7.7.50.DATE-cvs.
15574 2014-01-08 Yao Qi <yao@codesourcery.com>
15576 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15577 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15578 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15580 2014-01-08 Yao Qi <yao@codesourcery.com>
15582 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15583 return value of bfd_get_filename to symbol_file_add_from_bfd.
15585 2014-01-08 Pierre Muller <muller@sourceware.org>
15588 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15589 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15590 to prim_record_mininal_symbol_and_info.
15591 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15592 in call to prim_record_minimal_symbol_and_info.
15593 (read_pe_exported_syms): Set index field of section_data.
15595 2014-01-07 Andrew Pinski <apinski@cavium.com>
15597 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15598 * features/aarch64.c: Regenerate.
15600 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15602 * target.c (return_null): Define.
15603 (update_current_target): Use it instead of return_zero for
15604 functions that return a pointer.
15606 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15608 * source.c (add_path): Fix check for duplicated paths in the previously
15611 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15613 * ada-lang.c: Remove duplicated include statements.
15614 * alphabsd-nat.c: Ditto.
15615 * amd64-darwin-tdep.c: Ditto.
15616 * amd64fbsd-nat.c: Ditto.
15617 * auto-load.c: Ditto.
15619 * breakpoint.c: Ditto.
15620 * dbxread.c: Ditto.
15621 * fork-child.c: Ditto.
15622 * gdb_usleep.c: Ditto.
15623 * i386-darwin-tdep.c: Ditto.
15624 * i386fbsd-nat.c: Ditto.
15626 * inferior.c: Ditto.
15627 * jv-lang.c: Ditto.
15628 * linux-nat.c: Ditto.
15629 * linux-tdep.c: Ditto.
15630 * m68kbsd-nat.c: Ditto.
15631 * m68klinux-nat.c: Ditto.
15632 * microblaze-tdep.c: Ditto.
15633 * mips-linux-tdep.c: Ditto.
15634 * mn10300-tdep.c: Ditto.
15635 * nto-tdep.c: Ditto.
15636 * opencl-lang.c: Ditto.
15638 * printcmd.c: Ditto.
15639 * regcache.c: Ditto.
15640 * remote-m32r-sdi.c: Ditto.
15642 * symfile.c: Ditto.
15644 * tilegx-linux-nat.c: Ditto.
15645 * tilegx-tdep.c: Ditto.
15646 * tracepoint.c: Ditto.
15648 * vaxbsd-nat.c: Ditto.
15649 * windows-nat.c: Ditto.
15650 * xtensa-tdep.c: Ditto.
15652 2014-01-07 Yao Qi <yao@codesourcery.com>
15654 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15656 2014-01-07 Yao Qi <yao@codesourcery.com>
15657 Joel Brobecker <brobecker@adacore.com>
15659 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15660 (pdc_write_regs): Likewise.
15661 (fetch_regs_kernel_thread): Likewise.
15662 (store_regs_kernel_thread): Likewise.
15664 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15666 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15667 tagged type objects to their actual type.
15669 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15671 * ada-valprint.c (print_field_values): Add "language" parameter.
15672 Update calls to print_field_values and print_variant_part.
15673 Pass new parameter "language" in call to val_print instead
15674 of "current_language". Replace call to ada_val_print by call
15676 (print_variant_part): Add "language" parameter.
15677 (ada_val_print_struct_union): Update call to print_field_values.
15679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15681 * ada-valprint.c (ui_memcpy): Delete.
15682 (ada_print_floating): Update documentation. Add empty line
15683 between between function documentation and implementation.
15684 Delete variable "buffer". Use ui_file_xstrdup in place of
15685 ui_file_put. Minor adjustments following this change.
15687 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15689 * ada-valprint.c (ada_val_print_string): New function,
15690 extracted from ada_val_print_array.
15691 (ada_val_print_array): Replace extracted code by call
15692 to ada_val_print_string followed by a return. Move
15693 "else" branch to the function's top block.
15695 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15697 * ada-valprint.c (ada_val_print_array): Move implementation
15698 down. Rename parameter "offset" and "val" into "offset_aligned"
15699 and "original_value" respectively. Add parameter "offset".
15701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15703 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15704 re-organizing the code. Change the "???" message printed
15705 when target type is a TYPE_CODE_UNDEF into
15706 "<ref to undefined type>".
15708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15710 * ada-valprint.c (print_record): Delete, implementation inlined...
15711 (ada_val_print_struct_union): ... here. Remove call to
15712 ada_check_typedef in inlined implementation.
15714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15716 * ada-valprint.c (ada_val_print_gnat_array): New function,
15717 extracted from ada_val_print_1;
15718 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15719 (ada_val_print_flt, ada_val_print_struct_union)
15720 (ada_val_print_ref): Likewise.
15721 (ada_val_print_1): Delete variables i and elttype.
15722 Replace extracted-out code by call to corresponding
15725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15727 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15731 * ada-valprint.c (ada_val_print_1): Replace calls to
15732 ada_val_print_1 by calls to val_print.
15734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15736 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15737 Update calls to self accordingly. Replace calls to c_val_print
15738 by calls to val_print.
15740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15742 * ada-valprint.c (print_record): Delete declaration.
15743 (adjust_type_signedness, ada_val_print_1): Likewise.
15744 (ada_val_print): Move function implementation down.
15745 (print_variant_part, print_field_values, print_record):
15746 Move function implementation up.
15748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15750 * python/py-type.c (typy_get_name): New function.
15751 (type_object_getset): Add entry for attribute "name".
15752 * NEWS: Add entry mentioning this new attribute.
15754 2014-01-07 Yao Qi <yao@codesourcery.com>
15756 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15759 2014-01-07 Yao Qi <yao@codesourcery.com>
15761 * gnu-nat.c (info_port_rights): Add qualifier const to
15764 2014-01-07 Yao Qi <yao@codesourcery.com>
15766 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15768 2014-01-07 Yao Qi <yao@codesourcery.com>
15770 * gnu-nat.c (make_inf) Update declaration.
15771 (make_inf): Make it static.
15772 (inf_set_traced): Likewise.
15773 (inf_port_to_thread, inf_task_died_status): Likewise.
15775 2014-01-07 Yao Qi <yao@codesourcery.com>
15777 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15779 2014-01-07 Yao Qi <yao@codesourcery.com>
15781 * gnu-nat.c (_initialize_gnu_nat): Declare.
15783 2014-01-07 Yao Qi <yao@codesourcery.com>
15785 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15787 (struct gdbarch_info) <byte_order>: Change type to
15789 <byte_order_for_code>: Likewise.
15790 * gdbarch.c, gdbarch.h: Regenerated.
15792 2014-01-06 Sasha Smundak <asmundak@google.com>
15794 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15796 2014-01-06 Tom Tromey <tromey@redhat.com>
15798 * doublest.c (convert_doublest_to_floatformat): Use const, not
15800 * somread.c (som_symtab_read): Likewise.
15802 2014-01-07 Hui Zhu <hui@codesourcery.com>
15804 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15805 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15806 (gdb_bfd_fopen): Ditto.
15807 (gdb_bfd_openr): Ditto.
15808 (gdb_bfd_openw): Ditto.
15809 (gdb_bfd_openr_iovec): Ditto.
15810 (gdb_bfd_fdopenr): Ditto.
15811 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15812 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15814 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15816 * symfile-mem.c (symbol_file_add_from_memory): Removed
15817 gdb_bfd_stash_filename.
15819 2014-01-03 Doug Evans <dje@google.com>
15821 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15824 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15826 Update year range in copyright notice of all files.
15828 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15830 * top.c (print_gdb_version): Set copyright year to 2014.
15832 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15834 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15836 For older changes see ChangeLog-2013.
15842 version-control: never