1 2014-12-11 Doug Evans <xdje42@gmail.com>
3 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
4 (symbol *lookup_symbol_via_quick_fns): Ditto.
5 (lookup_symbol_in_objfile): Add forward decl.
6 (lookup_global_symbol_from_objfile): Simplify, call
7 lookup_symbol_in_objfile.
9 2014-12-11 Doug Evans <xdje42@gmail.com>
11 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
13 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
16 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
17 it is marked as persistent.
19 2014-12-10 Doug Evans <xdje42@gmail.com>
21 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
22 closer to its subroutines.
24 2014-12-10 Doug Evans <xdje42@gmail.com>
26 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
28 2014-12-10 Doug Evans <xdje42@gmail.com>
30 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
31 * cp-support.c (cp_lookup_symbol_imports): Delete.
33 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
36 * target.c (cleanup_restore_target_terminal): New function.
37 (make_cleanup_restore_target_terminal): New function.
38 * target.h (make_cleanup_restore_target_terminal): New declaration.
39 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
41 2014-12-08 Doug Evans <dje@google.com>
43 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
45 2014-12-08 Doug Evans <dje@google.com>
47 * NEWS: Mention gdb.Objfile.owner.
48 * python/py-objfile.c (objfpy_get_owner): New function.
49 (objfile_getset): Add "owner".
51 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
53 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
54 (lookup_global_symbol_from_objfile): Call it.
56 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
58 Remove const from struct objfile *.
59 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
60 symtab.c, symtab.h: In these files.
62 2014-12-05 Andreas From <andreas.from@ericsson.com>
64 * MAINTAINERS (Write After Approval): Add "Andreas From"
66 2014-12-05 Doug Evans <xdje42@gmail.com>
70 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
72 2014-12-04 Doug Evans <dje@google.com>
74 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
75 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
76 (objfile_getset): Add "add_separate_debug_file".
78 2014-12-04 Doug Evans <dje@google.com>
80 * NEWS: Mention gdb.Objfile.build_id.
81 * build-id.c (build_id_bfd_get): Make non-static.
82 * build-id.h (build_id_bfd_get): Add declaration.
83 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
84 (OBJFPY_REQUIRE_VALID): New macro.
85 (objfpy_get_build_id): New function.
86 (objfile_getset): Add "build_id".
87 * utils.c (make_hex_string): New function.
88 * utils.h (make_hex_string): Add declaration.
90 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
92 * block.c (block_lookup_symbol_primary): New function.
93 * block.h (block_lookup_symbol_primary): New declaration.
94 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
95 Call block_lookup_symbol_primary.
97 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
99 * tramp-frame.h (tramp_frame): Add `validate' member.
100 * tramp-frame.c (tramp_frame_start): Validate trampoline before
102 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
103 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
104 (mips_linux_o32_sigframe): Initialize `validate' member.
105 (mips_linux_o32_rt_sigframe): Likewise.
106 (mips_linux_n32_rt_sigframe): Likewise.
107 (mips_linux_n64_rt_sigframe): Likewise.
108 (micromips_linux_o32_sigframe): New variable.
109 (micromips_linux_o32_rt_sigframe): Likewise.
110 (micromips_linux_n32_rt_sigframe): Likewise.
111 (micromips_linux_n64_rt_sigframe): Likewise.
112 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
113 (mips_linux_n32n64_sigframe_init): Likewise.
114 (mips_linux_sigframe_validate): New function.
115 (micromips_linux_sigframe_validate): Likewise.
116 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
118 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
120 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
121 * sparc-sol2-tdep.c: Include "regset.h".
122 (sparc32_sol2_supply_core_gregset): New function.
123 (sparc32_sol2_collect_core_gregset): Likewise.
124 (sparc32_sol2_supply_core_fpregset): Likewise.
125 (sparc32_sol2_collect_core_fpregset): Likewise.
126 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
127 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
128 tdep->fpregset/sizeof_fpregset.
129 * sparc64-sol2-tdep.c: Include "regset.h".
130 (sparc64_sol2_supply_core_gregset): New function.
131 (sparc64_sol2_collect_core_gregset): Likewise.
132 (sparc64_sol2_supply_core_fpregset): Likewise.
133 (sparc64_sol2_collect_core_fpregset): Likewise.
134 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
135 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
136 tdep->fpregset/sizeof_fpregset.
138 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
140 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
143 2014-12-02 Doug Evans <dje@google.com>
145 * symtab.c (symbol_init_cplus_specific): Delete.
146 (symbol_set_demangled_name): Remove special c++ support.
147 (symbol_get_demangled_name, symbol_set_language): Ditto.
148 * symtab.h (struct cplus_specific): Delete.
149 (struct general_symbol_info) <language_specific>: Remove
152 2014-12-02 Doug Evans <dje@google.com>
155 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
157 2014-12-02 Doug Evans <dje@google.com>
160 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
163 2014-12-02 Doug Evans <dje@google.com>
165 * dwarf2read.c (peek_die_abbrev): Improve error message text.
167 2014-12-02 Doug Evans <dje@google.com>
169 * valops.c (do_search_struct_field): Remove remnant of Chill support.
170 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
172 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
174 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
176 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
178 * NEWS: Mention new Python events.
179 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
180 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
181 (py-infevents.o): New rule.
182 * doc/observer.texi (inferior_call_pre, inferior_call_post)
183 (memory_changed, register_changed): New observers.
184 * infcall.c (call_function_by_hand): Notify observer before and
186 * python/py-event.h (inferior_call_kind): New enum.
187 (emit_inferior_call_event): New prototype.
188 (emit_register_changed_event): New prototype.
189 (emit_memory_changed_event): New prototype.
190 * python/py-events.h (events_object): New registries
191 inferior_call, memory_changed and register_changed.
192 * python/py-evts.c (gdbpy_initialize_py_events): Add the
193 inferior_call, memory_changed and register_changed registries.
194 * python/py-infevents.c: New.
195 * python/py-inferior.c (python_on_inferior_call_pre)
196 (python_on_inferior_call_post, python_on_register_change)
197 (python_on_memory_change): New functions.
198 (gdbpy_initialize_inferior): Attach python handler to new
200 * python/py-infthread.c(gdbpy_create_ptid_object): New.
201 (thpy_get_ptid) Use gdbpy_create_ptid_object.
202 * python/python-internal.h:
203 (gdbpy_create_ptid_object)
204 (gdbpy_initialize_inferior_call_pre_event)
205 (gdbpy_initialize_inferior_call_post_event)
206 (gdbpy_initialize_register_changed_event)
207 (gdbpy_initialize_memory_changed_event): New prototypes.
208 * python/python.c (_initialize_python): Initialize new events.
209 * valops.c (value_assign): Notify register_changed observer.
211 2014-12-02 Doug Evans <dje@google.com>
213 * python/py-infthread.c: Whitespace fixes.
215 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
217 * features/Makefile (s390-te-linux64-expedite): Replace
218 non-existant r14 and r15 by r14l and r15l, respectively.
219 * regformats/s390-te-linux64.dat: Regenerate.
221 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
223 * objfiles.c (allocate_objfile): Remove duplicate comment.
225 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
227 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
228 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
229 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
230 (supply_gregset, supply_fpregset): Remove.
231 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
232 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
235 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
237 Add add-auto-load-scripts-directory.
238 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
239 * auto-load.c (add_auto_load_dir): New function.
240 (_initialize_auto_load): Install it.
242 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
244 Pushed by Joel Brobecker <brobecker@adacore.com>.
245 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
247 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
249 * eval.c (evaluate_subexp): Check that the thread stack temporaries
250 are not already enabled before enabling them.
252 2014-11-29 Yao Qi <yao@codesourcery.com>
254 * arm-tdep.c (arm_analyze_prologue): Move local variables
255 'framereg' and 'framesize' to inner block. Move code to
258 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
260 * eval.c: Include gdbthread.h.
261 (evaluate_subexp): Enable thread stack temporaries before
262 evaluating a complete expression and clean them up after the
263 evaluation is complete.
264 * gdbthread.h: Include common/vec.h.
265 (value_ptr): New typedef.
266 (VEC (value_ptr)): New vector type.
267 (value_vec): New typedef.
268 (struct thread_info): Add new fields stack_temporaries_enabled
269 and stack_temporaries.
270 (enable_thread_stack_temporaries)
271 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
272 (get_last_thread_stack_temporary)
273 (value_in_thread_stack_temporaries): Declare.
274 * gdbtypes.c (class_or_union_p): New function.
275 * gdbtypes.h (class_or_union_p): Declare.
276 * infcall.c (call_function_by_hand): Store return values of class
277 type as temporaries on stack.
278 * thread.c (enable_thread_stack_temporaries): New function.
279 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
280 (get_last_thread_stack_temporary): Likewise.
281 (value_in_thread_stack_temporaries): Likewise.
282 * value.c (value_force_lval): New function.
283 * value.h (value_force_lval): Declare.
285 2014-11-28 Pierre Muller <muller@sourceware.org>
287 Pushed by Joel Brobecker <brobecker@adacore.com>.
288 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
291 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
293 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
294 * config/sparc/linux.mh (NATDEPFILES): Likewise.
295 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
296 * m68klinux-nat.c (fetch_core_registers): Remove.
297 (linux_elf_core_fns): Remove.
298 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
300 2014-11-28 Joel Brobecker <brobecker@adacore.com>
302 * utils.c (gdb_realpath): Rework comment about handling on
305 2014-11-28 Yao Qi <yao@codesourcery.com>
307 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
309 * gnulib/aclocal.m4: Re-generated.
310 * gnulib/config.in: Re-generated.
311 * gnulib/configure: Re-generated.
312 * gnulib/import/Makefile.am: Re-generated.
313 * gnulib/import/Makefile.in: Re-generated.
314 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
315 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
316 * import/basename-lgpl.c: New file.
317 * import/dirname-lgpl.c: New file.
318 * import/dirname.h: New file.
319 * import/m4/dirname.m4: New file.
320 * import/m4/malloc.m4: New file.
321 * import/m4/rename.m4: New file.
322 * import/m4/rmdir.m4: New file.
323 * import/m4/stdio_h.m4: New file.
324 * import/malloc.c: New file.
325 * import/rename.c: New file.
326 * import/rmdir.c: New file.
327 * import/same-inode.h: New file.
328 * import/stdio.c: New file.
329 * import/stdio.in.h: New file.
330 * import/stripslash.c: New file.
332 2014-11-28 Yao Qi <yao@codesourcery.com>
334 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
336 * config.in: Re-generated.
337 * configure: Re-generated.
338 * utils.c (gdb_realpath): Remove code calling realpath,
339 canonicalize_file_name and pathconf.
340 [!_WIN32]: Call canonicalize_file_name.
342 2014-11-28 Yao Qi <yao@codesourcery.com>
344 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
346 * aclocal.m4: Re-generated.
347 * config.in: Re-generated.
348 * configure: Re-generated.
349 * import/Makefile.am: Re-generated.
350 * import/Makefile.in: Re-generated.
351 * import/m4/gnulib-cache.m4: Re-generated.
352 * import/m4/gnulib-comp.m4: Re-generated.
353 * import/canonicalize-lgpl.c: New file.
354 * import/extra/snippet/_Noreturn.h: New file.
355 * import/m4/canonicalize.m4: New file.
356 * import/m4/double-slash-root.m4: New file.
357 * import/m4/eealloc.m4: New file.
358 * import/m4/malloca.m4: New file.
359 * import/m4/nocrash.m4: New file.
360 * import/m4/stdlib_h.m4: New file.
361 * import/malloca.c: New file.
362 * import/malloca.h: New file.
363 * import/malloca.valgrind: New file.
365 2014-11-28 Yao Qi <yao@codesourcery.com>
367 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
368 * config.in, configure: Regenerate.
369 * symfile.c (find_separate_debug_file_by_debuglink): Remove
370 code checking HAVE_LSTAT is defined.
372 2014-11-28 Yao Qi <yao@codesourcery.com>
374 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
376 * gnulib/aclocal.m4: Re-generated.
377 * gnulib/config.in: Re-generated.
378 * gnulib/configure: Re-generated.
379 * gnulib/import/Makefile.am: Re-generated.
380 * gnulib/import/Makefile.in: Re-generated.
381 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
382 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
383 * gnulib/import/lstat.c: New file.
384 * gnulib/import/m4/lstat.m4: New file.
386 2014-11-28 Yao Qi <yao@codesourcery.com>
388 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
389 * config.in, configure: Re-generate.
390 * inf-child.c (inf_child_fileio_readlink): Don't check
391 HAVE_READLINK is defined.
393 2014-11-28 Yao Qi <yao@codesourcery.com>
395 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
396 * gnulib/aclocal.m4: Re-generated.
397 * gnulib/config.in: Likewise.
398 * gnulib/configure: Likewise.
399 * gnulib/import/Makefile.am: Likewise.
400 * gnulib/import/Makefile.in: Likewise.
401 * gnulib/import/m4/gnulib-cache.m4: Likewise.
402 * gnulib/import/m4/gnulib-comp.m4: Likewise.
403 * gnulib/import/dosname.h: New file
404 * gnulib/import/m4/largefile.m4: New file.
405 * gnulib/import/m4/readlink.m4: New file.
406 * gnulib/import/m4/stat.m4: New file.
407 * gnulib/import/readlink.c: New file.
408 * gnulib/import/stat.c: New file.
410 2014-11-26 Mark Wielaard <mjw@redhat.com>
412 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
413 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
415 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
417 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
418 that there can be only one stack adjustment in the prologue
419 with tests to detect specific disallowed stack adjustments.
421 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
423 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
426 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
428 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
429 the instruction as well as reading it from memory.
430 (nios2_match_add): New.
431 (nios2_match_sub): New.
432 (nios2_match_addi): New.
433 (nios2_match_orhi): New.
434 (nios2_match_stw): New.
435 (nios2_match_ldw): New.
436 (nios2_match_rdctl): New.
437 (enum branch_condition): New.
438 (nios2_match_branch): New.
439 (nios2_match_jmpi): New.
440 (nios2_match_calli): New.
441 (nios2_match_jmpr): New.
442 (nios2_match_callr): New.
443 (nios2_match_break): New.
444 (nios2_match_trap): New.
445 (nios2_in_epilogue_p): Rewrite to use new functions.
446 (nios2_analyze_prologue): Likewise.
447 (nios2_skip_prologue): Delete unused local limit_pc.
448 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
449 (nios2_get_next_pc): Rewrite to use new functions.
451 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
453 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
455 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
457 Pushed by Joel Brobecker <brobecker@adacore.com>
458 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
459 elements pi_len by the size of the elements before calling
461 (inf_validate_task_sc): Likewise, and properly deallocate the
464 2014-11-23 Doug Evans <xdje42@gmail.com>
466 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
467 number and name if present. All callers updated.
468 (dump_fn_fieldlists): Fix indentation of args.
470 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
472 * MAINTAINERS (Write After Approval): Add myself.
474 2014-11-23 Joel Brobecker <brobecker@adacore.com>
476 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
477 to a bp_call_dummy breakpoint type.
479 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
481 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
482 registering the signal handler.
484 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
486 * event-top.h (call_stdin_event_handler_again_p): Declare.
487 * event-top.c (call_stdin_event_handler_again_p): Define.
488 (stdin_event_handler): Use it.
489 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
490 handler again if there is pending input following a
493 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
495 Pushed by Joel Brobecker <brobecker@adacore.com>
496 * linux-fork.c (checkpoint_command): Print index of new
497 checkpoint in response message.
499 2014-11-23 Yao Qi <yao@codesourcery.com>
501 * valprint.c (read_string): Move local variables 'found_nul',
502 'chunksize' and 'limit' to inner scope. Update comments.
504 2014-11-22 Doug Evans <xdje42@gmail.com>
506 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
508 (search_symbols): Fix comments and whitespace.
510 2014-11-22 Doug Evans <xdje42@gmail.com>
512 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
514 2014-11-21 Doug Evans <dje@google.com>
516 * psymtab.c (psymtab_search_name): Fix whitespace.
518 2014-11-21 Yao Qi <yao@codesourcery.com>
520 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
522 * gnulib/import/Makefile.am: Re-generated.
523 * gnulib/import/Makefile.in: Likewise.
524 * gnulib/import/m4/gnulib-cache.m4: Likewise.
526 2014-11-21 Yao Qi <yao@codesourcery.com>
528 * gdb_wchar.h: Include wchar.h and wctype.h.
529 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
530 include wchar.h and wctype.h.
531 Don't check HAVE_WCHAR_H.
533 2014-11-21 Yao Qi <yao@codesourcery.com>
535 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
537 * gnulib/import/Makefile.am: Re-generated.
538 * gnulib/import/Makefile.in: Likewise.
539 * gnulib/import/m4/gnulib-cache.m4: Likewise.
541 2014-11-21 Yao Qi <yao@codesourcery.com>
543 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
545 * gnulib/import/Makefile.am: Re-generated.
546 * gnulib/import/Makefile.in: Likewise.
547 * gnulib/import/m4/gnulib-cache.m4: Likewise.
549 2014-11-21 Yao Qi <yao@codesourcery.com>
551 * common/common-defs.h: Include alloca.h
552 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
553 * configure: Re-generated.
554 * defs.h: Remove code handling alloca.
555 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
558 2014-11-21 Yao Qi <yao@codesourcery.com>
560 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
562 * gnulib/import/Makefile.am: Re-generated.
563 * gnulib/import/Makefile.in: Likewise..
564 * gnulib/import/m4/gnulib-cache.m4: Likewise.
566 2014-11-21 Yao Qi <yao@codesourcery.com>
568 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
571 2014-11-21 Joel Brobecker <brobecker@adacore.com>
573 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
574 flag_unsigned if HIGH_BOUND is constant and negative.
576 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
579 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
580 modifier from "struct gdbarch" when compiling without Expat (XML)
582 (get_syscall_by_number): Likewise.
583 (get_syscall_by_name): Likewise.
584 (get_syscall_names): Likewise.
586 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
589 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
590 set_xml_syscall_file_name to provide gdbarch.
591 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
592 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
593 * breakpoint.c (print_it_catch_syscall): Adjust call to
594 get_syscall_by_number to provide gdbarch.
595 (print_one_catch_syscall): Likewise.
596 (print_mention_catch_syscall): Likewise.
597 (print_recreate_catch_syscall): Likewise.
598 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
599 and get_syscall_by_name to provide gdbarch.
600 (catch_syscall_completer): Adjust call to get_syscall_names to
602 * gdbarch.c: Regenerate.
603 * gdbarch.h: Likewise.
604 * gdbarch.sh: Forward declare "struct syscalls_info".
605 (xml_syscall_file): New variable.
606 (syscalls_info): Likewise.
607 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
608 set_xml_syscall_file_name to provide gdbarch.
609 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
610 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
611 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
612 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
613 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
614 * xml-syscall.c: Include gdbarch.h.
615 (set_xml_syscall_file_name): Accept gdbarch parameter.
616 (get_syscall_by_number): Likewise.
617 (get_syscall_by_name): Likewise.
618 (get_syscall_names): Likewise.
619 (my_gdb_datadir): Delete global variable.
620 (struct syscalls_info) <my_gdb_datadir>: New variable.
621 (struct syscalls_info) <sysinfo>: Rename variable to
623 (sysinfo): Delete global variable.
624 (have_initialized_sysinfo): Likewise.
625 (xml_syscall_file): Likewise.
626 (sysinfo_free_syscalls_desc): Rename to...
627 (syscalls_info_free_syscalls_desc): ... this.
628 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
629 code to the new layout of "struct syscalls_info".
630 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
632 (syscall_create_syscall_desc): Likewise.
633 (syscall_start_syscall): Likewise.
634 (syscall_parse_xml): Likewise.
635 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
636 (init_sysinfo): Rename to...
637 (init_syscalls_info): ...this. Add gdbarch as a parameter.
638 Adjust function to deal with gdbarch.
639 (xml_get_syscall_number): Delete parameter sysinfo. Accept
640 gdbarch as a parameter. Adjust code.
641 (xml_get_syscall_name): Likewise.
642 (xml_list_of_syscalls): Likewise.
643 (set_xml_syscall_file_name): Accept gdbarch as parameter.
644 (get_syscall_by_number): Likewise.
645 (get_syscall_by_name): Likewise.
646 (get_syscall_names): Likewise.
647 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
648 (get_syscall_by_number): Likewise.
649 (get_syscall_by_name): Likewise.
650 (get_syscall_names): Likewise.
652 2014-11-20 Doug Evans <xdje42@gmail.com>
654 Split struct symtab into two: struct symtab and compunit_symtab.
655 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
656 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
657 to "struct compunit_symtab *". All callers updated.
658 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
659 "struct symtab *" argument to "struct compunit_symtab *".
661 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
662 result to "struct compunit_symtab *". All callers updated.
663 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
664 Change result to "struct compunit_symtab *". All callers updated.
665 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
666 hange type to "struct compunit_symtab *". All uses updated.
667 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
668 Change type to "struct compunit_symtab *". All uses updated.
669 * buildsym.c (struct buildsym_compunit): New struct.
670 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
671 (buildsym_compunit): New static global.
672 (finish_block_internal): Update to fetch objfile from
674 (make_blockvector): Delete objfile argument.
675 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
676 debugformat, producer.
677 (start_buildsym_compunit): New function.
678 (free_buildsym_compunit): Renamed from free_subfiles_list.
680 (patch_subfile_names): Rewrite to use buildsym_compunit.
681 (get_compunit_symtab): New function.
682 (get_macro_table): Delete argument comp_dir. All callers updated.
683 (start_symtab): Change result to "struct compunit_symtab *".
684 All callers updated. Create the subfile of the main source file.
685 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
686 (reset_symtab_globals): Update.
687 (end_symtab_get_static_block): Update to use buildsym_compunit.
688 (end_symtab_without_blockvector): Rewrite.
689 (end_symtab_with_blockvector): Change result to
690 "struct compunit_symtab *". All callers updated.
691 Update to use buildsym_compunit. Don't set symtab->dirname,
692 instead set it in the compunit.
693 Explicitly make sure main symtab is first in its list.
694 Set debugformat, producer, blockvector, block_line_section, and
695 macrotable in the compunit.
696 (end_symtab_from_static_block): Change result to
697 "struct compunit_symtab *". All callers updated.
698 (end_symtab, end_expandable_symtab): Ditto.
699 (set_missing_symtab): Change symtab argument to
700 "struct compunit_symtab *". All callers updated.
701 (augment_type_symtab): Ditto.
702 (record_debugformat): Update to use buildsym_compunit.
703 (record_producer): Update to use buildsym_compunit.
704 * buildsym.h (struct subfile) <dirname>: Delete.
705 <producer, debugformat>: Delete.
706 <buildsym_compunit>: New member.
707 (get_compunit_symtab): Declare.
708 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
709 from primary_symtab. Change type to "struct compunit_symtab *".
711 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
713 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
714 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
715 symtab. Change type to "struct compunit_symtab *". All uses updated.
716 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
718 (dw2_find_last_source_symtab): Ditto.
719 (dw2_lookup_symbol): Ditto.
720 (recursively_find_pc_sect_compunit_symtab): Renamed from
721 recursively_find_pc_sect_symtab. Change result to
722 "struct compunit_symtab *". All callers updated.
723 (dw2_find_pc_sect_compunit_symtab): Renamed from
724 dw2_find_pc_sect_symtab. Change result to
725 "struct compunit_symtab *". All callers updated.
726 (get_compunit_symtab): Renamed from get_symtab. Change result to
727 "struct compunit_symtab *". All callers updated.
728 (recursively_compute_inclusions): Change type of immediate_parent
729 argument to "struct compunit_symtab *". All callers updated.
730 (compute_compunit_symtab_includes): Renamed from
731 compute_symtab_includes. All callers updated. Rewrite to compute
732 includes of compunit_symtabs and not symtabs.
733 (process_full_comp_unit): Update to work with struct compunit_symtab.
734 (process_full_type_unit): Ditto.
735 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
736 (dwarf_decode_lines): Remove special case handling of main subfile.
737 (macro_start_file): Delete argument comp_dir. All callers updated.
738 (dwarf_decode_macro_bytes): Ditto.
739 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
740 use struct compunit_symtab.
741 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
742 * jit.c (finalize_symtab): Build compunit_symtab.
743 * jv-lang.c (get_java_class_symtab): Change result to
744 "struct compunit_symtab *". All callers updated.
745 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
746 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
747 comp_dir. Change type to "struct compunit_symtab *".
749 (new_macro_table): Change comp_dir argument to cust,
750 "struct compunit_symtab *". All callers updated.
751 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
752 nr_primary_symtabs. All uses updated.
753 (count_symtabs_and_blocks): Update to handle compunits.
754 (report_command_stats): Update output, "primary symtabs" renamed to
756 * mdebugread.c (new_symtab): Change result to
757 "struct compunit_symtab *". All callers updated.
758 (parse_procedure): Change type of search_symtab argument to
759 "struct compunit_symtab *". All callers updated.
760 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
762 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
763 symtabs. Change type to "struct compunit_symtab *". All uses updated.
764 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
766 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
768 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
769 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
770 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
771 symtab. Change type to "struct compunit_symtab *". All uses updated.
772 * psymtab.c (psymtab_to_symtab): Change result type to
773 "struct compunit_symtab *". All callers updated.
774 (find_pc_sect_compunit_symtab_from_partial): Renamed from
775 find_pc_sect_symtab_from_partial. Change result type to
776 "struct compunit_symtab *". All callers updated.
777 (lookup_symbol_aux_psymtabs): Change result type to
778 "struct compunit_symtab *". All callers updated.
779 (find_last_source_symtab_from_partial): Ditto.
780 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
781 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
782 and macro_table from compunit.
783 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
784 type to "struct compunit_symtab *". All callers updated.
785 (debug_qf_lookup_symbol): Ditto.
786 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
787 debug_qf_find_pc_sect_symtab, change result type to
788 "struct compunit_symtab *". All callers updated.
789 * symfile.c (allocate_symtab): Delete objfile argument.
791 (allocate_compunit_symtab): New function.
792 (add_compunit_symtab_to_objfile): New function.
793 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
794 Change result type to "struct compunit_symtab *". All uses updated.
795 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
796 Change result type to "struct compunit_symtab *". All uses updated.
797 * symmisc.c (print_objfile_statistics): Compute blockvector count in
799 (dump_symtab_1): Update test for primary source symtab.
800 (maintenance_info_symtabs): Update to handle compunit symtabs.
801 (maintenance_check_symtabs): Ditto.
802 * symtab.c (set_primary_symtab): Delete.
803 (compunit_primary_filetab): New function.
804 (compunit_language): New function.
805 (iterate_over_some_symtabs): Change type of arguments "first",
806 "after_last" to "struct compunit_symtab *". All callers updated.
807 Update to loop over symtabs in each compunit.
808 (error_in_psymtab_expansion): Rename symtab argument to cust,
809 and change type to "struct compunit_symtab *". All callers updated.
810 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
811 Change result type to "struct compunit_symtab *". All callers updated.
812 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
813 Change result type to "struct compunit_symtab *". All callers updated.
814 (find_pc_sect_line): Only loop over symtabs within selected compunit
815 instead of all symtabs in the objfile.
816 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
817 <compunit_symtab> New member.
818 <block_line_section>: Moved to compunit_symtab.
819 <locations_valid>: Ditto.
820 <epilogue_unwind_valid>: Ditto.
821 <macro_table>: Ditto.
823 <debugformat>: Ditto.
826 <call_site_htab>: Ditto.
830 (SYMTAB_COMPUNIT): New macro.
831 (SYMTAB_BLOCKVECTOR): Update definition.
832 (SYMTAB_OBJFILE): Update definition.
833 (SYMTAB_DIRNAME): Update definition.
834 (struct compunit_symtab): New type. Common members among all source
835 symtabs within a compilation unit moved here. All uses updated.
836 (COMPUNIT_OBJFILE): New macro.
837 (COMPUNIT_FILETABS): New macro.
838 (COMPUNIT_DEBUGFORMAT): New macro.
839 (COMPUNIT_PRODUCER): New macro.
840 (COMPUNIT_DIRNAME): New macro.
841 (COMPUNIT_BLOCKVECTOR): New macro.
842 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
843 (COMPUNIT_LOCATIONS_VALID): New macro.
844 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
845 (COMPUNIT_CALL_SITE_HTAB): New macro.
846 (COMPUNIT_MACRO_TABLE): New macro.
847 (ALL_COMPUNIT_FILETABS): New macro.
848 (compunit_symtab_ptr): New typedef.
849 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
851 2014-11-20 Joel Brobecker <brobecker@adacore.com>
853 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
854 if the TYPE_CODE of range_type's base type does not match
855 the TYPE_CODE of encoding_type's base type.
857 2014-11-19 Joel Brobecker <brobecker@adacore.com>
859 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
862 2014-11-19 Joel Brobecker <brobecker@adacore.com>
864 * ada-lang.c (ada_is_redundant_range_encoding): New function.
865 (ada_is_redundant_index_type_desc): New function.
866 (to_fixed_array_type): Ignore parallel XA type if redundant.
868 2014-11-19 Joel Brobecker <brobecker@adacore.com>
870 * ada-lang.c (constrained_packed_array_type): Set the length
871 of the return array as if both bounds where zero if that
872 returned array's index type is dynamic.
874 2014-11-19 Yao Qi <yao@codesourcery.com>
876 * config/i386/go32.mh (CC): Remove.
878 2014-11-18 Doug Evans <xdje42@gmail.com>
880 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
883 2014-11-18 Doug Evans <xdje42@gmail.com>
885 * buildsym.c (buildsym_objfile): New static global.
886 (buildsym_comp_dir): New static global.
887 (finish_block_internal): Delete arg objfile. All callers updated.
888 (finish_block): Delete arg objfile. All callers updated.
889 (start_subfile): Delete arg dirname. All callers updated.
890 (patch_subfile_names): Update buildsym_comp_dir.
891 (get_macro_table): Delete arg objfile. All callers updated.
892 (start_symtab): New arg objfile. All callers updated.
893 Rename arg dirname to comp_dir.
894 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
895 (end_symtab_get_static_block): Delete arg objfile. All callers
897 (end_symtab_without_blockvector): Ditto.
898 (end_symtab_with_blockvector): Ditto.
899 (end_symtab_from_static_block): Ditto.
901 (end_expandable_symtab): Ditto.
902 (augment_type_symtab): Ditto.
903 * coffread.c (coff_start_symtab): New arg objfile. All callers
906 2014-11-18 Doug Evans <xdje42@gmail.com>
908 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
911 2014-11-18 Doug Evans <xdje42@gmail.com>
913 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
914 symtab.dirname updated to use it.
916 2014-11-18 Doug Evans <xdje42@gmail.com>
918 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
919 symtab.objfile updated to use it.
921 2014-11-18 Doug Evans <xdje42@gmail.com>
923 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
925 2014-11-18 Doug Evans <xdje42@gmail.com>
927 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
929 * findvar.c (default_read_var_value): Ditto.
930 * jv-lang.c (add_class_symtab_symbol): Ditto.
931 * parse.c (operator_check_standard): Ditto.
932 * printcmd.c (address_info): Ditto.
933 * symtab.c (fixup_symbol_section): Ditto.
934 (skip_prologue_sal): Ditto.
935 * tracepoint.c (scope_info): Ditto.
936 * valops.c (find_function_in_inferior): Ditto.
937 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
938 * python/py-symbol.c (set_symbol): Ditto.
940 2014-11-18 Doug Evans <xdje42@gmail.com>
942 * buildsym.c (main_subfile): New static global.
943 (free_subfiles_list): New function.
944 (start_symtab): Set main_subfile.
945 (restart_symtab): Replace init of subfiles, current_subfile with
946 call to free_subfiles_list.
947 (watch_main_source_file_lossage): Use main_subfile.
948 (reset_symtab_globals): Replace init of current_subfile with call
949 to free_subfiles_list.
950 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
951 functions, split out from ...
952 (end_symtab_from_static_block): ... here. Rewrite to call them.
954 2014-11-18 Doug Evans <xdje42@gmail.com>
956 The result of symtab expansion is always a primary symtab.
957 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
958 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
959 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
960 (psymtab_to_symtab): Add comment and assert.
961 (map_matching_symbols_psymtab): Remove unnecessary test for
964 2014-11-15 Doug Evans <xdje42@gmail.com>
967 * symtab.c (find_pc_line_symtab): New function.
968 * symtab.h (find_pc_line_symtab): Declare.
969 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
971 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
972 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
973 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
974 * tui/tui-win.c (make_visible_with_new_height): Ditto.
975 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
976 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
978 2014-11-15 Doug Evans <xdje42@gmail.com>
980 * symtab.c (expand_symtab_containing_pc): Renamed from
981 find_pc_sect_symtab_via_partial. All callers updated.
983 2014-11-15 Yao Qi <yao@codesourcery.com>
985 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
987 2014-11-14 Joel Brobecker <brobecker@adacore.com>
989 * common/common-defs.h: Move <stdarg.h> #include ahead of
992 2014-11-14 Pedro Alves <palves@redhat.com>
994 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
995 [!PHONY_ICONV] (gdb_iconv): New function.
996 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
998 2014-11-13 Doug Evans <dje@google.com>
1001 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1002 "(anonymous namespace)".
1004 2014-11-13 Doug Evans <dje@google.com>
1006 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1009 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1011 * NEWS (maint set target-async): Fix typo.
1013 2014-11-12 Pedro Alves <palves@redhat.com>
1015 * infrun.c (enum infwait_states, infwait_state): Delete.
1017 2014-11-12 Pedro Alves <palves@redhat.com>
1019 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1020 Rewrite stepping over a permanent breakpoint.
1021 (thread_still_needs_step_over, proceed): Don't set
1022 stepping_over_breakpoint for permanent breakpoints.
1023 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1024 single-step breakpoints out of the target on hardware step
1026 (process_event_stop_test): If stepping a permanent breakpoint
1027 doesn't hit the step-resume breakpoint, delete the step-resume
1029 (switch_back_to_stepped_thread): Also check if the stepped thread
1030 has advanced already on hardware step targets.
1031 (currently_stepping): Return true if the thread stepped a
1034 2014-11-12 Pedro Alves <palves@redhat.com>
1036 Mark locations as permanent, not the whole breakpoint.
1037 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1038 (mark_breakpoints_out): Don't mark permanent breakpoints as
1040 (breakpoint_init_inferior): Use mark_breakpoints_out.
1041 (breakpoint_here_p): Adjust.
1042 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1043 of permanent breakpoints.
1044 (make_breakpoint_permanent): Mark each location as permanent,
1045 instead of marking the breakpoint.
1046 (add_location_to_breakpoint): If the location is permanent, mark
1047 it as such, and as inserted.
1048 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1049 (bp_location_compare, update_global_location_list): Adjust.
1050 (update_breakpoint_locations): Don't make the breakpoint permanent
1052 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1054 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1055 (struct bp_location) <permanent>: New field.
1056 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1057 reference to bp_permanent.
1059 2014-11-12 Pedro Alves <palves@redhat.com>
1061 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1062 * arch-utils.h (default_skip_permanent_breakpoint): New
1064 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1065 Install default_skip_permanent_breakpoint as default method.
1066 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1067 (i386_gdbarch_init): Don't install it.
1068 * infrun.c (resume): Assume there's always a
1069 gdbarch_skip_permanent_breakpoint implementation.
1070 * gdbarch.h, gdbarch.c: Regenerate.
1072 2014-11-11 Daniel Colascione <dancol@dancol.org>
1074 Warn about cross-PID-namespace debugging.
1075 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1076 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1077 * linux-thread-db.c (check_pid_namespace_match): New function.
1078 (thread_db_inferior_created): Call it.
1080 2014-11-10 Doug Evans <xdje42@gmail.com>
1082 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1083 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1085 2014-11-10 Doug Evans <xdje42@gmail.com>
1087 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1089 2014-11-10 Doug Evans <xdje42@gmail.com>
1092 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1093 (lookup_static_symbol): Move definition to new location and rewrite.
1094 (lookup_symbol_in_objfile): New function.
1095 (lookup_symbol_global_iterator_cb): Call it.
1097 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1099 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1101 2014-11-07 Pedro Alves <palves@redhat.com>
1103 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1104 check if we did a "nexti" inside a prologue.
1105 * symtab.c (in_prologue): Delete function.
1106 * symtab.h (in_prologue): Delete declaration.
1108 2014-11-06 Doug Evans <xdje42@gmail.com>
1110 * symtab.h (lookup_global_symbol): Improve function comment.
1112 2014-11-06 Doug Evans <xdje42@gmail.com>
1114 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1115 All callers updated.
1116 * symtab.h (lookup_global_symbol): Update decl.
1117 (lookup_static_symbol): Move decl to better location.
1119 2014-11-06 Doug Evans <xdje42@gmail.com>
1121 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1123 2014-11-06 Doug Evans <xdje42@gmail.com>
1125 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1126 All callers updated.
1127 (lookup_symbol_in_all_objfiles): Renamed from
1128 lookup_symbol_aux_symtabs. All callers updated.
1129 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1130 All callers updated.
1131 (lookup_symbol_in_objfile_symtabs): Renamed from
1132 lookup_symbol_aux_objfile. All callers updated.
1134 2014-11-06 Doug Evans <xdje42@gmail.com>
1136 * symtab.c (lookup_symbol_in_block): Renamed from
1137 lookup_symbol_aux_block. All callers updated.
1139 2014-11-06 Doug Evans <xdje42@gmail.com>
1141 * symtab.c (lookup_static_symbol): Renamed from
1142 lookup_static_symbol_aux. All callers updated.
1143 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1144 All callers updated.
1146 2014-11-06 Doug Evans <xdje42@gmail.com>
1148 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1149 * block.c (block_lookup_symbol): Use it.
1150 * cp-support.c (make_symbol_overload_list_block): Use it.
1151 * symtab.c (iterate_over_symbols): Use it.
1153 2014-11-06 Doug Evans <xdje42@gmail.com>
1155 * symtab.c (lookup_block_symbol): Moved to ...
1156 * block.c (block_lookup_symbol): ... here and renamed.
1157 All callers updated.
1158 * block.h (block_lookup_symbol): Declare.
1159 * symtab.h (lookup_block_symbol): Delete.
1161 2014-11-06 Doug Evans <xdje42@gmail.com>
1163 * ada-lang.c (ada_make_symbol_completion_list): Use
1164 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1165 * symtab.c (lookup_objfile_from_block): Ditto.
1167 2014-11-06 Doug Evans <xdje42@gmail.com>
1169 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1172 2014-11-06 Doug Evans <xdje42@gmail.com>
1174 * objfiles.c (get_objfile_arch): Constify.
1175 * objfiles.h (get_objfile_arch): Update prototype.
1176 * solib.c (solib_global_lookup): Fetch arch from objfile,
1179 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1181 * nios2-tdep.c (wild_insn): Delete.
1182 (profiler_insn, irqentry_insn): Delete.
1183 (nios2_match_sequence): Delete.
1184 (nios2_analyze_prologue): Update comments. Remove matching
1185 of obsolete profiler_insn and irqentry_insn sequences.
1187 2014-11-05 Alan Modra <amodra@gmail.com>
1189 * charset.c (convert_between_encodings): Shrink obstack using
1191 * minsyms.c (install_minimal_symbols): Likewise.
1192 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1193 to char* before doing pointer arithmetic.
1195 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1197 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1199 2014-11-04 Pedro Alves <palves@redhat.com>
1201 * breakpoint.c (breakpoint_thread_match): Delete function.
1202 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1204 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1207 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1208 the method args also under EVAL_SKIP when evaluating method
1209 calls under EVAL_SKIP.
1211 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1213 * dwarf2loc.c (read_pieced_value): Do big endian
1214 processing only if gdb_regnum is not -1.
1215 (write_pieced_value): Ditto.
1217 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1219 * arm-linux-tdep.c (arm_linux_init_abi): Use
1220 info.byte_order_for_code to choose endianity of breakpoint
1221 instructions snippets.
1223 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1225 * arm-tdep.c (extract_arm_insn): Use
1226 gdbarch_byte_order_for_code to read arm instruction.
1228 2014-11-02 Doug Evans <xdje42@gmail.com>
1230 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1232 2014-11-02 Doug Evans <xdje42@gmail.com>
1234 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1235 main_subfile before returning.
1237 2014-10-31 Doug Evans <xdje42@gmail.com>
1239 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1240 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1242 2014-10-31 Doug Evans <xdje42@gmail.com>
1244 * valops.c (value_cast_pointers): Fix whitespace.
1245 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1248 2014-10-30 Doug Evans <dje@google.com>
1250 * NEWS: Mention ability add attributes to gdb.Objfile and
1251 gdb.Progspace objects.
1252 * python/py-objfile.c (objfile_object): New member dict.
1253 (objfpy_dealloc): Py_XDECREF dict.
1254 (objfpy_initialize): Initialize dict.
1255 (objfile_getset): Add __dict__.
1256 (objfile_object_type): Set tp_dictoffset member.
1257 * python/py-progspace.c (progspace_object): New member dict.
1258 (pspy_dealloc): Py_XDECREF dict.
1259 (pspy_initialize): Initialize dict.
1260 (pspace_getset): Add __dict__.
1261 (pspace_object_type): Set tp_dictoffset member.
1263 2014-10-30 Yao Qi <yao@codesourcery.com>
1265 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1266 replace '\\' with '\\\\'.
1268 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1272 2014-10-29 Pedro Alves <palves@redhat.com>
1275 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1276 instead of assuming a thread with a stepping range is always
1279 2014-10-29 Pedro Alves <palves@redhat.com>
1282 * event-top.c (change_line_handler): Call
1283 gdb_rl_callback_handler_remove instead of
1284 rl_callback_handler_remove.
1285 (callback_handler_installed): New global.
1286 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1287 (gdb_rl_callback_handler_reinstall): New functions.
1288 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1289 gdb_rl_callback_handler_install instead of
1290 rl_callback_handler_remove and rl_callback_handler_install.
1291 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1292 instead of rl_callback_handler_remove.
1293 * event-top.h (gdb_rl_callback_handler_remove)
1294 (gdb_rl_callback_handler_install)
1295 (gdb_rl_callback_handler_reinstall): New declarations.
1296 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1298 (fetch_inferior_event): Install it.
1299 * top.c (gdb_readline_wrapper_line) Call
1300 gdb_rl_callback_handler_remove instead of
1301 rl_callback_handler_remove.
1302 (gdb_readline_wrapper_cleanup): Don't call
1303 rl_callback_handler_install.
1305 2014-10-29 Pedro Alves <palves@redhat.com>
1307 * event-top.c (command_line_handler): Clear the first byte of
1308 linebuffer, when it is first allocated.
1310 2014-10-29 Pedro Alves <palves@redhat.com>
1312 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1315 2014-10-29 Pedro Alves <palves@redhat.com>
1319 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1320 (tui_allowed_p): Delete function.
1321 * tui/tui.c: Include "interps.h".
1322 (tui_enable): Don't use tui_allowed_p. Error out here with
1323 detailed error messages if the TUI is the top level interpreter,
1324 or if output is not a terminal. Use newterm instead of initscr,
1325 and error out if initializing the terminal fails. Also error out if
1326 the terminal doesn't support cursor addressing.
1327 * tui/tui.h (tui_allowed_p): Delete declaration.
1329 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1331 * arm-tdep.c (arm_skip_stack_protector): Return early if
1332 address loaded by first "ldr" instruction does not have
1333 a corresponding minimal symbol. Update comment.
1335 2014-10-29 Yao Qi <yao@codesourcery.com>
1337 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1338 loaded address correctly of ldr instruction.
1340 2014-10-28 Pedro Alves <palves@redhat.com>
1343 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1345 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1346 thread's stepped_breakpoint field. Skip if reverse debugging.
1348 (init_thread_stepping_state, handle_signal_stop): Clear the
1349 thread's stepped_breakpoint field.
1351 2014-10-27 Pedro Alves <palves@redhat.com>
1353 * remote.c (remote_thread_alive): New, factored out from ...
1354 (remote_thread_alive): ... this.
1355 (remote_update_thread_list): Bail out before deleting threads if
1356 the target returned an empty list, and, the current thread has a
1359 2014-10-27 Pedro Alves <palves@redhat.com>
1361 * infrun.c (handle_signal_stop): Also skip handlers when a random
1362 signal arrives while handling a "stepi" or a "nexti". Set the
1363 thread's 'step_after_step_resume_breakpoint' flag.
1365 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1367 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1368 (arm_record_ld_st_imm_offset): Reimplement to cover all
1369 load/store cases for ARM opcode 010.
1370 (arm_record_ld_st_multiple): Reimplement to cover all
1371 load/store cases for ARM opcode 100.
1373 2014-10-26 Doug Evans <xdje42@gmail.com>
1375 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1377 2014-10-26 Doug Evans <xdje42@gmail.com>
1379 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1380 parameter "kind" to "block_index".
1381 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1383 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1385 2014-10-26 Doug Evans <xdje42@gmail.com>
1387 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1389 2014-10-26 Doug Evans <xdje42@gmail.com>
1391 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1394 2014-10-26 Doug Evans <xdje42@gmail.com>
1396 * parser-defs.h (block_found): Move decl from here ...
1397 * symtab.h (block_found): ... to here.
1399 2014-10-26 Doug Evans <xdje42@gmail.com>
1401 * symtab.h (struct field_of_this_result): Fix typo in comment.
1402 (lookup_symbol_in_language): Move function comment here.
1403 (lookup_symbol): Improve function comment.
1404 (basic_lookup_symbol_nonlocal): Ditto.
1405 (lookup_symbol_static, lookup_symbol_global): Ditto.
1406 (lookup_symbol_aux_block): Ditto.
1407 (lookup_language_this): Add function comment.
1408 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1410 (lookup_block_symbol): Improve function comment.
1411 (lookup_struct): Fix capitalization in function comment.
1412 (lookup_transparent_type): Add function comment.
1413 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1414 Improve function comment.
1415 (lookup_objfile_from_block): Add function comment.
1416 * symtab.c (lookup_symbol_in_language): Update function comment.
1417 (lookup_symbol, lookup_language_this): Ditto.
1418 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1419 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1420 (basic_lookup_symbol_nonlocal): Ditto.
1421 (lookup_symbol_static, lookup_symbol_global): Ditto.
1422 (lookup_transparent_type, lookup_block_symbol): Ditto.
1424 2014-10-25 Doug Evans <xdje42@gmail.com>
1426 * symtab.c (types_info): Delete forward decl.
1427 (functions_info, variables_info, sources_info): Ditto.
1428 (_initialize_symtab): Rewrite forward decl to use
1429 initialize_file_ftype.
1431 2014-10-25 Doug Evans <xdje42@gmail.com>
1433 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1435 2014-10-25 Doug Evans <xdje42@gmail.com>
1437 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1438 of local var child_die.
1440 2014-10-24 Don Breazeal <donb@codesourcery.com>
1442 * infrun.c (follow_fork_inferior): Update fork message printing
1443 to use target_terminal_ours_for_output instead of
1444 target_terminal_ours, to use _() for all format strings, to print
1445 "vfork" instead of "fork" for vforks, and to add a detach message.
1446 (handle_vfork_child_exec_or_exit): Update message printing to use
1447 target_terminal_ours_for_output instead of target_terminal_ours, to
1448 use _() for all format strings, and to fix some formatting.
1450 2014-10-24 Pedro Alves <palves@redhat.com>
1452 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1453 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1454 * config/vax/vax.mh: Delete.
1455 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1456 obsolete configurations section.
1457 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1458 * vax-nat.c: Delete file.
1460 2014-10-24 Pedro Alves <palves@redhat.com>
1462 * NEWS (Removed targets): Add OS/arch column.
1464 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1466 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1467 on the arg type of a constructor only if it is of reference type.
1469 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1471 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1472 accessors and constants from nios2 opcodes update.
1473 (nios2_get_next_pc): Likewise.
1475 2014-10-19 Doug Evans <xdje42@gmail.com>
1477 * gdbthread.h (set_running): Fix comment.
1478 (set_executing, finish_thread_state): Fix comment.
1480 2014-10-18 Doug Evans <xdje42@gmail.com>
1482 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1484 2014-10-17 Doug Evans <dje@google.com>
1486 * NEWS: Mention new event gdb.clear_objfiles.
1487 * python/py-event.h (emit_clear_objfiles_event): Clear
1488 * python/py-events.h (events_object): New member clear_objfiles.
1489 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1491 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1492 emit clear_objfiles event.
1493 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1495 (emit_clear_objfiles_event): New function.
1496 (clear_objfiles): New event.
1497 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1499 * python/python.c (_initialize_python): Call
1500 gdbpy_initialize_clear_objfiles_event.
1502 2014-10-17 Doug Evans <dje@google.com>
1504 * NEWS: Mention new gdb.Objfile.progspace attribute.
1505 * python/py-objfile.c (objfpy_get_progspace): New function.
1506 (objfile_getset): New entry for "progspace".
1508 2014-10-17 Pedro Alves <palves@redhat.com>
1511 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1512 returns a copy of the input.
1513 (run_command_1, continue_command, step_1, jump_command)
1514 (signal_command, until_command, advance_command, finish_command)
1515 (attach_command): Adjust and install a cleanup to free the
1518 2014-10-17 Pedro Alves <palves@redhat.com>
1521 * infcmd.c (continue_1): If continuing all threads in the
1522 foreground, make sure the inferior's terminal settings are put in
1525 2014-10-17 Pedro Alves <palves@redhat.com>
1528 * annotate.c (annotate_breakpoints_invalid): Use
1529 target_terminal_our_for_output instead of target_terminal_ours.
1530 Give back the terminal to the target.
1531 (annotate_frames_invalid): Likewise.
1533 2014-10-17 Pedro Alves <palves@redhat.com>
1535 * target.c (enum terminal_state): New enum.
1536 (terminal_state): New global.
1537 (target_terminal_init): New function.
1538 (target_terminal_inferior): Skip if inferior already owns the
1540 (target_terminal_ours, target_terminal_ours_for_output): New
1542 * target.h (target_terminal_init): Convert to function prototype.
1543 (target_terminal_ours_for_output): Convert to function prototype
1545 (target_terminal_ours): Convert to function prototype and tweak
1547 * windows-nat.c (do_initial_windows_stuff): Call
1548 target_terminal_init instead of child_terminal_init_with_pgrp.
1550 2014-10-17 Pedro Alves <palves@redhat.com>
1552 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1553 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1554 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1556 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1557 * ada-lang.h [__alpha__ && __osf__]
1558 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1559 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1560 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1562 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1564 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1565 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1566 * configure: Regenerate.
1567 * configure.ac: Remove references to osf.
1568 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1569 section. Remove all other references to osf.
1570 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1571 Remove all other references to osf.
1572 * dec-thread.c: Delete file.
1573 * defs.h (GDB_OSABI_OSF1): Delete.
1574 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1576 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1577 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1579 (unconditionally_kill_inferior)
1580 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1581 * solib-osf.c: Delete file.
1583 2014-10-17 Pedro Alves <palves@redhat.com>
1585 * remote.c (clear_threads_listing_context): Move higher up, out of
1586 the HAVE_LIBEXPAT guard.
1588 2014-10-16 Tristan Gingold <gingold@adacore.com>
1590 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1591 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1594 2014-10-15 Pedro Alves <palves@redhat.com>
1596 * dec-thread.c (dec_thread_count_gdb_threads)
1597 (dec_thread_add_gdb_thread): Delete.
1598 (dec_thread_update_thread_list): Delete.
1599 (dec_thread_find_new_threads): Rename to ...
1600 (dec_thread_update_thread_list): ... this. Delete GDB-size
1601 threads that are no longer found in dec_thread_list.
1602 (resync_thread_list): Delete.
1603 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1606 2014-10-15 Pedro Alves <palves@redhat.com>
1608 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1609 * remote.c (remote_update_thread_list): Skip calling prune_threads
1610 if any thread listing method is supported, and instead walk over
1611 the set of remote threads listed, deleting those that are not
1612 found in GDB's thread list.
1614 2014-10-15 Pedro Alves <palves@redhat.com>
1616 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1617 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1618 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1619 (bsd_uthread_target): Adjust.
1620 * corelow.c (core_open): Adjust.
1621 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1622 (dec_thread_update_thread_list): New function.
1623 (init_dec_thread_ops): Adjust.
1624 * gdbthread.h (prune_threads): New declaration.
1625 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1626 (thread_db_update_thread_list): ... this. Call prune_threads.
1627 (init_thread_db_ops): Adjust.
1628 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1629 (procfs_update_thread_list): ... this. Call prune_threads.
1630 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1632 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1633 (obsd_update_thread_list): ... this. Call prune_threads.
1634 (obsd_add_target): Adjust.
1635 * procfs.c (procfs_target): Adjust.
1636 (procfs_notice_thread): Update comment.
1637 (procfs_find_new_threads): Rename to ...
1638 (procfs_update_thread_list): ... this. Call prune_threads.
1639 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1641 (ravenscar_wait): Adjust.
1642 (ravenscar_find_new_threads): Rename to ...
1643 (ravenscar_update_thread_list): ... this. Call prune_threads.
1644 (init_ravenscar_thread_ops): Adjust.
1645 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1646 (record_btrace_update_thread_list): ... this. Adjust comment.
1647 (init_record_btrace_ops): Adjust.
1648 * remote.c (remote_threads_info): Rename to ...
1649 (remote_update_thread_list): ... this. Call prune_threads.
1650 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1652 * sol-thread.c (check_for_thread_db): Adjust.
1653 (sol_find_new_threads_callback): Rename to ...
1654 (sol_update_thread_list_callback): ... this.
1655 (sol_find_new_threads): Rename to ...
1656 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1657 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1658 * target-delegates.c: Regenerate.
1659 * target.c (target_find_new_threads): Rename to ...
1660 (target_update_thread_list): ... this.
1661 * target.h (struct target_ops): Rename to_find_new_threads field
1662 to to_update_thread_list.
1663 (target_find_new_threads): Rename to ...
1664 (target_update_thread_list): ... this.
1665 * thread.c (prune_threads): Make extern.
1666 (update_thread_list): Adjust.
1668 2014-10-15 Pedro Alves <palves@redhat.com>
1670 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1671 Add describing comment. Return -1 if the qL packet is not
1673 (struct thread_item, thread_item_t): Move higher up in
1674 the file. Add comments.
1675 (struct threads_parsing_context): Move higher up in
1676 the file, add comments, and remote to ...
1677 (struct threads_listing_context): ... this.
1678 (remote_newthread_step): Don't add the thread to GDB's thread
1679 database here. Instead push it to the thread_listing_context
1681 (remote_find_new_threads): Rename to ...
1682 (remote_get_threads_with_ql): ... this. Add target_ops and
1683 targets_listing_context parameters. Pass down context.
1684 (start_thread): Adjust.
1685 (clear_threads_parsing_context): Rename to ...
1686 (clear_threads_listing_context): ... this.
1687 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1688 remote_threads_info.
1689 (remote_get_threads_with_qthreadinfo): Ditto.
1690 (remote_threads_info): Reimplement.
1692 2014-10-15 Pedro Alves <palves@redhat.com>
1694 * infrun.c (resume): Don't force displaced-stepping for all
1695 single-steps on software single-stepping archs.
1697 2014-10-15 Pedro Alves <palves@redhat.com>
1699 * breakpoint.c (single_step_breakpoints): Delete global.
1700 (insert_single_step_breakpoint): Adjust to store the breakpoint
1701 pointer in the current thread.
1702 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1703 (cancel_single_step_breakpoints): Delete functions.
1704 (breakpoint_has_location_inserted_here): Make extern.
1705 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1707 * breakpoint.h (breakpoint_has_location_inserted_here): New
1709 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1710 (cancel_single_step_breakpoints): Remove declarations.
1711 * gdbthread.h (struct thread_control_state)
1712 <single_step_breakpoints>: New field.
1713 (delete_single_step_breakpoints)
1714 (thread_has_single_step_breakpoints_set)
1715 (thread_has_single_step_breakpoint_here): New declarations.
1716 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1717 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1718 (singlestep_pc): Delete globals.
1719 (infrun_thread_ptid_changed): Remove references to removed
1721 (resume_cleanups): Delete the current thread's single-step
1723 (maybe_software_singlestep): Remove references to removed globals.
1724 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1725 delete_single_step_breakpoints.
1726 (init_wait_for_inferior): Remove references to removed globals.
1727 (delete_thread_infrun_breakpoints): Delete the thread's
1728 single-step breakpoints too.
1729 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1730 single-step breakpoints here.
1731 (delete_stopped_threads_single_step_breakpoints): New function.
1732 (adjust_pc_after_break): Adjust to use
1733 thread_has_single_step_breakpoints_set.
1734 (handle_inferior_event): Remove references to removed globals.
1735 Use delete_stopped_threads_single_step_breakpoints.
1736 (handle_signal_stop): Adjust to per-thread single-step
1737 breakpoints. Swap test order to do cheaper tests first.
1738 (switch_back_to_stepped_thread): Extend debug output. Remove
1739 references to removed globals.
1740 * record-full.c (record_full_wait_1): Adjust to per-thread
1741 single-step breakpoints.
1742 * thread.c (delete_single_step_breakpoints)
1743 (thread_has_single_step_breakpoints_set)
1744 (thread_has_single_step_breakpoint_here): New functions.
1745 (clear_thread_inferior_resources): Also delete the thread's
1746 single-step breakpoints.
1748 2014-10-15 Pedro Alves <palves@redhat.com>
1750 * thread.c (delete_thread_breakpoint): New function.
1751 (delete_step_resume_breakpoint)
1752 (delete_exception_resume_breakpoint): Use it.
1753 (delete_at_next_stop): New function.
1754 (clear_thread_inferior_resources): Use delete_at_next_stop.
1756 2014-10-15 Pedro Alves <palves@redhat.com>
1758 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1759 (breakpoint_inserted_here_p): ... here. Remove special case for
1760 software single-step breakpoints.
1761 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1762 (software_breakpoint_inserted_here_p): ... here. Remove special
1763 case for software single-step breakpoints.
1764 (bp_target_info_copy_insertion_state)
1765 (deprecated_insert_raw_breakpoint)
1766 (deprecated_remove_raw_breakpoint): Delete functions.
1767 * breakpoint.h (deprecated_insert_raw_breakpoint)
1768 (deprecated_remove_raw_breakpoint): Remove declarations.
1770 2014-10-15 Pedro Alves <palves@redhat.com>
1773 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1774 Delete array globals.
1775 (single_step_breakpoints): New global.
1776 (breakpoint_xfer_memory): Remove special handling for single-step
1778 (update_breakpoints_after_exec): Delete bp_single_step
1780 (detach_breakpoints): Remove special handling for single-step
1782 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1783 (bpstat_stop_status): Add comment.
1784 (bpstat_what, bptype_string, print_one_breakpoint_location)
1785 (adjust_breakpoint_address, init_bp_location): Handle
1787 (new_single_step_breakpoint): New function.
1788 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1789 handling for single-step breakpoints.
1790 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1791 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1793 (detach_single_step_breakpoints, find_single_step_breakpoint):
1795 (breakpoint_has_location_inserted_here): New function.
1796 (single_step_breakpoint_inserted_here_p): Rewrite.
1797 * breakpoint.h: Remove FIXME.
1798 (enum bptype) <bp_single_step>: New enum value.
1799 (insert_single_step_breakpoint): Update comment.
1800 * infrun.c (resume_cleanups)
1801 (delete_step_thread_step_resume_breakpoint): Remove single-step
1803 (fetch_inferior_event): Install a cleanup that removes infrun
1805 (switch_back_to_stepped_thread) <expect thread advanced also>:
1806 Clear step-over info.
1808 2014-10-15 Pedro Alves <palves@redhat.com>
1810 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1811 (delete_thread_infrun_breakpoints): New function, with parts
1812 salvaged from delete_step_resume_breakpoint_callback.
1813 (delete_step_thread_step_resume_breakpoint): Delete.
1814 (for_each_just_stopped_thread_callback_func): New typedef.
1815 (for_each_just_stopped_thread): New function.
1816 (delete_just_stopped_threads_infrun_breakpoints): New function.
1817 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1818 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1820 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1822 2014-10-15 Pedro Alves <palves@redhat.com>
1824 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1825 trying to step past a non-steppable watchpoint.
1826 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1828 * infrun.c (struct step_over_info): Add new field
1829 'nonsteppable_watchpoint_p' and adjust comments.
1830 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1832 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1833 (stepping_past_nonsteppable_watchpoint): New function.
1834 (step_over_info_valid_p): Also return true if stepping past a
1835 nonsteppable watchpoint.
1836 (proceed): Adjust call to set_step_over_info. Remove reference to
1838 (init_wait_for_inferior): Remove reference to init_infwait_state.
1839 (waiton_ptid): Delete global.
1840 (struct execution_control_state)
1841 <stepped_after_stopped_by_watchpoint>: Delete field.
1842 (wait_for_inferior, fetch_inferior_event): Always pass
1843 minus_one_ptid to target_wait.
1844 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1846 (init_infwait_state): Delete function.
1847 (handle_inferior_event): Remove infwait_state handling.
1848 (handle_signal_stop) <watchpoints handling>: Adjust after
1849 stepped_after_stopped_by_watchpoint removal. Don't remove
1850 breakpoints here nor set infwait_state. Set the thread's
1851 stepping_over_watchpoint flag, and call keep_going instead.
1852 (keep_going): Handle stepping_over_watchpoint. Adjust
1853 set_step_over_info calls.
1854 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1857 2014-10-15 Pedro Alves <palves@redhat.com>
1859 * infrun.c (step_over_info_valid_p): New function.
1860 (resume): Use step_over_info_valid_p instead of checking the
1861 threads's trap_expected flag.
1863 2014-10-15 Doug Evans <dje@google.com>
1864 Walfred Tedeschi <walfred.tedeschi@intel.com>
1867 * python/lib/gdb/__init__.py (packages): Add "printer".
1868 * python/lib/gdb/command/bound_registers.py: Moved to ...
1869 * python/lib/gdb/printer/bound_registers.py: ... here.
1870 Add printer to global set of builtin printers. Rename printer from
1871 "bound" to "mpx_bound128".
1872 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1873 registered as global "builtin" printer.
1874 (add_builtin_pretty_printer): New function.
1875 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1876 gdb/printer/__init__.py.
1878 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1880 * Makefile.in (SFILES): Remove d-support.c.
1881 (COMMON_OBS): Remove d-support.o.
1882 * d-lang.h (d_parse_symbol): Remove declaration.
1883 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1884 * d-support.c: Remove file.
1886 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1888 * gdb/infrun.c (process_event_stop_test): Apply
1889 gdbarch_addr_bits_remove to longjmp resume address.
1891 2014-10-15 Pedro Alves <palves@redhat.com>
1893 * regformats/microblaze.dat: Delete file.
1895 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1897 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1898 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1900 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1902 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1905 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1909 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1910 with qualified args.
1912 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1914 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1915 of the case where the second operand is a pointer.
1916 <BINOP_SUB>: Likewise.
1918 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1920 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1921 only if it is not NULL.
1922 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1923 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1924 (struct probe_ops) <clear_semaphore>: Likewise.
1925 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1927 (stop_tracing): Likewise, for clear_semaphore.
1929 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1931 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1932 using language_c, instead of current_language.
1934 2014-10-13 Doug Evans <dje@google.com>
1936 * python/py-objfile.c (objfpy_initialize): New function.
1937 (objfpy_new, objfile_to_objfile_object): Call it.
1938 * python/py-progspace.c (pspy_initialize): New function.
1939 (pspy_new, pspace_to_pspace_object): Call it.
1941 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1942 Jan Kratochvil <jan.kratochvil@redhat.com>
1944 Fix "save breakpoints" for "catch" command.
1945 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1948 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1950 Fix "save breakpoints" for "disable $bpnum" command.
1951 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1953 2014-10-10 Pedro Alves <palves@redhat.com>
1955 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1956 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1957 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1958 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1960 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1961 * configure.ac: Remove references to IRIX.
1962 * configure.host: Add *-*-irix* to the obsolete hosts section.
1963 Remove all other references to irix.
1964 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1967 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1969 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1970 isn't valid, release the tdesc arch data and return NULL.
1972 2014-10-10 Pedro Alves <palves@redhat.com>
1974 * linux-tdep.c: Include observer.h.
1975 (linux_inferior_data): New global.
1976 (struct linux_info): New structure.
1977 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1978 (get_linux_inferior_data): New functions.
1979 (linux_vsyscall_range): Rename to ...
1980 (linux_vsyscall_range_raw): ... this.
1981 (linux_vsyscall_range): New function; handles caching.
1982 (_initialize_linux_tdep): Register linux_inferior_data. Install
1983 inferior_exit and inferior_appeared observers.
1985 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Pedro Alves <palves@redhat.com>
1989 * solib-svr4.c (svr4_read_so_list): Rename to ...
1990 (svr4_current_sos_1): ... this and change the function comment.
1991 (svr4_current_sos): New function.
1993 2014-10-10 Pedro Alves <palves@redhat.com>
1995 * arch-utils.c (default_vsyscall_range): New function.
1996 * arch-utils.h (default_vsyscall_range): New declaration.
1997 * gdbarch.sh (vsyscall_range): New hook.
1998 * gdbarch.h, gdbarch.c: Regenerate.
1999 * linux-tdep.c (linux_vsyscall_range): New function.
2000 (linux_init_abi): Install linux_vsyscall_range as
2001 vsyscall_range gdbarch hook.
2002 * memrange.c (address_in_mem_range): New function.
2003 * memrange.h (address_in_mem_range): New declaration.
2004 * symfile-mem.c (find_vdso_size): Delete function.
2005 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2007 2014-10-10 Pedro Alves <palves@redhat.com>
2009 * infrun.c (normal_stop): Fix typo in comment.
2011 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2014 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2015 typo when using logical AND to determine instruction type.
2017 2014-10-09 Yao Qi <yao@codesourcery.com>
2019 * infrun.c (handle_signal_stop): Remove local variable
2022 2014-10-08 Stan Shebs <stan@codesourcery.com>
2024 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2026 2014-10-08 Gary Benson <gbenson@redhat.com>
2028 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2030 2014-10-08 Gary Benson <gbenson@redhat.com>
2032 * common/common-defs.h: Include common-exceptions.h.
2033 * exceptions.h: Do not include common-exceptions.h.
2035 2014-10-08 Gary Benson <gbenson@redhat.com>
2037 * common/common-defs.h: Include cleanups.h.
2038 * common/common-exceptions.c: Do not include cleanups.h.
2039 * utils.h: Likewise.
2041 2014-10-08 Gary Benson <gbenson@redhat.com>
2043 * ada-lang.c: Do not include exceptions.h.
2044 * ada-valprint.c: Likewise.
2045 * amd64-tdep.c: Likewise.
2046 * auto-load.c: Likewise.
2047 * block.c: Likewise.
2048 * break-catch-throw.c: Likewise.
2049 * breakpoint.c: Likewise.
2050 * btrace.c: Likewise.
2051 * c-lang.c: Likewise.
2052 * cli/cli-cmds.c: Likewise.
2053 * cli/cli-interp.c: Likewise.
2054 * cli/cli-script.c: Likewise.
2055 * completer.c: Likewise.
2056 * corefile.c: Likewise.
2057 * corelow.c: Likewise.
2058 * cp-abi.c: Likewise.
2059 * cp-support.c: Likewise.
2060 * cp-valprint.c: Likewise.
2061 * darwin-nat.c: Likewise.
2062 * dwarf2-frame-tailcall.c: Likewise.
2063 * dwarf2-frame.c: Likewise.
2064 * dwarf2loc.c: Likewise.
2065 * dwarf2read.c: Likewise.
2067 * event-loop.c: Likewise.
2068 * event-top.c: Likewise.
2069 * f-valprint.c: Likewise.
2070 * frame-unwind.c: Likewise.
2071 * frame.c: Likewise.
2072 * gdbtypes.c: Likewise.
2073 * gnu-v2-abi.c: Likewise.
2074 * gnu-v3-abi.c: Likewise.
2075 * guile/scm-auto-load.c: Likewise.
2076 * guile/scm-breakpoint.c: Likewise.
2077 * guile/scm-cmd.c: Likewise.
2078 * guile/scm-frame.c: Likewise.
2079 * guile/scm-lazy-string.c: Likewise.
2080 * guile/scm-param.c: Likewise.
2081 * guile/scm-symbol.c: Likewise.
2082 * guile/scm-type.c: Likewise.
2083 * hppa-hpux-tdep.c: Likewise.
2084 * i386-tdep.c: Likewise.
2085 * inf-loop.c: Likewise.
2086 * infcall.c: Likewise.
2087 * infcmd.c: Likewise.
2088 * infrun.c: Likewise.
2089 * interps.c: Likewise.
2090 * interps.h: Likewise.
2092 * linespec.c: Likewise.
2093 * linux-nat.c: Likewise.
2094 * linux-thread-db.c: Likewise.
2095 * m32r-rom.c: Likewise.
2097 * memory-map.c: Likewise.
2098 * mi/mi-cmd-break.c: Likewise.
2099 * mi/mi-cmd-stack.c: Likewise.
2100 * mi/mi-interp.c: Likewise.
2101 * mi/mi-main.c: Likewise.
2102 * monitor.c: Likewise.
2103 * nto-procfs.c: Likewise.
2104 * objc-lang.c: Likewise.
2105 * p-valprint.c: Likewise.
2106 * parse.c: Likewise.
2107 * ppc-linux-tdep.c: Likewise.
2108 * printcmd.c: Likewise.
2109 * probe.c: Likewise.
2110 * python/py-auto-load.c: Likewise.
2111 * python/py-breakpoint.c: Likewise.
2112 * python/py-cmd.c: Likewise.
2113 * python/py-finishbreakpoint.c: Likewise.
2114 * python/py-frame.c: Likewise.
2115 * python/py-framefilter.c: Likewise.
2116 * python/py-function.c: Likewise.
2117 * python/py-gdb-readline.c: Likewise.
2118 * python/py-inferior.c: Likewise.
2119 * python/py-infthread.c: Likewise.
2120 * python/py-lazy-string.c: Likewise.
2121 * python/py-linetable.c: Likewise.
2122 * python/py-param.c: Likewise.
2123 * python/py-prettyprint.c: Likewise.
2124 * python/py-symbol.c: Likewise.
2125 * python/py-type.c: Likewise.
2126 * python/py-value.c: Likewise.
2127 * python/python-internal.h: Likewise.
2128 * python/python.c: Likewise.
2129 * record-btrace.c: Likewise.
2130 * record-full.c: Likewise.
2131 * regcache.c: Likewise.
2132 * remote-fileio.c: Likewise.
2133 * remote-mips.c: Likewise.
2134 * remote.c: Likewise.
2135 * rs6000-aix-tdep.c: Likewise.
2136 * rs6000-nat.c: Likewise.
2138 * solib-darwin.c: Likewise.
2139 * solib-dsbt.c: Likewise.
2140 * solib-frv.c: Likewise.
2141 * solib-ia64-hpux.c: Likewise.
2142 * solib-spu.c: Likewise.
2143 * solib-svr4.c: Likewise.
2144 * solib.c: Likewise.
2145 * spu-tdep.c: Likewise.
2146 * stack.c: Likewise.
2147 * stap-probe.c: Likewise.
2148 * symfile-mem.c: Likewise.
2149 * symmisc.c: Likewise.
2150 * target.c: Likewise.
2151 * thread.c: Likewise.
2153 * tracepoint.c: Likewise.
2154 * tui/tui-interp.c: Likewise.
2155 * typeprint.c: Likewise.
2156 * utils.c: Likewise.
2157 * valarith.c: Likewise.
2158 * valops.c: Likewise.
2159 * valprint.c: Likewise.
2160 * value.c: Likewise.
2161 * varobj.c: Likewise.
2162 * windows-nat.c: Likewise.
2163 * xml-support.c: Likewise.
2165 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2167 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2169 (extended_mips16_next_pc): Update accordingly.
2171 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2173 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2175 (micromips_instruction_is_compact_branch): Likewise.
2176 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2177 or a compact jump, reaching a jump delay slot, or seeing a
2178 second non-prologue instruction.
2179 (micromips_scan_prologue): Also terminate scanning upon seeing a
2180 compact branch or jump, or reaching a branch or jump delay slot.
2181 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2182 or jump delay slot, or seeing a second non-prologue instruction.
2183 (mips32_instruction_has_delay_slot): Retain instruction
2184 examination code only, update arguments accordingly and move
2185 instruction fetch pieces to...
2186 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2187 (micromips_instruction_has_delay_slot): Likewise and to...
2188 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2189 (mips16_instruction_has_delay_slot): Likewise and to...
2190 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2191 (mips_single_step_through_delay): Update accordingly.
2192 (mips_adjust_breakpoint_address): Likewise.
2194 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2196 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2197 !mustbe32 also return 1 for 32-bit instructions.
2198 (mips16_instruction_has_delay_slot): Likewise. Add an
2199 explanatory comment.
2201 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2203 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2206 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2208 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2210 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2211 for the breakpoint's address. Don't preinitialize `placed_size'.
2212 (insert_bp_location): Set `reqstd_address' rather than
2214 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2215 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2217 (bkpt_remove_location): Likewise.
2218 (deprecated_insert_raw_breakpoint): Likewise.
2219 (deprecated_remove_raw_breakpoint): Likewise.
2220 (find_single_step_breakpoint): Likewise.
2221 * mem-break.c (default_memory_insert_breakpoint): Use
2222 `reqstd_address' for the breakpoint's address. Don't set
2223 `placed_address' or `placed_size' if breakpoint contents couldn't
2224 have been determined.
2225 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2226 the breakpoint's address.
2227 (remote_insert_hw_breakpoint): Likewise. Don't set
2228 `placed_address' or `placed_size' if breakpoint couldn't have been
2230 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2231 `reqstd_address' for the breakpoint's address.
2232 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2233 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2234 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2235 * microblaze-linux-tdep.c
2236 (microblaze_linux_memory_remove_breakpoint): Likewise.
2237 * monitor.c (monitor_insert_breakpoint): Likewise.
2238 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2239 (procfs_insert_hw_breakpoint): Likewise.
2240 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2241 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2242 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2243 * remote-mips.c (mips_insert_breakpoint): Likewise.
2244 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2246 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2248 * valops.c (value_assign): Check for bit field assignments
2249 before calling architecture-specific register value
2250 conversion functions.
2252 2014-10-03 Pierre Muller <muller@sourceware.org>
2254 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2256 2014-10-02 Pedro Alves <palves@redhat.com>
2258 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2259 threads_are_executing.
2260 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2262 * gdbthread.h (threads_are_executing): Declare.
2263 (handle_signal_stop) <random signals>: Don't print about the
2264 signal here if stopping.
2265 (end_stepping_range): Don't notify observers here.
2266 (normal_stop): Update the thread list. If stopped by a random
2267 signal or a stepping range ended, notify observers.
2268 * thread.c (threads_executing): New global.
2269 (init_thread_list): Clear 'threads_executing'.
2270 (set_executing): Set or clear 'threads_executing'.
2271 (threads_are_executing): New function.
2272 (update_threads_executing): New function.
2273 (update_thread_list): Use it.
2275 2014-10-02 Pedro Alves <palves@redhat.com>
2277 PR breakpoints/17431
2278 * breakpoint.c (update_breakpoints_after_exec): Don't create
2279 overlay, longjmp, std terminate nor exception breakpoints here.
2281 2014-10-02 Pedro Alves <palves@redhat.com>
2283 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2285 * inferior.c (find_inferior_for_program_space): Give preference to
2286 the current inferior.
2287 * inferior.h (find_inferior_for_program_space): Update comment.
2288 * progspace.c (switch_to_program_space_and_thread): Prefer the
2289 current inferior if it's bound to the program space requested. If
2290 the inferior found doesn't have a PID yet, don't bother looking up
2292 * progspace.h (switch_to_program_space_and_thread): Adjust
2294 * thread.c (any_thread_of_process, any_live_thread_of_process):
2295 Give preference to the current thread.
2297 2014-10-01 Pedro Alves <palves@redhat.com>
2299 * breakpoint.c (insert_bp_location): Error out if inserting a
2300 software breakpoint at a read-only address.
2301 * target.c (memory_xfer_check_region): New function, factored out
2303 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2305 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2306 against the memory region attributes.
2308 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2310 * NEWS: Announce new exit-code field in -list-thread-groups
2312 * inferior.c (exit_inferior_1): Don't clear exit code.
2313 (inferior_appeared): Clear exit code.
2314 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2317 2014-10-01 Pedro Alves <palves@redhat.com>
2319 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2320 GENERATED" along with emacs/vi read-only markers.
2321 * regformats/aarch64.dat: Regenerate.
2322 * regformats/arm-with-iwmmxt.dat: Regenerate.
2323 * regformats/arm-with-neon.dat: Regenerate.
2324 * regformats/arm-with-vfpv2.dat: Regenerate.
2325 * regformats/arm-with-vfpv3.dat: Regenerate.
2326 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2327 * regformats/i386/amd64-avx.dat: Regenerate.
2328 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2329 * regformats/i386/amd64-avx512.dat: Regenerate.
2330 * regformats/i386/amd64-linux.dat: Regenerate.
2331 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2332 * regformats/i386/amd64-mpx.dat: Regenerate.
2333 * regformats/i386/amd64.dat: Regenerate.
2334 * regformats/i386/i386-avx-linux.dat: Regenerate.
2335 * regformats/i386/i386-avx.dat: Regenerate.
2336 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2337 * regformats/i386/i386-avx512.dat: Regenerate.
2338 * regformats/i386/i386-linux.dat: Regenerate.
2339 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2340 * regformats/i386/i386-mmx.dat: Regenerate.
2341 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2342 * regformats/i386/i386-mpx.dat: Regenerate.
2343 * regformats/i386/i386.dat: Regenerate.
2344 * regformats/i386/x32-avx-linux.dat: Regenerate.
2345 * regformats/i386/x32-avx.dat: Regenerate.
2346 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2347 * regformats/i386/x32-avx512.dat: Regenerate.
2348 * regformats/i386/x32-linux.dat: Regenerate.
2349 * regformats/i386/x32.dat: Regenerate.
2350 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2351 * regformats/mips-dsp-linux.dat: Regenerate.
2352 * regformats/mips-linux.dat: Regenerate.
2353 * regformats/mips64-dsp-linux.dat: Regenerate.
2354 * regformats/mips64-linux.dat: Regenerate.
2355 * regformats/nios2-linux.dat: Regenerate.
2356 * regformats/rs6000/powerpc-32.dat: Regenerate.
2357 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2358 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2359 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2360 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2361 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2362 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2363 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2364 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2365 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2366 * regformats/s390-linux32.dat: Regenerate.
2367 * regformats/s390-linux32v1.dat: Regenerate.
2368 * regformats/s390-linux32v2.dat: Regenerate.
2369 * regformats/s390-linux64.dat: Regenerate.
2370 * regformats/s390-linux64v1.dat: Regenerate.
2371 * regformats/s390-linux64v2.dat: Regenerate.
2372 * regformats/s390-te-linux64.dat: Regenerate.
2373 * regformats/s390x-linux64.dat: Regenerate.
2374 * regformats/s390x-linux64v1.dat: Regenerate.
2375 * regformats/s390x-linux64v2.dat: Regenerate.
2376 * regformats/s390x-te-linux64.dat: Regenerate.
2377 * regformats/tic6x-c62x-linux.dat: Regenerate.
2378 * regformats/tic6x-c62x.dat: Regenerate.
2379 * regformats/tic6x-c64x-linux.dat: Regenerate.
2380 * regformats/tic6x-c64x.dat: Regenerate.
2381 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2382 * regformats/tic6x-c64xp.dat: Regenerate.
2384 2014-10-01 Pedro Alves <palves@redhat.com>
2386 * features/Makefile: Update comments.
2387 (XMLTOC): List all xml files we build C files from.
2388 (clean-cfiles): New rule.
2390 2014-10-01 Pedro Alves <palves@redhat.com>
2392 * features/i386/amd64-avx512-linux.c: Regenerate.
2393 * features/i386/amd64-avx512.c: Regenerate.
2394 * features/i386/x32-avx512-linux.c: Regenerate.
2395 * features/i386/x32-avx512.c: Regenerate.
2397 2014-10-01 Pedro Alves <palves@redhat.com>
2399 * features/Makefile (WHICH): Remove arm-with-m,
2400 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2402 2014-10-01 Pedro Alves <palves@redhat.com>
2404 * features/Makefile (clean): New rule.
2406 2014-10-01 Pedro Alves <palves@redhat.com>
2408 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2409 (zmm14h): Add missing end quotes.
2411 2014-10-01 Pedro Alves <palves@redhat.com>
2413 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2414 * features/aarch64.c: Regenerate.
2416 2014-09-30 Don Breazeal <donb@codesourcery.com>
2418 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2419 code so as to work with follow_fork_inferior.
2420 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2421 (inf_ttrace_create_inferior): Remove reference to
2422 inf_ttrace_vfork_ppid.
2423 (inf_ttrace_attach): Ditto.
2424 (inf_ttrace_detach): Ditto.
2425 (inf_ttrace_kill): Use current_inferior instead of
2426 inf_ttrace_vfork_ppid.
2427 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2428 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2429 inferior away from the parent.
2430 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2432 (follow_fork_inferior): New function.
2433 (follow_inferior_reset_breakpoints): Make function static.
2434 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2435 * linux-nat.c (linux_child_follow_fork): Move target-independent
2436 code to infrun.c:follow_fork_inferior.
2438 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2440 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2441 * gdbarch.c: Regenerate.
2442 * gdbarch.h: Likewise.
2443 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2444 gdbarch method 'regset_from_core_section'.
2445 (get_core_register_section): Remove handling for the case that
2446 regset == NULL and regset_from_core_section is defined.
2447 (get_core_registers): Drop check for deleted method.
2448 * procfs.c (procfs_do_thread_registers): Adjust comment.
2450 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2452 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2453 (linux_nat_make_corefile_notes): Remove.
2454 (linux_target_install_ops): Do not set target method
2455 'make_corefile_notes'.
2456 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2458 (linux_corefile_thread_callback): Instead of args->collect, call
2459 linux_collect_thread_registers.
2460 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2461 NULL unless there is a regset iterator.
2462 (linux_make_corefile_notes_1): Remove.
2463 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2464 by linux_make_corefile_notes.
2465 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2467 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2469 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2470 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2472 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2476 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2477 (xtensa_iterate_over_regset_sections): New.
2478 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482 * vax-tdep.c (vax_regset_from_core_section): Remove.
2483 (vax_iterate_over_regset_sections): New.
2484 (vax_gdbarch_init): Adjust gdbarch initialization.
2486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2488 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2489 (tilegx_regset_from_core_section): Remove.
2490 (tilegx_iterate_over_regset_sections): New.
2491 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2495 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2496 (sparc_iterate_over_regset_sections): New.
2497 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2498 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2500 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2501 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2502 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2503 target method 'make_corefile_notes'.
2505 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2507 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2508 'sizeof_gregset' and 'sizeof_fpregset'.
2509 * sh-tdep.c (sh_regset_from_core_section): Remove.
2510 (sh_iterate_over_regset_sections): New.
2511 (sh_gdbarch_init): Adjust gdbarch initialization.
2512 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2514 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2519 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2520 (score7_linux_iterate_over_regset_sections): New.
2521 (score_gdbarch_init): Adjust gdbarch initialization.
2523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2525 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2527 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2528 method 'make_corefile_notes'.
2529 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2530 (ppcfbsd_regset_from_core_section): Remove.
2531 (ppcfbsd_iterate_over_regset_sections): New.
2532 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2534 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2535 (ppcnbsd_iterate_over_regset_sections): New.
2536 (ppcnbsd_init_abi): Adjust.
2537 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2538 (ppcobsd_iterate_over_regset_sections): New.
2539 (ppcobsd_init_abi): Adjust.
2540 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2541 (rs6000_aix_iterate_over_regset_sections): New.
2542 (rs6000_aix_init_osabi): Adjust.
2544 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2546 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2547 (nios2_regset_from_core_section): Remove.
2548 (nios2_iterate_over_regset_sections): New.
2549 (nios2_linux_init_abi): Adjust gdbarch initialization.
2551 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2553 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2554 (am33_iterate_over_regset_sections): New.
2555 (am33_linux_init_osabi): Adjust gdbarch initialization.
2557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2559 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2560 (mips_linux_iterate_over_regset_sections): New.
2561 (mips_linux_init_abi): Adjust gdbarch initialization.
2562 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2563 (mips64obsd_iterate_over_regset_sections): New.
2564 (mips64obsd_init_abi): Adjust.
2565 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2566 (mipsnbsd_iterate_over_regset_sections): New.
2567 (mipsnbsd_init_abi): Adjust.
2569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2571 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2572 (m88k_iterate_over_regset_sections): New.
2573 (m88k_gdbarch_init): Adjust gdbarch initialization.
2575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2578 (ia64_linux_iterate_over_regset_sections): New.
2579 (ia64_linux_init_abi): Adjust gdbarch initialization.
2581 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2583 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2584 (m68kbsd_iterate_over_regset_sections): New.
2585 (m68kbsd_init_abi): Adjust gdbarch initialization.
2586 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2587 (m68k_linux_iterate_over_regset_sections): New.
2588 (m68k_linux_init_abi): Adjust gdbarch initialization.
2590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2592 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2593 (m32r_linux_regset_from_core_section): Remove.
2594 (m32r_linux_iterate_over_regset_sections): New.
2595 (m32r_linux_init_abi): Adjust gdbarch initialization.
2597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2599 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2600 (amd64obsd_iterate_over_regset_sections): New.
2601 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2602 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2604 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2605 regset_from_core_section initialization.
2606 * i386-tdep.c (i386_regset_from_core_section): Remove.
2607 (i386_iterate_over_regset_sections): New.
2608 (i386_gdbarch_init): Adjust gdbarch initialization.
2609 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2610 (i386_iterate_over_regset_sections): New prototype.
2611 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2613 (i386obsd_aout_iterate_over_regset_sections): New.
2614 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2615 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2617 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2618 (amd64fbsd_init_abi): Call fbsd_init_abi.
2619 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2620 (i386fbsd4_init_abi): Call fbsd_init_abi.
2621 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2622 target method 'make_corefile_notes'.
2623 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2625 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2627 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2628 (hppa_hpux_iterate_over_regset_sections): New.
2629 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2630 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2631 (hppa_linux_iterate_over_regset_sections): New.
2632 (hppa_linux_init_abi): Adjust.
2633 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2634 (hppanbsd_iterate_over_regset_sections): New.
2635 (hppanbsd_init_abi): Adjust.
2636 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2637 (hppaobsd_iterate_over_regset_sections): New.
2638 (hppaobsd_init_abi): Adjust.
2640 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2643 (frv_linux_iterate_over_regset_sections): New.
2644 (frv_linux_init_abi): Adjust gdbarch initialization.
2646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2649 (armbsd_iterate_over_regset_sections): New prototype.
2650 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2651 (armbsd_iterate_over_regset_sections): New.
2652 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2657 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2658 (alpha_linux_iterate_over_regset_sections): New.
2659 (alpha_linux_init_abi): Adjust gdbarch initialization.
2660 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2662 (alphanbsd_iterate_over_regset_sections): New prototype.
2664 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2666 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2668 (aarch64_linux_iterate_over_regset_sections): New.
2669 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2671 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2673 * fbsd-tdep.c: New file.
2674 * fbsd-tdep.h: New file.
2675 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2676 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2677 (ALLDEPFILES): Add fbsd-tdep.c.
2679 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2683 * gdbarch.h: Regenerate.
2684 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2686 (get_core_register_section): Add parameter 'regset' and use it, if
2687 set. Add parameter 'min_size' and verify the bfd section size
2689 (get_core_registers_cb): Add parameter 'regset' and pass it to
2690 get_core_register section. For the "standard" register sections
2691 ".reg" and ".reg2", set an appropriate default for human_name.
2692 (get_core_registers): Don't abort when the gdbarch has an iterator
2693 but no regset_from_core_section. Add NULL/0 for parameters
2694 'regset'/'min_size' in calls to get_core_register_section.
2695 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2696 'regset' and use it instead of calling the
2697 regset_from_core_section gdbarch method.
2698 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2699 * i386-tdep.c (i386_supply_xstateregset)
2700 (i386_collect_xstateregset, i386_xstateregset): Moved to
2702 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2704 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2705 core file support only if the regset iterator hasn't been set.
2706 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2707 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2708 Moved from i386-tdep.c and renamed to *_linux*.
2709 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2710 each callback invocation. Allow any .reg-xstate size when reading
2712 * amd64-tdep.c (amd64_supply_xstateregset)
2713 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2715 (amd64_regset_from_core_section): Remove.
2716 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2717 install an amd64-specific regset_from_core_section gdbarch method.
2718 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2719 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2720 Moved from amd64-tdep.c and renamed to *_linux*.
2721 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2722 to each callback invocation. Allow any .reg-xstate size when
2723 reading from a core file.
2724 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2725 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2726 each callback invocation.
2727 (arm_linux_init_abi): No longer set the regset_from_core_section
2729 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2730 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2731 each callback invocation.
2732 (ppc_linux_init_abi): No longer set the regset_from_core_section
2734 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2735 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2736 (s390_regset_from_core_section): Remove.
2737 (s390_iterate_over_regset_sections): Add regset parameter to each
2738 callback invocation.
2739 (s390_gdbarch_init): No longer set the regset_from_core_section
2740 gdbarch method. Drop initialization of deleted tdep fields.
2742 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2744 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2745 (amd64_linux_iterate_over_regset_sections): New.
2746 (amd64_linux_init_abi_common): Don't install the regset section
2747 list, but the new iterator in gdbarch.
2748 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2749 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2750 (arm_linux_iterate_over_regset_sections): ...here. New function.
2751 (arm_linux_init_abi): Set iterator instead of section list.
2752 * corelow.c (get_core_registers_cb): New function, logic moved
2754 (get_core_registers): ...loop body here. Use new iterator method
2755 instead of walking through the regset section list.
2756 * gdbarch.sh: Remove 'core_regset_sections'. New method
2757 'iterate_over_regset_sections'. New typedef
2758 'iterate_over_regset_sections_cb'.
2759 * gdbarch.c: Regenerate.
2760 * gdbarch.h: Likewise.
2761 * i386-linux-tdep.c (i386_linux_regset_sections)
2762 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2764 (i386_linux_iterate_over_regset_sections): New.
2765 (i386_linux_init_abi): Don't choose a regset section list, but
2766 install new iterator in gdbarch.
2767 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2768 (linux_collect_regset_section_cb): New function, logic moved
2770 (linux_collect_thread_registers): ...loop body here. Use iterator
2771 method instead of walking through list.
2772 (linux_make_corefile_notes_1): Check for presence of iterator
2773 method instead of regset section list.
2774 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2775 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2776 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2777 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2778 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2779 (ppc_linux_init_abi): Don't choose from above regset section
2780 lists, but install new iterator in gdbarch.
2781 * regset.h (struct core_regset_section): Remove.
2782 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2783 have_linux_v1, have_linux_v2, and have_tdb.
2784 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2785 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2786 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2787 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2788 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2789 (s390_iterate_over_regset_sections): ...here. New function. Use
2791 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2792 regset section lists, but install new iterator.
2794 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2796 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2798 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2800 * progspace.c (print_program_space): Don't prune program spaces
2801 before printing them.
2803 2014-09-25 Pedro Alves <palves@redhat.com>
2805 * infrun.c (user_visible_resume_ptid): Don't check
2806 singlestep_breakpoints_inserted_p.
2808 2014-09-25 Pedro Alves <palves@redhat.com>
2810 * breakpoint.c (should_be_inserted): Add debug output.
2812 2014-09-25 Pedro Alves <palves@redhat.com>
2814 * infrun.c (stepping_past_instruction_at)
2815 (clear_exit_convenience_vars): Point at infrun.h instead of
2817 (handle_signal_stop): Fix typo.
2819 2014-09-24 Yao Qi <yao@codesourcery.com>
2821 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2824 2014-09-22 Gary Benson <gbenson@redhat.com>
2826 * target.c (target_stop): Updated comment.
2828 2014-09-22 Gary Benson <gbenson@redhat.com>
2830 * target/target.h (target_stop_ptid): Renamed as...
2831 (target_stop_and_wait): New function. Updated comment.
2833 (target_continue_ptid): Renamed as...
2834 (target_continue_no_signal): New function. Updated comment.
2837 2014-09-22 Pedro Alves <palves@redhat.com>
2839 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2841 * breakpoint.c (enum ugll_insert_mode): New enum.
2842 (always_inserted_mode): Now a plain boolean.
2843 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2844 (breakpoints_always_inserted_mode): Delete.
2845 (breakpoints_should_be_inserted_now): New function.
2846 (insert_breakpoints): Pass UGLL_INSERT to
2847 update_global_location_list instead of calling
2848 insert_breakpoint_locations manually.
2849 (create_solib_event_breakpoint_1): New, factored out from ...
2850 (create_solib_event_breakpoint): ... this.
2851 (create_and_insert_solib_event_breakpoint): Use
2852 create_solib_event_breakpoint_1 instead of calling
2853 insert_breakpoint_locations manually.
2854 (update_global_location_list): Change parameter type from boolean
2855 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2856 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2857 (update_global_location_list_nothrow): Change parameter type from
2858 boolean to enum ugll_insert_mode.
2859 (_initialize_breakpoint): "breakpoint always-inserted" option is
2860 now a boolean command. Update help text.
2861 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2862 (breakpoints_should_be_inserted_now): New declaration.
2863 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2864 Remove breakpoints_always_inserted_mode check.
2865 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2866 * remote.c (remote_start_remote): Likewise.
2868 2014-09-22 Pedro Alves <palves@redhat.com>
2870 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2871 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2872 Instead, pass UGLL_INSERT to update_global_location_list.
2873 (update_global_location_list): Change parameter type from boolean
2874 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2875 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2876 (create_solib_event_breakpoint_1): New, factored out from ...
2877 (create_solib_event_breakpoint): ... this.
2878 (create_and_insert_solib_event_breakpoint): Use
2879 create_solib_event_breakpoint_1 instead of calling
2880 insert_breakpoint_locations manually.
2881 (update_global_location_list): Handle UGLL_INSERT.
2883 2014-09-22 Pedro Alves <palves@redhat.com>
2885 * breakpoint.c (enum ugll_insert_mode): New enum.
2886 (update_global_location_list)
2887 (update_global_location_list_nothrow): Change parameter type from
2888 boolean to enum ugll_insert_mode. All callers adjusted.
2890 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2892 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2893 SystemTap support in GDB.
2895 2014-09-19 Don Breazeal <donb@codesourcery.com>
2897 * linux-nat.c (linux_handle_extended_wait): Call
2898 linux_ptrace_get_extended_event.
2899 (wait_lwp): Call linux_is_extended_waitstatus.
2900 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2901 and linux_is_extended_waitstatus.
2902 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2903 linux_ptrace_get_extended_event.
2904 (linux_ptrace_get_extended_event): New function.
2905 (linux_is_extended_waitstatus): New function.
2906 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2907 (linux_is_extended_waitstatus): New declarations.
2909 2014-09-19 Yao Qi <yao@codesourcery.com>
2911 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2912 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2913 comments. Callers update.
2914 (dwarf_decode_lines): Likewise.
2915 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2916 comments. Skip the line table if 'lowpc' is greater than
2917 'address'. Don't check
2918 dwarf2_per_objfile->has_section_at_zero.
2920 2014-09-18 Doug Evans <dje@google.com>
2922 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2923 * python/py-symtab.c (stpy_get_producer): New function.
2924 (symtab_object_getset): Add "producer" attribute.
2926 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2929 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2930 (do_captured_read_memory_integer): Remove.
2931 (safe_read_memory_integer): Use target_read_memory directly instead
2932 of catching errors in do_captured_read_memory_integer.
2934 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2936 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2939 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2941 * objc-lang.c (find_implementation_from_class): Remove dead code.
2943 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2946 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2947 "fprintf_unfiltered (gdb_stdlog...)".
2949 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2951 PR breakpoints/12526
2952 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2954 * breakpoint.c (watch_command_1): Use these fields to retain
2955 bitfield information.
2956 (extract_bitfield_from_watchpoint_value): New function.
2957 (watchpoint_check): Use it.
2958 (update_watchpoint): Use it. Optimize the address and length of a
2959 HW watchpoint pointing to a bitfield.
2960 * value.h (unpack_value_bitfield): New prototype.
2961 * value.c (unpack_value_bitfield): Make extern.
2963 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2965 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2967 * gnu-nat.c (inf_threads): New function.
2968 * gnu-nat.h (inf_threads_ftype): New typedef.
2969 (inf_threads): New declaration.
2970 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2971 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2972 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2973 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2974 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2975 (i386_gnu_dr_get_control): New functions.
2976 (reg_addr): New structure.
2977 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2978 i386 debugging register hooks.
2979 * NEWS: Mention this.
2981 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2983 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2984 vector data transfer instructions.
2985 (arm_record_coproc_data_proc): Updated.
2987 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2989 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2990 arm_record_exreg_ld_st_insn.
2991 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2994 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2996 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2997 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2998 processing instructions.
3000 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3002 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3003 for advance SIMD struct ld/st insn.
3004 (thumb2_record_decode_insn_handler): Replace stub handler with
3005 thumb2_record_asimd_struct_ld_st.
3007 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3009 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3010 for asimd, vfp and coprocessor insns.
3011 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3012 and coprocessor insns.
3013 (thumb2_record_coproc_insn): New function.
3014 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3016 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3019 2014-09-13 Doug Evans <xdje42@gmail.com>
3021 * NEWS: Mention new "queue-signal" command.
3022 * infcmd.c (queue_signal_command): New function.
3023 (_initialize_infcmd): Add new queue-signal command.
3025 2014-09-13 Doug Evans <xdje42@gmail.com>
3027 * linux-nat.c (wait_lwp): Add debugging printf.
3028 (linux_nat_wait_1): Ditto.
3030 2014-09-12 Pedro Alves <palves@redhat.com>
3032 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3033 (create_and_insert_solib_event_breakpoint): New functions.
3034 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3035 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3036 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3037 (remove_dbx_link_breakpoint): Delete function.
3038 (insert_dbx_link_bpt_in_file): Use
3039 create_and_insert_solib_event_breakpoint instead of
3040 deprecated_insert_raw_breakpoint.
3041 (procfs_wait): Don't check whether we hit __dbx_link here.
3042 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3044 * solib-irix.c (base_breakpoint): Delete global.
3045 (disable_break): Delete function.
3046 (enable_break): Use create_solib_event_breakpoint
3047 instead of deprecated_insert_raw_breakpoint.
3048 (irix_solib_handle_event): New function.
3049 (irix_solib_create_inferior_hook): Don't run the target or disable
3050 the mapping-complete breakpoint here.
3051 (_initialize_irix_solib): Install irix_solib_handle_event as
3052 so_ops->handle_event hook.
3054 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3055 Ulrich Weigand <uweigand@de.ibm.com>
3058 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3059 instead of read_memory_unsigned_integer.
3061 2014-09-12 Gary Benson <gbenson@redhat.com>
3063 * nat/linux-waitpid.c: Include common-defs.h.
3064 [GDBSERVER]: Add FIXME comment.
3065 [!GDBSERVER]: Don't include defs.h or signal.h.
3066 (linux_debug) [!GDBSERVER]: Remove empty block.
3068 2014-09-12 Gary Benson <gbenson@redhat.com>
3070 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3071 Don't include defs.h or server.h.
3073 2014-09-12 Gary Benson <gbenson@redhat.com>
3075 * nat/linux-btrace.c: Include common-defs.h.
3076 Don't include defs.h, server.h or gdbthread.h.
3077 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3079 2014-09-12 Gary Benson <gbenson@redhat.com>
3081 * common/agent.c: Include common-defs.h.
3082 Don't include defs.h or server.h.
3083 * common/buffer.c: Likewise.
3084 * common/common-debug.c: Likewise.
3085 * common/common-utils.c: Likewise.
3086 * common/errors.c: Likewise.
3087 * common/filestuff.c: Likewise.
3088 * common/format.c: Likewise.
3089 * common/gdb_vecs.c: Likewise.
3090 * common/print-utils.c: Likewise.
3091 * common/ptid.c: Likewise.
3092 * common/rsp-low.c: Likewise.
3093 * common/signals.c: Likewise.
3094 * common/vec.c: Likewise.
3095 * common/xml-utils.c: Likewise.
3096 * nat/linux-osdata.c: Likewise.
3097 * nat/linux-procfs.c: Likewise.
3098 * nat/linux-ptrace.c: Likewise.
3099 * nat/mips-linux-watch.c: Likewise.
3100 * target/waitstatus.c: Likewise.
3102 2014-09-12 Tom Tromey <tromey@redhat.com>
3103 Gary Benson <gbenson@redhat.com>
3105 * common/common-regcache.h: New file.
3106 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3107 * regcache.h: Include common-regcache.h.
3108 (regcache_read_pc): Don't declare.
3109 * regcache.c (get_thread_regcache_for_ptid): New function.
3110 * nat/linux-btrace.c: Don't include regcache.h.
3111 Include common-regcache.h.
3112 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3114 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3116 * regcache.h (struct regset): Declare.
3118 2014-09-11 Pedro Alves <palves@redhat.com>
3121 * main.c: Include "infrun.h".
3122 (catch_command_errors, catch_command_errors_const): Wait for the
3123 foreground command to complete.
3124 * top.c (maybe_wait_sync_command_done): New function, factored out
3126 (maybe_wait_sync_command_done): ... here.
3127 * top.h (maybe_wait_sync_command_done): New declaration.
3129 2014-09-11 Tom Tromey <tromey@redhat.com>
3130 Gary Benson <gbenson@redhat.com>
3132 * common/symbol.h: New file.
3133 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3134 * minsyms.c (find_minimal_symbol_address): New function.
3135 * common/agent.c: Include common/symbol.h.
3136 [!GDBSERVER]: Don't include objfiles.h.
3137 (agent_look_up_symbols): Use find_minimal_symbol_address.
3139 2014-09-11 Gary Benson <gbenson@redhat.com>
3141 * target/target.h (target_stop_ptid, target_continue_ptid):
3143 * target.c (target_stop_ptid, target_continue_ptid): New
3145 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3146 (agent_run_command): Always use target_stop_ptid and
3147 target_continue_ptid.
3149 2014-09-11 Tom Tromey <tromey@redhat.com>
3150 Gary Benson <gbenson@redhat.com>
3152 * target/target.h: New file.
3153 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3154 * target.h: Include target/target.h.
3155 (target_read_memory, target_write_memory): Don't declare.
3156 * target.c (target_read_uint32): New function.
3157 * common/agent.c: Include target/target.h.
3158 [!GDBSERVER]: Don't include target.h.
3159 (helper_thread_id): Type changed to uint32_t.
3160 (agent_get_helper_thread_id): Use target_read_uint32.
3161 (agent_run_command): Always use target_read_memory and
3162 target_write_memory.
3163 (agent_capability): Type changed to uint32_t.
3164 (agent_capability_check): Use target_read_uint32.
3166 2014-09-11 Gary Benson <gbenson@redhat.com>
3168 * common/common-debug.h (show_debug_regs): Declare.
3169 * common/common-debug.c (show_debug_regs): Define.
3170 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3171 all uses with show_debug_regs. Replace all uses that considered
3172 debug_hw_points as a multi-value integer with straight boolean
3174 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3175 with show_debug_regs.
3176 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3177 all uses with show_debug_regs.
3178 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3179 uses with show_debug_regs.
3181 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3183 * findvar.c (address_from_register): Handle targets requiring
3184 a special conversion routine even for plain pointer types.
3186 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3188 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3189 (store_register): Do not call exec_one_dummy_insn.
3191 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3193 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3194 dereference it first. Use value_enclosing_type instead of
3196 (ada_array_length): Likewise.
3198 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3200 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3201 Adjust function implementation and documentation accordingly.
3202 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3203 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3204 Update call to ada_value_ptr_subscript.
3206 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3208 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3209 instead of VAL's type.
3211 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3213 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3215 2014-09-09 Doug Evans <xdje42@gmail.com>
3218 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3219 last parameter to pkg-config, not first.
3220 * configure.ac: Pass --with-guile provided pkg-config path to
3221 GDB_GUILE_PROGRAM_NAMES.
3222 * configure: Regenerate.
3224 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3226 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3229 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3231 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3232 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3233 the list of sections determining GDB_OSABI_IRIX.
3235 2014-09-09 James Hogan <james.hogan@imgtec.com>
3237 * MAINTAINERS (Write After Approval): Add "James Hogan".
3239 2014-09-09 James Hogan <james.hogan@imgtec.com>
3241 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3243 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3245 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3247 2014-09-08 Doug Evans <xdje42@gmail.com>
3250 * guile.c: #include <signal.h>.
3251 (_initialize_guile): Block SIGCHLD while initializing Guile.
3253 Replaces the following, which is reverted.
3255 2014-07-26 Doug Evans <xdje42@gmail.com>
3258 * configure.ac: Add check for header gc/gc.h.
3259 Add check for function setenv.
3260 * configure: Regenerate.
3261 * config.in: Regenerate.
3262 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3264 2014-09-08 Doug Evans <xdje42@gmail.com>
3266 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3267 with named constant. Fix style of pointer comparison.
3268 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3270 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3273 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3274 decide whether we display the command on "show user".
3275 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3276 printing command name.
3277 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3278 * cli/cli-decode.c (cli_user_command_p): Create helper function
3279 to verify whether cmd_list_element is a user-defined command.
3281 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3284 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3285 Fix goto out of TRY_CATCH.
3287 2014-09-06 Doug Evans <xdje42@gmail.com>
3288 Tom Tromey <tromey@redhat.com>
3291 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3292 $_any_caller_matches.
3293 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3294 * python/lib/gdb/function/caller_is.py: New file.
3296 2014-09-06 Doug Evans <xdje42@gmail.com>
3298 * infcmd.c (program_info): Fix typo.
3300 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3303 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3304 'number'. New variable 'has_digit'. Rewrite code to deal with
3305 subexpressions on SDT probes.
3307 2014-09-04 Pedro Alves <palves@redhat.com>
3309 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3310 the input is only one character long.
3312 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3315 * f-valprint.c (f_val_print): Specify the correct print option to
3316 use when printing integer values.
3318 2014-09-04 Gary Benson <gbenson@redhat.com>
3320 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3321 Remove code to cope with LWPs wrapped as PIDs.
3322 Add assertions to ensure no wrapped LWPs are passed.
3324 2014-09-04 Pedro Alves <palves@redhat.com>
3326 * value.c (value_ranges_copy_adjusted): New function, factored out
3328 (value_contents_copy_raw): ... here.
3329 (unpack_value_bits_as_long_1): Rename back to ...
3330 (unpack_bits_as_long): ... this. Remove 'original_value' and
3331 'result' parameters. Change return type to LONGEST.
3332 (unpack_value_bits_as_long): Delete.
3333 (unpack_value_field_as_long_1): Delete.
3334 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3335 (unpack_value_bitfield): New function.
3336 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3337 (value_fetch_lazy): Use unpack_value_bitfield.
3338 * value.h (unpack_value_bits_as_long): Delete declaration.
3340 2014-09-03 Sasha Smundak <asmundak@google.com>
3342 * python/py-frame.c (frapy_read_register): New function.
3344 2014-09-03 James Hogan <james.hogan@imgtec.com>
3346 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3347 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3349 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3352 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3354 (add_cmd): Set "completer_handle_brkchars" to NULL.
3355 * cli/cli-decode.h (struct cmd_list_element)
3356 <completer_handle_brkchars>: New field.
3357 * command.h (completer_ftype_void): New typedef.
3358 (set_cmd_completer_handle_brkchars): New prototype.
3359 * completer.c (set_gdb_completion_word_break_characters): New
3361 (complete_line_internal): Call "completer_handle_brkchars"
3362 callback from command.
3363 * completer.h: Include "command.h".
3364 (set_gdb_completion_word_break_characters): New prototype.
3365 * python/py-cmd.c (cmdpy_completer_helper): New function.
3366 (cmdpy_completer_handle_brkchars): New function.
3367 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3368 (cmdpy_init): Set completer_handle_brkchars to
3369 cmdpy_completer_handle_brkchars.
3371 2014-09-03 Gary Benson <gbenson@redhat.com>
3373 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3374 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3375 Loop conditions changed to equivalent form.
3376 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3377 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3378 ALL_DEBUG_ADDRESS_REGISTERS.
3380 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3382 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3385 2014-09-02 Doug Evans <dje@google.com>
3387 * typeprint.c (find_global_typedef): Fix comment.
3389 2014-09-02 Gary Benson <gbenson@redhat.com>
3391 * i386-nat.h: Renamed as...
3392 * x86-nat.h: New file. All type, function and variable name
3393 prefixes changed from "i386_" to "x86_". All references updated.
3394 * i386-nat.c: Renamed as...
3395 * x86-nat.c: New file. All type, function and variable name
3396 prefixes changed from "i386_" to "x86_". All references updated.
3397 * common/i386-xstate.h: Renamed as...
3398 * common/x86-xstate.h: New file. All type, function and variable
3399 name prefixes changed from "i386_" to "x86_". All references
3401 * nat/i386-cpuid.h: Renamed as...
3402 * nat/x86-cpuid.h: New file. All type, function and variable name
3403 prefixes changed from "i386_" to "x86_". All references updated.
3404 * nat/i386-gcc-cpuid.h: Renamed as...
3405 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3406 name prefixes changed from "i386_" to "x86_". All references
3408 * nat/i386-dregs.h: Renamed as...
3409 * nat/x86-dregs.h: New file. All type, function and variable name
3410 prefixes changed from "i386_" to "x86_". All references updated.
3411 * nat/i386-dregs.c: Renamed as...
3412 * nat/x86-dregs.c: New file. All type, function and variable name
3413 prefixes changed from "i386_" to "x86_". All references updated.
3415 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3417 * varobj.c (_initialize_varobj): Move to the end of file.
3419 2014-08-29 Gary Benson <gbenson@redhat.com>
3421 * common/common-exceptions.h: New file.
3422 * common/common-exceptions.c: Likewise.
3423 * Makefile.in (SFILES): Add common/common-exceptions.c.
3424 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3425 (COMMON_OBS): Add common-exceptions.o.
3426 (common-exceptions.o): New rule.
3427 * exceptions.h (common-exceptions.h): Include.
3428 (gdb_setjmp.h): Do not include.
3429 (return_reason): Moved to common-exceptions.h.
3430 (enum return_reason): Likewise.
3431 (RETURN_MASK): Likewise.
3432 (typedef return_mask): Likewise.
3433 (enum errors): Likewise.
3434 (struct gdb_exception): Likewise.
3435 (exceptions_state_mc_init): Likewise.
3436 (exceptions_state_mc_action_iter): Likewise.
3437 (exceptions_state_mc_action_iter_1): Likewise.
3438 (TRY_CATCH): Likewise.
3439 (throw_exception): Likewise.
3440 (throw_verror): Likewise.
3441 (throw_vquit): Likewise.
3442 (throw_error): Likewise.
3443 (throw_quit): Likewise.
3444 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3445 (enum catcher_action): Likewise.
3446 (struct catcher): Likewise.
3447 (current_catcher): Likewise.
3448 (catcher_list_size): Likewise.
3449 (exceptions_state_mc_init): Likewise.
3450 (catcher_pop): Likewise.
3451 (exceptions_state_mc): Likewise.
3452 (exceptions_state_mc_action_iter): Likewise.
3453 (exceptions_state_mc_action_iter_1): Likewise.
3454 (throw_exception): Likewise.
3455 (exception_messages): Likewise.
3456 (exception_messages_size): Likewise.
3457 (throw_it): Likewise.
3458 (throw_verror): Likewise.
3459 (throw_vquit): Likewise.
3460 (throw_error): Likewise.
3461 (throw_quit): Likewise.
3462 (prepare_to_throw_exception): New function.
3464 2014-08-29 Gary Benson <gbenson@redhat.com>
3466 * common/gdb_setjmp.h: New file.
3467 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3468 * configure.ac: Move sigsetjmp check...
3469 * common/common.m4: ...here.
3470 * configure: Regenerate.
3471 * cp-support.c (SIGJMP_BUF): Delete.
3472 (SIGSETJMP): Likewise.
3473 (SIGLONGJMP): Likewise.
3474 * exceptions.h (gdb_setjmp.h): Include.
3475 (setjmp.h): Do not include.
3476 (EXCEPTIONS_SIGJMP_BUF): Delete.
3477 (EXCEPTIONS_SIGSETJMP): Likewise.
3478 (EXCEPTIONS_SIGLONGJMP): Likewise.
3479 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3481 * exceptions.c: Likewise.
3483 2014-08-29 Gary Benson <gbenson@redhat.com>
3485 * cleanups.h: Moved to...
3486 * common/cleanups.h: New file.
3487 * cleanups.c: Moved to...
3488 * common/cleanups.c: New file. Include common-defs.h and
3489 cleanups.h. Do not include defs.h.
3490 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3491 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3492 (cleanups.o): New rule.
3494 2014-08-29 Gary Benson <gbenson@redhat.com>
3496 * common/errors.h (internal_warning): New declaration.
3497 (internal_vwarning): Likewise.
3498 * common/errors.c (internal_warning): New function.
3499 * utils.h (internal_warning): Don't declare.
3500 (internal_vwarning): Likewise.
3501 * utils.c (internal_warning): Removed.
3503 2014-08-29 Gary Benson <gbenson@redhat.com>
3505 * main.c (captured_main): Use warning during startup.
3506 Prefix startup warning messages with command name.
3508 2014-08-29 Gary Benson <gbenson@redhat.com>
3510 * main.c (captured_main): Handle usage errors with error.
3512 2014-08-29 Gary Benson <gbenson@redhat.com>
3514 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3515 exit pair with a call to error. Wrap the message with _().
3517 2014-08-29 Gary Benson <gbenson@redhat.com>
3519 * main.c (captured_main): Replace a fprintf/exit
3520 pair with a call to error. Wrap the message with _().
3522 2014-08-29 Gary Benson <gbenson@redhat.com>
3524 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3525 pairs with calls to error. Wrap the message with _().
3527 2014-08-29 Gary Benson <gbenson@redhat.com>
3529 * utils.c (vwarning): Protect calls to target_terminal_ours
3532 2014-08-29 Gary Benson <gbenson@redhat.com>
3534 * exceptions.c (print_flush): Protect calls to
3535 target_terminal_ours and wrap_here.
3537 2014-08-29 Gary Benson <gbenson@redhat.com>
3539 * utils.h (filtered_printing_initialized): New declaration.
3540 * utils.c (abort_with_message): New function.
3541 (internal_vproblem): Use abort_with_message for first level
3542 recursive internal problems, and if gdb_stderr is not set up.
3543 Protect calls to target_terminal_ours, begin_line and query.
3545 2014-08-28 Doug Evans <dje@google.com>
3547 * symtab.c (in_prologue): Move definition to better spot.
3548 (skip_prologue_using_sal): Ditto.
3550 2014-08-28 Doug Evans <dje@google.com>
3552 * symtab.c (find_function_start_sal): Move definition to better spot.
3554 2014-08-28 Yao Qi <yao@codesourcery.com>
3556 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3557 found_stack_adjust in forward scan. Remove condition check
3558 on found_stack_adjust which is always true. Indent the code.
3560 2014-08-28 Yao Qi <yao@codesourcery.com>
3562 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3563 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3564 (dwarf_decode_lines): Remove argument
3565 want_line_info. Remove condition check on want_line_info.
3568 2014-08-27 Doug Evans <dje@google.com>
3570 * dwarf2read.c (dwarf_record_line): Fix typo.
3572 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3574 * target.h (struct target_ops::to_terminal_save_ours): Remove
3576 (target_terminal_save_ours): Remove macro.
3577 * target-delegates.c: Regenerate.
3578 * inf-child.c (inf_child_target): Don't set the nonexistent
3579 field to_terminal_save_ours.
3580 * inferior.h (child_terminal_save_ours): Remove declaration.
3581 * terminal.h (gdb_save_tty_state): New declaration.
3582 * inflow.c (child_terminal_save_ours): Rename to ...
3583 (gdb_save_tty_state): ... this.
3584 * tui/tui.c: Include terminal.h.
3585 (tui_enable): Use gdb_save_tty_state instead of
3586 target_terminal_save_ours.
3587 (tui_disable): Likewise.
3589 2014-08-25 Doug Evans <dje@google.com>
3591 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3592 Pass NULL instead of 0 for context pointer.
3594 2014-08-25 Yao Qi <yao@codesourcery.com>
3596 * dwarf2read.c: Fix grammatical error.
3598 2014-08-24 Yao Qi <yao@codesourcery.com>
3600 * dwarf2read.c (scan_partial_symbols): Update comments.
3601 Rename argument 'need_pc' with 'set_addrmap'.
3602 (add_partial_namespace): Rename argument 'need_pc' with
3604 (add_partial_module): Likewise.
3605 (add_partial_subprogram): Likewise. Update comments.
3606 (dwarf2_name): Fix typo.
3608 2014-08-22 Doug Evans <dje@google.com>
3611 * dwarf2read.c (dwarf_record_line_p): New function.
3612 (dwarf_decode_lines_1): Ignore subsequent line number entries
3613 for the same line if any entry had a non-zero discriminator.
3615 2014-08-22 Doug Evans <dje@google.com>
3617 * buildsym.h (record_line_ftype): New typedef.
3618 (record_line): Use it.
3619 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3620 (dwarf_decode_lines_1): Call them.
3622 2014-08-22 Yao Qi <yao@codesourcery.com>
3624 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3625 (ctf_end): Remove code.
3627 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3629 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3630 (linux_make_corefile_notes): call update_thread_list, protected against
3633 2014-08-21 Pedro Alves <palves@redhat.com>
3635 * infcmd.c (attach_command): Remove comment.
3637 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3639 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3640 unsigned LONGEST to ULONGEST.
3642 2014-08-20 Pedro Alves <palves@redhat.com>
3644 * Makefile.in (check-read1): New rule.
3646 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3648 * value.c (value_from_contents_and_address): Strip resolved_type's
3649 typedef layers before checking its TYPE_DATA_LOCATION.
3651 2014-08-20 Pedro Alves <palves@redhat.com>
3653 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3655 2014-08-20 Yao Qi <yao@codesourcery.com>
3657 * amd64-tdep.c (amd64_classify): Add a blank line after the
3658 example. Move "*/" to a new line.
3659 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3660 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3661 * dwarf2read.c (psymtab_include_file_name): Likewise.
3663 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3664 Pedro Alves <palves@redhat.com>
3668 * ada-lang.c (coerce_unspec_val_to_type): Use
3669 value_contents_copy_raw.
3670 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3671 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3672 * cp-valprint.c (cp_print_value_fields): Let the common printing
3673 code handle optimized out values.
3674 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3675 * d-valprint.c (dynamic_array_type): Use
3676 value_bits_any_optimized_out.
3677 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3678 check_any_valid fields.
3679 (check_pieced_value_bits): Delete and inline ...
3680 (check_pieced_synthetic_pointer): ... here.
3681 (check_pieced_value_validity): Delete.
3682 (check_pieced_value_invalid): Delete.
3683 (pieced_value_funcs): Remove check_validity and check_any_valid
3685 (read_pieced_value): Use mark_value_bits_optimized_out.
3686 (write_pieced_value): Switch to use
3687 mark_value_bytes_optimized_out.
3688 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3689 of assuming the whole value is optimized out.
3690 * findvar.c (read_frame_register_value): Remove special handling
3691 of optimized out registers.
3692 (value_from_register): Use mark_value_bytes_optimized_out.
3693 * frame-unwind.c (frame_unwind_got_optimized): Use
3694 mark_value_bytes_optimized_out.
3695 * jv-valprint.c (java_value_print): Adjust.
3696 (java_print_value_fields): Let the common printing code handle
3697 optimized out values.
3698 * mips-tdep.c (mips_print_register): Remove special handling of
3699 optimized out registers.
3700 * opencl-lang.c (lval_func_check_validity): Delete.
3701 (lval_func_check_any_valid): Delete.
3702 (opencl_value_funcs): Remove check_validity and check_any_valid
3704 * p-valprint.c (pascal_object_print_value_fields): Let the common
3705 printing code handle optimized out values.
3706 * stack.c (read_frame_arg): Remove special handling of optimized
3707 out values. Fetch both VAL and ENTRYVAL before comparing
3708 contents. Adjust to value_available_contents_eq rename.
3709 * valprint.c (valprint_check_validity)
3710 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3711 (val_print_array_elements): Adjust.
3712 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3713 (value_bits_any_optimized_out): New function.
3714 (value_entirely_covered_by_range_vector): New function, factored
3715 out from value_entirely_unavailable.
3716 (value_entirely_unavailable): Reimplement.
3717 (value_entirely_optimized_out): New function.
3718 (insert_into_bit_range_vector): New function, factored out from
3719 mark_value_bits_unavailable.
3720 (mark_value_bits_unavailable): Reimplement.
3721 (struct ranges_and_idx): New struct.
3722 (find_first_range_overlap_and_match): New function, factored out
3723 from value_available_contents_bits_eq.
3724 (value_available_contents_bits_eq): Rename to ...
3725 (value_contents_bits_eq): ... this. Check both unavailable
3726 contents and optimized out contents.
3727 (value_available_contents_eq): Rename to ...
3728 (value_contents_eq): ... this.
3729 (allocate_value_lazy): Remove reference to the old optimized_out
3731 (allocate_optimized_out_value): Use
3732 mark_value_bytes_optimized_out.
3733 (require_not_optimized_out): Adjust to check whether the
3734 optimized_out vec is empty.
3735 (ranges_copy_adjusted): New function, factored out from
3736 value_contents_copy_raw.
3737 (value_contents_copy_raw): Also copy the optimized out ranges.
3738 Assert the destination ranges aren't optimized out.
3739 (value_contents_copy): Update comment, remove call to
3740 require_not_optimized_out.
3741 (value_contents_equal): Adjust to check whether the optimized_out
3743 (set_value_optimized_out, value_optimized_out_const): Delete.
3744 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3746 (value_entirely_optimized_out, value_bits_valid): Delete.
3747 (value_copy): Take a VEC copy of the 'optimized_out' field.
3748 (value_primitive_field): Remove special handling of optimized out.
3749 (value_fetch_lazy): Assert that lazy values have no unavailable
3750 regions. Use value_bits_any_optimized_out. Remove some special
3751 handling for optimized out values.
3752 * value.h: Add intro comment about <optimized out> and
3754 (struct lval_funcs): Remove check_validity and check_any_valid
3756 (set_value_optimized_out, value_optimized_out_const): Remove.
3757 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3759 (value_bits_any_optimized_out): New declaration.
3760 (value_bits_valid): Delete declaration.
3761 (value_available_contents_eq): Rename to ...
3762 (value_contents_eq): ... this, and extend comments.
3764 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3766 Fix -fsanitize=address on unreadable inferior strings.
3767 * valprint.c (val_print_string): Fix access before BUFFER.
3769 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3771 * target.c (target_struct_size): Remove.
3772 (target_struct_allocsize): Remove.
3773 (DEFAULT_ALLOCSIZE): Remove.
3774 (target_ops_p): New typedef.
3775 (DEF_VEC_P (target_ops_p)): New vector type.
3776 (target_structs): Change type to VEC (target_ops_p).
3777 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3778 (find_default_run_target): Rewrite for loop following changes to
3781 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3783 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3784 Adjust code accordingly. Adjust function description comment.
3786 2014-08-19 Yao Qi <yao@codesourcery.com>
3788 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3791 2014-08-19 Alan Modra <amodra@gmail.com>
3793 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3794 * config.in: Regenerate.
3795 * configure: Regenerate.
3797 2014-08-19 Tom Tromey <tromey@redhat.com>
3798 Gary Benson <gbenson@redhat.com>
3800 * common/common-debug.h: New file.
3801 * common/common-debug.c: Likewise.
3802 * debug.c: Likewise.
3803 * Makefile.in (SFILES): Add common/common-debug.c.
3804 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3805 (COMMON_OBS): Add common-debug.o and debug.o.
3806 (common-debug.o): New rule.
3807 * common/common-defs.h: Include common-debug.h.
3808 * common/agent.c (debug_agent_printf): New function.
3809 (DEBUG_AGENT): Redefine.
3810 * nat/i386-dregs.c (debug_printf): Undefine.
3812 2014-08-19 Gary Benson <gbenson@redhat.com>
3814 * common/common-defs.h: Include print-utils.h.
3815 * utils.h: Do not include print-utils.h.
3817 2014-08-19 Tom Tromey <tromey@redhat.com>
3818 Gary Benson <gbenson@redhat.com>
3820 * common/common-types.h: New file.
3821 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3822 * common/common-defs.h: Include common-types.h.
3823 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3826 2014-08-19 Tom Tromey <tromey@redhat.com>
3827 Gary Benson <gbenson@redhat.com>
3829 * common/errors.h: New file.
3830 * common/errors.c: Likewise.
3831 * Makefile.in (SFILES): Add common/errors.c.
3832 (HFILES_NO_SRCDIR): Add common/errors.h.
3833 (COMMON_OBS): Add errors.o.
3834 (errors.o): New rule.
3835 * common/common-defs.h: Include errors.h.
3836 * utils.h (perror_with_name, error, verror, warning, vwarning):
3838 * common/common-utils.h: (malloc_failure, internal_error):
3841 2014-08-19 Gary Benson <gbenson@redhat.com>
3843 * utils.c (internal_vproblem): Always print the message.
3845 2014-08-18 Doug Evans <dje@google.com>
3847 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3849 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3851 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3852 Return 0 if TYPE is dynamic.
3853 (print_range): Add handling of dynamic ranges.
3855 2014-08-18 Keven Boell <keven.boell@intel.com>
3856 Joel Brobecker <brobecker@adacore.com>
3858 * gdbtypes.h (struct main_type): Add field "data_location".
3859 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3860 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3861 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3862 a dynamic data location.
3863 (resolve_dynamic_type): Add DW_AT_data_location handling.
3864 (copy_recursive, copy_type): Copy the data_location information
3866 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3867 * value.c (value_from_contents_and_address): Add
3868 DW_AT_data_location handling.
3870 2014-08-18 Keven Boell <keven.boell@intel.com>
3871 Joel Brobecker <brobecker@adacore.com>
3873 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3874 field "get_object_address".
3875 * dwarf2expr.c (execute_stack_op): Add handling for
3876 DW_OP_push_object_address.
3877 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3878 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3879 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3880 (dwarf_expr_get_obj_addr): New function.
3881 (dwarf_expr_ctx_funcs): Add get_object_address field.
3882 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3883 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3884 (dwarf2_evaluate_property): Add parameter "address". Use it.
3885 (needs_get_obj_addr): New function.
3886 (needs_frame_ctx_funcs): Add get_object_address field.
3887 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3888 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3889 (resolve_dynamic_array): Likewise.
3891 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3893 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3894 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3895 fixed value for records and unions for which some GNAT encodings
3898 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3901 rewrite to avoid "else if" and "else" constructs. Should be
3902 a no-op in practice.
3904 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3906 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3909 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3912 * eval.c: Update all calls to find_overload_match.
3913 * valarith.c: Likewise.
3914 (value_user_defined_cpp_op, value_user_defined_op): New
3915 argument NOSIDE. Update all callers.
3916 * valops.c (find_overload_match): New argument NOSIDE.
3917 * value.h (find_overload_match): Update signature.
3919 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3921 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3922 'items' methods instead of 'iteritems' method on dictionaries.
3924 2014-08-15 Doug Evans <dje@google.com>
3926 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3929 2014-08-15 Doug Evans <dje@google.com>
3931 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3933 2014-08-15 Doug Evans <dje@google.com>
3935 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3937 2014-08-15 Doug Evans <dje@google.com>
3939 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3942 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3944 * dcache.h: Include target.h, to avoid compile time warnings.
3946 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3948 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3949 frame_info" partial declaration.
3950 * gdbarch.h: Regenerate.
3952 2014-08-15 Yao Qi <yao@codesourcery.com>
3954 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3955 Add parameter 'decode_for_pst_p'. Callers update.
3957 2014-08-13 Yao Qi <yao@codesourcery.com>
3960 * configure.ac: Use local variable 'pos'.
3961 * configure: Regenerated.
3963 2014-08-11 Doug Evans <dje@google.com>
3965 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3966 message, it is redundant with "Reading symbols from ..." message.
3968 2014-08-10 Doug Evans <xdje42@gmail.com>
3970 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3972 2014-08-09 Yao Qi <yao@codesourcery.com>
3975 * remote.c (remote_xfer_partial): Remove dead code.
3977 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3979 * ia64-linux-tdep.c: Include "regset.h".
3980 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3981 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3982 (ia64_linux_supply_fpregset): New function.
3983 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3984 (ia64_linux_regset_from_core_section): New function.
3985 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3988 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3990 * m68klinux-tdep.c: Include "regset.h".
3991 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3992 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3993 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3994 (m68k_linux_regset_from_core_section): New function.
3995 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3998 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4000 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4001 function. Move logic to...
4002 (tilegx_linux_regmap): ... this new register map.
4003 (tilegx_linux_regset): Refer to register map, replace supply
4004 method by regcache_supply_regset, and add collect method.
4005 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4006 TILEGX_FIRST_EASY_REGNUM.
4008 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4010 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4011 that calls regcache_supply_regset and handles the EPC register
4012 separately. Move main logic to...
4013 (score7_linux_gregmap): ... this new register map.
4014 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4015 (score7_linux_gregset): Refer to register map. Add collect method.
4016 (score7_linux_regset_from_core_section): Replace
4017 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4018 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4019 (struct regset): Delete unused forward declaraction.
4020 (struct pt_regs): Delete structure definition.
4021 (elf_gregset_t): Delete typedef.
4023 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4025 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4026 (nios2_core_regset): Add collect method.
4028 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4030 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4031 platform-independent and don't write to read-only input buffer.
4032 (m32r_linux_collect_gregset): New function.
4033 (m32r_linux_gregset): Add collect method.
4035 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4037 * hppa-linux-tdep.c (greg_map): Rename to...
4038 (hppa_linux_gregmap): ... this. Also convert to
4039 regcache_map_entry format.
4040 (hppa_linux_supply_regset): Delete function.
4041 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4042 (hppa_linux_fpregmap): ... this new register map.
4043 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4044 register map, replace supply method by regcache_supply_regset, and
4045 add collect method regcache_collect_regset.
4047 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4049 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4050 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4051 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4052 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4053 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4054 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4055 (frv_linux_supply_gregset): Replace main logic by call to
4056 regcache_supply_regset, but keep clearing gr32-gr63.
4057 (frv_linux_supply_fpregset): Delete function.
4058 (frv_linux_gregset): Refer to appropriate register map and add
4059 regcache_collect_regset as the collect method.
4060 (frv_linux_fpregset): Likewise. Also exchange the supply method
4061 by regcache_supply_regset.
4063 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4065 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4066 by call to alpha_supply_int_regs.
4067 (alpha_linux_collect_gregset): New function.
4068 (alpha_linux_supply_fpregset): Replace logic by call to
4069 alpha_supply_fp_regs.
4070 (alpha_linux_collect_fpregset): New function.
4071 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4073 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4075 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4076 by call to regcache_collect_regset.
4077 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4078 instead of aarch64_linux_supply_gregset/_fpregset.
4079 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4080 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4081 header file instead.
4082 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4083 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4084 functions. Move logic to ...
4085 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4087 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4088 refer to new register maps, replace *_regset_from_core by
4089 regcache_supply_regset, and also use regcache_collect_regset.
4090 * aarch64-linux-tdep.h: Include "regset.h".
4091 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4093 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4094 macros, moved from C source file.
4095 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4096 variable declarations.
4098 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4100 * s390-linux-nat.c: Include "regset.h".
4101 (regmap_gregset): Delete macro.
4102 (s390_64_regmap_gregset): New register map for
4103 regcache_supply/_collect_regset.
4104 (s390_64_gregset): New regset.
4105 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4106 (regmap_fpregset): Delete macro.
4107 (s390_native_supply, s390_native_collect): Delete functions.
4108 (supply_gregset, fill_gregset): Replace s390-specific regmap
4109 handling by a call to regcache_supply/_collect_regset.
4110 (supply_fpregset, fill_fpregset): Call regcache_supply/
4111 _collect_regset instead of s390_native_supply/_collect.
4112 (fetch_regset, store_regset): Likewise. Also change the last
4113 parameter to a regset instead of a regmap.
4114 (s390_linux_fetch_inferior_registers)
4115 (390_linux_store_inferior_registers): Adjust last parameter in
4116 calls to fetch_regset and store_regset.
4117 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4118 (s390_gregmap): ... this. Also make static const and convert to
4119 regcache_map_entry format.
4120 (s390x_regmap_gregset): Delete.
4121 (s390_regmap_fpregset): Rename to...
4122 (s390_fpregmap): ... this. Make static const and convert to
4123 regcache_map_entry format.
4124 (s390_regmap_upper, s390_regmap_last_break)
4125 (s390x_regmap_last_break, s390_regmap_system_call)
4126 (s390_regmap_tdb): Likewise.
4127 (s390_supply_regset, s390_collect_regset): Remove functions.
4128 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4130 (s390_gregset, s390_fpregset, s390_upper_regset)
4131 (s390_last_break_regset, s390x_last_break_regset)
4132 (s390_system_call_regset, s390_tdb_regset): Make global and
4133 replace s390_supply/_collect_regset by regcache_supply/
4135 (s390x_gregset): Delete.
4136 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4137 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4138 (s390_regmap_fpregset, s390_regmap_last_break)
4139 (s390x_regmap_last_break, s390_regmap_system_call)
4140 (s390_regmap_tdb): Delete global variable declarations.
4141 (s390_gregset, s390_fpregset, s390_last_break_regset)
4142 (s390x_last_break_regset, s390_system_call_regset)
4143 (s390_tdb_regset): New global variable declarations.
4145 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4147 * regcache.c: Include "regset.h".
4148 (regcache_transfer_regset): New local function.
4149 (regcache_supply_regset, regcache_collect_regset): New functions.
4150 * regcache.h (struct regcache_map_entry): New structure.
4151 (REGCACHE_MAP_SKIP): New enum value.
4152 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4154 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4156 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4157 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4158 (ppc_linux_collect_gregset ): Likewise.
4159 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4160 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4161 (ppc_collect_vrregset): Likewise.
4162 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4165 2014-08-07 Yao Qi <yao@codesourcery.com>
4167 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4168 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4169 * remote.c (remote_read_bytes): Likewise.
4171 2014-08-07 Yao Qi <yao@codesourcery.com>
4173 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4175 2014-08-07 Yao Qi <yao@codesourcery.com>
4178 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4179 TARGET_XFER_OK instead of 0.
4181 2014-08-07 Gary Benson <gbenson@redhat.com>
4183 * common/common-defs.h: Include errno.h.
4184 * defs.h: Do not include errno.h.
4185 * ada-typeprint.c: Likewise.
4186 * c-typeprint.c: Likewise.
4187 * core-regset.c: Likewise.
4188 * corefile.c: Likewise.
4189 * corelow.c: Likewise.
4190 * event-loop.c: Likewise.
4191 * f-typeprint.c: Likewise.
4192 * gnu-nat.c: Likewise.
4193 * go32-nat.c: Likewise.
4194 * i386gnu-nat.c: Likewise.
4195 * m2-typeprint.c: Likewise.
4196 * nat/linux-btrace.c: Likewise.
4197 * p-typeprint.c: Likewise.
4198 * procfs.c: Likewise.
4199 * remote-sim.c: Likewise.
4200 * rs6000-nat.c: Likewise.
4201 * target.c: Likewise.
4202 * typeprint.c: Likewise.
4203 * ui-file.c: Likewise.
4204 * valops.c: Likewise.
4205 * valprint.c: Likewise.
4207 2014-08-07 Gary Benson <gbenson@redhat.com>
4209 * common/common-defs.h: Include string.h.
4210 * aarch64-tdep.c: Do not include string.h.
4211 * ada-exp.y: Likewise.
4212 * ada-lang.c: Likewise.
4213 * ada-lex.l: Likewise.
4214 * ada-typeprint.c: Likewise.
4215 * ada-valprint.c: Likewise.
4216 * aix-thread.c: Likewise.
4217 * alpha-linux-tdep.c: Likewise.
4218 * alpha-mdebug-tdep.c: Likewise.
4219 * alpha-nat.c: Likewise.
4220 * alpha-osf1-tdep.c: Likewise.
4221 * alpha-tdep.c: Likewise.
4222 * alphanbsd-tdep.c: Likewise.
4223 * amd64-dicos-tdep.c: Likewise.
4224 * amd64-linux-tdep.c: Likewise.
4225 * amd64-nat.c: Likewise.
4226 * amd64-sol2-tdep.c: Likewise.
4227 * amd64fbsd-tdep.c: Likewise.
4228 * amd64obsd-tdep.c: Likewise.
4229 * arch-utils.c: Likewise.
4230 * arm-linux-nat.c: Likewise.
4231 * arm-linux-tdep.c: Likewise.
4232 * arm-tdep.c: Likewise.
4233 * arm-wince-tdep.c: Likewise.
4234 * armbsd-tdep.c: Likewise.
4235 * armnbsd-nat.c: Likewise.
4236 * armnbsd-tdep.c: Likewise.
4237 * armobsd-tdep.c: Likewise.
4238 * avr-tdep.c: Likewise.
4239 * ax-gdb.c: Likewise.
4240 * ax-general.c: Likewise.
4241 * bcache.c: Likewise.
4242 * bfin-tdep.c: Likewise.
4243 * breakpoint.c: Likewise.
4244 * build-id.c: Likewise.
4245 * buildsym.c: Likewise.
4246 * c-exp.y: Likewise.
4247 * c-lang.c: Likewise.
4248 * c-typeprint.c: Likewise.
4249 * c-valprint.c: Likewise.
4250 * charset.c: Likewise.
4251 * cli-out.c: Likewise.
4252 * cli/cli-cmds.c: Likewise.
4253 * cli/cli-decode.c: Likewise.
4254 * cli/cli-dump.c: Likewise.
4255 * cli/cli-interp.c: Likewise.
4256 * cli/cli-logging.c: Likewise.
4257 * cli/cli-script.c: Likewise.
4258 * cli/cli-setshow.c: Likewise.
4259 * cli/cli-utils.c: Likewise.
4260 * coffread.c: Likewise.
4261 * common/agent.c: Likewise.
4262 * common/buffer.c: Likewise.
4263 * common/buffer.h: Likewise.
4264 * common/common-utils.c: Likewise.
4265 * common/filestuff.c: Likewise.
4266 * common/filestuff.c: Likewise.
4267 * common/format.c: Likewise.
4268 * common/print-utils.c: Likewise.
4269 * common/rsp-low.c: Likewise.
4270 * common/signals.c: Likewise.
4271 * common/vec.h: Likewise.
4272 * common/xml-utils.c: Likewise.
4273 * core-regset.c: Likewise.
4274 * corefile.c: Likewise.
4275 * corelow.c: Likewise.
4276 * cp-abi.c: Likewise.
4277 * cp-name-parser.y: Likewise.
4278 * cp-support.c: Likewise.
4279 * cp-valprint.c: Likewise.
4280 * cris-tdep.c: Likewise.
4281 * d-exp.y: Likewise.
4282 * darwin-nat.c: Likewise.
4283 * dbxread.c: Likewise.
4284 * dcache.c: Likewise.
4285 * demangle.c: Likewise.
4286 * dicos-tdep.c: Likewise.
4287 * disasm.c: Likewise.
4288 * doublest.c: Likewise.
4289 * dsrec.c: Likewise.
4290 * dummy-frame.c: Likewise.
4291 * dwarf2-frame.c: Likewise.
4292 * dwarf2loc.c: Likewise.
4293 * dwarf2read.c: Likewise.
4294 * elfread.c: Likewise.
4295 * environ.c: Likewise.
4297 * event-loop.c: Likewise.
4298 * exceptions.c: Likewise.
4300 * expprint.c: Likewise.
4301 * f-exp.y: Likewise.
4302 * f-lang.c: Likewise.
4303 * f-typeprint.c: Likewise.
4304 * f-valprint.c: Likewise.
4305 * fbsd-nat.c: Likewise.
4306 * findcmd.c: Likewise.
4307 * findvar.c: Likewise.
4308 * fork-child.c: Likewise.
4309 * frame.c: Likewise.
4310 * frv-linux-tdep.c: Likewise.
4311 * frv-tdep.c: Likewise.
4313 * gdb_bfd.c: Likewise.
4314 * gdbarch.c: Likewise.
4315 * gdbarch.sh: Likewise.
4316 * gdbtypes.c: Likewise.
4317 * gnu-nat.c: Likewise.
4318 * gnu-v2-abi.c: Likewise.
4319 * gnu-v3-abi.c: Likewise.
4320 * go-exp.y: Likewise.
4321 * go-lang.c: Likewise.
4322 * go32-nat.c: Likewise.
4323 * guile/guile.c: Likewise.
4324 * guile/scm-auto-load.c: Likewise.
4325 * hppa-hpux-tdep.c: Likewise.
4326 * hppa-linux-nat.c: Likewise.
4327 * hppanbsd-tdep.c: Likewise.
4328 * hppaobsd-tdep.c: Likewise.
4329 * i386-cygwin-tdep.c: Likewise.
4330 * i386-dicos-tdep.c: Likewise.
4331 * i386-linux-tdep.c: Likewise.
4332 * i386-nto-tdep.c: Likewise.
4333 * i386-sol2-tdep.c: Likewise.
4334 * i386-tdep.c: Likewise.
4335 * i386bsd-tdep.c: Likewise.
4336 * i386gnu-nat.c: Likewise.
4337 * i386nbsd-tdep.c: Likewise.
4338 * i386obsd-tdep.c: Likewise.
4339 * i387-tdep.c: Likewise.
4340 * ia64-libunwind-tdep.c: Likewise.
4341 * ia64-linux-nat.c: Likewise.
4342 * inf-child.c: Likewise.
4343 * inf-ptrace.c: Likewise.
4344 * inf-ttrace.c: Likewise.
4345 * infcall.c: Likewise.
4346 * infcmd.c: Likewise.
4347 * inflow.c: Likewise.
4348 * infrun.c: Likewise.
4349 * interps.c: Likewise.
4350 * iq2000-tdep.c: Likewise.
4351 * irix5-nat.c: Likewise.
4352 * jv-exp.y: Likewise.
4353 * jv-lang.c: Likewise.
4354 * jv-typeprint.c: Likewise.
4355 * jv-valprint.c: Likewise.
4356 * language.c: Likewise.
4357 * linux-fork.c: Likewise.
4358 * linux-nat.c: Likewise.
4359 * lm32-tdep.c: Likewise.
4360 * m2-exp.y: Likewise.
4361 * m2-typeprint.c: Likewise.
4362 * m32c-tdep.c: Likewise.
4363 * m32r-linux-nat.c: Likewise.
4364 * m32r-linux-tdep.c: Likewise.
4365 * m32r-rom.c: Likewise.
4366 * m32r-tdep.c: Likewise.
4367 * m68hc11-tdep.c: Likewise.
4368 * m68k-tdep.c: Likewise.
4369 * m68kbsd-tdep.c: Likewise.
4370 * m68klinux-nat.c: Likewise.
4371 * m68klinux-tdep.c: Likewise.
4372 * m88k-tdep.c: Likewise.
4373 * machoread.c: Likewise.
4374 * macrocmd.c: Likewise.
4376 * mdebugread.c: Likewise.
4377 * mem-break.c: Likewise.
4378 * memattr.c: Likewise.
4379 * memory-map.c: Likewise.
4380 * mep-tdep.c: Likewise.
4381 * mi/mi-cmd-break.c: Likewise.
4382 * mi/mi-cmd-disas.c: Likewise.
4383 * mi/mi-cmd-env.c: Likewise.
4384 * mi/mi-cmd-stack.c: Likewise.
4385 * mi/mi-cmd-var.c: Likewise.
4386 * mi/mi-cmds.c: Likewise.
4387 * mi/mi-console.c: Likewise.
4388 * mi/mi-getopt.c: Likewise.
4389 * mi/mi-interp.c: Likewise.
4390 * mi/mi-main.c: Likewise.
4391 * mi/mi-parse.c: Likewise.
4392 * microblaze-rom.c: Likewise.
4393 * microblaze-tdep.c: Likewise.
4394 * mingw-hdep.c: Likewise.
4395 * minidebug.c: Likewise.
4396 * minsyms.c: Likewise.
4397 * mips-irix-tdep.c: Likewise.
4398 * mips-linux-tdep.c: Likewise.
4399 * mips-tdep.c: Likewise.
4400 * mips64obsd-tdep.c: Likewise.
4401 * mipsnbsd-tdep.c: Likewise.
4402 * mipsread.c: Likewise.
4403 * mn10300-linux-tdep.c: Likewise.
4404 * mn10300-tdep.c: Likewise.
4405 * monitor.c: Likewise.
4406 * moxie-tdep.c: Likewise.
4407 * mt-tdep.c: Likewise.
4408 * nat/linux-btrace.c: Likewise.
4409 * nat/linux-osdata.c: Likewise.
4410 * nat/linux-procfs.c: Likewise.
4411 * nat/linux-ptrace.c: Likewise.
4412 * nat/linux-waitpid.c: Likewise.
4413 * nbsd-tdep.c: Likewise.
4414 * nios2-linux-tdep.c: Likewise.
4415 * nto-procfs.c: Likewise.
4416 * nto-tdep.c: Likewise.
4417 * objc-lang.c: Likewise.
4418 * objfiles.c: Likewise.
4419 * opencl-lang.c: Likewise.
4420 * osabi.c: Likewise.
4421 * osdata.c: Likewise.
4422 * p-exp.y: Likewise.
4423 * p-lang.c: Likewise.
4424 * p-typeprint.c: Likewise.
4425 * parse.c: Likewise.
4426 * posix-hdep.c: Likewise.
4427 * ppc-linux-nat.c: Likewise.
4428 * ppc-sysv-tdep.c: Likewise.
4429 * ppcfbsd-tdep.c: Likewise.
4430 * ppcnbsd-tdep.c: Likewise.
4431 * ppcobsd-tdep.c: Likewise.
4432 * printcmd.c: Likewise.
4433 * procfs.c: Likewise.
4434 * prologue-value.c: Likewise.
4435 * python/py-auto-load.c: Likewise.
4436 * python/py-gdb-readline.c: Likewise.
4437 * ravenscar-thread.c: Likewise.
4438 * regcache.c: Likewise.
4439 * registry.c: Likewise.
4440 * remote-fileio.c: Likewise.
4441 * remote-m32r-sdi.c: Likewise.
4442 * remote-mips.c: Likewise.
4443 * remote-notif.c: Likewise.
4444 * remote-sim.c: Likewise.
4445 * remote.c: Likewise.
4446 * reverse.c: Likewise.
4447 * rs6000-aix-tdep.c: Likewise.
4448 * ser-base.c: Likewise.
4449 * ser-go32.c: Likewise.
4450 * ser-mingw.c: Likewise.
4451 * ser-pipe.c: Likewise.
4452 * ser-tcp.c: Likewise.
4453 * ser-unix.c: Likewise.
4454 * serial.c: Likewise.
4455 * sh-tdep.c: Likewise.
4456 * sh64-tdep.c: Likewise.
4457 * shnbsd-tdep.c: Likewise.
4459 * sol-thread.c: Likewise.
4460 * solib-dsbt.c: Likewise.
4461 * solib-frv.c: Likewise.
4462 * solib-osf.c: Likewise.
4463 * solib-som.c: Likewise.
4464 * solib-spu.c: Likewise.
4465 * solib-target.c: Likewise.
4466 * solib.c: Likewise.
4467 * somread.c: Likewise.
4468 * source.c: Likewise.
4469 * sparc-nat.c: Likewise.
4470 * sparc-sol2-tdep.c: Likewise.
4471 * sparc-tdep.c: Likewise.
4472 * sparc64-tdep.c: Likewise.
4473 * sparc64fbsd-tdep.c: Likewise.
4474 * sparc64nbsd-tdep.c: Likewise.
4475 * sparcnbsd-tdep.c: Likewise.
4476 * spu-linux-nat.c: Likewise.
4477 * spu-multiarch.c: Likewise.
4478 * spu-tdep.c: Likewise.
4479 * stabsread.c: Likewise.
4480 * stack.c: Likewise.
4481 * std-regs.c: Likewise.
4482 * symfile.c: Likewise.
4483 * symmisc.c: Likewise.
4484 * symtab.c: Likewise.
4485 * target.c: Likewise.
4486 * thread.c: Likewise.
4487 * tilegx-linux-nat.c: Likewise.
4488 * tilegx-tdep.c: Likewise.
4490 * tracepoint.c: Likewise.
4491 * tui/tui-command.c: Likewise.
4492 * tui/tui-data.c: Likewise.
4493 * tui/tui-disasm.c: Likewise.
4494 * tui/tui-file.c: Likewise.
4495 * tui/tui-layout.c: Likewise.
4496 * tui/tui-out.c: Likewise.
4497 * tui/tui-regs.c: Likewise.
4498 * tui/tui-source.c: Likewise.
4499 * tui/tui-stack.c: Likewise.
4500 * tui/tui-win.c: Likewise.
4501 * tui/tui-windata.c: Likewise.
4502 * tui/tui-winsource.c: Likewise.
4503 * typeprint.c: Likewise.
4504 * ui-file.c: Likewise.
4505 * ui-out.c: Likewise.
4506 * user-regs.c: Likewise.
4507 * utils.c: Likewise.
4508 * v850-tdep.c: Likewise.
4509 * valarith.c: Likewise.
4510 * valops.c: Likewise.
4511 * valprint.c: Likewise.
4512 * value.c: Likewise.
4513 * varobj.c: Likewise.
4514 * vax-tdep.c: Likewise.
4515 * vaxnbsd-tdep.c: Likewise.
4516 * vaxobsd-tdep.c: Likewise.
4517 * windows-nat.c: Likewise.
4518 * xcoffread.c: Likewise.
4519 * xml-support.c: Likewise.
4520 * xstormy16-tdep.c: Likewise.
4521 * xtensa-linux-nat.c: Likewise.
4523 2014-08-07 Gary Benson <gbenson@redhat.com>
4525 * common/common-defs.h: Include gdb_assert.h.
4526 * aarch64-tdep.c: Do not include gdb_assert.h.
4527 * addrmap.c: Likewise.
4528 * aix-thread.c: Likewise.
4529 * alpha-linux-tdep.c: Likewise.
4530 * alpha-mdebug-tdep.c: Likewise.
4531 * alphanbsd-tdep.c: Likewise.
4532 * amd64-nat.c: Likewise.
4533 * amd64-tdep.c: Likewise.
4534 * amd64bsd-nat.c: Likewise.
4535 * amd64fbsd-nat.c: Likewise.
4536 * amd64fbsd-tdep.c: Likewise.
4537 * amd64nbsd-nat.c: Likewise.
4538 * amd64nbsd-tdep.c: Likewise.
4539 * amd64obsd-nat.c: Likewise.
4540 * amd64obsd-tdep.c: Likewise.
4541 * arch-utils.c: Likewise.
4542 * arm-tdep.c: Likewise.
4543 * armbsd-tdep.c: Likewise.
4545 * bcache.c: Likewise.
4546 * bfin-tdep.c: Likewise.
4547 * blockframe.c: Likewise.
4548 * breakpoint.c: Likewise.
4549 * bsd-kvm.c: Likewise.
4550 * bsd-uthread.c: Likewise.
4551 * buildsym.c: Likewise.
4552 * c-exp.y: Likewise.
4553 * c-lang.c: Likewise.
4554 * charset.c: Likewise.
4555 * cleanups.c: Likewise.
4556 * cli-out.c: Likewise.
4557 * cli/cli-decode.c: Likewise.
4558 * cli/cli-dump.c: Likewise.
4559 * cli/cli-logging.c: Likewise.
4560 * cli/cli-script.c: Likewise.
4561 * cli/cli-utils.c: Likewise.
4562 * coffread.c: Likewise.
4563 * common/common-utils.c: Likewise.
4564 * common/queue.h: Likewise.
4565 * common/signals.c: Likewise.
4566 * common/vec.h: Likewise.
4567 * complaints.c: Likewise.
4568 * completer.c: Likewise.
4569 * corelow.c: Likewise.
4570 * cp-abi.c: Likewise.
4571 * cp-name-parser.y: Likewise.
4572 * cp-namespace.c: Likewise.
4573 * cp-support.c: Likewise.
4574 * cris-tdep.c: Likewise.
4575 * dbxread.c: Likewise.
4576 * dictionary.c: Likewise.
4577 * doublest.c: Likewise.
4578 * dsrec.c: Likewise.
4579 * dummy-frame.c: Likewise.
4580 * dwarf2-frame-tailcall.c: Likewise.
4581 * dwarf2-frame.c: Likewise.
4582 * dwarf2expr.c: Likewise.
4583 * dwarf2loc.c: Likewise.
4584 * dwarf2read.c: Likewise.
4586 * event-loop.c: Likewise.
4587 * exceptions.c: Likewise.
4588 * expprint.c: Likewise.
4589 * f-valprint.c: Likewise.
4590 * fbsd-nat.c: Likewise.
4591 * findvar.c: Likewise.
4592 * frame-unwind.c: Likewise.
4593 * frame.c: Likewise.
4594 * frv-tdep.c: Likewise.
4595 * gcore.c: Likewise.
4596 * gdb-dlfcn.c: Likewise.
4597 * gdb_bfd.c: Likewise.
4598 * gdbarch.c: Likewise.
4599 * gdbarch.sh: Likewise.
4600 * gdbtypes.c: Likewise.
4601 * gnu-nat.c: Likewise.
4602 * gnu-v3-abi.c: Likewise.
4603 * go-lang.c: Likewise.
4604 * guile/scm-exception.c: Likewise.
4605 * guile/scm-gsmob.c: Likewise.
4606 * guile/scm-lazy-string.c: Likewise.
4607 * guile/scm-math.c: Likewise.
4608 * guile/scm-pretty-print.c: Likewise.
4609 * guile/scm-safe-call.c: Likewise.
4610 * guile/scm-utils.c: Likewise.
4611 * guile/scm-value.c: Likewise.
4612 * h8300-tdep.c: Likewise.
4613 * hppa-hpux-nat.c: Likewise.
4614 * hppa-tdep.c: Likewise.
4615 * hppanbsd-tdep.c: Likewise.
4616 * hppaobsd-tdep.c: Likewise.
4617 * i386-darwin-nat.c: Likewise.
4618 * i386-darwin-tdep.c: Likewise.
4619 * i386-nto-tdep.c: Likewise.
4620 * i386-tdep.c: Likewise.
4621 * i386bsd-nat.c: Likewise.
4622 * i386fbsd-tdep.c: Likewise.
4623 * i386gnu-nat.c: Likewise.
4624 * i386nbsd-tdep.c: Likewise.
4625 * i386obsd-tdep.c: Likewise.
4626 * i387-tdep.c: Likewise.
4627 * ia64-libunwind-tdep.c: Likewise.
4628 * ia64-tdep.c: Likewise.
4629 * inf-ptrace.c: Likewise.
4630 * inf-ttrace.c: Likewise.
4631 * infcall.c: Likewise.
4632 * infcmd.c: Likewise.
4633 * infrun.c: Likewise.
4634 * inline-frame.c: Likewise.
4635 * interps.c: Likewise.
4636 * jv-lang.c: Likewise.
4637 * jv-typeprint.c: Likewise.
4638 * linux-fork.c: Likewise.
4639 * linux-nat.c: Likewise.
4640 * linux-thread-db.c: Likewise.
4641 * m32c-tdep.c: Likewise.
4642 * m32r-linux-nat.c: Likewise.
4643 * m32r-tdep.c: Likewise.
4644 * m68k-tdep.c: Likewise.
4645 * m68kbsd-nat.c: Likewise.
4646 * m68kbsd-tdep.c: Likewise.
4647 * m88k-tdep.c: Likewise.
4648 * machoread.c: Likewise.
4649 * macroexp.c: Likewise.
4650 * macrotab.c: Likewise.
4651 * maint.c: Likewise.
4652 * mdebugread.c: Likewise.
4653 * memory-map.c: Likewise.
4654 * mep-tdep.c: Likewise.
4655 * mi/mi-common.c: Likewise.
4656 * microblaze-tdep.c: Likewise.
4657 * mingw-hdep.c: Likewise.
4658 * mips-linux-nat.c: Likewise.
4659 * mips-linux-tdep.c: Likewise.
4660 * mips-tdep.c: Likewise.
4661 * mips64obsd-tdep.c: Likewise.
4662 * mipsnbsd-tdep.c: Likewise.
4663 * mn10300-linux-tdep.c: Likewise.
4664 * mn10300-tdep.c: Likewise.
4665 * moxie-tdep.c: Likewise.
4666 * mt-tdep.c: Likewise.
4667 * nat/linux-btrace.c: Likewise.
4668 * nat/linux-osdata.c: Likewise.
4669 * nat/linux-ptrace.c: Likewise.
4670 * nat/mips-linux-watch.c: Likewise.
4671 * nios2-linux-tdep.c: Likewise.
4672 * nios2-tdep.c: Likewise.
4673 * objc-lang.c: Likewise.
4674 * objfiles.c: Likewise.
4675 * obsd-nat.c: Likewise.
4676 * opencl-lang.c: Likewise.
4677 * osabi.c: Likewise.
4678 * parse.c: Likewise.
4679 * ppc-linux-nat.c: Likewise.
4680 * ppc-sysv-tdep.c: Likewise.
4681 * ppcfbsd-nat.c: Likewise.
4682 * ppcfbsd-tdep.c: Likewise.
4683 * ppcnbsd-nat.c: Likewise.
4684 * ppcnbsd-tdep.c: Likewise.
4685 * ppcobsd-nat.c: Likewise.
4686 * ppcobsd-tdep.c: Likewise.
4687 * printcmd.c: Likewise.
4688 * procfs.c: Likewise.
4689 * prologue-value.c: Likewise.
4690 * psymtab.c: Likewise.
4691 * python/py-lazy-string.c: Likewise.
4692 * python/py-value.c: Likewise.
4693 * regcache.c: Likewise.
4694 * reggroups.c: Likewise.
4695 * registry.c: Likewise.
4696 * remote-sim.c: Likewise.
4697 * remote.c: Likewise.
4698 * rs6000-aix-tdep.c: Likewise.
4699 * rs6000-tdep.c: Likewise.
4700 * s390-linux-tdep.c: Likewise.
4701 * score-tdep.c: Likewise.
4702 * ser-base.c: Likewise.
4703 * ser-mingw.c: Likewise.
4704 * sh-tdep.c: Likewise.
4705 * sh64-tdep.c: Likewise.
4706 * solib-darwin.c: Likewise.
4707 * solib-spu.c: Likewise.
4708 * solib-svr4.c: Likewise.
4709 * source.c: Likewise.
4710 * sparc-nat.c: Likewise.
4711 * sparc-sol2-tdep.c: Likewise.
4712 * sparc-tdep.c: Likewise.
4713 * sparc64-sol2-tdep.c: Likewise.
4714 * sparc64-tdep.c: Likewise.
4715 * sparc64fbsd-tdep.c: Likewise.
4716 * sparc64nbsd-tdep.c: Likewise.
4717 * sparc64obsd-tdep.c: Likewise.
4718 * sparcnbsd-tdep.c: Likewise.
4719 * sparcobsd-tdep.c: Likewise.
4720 * spu-multiarch.c: Likewise.
4721 * spu-tdep.c: Likewise.
4722 * stabsread.c: Likewise.
4723 * stack.c: Likewise.
4724 * symfile.c: Likewise.
4725 * symtab.c: Likewise.
4726 * target-descriptions.c: Likewise.
4727 * target-memory.c: Likewise.
4728 * target.c: Likewise.
4729 * tic6x-linux-tdep.c: Likewise.
4730 * tic6x-tdep.c: Likewise.
4731 * tilegx-linux-nat.c: Likewise.
4732 * tilegx-tdep.c: Likewise.
4734 * tramp-frame.c: Likewise.
4735 * tui/tui-out.c: Likewise.
4736 * tui/tui-winsource.c: Likewise.
4737 * ui-out.c: Likewise.
4738 * user-regs.c: Likewise.
4739 * utils.c: Likewise.
4740 * v850-tdep.c: Likewise.
4741 * valops.c: Likewise.
4742 * value.c: Likewise.
4743 * varobj.c: Likewise.
4744 * vax-nat.c: Likewise.
4745 * xml-syscall.c: Likewise.
4746 * xml-tdesc.c: Likewise.
4747 * xstormy16-tdep.c: Likewise.
4748 * xtensa-linux-nat.c: Likewise.
4749 * xtensa-tdep.c: Likewise.
4751 2014-08-07 Gary Benson <gbenson@redhat.com>
4753 * common/common-defs.h: Include common-utils.h.
4754 * defs.h: Do not include common-utils.h.
4755 * common/gdb_assert.h: Likewise.
4756 * darwin-nat.h: Likewise.
4757 * nat/linux-btrace.c: Likewise.
4758 * target/waitstatus.h: Likewise.
4760 2014-08-07 Gary Benson <gbenson@redhat.com>
4762 * common/common-defs.h: Include ptid.h.
4763 * defs.h: Do not include ptid.h.
4764 * inferior.h: Likewise.
4765 * infrun.h: Likewise.
4766 * nat/linux-btrace.h: Likewise.
4767 * nat/linux-osdata.h: Likewise.
4768 * target/waitstatus.h: Likewise.
4770 2014-08-07 Gary Benson <gbenson@redhat.com>
4772 * common/common-defs.h: Include gdb_locale.h.
4773 * defs.h: Do not include gdb_locale.h.
4775 2014-08-07 Gary Benson <gbenson@redhat.com>
4777 * common/common-defs.h: Include gdb/signals.h.
4778 * defs.h: Do not include gdb/signals.h.
4780 2014-08-07 Gary Benson <gbenson@redhat.com>
4782 * common/common-defs.h: Include pathmax.h.
4783 * defs.h: Do not include pathmax.h.
4785 2014-08-07 Gary Benson <gbenson@redhat.com>
4787 * common/common-defs.h: Include libiberty.h.
4788 * defs.h: Do not include libiberty.h.
4789 * common/queue.h: Likewise.
4790 * cp-name-parser.y: Likewise.
4791 * mi/mi-cmd-catch.c: Likewise.
4792 * python/python.c: Likewise.
4794 2014-08-07 Gary Benson <gbenson@redhat.com>
4796 * common/common-defs.h: Include ansidecl.h.
4797 * defs.h: Do not include ansidecl.h.
4798 * common/buffer.h: Likewise.
4799 * common/common-utils.h: Likewise.
4801 2014-08-07 Gary Benson <gbenson@redhat.com>
4803 * common/common-defs.h: Include stddef.h.
4804 * defs.h: Do not include stddef.h.
4805 * common/common-utils.h: Likewise.
4806 * amd64fbsd-nat.c: Likewise.
4807 * bcache.c: Likewise.
4808 * charset.c: Likewise.
4809 * common/buffer.h: Likewise.
4810 * common/vec.h: Likewise.
4811 * i386bsd-nat.c: Likewise.
4812 * nat/linux-btrace.h: Likewise.
4813 * ppcfbsd-nat.c: Likewise.
4814 * ppcnbsd-tdep.h: Likewise.
4815 * ppcobsd-nat.c: Likewise.
4816 * ppcobsd-tdep.h: Likewise.
4817 * python/py-gdb-readline.c: Likewise.
4819 2014-08-07 Gary Benson <gbenson@redhat.com>
4821 * common/common-defs.h: Include stdarg.h.
4822 * defs.h: Do not include stdarg.h.
4823 * ada-lang.c: Likewise.
4824 * common/common-utils.h: Likewise.
4825 * guile/scm-string.c: Likewise.
4826 * guile/scm-utils.c: Likewise.
4827 * m32c-tdep.c: Likewise.
4829 2014-08-07 Gary Benson <gbenson@redhat.com>
4831 * common/common-defs.h: Include stdlib.h.
4832 * defs.h: Do not include stdlib.h.
4833 * addrmap.c: Likewise.
4834 * bcache.c: Likewise.
4835 * common/buffer.c: Likewise.
4836 * common/common-utils.c: Likewise.
4837 * cp-name-parser.y: Likewise.
4838 * go32-nat.c: Likewise.
4839 * mn10300-linux-tdep.c: Likewise.
4840 * nat/linux-osdata.c: Likewise.
4841 * tui/tui.c: Likewise.
4842 * windows-nat.c: Likewise.
4844 2014-08-07 Gary Benson <gbenson@redhat.com>
4846 * common/common-defs.h: Include stdio.h.
4847 * defs.h: Do not include stdio.h.
4848 * ada-lang.c: Likewise.
4849 * common/buffer.c: Likewise.
4850 * common/common-utils.c: Likewise.
4851 * cp-name-parser.y: Likewise.
4852 * gnu-nat.c: Likewise.
4853 * go32-nat.c: Likewise.
4854 * i386gnu-nat.c: Likewise.
4855 * proc-api.c: Likewise.
4856 * proc-events.c: Likewise.
4857 * proc-flags.c: Likewise.
4858 * proc-why.c: Likewise.
4859 * python/python-internal.h: Likewise.
4860 * target-memory.c: Likewise.
4861 * tui/tui-io.c: Likewise.
4862 * tui/tui.c: Likewise.
4864 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4866 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4867 (scan_dyntag_auxv): Same.
4869 2014-08-06 Yao Qi <yao@codesourcery.com>
4871 * amd64-linux-nat.c: Remove duplicated include
4873 * i386-linux-nat.c: Likewise.
4875 2014-08-06 Yao Qi <yao@codesourcery.com>
4877 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4878 operand" with "Special opcode" in comments.
4880 2014-08-05 Gary Benson <gbenson@redhat.com>
4882 * interps.c (initialize_interps): Remove prototype.
4883 (interpreter_initialized): Remove static global.
4884 (interp_add): Do not call initialize_interps.
4885 (initialize_interps): Remove function.
4887 2014-08-05 Gary Benson <gbenson@redhat.com>
4889 * utils.c (vwarning): Remove spurious va_end.
4891 2014-08-05 Alan Modra <amodra@gmail.com>
4893 * charset.c (convert_between_encodings): Cast result of obstack_base.
4894 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4895 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4896 (read_unwind_info): Use size_t for some locals.
4897 * jit.c (finalize_symtab): Likewise.
4898 * utils.c (hashtab_obstack_allocate): Likewise.
4899 * symmisc.c (print_objfile_statistics): Update format strings.
4901 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4903 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4904 (Changes in GDB 7.8): ... here.
4906 2014-08-04 Tom Tromey <tromey@redhat.com>
4908 * target.c (set_targetdebug): New function.
4909 (initialize_targets): Pass set_targetdebug when creating "set
4912 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4914 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4915 if detecting a variable-sized field that is not the last field.
4916 Fix struct type length computation.
4918 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4920 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4923 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4925 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4926 Remove "+ 8" offset in computation of CHAIN_VMA.
4928 2014-07-31 Doug Evans <dje@google.com>
4930 * inflow.c (child_terminal_inferior): Add comment.
4931 (child_terminal_ours_for_output): Add comment.
4932 (child_terminal_ours): Add comment.
4933 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4934 (linux_nat_terminal_ours): Add comment.
4936 2014-07-31 Gary Benson <gbenson@redhat.com>
4938 * common/btrace-common.h: Do not include defs.h or server.h.
4939 * nat/mips-linux-watch.h: Likewise.
4940 * gdb-dlfcn.h: Do not include defs.h.
4941 * tracefile.h: Likewise.
4943 2014-07-30 Roland McGrath <mcgrathr@google.com>
4945 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4947 2014-07-30 Tom Tromey <tromey@redhat.com>
4949 * bsd-kvm.c (bsd_kvm_open): Constify.
4950 * corelow.c (core_open): Constify.
4951 * ctf.c (ctf_open): Constify.
4952 * dbug-rom.c (dbug_open): Constify.
4953 * exec.c (exec_open): Constify.
4954 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4955 * microblaze-rom.c (picobug_open): Constify.
4956 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4958 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4959 * record-btrace.c (record_btrace_open): Constify.
4960 * record-full.c (record_full_core_open_1, record_full_open_1)
4961 (record_full_open): Constify.
4962 * remote-m32r-sdi.c (m32r_open): Constify.
4963 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4964 (rockhopper_open, lsi_open): Constify.
4965 * remote-sim.c (gdbsim_open): Constify.
4966 * remote.c (remote_open, extended_remote_open, remote_open_1):
4968 * target.h (struct target_ops) <to_open>: Make "arg" const.
4969 * tracefile-tfile.c (tfile_open): Constify.
4971 2014-07-30 Tom Tromey <tromey@redhat.com>
4973 * breakpoint.c (map_breakpoint_numbers): Update.
4974 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4975 (get_number_const): New function.
4976 (get_number): Rewrite using get_number_const.
4977 (init_number_or_range): Make "string" const.
4978 (number_is_in_list): Make "list" const.
4979 * cli/cli-utils.h (get_number_const): Declare.
4980 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4981 (init_number_or_range, number_is_in_list): Update.
4982 * printcmd.c (map_display_numbers): Update.
4983 * value.c (value_from_history_ref): Constify.
4984 * value.h (value_from_history_ref): Update.
4986 2014-07-30 Tom Tromey <tromey@redhat.com>
4988 * corefile.c (hook_type, call_extra_exec_file_hooks)
4989 (specify_exec_file_hook): Constify.
4990 * exec.c (exec_file_attach): Make "filename" const.
4991 * gdbcore.h (deprecated_exec_file_display_hook)
4992 (specify_exec_file_hook, exec_file_attach): Constify.
4993 * main.c (captured_main): Use catch_command_errors_const.
4995 2014-07-30 Tom Tromey <tromey@redhat.com>
4997 * target.c (open_target): New function.
4998 (add_target_with_completer, add_deprecated_target_alias): Use
4999 set_cmd_sfunc, set_cmd_context.
5000 (debug_to_open): Remove.
5001 (setup_target_debug): Update.
5003 2014-07-30 Yao Qi <yao@codesourcery.com>
5005 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5007 * parse.c (exp_iterate): Update comments.
5009 2014-07-30 Gary Benson <gbenson@redhat.com>
5011 * common/common-defs.h: New file.
5012 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5013 * defs.h: Include common-defs.h.
5014 Do not include config.h or build-gnulib/config.h.
5016 2014-07-30 Gary Benson <gbenson@redhat.com>
5018 * common/common-utils.h: Do not include config.h.
5019 * nat/linux-btrace.h: Likewise.
5021 2014-07-30 Gary Benson <gbenson@redhat.com>
5023 * btrace.c: Include defs.h.
5024 * common/ptid.c: Include defs.h or server.h as appropriate.
5025 * nat/mips-linux-watch.c: Likewise.
5027 2014-07-29 Tom Tromey <tromey@redhat.com>
5029 * target.c (target_is_pushed): Simplify.
5031 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5035 2014-07-29 Yao Qi <yao@codesourcery.com>
5038 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5040 2014-07-28 Doug Evans <xdje42@gmail.com>
5043 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5044 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5047 2014-07-28 Will Newton <will.newton@linaro.org>
5049 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5050 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5051 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5052 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5053 (THUMB2_EABI_SYSCALL): Likewise.
5054 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5056 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5057 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5059 2014-07-27 Doug Evans <xdje42@gmail.com>
5061 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5063 2014-07-27 Doug Evans <xdje42@gmail.com>
5065 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5067 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5068 Doug Evans <xdje42@gmail.com>
5071 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5072 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5073 * configure.ac: Try to use guild to compile an scm file, if it fails
5074 then disable guile support.
5075 * configure: Regenerate.
5076 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5078 (GUILE_COMPILED_FILES): New variable.
5079 (GUILE_FILES) Update.
5080 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5081 (stamp-guile): Compile scm files.
5082 * guile/guile.c (boot_guile_support): New function.
5083 (standard_throw_args_p): New function.
5084 (print_standard_throw_error, print_throw_error): New functions.
5085 (handle_boot_error): New function.
5086 (initialize_scheme_side): Rewrite to call boot_guile_support.
5087 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5088 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5090 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5091 Doug Evans <xdje42@gmail.com>
5094 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5095 * guile/lib/gdb/support.scm: New file.
5096 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5097 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5099 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5101 (%assert-type): Ditto, and renamed to assert-type.
5102 (%exception-print-style): Delete.
5104 2014-07-26 Doug Evans <xdje42@gmail.com>
5107 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5108 * configure: Regenerate.
5109 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5111 (PYTHON_FILES): New variable.
5112 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5113 (GUILE_FILES): New variable.
5114 (stamp-python, install-python, uninstall-python): Handle empty
5116 (stamp-guile, install-guile, uninstall-guile): Ditto.
5118 2014-07-26 Doug Evans <xdje42@gmail.com>
5121 * guile/lib/gdb.scm (pretty-printers): Export.
5122 (set-pretty-printers!): Export.
5123 * guile/lib/gdb/printing.scm (gdb module): Update.
5124 (prepend-pretty-printer!, append-pretty-printer!): Update.
5125 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5126 (pretty_printer_list_var): Delete.
5127 (pretty_printer_list): New static global.
5128 (gdbscm_pretty_printers): New function.
5129 (gdbscm_set_pretty_printers_x): New function.
5130 (ppscm_find_pretty_printer_from_gdb): Update.
5131 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5132 (gdbscm_initialize_pretty_printers): Update.
5134 2014-07-26 Doug Evans <xdje42@gmail.com>
5137 * configure.ac: Add check for header gc/gc.h.
5138 Add check for function setenv.
5139 * configure: Regenerate.
5140 * config.in: Regenerate.
5141 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5143 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5145 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5146 variation in gdbarch matching.
5148 2014-07-25 Tom Tromey <tromey@redhat.com>
5150 * exec.c (using_exec_ops): Remove.
5151 (exec_close_1): Update. Remove extraneous block, reindent.
5152 (add_target_sections): Use target_is_pushed.
5154 2014-07-25 Pedro Alves <palves@redhat.com>
5156 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5157 * monitor.c (monitor_create_inferior): Likewise.
5158 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5159 * remote-sim.c (gdbsim_create_inferior): Likewise.
5160 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5161 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5162 * windows-nat.c (do_initial_windows_stuff): Likewise.
5164 2014-07-25 Pedro Alves <palves@redhat.com>
5166 * NEWS: Mention signal passing and "signal" command changes.
5167 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5169 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5171 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5172 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5173 (jump_command): Adjust clear_proceed_status call.
5174 (signal_command): Warn if other thread that are resumed have
5175 signals that will be delivered. Adjust clear_proceed_status call.
5176 (until_next_command, finish_command)
5177 (proceed_after_attach_callback, attach_command_post_wait)
5178 (attach_command): Adjust clear_proceed_status call.
5179 * infrun.c (proceed_after_vfork_done): Likewise.
5180 (proceed_after_attach_callback): Adjust comment.
5181 (clear_proceed_status_thread): Clear stop_signal if not in pass
5183 (clear_proceed_status_callback): Delete.
5184 (clear_proceed_status): New 'step' parameter. Only clear the
5185 proceed status of threads the command being prepared is about to
5187 (proceed): If passed in an explicit signal, override stop_signal
5188 with it. Don't pass the last stop signal to the thread we're
5190 (init_wait_for_inferior): Adjust clear_proceed_status call.
5191 (switch_back_to_stepped_thread): Clear the signal if it should not
5193 * infrun.h (clear_proceed_status): New 'step' parameter.
5194 (user_visible_resume_ptid): Add comment.
5195 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5196 signal is in pass state.
5197 * remote.c (append_pending_thread_resumptions): Likewise.
5198 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5200 2014-07-25 Tom Tromey <tromey@redhat.com>
5202 * target.h (target_stopped_data_address)
5203 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5206 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5208 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5210 (avr_pointer_to_address): Likewise.
5212 2014-07-24 Tom Tromey <tromey@redhat.com>
5214 * monitor.c (compile_pattern): Update.
5215 * target.h (struct target_ops) <to_shortname, to_longname,
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5220 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5221 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5222 (add_info_alias, add_com): Make "doc" const.
5223 (print_doc_line): Make "str" const.
5224 (delete_cmd): Update.
5225 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5226 (print_doc_line): Update.
5227 * cli/cli-script.c (document_command): Update.
5228 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5229 (add_com, add_info, add_info_alias): Update.
5230 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5231 * python/py-cmd.c (cmdpy_destroyer): Update.
5233 2014-07-24 Tom Tromey <tromey@redhat.com>
5235 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5236 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5237 (help_cmd_list): Constify.
5238 (lookup_cmd): Update.
5239 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5241 (help_cmd_list, apropos_cmd): Update.
5242 * cli/cli-script.c (show_user): Update.
5243 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5244 * cli/cli-setshow.h (cmd_show_list): Update.
5245 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5246 (cmd_show_list): Update.
5247 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5248 * python/py-cmd.c (cmdpy_destroyer): Update.
5250 2014-07-24 Tom Tromey <tromey@redhat.com>
5252 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5253 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5255 * command.h (deprecate_cmd): Update.
5256 * maint.c (maintenance_do_deprecate): Add casts.
5258 2014-07-24 Tom Tromey <tromey@redhat.com>
5260 * cli/cli-decode.c (help_cmd): Make parameter "const".
5261 * cli/cli-decode.h (help_cmd): Update.
5263 2014-07-24 Tom Tromey <tromey@redhat.com>
5265 * stack.c (up_silently_base, down_silently_base): Make argument
5268 2014-07-24 Tom Tromey <tromey@redhat.com>
5270 * solib.c (solib_add): Make "pattern" const.
5271 * solib.h (solib_add): Update.
5273 2014-07-24 Tom Tromey <tromey@redhat.com>
5275 * remote.c (remote_serial_open, print_packet, putpkt)
5276 (putpkt_binary): Constify.
5277 * remote.h (putpkt): Update.
5279 2014-07-24 Tom Tromey <tromey@redhat.com>
5281 * monitor.c (monitor_open): Make "args" const.
5282 * monitor.h (monitor_open): Update.
5284 2014-07-24 Tom Tromey <tromey@redhat.com>
5286 * maint.c (match_bfd_flags): Make "string" const.
5287 (print_bfd_section_info): Remove casts.
5288 (print_objfile_section_info): Make "string" const.
5290 2014-07-24 Tom Tromey <tromey@redhat.com>
5292 * inf-child.c (inf_child_open_target): Make "arg" const.
5293 * inf-child.h (inf_child_open_target): Update.
5295 2014-07-24 Tom Tromey <tromey@redhat.com>
5297 * environ.c (unset_in_environ): Make "var" const.
5298 * environ.h (unset_in_environ): Update.
5300 2014-07-24 Tom Tromey <tromey@redhat.com>
5302 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5304 (scan_filename_with_cleanup): Likewise.
5305 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5306 Make arguments const.
5307 (restore_command): Update.
5309 2014-07-24 Pedro Alves <palves@redhat.com>
5311 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5313 2014-07-24 Tom Tromey <tromey@redhat.com>
5314 Gary Benson <gbenson@redhat.com>
5316 * nat/linux-ptrace.c (additional_flags): New global.
5317 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5318 additional_flags; don't check GDBSERVER.
5319 (linux_ptrace_set_additional_flags): New function.
5320 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5322 * linux-nat.c (_initialize_linux_nat): Call
5323 linux_ptrace_set_additional_flags.
5325 2014-07-24 Tom Tromey <tromey@redhat.com>
5327 * make-target-delegates (munge_type, write_debugmethod): New
5329 (debug_names): New global.
5330 ($TARGET_DEBUG_PRINTER): New global.
5331 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5333 Write debug methods. Generate init_debug_target.
5334 * target-debug.h: New file.
5335 * target-delegates.c: Rebuild.
5336 * target.c: Include target-debug.h.
5337 (debug_target): Hoist definition.
5338 (target_kill, target_get_section_table, target_memory_map)
5339 (target_flash_erase, target_flash_done, target_detach)
5340 (target_disconnect, target_wait, target_resume)
5341 (target_pass_signals, target_program_signals, target_follow_fork)
5342 (target_mourn_inferior, target_search_memory)
5343 (target_thread_address_space, target_close)
5344 (target_find_new_threads, target_core_of_thread)
5345 (target_verify_memory, target_insert_mask_watchpoint)
5346 (target_remove_mask_watchpoint): Remove targetdebug code.
5347 (debug_to_post_attach, debug_to_prepare_to_store)
5348 (debug_to_files_info, debug_to_insert_breakpoint)
5349 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5350 (debug_to_region_ok_for_hw_watchpoint)
5351 (debug_to_can_accel_watchpoint_condition)
5352 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5353 (debug_to_watchpoint_addr_within_range)
5354 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5355 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5356 (debug_to_terminal_init, debug_to_terminal_inferior)
5357 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5358 (debug_to_terminal_save_ours, debug_to_terminal_info)
5359 (debug_to_load, debug_to_post_startup_inferior)
5360 (debug_to_insert_fork_catchpoint)
5361 (debug_to_remove_fork_catchpoint)
5362 (debug_to_insert_vfork_catchpoint)
5363 (debug_to_remove_vfork_catchpoint)
5364 (debug_to_insert_exec_catchpoint)
5365 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5366 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5367 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5368 (setup_target_debug): Call init_debug_target.
5369 * target.h (TARGET_DEBUG_PRINTER): New macro.
5370 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5371 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5373 2014-07-24 Gary Benson <gbenson@redhat.com>
5375 * exceptions.h (throw_vfatal): Renamed to...
5376 (throw_vquit): New declaration.
5377 (throw_quit): Likewise.
5378 * exceptions.c (throw_vfatal): Renamed to...
5379 (throw_vquit): New function.
5380 (throw_quit): Likewise.
5381 (throw_error): Call throw_verror rather than throw_it.
5382 * utils.h (vfatal): Removed.
5384 * utils.c (vfatal): Removed.
5386 (internal_verror): Replaced call to fatal with call to throw_quit.
5387 (quit): Replaced calls to fatal with calls to throw_quit.
5389 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5391 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5394 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5396 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5397 less than zero in conditional expression.
5399 2014-07-23 Tom Tromey <tromey@redhat.com>
5401 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5402 ($INTRO_PART): Don't match whitespace.
5403 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5405 ($METHOD): Add $METHOD_TRAILER.
5407 (scan_target_h): New sub.
5408 Change main loop not to collect state.
5409 * target-delegates.c: Rebuild.
5411 2014-07-23 Gary Benson <gbenson@redhat.com>
5413 * cp-support.c (gdb_demangle): Fix build on systems without
5416 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5418 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5419 for reference entry value target data value.
5421 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5423 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5424 value_available_contents_eq.
5426 2014-07-22 Pedro Alves <palves@redhat.com>
5428 * value.c (allocate_optimized_out_value): Don't mark value as
5431 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5433 * MAINTAINERS (Write After Approval): Update my email address.
5435 2014-07-20 Doug Evans <dje@google.com>
5438 * remote.c (putpkt_binary): Add text to error message.
5440 2014-07-20 Yao Qi <yao@codesourcery.com>
5442 * eval.c: Remove "Chill" from comments.
5443 * gdbtypes.h: Likewise.
5444 * symtab.h: Likewise.
5446 2014-07-20 Yao Qi <yao@codesourcery.com>
5448 * std-operator.def: Update comments to TERNOP_SLICE.
5450 2014-07-20 Yao Qi <yao@codesourcery.com>
5452 * std-operator.def: Remove BINOP_RANGE.
5453 * breakpoint.c (watchpoint_exp_is_const): Update.
5454 * expprint.c (dump_subexp_body_standard): Likewise.
5455 * eval.c (init_array_element): Remove dead code.
5456 (evaluate_subexp_standard): Likewise.
5458 2014-07-20 Yao Qi <yao@codesourcery.com>
5460 * std-operator.def: Remove BINOP_IN.
5461 * breakpoint.c (watchpoint_exp_is_const): Update.
5462 * eval.c (evaluate_subexp_standard): Likewise.
5463 * expprint.c (dump_subexp_body_standard): Likewise.
5465 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5467 * microblaze-tdep.c (microblaze_register_names): Add
5468 the rshr and rslr register names.
5469 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5470 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5471 Use of tdesc_numbered_register. Use of
5472 microblaze_register_g_packet_guesses. Use of
5473 tdesc_use_registers. Use of set_gdbarch_register_type.
5474 (microblaze_register_g_packet_guesses): New.
5475 * microblaze-tdep.h (microblaze_reg_num): Add
5476 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5477 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5478 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5479 * features/microblaze-core.xml: New file.
5480 * features/microblaze-stack-protect.xml: New file.
5481 * features/microblaze-with-stack-protect.c: New file.
5482 * features/microblaze-with-stack-protect.xml: New file.
5483 * features/microblaze.xml: New file.
5484 * features/microblaze.c: New file.
5485 * features/Makefile (microblaze-with-stack-protect): Add
5486 microblaze-with-stack-protect microblaze and microblaze-expedite.
5487 * regformats/microblaze-with-stack-protect.dat: New file.
5488 * regformats/microblaze.dat: New file.
5489 * doc/gdb.texinfo (MicroBlaze Features): Added.
5491 2014-07-18 Tom Tromey <tromey@redhat.com>
5493 * exec.c (exec_ops): Now static.
5494 * exec.h (exec_ops): Don't declare.
5496 2014-07-18 Tom Tromey <tromey@redhat.com>
5498 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5499 to find_target_beneath.
5500 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5501 find_target_beneath.
5502 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5504 2014-07-18 Tom Tromey <tromey@redhat.com>
5507 * utils.c (quit): Use target_supports_terminal_ours.
5508 * target.h (target_supports_terminal_ours): Declare.
5509 * target.c (target_supports_delete_record): Don't check
5510 to_delete_record against NULL.
5511 (target_supports_terminal_ours): New function.
5513 2014-07-18 Tom Tromey <tromey@redhat.com>
5516 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5517 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5518 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5519 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5520 * windows-nat.c (windows_xfer_partial): Always delegate.
5521 * record-btrace.c (record_btrace_xfer_partial): Simplify
5523 (record_btrace_fetch_registers, record_btrace_store_registers)
5524 (record_btrace_prepare_to_store, record_btrace_resume)
5525 (record_btrace_wait, record_btrace_find_new_threads)
5526 (record_btrace_thread_alive): Likewise.
5527 * procfs.c (procfs_xfer_partial): Always delegate.
5528 * corelow.c (core_xfer_partial): Always delegate.
5529 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5531 2014-07-18 Tom Tromey <tromey@redhat.com>
5533 * exec.c (exec_make_note_section): Move earlier.
5535 2014-07-17 Doug Evans <dje@google.com>
5538 * maint.c (count_symtabs_and_blocks): Handle NULL
5539 current_program_space.
5540 (report_command_stats): Check global enabled flag in addition to
5541 recorded enabled flag.
5542 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5544 2014-07-16 Pedro Alves <palves@redhat.com>
5546 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5548 2014-07-16 Tom Tromey <tromey@redhat.com>
5550 * target.h (struct target_ops) <to_delete_record>: Reformat
5553 2014-07-16 Tom Tromey <tromey@redhat.com>
5555 * target-delegates.c: Rebuild.
5557 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5559 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5560 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5561 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5562 (avr_pointer_to_address): Likewise.
5563 (avr_address_class_type_flags): New function.
5564 (avr_address_class_type_flags_to_name): Likewise.
5565 (avr_address_class_name_to_type_flags): Likewise.
5566 (avr_gdbarch_init): Set address_class_type_flags,
5567 address_class_type_flags_to_name and
5568 address_class_name_to_type_flags.
5570 2014-07-15 Pedro Alves <palves@redhat.com>
5572 * linux-nat.c (kill_callback): Save errno and work with saved
5575 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5577 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5579 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5581 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5582 breakpoint support correctly.
5584 2014-07-14 Pedro Alves <palves@redhat.com>
5586 * utils.c (prompt_for_continue): Call target_terminal_ours.
5588 2014-07-14 Pedro Alves <palves@redhat.com>
5590 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5591 catch_errors. Don't re-enable stdin or notify observers where,
5593 (fetch_inferior_event_wrapper): Delete.
5595 2014-07-14 Pedro Alves <palves@redhat.com>
5598 * top.c: Include "inf-loop.h".
5599 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5601 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5603 (gdb_readline_wrapper): Store whether the target is async, and
5606 2014-07-14 Pedro Alves <palves@redhat.com>
5609 * top.c (gdb_readline_wrapper_line): Tweak comment.
5610 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5611 the input handler callback.
5613 2014-07-14 Pedro Alves <palves@redhat.com>
5616 * main.c: Include event-top.h.
5617 (handle_command_errors): New function.
5618 (catch_command_errors, catch_command_errors_const): Use it.
5620 2014-07-14 Pedro Alves <palves@redhat.com>
5622 * exceptions.c (catch_command_errors, catch_command_errors_const):
5624 * exceptions.h (catch_command_errors_ftype)
5625 (catch_command_errors_const_ftype): Moved to main.c.
5626 (catch_command_errors, catch_command_errors_const): Delete
5628 * main.c (catch_command_errors_ftype)
5629 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5630 (catch_command_errors, catch_command_errors_const)): Moved here
5631 from exceptions.c and make static.
5633 2014-07-14 Pedro Alves <palves@redhat.com>
5635 * exceptions.c (print_any_exception): Delete.
5636 (catch_exceptions_with_msg): Use exception_print instead of
5637 print_any_exception.
5638 (catch_errors): Use exception_fprintf instead of
5639 print_any_exception.
5640 (catch_command_errors, catch_command_errors_const): Use
5641 exception_print instead of print_any_exception.
5643 2014-07-14 Pedro Alves <palves@redhat.com>
5645 * infcall.c (run_inferior_call): Set 'sync_execution' while
5646 running the inferior call.
5648 2014-07-14 Pedro Alves <palves@redhat.com>
5650 * value.c (value_contents_equal): Delete function.
5651 * value.h (value_contents_equal): Delete declaration.
5653 2014-07-14 Tom Tromey <tromey@redhat.com>
5656 * gdbtypes.c (is_dynamic_type_internal): New function, from
5658 (is_dynamic_type): Rewrite.
5659 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5660 (resolve_dynamic_struct): Likewise.
5661 (resolve_dynamic_type_internal): New function, from
5662 resolve_dynamic_type.
5663 (resolve_dynamic_type): Rewrite.
5665 2014-07-14 Tom Tromey <tromey@redhat.com>
5667 * target.c (target_require_runnable): Also check record_stratum.
5670 2014-07-11 Yao Qi <yao@codesourcery.com>
5672 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5673 thumb_instruction_restores_sp return true.
5675 2014-07-11 Yao Qi <yao@codesourcery.com>
5677 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5678 (thumb_in_function_epilogue_p): Call
5679 thumb_instruction_restores_sp.
5681 2014-07-11 Yao Qi <yao@codesourcery.com>
5683 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5685 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5687 2014-07-11 Gary Benson <gbenson@redhat.com>
5689 * amd64-linux-nat.c (gdbcore.h): Remove include.
5690 (regset.h): Likewise.
5691 (nat/linux-btrace.h): Likewise.
5692 (btrace.h): Likewise.
5693 (gdb_assert.h): Likewise.
5694 (string.h): Likewise.
5695 (sys/uio.h): Likewise.
5696 (sys/debugreg.h): Likewise.
5697 (sys/syscall.h): Likewise.
5698 (sys/procfs.h): Likewise.
5699 (sys/user.h): Likewise.
5700 (asm/ptrace.h): Likewise.
5701 (i386-nat.h): Likewise.
5702 * i386-linux-nat.c (i386-nat.h): Likewise.
5703 (regset.h): Likewise.
5704 (target.h): Likewise.
5705 (linux-nat.h): Likewise.
5706 (nat/linux-btrace.h): Likewise.
5707 (btrace.h): Likewise.
5708 (gdb_assert.h): Likewise.
5709 (string.h): Likewise.
5710 (sys/uio.h): Likewise.
5711 (sys/user.h): Likewise.
5712 (sys/procfs.h): Likewise.
5713 (sys/reg.h): Likewise.
5714 (sys/debugreg.h): Likewise.
5715 (ORIG_EAX): Remove definition.
5717 2014-07-11 Gary Benson <gbenson@redhat.com>
5719 * i386-linux-nat.h: New file.
5720 * x86-linux-nat.h: Likewise.
5721 * x86-linux-nat.c: Likewise.
5722 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5723 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5724 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5725 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5726 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5727 (PTRACE_SETREGSET): Likewise.
5728 (arch_lwp_info): Now in x86-linux-nat.c.
5729 (have_ptrace_getregset): Now in x86-linux-nat.h.
5730 (x86_linux_dr_get): Now in x86-linux-nat.c.
5731 (x86_linux_dr_set): Likewise.
5732 (x86_linux_dr_get_addr): Likewise.
5733 (x86_linux_dr_get_control): Likewise.
5734 (x86_linux_dr_get_status): Likewise.
5735 (update_debug_registers_callback): Likewise.
5736 (x86_linux_dr_set_control): Likewise.
5737 (x86_linux_dr_set_addr): Likewise.
5738 (x86_linux_prepare_to_resume): Likewise.
5739 (x86_linux_new_thread): Likewise.
5740 (x86_linux_new_fork): Likewise.
5741 (x86_linux_get_thread_area): Likewise.
5742 (super_post_startup_inferior): Likewise.
5743 (x86_linux_child_post_startup_inferior): Likewise.
5744 (AMD64_LINUX_USER64_CS): Likewise.
5745 (AMD64_LINUX_X32_DS): Likewise.
5746 (x86_linux_read_description): Likewise.
5747 (x86_linux_enable_btrace): Likewise.
5748 (x86_linux_disable_btrace): Likewise.
5749 (x86_linux_teardown_btrace): Likewise.
5750 (x86_linux_read_btrace): Likewise.
5751 (x86_linux_create_target): Likewise.
5752 (x86_linux_add_target): Likewise.
5753 * i386-linux-nat.c (x86-linux-nat.h): New include.
5754 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5755 (PTRACE_SETREGSET): Likewise.
5756 (arch_lwp_info): Now in x86-linux-nat.c.
5757 (have_ptrace_getregset): Now in x86-linux-nat.h.
5758 (x86_linux_dr_get): Now in x86-linux-nat.c.
5759 (x86_linux_dr_set): Likewise.
5760 (x86_linux_dr_get_addr): Likewise.
5761 (x86_linux_dr_get_control): Likewise.
5762 (x86_linux_dr_get_status): Likewise.
5763 (update_debug_registers_callback): Likewise.
5764 (x86_linux_dr_set_control): Likewise.
5765 (x86_linux_dr_set_addr): Likewise.
5766 (x86_linux_prepare_to_resume): Likewise.
5767 (x86_linux_new_thread): Likewise.
5768 (x86_linux_new_fork): Likewise.
5769 (x86_linux_get_thread_area): Likewise.
5770 (super_post_startup_inferior): Likewise.
5771 (x86_linux_child_post_startup_inferior): Likewise.
5772 (AMD64_LINUX_USER64_CS): Likewise.
5773 (AMD64_LINUX_X32_DS): Likewise.
5774 (x86_linux_read_description): Likewise.
5775 (x86_linux_enable_btrace): Likewise.
5776 (x86_linux_disable_btrace): Likewise.
5777 (x86_linux_teardown_btrace): Likewise.
5778 (x86_linux_read_btrace): Likewise.
5779 (x86_linux_create_target): Likewise.
5780 (x86_linux_add_target): Likewise.
5782 2014-07-11 Gary Benson <gbenson@redhat.com>
5784 * amd64-linux-nat.c: Comment and whitespace changes.
5785 * i386-linux-nat.c: Comment and whitespace changes.
5787 2014-07-11 Gary Benson <gbenson@redhat.com>
5789 * amd64-linux-nat.c (x86_linux_create_target): New function.
5790 (x86_linux_add_target): Likewise.
5791 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5792 * i386-linux-nat.c (x86_linux_create_target): New function.
5793 (x86_linux_add_target): Likewise.
5794 (_initialize_i386_linux_nat): Delegate to the above new functions.
5796 2014-07-11 Gary Benson <gbenson@redhat.com>
5798 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5799 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5800 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5801 (ps_get_thread_area): Delegate to the above.
5803 2014-07-11 Gary Benson <gbenson@redhat.com>
5805 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5806 x86_linux_read_description. All uses updated. amd64-specific
5807 code conditionalized. Conditionalized i386-specific code added.
5808 Redundant cast removed.
5809 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5810 x86_linux_read_description. All uses updated. i386-specific
5811 code conditionalized. Conditionalized amd64-specific code added.
5812 One sizeof replaced with the actual type it is describing.
5814 2014-07-11 Gary Benson <gbenson@redhat.com>
5816 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5817 x86_linux_dr_get. All uses updated.
5818 (amd64_linux_dr_set): Renamed to
5819 x86_linux_dr_set. All uses updated.
5820 (amd64_linux_dr_get_addr): Renamed to
5821 x86_linux_dr_get_addr. All uses updated.
5822 (amd64_linux_dr_get_control): Renamed to
5823 x86_linux_dr_get_control. All uses updated.
5824 (amd64_linux_dr_get_status): Renamed to
5825 x86_linux_dr_get_status. All uses updated.
5826 (amd64_linux_dr_set_control): Renamed to
5827 x86_linux_dr_set_control. All uses updated.
5828 (amd64_linux_dr_set_addr): Renamed to
5829 x86_linux_dr_set_addr. All uses updated.
5830 (amd64_linux_prepare_to_resume): Renamed to
5831 x86_linux_prepare_to_resume. All uses updated.
5832 (amd64_linux_new_thread): Renamed to
5833 x86_linux_new_thread. All uses updated.
5834 (amd64_linux_new_fork): Renamed to
5835 x86_linux_new_fork. All uses updated.
5836 (amd64_linux_child_post_startup_inferior): Renamed to
5837 x86_linux_child_post_startup_inferior. All uses updated.
5838 (amd64_linux_enable_btrace): Renamed to
5839 x86_linux_enable_btrace. All uses updated.
5840 (amd64_linux_disable_btrace): Renamed to
5841 x86_linux_disable_btrace. All uses updated.
5842 (amd64_linux_teardown_btrace): Renamed to
5843 x86_linux_teardown_btrace. All uses updated.
5844 (amd64_linux_read_btrace): Renamed to
5845 x86_linux_read_btrace. All uses updated.
5846 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5847 x86_linux_dr_get. All uses updated.
5848 (i386_linux_dr_set): Renamed to
5849 x86_linux_dr_set. All uses updated.
5850 (i386_linux_dr_get_addr): Renamed to
5851 x86_linux_dr_get_addr. All uses updated.
5852 (i386_linux_dr_get_control): Renamed to
5853 x86_linux_dr_get_control. All uses updated.
5854 (i386_linux_dr_get_status): Renamed to
5855 x86_linux_dr_get_status. All uses updated.
5856 (i386_linux_dr_set_control): Renamed to
5857 x86_linux_dr_set_control. All uses updated.
5858 (i386_linux_dr_set_addr): Renamed to
5859 x86_linux_dr_set_addr. All uses updated.
5860 (i386_linux_prepare_to_resume): Renamed to
5861 x86_linux_prepare_to_resume. All uses updated.
5862 (i386_linux_new_thread): Renamed to
5863 x86_linux_new_thread. All uses updated.
5864 (i386_linux_new_fork): Renamed to
5865 x86_linux_new_fork. All uses updated.
5866 (i386_linux_child_post_startup_inferior): Renamed to
5867 x86_linux_child_post_startup_inferior. All uses updated.
5868 (i386_linux_enable_btrace): Renamed to
5869 x86_linux_enable_btrace. All uses updated.
5870 (i386_linux_disable_btrace): Renamed to
5871 x86_linux_disable_btrace. All uses updated.
5872 (i386_linux_teardown_btrace): Renamed to
5873 x86_linux_teardown_btrace. All uses updated.
5874 (i386_linux_read_btrace): Renamed to
5875 x86_linux_read_btrace. All uses updated.
5877 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5879 * remote.c (extended_remote_post_attach): New function.
5880 (init_extended_remote_ops): Install it as to_post_attach method.
5882 2014-07-09 Pedro Alves <palves@redhat.com>
5884 * infcmd.c (attach_command_post_wait): Don't call
5885 target_terminal_inferior here.
5886 (attach_command): Call it here instead.
5888 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5890 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5892 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5893 from varobj.c, with additional checks.
5894 (c_varobj_ops): Fill in is_path_expr_parent field.
5895 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5896 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5898 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5900 (varobj_default_is_path_expr_parent): New function.
5901 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5902 (varobj_default_is_path_expr_parent): Declare new function.
5904 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5906 * infcmd.c (finish_backward): Turn internal error into normal error.
5908 2014-07-07 Pedro Alves <palves@redhat.com>
5911 * remote.c (async_handle_remote_sigint)
5912 (async_handle_remote_sigint_twice): Call
5913 gdb_call_async_signal_handler instead of
5914 mark_async_signal_handler.
5916 2014-07-07 Tom Tromey <tromey@redhat.com>
5918 * target-delegates.c: Rebuild.
5919 * target.c (target_info_record): Remove.
5920 * record.c (info_record_command): Unconditionally call
5922 * target.h (struct target_ops) <to_info_record>: Use
5923 TARGET_DEFAULT_IGNORE.
5924 (target_info_record): Remove.
5926 2014-07-07 Tom Tromey <tromey@redhat.com>
5928 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5929 TARGET_DEFAULT_NORETURN.
5930 * target.c (generic_tls_error): New function.
5931 (target_translate_tls_address): Don't search target stack.
5932 * target-delegates.c: Rebuild.
5933 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5935 * linux-thread-db.c (thread_db_get_thread_local_address):
5936 Unconditionally call beneath target.
5938 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5940 * cli/cli-logging.c (pop_output_files): Assign targerr to
5943 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5945 * MAINTAINERS (Write After Approval): Update my email address.
5947 2014-07-02 Gary Benson <gbenson@redhat.com>
5949 * proc-service.c (ps_xfer_memory): Update comment.
5950 (ps_pstop): Remove unused function.
5951 (ps_pcontinue): Likewise.
5952 (ps_lstop): Likewise.
5953 (ps_lcontinue): Likewise.
5954 (ps_lgetxregsize): Likewise.
5955 (ps_lgetxregs): Likewise.
5956 (ps_lsetxregs): Likewise.
5957 (ps_plog): Likewise.
5958 (ps_ptread): Likewise.
5959 (ps_ptwrite): Likewise.
5961 2014-07-01 Mark Wielaard <mjw@redhat.com>
5963 * dwarf2read.c (add_array_cv_type): New function.
5964 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5965 (read_tag_volatile_type): Likewise.
5967 2014-07-01 Tom Tromey <tromey@redhat.com>
5969 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5970 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5971 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5972 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5973 * command.h (cmd_cfunc_ftype): Move earlier.
5974 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5975 (add_com, add_info): Use cmd_cfunc_ftype.
5977 2014-06-30 Tom Tromey <tromey@redhat.com>
5979 * symtab.c (operator_chars): Make parameters and return type
5981 (file_matches): Make "files" const.
5982 (struct search_symbols_data) <files>: Now const.
5983 (search_symbols): Make "regexp" and "files" parameters const.
5985 (symtab_symbol_info): Remove cast.
5986 (rbreak_command): Update.
5987 * symtab.h (search_symbols): Update.
5989 2014-06-27 Yao Qi <yao@codesourcery.com>
5991 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5992 Change parameter type to 'struct thread_info *'. Caller
5994 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5996 * dummy-frame.c (struct dummy_frame_id): New.
5997 (dummy_frame_id_eq): New function.
5998 (struct dummy_frame) <id>: Change its type to 'struct
6000 (dummy_frame_push): Add parameter ptid and save it in
6002 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6004 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6006 (lookup_dummy_frame): Change parameter type to 'struct
6007 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6008 instead of frame_id_eq.
6009 (dummy_frame_pop): Add parameter ptid. Callers updated.
6010 Update comments. Compose dummy_frame_id and pass it to
6012 (dummy_frame_discard): Add parameter ptid.
6013 (dummy_frame_sniffer): Compose dummy_frame_id and call
6014 dummy_frame_id_eq instead of frame_id_eq.
6015 (fprint_dummy_frames): Print ptid.
6016 * dummy-frame.h: Remove comments.
6017 (dummy_frame_push): Add ptid in declaration.
6018 (dummy_frame_pop, dummy_frame_discard): Likewise.
6020 2014-06-26 Tom Tromey <tromey@redhat.com>
6022 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6023 * command.h (error_no_arg): Update.
6025 2014-06-26 Tom Tromey <tromey@redhat.com>
6027 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6028 (do_show_command): Make "arg" const.
6029 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6031 2014-06-26 Tom Tromey <tromey@redhat.com>
6033 * record-full.c (record_full_get_bookmark): Make "args" const.
6034 (record_full_goto_bookmark): Make "raw_bookmark" const.
6035 * record.c (record_goto): New function.
6036 (cmd_record_goto): Use it. Now static.
6037 * record.h (record_goto): Declare.
6038 (cmd_record_goto): Remove declaration.
6039 * target-delegates.c: Rebuild.
6040 * target.h (struct target_ops) <to_get_bookmark,
6041 to_goto_bookmark>: Make parameter const.
6043 2014-06-26 Tom Tromey <tromey@redhat.com>
6045 * defs.h (generic_load): Update.
6046 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6047 * monitor.c (monitor_load): Make "args" const.
6048 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6049 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6051 (mips_load): Make "file" const.
6052 * remote-sim.c (gdbsim_load): Make "args" const.
6053 * remote.c (remote_load): Make "name" const.
6054 * symfile.c (generic_load): Make "args" const.
6055 * target-delegates.c: Rebuild.
6056 * target.c (target_load): Make "arg" const.
6057 (debug_to_load): Make "args" const.
6058 * target.h (struct target_ops) <to_load>: Make parameter const.
6059 (target_load): Update.
6061 2014-06-26 Tom Tromey <tromey@redhat.com>
6064 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6065 (dwarf2_physname, read_partial_die)
6066 (guess_partial_die_structure_name, fixup_partial_die)
6067 (guess_full_die_structure_name, anonymous_struct_prefix)
6068 (dwarf2_name): Use per-BFD obstack.
6070 2014-06-26 Yao Qi <yao@codesourcery.com>
6072 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6073 dummyframe and this_id into inner block below.
6075 2014-06-26 Yao Qi <yao@codesourcery.com>
6077 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6078 with "signal_pass[0]" in the initialization of signal_pass.
6080 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6082 * record-btrace.c (record_btrace_generating_corefile)
6083 (record_btrace_prepare_to_generate_core)
6084 (record_btrace_done_generating_core): New.
6085 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6086 (record_btrace_store_registers, record_btrace_prepare_to_store):
6087 Forward request when generating a core file.
6088 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6089 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6090 to_done_generating_core.
6092 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6094 * target.h (target_ops) <to_prepare_to_generate_core>
6095 <to_done_generating_core>: New.
6096 (target_prepare_to_generate_core, target_done_generating_core): New.
6097 * target.c (target_prepare_to_generate_core)
6098 (target_done_generating_core): New.
6099 * target-delegates.c: Regenerate.
6100 * gcore.c: (write_gcore_file): Rename to ...
6101 (write_gcore_file_1): ...this.
6102 (write_gcore_file): Call target_prepare_to_generate_core
6103 and target_done_generating_core.
6105 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6107 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6108 * gcore.c (write_gcore_file): Free memory returned from
6109 make_corefile_notes.
6110 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6111 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6113 2014-06-24 Yao Qi <yao@codesourcery.com>
6115 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6116 (arm_linux_init_abi): Set skip_trampoline_code with
6117 gdbarch_skip_trampoline_code instead of
6118 find_solib_trampoline_target.
6120 2014-06-24 Yao Qi <yao@codesourcery.com>
6122 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6123 arm_skip_bx_reg returns non-zero.
6125 2014-06-24 Yao Qi <yao@codesourcery.com>
6127 * arm-tdep.c (arm_skip_bx_reg): New function.
6128 (arm_skip_stub): Call arm_skip_bx_reg.
6130 2014-06-23 Don Breazeal <donb@codesourcery.com>
6132 * MAINTAINERS: Add myself as write-after-approval maintainer.
6134 2014-06-23 Pedro Alves <palves@redhat.com>
6136 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6137 DR_CONTROL before setting DR0..DR3.
6138 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6139 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6140 bits of DR_CONTROL related to the debug register slot being
6141 disabled. If all slots are vacant, clear local slowdown as well,
6142 and assert DR_CONTROL is 0.
6144 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6146 * python/lib/gdb/command/xmethods.py
6147 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6148 current progspace only if the string "progspace" matches LOCUS_RE.
6150 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6152 Fix --with-system-readline with readline-6.3 patch 5.
6153 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6154 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6157 2014-06-20 Tom Tromey <tromey@redhat.com>
6159 * dwarf2read.c (dw2_get_real_path): Use correct type in
6161 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6163 2014-06-20 Gary Benson <gbenson@redhat.com>
6165 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6166 * common/glibc_thread_db.h: Likewise.
6167 * common/i386-cpuid.h: Likewise.
6168 * common/i386-gcc-cpuid.h: Likewise.
6169 * common/linux-btrace.h: Likewise.
6170 * common/linux-osdata.h: Likewise.
6171 * common/linux-procfs.h: Likewise.
6172 * common/linux-ptrace.h: Likewise.
6173 * common/mips-linux-watch.h: Likewise.
6174 * common/linux-btrace.c: Moved to nat.
6175 * common/linux-osdata.c: Likewise.
6176 * common/linux-procfs.c: Likewise.
6177 * common/linux-ptrace.c: Likewise.
6178 * common/mips-linux-watch.c: Likewise.
6179 * nat/gdb_thread_db.h: Moved from common.
6180 * nat/glibc_thread_db.h: Likewise.
6181 * nat/i386-cpuid.h: Likewise.
6182 * nat/i386-gcc-cpuid.h: Likewise.
6183 * nat/linux-btrace.c: Likewise.
6184 * nat/linux-btrace.h: Likewise.
6185 * nat/linux-osdata.c: Likewise.
6186 * nat/linux-osdata.h: Likewise.
6187 * nat/linux-procfs.c: Likewise.
6188 * nat/linux-procfs.h: Likewise.
6189 * nat/linux-ptrace.c: Likewise.
6190 * nat/linux-ptrace.h: Likewise.
6191 * nat/mips-linux-watch.c: Likewise.
6192 * nat/mips-linux-watch.h: Likewise.
6193 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6194 (object file files): Reordered.
6195 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6196 of glibc_thread_db.h.
6198 2014-06-20 Gary Benson <gbenson@redhat.com>
6200 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6201 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6202 (i386_dr_low): Likewise.
6203 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6204 (i386_dr_low_set_addr): Likewise.
6205 (i386_dr_low_get_addr): Likewise.
6206 (i386_dr_low_can_set_control): Likewise.
6207 (i386_dr_low_set_control): Likewise.
6208 (i386_dr_low_get_control): Likewise.
6209 (i386_dr_low_get_status): Likewise.
6210 (i386_get_debug_register_length): Likewise.
6211 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6212 (i386_dr_low): Likewise.
6213 * nat/i386-dregs.c (i386-low.h): Remove include.
6214 (i386-nat.h): Likewise.
6215 (nat/i386-dregs.h): New include.
6216 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6217 (i386_dr_low_set_addr): Likewise.
6218 (i386_dr_low_get_addr): Likewise.
6219 (i386_dr_low_can_set_control): Likewise.
6220 (i386_dr_low_set_control): Likewise.
6221 (i386_dr_low_get_control): Likewise.
6222 (i386_dr_low_get_status): Likewise.
6223 (i386_get_debug_register_length): Likewise.
6224 (debug_hw_points): Likewise.
6226 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6228 * Makefile.in (SFILES): Add d-exp.y.
6229 (YYFILES): Add d-exp.c.
6230 (YYOBJ): Add d-exp.o.
6231 (local-maintainer-clean): Delete d-exp.c.
6232 * d-exp.y: New file.
6233 * d-lang.h (d_parse): New declaration.
6234 (d_error): New declaration.
6235 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6236 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6237 PREC_ORDER operators.
6238 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6240 2014-06-19 Yao Qi <yao@codesourcery.com>
6242 * gdbthread.h (any_running): Remove the declaration.
6243 * thread.c (any_running): Remove.
6245 2014-06-19 Yao Qi <yao@codesourcery.com>
6247 * gdbthread.h (struct thread_info) <state>: Change its type to
6248 'enum thread_state'. Update comments.
6250 2014-06-19 Pedro Alves <palves@redhat.com>
6252 * gdbthread.h (ALL_THREADS): Delete.
6253 (ALL_NON_EXITED_THREADS): New macro.
6254 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6255 instead of ALL_THREADS.
6256 * infrun.c (find_thread_needs_step_over)
6257 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6258 instead of ALL_THREADS.
6259 * record-btrace.c (record_btrace_open)
6260 (record_btrace_stop_recording, record_btrace_close)
6261 (record_btrace_is_replaying, record_btrace_resume)
6262 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6263 * remote.c (append_pending_thread_resumptions): Likewise.
6264 * thread.c (thread_apply_all_command): Likewise.
6266 2014-06-19 Gary Benson <gbenson@redhat.com>
6268 * i386-nat.c (i386_stopped_by_watchpoint):
6269 Use i386_dr_stopped_by_watchpoint.
6270 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6271 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6273 2014-06-19 Gary Benson <gbenson@redhat.com>
6275 * nat/i386-dregs.c: New file.
6276 * Makefile.in (i386-dregs.o): New rule.
6277 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6278 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6279 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6280 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6281 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6282 * config/i386/go32.mh (NATDEPFILES): Likewise.
6283 * config/i386/linux.mh (NATDEPFILES): Likewise.
6284 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6285 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6286 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6287 * i386-nat.h (debug_hw_points): New declaration.
6288 * i386-nat.c (breakpoint.h): Remove include.
6289 (command.h): Likewise.
6290 (target.h): Likewise.
6291 (gdb_assert.h): Likewise.
6292 (debug_hw_points): Made nonstatic.
6293 (debug_printf): Now in i386-dregs.c.
6294 (TARGET_HAS_DR_LEN_8): Likewise.
6295 (DR_CONTROL_SHIFT): Likewise.
6296 (DR_CONTROL_SIZE): Likewise.
6297 (DR_RW_EXECUTE): Likewise.
6298 (DR_RW_WRITE): Likewise.
6299 (DR_RW_READ): Likewise.
6300 (DR_RW_IORW): Likewise.
6301 (DR_LEN_1): Likewise.
6302 (DR_LEN_2): Likewise.
6303 (DR_LEN_4): Likewise.
6304 (DR_LEN_8): Likewise.
6305 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6306 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6307 (DR_ENABLE_SIZE): Likewise.
6308 (DR_LOCAL_SLOWDOWN): Likewise.
6309 (DR_GLOBAL_SLOWDOWN): Likewise.
6310 (DR_CONTROL_RESERVED): Likewise.
6311 (I386_DR_CONTROL_MASK): Likewise.
6312 (I386_DR_VACANT): Likewise.
6313 (I386_DR_LOCAL_ENABLE): Likewise.
6314 (I386_DR_GLOBAL_ENABLE): Likewise.
6315 (I386_DR_DISABLE): Likewise.
6316 (I386_DR_SET_RW_LEN): Likewise.
6317 (I386_DR_GET_RW_LEN): Likewise.
6318 (I386_DR_WATCH_HIT): Likewise.
6319 (i386_wp_op_t): Likewise.
6320 (i386_show_dr): Likewise.
6321 (i386_length_and_rw_bits): Likewise.
6322 (i386_insert_aligned_watchpoint): Likewise.
6323 (i386_remove_aligned_watchpoint): Likewise.
6324 (i386_handle_nonaligned_watchpoint): Likewise.
6325 (i386_update_inferior_debug_regs): Likewise.
6326 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6327 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6328 (i386_region_ok_for_watchpoint):
6329 Use i386_dr_region_ok_for_watchpoint.
6330 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6332 2014-06-19 Gary Benson <gbenson@redhat.com>
6334 * i386-nat.c (i386_insert_hw_breakpoint): Use
6335 i386_insert_watchpoint.
6336 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6338 2014-06-19 Gary Benson <gbenson@redhat.com>
6340 * i386-nat.c (i386_dr_show): Renamed to
6341 i386_show_dr and made static. All uses updated.
6342 (i386_dr_length_and_rw_bits): Renamed to
6343 i386_length_and_rw_bits and made static.
6345 (i386_dr_insert_aligned_watchpoint): Renamed to
6346 i386_insert_aligned_watchpoint and made static.
6348 (i386_dr_remove_aligned_watchpoint): Renamed to
6349 i386_remove_aligned_watchpoint and made static.
6351 (i386_dr_update_inferior_debug_regs): Renamed to
6352 i386_update_inferior_debug_regs and made static.
6354 * nat/i386-dregs.h (i386_dr_show): Removed.
6355 (i386_dr_length_and_rw_bits): Likewise.
6356 (i386_dr_insert_aligned_watchpoint): Likewise.
6357 (i386_dr_remove_aligned_watchpoint): Likewise.
6358 (i386_dr_update_inferior_debug_regs): Likewise.
6360 2014-06-19 Gary Benson <gbenson@redhat.com>
6362 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6363 * configure: Regenerate.
6364 * config.in: Likewise.
6365 * main.c (signal.h): New include.
6366 (setup_alternate_signal_stack): New function.
6367 (captured_main): Call the above.
6368 * cp-support.c (signal.h): New include.
6369 (catch_demangler_crashes): New flag.
6370 (SIGJMP_BUF): New define.
6371 (SIGSETJMP): Likewise.
6372 (SIGLONGJMP): Likewise.
6373 (gdb_demangle_jmp_buf): New static global.
6374 (gdb_demangle_attempt_core_dump): Likewise.
6375 (gdb_demangle_signal_handler): New function.
6376 (gdb_demangle): If catch_demangler_crashes is set, install the
6377 above signal handler before calling bfd_demangle, and restore
6378 the original signal handler afterwards. Display the offending
6379 symbol and call demangler_warning the first time a segmentation
6381 (_initialize_cp_support): New maint set/show command.
6383 2014-06-19 Gary Benson <gbenson@redhat.com>
6385 * utils.h (resource_limit_kind): New enum.
6386 (can_dump_core): New declaration.
6387 (warn_cant_dump_core): Likewise.
6388 (dump_core): Likewise.
6389 * utils.c (dump_core): Made nonstatic. Added new
6390 parameter "limit_kind".
6391 (can_dump_core): Made nonstatic. Moved printing code to...
6392 (warn_cant_dump_core): New function.
6393 (can_dump_core_warn): Likewise.
6394 (internal_vproblem): Replace calls to can_dump_core with
6395 calls to can_dump_core_warn. Supply new argument to each.
6397 2014-06-19 Gary Benson <gbenson@redhat.com>
6399 * utils.h (demangler_vwarning): New declaration.
6400 (demangler_warning): Likewise.
6401 * utils.c (struct internal_problem)
6402 <user_settable_should_quit>: New field.
6403 <user_settable_should_dump_core>: Likewise
6404 (internal_error_problem): Add values for above new fields.
6405 (internal_warning_problem): Likewise.
6406 (demangler_warning_problem): New static global.
6407 (demangler_vwarning): New function.
6408 (demangler_warning): Likewise.
6409 (add_internal_problem_command): Selectively add commands.
6410 (_initialize_utils): New internal problem command.
6411 * maint.c (maintenance_demangler_warning): New function.
6412 (_initialize_maint_cmds): New command.
6414 2014-06-18 Tom Tromey <tromey@redhat.com>
6416 * f-valprint.c (info_common_command_for_block): Update.
6417 * symtab.h (struct general_symbol_info) <common_block>: Now
6420 2014-06-18 Tom Tromey <tromey@redhat.com>
6422 * symtab.h (struct symtab) <blockvector>: Now const.
6423 * ada-lang.c (ada_add_global_exceptions): Update.
6424 * buildsym.c (augment_type_symtab): Update.
6425 * dwarf2read.c (dw2_lookup_symbol): Update.
6426 * jit.c (finalize_symtab): Update.
6427 * jv-lang.c (add_class_symtab_symbol): Update.
6428 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6430 * objfiles.c (objfile_relocate1): Update.
6431 * psymtab.c (lookup_symbol_aux_psymtabs)
6432 (maintenance_check_psymtabs): Update.
6433 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6435 * spu-tdep.c (spu_catch_start): Update.
6436 * symmisc.c (dump_symtab_1): Update.
6437 * symtab.c (lookup_global_symbol_from_objfile)
6438 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6439 (basic_lookup_transparent_type_quick)
6440 (basic_lookup_transparent_type, find_pc_sect_symtab)
6441 (find_pc_sect_line, search_symbols): Update.
6442 * block.c (find_block_in_blockvector): Make "bl" const.
6443 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6445 (blockvector_contains_pc): Make "bv" const.
6446 (block_for_pc_sect): Update.
6447 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6448 (blockvector_contains_pc): Update.
6449 * breakpoint.c (resolve_sal_pc): Update.
6450 * inline-frame.c (block_starting_point_at): Update.
6452 2014-06-18 Tom Tromey <tromey@redhat.com>
6454 * completer.c (complete_line): Make "line_buffer" const.
6455 * completer.h (complete_line): Update.
6457 2014-06-18 Tom Tromey <tromey@redhat.com>
6459 * symtab.c (add_macro_name): Remove unneeded cast.
6461 2014-06-18 Tom Tromey <tromey@redhat.com>
6463 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6464 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6466 2014-06-18 Tom Tromey <tromey@redhat.com>
6468 * probe.c (info_probes_for_ops): Make "arg" const.
6469 * probe.h (info_probes_for_ops): Update.
6471 2014-06-18 Tom Tromey <tromey@redhat.com>
6473 * varobj.c (varobj_create): Update.
6474 * valops.c (value_of_this): Update.
6475 * tracepoint.c (add_local_symbols, scope_info): Update.
6476 * symtab.h (struct general_symbol_info) <block>: Now const.
6477 * symtab.c (skip_prologue_sal)
6478 (default_make_symbol_completion_list_break_on)
6479 (skip_prologue_using_sal): Update.
6480 * stack.h (iterate_over_block_locals)
6481 (iterate_over_block_local_vars): Update.
6482 * stack.c (print_frame_args): Update.
6483 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6485 (get_selected_block): Make return type const.
6486 * python/py-frame.c (frapy_block): Update.
6487 * python/py-block.c (gdbpy_block_for_pc): Update.
6488 * p-exp.y (%union) <bval>: Now const.
6489 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6490 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6491 * m2-exp.y (%union) <bval>: Now const.
6492 * linespec.c (get_current_search_block): Make return type const.
6493 (create_sals_line_offset, find_label_symbols): Update.
6494 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6496 (block_starting_point_at): Make "block" const.
6497 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6498 (check_exception_resume): Update.
6499 * guile/scm-frame.c (gdbscm_frame_block): Update.
6500 * guile/scm-block.c (gdbscm_lookup_block): Update.
6501 * frame.h (get_frame_block): Update.
6502 (get_selected_block): Make return type const.
6503 * frame.c (frame_id_inner): Update.
6504 * f-valprint.c (info_common_command_for_block)
6505 (info_common_command): Update.
6506 * dwarf2loc.c (dwarf2_find_location_expression)
6507 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6508 (locexpr_describe_location_piece): Update.
6509 * c-exp.y (%union) <bval>: Now const.
6510 * breakpoint.c (resolve_sal_pc): Update.
6511 * blockframe.c (get_frame_block):Make return type const.
6512 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6513 (block_innermost_frame): Update.
6514 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6515 (block_for_pc, block_for_pc_sect): Update.
6516 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6518 (block_for_pc_sect, block_for_pc): Make return type const.
6519 * ax-gdb.c (gen_expr): Update.
6520 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6521 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6522 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6523 (ada_read_var_value): Update.
6524 * ada-exp.y (struct name_info) <block>: Now const.
6526 (block_lookup): Constify.
6528 2014-06-18 Gary Benson <gbenson@redhat.com>
6530 * nat/i386-dregs.h: New file.
6531 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6532 * i386-nat.h (i386-dregs.h): New include.
6533 (DR_FIRSTADDR): Now in i386-dregs.h.
6534 (DR_LASTADDR): Likewise.
6535 (DR_NADDR): Likewise.
6536 (DR_STATUS): Likewise.
6537 (DR_CONTROL): Likewise.
6538 (i386_debug_reg_state): Likewise.
6539 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6541 2014-06-18 Don Breazeal <donb@codesourcery.com>
6543 * breakpoint.c (set_longjmp_breakpoint): Call
6544 momentary_breakpoint_from_master with additional argument.
6545 (set_longjmp_breakpoint_for_call_dummy): Call
6546 momentary_breakpoint_from_master with additional argument.
6547 (set_std_terminate_breakpoint): Call
6548 momentary_breakpoint_from_master with additional argument.
6549 (momentary_breakpoint_from_master): Add argument to function
6550 definition and use it to initialize structure member flag.
6551 (clone_momentary_breakpoint): Call
6552 momentary_breakpoint_from_master with additional argument.
6553 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6554 member flags set in momentary_breakpoint_from_master.
6556 2014-06-18 Gary Benson <gbenson@redhat.com>
6558 * i386-nat.c (i386_show_dr): Renamed to
6559 i386_dr_show and made nonstatic. All uses updated.
6560 (i386_length_and_rw_bits): Renamed to
6561 i386_dr_length_and_rw_bits and made nonstatic.
6563 (i386_insert_aligned_watchpoint): Renamed to
6564 i386_dr_insert_aligned_watchpoint and made nonstatic.
6566 (i386_remove_aligned_watchpoint): Renamed to
6567 i386_dr_remove_aligned_watchpoint and made nonstatic.
6569 (i386_update_inferior_debug_regs): Renamed to
6570 i386_dr_update_inferior_debug_regs and made nonstatic.
6573 2014-06-18 Gary Benson <gbenson@redhat.com>
6575 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6576 (i386_dr_low_can_set_control): Likewise.
6577 (i386_dr_low_set_addr): Likewise.
6578 (i386_dr_low_set_control): Likewise.
6579 (i386_dr_low_get_addr): Likewise.
6580 (i386_dr_low_get_status): Likewise.
6581 (i386_dr_low_get_control): Likewise.
6582 (i386_insert_aligned_watchpoint): Use new macros.
6583 (i386_update_inferior_debug_regs): Likewise.
6584 (i386_stopped_data_address): Likewise.
6586 2014-06-18 Gary Benson <gbenson@redhat.com>
6588 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6589 New parameter. All uses updated.
6591 2014-06-18 Gary Benson <gbenson@redhat.com>
6593 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6596 2014-06-18 Gary Benson <gbenson@redhat.com>
6598 * i386-nat.c (debug_printf): New macro.
6599 (i386_get_debug_register_length): Likewise.
6600 (TARGET_HAS_DR_LEN_8): Use above macro.
6601 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6602 and printf_unfiltered. Use phex to format values.
6604 2014-06-18 Gary Benson <gbenson@redhat.com>
6606 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6609 2014-06-18 Gary Benson <gbenson@redhat.com>
6611 * i386-nat.c: Comment changes.
6613 2014-06-18 Gary Benson <gbenson@redhat.com>
6615 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6617 2014-06-18 Gary Benson <gbenson@redhat.com>
6619 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6620 (i386_insert_aligned_watchpoint): Likewise.
6621 (i386_remove_aligned_watchpoint): Likewise.
6622 (i386_handle_nonaligned_watchpoint): Likewise.
6624 2014-06-18 Gary Benson <gbenson@redhat.com>
6626 * i386-nat.c: Whitespace changes.
6628 2014-06-17 Samuel Bronson <naesten@gmail.com>
6630 * MAINTAINERS: Update Roland McGrath's email address.
6631 Thanks to Sergio Durigan Junior for pointing out that he left
6632 Red Hat a while ago, and giving me a current address.
6634 2014-06-17 Tom Tromey <tromey@redhat.com>
6636 * utils.h (savestring): Remove declaration.
6638 2014-06-17 Tom Tromey <tromey@redhat.com>
6640 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6642 2014-06-16 Keith Seitz <keiths@redhat.com>
6645 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6646 to update the varobj if inferior_ptid is null_ptid.
6648 2014-06-16 Tom Tromey <tromey@redhat.com>
6650 * target.h (struct target_ops) <to_info_proc>: Make parameter
6652 (target_info_proc): Update.
6653 * target.c (target_info_proc): Make "args" const.
6654 * procfs.c (procfs_info_proc): Update.
6655 * linux-tdep.c (linux_info_proc): Update.
6656 (linux_core_info_proc_mappings): Make "args" const.
6657 (linux_core_info_proc): Update.
6658 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6659 * gdbarch.c: Rebuild.
6660 * gdbarch.h: Rebuild.
6661 * corelow.c (core_info_proc): Update.
6663 2014-06-16 Tom Tromey <tromey@redhat.com>
6665 * target.h (struct target_ops) <to_disconnect>: Make parameter
6667 (target_disconnect): Update.
6668 * target.c (target_disconnect): Make "args" const.
6669 * target-delegates.c: Rebuild.
6670 * remote.c (remote_disconnect): Update.
6671 * record.h (record_disconnect): Update.
6672 * record.c (record_disconnect): Update.
6673 * inf-child.c (inf_child_disconnect): Update.
6675 2014-06-16 Tom Tromey <tromey@redhat.com>
6677 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6678 * target.c (debug_to_rcmd, default_rcmd): Update.
6679 * target-delegates.c: Rebuild.
6680 * remote.c (remote_rcmd): Update.
6681 * monitor.c (monitor_rcmd): Update.
6683 2014-06-16 Pedro Alves <palves@redhat.com>
6685 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6686 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6687 have OBJF_SHARED set.
6688 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6689 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6690 instead of OBJF_USERLOADED.
6691 * objfiles.h (OBJF_SHARED): Update comment.
6692 (userloaded_objfile_contains_address_p): Rename to ...
6693 (shared_objfile_contains_address_p): ... this, and update
6695 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6697 (remove_symbol_file_command): Skip objfiles that don't have
6700 2014-06-16 Tom Tromey <tromey@redhat.com>
6702 * minsyms.h (prim_record_minimal_symbol)
6703 (prim_record_minimal_symbol_and_info): Update comments.
6705 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6707 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6708 or --without-guile, according to how GDB was built.
6710 2014-06-13 Tom Tromey <tromey@redhat.com>
6712 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6714 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6716 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6718 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6719 help_list.Pass all_commands, not -1, to help_list.
6720 * cli/cli-dump.c (dump_command, append_command)
6721 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6722 (binary_dump_command, binary_append_command): Pass all_commands,
6723 not -1, to help_list.
6724 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6726 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6728 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6730 * top.c (set_history): Pass all_commands, not -1, to help_list.
6731 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6732 all_commands, not -1, to help_list.
6733 * symfile.c (overlay_command): Pass all_commands, not -1, to
6735 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6737 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6739 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6741 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6742 not -1, to help_list.
6743 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6744 not -1, to help_list.
6745 * maint.c (maintenance_command, maintenance_info_command)
6746 (maintenance_print_command, maintenance_set_cmd): Pass
6747 all_commands, not -1, to help_list.
6748 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6750 * language.c (set_check): Pass all_commands, not -1, to help_list.
6751 * infcmd.c (unset_command): Pass all_commands, not -1, to
6753 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6755 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6757 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6759 * breakpoint.c (save_command): Pass all_commands, not -1, to
6761 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6762 all_commands, not -1, to help_list.
6764 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6766 * regcache.c (struct register_to_invalidate): New structure.
6767 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6769 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6771 2014-06-12 Yao Qi <yao@codesourcery.com>
6773 * varobj.c (varobj_get_num_children): Call
6774 varobj_is_dynamic_p.
6775 (varobj_list_children): Likewise.
6776 (varobj_update): Likewise. Update comments.
6778 2014-06-12 Yao Qi <yao@codesourcery.com>
6780 * varobj.c (varobj_pretty_printed_p): Rename to ...
6781 (varobj_is_dynamic_p): ... this. New function.
6782 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6783 (varobj_is_dynamic_p): Declare.
6784 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6785 (mi_print_value_p, varobj_update_one): Likewise.
6787 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6788 Yao Qi <yao@codesourcery.com>
6790 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6791 (varobj_get_iterator): Wrap up code for pretty-printer by
6792 "#if HAVE_PYTHON" and "#endif".
6793 (update_dynamic_varobj_children): Likewise.
6795 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6796 Yao Qi <yao@codesourcery.com>
6798 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6799 gdb_python_initialized is false. Move some code from varobj.c.
6800 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6801 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6802 (struct varobj_item): Moved to varobj-iter.h".
6803 (varobj_clear_saved_item): New function.
6804 (update_dynamic_varobj_children): Move python-related code to
6806 (free_variable): Call varobj_clear_saved_item and
6809 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6810 Yao Qi <yao@codesourcery.com>
6812 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6813 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6814 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6815 (py-varobj.o): New rule.
6816 * python/py-varobj.c: New file.
6817 * python/python-internal.h (py_varobj_get_iterator): Declare.
6818 * varobj-iter.h: New file.
6819 * varobj.c: Include "varobj-iter.h"
6820 (struct varobj) <child_iter>: Change its type from "PyObject *"
6821 to "struct varobj_iter *".
6822 <saved_item>: Likewise.
6823 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6824 [HAVE_PYTHON] (varobj_get_iterator): New function.
6825 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6826 python-specific code to python/py-varobj.c.
6827 (install_visualizer): Call varobj_iter_delete instead of
6829 * varobj.h (varobj_ensure_python_env): Declare.
6831 2014-06-12 Yao Qi <yao@codesourcery.com>
6833 * varobj.c (struct varobj_item): New structure.
6834 (create_child_with_value): Update declaration.
6835 (varobj_add_child): Replace arguments 'name' and 'value' with
6836 'item'. All callers updated.
6837 (install_dynamic_child): Likewise.
6838 (update_dynamic_varobj_children): Likewise.
6839 (varobj_add_child): Likewise.
6840 (create_child_with_value): Likewise.
6842 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6844 * NEWS: Create a new section for the next release branch.
6845 Rename the section of the current branch, now that it has
6848 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6850 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6851 * version.in: Bump version to 7.8.50.DATE-cvs.
6853 2014-06-11 Pedro Alves <palves@redhat.com>
6856 * ser-mingw.c (net_windows_socket_check_pending): New function.
6857 (net_windows_select_thread): Ignore spurious wakeups. Use
6858 net_windows_socket_check_pending.
6859 (net_windows_wait_handle): Check for pending events with
6860 ioctlsocket, through net_windows_socket_check_pending, instead of
6861 checking the socket's event.
6863 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6865 * python/python-internal.h (gdb_PyObject_GetAttrString)
6866 (gdb_PyObject_HasAttrString): New inline function definitions.
6867 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6868 char * of the second argument to PyObject_GetAttrString.
6870 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6872 * serial.c (serial_write): Fix index of character to be printed
6873 in call to serial_logchar when serial debug traces are enabled.
6875 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6877 * gdbtypes (resolve_dynamic_range): Add function description.
6879 2014-06-09 Pedro Alves <palves@redhat.com>
6881 * linux-nat.c (linux_child_follow_fork): Initialize status with
6882 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6883 inner block. Only pass the signal to PTRACE_DETACH if in pass
6886 2014-06-09 Gary Benson <gbenson@redhat.com>
6888 * common/signals.c (gdb_signal_from_host): Reorder to separate
6889 the always-available ANSI-standard signals from the signals that
6891 (do_gdb_signal_to_host): Likewise.
6892 * proc-events.c (signal_table): Likewise.
6894 2014-06-08 Hui Zhu <hui@codesourcery.com>
6896 * common/linux-ptrace.c (linux_disable_event_reporting): New
6898 * common/linux-ptrace.h (linux_disable_event_reporting): New
6900 * linux-nat.c (linux_child_follow_fork): Do a single step before
6903 2014-06-07 Keith Seitz <keiths@redhat.com>
6907 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6908 from symbol_matches_domain in symtab.c. All local callers
6909 of symbol_matches_domain updated.
6910 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6911 search STRUCT_DOMAIN.
6912 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6913 independently. standard_lookup will do that automatically.
6914 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6915 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6916 (cp_lookup_symbol_in_namespace): Likewise.
6917 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6918 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6919 may return a STRUCT_DOMAIN match.
6920 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6921 * cp-support.c: Include language.h.
6922 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6924 * psymtab.c (match_partial_symbol): Compare the requested
6925 domain with the symbol's domain directly.
6926 (lookup_partial_symbol): Likewise.
6927 * symtab.c (lookup_symbol_in_language): Explain when/why
6928 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6929 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6930 appropriate languages.
6931 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6932 and moved to ada-lang.c
6933 (lookup_block_symbol): Explain that this function only returns
6934 symbol matching the requested DOMAIN.
6935 Compare the requested domain with the symbol's domain directly.
6936 (iterate_over_symbols): Compare the requested domain with the
6937 symbol's domain directly.
6938 * symtab.h (symbol_matches_domain): Remove.
6940 2014-06-06 Doug Evans <xdje42@gmail.com>
6942 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6943 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6944 (gdbscm_guile_version_is_at_least): Declare.
6945 (gdbscm_scm_string_to_int): Declare.
6946 * guile/guile.c (gdbscm_guile_major_version): New global.
6947 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6948 (guile_datadir): New static global.
6949 (gdbscm_guile_data_directory): New function.
6950 (initialize_scheme_side): Update.
6951 (misc_guile_functions): Add guile-data-directory.
6952 (initialize_gdb_module): Fetch guile version number.
6953 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6954 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6955 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6956 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6958 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6959 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6960 * guile/scm-value.c (gdbscm_value_to_string): Only call
6961 scm_port_conversion_strategy if Guile version >= 2.0.6.
6963 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6965 * main.c (print_gdb_help): Add -q and --silent.
6967 2014-06-06 Gary Benson <gbenson@redhat.com>
6969 * common/signals.c: Remove preprocessor conditionals for
6970 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6971 SIGSEGV and SIGTERM.
6972 * proc-events.c: Likewise.
6974 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6976 * symfile.c (symfile_free_objfile): Remove restriction to
6978 * symfile-mem.c (symbol_file_add_from_memory): Call
6979 add_target_sections_of_objfile.
6981 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6983 * guile/scm-value.c (gdbscm_history_append_x): Use
6984 'vlscm_get_value_smob_arg_unsafe' instead of
6985 'vlscm_scm_to_value'.
6987 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6990 * utils.c (printchar): Don't escape at all if quoter is NUL.
6991 Update function documentation to clarify effect of parameter
6993 * remote.c (escape_buffer): Pass '\\' as the quoter to
6994 fputstrn_unfiltered.
6995 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6996 generate the output.
6997 (mi_solib_unloaded): Same.
6999 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7001 * development.sh: Delete.
7002 * Makefile.in (config.status): Adjust dependency on development.sh.
7003 * configure.ac: Adjust development.sh source call.
7004 * configure: Regenerate.
7006 2014-06-04 Doug Evans <xdje42@gmail.com>
7008 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7009 is_scheme_bkpt, spec.
7010 (bpscm_make_breakpoint_smob): Initialize new members.
7011 (gdbscm_create_breakpoint_x): Split into two ...
7012 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7013 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7014 (scheme_function breakpoint_functions): Update.
7015 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7016 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7017 register-breakpoint!.
7019 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7022 * mem-break.c (z_type_supported): Return zero if
7023 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7025 2014-06-04 Tom Tromey <tromey@redhat.com>
7027 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7028 value_from_contents_and_address_unresolved.
7029 (ada_template_to_fixed_record_type_1): Likewise.
7030 (ada_which_variant_applies): Likewise.
7031 * value.h (value_from_contents_and_address_unresolved): Declare.
7032 * value.c (value_from_contents_and_address_unresolved): New
7034 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7035 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7036 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7038 2014-06-04 Tom Tromey <tromey@redhat.com>
7040 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7042 2014-06-04 Tom Tromey <tromey@redhat.com>
7044 * procfs.c (procfs_attach): Make "args" const.
7045 * windows-nat.c (windows_attach): Make "args" const.
7046 * nto-procfs.c (procfs_attach): Make "args" const.
7047 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7048 * go32-nat.c (go32_attach): Make "args" const.
7049 * gnu-nat.c (gnu_attach): Make "args" const.
7050 * darwin-nat.c (darwin_attach): Make "args" const.
7051 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7052 * linux-nat.c (linux_nat_attach): Make "args" const.
7053 * remote.c (extended_remote_attach_1, extended_remote_attach):
7055 * target.h (struct target_ops) <to_attach>: Make "args" const.
7056 (find_default_attach): Likewise.
7057 * utils.c (parse_pid_to_attach): Make "args" const.
7058 * utils.h (parse_pid_to_attach): Update.
7060 2014-06-04 Tom Tromey <tromey@redhat.com>
7062 * target-delegates.c: Rebuild.
7063 * target.c (default_thread_address_space): New function.
7064 (target_thread_address_space): Simplify.
7065 * target.h (struct target_ops) <to_thread_address_space>: Add
7066 TARGET_DEFAULT_FUNC.
7068 2014-06-04 Doug Evans <xdje42@gmail.com>
7070 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7072 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7074 * record-btrace.c: Include event-loop.h and inf-loop.h.
7075 (record_btrace_resume_exec_dir)
7076 (record_btrace_async_inferior_event_handler)
7077 (record_btrace_handle_async_inferior_event): New.
7078 (record_btrace_open): Create async event handler.
7079 (record_btrace_close): Delete async event handler.
7080 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7081 Mark async event handler.
7082 (record_btrace_execution_direction): New.
7083 (init_record_btrace_ops): Initialize to_execution_direction.
7085 2014-06-03 Doug Evans <xdje42@gmail.com>
7087 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7088 (gdbscm_make_parameter): Ditto.
7090 2014-06-03 Doug Evans <dje@google.com>
7092 * exec.c (exec_close_1): Call clear_section_table instead of
7093 resize_section_table.
7094 (clear_section_table): New function.
7095 (resize_section_table): Make static. Rename arg num_added to
7097 * exec.h (clear_section_table): Declare.
7098 (resize_section_table): Delete.
7099 * progspace.c (release_program_space): Call clear_section_table
7100 instead of resize_section_table.
7102 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7104 * NEWS (Python Scripting): Add entry about the new xmethods
7107 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7109 * python/py-xmethods.c: New file.
7110 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7111 (objfpy_dealloc): XDECREF on the new xmethods field.
7112 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7114 (objfpy_get_xmethods): New function.
7115 (objfile_getset): New entry 'xmethods'.
7116 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7117 (pspy_dealloc): XDECREF on the new xmethods field.
7118 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7120 (pspy_get_xmethods): New function.
7121 (pspace_getset): New entry 'xmethods'.
7122 * python/python-internal.h: Add declarations for new functions.
7123 * python/python.c (_initialize_python): Invoke
7124 gdbpy_initialize_xmethods.
7125 * python/lib/gdb/__init__.py (xmethods): New
7127 * python/lib/gdb/xmethod.py: New file.
7128 * python/lib/gdb/command/xmethods.py: New file.
7130 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7132 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7133 best match method returned by find_overload_match is an xmethod.
7134 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7135 the best matching operator returned by find_overload_match is an
7137 * valops.c: #include "extension.h".
7138 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7139 Return void. The list of matching source methods is returned in
7140 "fn_list" and a vector of matching debug method workers is
7141 returned in "xm_worker_vec". Update all callers.
7142 (value_find_oload_method_list): Likewise.
7143 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7144 non-NULL, then the index of the best matching method in this
7145 vector is returned. Update all callers.
7146 (find_overload_match): Include xmethods while performing overload
7149 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7151 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7152 * extension-priv.h (struct extension_language_ops): Add the
7154 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7155 get_matching_xmethod_workers, get_xmethod_argtypes,
7156 invoke_xmethod, free_xmethod_worker,
7157 free_xmethod_worker_vec): New functions.
7158 * extension.h: #include "common/vec.h".
7159 New function declarations.
7160 (struct xmethod_worker): New struct.
7161 (VEC (xmethod_worker_ptr)): New vector type.
7162 (xmethod_worker_ptr): New typedef.
7163 (xmethod_worker_vec): Likewise.
7164 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7166 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7167 (struct builtin_type): New field "xmethod".
7168 * valarith.c (value_ptradd): Assert that the value argument is not
7170 * valops.c (value_must_coerce_to_target): Return 0 for
7171 lval_xcallable values.
7172 * value.c (struct value): New field XM_WORKER in the field
7174 (value_address, value_raw_address): Return 0 for lval_xcallable
7176 (set_value_address): Assert that the value is not an
7178 (value_free): Free the associated xmethod worker when freeing
7179 lval_xcallable values.
7180 (set_value_component_location): Assert that the WHOLE value is not
7182 (value_of_xmethod, call_xmethod): New functions.
7183 * value.h: Declare "struct xmethod_worker".
7184 Declare new functions value_of_xmethod, call_xmethod.
7186 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7187 Pedro Alves <palves@redhat.com>
7189 PR breakpoints/17000
7190 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7191 New function, extracted from software_breakpoint_inserted_here_p.
7192 (software_breakpoint_inserted_here_p): Replace factored out code
7193 by call to find_non_raw_software_breakpoint_inserted_here.
7194 (bp_target_info_copy_insertion_state): New function.
7195 (bkpt_insert_location): Handle the case of a single-step
7196 breakpoint already inserted at the same address.
7197 (bkpt_remove_location): Handle the case of a single-step
7198 breakpoint still inserted at the same address.
7199 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7200 breakpoint already inserted at the same address.
7201 (deprecated_remove_raw_breakpoint): Handle the case of a
7202 non-raw breakpoint still inserted at the same address.
7203 (find_single_step_breakpoint): New function, extracted from
7204 single_step_breakpoint_inserted_here_p.
7205 (find_single_step_breakpoint): New function,
7206 factored out from single_step_breakpoint_inserted_here_p.
7207 (single_step_breakpoint_inserted_here_p): Reimplement.
7209 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7211 Pushed by Joel Brobecker <brobecker@adacore.com>
7212 * source.c (show_substitute_path_command): Fix display of matching
7215 2014-06-03 Gary Benson <gbenson@redhat.com>
7217 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7219 2014-06-02 Doug Evans <xdje42@gmail.com>
7221 Add parameter support for Guile.
7222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7223 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7224 (scm-param.o): New rule.
7225 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7226 (gdbscm_misc_error): Declare.
7227 (gdbscm_canonicalize_command_name): Declare.
7228 (gdbscm_scm_to_host_string): Declare.
7229 (gdbscm_scm_from_host_string): Declare.
7230 (gdbscm_initialize_parameters): Declare.
7231 * guile/guile.c (initialize_gdb_module): Call
7232 gdbscm_initialize_parameters.
7233 * guile/lib/gdb.scm: Export parameter symbols.
7234 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7235 cmdscm_canonicalize_name and made public. All callers updated.
7236 * guile/scm-exception.c (gdbscm_misc_error): New function.
7237 * guile/scm-param.c: New file.
7238 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7239 (gdbscm_scm_to_host_string): New function.
7240 (gdbscm_scm_from_host_string): New function.
7241 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7243 2014-06-02 Doug Evans <xdje42@gmail.com>
7245 Add command support for Guile.
7246 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7247 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7248 (scm-cmd.o): New rule.
7249 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7250 (gdbscm_user_error_p): Declare.
7251 (gdbscm_parse_command_name): Declare.
7252 (gdbscm_valid_command_class_p): Declare.
7253 (gdbscm_initialize_commands): Declare.
7254 * guile/guile.c (initialize_gdb_module): Call
7255 gdbscm_initialize_commands.
7256 * guile/lib/gdb.scm: Export command symbols.
7257 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7258 (throw-user-error): New function.
7259 * guile/scm-cmd.c: New file.
7260 * guile/scm-exception.c (user_error_symbol): New static global.
7261 (gdbscm_user_error_p): New function.
7262 (gdbscm_initialize_exceptions): Set user_error_symbol.
7263 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7265 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7267 * top.c (command_loop): Handle comments here...
7268 (command_line_input): ... not here.
7270 2014-06-02 Doug Evans <xdje42@gmail.com>
7272 Add progspace support for Guile.
7273 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7274 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7275 (scm-progspace.o): New rule.
7276 * guile/guile-internal.h (pspace_smob): New typedef.
7277 (psscm_pspace_smob_pretty_printers): Declare.
7278 (psscm_pspace_smob_from_pspace): Declare.
7279 (psscm_scm_from_pspace): Declare.
7280 * guile/guile.c (initialize_gdb_module): Call
7281 gdbscm_initialize_pspaces.
7282 * guile/lib/gdb.scm: Export progspace symbols.
7283 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7285 (append-pretty-printer!): Ditto.
7286 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7288 * guile/scm-progspace.c: New file.
7290 2014-06-03 Alan Modra <amodra@gmail.com>
7292 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7293 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7295 2014-06-02 Doug Evans <dje@google.com>
7297 Add support for skeletonless type units.
7298 * dwarf2read.c (struct dwarf2_per_objfile): New member
7299 n_allocated_type_units.
7300 (struct dwarf2_per_objfile) <tu_stats>: New member
7301 nr_all_type_units_reallocs.
7302 (create_signatured_type_table_from_index): Initialize
7303 n_allocated_type_units
7304 (create_all_type_units): Ditto.
7305 (add_type_unit): Move up in file. New arg slot.
7306 All callers updated. Increase space for all_type_units more
7308 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7309 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7310 (lookup_dwp_signatured_type): Ditto.
7311 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7312 All callers updated.
7313 (build_type_psymtabs_1): Leave type_unit_groups as
7314 NULL if no TUs present.
7315 (print_tu_stats): New function.
7316 (process_skeletonless_type_unit): New function.
7317 (process_dwo_file_for_skeletonless_type_units): New
7319 (process_skeletonless_type_units): New function.
7320 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7321 Call print tu_stats if debugging enabled.
7323 2014-06-02 Pedro Alves <palves@redhat.com>
7325 * breakpoint.c (build_target_command_list): Don't build a command
7326 list if we have any duplicate location that isn't a dprintf.
7328 2014-06-02 Pedro Alves <palves@redhat.com>
7330 * breakpoint.c (dprintf_breakpoint_hit): New function.
7331 (initialize_breakpoint_ops): Install it as dprintf's
7332 breakpoint_hit method.
7334 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7336 * source.c (substitute_path_rule_matches): Simplify using
7337 filename_ncmp instead of FILENAME_CMP.
7339 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7341 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7343 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7345 * configure.ac: When Guile is available, check for the
7346 availability of 'scm_new_smob'.
7347 * configure, config.h.in: Regenerate.
7348 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7351 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7353 * frame.c (struct frame_info): Add stop_string field.
7354 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7355 (get_prev_frame_always): Old content moved into
7356 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7357 TRY_CATCH, handle MEMORY_ERROR exceptions.
7358 (frame_stop_reason_string): New function definition.
7359 * frame.h (unwind_stop_reason_to_string): Extend comment to
7360 mention frame_stop_reason_string.
7361 (frame_stop_reason_string): New function declaration.
7362 * stack.c (frame_info): Switch to frame_stop_reason_string.
7363 (backtrace_command_1): Switch to frame_stop_reason_string.
7364 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7365 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7366 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7368 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7370 * frame.c (frame_stop_reason_string): Rename to ...
7371 (unwind_stop_reason_to_string): this.
7372 * frame.h (frame_stop_reason_string): Rename to ...
7373 (unwind_stop_reason_to_string): this.
7374 * stack.c (frame_info): Update call to frame_stop_reason_string.
7375 (backtrace_command_1): Likewise.
7376 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7377 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7379 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7381 * frame.c (remove_prev_frame): New function.
7382 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7385 2014-05-29 Pedro Alves <palves@redhat.com>
7387 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7388 and make it const. When a single-step decays to a continue,
7389 clear 'step', not 'hw_step'. Pass whether the caller wanted
7390 to step to user_visible_resume_ptid, not what we ask the
7393 2014-05-29 Pedro Alves <palves@redhat.com>
7395 * infrun.c (process_event_stop_test, handle_step_into_function)
7396 (handle_step_into_function_backward): Adjust.
7397 Don't set the even thread's stop_step and call stop_waiting before
7398 calling end_stepping_range. Instead do that ...
7399 (end_stepping_range): ... here. Take an ecs pointer parameter.
7401 2014-05-29 Pedro Alves <palves@redhat.com>
7403 * infrun.c (stop_stepping): Rename to ...
7404 (stop_waiting): ... this.
7405 (proceed): Update comment.
7406 (process_event_stop_test, handle_inferior_event)
7407 (handle_signal_stop, handle_step_into_function)
7408 (handle_step_into_function_backward): Update.
7410 2014-05-29 Pedro Alves <palves@redhat.com>
7412 * infcall.c (run_inferior_call): Don't check whether the current
7413 thread is running after the proceed call.
7415 2014-05-29 Pedro Alves <palves@redhat.com>
7416 Tom Tromey <tromey@redhat.com>
7418 * NEWS: Mention "maint set target-async", "set mi-async", and that
7419 background execution commands are now always available.
7420 * target.h (target_async_permitted): Update comment.
7421 * target.c (target_async_permitted, target_async_permitted_1):
7423 (set_target_async_command): Rename to ...
7424 (maint_set_target_async_command): ... this.
7425 (show_target_async_command): Rename to ...
7426 (maint_show_target_async_command): ... this.
7427 (_initialize_target): Adjust.
7428 * infcmd.c (prepare_execution_command): Make extern.
7429 * inferior.h (prepare_execution_command): Declare.
7430 * infrun.c (set_observer_mode): Leave target async alone.
7431 * mi/mi-interp.c (mi_interpreter_init): Install
7432 mi_on_sync_execution_done as sync_execution_done observer.
7433 (mi_on_sync_execution_done): New function.
7434 (mi_execute_command_input_handler): Don't print the prompt if we
7435 just started a synchronous command with an async target.
7436 (mi_on_resume): Check sync_execution before printing prompt.
7437 * mi/mi-main.h (mi_async_p): Declare.
7438 * mi/mi-main.c: Include gdbcmd.h.
7439 (mi_async_p): New function.
7440 (mi_async, mi_async_1): New globals.
7441 (set_mi_async_command, show_mi_async_command, mi_async): New
7443 (exec_continue): Call prepare_execution_command.
7444 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7445 (mi_execute_async_cli_command): Use mi_async_p.
7446 (_initialize_mi_main): Install "set mi-async". Make
7447 "target-async" a deprecated alias.
7449 2014-05-29 Pedro Alves <palves@redhat.com>
7451 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7452 (_initialize_cli_interp): Adjust.
7453 * event-loop.c: Include "observer.h".
7454 (start_event_loop): Notify 'command_error' observers instead of
7455 calling display_gdb_prompt. Remove FIXME comment.
7456 * event-top.c (display_gdb_prompt): Remove call into the
7458 * inf-loop.c: Include "observer.h".
7459 (inferior_event_handler): Notify 'command_error' observers instead
7460 of calling display_gdb_prompt.
7461 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7462 observers instead of calling display_gdb_prompt.
7463 * interps.c (interp_set): Don't call display_gdb_prompt.
7464 (current_interp_display_prompt_p): Delete.
7465 * interps.h (interp_prompt_p): Delete declaration.
7466 (interp_prompt_p_ftype): Delete.
7467 (struct interp_procs) <prompt_proc_p>: Delete field.
7468 (current_interp_display_prompt_p): Delete declaration.
7469 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7470 (_initialize_mi_interp): Adjust.
7471 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7472 'command_error' observers.
7473 (tui_on_sync_execution_done, tui_on_command_error): New
7475 (tui_display_prompt_p): Delete.
7476 (_initialize_tui_interp): Adjust.
7478 2014-05-29 Pedro Alves <palves@redhat.com>
7481 * cli/cli-interp.c: Include infrun.h and observer.h.
7482 (cli_uiout, cli_interp): New globals.
7483 (cli_on_signal_received, cli_on_end_stepping_range)
7484 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7486 (cli_interpreter_init): Install them as 'end_stepping_range',
7487 'signal_received' 'signal_exited', 'exited' and 'no_history'
7489 (_initialize_cli_interp): Remove cli_interp local.
7490 * infrun.c (handle_inferior_event): Call the several stop reason
7491 observers instead of printing the stop reason directly.
7492 (end_stepping_range): New function.
7493 (print_end_stepping_range_reason, print_signal_exited_reason)
7494 (print_exited_reason, print_signal_received_reason)
7495 (print_no_history_reason): Make static, and add an uiout
7496 parameter. Print to that instead of to CURRENT_UIOUT.
7497 * infrun.h (print_end_stepping_range_reason)
7498 (print_signal_exited_reason, print_exited_reason)
7499 (print_signal_received_reason print_no_history_reason): New
7501 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7503 <cli_uiout>: New field.
7504 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7505 uiout for CLI output. Install 'signal_received',
7506 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7508 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7509 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7510 (mi_on_no_history): New functions.
7511 (ui_out_free_cleanup): Delete function.
7512 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7513 instead use the one already stored in the MI interpreter data.
7514 (mi_ui_out): Adjust.
7515 * tui/tui-interp.c: Include infrun.h and observer.h.
7516 (tui_interp): New global.
7517 (tui_on_signal_received, tui_on_end_stepping_range)
7518 (tui_on_signal_exited, tui_on_exited)
7519 (tui_on_no_history): New functions.
7520 (tui_init): Install them as 'end_stepping_range',
7521 'signal_received' 'signal_exited', 'exited' and 'no_history'
7523 (_initialize_tui_interp): Delete tui_interp local.
7525 2014-05-29 Pedro Alves <palves@redhat.com>
7528 * linux-nat.c (linux_nat_resume_callback): Rename the second
7529 parameter to 'except'. Skip LP if it points to EXCEPT.
7530 (linux_nat_resume): Don't mark the event lwp as not stopped
7531 before resuming sibling lwps. Instead ask
7532 linux_nat_resume_callback to skip the event lwp. Mark it as not
7533 stopped after actually resuming it.
7534 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7536 (wait_lwp): Mark the lwp as stopped here.
7537 (stop_wait_callback): Mark the lwp as not stopped right after
7538 resuming it. Don't mark lwps as stopped here.
7539 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7540 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7542 2014-05-29 Pedro Alves <palves@redhat.com>
7545 * infrun.c (resume): Determine how much to resume depending on
7546 whether the caller wanted a step, not whether we can hardware step
7547 the target. Mark all threads that we intend to run as running,
7548 unless we're calling an inferior function.
7549 (normal_stop): If the thread is running an infcall, don't finish
7551 * target.c (target_resume): Don't mark threads as running here.
7553 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7555 * serial.c (_initialize_serial): Remove support for
7556 the "set remotebaud" and "show remotebaud" commands.
7557 * NEWS: Add entry documenting the removal of that command.
7559 2014-05-28 Yao Qi <yao@codesourcery.com>
7561 * charset.c: Fix typo in comments.
7563 2014-05-27 Gary Benson <gbenson@redhat.com>
7565 * utils.c (internal_vproblem): Prompt for a bug report.
7567 2014-05-26 Andy Wingo <wingo@igalia.com>
7569 * guile/scm-arch.c (arscm_mark_arch_smob):
7570 * guile/scm-block.c (bkscm_mark_block_smob)
7571 (bkscm_mark_block_syms_progress_smob):
7572 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7573 * guile/scm-exception.c (exscm_mark_exception_smob):
7574 * guile/scm-frame.c (frscm_mark_frame_smob):
7575 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7576 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7577 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7578 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7579 (ppscm_mark_pretty_printer_worker_smob):
7580 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7581 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7582 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7583 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7585 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7588 2014-05-26 Andy Wingo <wingo@igalia.com>
7589 Doug Evans <xdje42@gmail.com>
7591 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7592 empty_base_class. All uses updated.
7593 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7594 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7596 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7597 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7598 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7599 (gdbscm_gsmob_has_property_p, add_property_name)
7600 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7601 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7602 (gdb-object-has-property?, gdb-object-properties): Remove.
7603 (gdb-object-kind): Renamed from gsmob-kind.
7605 2014-05-26 Andy Wingo <wingo@igalia.com>
7607 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7608 * configure: Regenerate.
7610 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7612 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7614 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7616 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7617 (replay_memory_access_read_only, replay_memory_access_read_write)
7618 (replay_memory_access_types, replay_memory_access)
7619 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7620 (cmd_set_record_btrace, cmd_show_record_btrace)
7621 (cmd_show_replay_memory_access): New.
7622 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7623 (record_btrace_remove_breakpoint): Replace
7624 record_btrace_allow_memory_access with replay_memory_access.
7625 (_initialize_record_btrace): Add commands.
7626 * NEWS: Announce it.
7628 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7630 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7632 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7634 * MAINTAINERS (Write After Approval): Move self back from
7637 2014-05-22 Pedro Alves <palves@redhat.com>
7639 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7640 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7641 (disable_randomization, enum exec_direction_kind)
7642 (execution_direction, stop_registers, start_remote)
7643 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7644 (wait_for_inferior, normal_stop, get_last_target_status)
7645 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7646 (insert_step_resume_breakpoint_at_sal)
7647 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7648 (set_step_info, print_stop_event, signal_stop_state)
7649 (signal_print_state, signal_pass_state, signal_stop_update)
7650 (signal_print_update, signal_pass_update)
7651 (update_signals_program_target, clear_exit_convenience_vars)
7652 (displaced_step_dump_bytes, update_observer_mode)
7653 (signal_catch_update, gdb_signal_from_command): Move
7655 * infrun.h: ... to this new file.
7656 * amd64-tdep.c: Include infrun.h.
7657 * annotate.c: Include infrun.h.
7658 * arch-utils.c: Include infrun.h.
7659 * arm-linux-tdep.c: Include infrun.h.
7660 * arm-tdep.c: Include infrun.h.
7661 * break-catch-sig.c: Include infrun.h.
7662 * breakpoint.c: Include infrun.h.
7663 * common/agent.c: Include infrun.h instead of inferior.h.
7664 * corelow.c: Include infrun.h.
7665 * event-top.c: Include infrun.h.
7666 * go32-nat.c: Include infrun.h.
7667 * i386-tdep.c: Include infrun.h.
7668 * inf-loop.c: Include infrun.h.
7669 * infcall.c: Include infrun.h.
7670 * infcmd.c: Include infrun.h.
7671 * infrun.c: Include infrun.h.
7672 * linux-fork.c: Include infrun.h.
7673 * linux-nat.c: Include infrun.h.
7674 * linux-thread-db.c: Include infrun.h.
7675 * monitor.c: Include infrun.h.
7676 * nto-tdep.c: Include infrun.h.
7677 * procfs.c: Include infrun.h.
7678 * record-btrace.c: Include infrun.h.
7679 * record-full.c: Include infrun.h.
7680 * remote-m32r-sdi.c: Include infrun.h.
7681 * remote-mips.c: Include infrun.h.
7682 * remote-notif.c: Include infrun.h.
7683 * remote-sim.c: Include infrun.h.
7684 * remote.c: Include infrun.h.
7685 * reverse.c: Include infrun.h.
7686 * rs6000-tdep.c: Include infrun.h.
7687 * s390-linux-tdep.c: Include infrun.h.
7688 * solib-irix.c: Include infrun.h.
7689 * solib-osf.c: Include infrun.h.
7690 * solib-svr4.c: Include infrun.h.
7691 * target.c: Include infrun.h.
7692 * top.c: Include infrun.h.
7693 * windows-nat.c: Include infrun.h.
7694 * mi/mi-interp.c: Include infrun.h.
7695 * mi/mi-main.c: Include infrun.h.
7696 * python/py-threadevent.c: Include infrun.h.
7698 2014-05-22 Pedro Alves <palves@redhat.com>
7700 * infrun.c (handle_inferior_event): Store the exit code for
7701 --return-child-result here, instead of ...
7702 (print_exited_reason): ... here.
7704 2014-05-21 Pedro Alves <palves@redhat.com>
7707 * gdbthread.h (struct thread_control_state): New field
7709 * infrun.c (follow_fork): Copy the new thread control field to the
7711 (clear_proceed_status_thread): Clear the new thread control field.
7712 (proceed): Set the new thread control field.
7713 * interps.h (command_interp): Declare.
7714 * interps.c (command_interpreter): New global.
7715 (command_interp): New function.
7716 (interp_exec): Set `command_interpreter' while here.
7717 * cli-out.c (cli_uiout_dtor): New function.
7718 (cli_ui_out_impl): Install it.
7719 * mi/mi-interp.c: Include cli-out.h.
7720 (mi_cmd_interpreter_exec): Add comment.
7721 (restore_current_uiout_cleanup): New function.
7722 (ui_out_free_cleanup): New function.
7723 (mi_on_normal_stop): If finishing an execution command started by
7724 a CLI command, or any kind of breakpoint-like event triggered,
7725 print the stop event to the output (CLI) stream.
7726 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7728 2014-05-21 Pedro Alves <palves@redhat.com>
7730 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7731 current source line having changed.
7732 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7733 * infrun.c (normal_stop): Adjust call to
7734 set_current_sal_from_frame.
7735 * source.c (clear_lines_listed_range): New function.
7736 (set_current_source_symtab_and_line, identify_source_line): Clear
7737 the lines listed range.
7738 (line_info): Handle the first "info line" after the current source
7739 line having changed.
7740 * stack.c (print_stack_frame): Remove center handling.
7741 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7744 2014-05-21 Pedro Alves <palves@redhat.com>
7746 * inf-child.c (inf_child_mourn_inferior): New function.
7747 * inf-child.h (inf_child_mourn_inferior): New declaration.
7748 * darwin-nat.c (darwin_mourn_inferior): Use
7749 inf_child_mourn_inferior.
7750 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7751 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7752 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7753 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7754 * windows-nat.c (windows_mourn_inferior): Likewise.
7756 2014-05-21 Doug Evans <xdje42@gmail.com>
7758 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7760 2014-05-21 Doug Evans <xdje42@gmail.com>
7762 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7763 (gdbscm_out_of_range_error): Ditto.
7764 (gdbscm_memory_error): Ditto.
7765 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7766 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7767 (gdbscm_out_of_range_error): Update.
7768 (gdbscm_memory_error): Update.
7769 (gdbscm_scm_to_target_string_unsafe): Delete.
7771 2014-05-21 Pedro Alves <palves@redhat.com>
7773 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7775 (inf_child_open_target): New function.
7776 (inf_child_open): Use inf_child_open_target to push the target
7777 instead of erroring out.
7778 (inf_child_disconnect, inf_child_close)
7779 (inf_child_maybe_unpush_target): New functions.
7780 (inf_child_target): Install inf_child_disconnect and
7781 inf_child_close. Store a pointer to the returned object.
7782 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7784 * target.c (auto_connect_native_target): New global.
7785 (show_default_run_target): New function.
7786 (find_default_run_target): Return NULL if automatically connecting
7787 to the native target is disabled.
7788 (_initialize_target): Install set/show auto-connect-native-target.
7789 * NEWS: Mention "set auto-connect-native-target", and "target
7791 * linux-nat.c (super_close): New global.
7792 (linux_nat_close): Call super_close.
7793 (linux_nat_add_target): Store a pointer to the base class's
7795 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7796 inf_child_maybe_unpush.
7797 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7799 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7800 the inferior. Use inf_child_maybe_unpush_target.
7801 (inf_ttrace_attach): Don't push the target if it is already
7803 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7804 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7805 after mourning the inferior. Use inf_child_maybe_unpush_target.
7806 (darwin_attach_pid): Don't push the target if it is already
7808 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7809 mourning the inferior. Use inf_child_maybe_unpush_target.
7810 (gnu_detach): Use inf_child_maybe_unpush_target.
7811 * go32-nat.c (go32_create_inferior): Don't push the target if it
7813 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7814 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7815 (procfs_open): Rename to ...
7816 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7817 comments. Can target_preopen before changing node. Call
7818 inf_child_open_target to push the target explicitly.
7819 (procfs_attach): Don't push the target if it is already pushed.
7820 (procfs_detach): Use inf_child_maybe_unpush_target.
7821 (procfs_create_inferior): Don't push the target if it is already
7823 (nto_native_ops): New global.
7824 (procfs_open): Reimplement.
7825 (procfs_native_open): New function.
7826 (init_procfs_targets): Install procfs_native_open as to_open of
7827 "target native". Store a pointer to the "native" target in
7829 * procfs.c (procfs_attach): Don't push the target if it is already
7831 (procfs_detach): Use inf_child_maybe_unpush_target.
7832 (procfs_mourn_inferior): Only unpush the target after mourning the
7833 inferior. Use inf_child_maybe_unpush_target.
7834 (procfs_init_inferior): Don't push the target if it is already
7836 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7837 if it is already pushed.
7839 2014-05-21 Pedro Alves <palves@redhat.com>
7841 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7842 and "procfs" targets are now called "native" instead.
7844 2014-05-21 Pedro Alves <palves@redhat.com>
7846 * go32-nat.c (go32_open): Delete.
7847 (go32_target): Don't override the to_open method.
7849 2014-05-21 Pedro Alves <palves@redhat.com>
7851 * nto-procfs.c (procfs_can_run): New function.
7852 (nto_procfs_ops): New global.
7853 (init_procfs_targets): New, based on procfs_target. Install
7854 "target native" in addition to "target procfs".
7855 (_initialize_procfs): Call init_procfs_targets instead of adding
7858 2014-05-21 Pedro Alves <palves@redhat.com>
7860 * windows-nat.c (windows_target): Don't override to_shortname,
7861 to_longname or to_doc.
7863 2014-05-21 Pedro Alves <palves@redhat.com>
7865 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7868 2014-05-21 Pedro Alves <palves@redhat.com>
7870 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7871 to_shortname, to_longname or to_doc.
7873 2014-05-21 Pedro Alves <palves@redhat.com>
7875 * go32-nat.c (go32_target): Don't override to_shortname,
7876 to_longname or to_doc.
7878 2014-05-21 Pedro Alves <palves@redhat.com>
7880 * inf-child.c (inf_child_open): Remove mention of "child".
7881 (inf_child_target): Rename target to "native" instead of "child".
7883 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7885 * Makefile.in (SFILES): Delete "regset.c".
7886 (COMMON_OBS): Delete "regset.o".
7888 * regset.h (regset_alloc): Delete prototype.
7890 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7892 * sparc-linux-tdep.c (sparc32_linux_gregset)
7893 (sparc32_linux_fpregset): New static regset structures.
7894 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7895 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7897 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7898 (sparc64_linux_fpregset): New static regset structures.
7899 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7900 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7901 New static regset structures.
7902 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7903 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7904 New static regset structures.
7905 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7906 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7907 New static regset structures.
7908 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7909 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7910 New static regset structures.
7911 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7913 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7915 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7916 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7917 register maps ("regmaps") from "*regset" to "*regmap". Do this
7918 for all regmap types and variables.
7919 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7920 (sparc32_linux_supply_core_gregset)
7921 (sparc32_linux_collect_core_gregset)
7922 (sparc32_linux_supply_core_fpregset)
7923 (sparc32_linux_collect_core_fpregset): Likewise.
7924 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7925 (sparc_gregmap, sparc_fpregmap): ... these.
7926 (sparc_supply_gregset, sparc_collect_gregset)
7927 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7928 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7929 (_initialize_sparc_nat): Rename regmaps.
7930 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7931 (sparc_gregmap, sparc_fpregmap): ... these.
7932 (sparc_supply_gregset, sparc_collect_gregset)
7933 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7934 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7936 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7937 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7939 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7941 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7942 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7943 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7945 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7946 (sparc32_bsd_fpregset): Rename to...
7947 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7948 (sparc32_bsd_fpregmap): ... these.
7949 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7950 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7951 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7952 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7953 (struct sparc_gregmap, struct sparc_fpregmap)
7954 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7955 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7956 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7957 (sparc32_supply_regset, sparc32_collect_gregset)
7958 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7960 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7961 (sparc64_linux_ptrace_gregmap): ... this.
7962 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7963 (_initialize_sparc64_linux_nat): Rename regmaps.
7964 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7965 (sparc64_linux_core_gregmap): ... this.
7966 (sparc64_linux_supply_core_gregset)
7967 (sparc64_linux_collect_core_gregset)
7968 (sparc64_linux_supply_core_fpregset)
7969 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7970 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7971 (sparc64_sol2_fpregset): Rename to...
7972 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7973 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7974 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7976 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7977 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7978 (sparc64_bsd_fpregset): Rename to...
7979 (struct sparc_gregmap, sparc64_sol2_gregmap)
7980 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7981 (sparc64_bsd_fpregmap): ... these.
7982 (sparc64_supply_gregset, sparc64_collect_gregset)
7983 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7985 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7986 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7987 (sparc64fbsd_gregmap): ... this.
7988 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7989 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7991 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7992 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7993 (sparc64nbsd_collect_fpregset): Likewise.
7994 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7995 (sparc64nbsd_gregmap): ... this.
7996 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7998 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7999 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8000 (sparc64obsd_gregmap): ... this.
8001 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8003 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8004 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8005 (sparc32nbsd_gregmap): ... this.
8006 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8011 * score-tdep.c (score7_linux_gregset): New static regset
8013 (score7_linux_regset_from_core_section): Remove dynamic regset
8015 (score_gdbarch_init): Drop allocation of tdep structure.
8016 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8018 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8020 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8022 (am33_regset_from_core_section): Remove dynamic regset
8025 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8027 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8028 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8030 (mips_linux_regset_from_core_section): Remove dynamic regset
8032 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8033 'gregset64', 'fpregset', and 'fpregset64'.
8034 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8035 deleted tdep fields.
8037 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8039 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8041 (amd64_regset_from_core_section): Remove dynamic regset
8043 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8045 (amd64obsd_regset_from_core_section): Remove dynamic regset
8047 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8049 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8050 x86-common regset supply function.
8051 * i386-tdep.c (i386_collect_gregset): Make static.
8052 (i386_gregset): New global regset structure.
8053 (i386_fpregset, i386_xstateregset): New static regset structures.
8054 (i386_regset_from_core_section): Remove dynamic regset
8056 (i386_gdbarch_init): Remove initialization of tdep fields
8057 'gregset', 'fpregset', and 'xstateregset'.
8058 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8059 'fpregset', and 'xstateregset'.
8060 (i386_collect_gregset): Remove prototype.
8061 (i386_gregset): New declaration.
8062 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8064 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8067 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8069 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8070 (arm_linux_vfpregset): New static regset structures.
8071 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8073 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8074 and 'vfpregset' fields.
8076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8078 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8079 (aarch64_linux_fpregset): New static regset structures.
8080 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8081 of regset structures.
8082 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8087 * regset.h (struct regset): Remove gdbarch field.
8088 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8089 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8090 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8092 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8093 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8094 (ppc32_linux_vsxregset): Likewise.
8095 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8096 via the regcache instead of the regset.
8097 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8098 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8099 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8100 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8103 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8105 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8106 Constify structures.
8107 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8108 (alphanbsd_aout_gregset): Likewise.
8109 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8110 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8112 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8113 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8115 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8116 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8117 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8118 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8119 * m88k-tdep.c (m88k_gregset): Likewise.
8120 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8121 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8122 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8123 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8124 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8125 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8126 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8127 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8128 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8130 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8131 * sh-tdep.h (sh_corefile_gregset): Likewise.
8132 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8133 * vax-tdep.c (vax_gregset): Likewise.
8135 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8137 Fix TLS access for -static -pthread.
8138 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8139 (try_thread_db_load_1): Initialize it.
8140 (thread_db_get_thread_local_address): Call it if LM is zero.
8141 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8142 * target.h (struct target_ops) (to_get_thread_local_address): Add
8143 load_module_addr comment.
8145 2014-05-21 Pedro Alves <palves@redhat.com>
8147 * dcache.c (dcache_read_memory_partial): If reading the cache line
8148 fails, fallback to reading just the memory the caller wanted.
8150 2014-05-20 Doug Evans <dje@google.com>
8152 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8153 instead of get_current_arch.
8155 2014-05-20 Pedro Alves <palves@redhat.com>
8157 * NEWS: Mention that compare-sections now works with all targets.
8159 * remote.c (PACKET_qCRC): New enum value.
8160 (remote_verify_memory): Don't send qCRC if the target has no
8161 execution. Use packet_support/packet_ok. If the target doesn't
8162 support the qCRC packet, fallback to a deep memory copy.
8163 (compare_sections_command): Say "target image" instead of "remote
8165 (_initialize_remote): Add PACKET_qCRC to the list of config
8166 packets that have no associated command. Extend comment.
8167 * target.c (simple_verify_memory, default_verify_memory): New
8169 * target.h (struct target_ops) <to_verify_memory>: Default to
8170 default_verify_memory.
8171 (simple_verify_memory): New declaration.
8172 * target-delegates.c: Regenerate.
8174 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8176 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8178 2014-05-20 Hui Zhu <hui@codesourcery.com>
8179 Yao Qi <yao@codesourcery.com>
8182 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8183 and change address of sp and pc.
8185 2014-05-19 Tom Tromey <tromey@redhat.com>
8187 * gdbtypes.c (rank_function): Use XNEWVEC.
8188 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8190 2014-05-19 Doug Evans <dje@google.com>
8192 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8193 build_type_unit_groups and moved closer to only caller. Remove
8194 arguments. All references updated. Remove outdated .gdb_index
8196 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8197 build_type_psymtabs_1.
8199 2014-05-19 Doug Evans <dje@google.com>
8201 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8202 n_type_unit_groups, all_type_unit_groups. All uses removed.
8203 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8204 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8205 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8206 (add_type_unit_group_to_table): Delete.
8208 2014-05-19 Doug Evans <dje@google.com>
8210 * eval.c (evaluate_subexp_standard): Add some comments.
8212 2014-05-17 Doug Evans <xdje42@gmail.com>
8214 * progspace.c (remove_program_space): Delete, unused.
8215 * progspace.h (remove_program_space): Ditto.
8217 2014-05-17 Doug Evans <xdje42@gmail.com>
8219 * inferior.c (prune_inferiors): Fix comment.
8220 (remove_inferior_command): Call prune_program_spaces.
8222 2014-05-16 Doug Evans <dje@google.com>
8224 New command line option -D.
8226 * main.c (set_gdb_data_directory): New function.
8227 (captured_main): Recognize -D. Flag error for --data-directory "".
8228 Call set_gdb_data_directory.
8229 (print_gdb_help): Print --data-directory, -D.
8230 * main.h (set_gdb_data_directory): Declare.
8231 * top.c (staged_gdb_datadir): New static global.
8232 (set_gdb_datadir): Call set_gdb_data_directory
8233 (show_gdb_datadir): New function.
8234 (init_main): Update init of data-directory parameter.
8236 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8238 Import the "dirfd" gnulib module.
8239 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8240 * gnulib/aclocal.m4: Update.
8241 * gnulib/config.in: Update.
8242 * gnulib/configure: Update.
8243 * gnulib/import/Makefile.am: Update.
8244 * gnulib/import/Makefile.in: Update.
8245 * gnulib/import/dirfd.c: New.
8246 * gnulib/import/m4/dirfd.m4: New.
8247 * gnulib/import/m4/gnulib-cache.m4: Update.
8248 * gnulib/import/m4/gnulib-comp.m4: Update.
8250 2014-05-16 Pierre Muller <muller@sourceware.org>
8251 Yao Qi <yao@codesourcery.com>
8253 * valprint.c (print_wchar): Move the code on checking whether
8254 W is a printable wide char to the default branch of switch
8255 statement below. Call wchar_printable instead of gdb_iswprint.
8257 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8259 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8260 ldr.w and ldrd instructions.
8262 2014-05-15 Doug Evans <dje@google.com>
8264 * dwarf2read.c (read_structure_type): Delete outdated comments.
8266 2014-05-14 Tom Tromey <tromey@redhat.com>
8268 * macrocmd.c (print_macro_definition): Reindent.
8270 2014-05-13 Doug Evans <xdje42@gmail.com>
8272 * python/py-cmd.c (cmdpy_completer): Add comment.
8273 (completers): Make const.
8275 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8277 * infrun.c (resume): Remove should_resume (unused). Move up
8278 declaration of resume_ptid.
8280 2014-05-13 Tom Tromey <tromey@redhat.com>
8282 * language.h (unop_type_check): Remove.
8283 (binop_type_check): Don't declare.
8285 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8287 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8288 call to regcache_raw_collect.
8290 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8292 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8293 mi_console->quote as the quoting character.
8295 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8297 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8299 2014-04-29 Tom Tromey <tromey@redhat.com>
8301 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8302 "show debug varobj".
8304 2014-05-07 Kyle McMartin <kyle@redhat.com>
8306 Pushed by Joel Brobecker <brobecker@adacore.com>.
8307 * aarch64-tdep.c (aarch64_software_single_step): New function.
8308 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8309 with aarch64_software_single_step.
8311 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8315 2014-05-05 Keith Seitz <keiths@redhat.com>
8317 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8318 variable or history value is successfully parsed.
8320 2014-05-05 Yao Qi <yao@codesourcery.com>
8321 Pedro Alves <palves@redhat.com>
8323 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8324 address of blocks that intersects the requested range. Trim
8325 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8327 * ctf.c (ctf_xfer_partial): Likewise.
8329 2014-05-05 Yao Qi <yao@codesourcery.com>
8331 * printcmd.c (display_command): Remove the check to
8332 target_has_execution.
8334 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8336 * ppcobsd-nat.c: Include "obsd-nat.h".
8337 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8339 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8341 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8343 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8344 and 16-bit signed and unsigned arguments. Update comment.
8345 (stap_parse_probe_arguments): Extend code to handle such
8346 arguments. Use warning instead of complaint to notify about
8347 unrecognized bitness.
8349 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8351 PR breakpoints/16889
8352 * stap-probe.c (stap_parse_probe_arguments): Simplify
8353 check for non-prefixed probes (i.e., probes whose
8354 arguments do not start with "N@"). Always set the
8355 argument type to a sane value.
8357 2014-05-01 David Taylor <dtaylor@emc.com>
8359 * remote.c (compare_sections_command): Add -r option to compare
8360 all loadable read-only sections.
8362 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8364 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8365 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8367 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8368 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8369 Remove unused CORE_ADDR argument. Update all callers.
8371 2014-04-29 Pedro Alves <palves@redhat.com>
8373 * remote.c (struct packet_config) <detect>: Extend comment.
8374 (add_packet_config_cmd): Don't set the config's detect or support
8376 (init_all_packet_configs): Also initialize the config's 'detect'
8378 (reset_all_packet_configs_support): New function.
8379 (remote_open_1): Call reset_all_packet_configs_support instead of
8380 init_all_packet_configs.
8381 (_initialize_remote): Initialize all packet configs. Assert that
8382 all packets have an associated command, except a few known
8385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8387 * dwarf2read.c (read_subrange_type): Handle dynamic
8388 DW_AT_lower_bound attributes.
8390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8392 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8393 dynamic bounds before computing its upper bound.
8394 (ada_discrete_type_low_bound): Same as above with the lower bound.
8396 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8398 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8399 range types. Adjust the array handling implementation to
8400 take advantage of this change.
8401 (resolve_dynamic_range): New function, mostly extracted from
8402 resolve_dynamic_bounds.
8403 (resolve_dynamic_array): New function, mostly extracted from
8404 resolve_dynamic_bounds.
8405 (resolve_dynamic_bounds): Delete.
8406 (resolve_dynamic_type): Reimplement. Add handling of
8407 TYPE_CODE_RANGE types.
8409 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8411 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8412 handling of parallel ___XA types.
8414 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8416 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8417 unnecessary second call to static_unwrap_type.
8419 2014-04-27 Hui Zhu <hui@codesourcery.com>
8421 * stack.c (print_frame_info): Call do_gdb_disassembly with
8422 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8424 2014-04-26 Doug Evans <xdje42@gmail.com>
8426 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8428 2014-04-25 Pedro Alves <palves@redhat.com>
8431 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8432 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8433 and newline from built string.
8434 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8435 (linux_ptrace_attach_fail_reason): ... this.
8436 * linux-nat.c (linux_nat_attach): Adjust to use
8437 linux_ptrace_attach_fail_reason.
8439 2014-04-25 Pedro Alves <palves@redhat.com>
8441 * remote.c (struct remote_state): Remove multi_process_aware,
8442 non_stop_aware, cond_tracepoints, cond_breakpoints,
8443 breakpoint_commands, fast_tracepoints, static_tracepoints,
8444 install_in_trace, disconnected_tracing,
8445 enable_disable_tracepoints, string_tracing, and
8446 augmented_libraries_svr4_read fields.
8447 (remote_multi_process_p): Move further below in the file.
8448 (struct packet_config): Add comments.
8449 (update_packet_config): Delete function.
8450 (show_packet_config_cmd): Use packet_config_support.
8451 (add_packet_config_cmd): Use NULL as set callback.
8452 (packet_ok): "set remote foo-packet"-style commands no longer
8453 change config->supported -- adjust.
8454 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8455 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8456 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8457 (PACKET_QNonStop, PACKET_multiprocess_feature)
8458 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8459 (PACKET_DisconnectedTracing_feature)
8460 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8461 (set_remote_protocol_packet_cmd): Delete function.
8462 (packet_config_support, packet_support): New functions.
8463 (set_remote_protocol_Z_packet_cmd): Don't call
8464 update_packet_config.
8465 (remote_query_attached, remote_pass_signals)
8466 (remote_program_signals, remote_threads_info)
8467 (remote_threads_extra_info, remote_start_remote): Use
8469 (remote_start_remote): Use packet_config_support and
8471 (init_all_packet_configs): Set all packets to unknown support,
8472 instead of calling update_packet_config.
8473 (remote_check_symbols): Use packet_support.
8474 (remote_supported_packet): Unconditionally set the packet config's
8476 (remote_multi_process_feature, remote_non_stop_feature)
8477 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8478 (remote_breakpoint_commands_feature)
8479 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8480 (remote_install_in_trace_feature)
8481 (remote_disconnected_tracing_feature)
8482 (remote_enable_disable_tracepoint_feature)
8483 (remote_string_tracing_feature)
8484 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8485 (remote_protocol_features): Adjust to use remote_supported_packet
8486 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8487 "ConditionalTracepoints", "ConditionalBreakpoints",
8488 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8489 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8490 "EnableDisableTracepoints", and "tracenz".
8491 (remote_query_supported): Use packet_support.
8492 (remote_open_1): Adjust.
8493 (extended_remote_attach_1): Use packet_support. Switch on the
8494 result of packet_ok instead of checking whether the packet ended
8496 (remote_vcont_resume): Use packet_support.
8497 (remote_resume, remote_stop_ns, fetch_register_using_p)
8498 (remote_prepare_to_store, store_register_using_P)
8499 (check_binary_download, remote_write_bytes): Use packet_support.
8500 (remote_vkill): Use packet_support. Switch on the result of
8501 packet_ok instead of checking whether the packet ended up
8503 (extended_remote_supports_disable_randomization): Use
8505 (extended_remote_run): Switch on the result of packet_ok instead
8506 of checking whether the packet ended up disabled.
8507 (remote_insert_breakpoint, remote_remove_breakpoint)
8508 (remote_insert_watchpoint, remote_remove_watchpoint)
8509 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8511 (remote_search_memory): Use packet_config_support.
8512 (remote_get_thread_local_address, remote_get_tib_address)
8513 (remote_hostio_send_command, remote_can_execute_reverse): Use
8515 (remote_supports_cond_tracepoints)
8516 (remote_supports_cond_breakpoints)
8517 (remote_supports_fast_tracepoints)
8518 (remote_supports_static_tracepoints)
8519 (remote_supports_install_in_trace)
8520 (remote_supports_enable_disable_tracepoint)
8521 (remote_supports_string_tracing)
8522 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8523 the packet config says the feature is enabled or disabled.
8524 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8525 (remote_get_trace_status): Use packet_support.
8526 (remote_set_disconnected_tracing): Adjust to check whether the
8527 feature is enabled with packet_support.
8528 (remote_set_trace_buffer_size, remote_use_agent)
8529 (remote_can_use_agent, remote_supports_btrace): Use
8531 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8532 Use packet_config_support.
8533 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8534 the packet config says the feature is enabled or disabled.
8535 (set_range_stepping): Use packet_support.
8537 2014-04-25 Tom Tromey <tromey@redhat.com>
8539 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8542 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8544 * NEWS: Mention support for C99 variable length arrays.
8546 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8548 * ada-lang.c (standard_exc): Expand introductory comment.
8550 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8551 Walfred Tedeschi <walfred.tedeschi@intel.com>
8553 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8555 (amd64_linux_read_description): Add code to handle AVX512 xstate
8556 mask and return respective tdesc.
8557 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8558 and features/i386/x32-avx512-linux.c.
8559 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8560 (amd64_linux_core_read_description): Add code to handle AVX512
8561 xstate mask and return respective tdesc.
8562 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8563 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8565 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8566 (tdesc_amd64_avx512_linux): New prototype.
8567 (tdesc_x32_avx512_linux): Likewise.
8568 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8569 features/i386/x32-avx512.c.
8570 (amd64_ymm_avx512_names): New register names for pseudo
8572 (amd64_ymmh_avx512_names): New register names for raw registers
8574 (amd64_k_names): New register names for K registers.
8575 (amd64_zmmh_names): New register names for ZMM raw registers.
8576 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8577 (amd64_xmm_avx512_names): New register names for XMM16-31
8579 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8581 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8582 if feature is present.
8583 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8584 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8585 (AMD64_NUM_REGS): Adjust to new number of registers.
8586 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8587 registers supplied via XSTATE by AVX512 registers.
8588 (i386_linux_read_description): Add case for AVX512.
8589 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8590 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8591 (i386_linux_core_read_description): Add case for AVX512.
8592 (i386_linux_init_abi): Install supported register note section
8594 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8596 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8597 registers to be number of zmm7h + 1.
8598 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8599 * i386-tdep.c: Include features/i386/i386-avx512.c.
8600 (i386_zmm_names): Add ZMM pseudo register names array.
8601 (i386_zmmh_names): Add ZMM raw register names array.
8602 (i386_k_names): Add K raw register names array.
8603 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8604 registers. AVX512 has 16 more ZMM registers than there are YMM
8606 (i386_zmmh_regnum_p): Add function to look up register number of
8608 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8609 (i386_k_regnum_p): Likewise for K raw registers.
8610 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8611 registers added by AVX512.
8612 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8613 registers added by AVX512.
8614 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8616 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8617 (i386_pseudo_register_name): Add ZMM pseudo registers.
8618 (i386_zmm_type): Construct and return vector registers type for ZMM
8620 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8621 ZMM0-31 pseudo registers and K registers.
8622 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8623 and YMM16-31 registers from register cache.
8624 (i386_pseudo_register_write): Add code to write K, ZMM and
8626 (i386_register_reggroup_p): Add code to include/exclude AVX512
8627 registers in/from respective register groups.
8628 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8629 registers if feature is present in xcr0.
8630 (i386_gdbarch_init): Add code to initialize AVX512 feature
8631 variables in tdep structure, wire in pseudo registers and call
8632 initialize_tdesc_i386_avx512.
8633 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8635 (i386_regnum): Add AVX512 registers.
8636 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8637 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8638 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8639 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8641 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8642 (i386_ymm_avx512_regnum_p): Likewise.
8643 (i386_k_regnum_p): Likewise.
8644 (i386_zmm_regnum_p): Likewise.
8645 (i386_zmmh_regnum_p): Likewise.
8646 * i387-tdep.c : Update year in copyright notice.
8647 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8649 (XSAVE_YMM_AVX512_ADDR): New macro.
8650 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8652 (XSAVE_XMM_AVX512_ADDR): New macro.
8653 (xsave_avx512_k_offset): New table for K register offsets in
8655 (XSAVE_AVX512_K_ADDR): New macro.
8656 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8658 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8659 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8661 (i387_collect_xsave): Add code to collect AVX512 registers from
8663 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8664 of XMM16-31 registers.
8665 (I387_NUM_K_REGS): New define for number of K registers.
8666 (I387_K0_REGNUM): New define for K0 register number.
8667 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8668 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8669 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8671 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8672 (I387_XMM16_REGNUM): New define for XMM16 register number.
8673 (I387_YMM0_REGNUM): New define for YMM0 register number.
8674 (I387_KEND_REGNUM): New define for last K register number.
8675 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8676 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8678 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8680 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8682 * features/Makefile: Add AVX512 related files.
8683 * features/i386/32bit-avx512.xml: New file.
8684 * features/i386/64bit-avx512.xml: Likewise.
8685 * features/i386/amd64-avx512-linux.c: Likewise.
8686 * features/i386/amd64-avx512-linux.xml: Likewise.
8687 * features/i386/amd64-avx512.c: Likewise.
8688 * features/i386/amd64-avx512.xml: Likewise.
8689 * features/i386/i386-avx512-linux.c: Likewise.
8690 * features/i386/i386-avx512-linux.xml: Likewise.
8691 * features/i386/i386-avx512.c: Likewise.
8692 * features/i386/i386-avx512.xml: Likewise.
8693 * features/i386/x32-avx512-linux.c: Likewise.
8694 * features/i386/x32-avx512-linux.xml: Likewise.
8695 * features/i386/x32-avx512.c: Likewise.
8696 * features/i386/x32-avx512.xml: Likewise.
8697 * regformats/i386/amd64-avx512-linux.dat: New file.
8698 * regformats/i386/amd64-avx512.dat: Likewise.
8699 * regformats/i386/i386-avx512-linux.dat: Likewise.
8700 * regformats/i386/i386-avx512.dat: Likewise.
8701 * regformats/i386/x32-avx512-linux.dat: Likewise.
8702 * regformats/i386/x32-avx512.dat: Likewise.
8703 * NEWS: Add note about new support for AVX512.
8706 2014-04-23 Pedro Alves <palves@redhat.com>
8708 * breakpoint.c (insert_bp_location): Tolerate errors if the
8709 breakpoint is set in a user-loaded objfile.
8710 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8711 location is marked shlib_disabled. If the breakpoint is set in a
8712 user-loaded objfile is a GDB-side memory breakpoint, validate it
8713 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8714 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8716 * mem-break.c (memory_validate_breakpoint): New function.
8717 * objfiles.c (userloaded_objfile_contains_address_p): New
8719 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8720 * target.h (memory_validate_breakpoint): New declaration.
8722 2014-04-23 Pedro Alves <palves@redhat.com>
8724 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8725 the breakpoint is set in a shared library, only suppress
8726 errors for software breakpoints, not hardware breakpoints.
8728 2014-04-22 Pedro Alves <palves@redhat.com>
8730 * infrun.c (schedlock_applies): New function, factored out from
8731 find_thread_needs_step_over.
8732 (find_thread_needs_step_over): Use it.
8733 (switch_back_to_stepped_thread): Always clear trap_expected if the
8734 step over is finished. Return early if scheduler locking applies.
8735 Look for the stepping thread and a potential step-over thread with
8737 (currently_stepping_or_nexting_callback): Delete.
8739 2014-04-22 Nick Clifton <nickc@redhat.com>
8741 * NEWS: Mention that ARM sim now supports tracing.
8743 2014-04-22 Yao Qi <yao@codesourcery.com>
8745 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8747 * tracefile.c (tracefile_fetch_registers): ... it. New
8749 * tracefile.h (tracefile_fetch_registers): Declare.
8750 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8751 tracefile_fetch_registers.
8753 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8756 * windows-nat.c (thread_rec): Don't display a warning when
8757 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8758 fails for any reason, set th->suspended to -1, so that we don't
8759 try to resume such a thread. Also, don't return NULL in these
8760 cases, to avoid completely ruin the session due to "PC register is
8761 not available" error.
8762 (do_windows_fetch_inferior_registers): Check errors in
8763 GetThreadContext call.
8764 (windows_continue): Accept an additional argument KILLED; if not
8765 zero, ignore errors in the SetThreadContext call, since the
8766 inferior was killed and is shutting down.
8767 (windows_resume, get_windows_debug_event)
8768 (windows_create_inferior, windows_mourn_inferior)
8769 (windows_kill_inferior): All callers of windows_continue changed
8770 to adjust to its new calling sequence.
8772 2014-04-19 Yao Qi <yao@codesourcery.com>
8774 * ctf.c (ctf_open): Call post_create_inferior.
8776 2014-04-19 Yao Qi <yao@codesourcery.com>
8778 * ctf.c (handle_id): New static variable.
8779 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8780 value. Get the declaration of event "register" and get length
8781 of field "contents".
8783 2014-04-19 Yao Qi <yao@codesourcery.com>
8785 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8787 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8789 * valops.c (oload_method_static): Remove unnecessary argument
8790 METHOD. Update all callers.
8792 2014-04-18 Pedro alves <palves@redhat.com>
8793 Tom Tromey <tromey@redhat.com>
8796 * frame.c (get_prev_frame_1): Rename to ...
8797 (get_prev_frame_always): ... this, and make extern. Adjust.
8798 (skip_artificial_frames): Use get_prev_frame_always.
8799 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8800 (get_frame_unwind_stop_reason): Adjust to rename.
8801 * frame.h (get_prev_frame_always): Declare.
8802 * inline-frame.c: Include frame.h.
8803 (inline_frame_this_id): Use get_prev_frame_always.
8805 2014-04-18 Tristan Gingold <gingold@adacore.com>
8807 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8808 code by using bfd_mach_o_get_base_address.
8810 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8812 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8813 (spu_ax_pseudo_register_collect): New function.
8814 (spu_ax_pseudo_register_push_stack): Likewise.
8815 (spu_dwarf_reg_to_regnum): Likewise.
8816 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8818 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8820 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8821 Replace FRAME argument with FRAME_ID.
8822 * gdbarch.c, gdbarch.h: Regenerate.
8823 * findvar.c (default_value_from_register): Add GDBARCH argument;
8824 replace FRAME by FRAME_ID. No longer call get_frame_id.
8825 (value_from_register): Update call to gdbarch_value_from_register.
8826 * value.h (default_value_from_register): Update prototype.
8827 * s390-linux-tdep.c (s390_value_from_register): Update interface
8828 and call to default_value_from_register.
8829 * spu-tdep.c (spu_value_from_register): Likewise.
8831 * findvar.c (address_from_register): Remove TYPE argument.
8832 Do not call value_from_register; use gdbarch_value_from_register
8833 with null_frame_id instead.
8834 * value.h (address_from_register): Update prototype.
8835 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8836 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8837 address_from_register interface change.
8839 2014-04-17 Yao Qi <yao@codesourcery.com>
8841 * gdbtypes.h: Update comments to link to types and macros'
8844 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8846 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8848 2014-04-16 Keith Seitz <keiths@redhat.com>
8851 * dwarf2read.c (skip_one_die): Check that all relative-offset
8852 sibling DIEs fall within range of the current reader's buffer.
8853 (read_partial_die): Likewise.
8855 2014-04-16 Keith Seitz <keiths@redhat.com>
8858 * cp-namespace.c (lookup_symbol_file): If the type name of
8859 `this' is NULL, return immediately.
8861 2014-04-14 Keith Seitz <keiths@redhat.com>
8864 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8865 from symbol_matches_domain in symtab.c. All local callers
8866 of symbol_matches_domain updated.
8867 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8868 search STRUCT_DOMAIN.
8869 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8870 independently. standard_lookup will do that automatically.
8871 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8872 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8873 (cp_lookup_symbol_in_namespace): Likewise.
8874 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8875 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8876 may return a STRUCT_DOMAIN match.
8877 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8878 * cp-support.c: Include language.h.
8879 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8881 * psymtab.c (match_partial_symbol): Compare the requested
8882 domain with the symbol's domain directly.
8883 (lookup_partial_symbol): Likewise.
8884 * symtab.c (lookup_symbol_in_language): Explain when/why
8885 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8886 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8887 appropriate languages.
8888 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8889 and moved to ada-lang.c
8890 (lookup_block_symbol): Explain that this function only returns
8891 symbol matching the requested DOMAIN.
8892 Compare the requested domain with the symbol's domain directly.
8893 (iterate_over_symbols): Compare the requested domain with the
8894 symbol's domain directly.
8895 * symtab.h (symbol_matches_domain): Remove.
8897 2014-04-14 Tom Tromey <tromey@redhat.com>
8900 * c-exp.y (type_aggregate_p): New function.
8901 (qualified_name, classify_inner_name): Use it.
8902 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8903 and TYPE_TARGET_TYPE of an enum type.
8904 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8906 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8907 handle TYPE_DECLARED_CLASS.
8908 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8910 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8911 * valops.c (enum_constant_from_type): New function.
8912 (value_aggregate_elt): Use it.
8913 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8916 2014-04-14 Tom Tromey <tromey@redhat.com>
8918 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8919 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8921 * value.h (value_aggregate_elt): Update.
8923 2014-04-14 Tom Tromey <tromey@redhat.com>
8925 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8929 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8930 (evaluate_subexp_standard): Pass noside argument.
8931 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8932 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8933 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8934 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8935 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8937 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8939 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8940 points to a constant blob.
8942 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8944 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8945 property and store it as the high bound and flag the range accordingly.
8946 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8947 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8948 * gdbtypes.h (enum range_flags): New enum.
8949 (struct range_bounds): Add flags member.
8951 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8953 * c-typeprint.c (c_type_print_varspec_suffix): Added
8954 check for not yet resolved high bound. If unresolved, print
8955 "variable length" string to the console instead of random
8958 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8960 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8962 (ada_template_to_fixed_record_type_1): Likewise.
8963 (ada_to_fixed_type_1): Likewise.
8964 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8965 (cp_print_value): Likewise.
8966 * d-valprint.c (dynamic_array_type): Likewise.
8967 * findvar.c (address_of_variable): Likewise.
8968 * jv-valprint.c (java_value_print): Likewise.
8969 * valops.c (value_ind): Likewise.
8970 * value.c (coerce_ref): Likewise.
8972 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8974 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8975 value and retrieve the dynamic type size.
8977 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8979 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8980 passed to sizeof is dynamic evaluate the argument to compute the length.
8982 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8983 Joel Brobecker <brobecker@adacore.com>
8985 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8986 (dwarf2_evaluate_property): New function.
8987 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8988 * dwarf2read.c (attr_to_dynamic_prop): New function.
8989 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8991 * gdbtypes.c: Include dwarf2loc.h.
8992 (is_dynamic_type): New function.
8993 (resolve_dynamic_type): New function.
8994 (resolve_dynamic_bounds): New function.
8995 (get_type_length): New function.
8996 (check_typedef): Use get_type_length to compute type length.
8997 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8998 (TYPE_LOW_BOUND_KIND): New macro.
8999 (is_dynamic_type): New function prototype.
9000 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9001 to resolve dynamic properties of the type. Update comment.
9002 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9004 2014-04-14 Richard Henderson <rth@redhat.com>
9006 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9008 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9009 Doug Evans <xdje42@gmail.com>
9011 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9012 dereference TYPE_CODE_REF values.
9014 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9016 Revert the following changes due to regressions:
9018 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9019 (dwarf2_evaluate_property): New function.
9020 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9021 * dwarf2read.c (attr_to_dynamic_prop): New function.
9022 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9024 * gdbtypes.c: Include dwarf2loc.h.
9025 (is_dynamic_type): New function.
9026 (resolve_dynamic_type): New function.
9027 (resolve_dynamic_bounds): New function.
9028 (get_type_length): New function.
9029 (check_typedef): Use get_type_length to compute type length.
9030 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9031 (TYPE_LOW_BOUND_KIND): New macro.
9032 (is_dynamic_type): New function prototype.
9033 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9034 to resolve dynamic properties of the type. Update comment.
9035 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9037 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9038 passed to sizeof is dynamic evaluate the argument to compute the length.
9040 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9041 value and retrieve the dynamic type size.
9043 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9044 (ada_template_to_fixed_record_type_1): Likewise.
9045 (ada_to_fixed_type_1): Likewise.
9046 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9047 (cp_print_value): Likewise.
9048 * d-valprint.c (dynamic_array_type): Likewise.
9049 * eval.c (evaluate_subexp_with_coercion): Likewise.
9050 * findvar.c (address_of_variable): Likewise.
9051 * jv-valprint.c (java_value_print): Likewise.
9052 * valops.c (value_ind): Likewise.
9053 * value.c (coerce_ref): Likewise.
9055 * c-typeprint.c (c_type_print_varspec_suffix): Added
9056 check for not yet resolved high bound. If unresolved, print
9057 "variable length" string to the console instead of random
9060 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9061 property and store it as the high bound and flag the range accordingly.
9062 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9063 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9064 * gdbtypes.h (enum range_flags): New enum.
9065 (struct range_bounds): Add flags member.
9067 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9068 points to a constant blob.
9070 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9071 (evaluate_subexp_standard): Pass noside argument.
9072 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9073 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9074 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9075 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9076 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9078 2014-04-11 Keith Seitz <keiths@redhat.com>
9081 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9082 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9087 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9088 (evaluate_subexp_standard): Pass noside argument.
9089 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9090 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9091 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9092 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9093 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9095 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9097 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9098 points to a constant blob.
9100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9102 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9103 property and store it as the high bound and flag the range accordingly.
9104 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9105 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9106 * gdbtypes.h (enum range_flags): New enum.
9107 (struct range_bounds): Add flags member.
9109 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9111 * c-typeprint.c (c_type_print_varspec_suffix): Added
9112 check for not yet resolved high bound. If unresolved, print
9113 "variable length" string to the console instead of random
9116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9118 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9119 (ada_template_to_fixed_record_type_1): Likewise.
9120 (ada_to_fixed_type_1): Likewise.
9121 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9122 (cp_print_value): Likewise.
9123 * d-valprint.c (dynamic_array_type): Likewise.
9124 * eval.c (evaluate_subexp_with_coercion): Likewise.
9125 * findvar.c (address_of_variable): Likewise.
9126 * jv-valprint.c (java_value_print): Likewise.
9127 * valops.c (value_ind): Likewise.
9128 * value.c (coerce_ref): Likewise.
9130 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9132 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9133 value and retrieve the dynamic type size.
9135 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9137 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9138 passed to sizeof is dynamic evaluate the argument to compute the length.
9140 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9142 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9143 (dwarf2_evaluate_property): New function.
9144 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9145 * dwarf2read.c (attr_to_dynamic_prop): New function.
9146 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9148 * gdbtypes.c: Include dwarf2loc.h.
9149 (is_dynamic_type): New function.
9150 (resolve_dynamic_type): New function.
9151 (resolve_dynamic_bounds): New function.
9152 (get_type_length): New function.
9153 (check_typedef): Use get_type_length to compute type length.
9154 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9155 (TYPE_LOW_BOUND_KIND): New macro.
9156 (is_dynamic_type): New function prototype.
9157 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9158 to resolve dynamic properties of the type. Update comment.
9159 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9161 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9163 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9164 declaring high/low bounds and change uses accordingly. Call
9165 create_range_type instead of create_static_range_type.
9166 * gdbtypes.c (create_range_type): New function.
9167 (create_range_type): Convert bounds into struct bound_prop and pass
9168 them to create_range_type.
9169 * gdbtypes.h (struct bound_prop): New struct.
9170 (create_range_type): New function prototype.
9171 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9172 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9173 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9175 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9177 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9179 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9180 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9181 * ada-lang.c: All uses of create_range_type updated.
9182 * coffread.c: All uses of create_range_type updated.
9183 * dwarf2read.c: All uses of create_range_type updated.
9184 * f-exp.y: All uses of create_range_type updated.
9185 * m2-valprint.c: All uses of create_range_type updated.
9186 * mdebugread.c: All uses of create_range_type updated.
9187 * stabsread.c: All uses of create_range_type updated.
9188 * valops.c: All uses of create_range_type updated.
9189 * valprint.c: All uses of create_range_type updated.
9191 2014-04-10 Pedro Alves <palves@redhat.com>
9193 * breakpoint.c (single_step_breakpoints)
9194 (single_step_gdbarch): Move up in the file.
9195 (one_breakpoint_xfer_memory): New function, factored out from ...
9196 (breakpoint_xfer_memory): ... here. Also process single-step
9199 2014-04-09 Tristan Gingold <gingold@adacore.com>
9201 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9203 (darwin_decode_exception_message): Free port only after use.
9205 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9207 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9208 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9209 when setting the size of call_length.
9211 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9213 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9214 dereference TYPE_CODE_REF values.
9216 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9218 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9219 end of warning message.
9221 2014-04-03 Doug Evans <dje@google.com>
9223 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9224 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9226 2014-04-02 Alan Modra <amodra@gmail.com>
9228 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9229 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9230 (struct symbol_file_add_from_memory_args): Add size field.
9231 (find_vdso_size): New function.
9232 (add_vsyscall_page): Attempt to find vdso size.
9234 2014-04-01 Doug Evans <dje@google.com>
9236 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9238 2014-04-01 Tristan Gingold <gingold@adacore.com>
9240 * darwin-nat.c (darwin_encode_reply): Add prototype.
9241 (darwin_decode_exception_message): Reply to unknown inferiors.
9242 (darwin_decode_message): Handle message by id. Ignore message
9243 to unknown inferior.
9244 (darwin_wait): Discard unknown messages, add debug trace.
9246 2014-03-31 Doug Evans <dje@google.com>
9248 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9251 2014-03-31 Doug Evans <dje@google.com>
9253 New option "set print symbol-loading".
9255 * solib.c (solib_read_symbols): Only print symbol loading messages
9257 (solib_add): If symbol loading is in "brief" mode, notify user
9258 symbols are being loaded.
9259 (reload_shared_libraries_1): Ditto.
9260 * symfile.c (print_symbol_loading_off): New static global.
9261 (print_symbol_loading_brief): New static global.
9262 (print_symbol_loading_full): New static global.
9263 (print_symbol_loading_enums): New static global.
9264 (print_symbol_loading): New static global.
9265 (print_symbol_loading_p): New function.
9266 (symbol_file_add_with_addrs): Only print symbol loading messages
9268 (_initialize_symfile): Register "print symbol-loading" set/show
9270 * symfile.h (print_symbol_loading_p): Declare.
9272 2014-03-30 Doug Evans <xdje42@gmail.com>
9274 * infrun.c (set_last_target_status): New function.
9275 (handle_inferior_event): Call it.
9277 2014-03-30 Doug Evans <xdje42@gmail.com>
9279 * inferior.h (enum stop_kind): Improve comment.
9281 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9283 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9284 a reference, strip the reference layer before calling
9285 the lang_ops value_has_mutated callback.
9287 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9289 Remove some globals from our parser.
9290 * language.c (unk_lang_parser): Add "struct parser_state"
9292 * language.h (struct language_defn) <la_parser>: Likewise.
9293 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9294 (initialize_expout): Add "struct parser_state" argument.
9295 Rewrite function to use the parser state.
9296 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9297 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9298 write_exp_elt_longcst, write_exp_elt_dblcst,
9299 write_exp_elt_decfloatcst, write_exp_elt_type,
9300 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9301 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9302 write_dollar_variable): Likewise.
9303 (parse_exp_in_context_1): Use parser state.
9304 (insert_type_address_space): Add "struct parser_state" argument.
9306 (increase_expout_size): New function.
9307 * parser-defs.h: Forward declare "struct language_defn" and
9308 "struct parser_state".
9309 (expout, expout_size, expout_ptr): Remove extern declarations.
9310 (parse_gdbarch, parse_language): Rewrite macro declarations to
9311 accept the parser state.
9312 (struct parser_state): New struct.
9313 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9314 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9315 write_exp_elt_decfloatcst, write_exp_elt_type,
9316 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9317 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9318 write_exp_msymbol, write_dollar_variable,
9319 mark_struct_expression, insert_type_address_space): Add "struct
9320 parser_state" argument.
9321 (increase_expout_size): New function.
9322 * utils.c (do_clear_parser_state): New function.
9323 (make_cleanup_clear_parser_state): Likewise.
9324 * utils.h (make_cleanup_clear_parser_state): New function
9326 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9327 Update calls to write_exp* in order to pass the parser state.
9328 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9329 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9330 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9331 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9332 * stap-probe.c (stap_parse_register_operand): Likewise.
9333 (stap_parse_single_operand): Likewise.
9334 (stap_parse_argument_1): Likewise.
9335 (stap_parse_argument): Use parser state.
9336 * stap-probe.h: Include "parser-defs.h".
9337 (struct stap_parse_info) <pstate>: New field.
9338 * c-exp.y (parse_type): Rewrite to use parser state.
9339 (yyparse): Redefine to c_parse_internal.
9340 (pstate): New global variable.
9341 (parse_number): Add "struct parser_state" argument.
9342 (write_destructor_name): Likewise.
9343 (type_exp): Update calls to write_exp* and similars in order to
9345 (exp1, exp, variable, qualified_name, space_identifier,
9346 typename, typebase): Likewise.
9347 (write_destructor_name, parse_number, lex_one_token,
9348 classify_name, classify_inner_name, c_parse): Add "struct
9349 parser_state" argument. Update function to use parser state.
9350 * c-lang.h: Forward declare "struct parser_state".
9351 (c_parse): Add "struct parser_state" argument.
9352 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9353 (yyparse): Redefine macro to ada_parse_internal.
9354 (pstate): New variable.
9355 (write_int, write_object_renaming, write_var_or_type,
9356 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9357 type_int, type_long, type_long_long, type_float, type_double,
9358 type_long_double, type_char, type_boolean, type_system_address):
9359 Add "struct parser_state" argument.
9360 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9361 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9362 var_or_type, aggregate, aggregate_component_list,
9363 positional_list, others, component_group,
9364 component_associations): Update calls to write_exp* and similar
9365 functions in order to use parser state.
9366 (ada_parse, write_var_from_sym, write_int,
9367 write_exp_op_with_string, write_object_renaming,
9368 find_primitive_type, write_selectors, write_ambiguous_var,
9369 write_var_or_type, write_name_assoc, type_int, type_long,
9370 type_long_long, type_float, type_double, type_long_double,
9371 type_char, type_boolean, type_system_address): Add "struct
9372 parser_state" argument. Adjust function to use parser state.
9373 * ada-lang.c (parse): Likewise.
9374 * ada-lang.h: Forward declare "struct parser_state".
9375 (ada_parse): Add "struct parser_state" argument.
9376 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9377 calls to both functions.
9378 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9380 (yyparse): Redefine macro to f_parse_internal.
9381 (pstate): New variable.
9382 (parse_number): Add "struct parser_state" argument.
9383 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9384 and similars in order to use parser state.
9385 (parse_number): Adjust code to use parser state.
9387 (f_parse): New function.
9388 * f-lang.h: Forward declare "struct parser_state".
9389 (f_parse): Add "struct parser_state" argument.
9390 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9392 (yyparse): Redefine macro for java_parse_internal.
9393 (pstate): New variable.
9394 (push_expression_name, push_expression_name, insert_exp): Add
9395 "struct parser_state" argument.
9396 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9397 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9398 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9399 PostIncrementExpression, PostDecrementExpression,
9400 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9401 UnaryExpressionNotPlusMinus, CastExpression,
9402 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9403 RelationalExpression, EqualityExpression, AndExpression,
9404 ExclusiveOrExpression, InclusiveOrExpression,
9405 ConditionalAndExpression, ConditionalOrExpression,
9406 ConditionalExpression, Assignment, LeftHandSide): Update
9407 calls to write_exp* and similars in order to use parser state.
9408 (parse_number): Ajust code to use parser state.
9410 (java_parse): New function.
9411 (push_variable): Add "struct parser_state" argument. Adjust
9412 code to user parser state.
9413 (push_fieldnames, push_qualified_expression_name,
9414 push_expression_name, insert_exp): Likewise.
9415 * jv-lang.h: Forward declare "struct parser_state".
9416 (java_parse): Add "struct parser_state" argument.
9417 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9419 (yyparse): Redefine macro to m2_parse_internal.
9420 (pstate): New variable.
9421 (type_exp, exp, fblock, variable, type): Update calls to
9422 write_exp* and similars to use parser state.
9424 (m2_parse): New function.
9425 * m2-lang.h: Forward declare "struct parser_state".
9426 (m2_parse): Add "struct parser_state" argument.
9427 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9428 * objc-lang.h: Forward declare "struct parser_state".
9429 (end_msglist): Add "struct parser_state" argument.
9430 * p-exp.y (parse_type): Rewrite macro to use parser state.
9431 (yyparse): Redefine macro to pascal_parse_internal.
9432 (pstate): New variable.
9433 (parse_number): Add "struct parser_state" argument.
9434 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9435 write_exp* and similars in order to use parser state.
9436 (parse_number, yylex): Adjust code to use parser state.
9437 (pascal_parse): New function.
9438 * p-lang.h: Forward declare "struct parser_state".
9439 (pascal_parse): Add "struct parser_state" argument.
9440 * go-exp.y (parse_type): Rewrite macro to use parser state.
9441 (yyparse): Redefine macro to go_parse_internal.
9442 (pstate): New variable.
9443 (parse_number): Add "struct parser_state" argument.
9444 (type_exp, exp1, exp, variable, type): Update calls to
9445 write_exp* and similars in order to use parser state.
9446 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9447 to use parser state.
9448 (go_parse): Likewise.
9449 * go-lang.h: Forward declare "struct parser_state".
9450 (go_parse): Add "struct parser_state" argument.
9452 2014-03-27 Doug Evans <dje@google.com>
9454 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9456 2014-03-27 Doug Evans <dje@google.com>
9458 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9459 Remove argument abbrev_section. All callers updated.
9461 2014-03-27 Doug Evans <dje@google.com>
9463 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9464 addr_base, ranges_base.
9466 2014-03-26 Keith Seitz <keiths@redhat.com>
9468 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9469 types, not VAR_DOMAIN.
9471 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9473 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9475 * features/nios2-linux.c: Regenerated.
9476 * features/nios2.c: Regenerated.
9478 2014-03-25 Pedro Alves <palves@redhat.com>
9480 * cli/cli-script.c (script_from_file): Force the interpreter to
9483 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9485 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9486 small stack allocation.
9488 2014-03-24 Tristan Gingold <gingold@adacore.com>
9490 * darwin-nat.c (exc_server): Remove unused prototype.
9491 (darwin_dump_message): Correctly display data on x86_64.
9492 (darwin_encode_reply): Fix style.
9493 Add comments and fix indentation.
9495 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9497 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9499 2014-03-22 Doug Evans <xdje42@gmail.com>
9501 * infcmd.c: Whitespace fixes.
9502 (interrupt_command): Merge two function comments into one.
9504 2014-03-22 Doug Evans <xdje42@gmail.com>
9506 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9509 2014-03-22 Yao Qi <yao@codesourcery.com>
9511 * remote.c (target_read_live_memory): Remove.
9512 (memory_xfer_live_readonly_partial): Rename it to
9513 remote_xfer_live_readonly_partial. Remove argument 'object'.
9514 All callers updated. Call remote_read_bytes_1
9515 instead of target_read_live_memory.
9516 * tracepoint.c (set_traceframe_number): Remove.
9517 (make_cleanup_restore_traceframe_number): Likewise .
9518 * tracepoint.h (set_traceframe_number): Remove declaration.
9519 (make_cleanup_restore_traceframe_number): Likewise.
9521 2014-03-22 Yao Qi <yao@codesourcery.com>
9523 * remote.c (remote_read_bytes): Move code on reading from the
9525 (remote_read_bytes_1): ... here. New function.
9527 2014-03-22 Yao Qi <yao@codesourcery.com>
9529 * ctf.c (ctf_xfer_partial): Check the return value of
9530 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9531 return TARGET_XFER_UNAVAILABLE.
9532 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9533 * target.c (target_read_live_memory): Move it to remote.c.
9534 (memory_xfer_live_readonly_partial): Likewise.
9535 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9536 * remote.c (target_read_live_memory): Moved from target.c.
9537 (memory_xfer_live_readonly_partial): Likewise.
9538 (remote_read_bytes): Factored out from
9539 memory_xfer_partial_1.
9541 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9543 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9546 2014-03-21 Pedro Alves <palves@redhat.com>
9548 * infrun.c (normal_stop): Extend comment.
9550 2014-03-21 Hui Zhu <hui@codesourcery.com>
9551 Pedro Alves <palves@redhat.com>
9553 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9555 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9556 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9557 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9559 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9561 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9562 `z' formatted output modifier.
9564 2014-03-20 Tom Tromey <tromey@redhat.com>
9565 Sergio Durigan Junior <sergiodj@redhat.com>
9567 * probe.c (parse_probes): Turn assert into an ordinary error.
9568 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9569 exceptions when parsing probes. Rearrange the code for clarity.
9571 2014-03-20 Tom Tromey <tromey@redhat.com>
9574 * top.c (execute_command): Only dispatch events if the command
9577 2014-03-20 Tom Tromey <tromey@redhat.com>
9580 * infcall.c: Include event-top.h.
9581 (run_inferior_call): Call async_disable_stdin if needed.
9583 2014-03-20 Pedro Alves <palves@redhat.com>
9585 * infrun.c (prepare_to_proceed): Delete.
9586 (thread_still_needs_step_over): New function.
9587 (find_thread_needs_step_over): New function.
9588 (proceed): If the current thread needs a step-over, set its
9589 steping_over_breakpoint flag. Adjust to use
9590 find_thread_needs_step_over instead of prepare_to_proceed.
9591 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9592 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9594 (switch_back_to_stepped_thread): Step over breakpoints of all
9595 threads not the stepping thread, before switching back to the
9598 2014-03-20 Pedro Alves <palves@redhat.com>
9600 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9602 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9603 * infrun.c (saved_singlestep_ptid)
9604 (stepping_past_singlestep_breakpoint): Delete.
9605 (resume): Remove stepping_past_singlestep_breakpoint handling.
9606 (proceed): Store the prev_pc of the stepping thread too.
9607 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9609 (enum infwait_states): Delete infwait_thread_hop_state.
9610 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9612 (handle_inferior_event): Adjust.
9613 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9614 handling and the thread-hop code. Before removing single-step
9615 breakpoints, check whether the thread hit a single-step breakpoint
9616 of another thread. If it did, the trap is not a random signal.
9617 (switch_back_to_stepped_thread): If the event thread hit a
9618 single-step breakpoint, unblock it before switching to the
9619 stepping thread. Handle the case of the stepped thread having
9621 (keep_going): Handle the case of the current thread moving past a
9622 single-step breakpoint.
9624 2014-03-20 Pedro Alves <palves@redhat.com>
9627 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9628 are being stepped over.
9629 (breakpoint_address_match): Make extern.
9630 * breakpoint.h (breakpoint_address_match): New declaration.
9631 * inferior.h (stepping_past_instruction_at): New declaration.
9632 * infrun.c (struct step_over_info): New type.
9633 (step_over_info): New global.
9634 (set_step_over_info, clear_step_over_info)
9635 (stepping_past_instruction_at): New functions.
9636 (handle_inferior_event): Clear the step-over info when
9637 trap_expected is cleared.
9638 (resume): Remove now stale comment.
9639 (clear_proceed_status): Clear step-over info.
9640 (proceed): Adjust step-over handling to set or clear the step-over
9641 info instead of removing all breakpoints.
9642 (handle_signal_stop): When setting up a thread-hop, don't remove
9644 (stop_stepping): Clear step-over info.
9645 (keep_going): Adjust step-over handling to set or clear step-over
9646 info and then always inserting breakpoints, instead of removing
9647 all breakpoints when stepping over one.
9649 2014-03-20 Pedro Alves <palves@redhat.com>
9651 * infrun.c (previous_inferior_ptid): Adjust comment.
9652 (deferred_step_ptid): Delete.
9653 (infrun_thread_ptid_changed, prepare_to_proceed)
9654 (init_wait_for_inferior): Adjust.
9655 (handle_signal_stop): Delete deferred_step_ptid handling.
9657 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9660 * defs.h (sync_quit_force_run): New declaration.
9661 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9662 * event-top.c (async_sigterm_handler): New declaration.
9663 (async_sigterm_token): New variable.
9664 (async_init_signals): Create also async_sigterm_token.
9665 (async_sigterm_handler): New function.
9666 (sync_quit_force_run): New variable.
9667 (handle_sigterm): Replace quit_force call by other calls.
9668 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9670 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9672 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9673 offset into SPE pseudo registers.
9675 2014-03-18 Pedro Alves <palves@redhat.com>
9678 * inferior.h (print_stop_event): Declare.
9679 * infrun.c (print_stop_event): New, factored out from ...
9680 (normal_stop): ... this.
9681 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9682 of bpstat_print/print_stack_frame.
9684 2014-03-17 Tom Tromey <tromey@redhat.com>
9686 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9688 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9690 * ada-lang.c (decode_constrained_packed_array): Perform a
9691 minimal coercion for reference with coerce_ref instead of
9694 2014-03-17 Tristan Gingold <gingold@adacore.com>
9696 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9697 (darwin_solib_create_inferior_hook): Emit a warning if version
9700 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9702 * python/py-value.c (get_field_flag): Cast flag_name argument to
9703 PyObject_GetAttrString to support Python 2.4.
9705 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9707 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9708 (Global Maintainers): Remove Jan Kratochvil.
9710 2014-03-14 Pedro Alves <palves@redhat.com>
9712 * inferior.h (terminal_ours_for_output): Rename to ...
9713 (child_terminal_ours_for_output): ... this.
9714 (terminal_save_ours): Rename to ...
9715 (child_terminal_save_ours): ... this.
9716 (terminal_ours): Rename to ...
9717 (child_terminal_ours): ... this.
9718 (terminal_inferior): Rename to ...
9719 (child_terminal_inferior): ... this.
9720 (terminal_init_inferior): Rename to ...
9721 (child_terminal_init_inferior): ... this.
9722 (terminal_init_inferior_with_pgrp): Rename to ...
9723 (child_terminal_init_inferior_with_pgrp): ... this.
9724 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9725 (child_terminal_init_with_pgrp): ... this.
9726 (terminal_save_ours): Rename to ...
9727 (child_terminal_save_ours): ... this.
9728 (terminal_init_inferior): Rename to ...
9729 (child_terminal_init): ... this. Adjust.
9730 (terminal_inferior): Rename to ...
9731 (child_terminal_inferior): ... this.
9732 (terminal_ours_for_output): Rename to ...
9733 (child_terminal_ours_for_output): ... this. Adjust.
9734 (terminal_ours): Rename to ...
9735 (child_terminal_ours): ... this.
9736 (terminal_ours_1): Rename to ...
9737 (child_terminal_ours_1): ... this. Adjust.
9738 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9739 * windows-nat.c (do_initial_windows_stuff): Adjust.
9740 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9741 (gnu_terminal_init): ... this. Adjust.
9742 (gnu_target): Adjust.
9743 * inf-child.c (inf_child_target): Adjust.
9745 2014-03-13 Doug Evans <xdje42@gmail.com>
9748 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9751 2014-03-13 Doug Evans <xdje42@gmail.com>
9753 * value.c (record_latest_value): Call release_value_or_incref
9754 instead of release_value.
9756 2014-03-13 Pedro Alves <palves@redhat.com>
9758 * procfs.c (procfs_target): Don't override to_shortname,
9759 to_longname or to_doc.
9761 2014-03-13 Pedro Alves <palves@redhat.com>
9763 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9764 Unix in user visible strings.
9766 2014-03-12 Stan Shebs <stan@codesourcery.com>
9768 * gdbtypes.h: Annotate comments for Doxygen, add a page
9769 block comment with some general info.
9771 2014-03-12 Pedro Alves <palves@redhat.com>
9773 * infcmd.c (prepare_execution_command): New function, factored out
9774 from several execution commands.
9775 (run_command_1, continue_command, step_1, jump_command)
9776 (signal_command, until_command, advance_command, finish_command)
9777 (attach_command): Use prepare_execution_command.
9779 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9781 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9784 (struct arm_linux_thread_points): Removed.
9785 (struct arm_linux_process_info): New.
9786 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9787 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9788 (arm_linux_find_breakpoints_by_tid): Removed.
9789 (struct arch_lwp_info): New.
9790 (arm_linux_find_process_pid): New functions.
9791 (arm_linux_add_process): New functions.
9792 (arm_linux_process_info_get): New functions.
9793 (arm_linux_forget_process): New function.
9794 (arm_linux_get_debug_reg_state): New function.
9795 (struct update_registers_data): New.
9796 (update_registers_callback): New function.
9797 (arm_linux_insert_hw_breakpoint1): Updated.
9798 (arm_linux_remove_hw_breakpoint1): Updated.
9799 (arm_linux_insert_hw_breakpoint): Updated.
9800 (arm_linux_remove_hw_breakpoint): Updated.
9801 (arm_linux_insert_watchpoint): Updated.
9802 (arm_linux_remove_watchpoint): Updated.
9803 (arm_linux_new_thread): Updated.
9804 (arm_linux_prepare_to_resume): New function.
9805 (arm_linux_new_fork): New function.
9806 (_initialize_arm_linux_nat): Updated.
9808 2014-03-12 Pedro Alves <palves@redhat.com>
9810 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9812 2014-03-12 Tom Tromey <tromey@redhat.com>
9814 * inf-child.c (return_zero): New function.
9815 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9816 * aix-thread.c (aix_thread_inferior_created): New function.
9817 (aix_thread_attach): Remove.
9818 (init_aix_thread_ops): Don't set to_attach.
9819 (_initialize_aix_thread): Register inferior_created observer.
9820 * corelow.c (init_core_ops): Don't set to_attach or
9822 * exec.c (init_exec_ops): Don't set to_attach or
9824 * infcmd.c (run_command_1): Use find_run_target. Make direct
9826 (attach_command): Use find_attach_target. Make direct target
9828 * record-btrace.c (init_record_btrace_ops): Don't set
9830 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9832 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9833 set to_create_inferior.
9834 * target.c (complete_target_initialization): Add assertion.
9835 (target_create_inferior): Remove.
9836 (find_default_attach, find_default_create_inferior): Remove.
9837 (find_attach_target, find_run_target): New functions.
9838 (find_default_is_async_p, find_default_can_async_p)
9839 (target_supports_non_stop, target_attach): Remove.
9840 (init_dummy_target): Don't set to_create_inferior or
9841 to_supports_non_stop.
9842 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9843 TARGET_DEFAULT_FUNC.
9844 <to_create_inferior>: Add comment.
9845 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9846 TARGET_DEFAULT_RETURN.
9847 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9848 (find_attach_target, find_run_target): Declare.
9849 (target_create_inferior): Remove.
9850 (target_has_execution_1): Update comment.
9851 (target_supports_non_stop): Remove.
9852 * target-delegates.c: Rebuild.
9854 2014-03-12 Pedro Alves <palves@redhat.com>
9856 * inf-child.h: Update comment to not mention Unix.
9858 2014-03-12 Pedro Alves <palves@redhat.com>
9860 * inf-child.c: Update top comment to not mention Unix. Add
9861 generic comment describing how this target is meant to be used.
9862 (inf_child_post_attach, inf_child_post_startup_inferior)
9863 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9866 2014-03-12 Pedro Alves <palves@redhat.com>
9868 * nto-procfs.c: Include inf-child.h.
9869 (procfs_ops): Delete global.
9870 (procfs_can_run): Delete method.
9871 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9872 target pointer instead of referencing procfs_ops.
9873 (procfs_prepare_to_store): Delete.
9874 (init_procfs_ops): Delete function.
9875 (procfs_target): New function, based on init_procfs_ops, but
9876 inherit inf_child_target.
9877 (_initialize_procfs): Use procfs_target.
9879 2014-03-12 Pedro Alves <palves@redhat.com>
9881 * windows-nat.c: Include inf-child.h.
9882 (windows_ops): Delete global.
9883 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9885 (init_windows_ops): Delete function.
9886 (windows_target): New function, based on init_windows_ops, but
9887 inherit inf_child_target.
9888 (_initialize_windows_nat): Use windows_target. Install x86
9889 specific target methods here.
9891 2014-03-10 Doug Evans <xdje42@gmail.com>
9893 * guile/guile.c (call_initialize_gdb_module): New function.
9894 (initialize_guile): Replace call to scm_init_guile with call to
9897 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9899 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9900 in call to TYPE_CODE macro.
9902 2014-03-10 Jerome Guitton <guitton@adacore.com>
9904 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9905 Resolve tagged types to full view.
9907 2014-03-10 Hui Zhu <hui@codesourcery.com>
9909 * target.h (target_insert_breakpoint): Remove "hardware" from its
9912 2014-03-07 Doug Evans <dje@google.com>
9914 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9916 2014-03-07 Doug Evans <dje@google.com>
9918 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9919 Remove unused local comp_dir_attr. Assert exactly one of
9920 stub_comp_unit_die, stub_comp_dir is non-NULL.
9922 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9924 * target.h (complete_target_initialization, add_target):
9927 2014-03-07 Pedro Alves <palves@redhat.com>
9929 * go32-nat.c: Include inf-child.h.
9930 (go32_ops): Delete global.
9931 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9933 (go32_create_inferior): Push the passed in target pointer instead
9934 of referencing go32_ops.
9935 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9936 (go32_target): New function, based on init_go32_ops, but inherit
9938 (_initialize_go32_nat): Use go32_target. Move parts of
9941 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9943 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9944 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9945 SYMBOL_VALUE_ADDRESS.
9946 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9948 2014-03-06 Yao Qi <yao@codesourcery.com>
9950 * breakpoint.c (get_tracepoint_by_number): Remove argument
9951 optional_p. All callers updated. Adjust comments. Update
9953 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9955 2014-03-06 Yao Qi <yao@codesourcery.com>
9957 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9958 early if get_number returns zero. Use 'p' instead of 'args'.
9960 2014-03-06 Yao Qi <yao@codesourcery.com>
9962 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9965 2014-03-06 Yao Qi <yao@codesourcery.com>
9967 PR breakpoints/16508
9968 * tracepoint.c (check_trace_running): New function.
9969 (trace_find_command): Move code to check_trace_running and
9970 call check_trace_running.
9971 (trace_find_pc_command): Likewise.
9972 (trace_find_tracepoint_command): Likewise.
9973 (trace_find_line_command): Likewise.
9974 (trace_find_range_command): Likewise.
9975 * tracepoint.h (check_trace_running): Likewise.
9976 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9978 2014-03-06 Yao Qi <yao@codesourcery.com>
9980 * target.h (struct target_ops) <to_traceframe_info>: Use
9981 TARGET_DEFAULT_NORETURN (tcomplain ()).
9982 * target-delegates.c: Regenerated.
9984 2014-03-05 Pedro Alves <palves@redhat.com>
9987 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9988 void. Update comment.
9989 (dcache_xfer_memory): Delete.
9990 (dcache_read_memory_partial): New, based on the read bits of
9992 (dcache_update): Add status parameter. Use ULONGEST for len, and
9993 adjust. Discard cache lines if the reason for the update was
9995 * dcache.h (dcache_xfer_memory): Delete declaration.
9996 (dcache_read_memory_partial): New declaration.
9997 (dcache_update): Update prototype.
9998 * target.c (raw_memory_xfer_partial): Update the dcache here.
9999 (memory_xfer_partial_1): Don't handle dcache writes here.
10001 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10003 * remote-sim.c (gdbsim_load): Add const to prog.
10005 2014-03-03 Tom Tromey <tromey@redhat.com>
10007 * elfread.c (probe_key): Change to bfd_data.
10008 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10009 now per-BFD, not per-objfile.
10010 * stap-probe.c (stap_probe_destroy): Update comment.
10011 (handle_stap_probe): Allocate on the per-BFD obstack.
10013 2014-03-03 Tom Tromey <tromey@redhat.com>
10015 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10016 * breakpoint.c (create_longjmp_master_breakpoint): Use
10018 (add_location_to_breakpoint, bkpt_probe_insert_location)
10019 (bkpt_probe_remove_location): Update.
10020 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10021 * elfread.c (elf_symfile_relocate_probe): Remove.
10022 (elf_probe_fns): Update.
10023 (insert_exception_resume_breakpoint): Change type of "probe"
10024 parameter to bound_probe.
10025 (check_exception_resume): Update.
10026 * objfiles.c (objfile_relocate1): Don't relocate probes.
10027 * probe.c (bound_probe_s): New typedef.
10028 (parse_probes): Use get_probe_address. Set sal's objfile.
10029 (find_probe_by_pc): Return a bound_probe.
10030 (collect_probes): Return a VEC(bound_probe_s).
10031 (compare_probes): Update.
10032 (gen_ui_out_table_header_info): Change type of "probes"
10034 (info_probes_for_ops): Update.
10035 (get_probe_address): New function.
10036 (probe_safe_evaluate_at_pc): Update.
10037 * probe.h (struct probe_ops) <get_probe_address>: New field.
10038 <set_semaphore, clear_semaphore>: Add objfile parameter.
10039 (struct probe) <objfile>: Remove field.
10041 <address>: Update comment.
10042 (struct bound_probe): New.
10043 (find_probe_by_pc): Return a bound_probe.
10044 (get_probe_address): Declare.
10045 * solib-svr4.c (struct probe_and_action) <address>: New field.
10046 (hash_probe_and_action, equal_probe_and_action): Update.
10047 (register_solib_event_probe): Add address parameter.
10048 (solib_event_probe_at): Update.
10049 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10051 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10052 (stap_get_probe_address): New function.
10053 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10054 (compile_probe_arg): Update.
10055 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10057 (handle_stap_probe): Don't relocate the probe.
10058 (stap_relocate): Remove.
10059 (stap_gen_info_probes_table_values): Update.
10060 (stap_probe_ops): Remove stap_relocate.
10061 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10062 (debug_sym_probe_fns): Update.
10063 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10064 * symtab.c (init_sal): Use memset.
10065 * symtab.h (struct symtab_and_line) <objfile>: New field.
10066 * tracepoint.c (start_tracing, stop_tracing): Update.
10068 2014-03-03 Tom Tromey <tromey@redhat.com>
10070 * probe.h (parse_probes, find_probe_by_pc)
10071 (find_probes_in_objfile): Fix comments.
10073 2014-03-02 Doug Evans <xdje42@gmail.com>
10075 * infrun.c (handle_signal_stop): Replace test for
10076 TARGET_WAITKIND_STOPPED with an assert.
10078 2014-03-02 Doug Evans <xdje42@gmail.com>
10080 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10082 2014-03-02 Doug Evans <xdje42@gmail.com>
10084 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10086 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10088 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10090 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10092 * i386obsd-nat.c: Include "obsd-nat.h".
10093 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10095 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10097 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10099 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10101 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10103 * mips64obsd-nat.c: Include "obsd-nath".
10104 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10106 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10108 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10110 * amd64obsd-nat.c: Include "obsd-nat,h.
10111 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10113 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10115 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10117 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10118 (find_overload_match): Update call to find_oload_champ.
10119 (find_oload_champ_namespace_loop): Likewise
10121 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10123 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10125 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10126 * config/sparc/obsd64.mh: New file.
10127 * sparc64obsd-nat.c: New file.
10129 * obsd-nat.h: New file.
10130 * obsd-nat.c: New file.
10131 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10132 (ALLDEPFILES): Add obsd-nat.c.
10134 2014-02-28 Tom Tromey <tromey@redhat.com>
10136 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10137 * cli-out.h (cli_ui_out_impl): Now const.
10138 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10139 * ui-out.c (struct ui_out) <impl>: Now const.
10140 (default_ui_out_impl): Now const.
10141 (ui_out_new): Make 'impl' parameter const.
10142 * ui-out.h (ui_out_new): Update.
10144 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10146 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10148 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10150 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10152 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10154 Additional PR 8882 fix.
10155 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10157 2014-02-27 Pedro Alves <palves@redhat.com>
10159 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10162 2014-02-27 Pedro Alves <palves@redhat.com>
10165 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10166 * nat/linux-waitpid.c: Include string.h.
10167 (status_to_str): Moved here and made extern.
10168 * nat/linux-waitpid.h (status_to_str): New declaration.
10170 2014-02-27 Hui Zhu <hui@codesourcery.com>
10173 * infrun.c (ptid_match): Move ...
10174 * common/ptid.c (ptid_match): ... here.
10175 * inferior.h (ptid_match): Move ...
10176 * common/ptid.h (ptid_match): ... here.
10178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10180 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10181 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10184 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10186 * obsd-tdep.c (obsd_auxv_parse): New function.
10187 (obsd_init_abi): Set auxv_parse.
10189 * gdbarch.sh (auxv_parse): New.
10190 * gdbarch.h: Regenerated.
10191 * gdbarch.c: Regenerated.
10192 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10194 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10196 * guile/scm-value.c (gdbscm_history_append_x): New function.
10197 (value_functions): Add it.
10199 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10201 * dwarf2read.c (attr_value_as_address): New function.
10202 (dwarf2_find_base_address, read_call_site_scope): Use
10203 attr_value_as_address in place of DW_ADDR.
10204 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10205 the low and high addresses. Slight rework of the handling
10206 of the high pc being a constant form, and limit it to
10207 DWARF verson 4 or higher.
10208 (dwarf2_record_block_ranges): Likewise.
10209 (read_partial_die): Likewise.
10210 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10212 2014-02-26 Tom Tromey <tromey@redhat.com>
10214 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10216 2014-02-26 Tom Tromey <tromey@redhat.com>
10218 * elfread.c (elf_read_minimal_symbols): Return early if
10219 minimal symbols have already been read. Add "ei" parameter.
10220 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10221 * minsyms.c (prim_record_minimal_symbol_full): Update.
10222 * objfiles.h (struct objstats) <n_minsyms>: Move...
10223 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10224 * symmisc.c (print_objfile_statistics): Update.
10226 2014-02-26 Tom Tromey <tromey@redhat.com>
10228 * elfread.c (elf_read_minimal_symbols): New function, from
10230 (elf_symfile_read): Call it.
10232 2014-02-26 Tom Tromey <tromey@redhat.com>
10234 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10235 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10236 (lookup_minimal_symbol_solib_trampoline)
10237 (lookup_minimal_symbol_by_pc_section_1)
10238 (lookup_minimal_symbol_and_objfile): Update.
10239 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10240 Don't allocate a minimal symbol if minsyms have already been read.
10241 (build_minimal_symbol_hash_tables): Update.
10242 (install_minimal_symbols): Do nothing if minsyms already read.
10243 Use the per-BFD obstack.
10244 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10245 * objfiles.c (allocate_objfile): Call
10246 terminate_minimal_symbol_table later.
10247 (have_minimal_symbols): Update.
10248 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10249 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10250 Move from struct objfile.
10251 <minsyms_read>: New field.
10252 (struct objfile) <msymbols, minimal_symbol_count,
10253 msymbol_hash, msymbol_demangled_hash>: Move.
10254 (ALL_OBJFILE_MSYMBOLS): Update.
10255 * symfile.c (read_symbols): Set minsyms_read.
10256 (reread_symbols): Update.
10257 * symmisc.c (dump_objfile, dump_msymbols): Update.
10259 2014-02-26 Tom Tromey <tromey@redhat.com>
10261 * minsyms.c (msymbols_sort): Remove.
10262 * minsyms.h (msymbols_sort): Remove.
10263 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10264 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10265 * elfread.c (elf_symtab_read): Don't add section offsets.
10266 * xcoffread.c (record_minimal_symbol): Don't add section offset
10267 to minimal symbol address.
10268 * somread.c (text_offset, data_offset): Remove.
10269 (som_symtab_read): Don't add section offsets to minimal symbol
10271 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10272 Don't add section offsets to minimal symbols.
10273 * coffread.c (coff_symtab_read): Don't add section offsets
10274 to minimal symbol addresses.
10275 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10276 to minimal symbol addresses.
10277 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10278 section offset to minimal symbol addresses.
10279 * mdebugread.c (parse_partial_symbols): Don't add section
10280 offset to minimal symbol addresses.
10281 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10282 offset to minimal symbol addresses.
10284 2014-02-26 Tom Tromey <tromey@redhat.com>
10286 * ada-lang.c (ada_main_name): Update.
10287 (ada_add_standard_exceptions): Update.
10288 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10289 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10290 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10291 * auxv.c (ld_so_xfer_auxv): Update.
10292 * avr-tdep.c (avr_scan_prologue): Update.
10293 * ax-gdb.c (gen_var_ref): Update.
10294 * blockframe.c (get_pc_function_start)
10295 (find_pc_partial_function_gnu_ifunc): Update.
10296 * breakpoint.c (create_overlay_event_breakpoint)
10297 (create_longjmp_master_breakpoint)
10298 (create_std_terminate_master_breakpoint)
10299 (create_exception_master_breakpoint): Update.
10300 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10301 * c-valprint.c (c_val_print): Update.
10302 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10303 * common/agent.c (agent_look_up_symbols): Update.
10304 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10305 * dwarf2loc.c (call_site_to_target_addr): Update.
10306 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10307 * elfread.c (elf_gnu_ifunc_record_cache)
10308 (elf_gnu_ifunc_resolve_by_got): Update.
10309 * findvar.c (default_read_var_value): Update.
10310 * frame.c (inside_main_func): Update.
10311 * frv-tdep.c (frv_frame_this_id): Update.
10312 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10313 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10315 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10316 (hppa_hpux_find_dummy_bpaddr): Update.
10317 * hppa-tdep.c (hppa_symbol_address): Update.
10318 * infcmd.c (until_next_command): Update.
10319 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10321 * linespec.c (minsym_found, add_minsym): Update.
10322 * linux-nat.c (get_signo): Update.
10323 * linux-thread-db.c (inferior_has_bug): Update.
10324 * m32c-tdep.c (m32c_return_value)
10325 (m32c_m16c_address_to_pointer): Update.
10326 * m32r-tdep.c (m32r_frame_this_id): Update.
10327 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10328 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10329 * maint.c (maintenance_translate_address): Update.
10330 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10331 (frob_address): New function.
10332 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10333 frob_address. Rename parameter to "pc_in".
10334 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10336 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10338 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10339 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10340 * objc-lang.c (find_objc_msgsend): Update.
10341 * objfiles.c (objfile_relocate1): Update.
10342 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10343 * p-valprint.c (pascal_val_print): Update.
10344 * parse.c (write_exp_msymbol): Update.
10345 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10346 (ppc_elfv2_skip_entrypoint): Update.
10347 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10348 * printcmd.c (build_address_symbolic, msym_info)
10349 (address_info): Update.
10350 * proc-service.c (ps_pglobal_lookup): Update.
10351 * psymtab.c (find_pc_sect_psymtab_closer)
10352 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10353 Change msymbol parameter to bound_minimal_symbol.
10354 * ravenscar-thread.c (get_running_thread_id): Update.
10355 * remote.c (remote_check_symbols): Update.
10356 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10359 * solib-dsbt.c (lm_base): Update.
10360 * solib-frv.c (lm_base, main_got): Update.
10361 * solib-irix.c (locate_base): Update.
10362 * solib-som.c (som_solib_create_inferior_hook)
10363 (link_map_start): Update.
10364 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10365 * solib-svr4.c (elf_locate_base, enable_break): Update.
10366 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10367 (flush_ea_cache): Update.
10368 * stabsread.c (define_symbol, scan_file_globals): Update.
10369 * stack.c (find_frame_funname): Update.
10370 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10371 (debug_qf_find_pc_sect_symtab): Update.
10372 * symfile.c (simple_read_overlay_table)
10373 (simple_overlay_update): Update.
10374 * symfile.h (struct quick_symbol_functions)
10375 <find_pc_sect_symtab>: Change type of msymbol to
10376 bound_minimal_symbol.
10377 * symmisc.c (dump_msymbols): Update.
10378 * symtab.c (find_pc_sect_symtab_via_partial)
10379 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10380 (search_symbols, print_msymbol_info): Update.
10381 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10382 (MSYMBOL_VALUE_ADDRESS): Redefine.
10383 (BMSYMBOL_VALUE_ADDRESS): New macro.
10384 * tracepoint.c (scope_info): Update.
10385 * tui/tui-disasm.c (tui_find_disassembly_address)
10386 (tui_get_begin_asm_address): Update.
10387 * valops.c (find_function_in_inferior): Update.
10388 * value.c (value_static_field, value_fn_field): Update.
10390 2014-02-26 Tom Tromey <tromey@redhat.com>
10392 * ada-lang.c (ada_update_initial_language): Update.
10393 (ada_main_name, ada_has_this_exception_support): Update.
10394 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10395 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10396 * arm-tdep.c (arm_skip_stub): Update.
10397 * auxv.c (ld_so_xfer_auxv): Update.
10398 * avr-tdep.c (avr_scan_prologue): Update.
10399 * ax-gdb.c (gen_var_ref): Update.
10400 * breakpoint.c (struct breakpoint_objfile_data)
10401 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10402 type to bound_minimal_symbol.
10403 (create_overlay_event_breakpoint)
10404 (create_longjmp_master_breakpoint)
10405 (create_std_terminate_master_breakpoint)
10406 (create_exception_master_breakpoint): Update.
10407 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10408 * c-exp.y (classify_name): Update.
10409 * coffread.c (coff_symfile_read): Update.
10410 * common/agent.c (agent_look_up_symbols): Update.
10411 * d-lang.c (d_main_name): Update.
10412 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10413 * dec-thread.c (enable_dec_thread): Update.
10414 * dwarf2loc.c (call_site_to_target_addr): Update.
10415 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10416 * eval.c (evaluate_subexp_standard): Update.
10417 * findvar.c (struct minsym_lookup_data) <result>: Change type
10418 to bound_minimal_symbol.
10420 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10421 * frame.c (inside_main_func): Update.
10422 * frv-tdep.c (frv_frame_this_id): Update.
10423 * gcore.c (call_target_sbrk): Update.
10424 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10425 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10427 * go-lang.c (go_main_name): Update.
10428 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10429 (hppa_hpux_find_import_stub_for_addr): Update.
10430 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10431 Update. Change return type.
10432 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10434 * jit.c (jit_breakpoint_re_set_internal): Update.
10435 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10437 * linux-nat.c (get_signo): Update.
10438 * linux-thread-db.c (inferior_has_bug): Update
10439 * m32c-tdep.c (m32c_return_value)
10440 (m32c_m16c_address_to_pointer): Update.
10441 * m32r-tdep.c (m32r_frame_this_id): Update.
10442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10444 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10445 lookup_minimal_symbol. Change return type.
10446 (lookup_minimal_symbol): Remove.
10447 (lookup_bound_minimal_symbol): Update.
10448 (lookup_minimal_symbol_text): Change return type.
10449 (lookup_minimal_symbol_solib_trampoline): Change return type.
10450 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10451 (lookup_minimal_symbol_solib_trampoline): Change return type.
10452 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10453 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10454 (value_nsstring, find_imps): Update.
10455 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10456 * p-lang.c (pascal_main_name): Update.
10457 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10458 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10459 * proc-service.c (ps_pglobal_lookup): Update.
10460 * ravenscar-thread.c (get_running_thread_msymbol): Change
10462 (has_ravenscar_runtime, get_running_thread_id): Update.
10463 * remote.c (remote_check_symbols): Update.
10464 * sol-thread.c (ps_pglobal_lookup): Update.
10465 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10466 * solib-dsbt.c (lm_base): Update.
10467 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10469 * solib-irix.c (locate_base): Update.
10470 * solib-som.c (som_solib_create_inferior_hook)
10471 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10473 * solib-spu.c (spu_enable_break): Update.
10474 * solib-svr4.c (elf_locate_base, enable_break): Update.
10475 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10476 (flush_ea_cache): Update.
10477 * stabsread.c (define_symbol): Update.
10478 * symfile.c (simple_read_overlay_table): Update.
10479 * symtab.c (find_pc_sect_line): Update.
10480 * tracepoint.c (scope_info): Update.
10481 * tui-disasm.c (tui_get_begin_asm_address): Update.
10482 * value.c (value_static_field): Update.
10484 2014-02-26 Tom Tromey <tromey@redhat.com>
10486 * minsyms.c (prim_record_minimal_symbol_full): Use
10487 SET_MSYMBOL_VALUE_ADDRESS.
10488 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10489 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10490 SET_MSYMBOL_VALUE_ADDRESS.
10491 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10492 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10494 2014-02-26 Tom Tromey <tromey@redhat.com>
10496 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10497 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10498 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10499 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10500 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10501 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10502 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10503 * ada-lang.c (ada_main_name): Update.
10504 (ada_lookup_simple_minsym): Update.
10505 (ada_make_symbol_completion_list): Update.
10506 (ada_add_standard_exceptions): Update.
10507 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10508 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10509 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10510 * arm-tdep.c (skip_prologue_function): Update.
10511 (arm_skip_stack_protector, arm_skip_stub): Update.
10512 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10513 (arm_wince_skip_main_prologue): Update.
10514 * auxv.c (ld_so_xfer_auxv): Update.
10515 * avr-tdep.c (avr_scan_prologue): Update.
10516 * ax-gdb.c (gen_var_ref): Update.
10517 * block.c (call_site_for_pc): Update.
10518 * blockframe.c (get_pc_function_start): Update.
10519 (find_pc_partial_function_gnu_ifunc): Update.
10520 * breakpoint.c (create_overlay_event_breakpoint): Update.
10521 (create_longjmp_master_breakpoint): Update.
10522 (create_std_terminate_master_breakpoint): Update.
10523 (create_exception_master_breakpoint): Update.
10524 (resolve_sal_pc): Update.
10525 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10526 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10528 * c-valprint.c (c_val_print): Update.
10529 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10530 * coffread.c (coff_symfile_read): Update.
10531 * common/agent.c (agent_look_up_symbols): Update.
10532 * dbxread.c (find_stab_function_addr): Update.
10533 (end_psymtab): Update.
10534 * dwarf2loc.c (call_site_to_target_addr): Update.
10535 (func_verify_no_selftailcall): Update.
10536 (tailcall_dump): Update.
10537 (call_site_find_chain_1): Update.
10538 (dwarf_expr_reg_to_entry_parameter): Update.
10539 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10540 (elf_gnu_ifunc_resolve_by_got): Update.
10541 * f-valprint.c (info_common_command): Update.
10542 * findvar.c (read_var_value): Update.
10543 * frame.c (get_prev_frame_1): Update.
10544 (inside_main_func): Update.
10545 * frv-tdep.c (frv_skip_main_prologue): Update.
10546 (frv_frame_this_id): Update.
10547 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10548 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10549 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10550 (gnuv3_skip_trampoline): Update.
10551 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10552 (hppa64_hpux_in_solib_call_trampoline): Update.
10553 (hppa_hpux_skip_trampoline_code): Update.
10554 (hppa64_hpux_search_dummy_call_sequence): Update.
10555 (hppa_hpux_find_import_stub_for_addr): Update.
10556 (hppa_hpux_find_dummy_bpaddr): Update.
10557 * hppa-tdep.c (hppa_symbol_address)
10558 (hppa_lookup_stub_minimal_symbol): Update.
10559 * i386-tdep.c (i386_skip_main_prologue): Update.
10560 (i386_pe_skip_trampoline_code): Update.
10561 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10562 * infcall.c (get_function_name): Update.
10563 * infcmd.c (until_next_command): Update.
10564 * jit.c (jit_breakpoint_re_set_internal): Update.
10565 (jit_inferior_init): Update.
10566 * linespec.c (minsym_found): Update.
10567 (add_minsym): Update.
10568 * linux-fork.c (info_checkpoints_command): Update.
10569 * linux-nat.c (get_signo): Update.
10570 * linux-thread-db.c (inferior_has_bug): Update.
10571 * m32c-tdep.c (m32c_return_value): Update.
10572 (m32c_m16c_address_to_pointer): Update.
10573 (m32c_m16c_pointer_to_address): Update.
10574 * m32r-tdep.c (m32r_frame_this_id): Update.
10575 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10576 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10577 * maint.c (maintenance_translate_address): Update.
10578 * minsyms.c (add_minsym_to_hash_table): Update.
10579 (add_minsym_to_demangled_hash_table): Update.
10580 (msymbol_objfile): Update.
10581 (lookup_minimal_symbol): Update.
10582 (iterate_over_minimal_symbols): Update.
10583 (lookup_minimal_symbol_text): Update.
10584 (lookup_minimal_symbol_by_pc_name): Update.
10585 (lookup_minimal_symbol_solib_trampoline): Update.
10586 (lookup_minimal_symbol_by_pc_section_1): Update.
10587 (lookup_minimal_symbol_and_objfile): Update.
10588 (prim_record_minimal_symbol_full): Update.
10589 (compare_minimal_symbols): Update.
10590 (compact_minimal_symbols): Update.
10591 (build_minimal_symbol_hash_tables): Update.
10592 (install_minimal_symbols): Update.
10593 (terminate_minimal_symbol_table): Update.
10594 (find_solib_trampoline_target): Update.
10595 (minimal_symbol_upper_bound): Update.
10596 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10597 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10598 (mips_skip_pic_trampoline_code): Update.
10599 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10600 * objc-lang.c (selectors_info): Update.
10601 (classes_info): Update.
10602 (find_methods): Update.
10603 (find_imps): Update.
10604 (find_objc_msgsend): Update.
10605 * objfiles.c (objfile_relocate1): Update.
10606 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10607 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10608 * p-valprint.c (pascal_val_print): Update.
10609 * parse.c (write_exp_msymbol): Update.
10610 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10611 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10612 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10613 * printcmd.c (build_address_symbolic): Update.
10614 (sym_info): Update.
10615 (address_info): Update.
10616 * proc-service.c (ps_pglobal_lookup): Update.
10617 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10618 (find_pc_sect_psymtab): Update.
10619 * python/py-framefilter.c (py_print_frame): Update.
10620 * ravenscar-thread.c (get_running_thread_id): Update.
10621 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10623 * remote.c (remote_check_symbols): Update.
10624 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10625 (rs6000_skip_trampoline_code): Update.
10626 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10627 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10628 * solib-dsbt.c (lm_base): Update.
10629 * solib-frv.c (lm_base): Update.
10630 (main_got): Update.
10631 * solib-irix.c (locate_base): Update.
10632 * solib-som.c (som_solib_create_inferior_hook): Update.
10633 (som_solib_desire_dynamic_linker_symbols): Update.
10634 (link_map_start): Update.
10635 * solib-spu.c (spu_enable_break): Update.
10636 (ocl_enable_break): Update.
10637 * solib-svr4.c (elf_locate_base): Update.
10638 (enable_break): Update.
10639 * spu-tdep.c (spu_get_overlay_table): Update.
10640 (spu_catch_start): Update.
10641 (flush_ea_cache): Update.
10642 * stabsread.c (define_symbol): Update.
10643 (scan_file_globals): Update.
10644 * stack.c (find_frame_funname): Update.
10645 (frame_info): Update.
10646 * symfile.c (simple_read_overlay_table): Update.
10647 (simple_overlay_update): Update.
10648 * symmisc.c (dump_msymbols): Update.
10649 * symtab.c (fixup_section): Update.
10650 (find_pc_sect_line): Update.
10651 (skip_prologue_sal): Update.
10652 (search_symbols): Update.
10653 (print_msymbol_info): Update.
10654 (rbreak_command): Update.
10655 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10656 (completion_list_objc_symbol): Update.
10657 (default_make_symbol_completion_list_break_on): Update.
10658 * tracepoint.c (scope_info): Update.
10659 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10660 (tui_get_begin_asm_address): Update.
10661 * valops.c (find_function_in_inferior): Update.
10662 * value.c (value_static_field): Update.
10663 (value_fn_field): Update.
10665 2014-02-26 Tom Tromey <tromey@redhat.com>
10667 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10668 bound minimal symbols. Move code that knows about minsym
10670 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10672 * minsyms.h (minimal_symbol_upper_bound): Declare.
10673 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10674 minimal_symbol_upper_bound.
10676 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10678 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10679 Use the type's name if its basic type does not have a tag.
10681 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10683 * dwarf2read.c (read_subrange_type): Add comment.
10685 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10687 * dwarf2read.c (update_enumeration_type_from_children): New
10688 function, mostly extracted from process_structure_scope.
10689 (read_enumeration_type): Call update_enumeration_type_from_children.
10690 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10691 and flag_flag_enum fields.
10693 2014-02-26 Pedro Alves <palves@redhat.com>
10695 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10696 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10697 to_xfer_partial method.
10699 2014-02-26 Pedro Alves <palves@redhat.com>
10701 * target.c (complete_target_initialization): Don't install
10702 default_xfer_partial as to_xfer_partial hook.
10703 (nomemory): Delete.
10704 (update_current_target): Don't INHERIT nor de_fault
10705 deprecated_xfer_memory. Delete de_fault macro.
10706 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10707 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10708 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10711 2014-02-26 Pedro Alves <palves@redhat.com>
10713 * go32-nat.c (my_write_child): New function.
10714 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10715 (go32_xfer_partial): New function.
10716 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10717 Instead install a to_xfer_partial hook.
10719 2014-02-26 Pedro Alves <palves@redhat.com>
10721 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10722 to_xfer_partial helper. Rewrite.
10723 (procfs_xfer_partial): New function.
10724 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10725 Install a to_xfer_partial hook.
10727 2014-02-26 Pedro Alves <palves@redhat.com>
10729 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10730 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10731 (m32r_xfer_partial): New function.
10732 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10733 Install a to_xfer_partial hook.
10735 2014-02-26 Pedro Alves <palves@redhat.com>
10737 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10739 (mips_xfer_partial): New function.
10740 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10741 hook. Install a to_xfer_partial hook.
10743 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10745 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10746 * gdbtypes.c (create_array_type_with_stride): New function,
10747 renaming create_array_type, but with an added parameter
10748 called "bit_stride".
10749 (create_array_type): Re-implement using
10750 create_array_type_with_stride.
10751 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10752 and DW_AT_bit_stride attributes.
10754 2014-02-26 Pedro Alves <palves@redhat.com>
10756 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10757 task-specific breakpoints.
10759 2014-02-25 Pedro Alves <palves@redhat.com>
10761 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10762 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10764 2014-02-25 Stan Shebs <stan@codesourcery.com>
10766 * defs.h: Annotate comments for Doxygen.
10768 2014-02-25 Tom Tromey <tromey@redhat.com>
10770 * target.h (target_ignore): Don't declare.
10771 * target.c (target_ignore): Remove.
10773 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10776 * auto-load.c (auto_load_objfile_script_1): Change filename to
10779 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10781 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10782 documentation. Adjust prototype to match the target_ops
10783 to_xfer_partial method. Adjust implementation accordingly.
10785 2014-02-25 Hui Zhu <hui@codesourcery.com>
10787 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10788 to_traceframe_info.
10790 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10792 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10793 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10794 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10795 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10796 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10797 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10798 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10799 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10801 (rl78_register_type): Use a data pointer type for SP and
10802 new pseudo registers mentioned above. Use a 16 bit integer
10803 type for all other register pairs.
10804 (rl78_register_name, rl78_g10_register_name): Update for
10805 new pseudo registers.
10806 (rl78_pseudo_register_read): Likewise.
10807 (rl78_pseudo_register_write): Likewise.
10808 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10809 to the newly added pseudo registers.
10811 2014-02-24 Doug Evans <dje@google.com>
10813 * value.c (record_latest_value): Fix comment.
10814 * printcmd.c (print_command_1): Remove code to handle -1 return from
10815 record_latest_value.
10817 2014-02-24 Pedro Alves <palves@redhat.com>
10819 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10820 deprecated_xfer_memory hook.
10821 (procfs_xfer_partial): Call procfs_xfer_memory instead
10822 of the deprecated_xfer_memory target hook.
10823 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10826 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10828 * windows-nat.c (windows_xfer_shared_libraries): Return
10829 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10830 requested object is TARGET_OBJECT_LIBRARIES.
10832 2014-02-24 Yao Qi <yao@codesourcery.com>
10834 * target.h (enum target_xfer_status)
10835 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10836 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10838 * corefile.c (memory_error_message): User updated.
10839 * exec.c (section_table_read_available_memory): Likewise.
10840 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10841 * target.c (target_xfer_status_to_string): Likewise.
10842 (raw_memory_xfer_partial): Likewise.
10843 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10844 * valops.c (read_value_memory): Likewise.
10845 * exec.h: Update comments.
10847 2014-02-24 Yao Qi <yao@codesourcery.com>
10849 * target.c (target_xfer_status_to_string): Rename argument err
10851 * target.h (target_xfer_status_to_string): Update declaration.
10852 Replace target_xfer_error_to_string with
10853 target_xfer_status_to_string in comment.
10855 2014-02-24 Yao Qi <yao@codesourcery.com>
10857 * mips-linux-nat.c (super_close): Update its type.
10858 (mips_linux_close): Pass 'self' to super_close.
10860 2014-02-24 Yao Qi <yao@codesourcery.com>
10862 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10863 * corefile.c (read_memory): Adjusted.
10864 * target.c (target_write_with_progress): Adjusted.
10866 2014-02-23 Yao Qi <yao@codesourcery.com>
10868 Revert two patches:
10870 2013-10-25 Yao Qi <yao@codesourcery.com>
10872 * remote.c (remote_traceframe_info): Return early if
10873 traceframe is not selected.
10875 2013-07-19 Yao Qi <yao@codesourcery.com>
10877 * target.c (update_current_target): Change the default action
10878 of 'to_traceframe_info' from tcomplain to return_zero.
10879 * target.h (struct target_ops) <to_traceframe_info>: Add more
10882 2014-02-23 Yao Qi <yao@codesourcery.com>
10884 * valops.c (read_value_memory): Rewrite it. Call
10885 target_xfer_partial in a loop.
10886 * exec.h (section_table_available_memory): Remove declaration.
10887 Move comments to ...
10888 * exec.c (section_table_available_memory): ... here. Make it
10891 2014-02-23 Yao Qi <yao@codesourcery.com>
10893 * exec.c (section_table_read_available_memory): New function.
10894 * exec.h (section_table_read_available_memory): Declare.
10895 * ctf.c (ctf_xfer_partial): Call
10896 section_table_read_available_memory.
10897 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10899 2014-02-23 Yao Qi <yao@codesourcery.com>
10901 * ctf.c (ctf_xfer_partial): Move code to ...
10902 * exec.c (exec_read_partial_read_only): ... it. New function.
10903 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10904 * tracefile.c: Include "exec.h".
10905 * exec.h (exec_read_partial_read_only): Declare.
10907 2014-02-23 Yao Qi <yao@codesourcery.com>
10909 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10910 (tfile_has_memory): Remove.
10911 (init_tfile_ops): Don't set fields to_has_all_memory and
10912 to_has_memory of tfile_ops.
10913 * tracefile.c (tracefile_has_all_memory): New function.
10914 (tracefile_has_memory): New function.
10915 (init_tracefile_ops): Initialize fields to_has_all_memory and
10916 to_has_memory of 'ops'.
10918 2014-02-23 Yao Qi <yao@codesourcery.com>
10920 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10921 (ctf_thread_alive, ctf_get_trace_status): Remove.
10922 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10923 init_tracefile_ops.
10924 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10925 (tfile_has_stack, tfile_has_registers): Remove.
10926 (tfile_thread_alive): Remove.
10927 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10928 init_tracefile_ops.
10929 * tracefile.c (tracefile_has_stack): New function.
10930 (tracefile_has_registers): New function.
10931 (tracefile_thread_alive): New function.
10932 (tracefile_get_trace_status): New function.
10933 (init_tracefile_ops): New function.
10934 * tracefile.h (init_tracefile_ops): Declare.
10936 2014-02-23 Yao Qi <yao@codesourcery.com>
10938 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10939 (O_LARGEFILE): Likewise.
10940 (tfile_ops): Likewise.
10941 (TRACE_HEADER_SIZE): Likewise.
10942 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10943 (cur_data_size): Likewise.
10944 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10945 (tfile_close, tfile_files_info): Likewise.
10946 (tfile_get_trace_status): Likewise.
10947 (tfile_get_tracepoint_status): Likewise.
10948 (tfile_get_traceframe_address): Likewise.
10949 (tfile_trace_find, match_blocktype): Likewise.
10950 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10951 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10952 (tfile_get_trace_state_variable_value): Likewise.
10953 (tfile_has_all_memory, tfile_has_memory): Likewise.
10954 (tfile_has_stack, tfile_has_registers): Likewise.
10955 (tfile_thread_alive, build_traceframe_info): Likewise.
10956 (tfile_traceframe_info, init_tfile_ops): Likewise.
10957 (_initialize_tracepoint): Don't call init_tfile_ops
10958 and add_target_with_completer.
10959 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10960 exec.h, completer.h and filenames.h.
10961 (_initialize_tracefile_tfile): New function.
10963 2014-02-23 Yao Qi <yao@codesourcery.com>
10965 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10967 (HFILES_NO_SRCDIR): Add tracefile.h.
10968 * ctf.c: Include "tracefile.h".
10969 * tracefile.h: New file.
10970 * tracefile.c: New file
10971 * tracefile-tfile.c: New file.
10972 * tracepoint.c: Include "tracefile.h".
10973 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10974 (stop_reason_names): Add const.
10975 (trace_file_writer_xfree): Move it to tracefile.c.
10976 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10977 (trace_save_ctf): Likewise.
10978 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10979 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10980 (tfile_write_header, tfile_write_regblock_type): Likewise.
10981 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10982 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10983 (tfile_write_raw_data, tfile_end): Likewise.
10984 (tfile_trace_file_writer_new): Likewise.
10985 (free_uploaded_tp): Make it extern.
10986 (free_uploaded_tsv): Make it extern.
10987 (_initialize_tracepoint): Move code to register command 'tsave'
10989 * tracepoint.h (stop_reason_names): Declare.
10990 (struct trace_frame_write_ops): Move it to tracefile.h.
10991 (struct trace_file_write_ops): Likewise.
10992 (struct trace_file_writer): Likewise.
10993 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10995 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10998 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11000 (get_cores_used_by_process): New parameter num_cores, use it.
11001 (linux_xfer_osdata_processes): Pass num_cores to it.
11002 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11005 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11007 * target.c (memory_xfer_partial): Fix length arg in call to
11008 breakpoint_xfer_memory.
11010 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11013 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11014 number comes after the + or - signs. Adjust length of register
11015 name to be extracted.
11017 2014-02-20 Tom Tromey <tromey@redhat.com>
11019 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11020 (ada_varobj_ops): Mark "extern".
11022 2014-02-20 Tom Tromey <tromey@redhat.com>
11024 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11026 2014-02-20 Doug Evans <xdje42@gmail.com>
11028 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11029 All callers updated.
11030 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11031 All callers updated.
11032 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11033 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11035 2014-02-20 lin zuojian <manjian2006@gmail.com>
11036 Joel Brobecker <brobecker@adacore.com>
11037 Doug Evans <xdje42@gmail.com>
11040 * dwarf2read.c (struct die_info): New member in_process.
11041 (reset_die_in_process): New function.
11042 (process_die): Set it at the start, reset when returning.
11043 (inherit_abstract_dies): Only call process_die if origin_child_die
11044 not already being processed.
11046 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11048 * windows-nat.c (handle_unload_dll): Add function documentation.
11049 (do_initial_windows_stuff): Add comment explaining why we wait
11050 until after inferior initialization has finished before
11051 processing all DLLs.
11053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11055 * windows-nat.c (get_module_name): Delete.
11056 (windows_get_exec_module_filename): New function, mostly
11057 inspired from get_module_name.
11058 (windows_pid_to_exec_file): Replace call to get_module_name
11059 by call to windows_get_exec_module_filename.
11061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11063 * windows-nat.c (handle_load_dll): Rewrite this function's
11064 introductory comment. Remove code using get_module_name
11065 to get the DLL's name.
11067 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11069 * windows-nat.c (get_windows_debug_event): Ignore
11070 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11071 if windows_initialization_done == 0.
11072 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11073 Adjust implementation to always load all DLLs.
11074 (do_initial_windows_stuff): Replace call to
11075 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11079 * windows-nat.c (_initialize_windows_nat): Deprecate the
11080 "dll-symbols" command. Turn the "add-shared-symbol-files"
11081 and "assf" aliases into commands, and deprecate them as well.
11082 * NEWS: Add entry explaining that "dll-symbols" and its two
11083 aliases are now deprecated.
11085 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11087 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11088 new-line in debug string. Remove trailing spaces.
11090 2014-02-19 Stan Shebs <stan@codesourcery.com>
11092 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11094 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11096 * NEWS: Add entry for the new feature
11097 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11100 2014-02-19 Stan Shebs <stan@codesourcery.com>
11102 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11104 2014-02-19 Pedro Alves <palves@redhat.com>
11106 * common/ptid.h (struct ptid): Mention that process_stratum
11107 targets should prefer ptid.lwp.
11109 2014-02-19 Pedro Alves <palves@redhat.com>
11111 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11112 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11113 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11114 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11115 store remote thread ids rather than ptid.tid.
11116 (_initialize_remote): Adjust.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.c (target_get_unwinder): Rewrite.
11121 (target_get_tailcall_unwinder): Rewrite.
11122 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11123 (record_btrace_to_get_tailcall_unwinder): New function.
11124 (init_record_btrace_ops): Update.
11125 * target.h (struct target_ops) <to_get_unwinder,
11126 to_get_tailcall_unwinder>: Now function pointers. Use
11127 TARGET_DEFAULT_RETURN.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11133 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11135 2014-02-19 Tom Tromey <tromey@redhat.com>
11137 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11139 * target-delegates.c: Rebuild.
11140 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11141 TARGET_DEFAULT_FUNC.
11142 * target.c (default_target_decr_pc_after_break): Rename from
11143 forward_target_decr_pc_after_break. Simplify.
11144 (target_decr_pc_after_break): Rely on delegation.
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11148 * target.c (update_current_target): Do not INHERIT to_doc or
11149 to_magic. Do not de_fault to_open or to_close.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * gcore.h (objfile_find_memory_regions): Declare.
11154 * gcore.c (objfile_find_memory_regions): No longer static. Add
11156 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11157 * exec.c: Include gcore.h.
11158 (exec_set_find_memory_regions): Remove.
11159 (exec_find_memory_regions): Remove.
11160 (exec_do_find_memory_regions): Remove.
11161 (init_exec_ops): Update.
11162 * defs.h (exec_set_find_memory_regions): Remove.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.h (struct target_ops) <to_extra_thread_info,
11168 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11169 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11170 not 0, in TARGET_DEFAULT_RETURN.
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target.c (complete_target_initialization): Remove casts. Use
11175 return_zero_has_execution.
11176 (return_zero): Add "ignore" argument.
11177 (return_zero_has_execution): New function.
11178 (init_dummy_target): Remove casts. Use
11179 return_zero_has_execution.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.c (update_current_target): Update comments. Do not
11184 INHERIT to_stratum.
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11188 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11190 * corelow.c (core_read_description): Delegate when needed.
11191 * remote.c (remote_read_description): Delegate when needed.
11192 * target-delegates.c: Rebuild.
11193 * target.c (target_read_description): Rewrite.
11194 * target.h (struct target_ops) <to_read_description>: Update
11195 comment. Use TARGET_DEFAULT_RETURN.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11202 (find_default_run_target): Check against delegate_can_run.
11203 * target.h (struct target_ops) <to_can_run>: Use
11204 TARGET_DEFAULT_RETURN.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_disconnect): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_disconnect>: Use
11211 TARGET_DEFAULT_NORETURN.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * record.c (record_stop): Unconditionally delegate.
11216 * target-delegates.c: Rebuild.
11217 * target.c (target_stop_recording): Unconditionally delegate.
11218 * target.h (struct target_ops) <to_stop_recording>: Use
11219 TARGET_DEFAULT_IGNORE.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_enable_btrace): Unconditionally delegate.
11225 * target.h (struct target_ops) <to_enable_btrace>: Use
11226 TARGET_DEFAULT_NORETURN.
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11230 * target-delegates.c: Rebuild.
11231 * target.c (target_read_btrace): Unconditionally delegate.
11232 * target.h (struct target_ops) <to_read_btrace>: Use
11233 TARGET_DEFAULT_NORETURN.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target-delegates.c: Rebuild.
11238 * target.c (target_teardown_btrace): Unconditionally delegate.
11239 * target.h (struct target_ops) <to_teardown_btrace>: Use
11240 TARGET_DEFAULT_NORETURN.
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target-delegates.c: Rebuild.
11245 * target.c (target_disable_btrace): Unconditionally delegate.
11246 * target.h (struct target_ops) <to_disable_btrace>: Use
11247 TARGET_DEFAULT_NORETURN.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target-delegates.c: Rebuild.
11252 * target.c (default_search_memory): New function.
11253 (simple_search_memory): Update comment.
11254 (target_search_memory): Unconditionally delegate.
11255 * target.h (struct target_ops) <to_search_memory>: Use
11256 TARGET_DEFAULT_FUNC.
11258 2014-02-19 Tom Tromey <tromey@redhat.com>
11260 * auxv.c (default_auxv_parse): No longer static.
11261 (target_auxv_parse): Unconditionally delegate.
11262 * auxv.h (default_auxv_parse): Declare.
11263 * target-delegates.c: Rebuild.
11264 * target.c: Include auxv.h.
11265 * target.h (struct target_ops) <to_auxv_parse>: Use
11266 TARGET_DEFAULT_FUNC.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target-delegates.c: Rebuild.
11271 * target.c (target_memory_map): Unconditionally delegate.
11272 * target.h (struct target_ops) <to_memory_map>: Use
11273 TARGET_DEFAULT_RETURN.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target-delegates.c: Rebuild.
11278 * target.c (target_thread_alive): Unconditionally delegate.
11279 * target.h (struct target_ops) <to_thread_alive>: Use
11280 TARGET_DEFAULT_RETURN.
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target-delegates.c: Rebuild.
11285 * target.c (target_save_record): Unconditionally delegate.
11286 * target.h (struct target_ops) <to_save_record>: Use
11287 TARGET_DEFAULT_NORETURN.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target-delegates.c: Rebuild.
11292 * target.c (target_delete_record): Unconditionally delegate.
11293 * target.h (struct target_ops) <to_delete_record>: Use
11294 TARGET_DEFAULT_NORETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_record_is_replaying): Unconditionally
11301 * target.h (struct target_ops) <to_record_is_replaying>: Use
11302 TARGET_DEFAULT_RETURN.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_goto_record_begin): Unconditionally delegate.
11308 * target.h (struct target_ops) <to_goto_record_begin>: Use
11309 TARGET_DEFAULT_NORETURN.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target-delegates.c: Rebuild.
11314 * target.c (target_goto_record_end): Unconditionally delegate.
11315 * target.h (struct target_ops) <to_goto_record_end>: Use
11316 TARGET_DEFAULT_NORETURN.
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11320 * target-delegates.c: Rebuild.
11321 * target.c (target_goto_record): Unconditionally delegate.
11322 * target.h (struct target_ops) <to_goto_record>: Use
11323 TARGET_DEFAULT_NORETURN.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * target-delegates.c: Rebuild.
11328 * target.c (target_insn_history): Unconditionally delegate.
11329 * target.h (struct target_ops) <to_insn_history>: Use
11330 TARGET_DEFAULT_NORETURN.
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * target-delegates.c: Rebuild.
11335 * target.c (target_insn_history_from): Unconditionally delegate.
11336 * target.h (struct target_ops) <to_insn_history_from>: Use
11337 TARGET_DEFAULT_NORETURN.
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11341 * target-delegates.c: Rebuild.
11342 * target.c (target_insn_history_range): Unconditionally delegate.
11343 * target.h (struct target_ops) <to_insn_history_range>: Use
11344 TARGET_DEFAULT_NORETURN.
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * target-delegates.c: Rebuild.
11349 * target.c (target_call_history): Unconditionally delegate.
11350 * target.h (struct target_ops) <to_call_history>: Use
11351 TARGET_DEFAULT_NORETURN.
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target-delegates.c: Rebuild.
11356 * target.c (target_call_history_from): Unconditionally delegate.
11357 * target.h (struct target_ops) <to_call_history_from>: Use
11358 TARGET_DEFAULT_NORETURN.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target-delegates.c: Rebuild.
11363 * target.c (target_call_history_range): Unconditionally delegate.
11364 * target.h (struct target_ops) <to_call_history_range>: Use
11365 TARGET_DEFAULT_NORETURN.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_verify_memory): Unconditionally delegate.
11371 * target.h (struct target_ops) <to_verify_memory>: Use
11372 TARGET_DEFAULT_NORETURN.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target-delegates.c: Rebuild.
11377 * target.c (target_core_of_thread): Unconditionally delegate.
11378 * target.h (struct target_ops) <to_core_of_thread>: Use
11379 TARGET_DEFAULT_RETURN.
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11383 * target-delegates.c: Rebuild.
11384 * target.c (target_flash_done): Unconditionally delegate.
11385 * target.h (struct target_ops) <to_flash_done>: Use
11386 TARGET_DEFAULT_NORETURN.
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * target-delegates.c: Rebuild.
11391 * target.c (target_flash_erase): Unconditionally delegate.
11392 * target.h (struct target_ops) <to_flash_erase>: Use
11393 TARGET_DEFAULT_NORETURN.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target-delegates.c: Rebuild.
11398 * target.c (target_get_section_table): Unconditionally delegate.
11399 * target.h (struct target_ops) <to_get_section_table>: Use
11400 TARGET_DEFAULT_RETURN.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target-delegates.c: Rebuild.
11405 * target.c (target_pid_to_str): Unconditionally delegate.
11406 (init_dummy_target): Don't initialize to_pid_to_str.
11407 (default_pid_to_str): Rename from dummy_pid_to_str.
11408 * target.h (struct target_ops) <to_pid_to_str>: Use
11409 TARGET_DEFAULT_FUNC.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target-delegates.c: Rebuild.
11414 * target.c (target_find_new_threads): Unconditionally delegate.
11415 * target.h (struct target_ops) <to_find_new_threads>: Use
11416 TARGET_DEFAULT_RETURN.
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_program_signals): Unconditionally delegate.
11422 * target.h (struct target_ops) <to_program_signals>: Use
11423 TARGET_DEFAULT_IGNORE.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_pass_signals): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_pass_signals>: Use
11430 TARGET_DEFAULT_IGNORE.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (default_mourn_inferior): New function.
11436 (target_mourn_inferior): Unconditionally delegate.
11437 * target.h (struct target_ops) <to_mourn_inferior>: Use
11438 TARGET_DEFAULT_FUNC.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (default_follow_fork): New function.
11444 (target_follow_fork): Unconditionally delegate.
11445 * target.h (struct target_ops) <to_follow_fork>: Use
11446 TARGET_DEFAULT_FUNC.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target-delegates.c: Rebuild.
11451 * target.c (target_kill): Unconditionally delegate.
11452 * target.h (struct target_ops) <to_kill>: Use
11453 TARGET_DEFAULT_NORETURN.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_masked_watch_num_registers): Unconditionally
11460 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11461 Use TARGET_DEFAULT_RETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (target_remove_mask_watchpoint): Unconditionally
11468 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11469 TARGET_DEFAULT_RETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_insert_mask_watchpoint): Unconditionally
11476 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11477 TARGET_DEFAULT_RETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_ranged_break_num_registers): Unconditionally
11484 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11485 Use TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (target_fetch_registers): Unconditionally delegate.
11491 * target.h (struct target_ops) <to_fetch_registers>: Use
11492 TARGET_DEFAULT_NORETURN.
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11499 * target.h (struct target_ops) <to_stop>: Use
11500 TARGET_DEFAULT_IGNORE.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_can_run_breakpoint_commands.
11507 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11508 Use TARGET_DEFAULT_RETURN.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_supports_evaluation_of_breakpoint_conditions.
11515 * target.h (struct target_ops)
11516 <to_supports_evaluation_of_breakpoint_conditions>: Use
11517 TARGET_DEFAULT_RETURN.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_augmented_libraries_svr4_read.
11524 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11525 Use TARGET_DEFAULT_RETURN.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11532 * target.h (struct target_ops) <to_can_use_agent>: Use
11533 TARGET_DEFAULT_RETURN.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11540 * target.h (struct target_ops) <to_use_agent>: Use
11541 TARGET_DEFAULT_NORETURN.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_traceframe_info.
11548 (return_null): Remove.
11549 * target.h (struct target_ops) <to_traceframe_info>: Use
11550 TARGET_DEFAULT_RETURN.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_static_tracepoint_markers_by_strid.
11557 * target.h (struct target_ops)
11558 <to_static_tracepoint_markers_by_strid>: Use
11559 TARGET_DEFAULT_NORETURN.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_static_tracepoint_marker_at.
11566 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11567 Use TARGET_DEFAULT_RETURN.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_set_permissions.
11574 * target.h (struct target_ops) <to_set_permissions>: Use
11575 TARGET_DEFAULT_IGNORE.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_get_tib_address.
11582 * target.h (struct target_ops) <to_get_tib_address>: Use
11583 TARGET_DEFAULT_NORETURN.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_set_trace_notes.
11590 * target.h (struct target_ops) <to_set_trace_notes>: Use
11591 TARGET_DEFAULT_RETURN.
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't initialize
11597 to_set_trace_buffer_size.
11598 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11599 TARGET_DEFAULT_IGNORE.
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_set_circular_trace_buffer.
11606 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11607 TARGET_DEFAULT_IGNORE.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_set_disconnected_tracing.
11614 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11615 TARGET_DEFAULT_IGNORE.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11621 to_get_min_fast_tracepoint_insn_len.
11622 (return_minus_one): Remove.
11623 * target.h (struct target_ops)
11624 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_get_raw_trace_data.
11631 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11632 TARGET_DEFAULT_NORETURN.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_upload_trace_state_variables.
11639 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11640 Use TARGET_DEFAULT_RETURN.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_upload_tracepoints.
11647 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11648 TARGET_DEFAULT_RETURN.
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_save_trace_data.
11655 * target.h (struct target_ops) <to_save_trace_data>: Use
11656 TARGET_DEFAULT_NORETURN.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_get_trace_state_variable_value.
11663 * target.h (struct target_ops)
11664 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target-delegates.c: Rebuild.
11669 * target.c (update_current_target): Don't inherit or default
11671 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11678 * target.h (struct target_ops) <to_trace_stop>: Use
11679 TARGET_DEFAULT_NORETURN.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_get_tracepoint_status.
11686 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11687 TARGET_DEFAULT_NORETURN.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_get_trace_status.
11694 * target.h (struct target_ops) <to_get_trace_status>: Use
11695 TARGET_DEFAULT_RETURN.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11702 * target.h (struct target_ops) <to_trace_start>: Use
11703 TARGET_DEFAULT_NORETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_trace_set_readonly_regions.
11710 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11711 Use TARGET_DEFAULT_NORETURN.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_disable_tracepoint.
11718 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_enable_tracepoint.
11726 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11727 TARGET_DEFAULT_NORETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_download_trace_state_variable.
11734 * target.h (struct target_ops) <to_download_trace_state_variable>:
11735 Use TARGET_DEFAULT_NORETURN.
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_can_download_tracepoint.
11742 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11743 TARGET_DEFAULT_RETURN.
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_download_tracepoint.
11750 * target.h (struct target_ops) <to_download_tracepoint>: Use
11751 TARGET_DEFAULT_NORETURN.
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11758 * target.h (struct target_ops) <to_trace_init>: Use
11759 TARGET_DEFAULT_RETURN.
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_supports_string_tracing.
11766 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11767 TARGET_DEFAULT_RETURN.
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11771 * target-delegates.c: Rebuild.
11772 * target.c (update_current_target): Don't inherit or default
11773 to_supports_enable_disable_tracepoint.
11774 * target.h (struct target_ops)
11775 <to_supports_enable_disable_tracepoint>: Use
11776 TARGET_DEFAULT_RETURN.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_supports_multi_process.
11783 * target.h (struct target_ops) <to_supports_multi_process>: Use
11784 TARGET_DEFAULT_RETURN.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_get_ada_task_ptid.
11791 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11792 TARGET_DEFAULT_FUNC.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_thread_architecture.
11799 * target.h (struct target_ops) <to_thread_architecture>: Use
11800 TARGET_DEFAULT_FUNC.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_execution_direction.
11807 * target.h (struct target_ops) <to_execution_direction>: Use
11808 TARGET_DEFAULT_FUNC.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_can_execute_reverse.
11815 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11816 TARGET_DEFAULT_RETURN.
11817 (target_can_execute_reverse): Unconditionally delegate.
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11824 (dummy_goto_bookmark): Remove.
11825 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11826 * target.h (struct target_ops) <to_goto_bookmark>: Use
11827 TARGET_DEFAULT_NORETURN.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11834 (dummy_get_bookmark): Remove.
11835 (init_dummy_target): Don't inherit or default to_get_bookmark.
11836 * target.h (struct target_ops) <to_get_bookmark>: Use
11837 TARGET_DEFAULT_NORETURN
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_make_corefile_notes.
11844 (init_dummy_target): Don't initialize to_make_corefile_notes.
11845 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11846 TARGET_DEFAULT_FUNC.
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11850 * target-delegates.c: Rebuild.
11851 * target.c (update_current_target): Don't inherit or default
11852 to_find_memory_regions.
11853 (init_dummy_target): Don't initialize to_find_memory_regions.
11854 * target.h (struct target_ops) <to_find_memory_regions>: Use
11855 TARGET_DEFAULT_FUNC.
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11862 * target.h (struct target_ops) <to_log_command>: Use
11863 TARGET_DEFAULT_IGNORE.
11864 (target_log_command): Unconditionally delegate.
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_pid_to_exec_file.
11871 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11872 TARGET_DEFAULT_RETURN.
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11879 (target_thread_name): Unconditionally delegate.
11880 * target.h (struct target_ops) <to_thread_name>: Use
11881 TARGET_DEFAULT_RETURN.
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * target-delegates.c: Rebuild.
11886 * target.c (update_current_target): Don't inherit or default
11887 to_extra_thread_info.
11888 * target.h (struct target_ops) <to_extra_thread_info>: Use
11889 TARGET_DEFAULT_RETURN.
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11896 * target.h (struct target_ops) <to_has_exited>: Use
11897 TARGET_DEFAULT_RETURN..
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11901 * target-delegates.c: Rebuild.
11902 * target.c (update_current_target): Don't inherit or default
11903 to_set_syscall_catchpoint.
11904 (return_one): Remove.
11905 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_insert_exec_catchpoint.
11913 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11916 2014-01-08 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_insert_exec_catchpoint.
11921 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11922 TARGET_DEFAULT_RETURN.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_remove_vfork_catchpoint.
11929 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11930 TARGET_DEFAULT_RETURN.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_insert_vfork_catchpoint.
11937 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11938 TARGET_DEFAULT_RETURN.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_remove_fork_catchpoint.
11945 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11946 TARGET_DEFAULT_RETURN.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_insert_fork_catchpoint.
11953 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11954 TARGET_DEFAULT_RETURN.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_post_startup_inferior.
11961 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11962 TARGET_DEFAULT_IGNORE.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11969 * target.h (struct target_ops) <to_load>: Use
11970 TARGET_DEFAULT_NORETURN.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11977 * target.h (struct target_ops) <to_terminal_info>: Use
11978 TARGET_DEFAULT_FUNC.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_terminal_save_ours.
11985 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11986 TARGET_DEFAULT_IGNORE.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11993 * target.h (struct target_ops) <to_terminal_ours>: Use
11994 TARGET_DEFAULT_IGNORE.
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_terminal_ours_for_output.
12001 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12002 TARGET_DEFAULT_IGNORE.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_terminal_inferior.
12009 * target.h (struct target_ops) <to_terminal_inferior>: Use
12010 TARGET_DEFAULT_IGNORE.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12017 * target.h (struct target_ops) <to_terminal_init>: Use
12018 TARGET_DEFAULT_IGNORE.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_can_accel_watchpoint_condition.
12025 * target.h (struct target_ops)
12026 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_region_ok_for_hw_watchpoint.
12033 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12034 Use TARGET_DEFAULT_FUNC.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_watchpoint_addr_within_range.
12041 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12042 Use TARGET_DEFAULT_FUNC.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_remove_watchpoint.
12049 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12050 TARGET_DEFAULT_NORETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_insert_watchpoint.
12057 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_remove_hw_breakpoint.
12065 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_insert_hw_breakpoint.
12073 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_can_use_hw_breakpoint.
12081 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12082 TARGET_DEFAULT_RETURN.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12089 * target.h (struct target_ops) <to_files_info>: Use
12090 TARGET_DEFAULT_IGNORE.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12097 * target.h (struct target_ops) <to_store>: Use
12098 TARGET_DEFAULT_NORETURN.
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12105 * target.h (struct target_ops) <to_post_attach>: Use
12106 TARGET_DEFAULT_IGNORE.
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12113 (default_rcmd): New function.
12114 (do_monitor_command): Unconditionally delegate.
12115 * target.h (struct target_ops) <to_rmcd>: Use
12116 TARGET_DEFAULT_FUNC.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target-delegates.c: Rebuild.
12121 * target.c (init_dummy_target): Don't initialize to_attach.
12122 (target_attach): Unconditionally delegate.
12123 * target.h (struct target_ops) <to_attach>: Use
12124 TARGET_DEFAULT_FUNC.
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12128 * target-delegates.c: Rebuild.
12129 * target.c (target_detach): Unconditionally delegate.
12130 (init_dummy_target): Don't initialize to_detach.
12131 * target.h (struct target_ops) <to_detach>: Use
12132 TARGET_DEFAULT_IGNORE.
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12138 (target_augmented_libraries_svr4_read): Add argument.
12139 * target.c (update_current_target): Update.
12140 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target.h (struct target_ops) <to_call_history_range>: Add
12147 * target.c (target_call_history_range): Add argument.
12148 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12150 (record_btrace_call_history_from): Update.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target.h (struct target_ops) <to_call_history_from>: Add
12156 * target.c (target_call_history_from): Add argument.
12157 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target.h (struct target_ops) <to_call_history>: Add argument.
12163 * target.c (target_call_history): Add argument.
12164 * record-btrace.c (record_btrace_call_history): Add 'self'
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12169 * target.h (struct target_ops) <to_insn_history_range>: Add
12171 * target.c (target_insn_history_range): Add argument.
12172 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12174 (record_btrace_insn_history_from): Update.
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target.h (struct target_ops) <to_insn_history_from>: Add
12180 * target.c (target_insn_history_from): Add argument.
12181 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * target.h (struct target_ops) <to_insn_history>: Add argument.
12187 * target.c (target_insn_history): Add argument.
12188 * record-btrace.c (record_btrace_insn_history): Add 'self'
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12193 * target.h (struct target_ops) <to_goto_record>: Add argument.
12194 * target.c (target_goto_record): Add argument.
12195 * record-full.c (record_full_goto): Add 'self' argument.
12196 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12201 * target.c (target_goto_record_end): Add argument.
12202 * record-full.c (record_full_goto_end): Add 'self' argument.
12203 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * target.h (struct target_ops) <to_goto_record_begin>: Add
12209 * target.c (target_goto_record_begin): Add argument.
12210 * record-full.c (record_full_goto_begin): Add 'self' argument.
12211 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12216 * target.h (struct target_ops) <to_record_is_replaying>: Add
12218 * target.c (target_record_is_replaying): Add argument.
12219 * record-full.c (record_full_is_replaying): Add 'self' argument.
12220 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12222 (record_btrace_xfer_partial, record_btrace_store_registers)
12223 (record_btrace_prepare_to_store, record_btrace_resume)
12224 (record_btrace_wait, record_btrace_decr_pc_after_break)
12225 (record_btrace_find_new_threads, record_btrace_thread_alive):
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target.h (struct target_ops) <to_delete_record>: Add argument.
12231 * target.c (target_delete_record): Add argument.
12232 * record-full.c (record_full_delete): Add 'self' argument.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target.h (struct target_ops) <to_save_record>: Add argument.
12237 * target.c (target_save_record): Add argument.
12238 * record-full.c (record_full_save): Add 'self' argument.
12239 (record_full_save): Add 'self' argument.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target.h (struct target_ops) <to_info_record>: Add argument.
12244 * target.c (target_info_record): Add argument.
12245 * record.c (info_record_command): Add argument.
12246 * record-full.c (record_full_info): Add 'self' argument.
12247 * record-btrace.c (record_btrace_info): Add 'self' argument.
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12251 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12252 * target.c (target_stop_recording): Add argument.
12253 * record.c (record_stop): Add argument.
12254 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12259 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12260 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12261 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12263 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12264 (_initialize_amd64_linux_nat): Use it.
12265 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12266 (_initialize_i386_linux_nat): Use it.
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12271 * target.c (target_teardown_btrace): Add argument.
12272 * remote.c (remote_teardown_btrace): Add 'self' argument.
12273 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12275 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12278 2014-02-19 Tom Tromey <tromey@redhat.com>
12280 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12281 * target.c (target_disable_btrace): Add argument.
12282 * remote.c (remote_disable_btrace): Add 'self' argument.
12283 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12285 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12291 * target.c (target_enable_btrace): Add argument.
12292 * remote.c (remote_enable_btrace): Add 'self' argument.
12293 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12295 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12300 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12301 (target_can_use_agent): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_can_use_agent): Add 'self' argument.
12304 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12308 * target.h (struct target_ops) <to_use_agent>: Add argument.
12309 (target_use_agent): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_use_agent): Add 'self' argument.
12312 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12317 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12318 (target_traceframe_info): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_traceframe_info): Add 'self' argument.
12321 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12325 * target.h (target_static_tracepoint_markers_by_strid): Add
12327 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12329 * target.c (update_current_target): Update.
12330 * remote.c (struct target_ops)
12331 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12332 * linux-nat.c (struct target_ops)
12333 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12339 (target_static_tracepoint_marker_at): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12347 (target_set_permissions): Add argument.
12348 * target.c (update_current_target): Update.
12349 * remote.c (remote_set_permissions): Add 'self' argument.
12350 (remote_start_remote): Update.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12355 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12356 (target_get_tib_address): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_get_tib_address): Add 'self' argument.
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12362 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12363 (target_set_trace_notes): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_set_trace_notes): Add 'self' argument.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12371 (target_set_trace_buffer_size): Add argument.
12372 * target.c (update_current_target): Update.
12373 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12375 2014-02-19 Tom Tromey <tromey@redhat.com>
12377 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12379 (target_set_circular_trace_buffer): Add argument.
12380 * target.c (update_current_target): Update.
12381 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12386 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12388 (target_set_disconnected_tracing): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * target.h (struct target_ops)
12395 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12396 (target_get_min_fast_tracepoint_insn_len): Add argument.
12397 * target.c (update_current_target): Update.
12398 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12403 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12405 (target_get_raw_trace_data): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12413 (target_upload_trace_state_variables): Add argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (remote_upload_trace_state_variables): Add 'self'
12417 (remote_start_remote): Update.
12419 2014-02-19 Tom Tromey <tromey@redhat.com>
12421 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12423 (target_upload_tracepoints): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12426 (remote_start_remote): Update.
12428 2014-02-19 Tom Tromey <tromey@redhat.com>
12430 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12431 (target_save_trace_data): Add argument.
12432 * target.c (update_current_target): Update.
12433 * remote.c (remote_save_trace_data): Add 'self' argument.
12435 2014-02-19 Tom Tromey <tromey@redhat.com>
12437 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12439 * target.h (struct target_ops)
12440 <to_get_trace_state_variable_value>: Add argument.
12441 (target_get_trace_state_variable_value): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12445 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12450 * target.h (struct target_ops) <to_trace_find>: Add argument.
12451 (target_trace_find): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_trace_find): Add 'self' argument.
12454 * ctf.c (ctf_trace_find): Add 'self' argument.
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12458 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12459 (target_trace_stop): Add argument.
12460 * target.c (update_current_target): Update.
12461 * remote.c (remote_trace_stop): Add 'self' argument.
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12466 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12468 (target_get_tracepoint_status): Add argument.
12469 * target.c (update_current_target): Update.
12470 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12472 2014-02-19 Tom Tromey <tromey@redhat.com>
12474 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12475 * target.h (struct target_ops) <to_get_trace_status>: Add
12477 (target_get_trace_status): Add argument.
12478 * target.c (update_current_target): Update.
12479 * remote.c (remote_get_trace_status): Add 'self' argument.
12480 (remote_start_remote, remote_can_download_tracepoint): Update.
12481 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12483 2014-02-19 Tom Tromey <tromey@redhat.com>
12485 * target.h (struct target_ops) <to_trace_start>: Add argument.
12486 (target_trace_start): Add argument.
12487 * target.c (update_current_target): Update.
12488 * remote.c (remote_trace_start): Add 'self' argument.
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12492 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12494 (target_trace_set_readonly_regions): Add argument.
12495 * target.c (update_current_target): Update.
12496 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12503 (target_disable_tracepoint): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12511 (target_enable_tracepoint): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12517 * target.h (struct target_ops) <to_download_trace_state_variable>:
12519 (target_download_trace_state_variable): Add argument.
12520 * target.c (update_current_target): Update.
12521 * remote.c (remote_download_trace_state_variable): Add 'self'
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12528 (target_can_download_tracepoint): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target.h (struct target_ops) <to_download_tracepoint>: Add
12536 (target_download_tracepoint): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_download_tracepoint): Add 'self' argument.
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target.h (struct target_ops) <to_trace_init>: Add argument.
12543 (target_trace_init): Add argument.
12544 * target.c (update_current_target): Update.
12545 * remote.c (remote_trace_init): Add 'self' argument.
12547 2014-02-19 Tom Tromey <tromey@redhat.com>
12549 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12550 * target.c (target_fileio_readlink): Add argument.
12551 * remote.c (remote_hostio_readlink): Add 'self' argument.
12552 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12556 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12557 * target.c (target_fileio_unlink): Add argument.
12558 * remote.c (remote_hostio_unlink): Add 'self' argument.
12559 (remote_file_delete): Update.
12560 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12564 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12565 * target.c (target_fileio_close): Add argument.
12566 * remote.c (remote_hostio_close): Add 'self' argument.
12567 (remote_hostio_close_cleanup): Update.
12568 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12570 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12575 * target.c (target_fileio_pread): Add argument.
12576 * remote.c (remote_hostio_pread): Add 'self' argument.
12577 (remote_bfd_iovec_pread, remote_file_get): Update.
12578 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12583 * target.c (target_fileio_pwrite): Add argument.
12584 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12585 (remote_file_put): Update.
12586 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12590 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12591 * target.c (target_fileio_open): Add argument.
12592 * remote.c (remote_hostio_open): Add 'self' argument.
12593 (remote_bfd_iovec_open): Add 'self' argument.
12594 (remote_file_put): Add 'self' argument.
12595 (remote_file_get): Add 'self' argument.
12596 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12602 (target_can_run_breakpoint_commands): Add argument.
12603 * target.c (update_current_target): Update.
12604 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12606 (remote_insert_breakpoint): Add 'self' argument.
12607 (remote_insert_hw_breakpoint): Add 'self' argument.
12608 (remote_can_run_breakpoint_commands): Add 'self' argument.
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12612 * target.h (struct target_ops)
12613 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12614 (target_supports_evaluation_of_breakpoint_conditions): Add
12616 * target.c (update_current_target): Update.
12617 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12619 (remote_insert_breakpoint): Add 'self' argument.
12620 (remote_insert_hw_breakpoint): Add 'self' argument.
12621 (remote_supports_cond_breakpoints): Add 'self' argument.
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12627 (target_supports_string_tracing): Add argument.
12628 * target.c (update_current_target): Update.
12629 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target.h (struct target_ops)
12634 <to_supports_disable_randomization>: Add argument.
12635 * target.c (find_default_supports_disable_randomization): Add
12637 (target_supports_disable_randomization): Add argument.
12638 (find_default_supports_disable_randomization): Add 'self'
12640 * remote.c (extended_remote_supports_disable_randomization): Add
12642 (remote_supports_disable_randomization): Add 'self' argument.
12643 (extended_remote_create_inferior): Update.
12644 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * target.h (struct target_ops)
12650 <to_supports_enable_disable_tracepoint>: Add argument.
12651 (target_supports_enable_disable_tracepoint): Add argument.
12652 * target.c (update_current_target): Update.
12653 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_supports_multi_process>: Add
12660 (target_supports_multi_process): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_supports_multi_process): Add 'self' argument.
12663 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12665 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target.h (struct target_ops) <to_execution_direction>: Add
12672 (target_execution_direction): Add argument.
12673 * target.c (default_execution_direction): Add 'self' argument.
12674 * record-full.c (record_full_execution_direction): Add 'self'
12677 2014-02-19 Tom Tromey <tromey@redhat.com>
12679 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12681 (target_can_execute_reverse): Add argument.
12682 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12683 * record-full.c (record_full_can_execute_reverse): Add 'self'
12685 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12690 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12691 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12693 (target_get_ada_task_ptid): Add argument.
12694 * target.c (update_current_target): Update.
12695 (default_get_ada_task_ptid): Add 'self' argument.
12696 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12697 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12698 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12700 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12702 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12704 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12706 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12707 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12710 2014-02-19 Tom Tromey <tromey@redhat.com>
12712 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12713 (target_goto_bookmark): Add argument.
12714 * target.c (dummy_goto_bookmark): Add 'self' argument.
12715 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12717 2014-02-19 Tom Tromey <tromey@redhat.com>
12719 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12720 (target_get_bookmark): Add argument.
12721 * target.c (dummy_get_bookmark): Add 'self' argument.
12722 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12728 (target_make_corefile_notes): Add argument.
12729 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12730 * procfs.c (procfs_make_note_section): Add 'self' argument.
12731 (procfs_make_note_section): Add 'self' argument.
12732 (procfs_make_note_section): Add 'self' argument.
12733 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12735 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12736 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12737 * exec.c (exec_make_note_section): Add 'self' argument.
12738 (exec_make_note_section): Add 'self' argument.
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12742 * target.h (struct target_ops) <to_find_memory_regions>: Add
12744 (target_find_memory_regions): Add argument.
12745 * target.c (dummy_find_memory_regions): Add 'self' argument.
12746 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12747 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12748 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12749 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12750 * exec. (exec_do_find_memory_regions): New global.
12751 (exec_set_find_memory_regions): Rewrite.
12752 (exec_find_memory_regions): New function.
12753 (init_exec_ops): Use exec_find_memory_regions.
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * target.h (struct target_ops) <to_supports_non_stop>: Add
12759 * target.c (find_default_supports_non_stop): Add argument.
12760 (target_supports_non_stop): Add argument.
12761 (find_default_supports_non_stop): Add 'self' argument.
12762 * remote.c (remote_supports_non_stop): Add 'self' argument.
12763 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12765 2014-02-19 Tom Tromey <tromey@redhat.com>
12767 * target.h (struct target_ops) <to_log_command>: Add argument.
12768 (target_log_command): Add argument.
12769 * serial.h (serial_log_command): Add 'self' argument.
12770 * serial.c (serial_log_command): Add 'self' argument.
12772 2014-02-19 Tom Tromey <tromey@redhat.com>
12774 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12775 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12777 (target_pid_to_exec_file): Add argument.
12778 * target.c (debug_to_pid_to_exec_file): Add argument.
12779 (update_current_target): Update.
12780 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12781 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12782 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12783 (linux_handle_extended_wait): Update.
12784 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12785 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12786 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12787 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12789 2014-02-19 Tom Tromey <tromey@redhat.com>
12791 * target.h (struct target_ops) <to_rcmd>: Add argument.
12792 (target_rcmd): Add argument.
12793 * target.c (debug_to_rcmd): Add argument.
12794 (update_current_target, do_monitor_command): Update.
12795 * remote.c (remote_rcmd): Add 'self' argument.
12796 * monitor.c (monitor_rcmd): Add 'self' argument.
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12800 * windows-nat.c (windows_stop): Add 'self' argument.
12801 * target.h (struct target_ops) <to_stop>: Add argument.
12802 * target.c (target_stop): Add argument.
12803 (debug_to_stop): Add argument.
12804 (update_current_target): Update.
12805 * remote.c (remote_stop): Add 'self' argument.
12806 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12807 (gdbsim_cntrl_c): Update.
12808 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12809 * procfs.c (procfs_stop): Add 'self' argument.
12810 * nto-procfs.c (procfs_stop): Add 'self' argument.
12811 * monitor.c (monitor_stop): Add 'self' argument.
12812 (monitor_open): Update.
12813 * linux-nat.c (linux_nat_stop): Add argument.
12814 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12815 * gnu-nat.c (gnu_stop): Add 'self' argument.
12816 * darwin-nat.c (darwin_stop): Add 'self' argument.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target.h (struct target_ops) <to_thread_name>: Add argument.
12821 * target.c (target_thread_name): Add argument.
12822 (update_current_target): Update.
12823 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * target.h (struct target_ops) <to_extra_thread_info>: Add
12829 (target_extra_thread_info): Add argument.
12830 * target.c (update_current_target): Update.
12831 * remote.c (remote_threads_extra_info): Add 'self' argument.
12832 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12834 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12835 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12836 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12838 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12840 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12842 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12847 * target.h (struct target_ops) <to_program_signals>: Add argument.
12848 * target.c (target_program_signals): Add argument.
12849 * remote.c (remote_program_signals): Add 'self' argument.
12851 2014-02-19 Tom Tromey <tromey@redhat.com>
12853 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12854 * target.c (target_pass_signals): Add argument.
12855 * remote.c (remote_pass_signals): Add 'self' argument.
12856 (remote_start_remote): Update.
12857 * procfs.c (procfs_pass_signals): Add 'self' argument.
12858 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12859 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12860 (linux_nat_create_inferior, linux_nat_attach): Update.
12862 2014-02-19 Tom Tromey <tromey@redhat.com>
12864 * windows-nat.c (windows_can_run): Add 'self' argument.
12865 * target.h (struct target_ops) <to_can_run>: Add argument.
12866 (target_can_run): Add argument.
12867 * target.c (debug_to_can_run): Add argument.
12868 (update_current_target): Update.
12869 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12870 * inf-child.c (inf_child_can_run): Add 'self' argument.
12871 * go32-nat.c (go32_can_run): Add 'self' argument.
12873 2014-02-19 Tom Tromey <tromey@redhat.com>
12875 * target.h (struct target_ops) <to_has_exited>: Add argument.
12876 (target_has_exited): Add argument.
12877 * target.c (debug_to_has_exited): Add argument.
12878 (update_current_target): Update.
12880 2014-02-19 Tom Tromey <tromey@redhat.com>
12882 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12884 (target_set_syscall_catchpoint): Add argument.
12885 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12887 * target.c (update_current_target): Update.
12889 2014-02-19 Tom Tromey <tromey@redhat.com>
12891 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12893 (target_remove_exec_catchpoint): Add argument.
12894 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12895 (update_current_target): Update.
12896 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12903 (target_insert_exec_catchpoint): Add argument.
12904 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12905 (update_current_target): Update.
12906 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12911 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12913 (target_remove_vfork_catchpoint): Add argument.
12914 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12915 (update_current_target): Update.
12916 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12921 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12923 (target_insert_vfork_catchpoint): Add argument.
12924 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12925 (update_current_target): Update.
12926 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12931 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12933 (target_remove_fork_catchpoint): Add argument.
12934 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12935 (update_current_target): Update.
12936 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12941 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12943 (target_insert_fork_catchpoint): Add argument.
12944 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12945 (update_current_target): Update.
12946 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12951 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12953 (target_post_startup_inferior): Add argument.
12954 * target.c (debug_to_post_startup_inferior): Add argument.
12955 (update_current_target): Update.
12956 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12958 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12960 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12962 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12964 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12966 (super_post_startup_inferior): Likewise.
12967 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12969 (super_post_startup_inferior): Likewise.
12970 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12971 Add 'self' argument.
12972 (super_post_startup_inferior): Likewise.
12974 2014-02-19 Tom Tromey <tromey@redhat.com>
12976 * target.h (struct target_ops) <to_load>: Add argument.
12977 * target.c (target_load): Add argument.
12978 (debug_to_load): Add argument.
12979 (update_current_target): Update.
12980 * remote.c (remote_load): Add 'self' argument.
12981 * remote-sim.c (gdbsim_load): Add 'self' argument.
12982 * remote-mips.c (mips_load): Add 'self' argument.
12983 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12984 * monitor.c (monitor_load): Add 'self' argument.
12985 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12987 2014-02-19 Tom Tromey <tromey@redhat.com>
12989 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12990 (target_terminal_info): Add argument.
12991 * target.c (debug_to_terminal_info): Add argument.
12992 (default_terminal_info): Likewise.
12993 * inflow.c (child_terminal_info): Add 'self' argument.
12994 * inferior.h (child_terminal_info): Add 'self' argument.
12995 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12997 2014-02-19 Tom Tromey <tromey@redhat.com>
12999 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13001 (target_terminal_save_ours): Add argument.
13002 * target.c (debug_to_terminal_save_ours): Add argument.
13003 (update_current_target): Update.
13004 * inflow.c (terminal_save_ours): Add 'self' argument.
13005 * inferior.h (terminal_save_ours): Add 'self' argument.
13007 2014-02-19 Tom Tromey <tromey@redhat.com>
13009 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13010 (target_terminal_ours): Add argument.
13011 * target.c (debug_to_terminal_ours): Add argument.
13012 (update_current_target): Update.
13013 * remote.c (remote_terminal_ours): Add 'self' argument.
13014 (remote_close): Update.
13015 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13016 * inflow.c (terminal_ours): Add 'self' argument.
13017 * inferior.h (terminal_ours): Add 'self' argument.
13018 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13020 2014-02-19 Pedro Alves <palves@redhat.com>
13021 Tom Tromey <tromey@redhat.com>
13023 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13025 (target_terminal_ours_for_output): Add argument.
13026 * target.c (debug_to_terminal_ours_for_output): Add argument.
13027 (update_current_target): Update.
13028 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13029 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13030 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13032 2014-02-19 Tom Tromey <tromey@redhat.com>
13034 * target.h (struct target_ops) <to_terminal_inferior>: Add
13036 * target.c (target_terminal_inferior): Add argument.
13037 (update_current_target): Update.
13038 * remote.c (remote_terminal_inferior): Add 'self' argument.
13039 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13040 * inflow.c (terminal_inferior): Add 'self' argument.
13041 * inferior.h (terminal_inferior): Add 'self' argument.
13042 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13043 (go32_terminal_inferior): Add 'self' argument.
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13047 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13048 (target_terminal_init): Add argument.
13049 * target.c (debug_to_terminal_init): Add argument.
13050 (update_current_target): Update.
13051 * inflow.c (terminal_init_inferior): Add 'self' argument.
13052 * inferior.h (terminal_init_inferior): Add 'self' argument.
13053 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13054 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops)
13059 <to_can_accel_watchpoint_condition>: Add argument.
13060 (target_can_accel_watchpoint_condition): Add argument.
13061 * target.c (debug_to_can_accel_watchpoint_condition): Add
13063 (update_current_target): Update.
13064 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13067 2014-02-19 Tom Tromey <tromey@redhat.com>
13069 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13071 (target_region_ok_for_hw_watchpoint): Add argument.
13072 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13073 (default_region_ok_for_hw_watchpoint): Add argument.
13074 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13075 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13077 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13079 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13081 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13083 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13085 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13087 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13088 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13090 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13091 Add 'self' argument.
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13095 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13097 (target_insert_watchpoint): Add argument.
13098 * target.c (debug_to_insert_watchpoint): Add argument.
13099 (update_current_target): Update.
13100 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13101 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13102 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13103 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13104 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13105 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13107 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13108 (procfs_insert_hw_watchpoint): Add 'self' argument.
13109 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13111 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13113 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13115 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13116 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13118 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13121 2014-02-19 Tom Tromey <tromey@redhat.com>
13123 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13125 (target_remove_watchpoint): Add argument.
13126 * target.c (debug_to_remove_watchpoint): Add argument.
13127 (update_current_target): Update.
13128 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13129 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13130 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13131 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13132 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13133 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13135 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13136 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13138 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13140 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13142 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13143 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13145 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13148 2014-02-19 Tom Tromey <tromey@redhat.com>
13150 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13152 (target_remove_hw_breakpoint): Add argument.
13153 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13154 (update_current_target): Update.
13155 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13156 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13158 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13159 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13161 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13164 2014-02-19 Tom Tromey <tromey@redhat.com>
13166 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13168 (target_insert_hw_breakpoint): Add argument.
13169 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13170 (update_current_target): Update.
13171 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13172 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13174 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13175 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13176 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13178 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13181 2014-02-19 Tom Tromey <tromey@redhat.com>
13183 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13185 (target_can_use_hardware_watchpoint): Add argument.
13186 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13187 (update_current_target): Update.
13188 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13190 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13192 * remote.c (remote_check_watch_resources): Add 'self' argument.
13193 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13194 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13196 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13197 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13199 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13201 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13203 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13205 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13207 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13209 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13210 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13212 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13215 2014-02-19 Tom Tromey <tromey@redhat.com>
13217 * target.h (struct target_ops) <to_post_attach>: Add argument.
13218 (target_post_attach): Add argument.
13219 * target.c (debug_to_post_attach): Add argument.
13220 (update_current_target): Update.
13221 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13222 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13223 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13224 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13225 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13227 2014-02-19 Tom Tromey <tromey@redhat.com>
13229 * windows-nat.c (windows_close): Add 'self' argument.
13230 * tracepoint.c (tfile_close): Add 'self' argument.
13231 * target.h (struct target_ops) <to_close>: Add argument.
13232 * target.c (target_close): Add argument.
13233 (update_current_target): Update.
13234 * remote.c (remote_close): Add 'self' argument.
13235 * remote-sim.c (gdbsim_close): Add 'self' argument.
13236 * remote-mips.c (mips_close): Add 'self' argument.
13237 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13238 * record-full.c (record_full_close): Add 'self' argument.
13239 * record-btrace.c (record_btrace_close): Add 'self' argument.
13240 * monitor.h (monitor_close): Add 'self' argument.
13241 * monitor.c (monitor_close): Add 'self' argument.
13242 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13243 * linux-nat.c (linux_nat_close): Add argument.
13244 * go32-nat.c (go32_close): Add 'self' argument.
13245 * exec.c (exec_close_1): Add 'self' argument.
13246 * ctf.c (ctf_close): Add 'self' argument.
13247 * corelow.c (core_close): Add 'self' argument.
13248 (core_close_cleanup): Update.
13249 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13250 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13252 2014-02-19 Tom Tromey <tromey@redhat.com>
13254 * remote.c (remote_load): New function.
13255 (init_remote_ops): Use it.
13257 2014-02-19 Tom Tromey <tromey@redhat.com>
13259 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13261 * common/linux-btrace.h (linux_supports_btrace): Update.
13262 * remote.c (remote_supports_btrace): Add "self" argument.
13263 * target-delegates.c: Rebuild.
13264 * target.c (target_supports_btrace): Remove.
13265 * target.h (struct target_ops) <to_supports_btrace>: Add
13266 target_ops argument.
13267 (target_supports_btrace): New define.
13269 2014-02-19 Tom Tromey <tromey@redhat.com>
13271 * record-full.c (record_full_beneath_to_resume_ops)
13272 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13273 (record_full_beneath_to_wait)
13274 (record_full_beneath_to_store_registers_ops)
13275 (record_full_beneath_to_store_registers)
13276 (record_full_beneath_to_xfer_partial_ops)
13277 (record_full_beneath_to_xfer_partial)
13278 (record_full_beneath_to_insert_breakpoint_ops)
13279 (record_full_beneath_to_insert_breakpoint)
13280 (record_full_beneath_to_remove_breakpoint_ops)
13281 (record_full_beneath_to_remove_breakpoint)
13282 (record_full_beneath_to_stopped_by_watchpoint)
13283 (record_full_beneath_to_stopped_data_address)
13284 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13285 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13286 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13287 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13288 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13289 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13290 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13291 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13292 (record_full_resume, record_full_wait_1)
13293 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13294 (record_full_store_registers, record_full_xfer_partial)
13295 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13296 (record_full_async, record_full_core_xfer_partial): Use target
13298 * target-delegates.c: Rebuild.
13299 * target.c (current_xfer_partial): Remove.
13300 (update_current_target): Do not INHERIT or de_fault
13301 to_insert_breakpoint, to_remove_breakpoint,
13302 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13303 to_is_async_p, to_async. Do not set to_xfer_partial field.
13304 (default_xfer_partial): Simplify.
13305 (current_xfer_partial): Remove.
13306 (target_wait, target_resume): Simplify.
13307 (find_default_can_async_p, find_default_is_async_p): Update.
13308 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13309 to_xfer_partial, to_stopped_by_watchpoint,
13310 to_stopped_data_address.
13311 (target_store_registers): Simplify.
13312 (forward_target_remove_breakpoint)
13313 (forward_target_insert_breakpoint): Remove.
13314 (target_remove_breakpoint, target_insert_breakpoint)
13315 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13316 * target.h (struct target_ops) <to_resume, to_wait,
13317 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13318 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13319 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13321 (forward_target_remove_breakpoint)
13322 (forward_target_insert_breakpoint): Remove.
13323 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13325 (record_btrace_insert_breakpoint): Delegate directly.
13327 2014-02-19 Tom Tromey <tromey@redhat.com>
13330 * target-delegates.c: New file.
13331 * target.c: Include target-delegates.c.
13332 (init_dummy_target): Call install_dummy_methods.
13333 (complete_target_initialization): Call install_delegators.
13334 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13335 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13336 * make-target-delegates: New file.
13338 2014-02-19 Tom Tromey <tromey@redhat.com>
13340 * record.c (find_record_target): Use find_target_at.
13341 * target.c (find_target_at): New function.
13342 * target.h (find_target_at): Declare.
13344 2014-02-19 Tom Tromey <tromey@redhat.com>
13346 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13347 Add 'ops' argument.
13348 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13350 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13351 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13353 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13355 * linux-nat.c (save_sigtrap): Update.
13356 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13357 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13358 (linux_nat_close): Update.
13359 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13361 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13363 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13364 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13365 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13366 (tmp_to_async): Add 'ops' argument.
13367 (record_full_stopped_by_watchpoint, record_full_async)
13368 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13370 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13371 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13372 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13373 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13374 (remote_is_async_p, remote_async): Add 'ops' argument.
13375 (remote_stopped_data_address): Update.
13376 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13377 * target.c (update_current_target)
13378 (find_default_can_async_p, find_default_is_async_p): Update.
13379 (init_dummy_target): Update.
13380 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13381 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13382 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13383 (target_can_async_p, target_is_async_p, target_async)
13384 (target_stopped_by_watchpoint): Update.
13386 2014-02-19 Yao Qi <yao@codesourcery.com>
13389 * gdbarch.sh: Remove startup_gdbarch.
13390 * gdbarch.c: Regenerated.
13391 * gdbarch.h: Likewise.
13393 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13395 * rl78-tdep.c (rl78_g10_register_name): New function.
13396 (rl78_return_value): Add g10 support.
13397 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13400 2014-02-17 Doug Evans <xdje42@gmail.com>
13402 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13403 (SUBDIR_GUILE_SRCS): Ditto.
13404 (scm-gsmob.o): Ditto.
13406 2014-02-17 Yao Qi <yao@codesourcery.com>
13408 * gnu-nat.c (ILL_RPC): Declare defined function.
13410 2014-02-17 Yao Qi <yao@codesourcery.com>
13412 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13413 mach_msg_type_number_t.
13414 (gnu_write_inferior): Likewise.
13416 2014-02-17 Yao Qi <yao@codesourcery.com>
13418 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13420 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13421 (inf_validate_procs, inf_signal): Likewise.
13422 (S_exception_raise_request): Likewise.
13423 (do_mach_notify_dead_name): Likewise.
13424 (steal_exc_port): Likewise.
13425 (gnu_read_inferior): Change 'copy_count''s type to
13426 mach_msg_type_number_t.
13427 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13430 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13432 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13433 flag. Adjust all users; in particular...
13434 (gnu_wait): ..., don't decrement its value in here...
13435 (gnu_create_inferior): ..., and instead set the flag in here,
13436 around the startup_inferior call, and call that one with
13437 START_INFERIOR_TRAPS_EXPECTED.
13439 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13440 (ILL_RPC): ... new macro.
13441 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13442 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13443 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13444 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13445 functions with ILL_RPC macro.
13446 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13447 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13448 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13449 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13450 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13451 (S_proc_getlogin_reply, S_proc_getsid_reply)
13452 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13453 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13454 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13455 (S_proc_getnports_reply, S_proc_is_important_reply)
13456 (S_proc_get_code_reply): New stub functions, generated with
13459 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13460 collected the type check structures.
13462 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13464 2014-02-14 Doug Evans <dje@google.com>
13466 * target.c (target_write_partial): Fix result type.
13468 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13470 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13471 the proper offsets to access fpregset_t.
13473 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13475 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13476 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13477 * h8300-tdep.c (setmachinelist): Remove global.
13478 * hppa-tdep.c (hppa_sigtramp): Remove global.
13479 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13480 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13481 * ravenscar-thread.c (update_target_observer): Remove global.
13482 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13484 2014-02-12 Tom Tromey <tromey@redhat.com>
13486 * common/rsp-low.c: Update comments.
13487 * common/rsp-low.h: Update comments.
13489 2014-02-12 Tom Tromey <tromey@redhat.com>
13491 * common/rsp-low.c (convert_ascii_to_int): Remove.
13492 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13494 2014-02-12 Tom Tromey <tromey@redhat.com>
13496 * common/rsp-low.h (unhexify): Don't declare.
13497 * common/rsp-low.c (unhexify): Remove.
13499 2014-02-12 Tom Tromey <tromey@redhat.com>
13501 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13502 * common/rsp-low.c (convert_int_to_ascii): Remove.
13504 2014-02-12 Tom Tromey <tromey@redhat.com>
13506 * common/rsp-low.h (hexify): Don't declare.
13507 * common/rsp-low.c (hexify): Remove.
13509 2014-02-12 Tom Tromey <tromey@redhat.com>
13511 * common/rsp-low.c (hexify): Never take strlen of argument.
13513 2014-02-12 Tom Tromey <tromey@redhat.com>
13515 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13516 * remote.c (extended_remote_run, remote_rcmd)
13517 (remote_download_trace_state_variable, remote_save_trace_data)
13518 (remote_set_trace_notes): Update.
13519 * tracepoint.c (encode_source_string, tfile_write_status)
13520 (tfile_write_uploaded_tsv): Update.
13522 2014-02-12 Tom Tromey <tromey@redhat.com>
13524 * tracepoint.c: Include rsp-low.h.
13525 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13526 * remote.c: Include rsp-low.h.
13527 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13528 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13529 (remote_unescape_input): Move to common/rsp-low.c.
13530 * common/rsp-low.h: New file.
13531 * common/rsp-low.c: New file.
13532 * Makefile.in (SFILES): Add common/rsp-low.c.
13533 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13534 (COMMON_OBS): Add rsp-low.o.
13535 (rsp-low.o): New target.
13537 2014-02-12 Tom Tromey <tromey@redhat.com>
13539 * utils.h: Include print-utils.h.
13540 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13541 (int_string, core_addr_to_string, core_addr_to_string_nz)
13542 (hex_string, hex_string_custom): Don't declare.
13543 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13544 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13545 (hex_string_custom, int_string, core_addr_to_string)
13546 (core_addr_to_string_nz, host_address_to_string): Move to
13547 common/print-utils.c.
13548 * common/print-utils.h: New file.
13549 * common/print-utils.c: New file
13550 * Makefile.in (SFILES): Add common/print-utils.c.
13551 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13552 (COMMON_OBS): Add print-utils.o.
13553 (print-utils.o): New target.
13555 2014-02-12 Tom Tromey <tromey@redhat.com>
13557 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13559 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13561 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13563 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13565 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13566 if a PT_IO ptrace request returns sucessfully but indicates that 0
13567 bytes were transferred.
13569 2014-02-12 Pedro Alves <palves@redhat.com>
13570 Kevin Buettner <kevinb@redhat.com>
13572 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13573 TYPE_INSTANCE_FLAG_CODE_SPACE.
13575 2014-02-12 Pedro Alves <palves@redhat.com>
13577 * h8300-tdep.c (pseudo_from_raw_register)
13578 (raw_from_pseudo_register): New functions.
13579 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13582 2014-02-12 Pedro Alves <palves@redhat.com>
13584 * h8300-tdep.c (h8300_register_sim_regno): New function.
13585 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13586 gdbarch_register_sim_regno hook.
13588 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13590 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13592 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13594 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13596 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13598 * obsd-tdep.h (obsd_init_abi): New prototype.
13599 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13600 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13601 (obsd_init_abi): New functions.
13602 * i386obsd-tdep.c: Include "obsd-tdep.h".
13603 (i386obsd_init_abi): Call obsd_init_abi.
13604 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13605 (amd64obsd_init_abi): Call obsd_init_abi.
13606 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13607 obsd-tdep.c to gdb_target_obs.
13609 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13611 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13612 double float arguments to 16-byte in the argument slots.
13614 2014-02-11 Doug Evans <xdje42@gmail.com>
13616 * configure.ac: Don't crash if pkg-config is not found and guile
13617 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13619 * configure: Regenerate.
13621 2014-02-11 Yao Qi <yao@codesourcery.com>
13623 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13624 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13625 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13626 * gnu-nat.c (gnu_xfer_memory): Likewise.
13627 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13628 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13629 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13630 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13632 2014-02-11 Yao Qi <yao@codesourcery.com>
13634 * target.h (enum target_xfer_error): Rename to ...
13635 (enum target_xfer_status): ... it. New. All users updated.
13636 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13638 (TARGET_XFER_STATUS_ERROR_P): New macro.
13639 (target_xfer_error_to_string): Remove declaration.
13640 (target_xfer_status_to_string): Declare.
13641 (target_xfer_partial_ftype): Adjust it.
13642 (struct target_ops) <to_xfer_partial>: Return
13643 target_xfer_status. Add argument xfered_len. Update
13645 * target.c (target_xfer_error_to_string): Rename to ...
13646 (target_xfer_status_to_string): ... it. New. All callers
13648 (target_read_live_memory): Likewise. Call target_xfer_partial
13649 instead of target_read.
13650 (memory_xfer_live_readonly_partial): Return
13651 target_xfer_status. Add argument xfered_len.
13652 (raw_memory_xfer_partial): Likewise.
13653 (memory_xfer_partial_1): Likewise.
13654 (memory_xfer_partial): Likewise.
13655 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13656 properly. Update debug message.
13657 (default_xfer_partial, current_xfer_partial): Likewise.
13658 (target_write_partial): Likewise.
13659 (target_read_partial): Likewise. All callers updated.
13660 (read_whatever_is_readable): Likewise.
13661 (target_write_with_progress): Likewise.
13662 (target_read_alloc_1): Likewise.
13664 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13665 * auxv.c (procfs_xfer_auxv): Likewise.
13666 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13667 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13668 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13669 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13670 * corefile.c (read_memory): Adjust.
13671 * corelow.c (core_xfer_partial): Likewise.
13672 * ctf.c (ctf_xfer_partial): Likewise.
13673 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13675 (darwin_xfer_partial): Likewise.
13676 * exec.c (section_table_xfer_memory_partial): Likewise. All
13678 (exec_xfer_partial): Likewise.
13679 * exec.h (section_table_xfer_memory_partial): Update
13681 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13683 (gnu_xfer_partial): Likewise.
13684 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13685 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13686 (ia64_hpux_xfer_solib_got): Likewise.
13687 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13688 type of 'partial_len' to ULONGEST.
13689 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13690 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13691 (linux_nat_xfer_partial): Likewise.
13692 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13693 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13694 * monitor.c (monitor_xfer_memory): Likewise.
13695 (monitor_xfer_partial): Likewise.
13696 * procfs.c (procfs_xfer_partial): Likewise.
13697 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13698 * record-full.c (record_full_xfer_partial): Likewise.
13699 (record_full_core_xfer_partial): Likewise.
13700 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13701 (gdbsim_xfer_partial): Likewise.
13702 * remote.c (remote_write_bytes_aux): Likewise. All callers
13704 (remote_write_bytes, remote_read_bytes): Likewise. All
13706 (remote_flash_erase): Likewise. All callers updated.
13707 (remote_write_qxfer): Likewise. All callers updated.
13708 (remote_read_qxfer): Likewise. All callers updated.
13709 (remote_xfer_partial): Likewise.
13710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13711 (rs6000_xfer_shared_libraries): Likewise.
13712 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13713 (sol_thread_xfer_partial): Likewise.
13714 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13715 (sparc_xfer_partial): Likewise.
13716 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13718 (spu_xfer_partial): Likewise.
13719 * spu-multiarch.c (spu_xfer_partial): Likewise.
13720 * tracepoint.c (tfile_xfer_partial): Likewise.
13721 * windows-nat.c (windows_xfer_memory): Likewise.
13722 (windows_xfer_shared_libraries): Likewise.
13723 (windows_xfer_partial): Likewise.
13724 * valprint.c: Replace 'target_xfer_error' with
13725 'target_xfer_status' in comments.
13727 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13729 Checked in by Joel Brobecker <brobecker@adacore.com>.
13730 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13732 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13734 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13735 function parameters.
13737 2014-02-10 Will Newton <will.newton@linaro.org>
13739 * elfread.c (elf_rel_plt_read): Look for a .got section if
13740 looking up .got.plt fails.
13741 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13742 on address passed to elf_gnu_ifunc_record_cache.
13743 (elf_gnu_ifunc_resolve_addr): Likewise.
13744 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13746 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13748 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13749 (X_RETTURN): New macro.
13750 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13752 * sparc64-tdep.c (sparc64_init_abi): Hook
13753 sparc_in_function_epilogue_p.
13755 2014-02-10 Gary Benson <gbenson@redhat.com>
13757 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13758 Rename name_matcher to symbol_matcher.
13760 2014-02-10 Gary Benson <gbenson@redhat.com>
13762 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13763 Use expand_symtabs_file_matcher_ftype and
13764 expand_symtabs_symbol_matcher_ftype.
13766 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13768 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13769 (struct ada_symbol_cache): New.
13770 (ada_free_symbol_cache): Forward declare.
13771 (struct ada_pspace_data): New.
13772 (ada_pspace_data_handle): New static global.
13773 (get_ada_pspace_data, ada_pspace_data_cleanup)
13774 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13775 (cache_space, cache): Delete, now folded inside struct
13777 (ada_get_symbol_cache): New function.
13778 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13780 (_initialize_ada_language): Remove initialization of cache_space.
13781 Move call to observer_attach_inferior_exit up, grouping it
13782 with the other observer registrations inside this function.
13783 Rename command to be more general. Add call to
13784 register_program_space_data_with_cleanup.
13786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13788 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13789 ada_new_objfile_observer.
13790 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13791 (_initialize_tasks): Update uses of ada_new_objfile_observer
13792 and ada_tasks_normal_stop_observer.
13794 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13796 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13797 returned by the 'Length attribute to integer.
13799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13801 * ada-lang.c (_initialize_ada_language): Initialize
13802 cache_space obstack.
13804 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13806 * ada-lang.c (HASH_SIZE): New macro.
13807 (struct cache_entry): New type.
13808 (cache_space, cache): New static globals.
13809 (ada_clear_symbol_cache, find_entry): New functions.
13810 (lookup_cached_symbol, cache_symbol): Implement.
13811 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13812 (_initialize_ada_language): Attach ada_new_objfile_observer
13813 and ada_free_objfile_observer.
13815 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13817 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13818 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13819 struct block * parameter.
13820 (ada_lookup_symbol_list_worker): Constify local variable "block".
13821 Remove cast which is no longer necessary.
13823 2014-02-10 Doug Evans <xdje42@gmail.com>
13825 Add Guile as an extension language.
13826 * NEWS: Mention Guile scripting.
13827 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13828 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13829 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13830 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13831 (CLIBS): Add GUILE_LIBS.
13832 (install-guile): New rule.
13833 (guile.o): New rule.
13834 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13835 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13836 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13837 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13838 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13839 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13840 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13841 * configure.ac: New option --with-guile.
13842 * configure: Regenerate.
13843 * config.in: Regenerate.
13844 * auto-load.c: Remove #include "python/python.h". Add #include
13845 "gdb/section-scripts.h".
13846 (source_section_scripts): Handle Guile scripts.
13847 (_initialize_auto_load): Add name of Guile objfile script to
13848 scripts-directory help text.
13849 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13850 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13851 (struct breakpoint): New member scm_bp_object.
13852 * defs.h (enum command_control_type): New value guile_control.
13853 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13855 (show_user): Update comment.
13856 (_initialize_cli_cmds): Update help text for "show user". Update help
13857 text for max-user-call-depth.
13858 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13860 (multi_line_command_p): Add guile_control.
13861 (print_command_lines): Handle guile_control.
13862 (execute_control_command, recurse_read_control_structure): Ditto.
13863 (process_next_line): Recognize "guile" commands.
13864 * disasm.c (gdb_disassemble_info): Make non-static.
13865 * disasm.h: #include "dis-asm.h".
13866 (struct gdbarch): Add forward decl.
13867 (gdb_disassemble_info): Declare.
13868 * extension.c: #include "guile/guile.h".
13869 (extension_languages): Add guile.
13870 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13871 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13872 * gdbtypes.c (get_unsigned_type_max): New function.
13873 (get_signed_type_minmax): New function.
13874 * gdbtypes.h (get_unsigned_type_max): Declare.
13875 (get_signed_type_minmax): Declare.
13876 * guile/README: New file.
13877 * guile/guile-internal.h: New file.
13878 * guile/guile.c: New file.
13879 * guile/guile.h: New file.
13880 * guile/scm-arch.c: New file.
13881 * guile/scm-auto-load.c: New file.
13882 * guile/scm-block.c: New file.
13883 * guile/scm-breakpoint.c: New file.
13884 * guile/scm-disasm.c: New file.
13885 * guile/scm-exception.c: New file.
13886 * guile/scm-frame.c: New file.
13887 * guile/scm-gsmob.c: New file.
13888 * guile/scm-iterator.c: New file.
13889 * guile/scm-lazy-string.c: New file.
13890 * guile/scm-math.c: New file.
13891 * guile/scm-objfile.c: New file.
13892 * guile/scm-ports.c: New file.
13893 * guile/scm-pretty-print.c: New file.
13894 * guile/scm-safe-call.c: New file.
13895 * guile/scm-string.c: New file.
13896 * guile/scm-symbol.c: New file.
13897 * guile/scm-symtab.c: New file.
13898 * guile/scm-type.c: New file.
13899 * guile/scm-utils.c: New file.
13900 * guile/scm-value.c: New file.
13901 * guile/lib/gdb.scm: New file.
13902 * guile/lib/gdb/boot.scm: New file.
13903 * guile/lib/gdb/experimental.scm: New file.
13904 * guile/lib/gdb/init.scm: New file.
13905 * guile/lib/gdb/iterator.scm: New file.
13906 * guile/lib/gdb/printing.scm: New file.
13907 * guile/lib/gdb/types.scm: New file.
13908 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13909 (VPATH): Add $(GUILE_SRCDIR).
13910 (GUILE_DIR): New variable.
13911 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13912 (all): Add stamp-guile dependency.
13913 (stamp-guile): New rule.
13914 (clean-guile, install-guile, uninstall-guile): New rules.
13915 (install-only): Add install-guile dependency.
13916 (uninstall): Add uninstall-guile dependency.
13917 (clean): Add clean-guile dependency.
13919 2014-02-09 Doug Evans <xdje42@gmail.com>
13921 Revert this patch (which I approved, mea culpa).
13923 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13925 * Makefile.in (all-lib): Remove.
13926 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13928 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13930 Fix Python stack corruption.
13931 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13934 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13936 * Makefile.in (all-lib): Remove.
13937 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13939 2014-02-07 Doug Evans <dje@google.com>
13941 * extension-priv.h (extension_language_script_ops): Add comment.
13942 (extension_language_ops): Add comment.
13943 (active_ext_lang_state): Fix typo in comment.
13945 2014-02-07 Pedro Alves <palves@redhat.com>
13947 PR breakpoints/16292
13948 * infrun.c (handle_signal_stop) <signal arrives while stepping
13949 over a breakpoint>: Switch back to the stepping thread.
13951 2014-02-07 Yao Qi <yao@codesourcery.com>
13953 * target.c (target_xfer_partial): Return zero if LEN is zero.
13955 2014-02-07 Yao Qi <yao@codesourcery.com>
13957 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13958 (ld_so_xfer_auxv): Likewise.
13959 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13960 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13961 * corelow.c (core_xfer_partial): Likewise.
13962 * ctf.c (ctf_xfer_partial): Likewise.
13963 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13964 (darwin_xfer_partial): Likewise.
13965 * exec.c (exec_xfer_partial): Likewise.
13966 * gnu-nat.c (gnu_xfer_partial): Likewise.
13967 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13968 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13969 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13970 * linux-nat.c (linux_xfer_siginfo): Likewise.
13971 (linux_proc_xfer_spu): Likewise.
13972 * procfs.c (procfs_xfer_partial): Likewise.
13973 * record-full.c (record_full_xfer_partial): Likewise.
13974 (record_full_core_xfer_partial): Likewise.
13975 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13976 * remote.c (remote_write_qxfer): Likewise.
13977 (remote_write_qxfer, remote_read_qxfer): Likewise.
13978 (remote_xfer_partial): Likewise.
13979 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13980 (rs6000_xfer_shared_libraries): Likewise.
13981 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13982 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13983 (spu_xfer_partial): Likewise.
13984 * target.c (memory_xfer_partial_1): Likewise.
13985 * tracepoint.c (tfile_xfer_partial): Likewise.
13986 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13987 (windows_xfer_partial): Likewise.
13989 2014-02-07 Yao Qi <yao@codesourcery.com>
13991 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13993 (core_xfer_shared_libraries_aix): Likewise.
13994 * gdbarch.c, gdbarch.h: Regenerated.
13995 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13996 ULONGEST. Change 'len_avail' type to ULONGEST.
13997 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13998 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14000 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14002 2014-02-07 Yao Qi <yao@codesourcery.com>
14004 * corefile.c (memory_error): Get 'exception' from ERR and pass
14005 'exception' to throw_error.
14007 2014-02-06 Doug Evans <xdje42@gmail.com>
14009 * configure.ac (libpython checking): Remove all but python.o from
14010 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14011 * configure: Regenerate.
14013 * Makefile.in (SFILES): Add extension.c.
14014 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14015 (COMMON_OBS): Add extension.o.
14016 * extension.h: New file.
14017 * extension-priv.h: New file.
14018 * extension.c: New file.
14020 * python/python-internal.h: #include "extension.h".
14021 (gdbpy_auto_load_enabled): Declare.
14022 (gdbpy_apply_val_pretty_printer): Declare.
14023 (gdbpy_apply_frame_filter): Declare.
14024 (gdbpy_preserve_values): Declare.
14025 (gdbpy_breakpoint_cond_says_stop): Declare.
14026 (gdbpy_breakpoint_has_cond): Declare.
14027 (void source_python_script_for_objfile): Delete.
14028 * python/python.c: #include "extension-priv.h".
14029 Delete inclusion of "observer.h".
14030 (extension_language_python): Moved here and renamed from
14031 script_language_python in py-auto-load.c.
14032 Redefined to be of type extension_language_defn.
14033 (python_extension_script_ops): New global.
14034 (python_extension_ops): New global.
14035 (struct python_env): New member previous_active.
14036 (restore_python_env): Call restore_active_ext_lang.
14037 (ensure_python_env): Call set_active_ext_lang.
14038 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14040 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14042 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14044 (gdbpy_eval_from_control_command): Renamed from
14045 eval_python_from_control_command, made static. New arg extlang.
14046 (gdbpy_source_script) Renamed from source_python_script, made static.
14048 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14049 result to int. New arg extlang.
14050 (gdbpy_source_objfile_script): Renamed from
14051 source_python_script_for_objfile, made static. New arg extlang.
14052 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14053 static. New args extlang, extlang_printers. Change result type to
14055 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14056 static. New arg extlang. Rename arg printers to extlang_printers
14057 and change type to ext_lang_type_printers *.
14058 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14059 static. Replace argument arg with extlang, extlang_printers.
14060 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14061 (!HAVE_PYTHON, source_python_script): Delete.
14062 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14063 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14064 (!HAVE_PYTHON, start_type_printers): Delete.
14065 (!HAVE_PYTHON, apply_type_printers): Delete.
14066 (!HAVE_PYTHON, free_type_printers): Delete.
14067 (_initialize_python): Delete call to observer_attach_before_prompt.
14068 (finalize_python): Set/restore active extension language.
14069 (gdbpy_finish_initialization) Renamed from
14070 finish_python_initialization, made static. New arg extlang.
14071 (gdbpy_initialized): New function.
14072 * python/python.h: #include "extension.h". Delete #include
14073 "value.h", "mi/mi-cmds.h".
14074 (extension_language_python): Declare.
14075 (GDBPY_AUTO_FILE_NAME): Delete.
14076 (enum py_bt_status): Moved to extension.h and renamed to
14077 ext_lang_bt_status.
14078 (enum frame_filter_flags): Moved to extension.h.
14079 (enum py_frame_args): Moved to extension.h and renamed to
14080 ext_lang_frame_args.
14081 (finish_python_initialization): Delete.
14082 (eval_python_from_control_command): Delete.
14083 (source_python_script): Delete.
14084 (apply_val_pretty_printer): Delete.
14085 (apply_frame_filter): Delete.
14086 (preserve_python_values): Delete.
14087 (gdbpy_script_language_defn): Delete.
14088 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14089 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14091 * auto-load.c: #include "extension.h".
14092 (GDB_AUTO_FILE_NAME): Delete.
14093 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14094 (script_language_gdb): Delete, moved to extension.c and renamed to
14095 extension_language_gdb.
14096 (source_gdb_script_for_objfile): Delete.
14097 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14098 (loaded_script): Change type of language member to
14099 struct extension_language_defn *.
14100 (init_loaded_scripts_info): Initialize
14101 unsupported_script_warning_printed.
14102 (maybe_add_script): Make static. Change type of language arg to
14103 struct extension_language_defn *.
14104 (clear_section_scripts): Reset unsupported_script_warning_printed.
14105 (auto_load_objfile_script_1): Rewrite to use extension language API.
14106 (auto_load_objfile_script): Make public. Remove support-compiled-in
14107 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14108 (source_section_scripts): Rewrite to use extension language API.
14109 (load_auto_scripts_for_objfile): Rewrite to use
14110 auto_load_scripts_for_objfile.
14111 (collect_matching_scripts_data): Change type of language member to
14112 struct extension_language_defn *.
14113 (auto_load_info_scripts): Change type of language arg to
14114 struct extension_language_defn *.
14115 (unsupported_script_warning_print): New function.
14116 (script_not_found_warning_print): Make static.
14117 (_initialize_auto_load): Rewrite construction of scripts-directory
14119 * auto-load.h (struct objfile): Add forward decl.
14120 (struct script_language): Delete.
14121 (struct auto_load_pspace_info): Add forward decl.
14122 (struct extension_language_defn): Add forward decl.
14123 (maybe_add_script): Delete.
14124 (auto_load_objfile_script): Declare.
14125 (script_not_found_warning_print): Delete.
14126 (auto_load_info_scripts): Update prototype.
14127 (auto_load_gdb_scripts_enabled): Declare.
14128 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14129 auto_load_python_scripts_enabled and made public.
14130 (script_language_python): Delete, moved to python.c.
14131 (gdbpy_script_language_defn): Delete.
14132 (info_auto_load_python_scripts): Update to use
14133 extension_language_python.
14135 * breakpoint.c (condition_command): Replace call to
14136 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14137 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14138 with call to breakpoint_ext_lang_cond_says_stop.
14139 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14140 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14141 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14142 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14144 (local_setattro): Print name of extension language with existing
14147 * valprint.c (val_print, value_print): Update to call
14148 apply_ext_lang_val_pretty_printer.
14149 * cp-valprint.c (cp_print_value): Update call to
14150 apply_ext_lang_val_pretty_printer.
14151 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14152 (gdbpy_apply_val_pretty_printer): Renamed from
14153 apply_val_pretty_printer. New arg extlang.
14154 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14156 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14157 extension language API.
14158 * cli/cli-script.c (execute_control_command): Update to call
14159 eval_ext_lang_from_control_command.
14161 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14162 enum ext_lang_bt_status values. Update call to
14163 apply_ext_lang_frame_filter.
14164 (mi_cmd_stack_list_locals): Ditto.
14165 (mi_cmd_stack_list_args): Ditto.
14166 (mi_cmd_stack_list_variables): Ditto.
14167 * mi/mi-main.c: Delete #include "python/python-internal.h".
14168 Add #include "extension.h".
14169 (mi_cmd_list_features): Replace reference to python internal variable
14170 gdb_python_initialized with call to ext_lang_initialized_p.
14172 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14173 Update to use enum ext_lang_frame_args. Update to call
14174 apply_ext_lang_frame_filter.
14175 * python/py-framefilter.c (extract_sym): Update to use enum
14176 ext_lang_bt_status.
14177 (extract_value, py_print_type, py_print_value): Ditto.
14178 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14179 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14180 (py_print_frame): Ditto.
14181 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14182 New arg extlang. Update to use enum ext_lang_bt_status.
14184 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14185 finish_python_initialization. Replace with call to
14186 finish_ext_lang_initialization.
14188 * typeprint.c (do_free_global_table): Update to call
14189 free_ext_lang_type_printers.
14190 (create_global_typedef_table): Update to call
14191 start_ext_lang_type_printers.
14192 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14193 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14194 (type_print_options): Change type of global_printers from "void *"
14195 to "struct ext_lang_type_printers *".
14197 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14198 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14199 (gdbpy_preserve_values): Renamed from preserve_python_values.
14201 (!HAVE_PYTHON, preserve_python_values): Delete.
14203 * utils.c (quit_flag): Delete, moved to extension.c.
14204 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14207 * eval.c: Delete #include "python/python.h".
14208 * main.c: Delete #include "python/python.h".
14210 * defs.h: Update comment.
14212 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14216 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14218 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14221 2014-02-05 Yao Qi <yao@codesourcery.com>
14223 * remote.c (remote_pass_signals): Remove local 'buf' and use
14225 (remote_program_signals): Likewise.
14227 2014-02-05 Yao Qi <yao@codesourcery.com>
14229 * ctf.c: Include "inferior.h" and "gdbthread.h".
14230 (CTF_PID): A new macro.
14231 (ctf_open): Call inferior_appeared and add_thread_silent.
14232 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14233 (ctf_thread_alive): New function.
14234 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14236 2014-02-05 Yao Qi <yao@codesourcery.com>
14240 2013-05-24 Yao Qi <yao@codesourcery.com>
14242 * tracepoint.c (TFILE_PID): Remove.
14243 (tfile_open): Don't add thread and inferior.
14244 (tfile_close): Don't set 'inferior_ptid'. Don't call
14245 exit_inferior_silent.
14246 (tfile_thread_alive): Remove.
14247 (init_tfile_ops): Don't set field 'to_thread_alive' of
14250 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14252 * remote.c (remote_start_remote): Call remote_check_symbols even
14253 if only symbol-file (not file) has been given.
14255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14257 * gdbarch.sh (skip_entrypoint): New callback.
14258 * gdbarch.c, gdbarch.h: Regenerate.
14259 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14260 * infrun.c (fill_in_stop_func): Likewise.
14261 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14262 (ppc_elfv2_elf_make_msymbol_special): New function.
14263 (ppc_elfv2_skip_entrypoint): Likewise.
14264 (ppc_linux_init_abi): Install them for ELFv2.
14266 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14268 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14269 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14270 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14271 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14272 structures returned in GPRs.
14274 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14277 offset to the stack parameter list for the ELFv2 ABI.
14279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14281 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14282 set_gdbarch_convert_from_func_ptr_addr and
14283 set_gdbarch_elf_make_msymbol_special for ELFv1.
14284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14285 function descriptors on ELFv1.
14286 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14287 set up r12 at function entry.
14289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14291 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14292 (struct gdbarch_tdep): New member elf_abi.
14294 * rs6000-tdep.c: Include "elf/ppc64.h".
14295 (rs6000_gdbarch_init): Detect ELF ABI version.
14297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14300 within a register pair holding a DFP 128-bit value on little-endian.
14301 (ppc64_sysv_abi_return_value_base): Likewise.
14302 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14303 (dfp_pseudo_register_write): Likewise.
14305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14307 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14308 offset on little-endian when passing _Decimal32.
14309 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14311 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14313 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14314 of the overlapped FP register within the VSX register on little-
14316 (efpr_pseudo_register_write): Likewise.
14318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14320 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14321 offset on little-endian when passing small structures.
14323 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14325 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14326 (struct ppc64_sysv_argpos): New data structure.
14327 (ppc64_sysv_abi_push_float): Remove.
14328 (ppc64_sysv_abi_push_val): New function.
14329 (ppc64_sysv_abi_push_integer): Likewise.
14330 (ppc64_sysv_abi_push_freg): Likewise.
14331 (ppc64_sysv_abi_push_vreg): Likewise.
14332 (ppc64_sysv_abi_push_param): Likewise.
14333 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14334 (ppc64_sysv_abi_return_value_base): New function.
14335 (ppc64_sysv_abi_return_value): Refactor to use it.
14337 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14339 * NEWS: Document new target powerpc64le-*-linux*.
14341 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14343 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14344 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14346 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14347 register set used in ELF core dumps. Add floating-point register set.
14349 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14351 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14352 dwarf2_to_gdb[] table using symbolic constants. Adjust
14353 penultimate entry from number representing the PC register
14354 to symbolic constant representing the MDR register. Add
14355 constant for the PC register to the end of the table.
14357 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14359 * bsd-kvm.c: Include <sys/param.h>
14361 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14363 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14365 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14367 * ada-lang.h (clear_ada_sym_cache): Delete.
14369 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14371 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14373 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14375 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14376 the sigreturn register save area only if the syscall is
14379 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14381 * valops.c (value_slice): Minor reformatting.
14383 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14385 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14387 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14389 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14390 New static globals.
14391 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14392 (ada_ignore_descriptive_types_p): New static global.
14393 (find_parallel_type_by_descriptive_type): Return immediately
14394 if ada_ignore_descriptive_types_p is set.
14395 (_initialize_ada_language): Register new commands "maintenance
14396 set ada", "maintenance show ada", "maintenance set ada
14397 ignore-descriptive-types" and "maintenance show ada
14398 ignore-descriptive-types".
14399 * NEWS: Add entry for new "maint ada set/show
14400 ignore-descriptive-types" commands.
14402 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14404 * record-btrace.c (record_btrace_close): Call btrace_teardown
14407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14409 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14412 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14414 * ada-typeprint (type_is_full_subrange_of_target_type):
14416 (print_range): Add parameter bounds_prefered_p. If not set,
14417 try printing range types using the name of their base type.
14418 (print_range_type): Add parameter bounds_prefered_p.
14419 Use it in call to print_range.
14420 (print_array_type, ada_print_type): Update calls to print_range
14421 and print_range_type.
14423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14425 * ada-typeprint.c (print_array_type, print_choices, print_range)
14426 (print_range_bound, print_dynamic_range_bound, print_range_type):
14427 Remove declaration.
14429 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14431 * ada-typeprint.c (print_range): Add missing empty line
14432 after local declaration.
14434 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14436 * ada-valprint.c (print_optional_low_bound): Get index_type's
14437 target type for as long as it is a TYPE_CODE_RANGE.
14439 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14441 * procfs.c (procfs_make_note_section): Remove assertion and
14442 associated comment.
14444 2014-01-24 Yao Qi <yao@codesourcery.com>
14446 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14447 * corelow.c (get_core_siginfo): Likewise.
14449 2014-01-24 Yao Qi <yao@codesourcery.com>
14451 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14452 ULONGEST. Don't check 'len' is negative.
14453 (remote_write_bytes): Change type of 'len' to ULONGEST.
14455 2014-01-23 Tom Tromey <tromey@redhat.com>
14458 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14459 Handle exception from frame.block.
14460 (FrameVars.fetch_frame_locals): Likewise.
14462 2014-01-23 Tom Tromey <tromey@redhat.com>
14465 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14466 on a NULL pointer. Move "goto error" to correct place.
14468 2014-01-23 Tom Tromey <tromey@redhat.com>
14471 * python/py-framefilter.c (apply_frame_filter): Call
14472 ensure_python_env after computing gdbarch.
14474 2014-01-23 Yao Qi <yao@codesourcery.com>
14476 * target.c (raw_memory_xfer_partial): Change argument type
14477 from void * to gdb_byte *.
14478 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14480 2014-01-22 Doug Evans <dje@google.com>
14482 New gdbserver option --debug-format=timestamp.
14483 * NEWS: Mention it.
14485 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14487 * syscalls/s390x-linux.xml: New file.
14488 * syscalls/s390-linux.xml: New file.
14489 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14490 (XML_SYSCALL_FILENAME_S390X): Likewise.
14491 (op_svc): New enum value for SVC opcode.
14492 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14493 (s390_linux_get_syscall_number): New function.
14494 (s390_gdbarch_init): Register '*get_syscall_number' and the
14495 syscall xml file name.
14496 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14497 "s390-linux.xml" and "s390x-linux.xml".
14498 * NEWS: Announce new feature.
14500 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14502 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14504 2014-01-22 Pedro Alves <palves@redhat.com>
14506 * xtensa-config.c: Include defs.h.
14508 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14510 * common/common-utils.h: Add "ARI:" comment beside __func__
14513 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14515 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14516 documentation a bit.
14518 2014-01-21 Roland McGrath <mcgrathr@google.com>
14520 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14521 * configure: Regenerate.
14522 * aclocal.m4: Regenerate.
14523 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14524 New substituted variables.
14525 (install-strip): New target.
14526 (INSTALL_SCRIPT): New substituted variable.
14527 (FLAGS_TO_PASS): Add it.
14528 (install-only): Use $(INSTALL_SCRIPT) rather than
14529 $(INSTALL_PROGRAM) for gcore.
14531 2014-01-20 Tom Tromey <tromey@redhat.com>
14533 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14536 2014-01-20 Tom Tromey <tromey@redhat.com>
14538 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14539 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14540 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14541 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14542 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14543 (struct cmd_list_element) <flags>: Remove.
14544 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14545 doc_allocated>: New fields.
14546 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14548 * maint.c (maintenance_do_deprecate): Update.
14549 * top.c (execute_command): Update.
14551 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14553 * xtensa-linux-nat.c: Include asm/ptrace.h.
14555 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14557 * Makefile.in (SFILES): Add d-support.c.
14558 (COMMON_OBS): Add d-support.o.
14559 * d-lang.h (d_parse_symbol): Add comment, now defined in
14561 * d-lang.c (parse_call_convention)
14562 (parse_attributes, parse_function_types)
14563 (parse_function_args, parse_type, parse_identifier)
14564 (call_convention_p, d_parse_symbol): Move functions to ...
14565 * d-support.c: ... New file.
14567 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14569 * d-lang.h (d_parse_symbol): Add declaration.
14570 * d-lang.c (extract_identifiers)
14571 (extract_type_info): Remove functions.
14572 (parse_call_convention, parse_attributes)
14573 (parse_function_types, parse_function_args)
14574 (parse_type, parse_identifier, call_convention_p)
14575 (d_parse_symbol): New functions.
14576 (d_demangle): Use d_parse_symbol to demangle D symbols.
14578 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14580 * d-lang.h (struct builtin_d_type): New data type.
14581 (builtin_d_type): Add declaration.
14582 * d-lang.c (d_language_arch_info, build_d_types)
14583 (builtin_d_type): New functions.
14584 (enum d_primitive_types): New data type.
14585 (d_language_defn): Change c_language_arch_info to
14586 d_language_arch_info.
14587 (d_type_data): New static variable.
14588 (_initialize_d_language): Initialize d_type_data.
14590 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14592 * d-lang.h (d_main_name): Add declaration.
14593 * d-lang.c (d_main_name): New function.
14594 * symtab.c (find_main_name): Add call to d_main_name.
14596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14598 * d-lang.c (d_language_defn): Change macro_expansion_c to
14599 macro_expansion_no.
14601 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14603 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14605 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14607 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14608 gdb_exception" declaration.
14609 * remote.c (getpkt_or_notif_sane): Likewise.
14611 2014-01-17 Doug Evans <dje@google.com>
14613 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14614 function, contents of dirnames_to_char_ptr_vec_append moved here.
14615 (delim_string_to_char_ptr_vec): New function.
14616 (dirnames_to_char_ptr_vec_append): Rewrite.
14617 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14619 2014-01-17 Doug Evans <dje@google.com>
14621 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14623 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14624 #include "common-utils.h".
14625 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14626 * common/vec.h (VEC_ASSERT_PASS): Update.
14627 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14628 (MACH_CHECK_ERROR): Update.
14630 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14632 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14634 * gdbarch.h: Regenerate.
14636 2014-01-16 Tom Tromey <tromey@redhat.com>
14638 * value.c (struct value) <regnum>: Move earlier.
14640 2014-01-16 Tom Tromey <tromey@redhat.com>
14642 * remote.c (extended_remote_create_inferior): Rename from
14643 extended_remote_create_inferior_1. Add "ops" argument. Remove
14644 old implementation.
14646 2014-01-16 Pedro Alves <palves@redhat.com>
14648 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14649 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14652 2014-01-16 Doug Evans <dje@google.com>
14654 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14656 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14658 * btrace.h (btrace_thread_flag): New.
14659 (struct btrace_thread_info) <flags>: New.
14660 * record-btrace.c (record_btrace_resume_thread)
14661 (record_btrace_find_thread_to_move, btrace_step_no_history)
14662 (btrace_step_stopped, record_btrace_start_replaying)
14663 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14664 (record_btrace_find_resume_thread): New.
14665 (record_btrace_resume, record_btrace_wait): Extend.
14666 (record_btrace_can_execute_reverse): New.
14667 (record_btrace_open): Fail in non-stop mode.
14668 (record_btrace_set_replay): Split into this, ...
14669 (record_btrace_stop_replaying): ... this, ...
14670 (record_btrace_clear_histories): ... and this.
14671 (init_record_btrace_ops): Init to_can_execute_reverse.
14672 * NEWS: Announce it.
14674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14676 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14677 (forward_target_decr_pc_after_break)
14678 (target_decr_pc_after_break): New.
14679 * target.c (forward_target_decr_pc_after_break)
14680 (target_decr_pc_after_break): New.
14681 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14682 instead of gdbarch_decr_pc_after_break.
14683 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14684 instead of gdbarch_decr_pc_after_break.
14685 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14686 instead of gdbarch_decr_pc_after_break.
14687 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14688 instead of gdbarch_decr_pc_after_break.
14689 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14690 instead of gdbarch_decr_pc_after_break.
14691 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14692 instead of gdbarch_decr_pc_after_break.
14694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696 * btrace.c: Include regcache.h.
14697 (btrace_add_pc): New.
14698 (btrace_enable): Call btrace_add_pc.
14699 (btrace_is_empty): New.
14700 * btrace.h (btrace_is_empty): New.
14701 * record-btrace.c (require_btrace, record_btrace_info): Call
14704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14706 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14707 Support delta reads.
14708 (linux_disable_btrace): Change return type.
14709 * common/linux-btrace.h (linux_read_btrace): Change parameters
14710 and return type to allow error reporting. Update users.
14711 (linux_disable_btrace): Change return type. Update users.
14712 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14714 (btrace_error): New.
14715 (btrace_block) <begin>: Comment on BEGIN == 0.
14716 * btrace.c (btrace_compute_ftrace): Start from the end of
14718 (btrace_stitch_trace, btrace_clear_history): New.
14719 (btrace_fetch): Read delta trace, return if replaying.
14720 (btrace_clear): Move clear history code to btrace_clear_history.
14721 (parse_xml_btrace): Throw an error if parsing failed.
14722 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14723 and return type to allow error reporting.
14724 (target_read_btrace): Change parameters and return type to allow
14726 * target.c (target_read_btrace): Update.
14727 * remote.c (remote_read_btrace): Support delta reads. Pass
14729 * NEWS: Announce it.
14731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14733 * record.h (record_btrace_frame_unwind)
14734 (record_btrace_tailcall_frame_unwind): New declarations.
14735 * dwarf2-frame: Include record.h
14736 (dwarf2_frame_cfa): Throw an error for btrace frames.
14737 * record-btrace.c: Include hashtab.h.
14738 (btrace_get_bfun_name): New.
14739 (btrace_call_history): Call btrace_get_bfun_name.
14740 (struct btrace_frame_cache): New.
14742 (bfcache_hash, bfcache_eq, bfcache_new): New.
14743 (btrace_get_frame_function): New.
14744 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14745 (record_btrace_frame_this_id): Compute own id.
14746 (record_btrace_frame_prev_register): Provide PC, throw_error
14747 for all other registers.
14748 (record_btrace_frame_sniffer): Detect btrace frames.
14749 (record_btrace_tailcall_frame_sniffer): New.
14750 (record_btrace_frame_dealloc_cache): New.
14751 (record_btrace_frame_unwind): Add new functions.
14752 (record_btrace_tailcall_frame_unwind): New.
14753 (_initialize_record_btrace): Allocate cache.
14754 * btrace.c (btrace_clear): Call reinit_frame_cache.
14755 * NEWS: Announce it.
14757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14759 * record-btrace.c (record_btrace_set_replay)
14760 (record_btrace_goto_begin, record_btrace_goto_end)
14761 (record_btrace_goto): New.
14762 (init_record_btrace_ops): Initialize them.
14763 * NEWS: Announce it.
14765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14767 * record-btrace.c (record_btrace_find_new_threads)
14768 (record_btrace_thread_alive): New.
14769 (init_record_btrace_ops): Initialize to_find_new_threads and
14772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14774 * record-btrace.c (record_btrace_resume): New.
14775 (record_btrace_wait): New.
14776 (init_record_btrace_ops): Initialize to_wait and to_resume.
14778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14780 * record-btrace.c (record_btrace_xfer_partial)
14781 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14782 (record_btrace_allow_memory_access): New.
14783 (init_record_btrace_ops): Initialize new methods.
14784 * target.c (raw_memory_xfer_partial): Bail out if target reports
14785 that this memory is not available.
14787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14789 * target.h (target_ops) <to_insert_breakpoint>
14790 <to_remove_breakpoint>: Add target_ops parameter.
14791 (forward_target_insert_breakpoint): New.
14792 (forward_target_remove_breakpoint): New.
14793 (memory_remove_breakpoint, memory_insert_breakpoint):
14794 Add target_ops parameter.
14795 * target.c (target_insert_breakpoint): Split into this and ...
14796 (forward_target_insert_breakpoint): ... this.
14797 (target_remove_breakpoint): Split into this and ...
14798 (forward_target_remove_breakpoint): ... this.
14799 (debug_to_insert_breakpoint): Add target_ops parameter.
14800 Call forward_target_insert_breakpoint.
14801 (debug_to_remove_breakpoint): Add target_ops parameter.
14802 Call forward_target_remove_breakpoint.
14803 (update_current_target): Do not inherit or default to_insert_breakpoint
14804 and to_remove_breakpoint.
14805 * corelow.c (ignore): Add target_ops parameter.
14806 * exec.c (ignore): Add target_ops parameter.
14807 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14808 Add target_ops parameter.
14809 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14810 Add target_ops parameter.
14811 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14812 Add target_ops parameter.
14813 * record-full.c (record_full_beneath_to_insert_breakpoint)
14814 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14815 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14816 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14817 (record_full_core_remove_breakpoint): Add target_ops parameter.
14819 (record_full_beneath_to_insert_breakpoint_ops)
14820 (record_full_beneath_to_remove_breakpoint_ops)
14821 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14822 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14823 tmp_to_remove_breakpoint_ops,
14824 record_full_beneath_to_insert_breakpoint_ops, and
14825 record_full_beneath_to_remove_breakpoint_ops.
14826 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14827 (m32r_remove_breakpoint): Add target_ops parameter.
14828 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14829 Add target_ops parameter.
14830 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14831 Add target_ops parameter.
14833 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14834 Markus Metzger <markus.t.metzger@intel.com>
14836 * record-btrace.c: Include frame-unwind.h.
14837 (record_btrace_frame_unwind_stop_reason)
14838 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14839 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14841 (init_record_btrace_ops): Install it.
14843 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14845 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14848 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14850 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14853 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14855 * frame-unwind.c: Include target.h.
14856 (frame_unwind_try_unwinder): New function with code from ...
14857 (frame_unwind_find_by_frame): ... here. New variable
14858 unwinder_from_target, call also target_get_unwinder)
14859 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14860 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14861 * target.h (struct target_ops): New fields to_get_unwinder and
14862 to_get_tailcall_unwinder.
14863 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14867 * record-btrace.c (record_btrace_fetch_registers)
14868 (record_btrace_store_registers)
14869 (record_btrace_to_prepare_to_store): New.
14870 (init_record_btrace_ops): Add the above.
14872 2014-01-16 Tom Tromey <tromey@redhat.com>
14874 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14875 * target.h (struct target_ops) <to_prepare_to_store>: Add
14877 (target_prepare_to_store): Add argument.
14878 * target.c (debug_to_prepare_to_store): Add argument.
14879 (update_current_target): Update.
14880 * remote.c (remote_prepare_to_store): Add 'self' argument.
14881 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14882 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14883 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14884 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14886 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14887 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14888 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14889 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14890 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14894 * btrace.h (replay) <replay>: New.
14895 (btrace_is_replaying): New.
14896 * btrace.c (btrace_clear): Free replay iterator.
14897 (btrace_is_replaying): New.
14898 * record-btrace.c (record_btrace_is_replaying): New.
14899 (record_btrace_info): Print insn number if replaying.
14900 (record_btrace_insn_history): Start at replay position.
14901 (record_btrace_call_history): Start at replay position.
14902 (init_record_btrace_ops): Init to_record_is_replaying.
14904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14906 * record-btrace.c (record_btrace_insn_history_range): Include
14908 (record_btrace_insn_history_from): Adjust range.
14909 (record_btrace_call_history_range): Include
14911 (record_btrace_call_history_from): Adjust range.
14912 * NEWS: Announce changes.
14914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14916 * record.h (enum record_print_flag)
14917 <record_print_indent_calls>: New.
14918 * record.c (get_call_history_modifiers): Recognize /c modifier.
14919 (_initialize_record): Document /c modifier.
14920 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14921 Reorder fields. Optionally indent the function name. Update
14923 * NEWS: Announce changes.
14925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14927 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14931 * btrace.c (ftrace_new_function): Start counting at one.
14932 * record-btrace.c (record_btrace_info): Adjust number of calls
14934 * NEWS: Announce it.
14936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14938 * record-btrace.c (btrace_call_history_insn_range): Print
14939 insn range as [begin, end].
14941 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14943 * btrace.h (struct btrace_func_link): New.
14944 (enum btrace_function_flag): New.
14945 (struct btrace_inst): Rename to ...
14946 (struct btrace_insn): ...this. Update all users.
14947 (struct btrace_func) <ibegin, iend>: Remove.
14948 (struct btrace_func_link): New.
14949 (struct btrace_func): Rename to ...
14950 (struct btrace_function): ...this. Update all users.
14951 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14952 (number, level, flags>: New.
14953 (struct btrace_insn_iterator): Rename to ...
14954 (struct btrace_insn_history): ...this.
14956 (struct btrace_insn_iterator, btrace_call_iterator): New.
14957 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14958 (struct btrace_target_info) <begin, end, level>
14959 <insn_history, call_history>: New.
14960 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14961 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14962 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14963 (btrace_call_number, btrace_call_begin, btrace_call_end)
14964 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14965 (btrace_find_function_by_number, btrace_set_insn_history)
14966 (btrace_set_call_history): New.
14967 * btrace.c (btrace_init_insn_iterator)
14968 (btrace_init_func_iterator, compute_itrace): Remove.
14969 (ftrace_print_function_name, ftrace_print_filename)
14970 (ftrace_skip_file): Change
14971 parameter to const.
14972 (ftrace_init_func): Remove.
14973 (ftrace_debug): Use new btrace_function fields.
14974 (ftrace_function_switched): Also consider gaining and
14975 losing symbol information).
14976 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14977 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14978 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14980 (ftrace_new_function): Move. Remove debug print.
14981 (ftrace_update_lines, ftrace_update_insns): New.
14982 (ftrace_update_function): Check for call, ret, and jump.
14983 (compute_ftrace): Renamed to ...
14984 (btrace_compute_ftrace): ...this. Rewritten to compute call
14986 (btrace_fetch, btrace_clear): Updated.
14987 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14988 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14989 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14990 (btrace_call_number, btrace_call_begin, btrace_call_end)
14991 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14992 (btrace_find_function_by_number, btrace_set_insn_history)
14993 (btrace_set_call_history): New.
14994 * record-btrace.c (require_btrace): Use new btrace thread
14996 (record_btrace_info, btrace_insn_history)
14997 (record_btrace_insn_history, record_btrace_insn_history_range):
14998 Use new btrace thread info fields and new iterator.
14999 (btrace_func_history_src_line): Rename to ...
15000 (btrace_call_history_src_line): ...this. Use new btrace
15001 thread info fields.
15002 (btrace_func_history): Rename to ...
15003 (btrace_call_history): ...this. Use new btrace thread info
15004 fields and new iterator.
15005 (record_btrace_call_history, record_btrace_call_history_range):
15006 Use new btrace thread info fields and new iterator.
15008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15010 * frame.h (frame_id_build_unavailable_stack_special): New.
15011 * frame.c (frame_id_build_unavailable_stack_special): New.
15013 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15015 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15016 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15017 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15019 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15020 (i386_insn_is_jump, i386_jmp_p): New.
15021 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15022 insn_is_jump to gdbarch.
15023 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15024 * gdbarch.h: Regenerated.
15025 * gdbarch.c: Regenerated.
15026 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15027 (default_insn_is_jump): New.
15028 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15029 (default_insn_is_jump): New.
15031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15033 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15035 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15036 (btrace_read_type) <btrace_read_new>: Change to ...
15037 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15039 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15041 * common/linux-btrace.c (linux_read_btrace): Free trace from
15042 previous iteration.
15044 2014-01-15 Doug Evans <dje@google.com>
15046 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15049 2014-01-15 Tom Tromey <tromey@redhat.com>
15051 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15052 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15053 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15054 (set_objfile_main_name): New function.
15055 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15056 language_of_main>: New fields.
15057 (set_objfile_main_name): Declare.
15058 * symtab.c (find_main_name): Loop over objfiles to find the main
15060 (set_main_name): Now static.
15061 (get_main_info): Add comment.
15062 * symtab.h (set_main_name): Don't declare.
15064 2014-01-15 Tom Tromey <tromey@redhat.com>
15066 * symtab.c (main_progspace_key): New global.
15067 (struct main_info): New.
15068 (name_of_main, language_of_main): Remove.
15069 (get_main_info, main_info_cleanup): New function.
15070 (set_main_name, main_name, main_language): Use get_main_info.
15071 (_initialize_symtab): Initialize main_progspace_key.
15073 2014-01-15 Tom Tromey <tromey@redhat.com>
15075 * dbxread.c (process_one_symbol): Update.
15076 * dwarf2read.c (read_partial_die): Update.
15077 * symfile.c (set_initial_language): Call main_language.
15078 * symtab.c (language_of_main): Now static.
15079 (set_main_name): Add 'lang' parameter.
15080 (find_main_name): Update.
15081 (main_language): New function.
15082 (symtab_observer_executable_changed): Update.
15083 * symtab.h (set_main_name): Update.
15084 (language_of_main): Remove.
15085 (main_language): Declare.
15087 2014-01-15 Tom Tromey <tromey@redhat.com>
15089 * symfile.c (init_entry_point_info): Use new "initialized" field.
15091 * objfiles.h (struct entry_point) <initialized>: New field.
15092 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15093 (struct objfile) <ei>: ...here. Remove.
15094 * objfiles.c (entry_point_address_query): Update.
15096 2014-01-15 Tom Tromey <tromey@redhat.com>
15098 * objfiles.c (entry_point_address_query): Relocate entry point
15100 (objfile_relocate1): Do not relocate entry point address.
15101 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15102 <the_bfd_section_index>: New field.
15103 * symfile.c (init_entry_point_info): Find the entry point's
15106 2014-01-15 Tom Tromey <tromey@redhat.com>
15108 * solib-frv.c (enable_break): Use entry_point_address_query.
15110 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15112 * NEWS: Add note on improved process record-replay on
15113 arm*-linux* targets.
15115 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15117 * arm-tdep.c (enum arm_record_result): New enum.
15118 (arm_record_unsupported_insn): New function.
15119 (arm_record_coproc_data_proc): Removed.
15120 (thumb2_record_ld_st_multiple): New function.
15121 (thumb2_record_ld_st_dual_ex_tbb): New function.
15122 (thumb2_record_data_proc_sreg_mimm): New function.
15123 (thumb2_record_ps_dest_generic): New function.
15124 (thumb2_record_branch_misc_cntrl): New function.
15125 (thumb2_record_str_single_data): New function.
15126 (thumb2_record_ld_mem_hints): New function.
15127 (thumb2_record_ld_word): New function.
15128 (thumb2_record_lmul_lmla_div): New function.
15129 (thumb2_record_decode_insn_handler): New function.
15130 (decode_insn): Add thumb32 instruction handlers.
15132 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15134 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15135 (struct arm_linux_record_tdep): Declare.
15136 (arm_canonicalize_syscall): New function.
15137 (arm_all_but_pc_registers_record): New function.
15138 (arm_linux_syscall_record): New function.
15139 (arm_linux_init_abi): Add syscall recording constructs.
15140 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15141 decoding. (arm_record_coproc_data_proc): Update arm syscall
15143 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15144 <arm_syscall_record>: New field.
15145 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15148 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15150 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15151 register for push instruction recording.
15153 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15155 * arm-tdep.c (thumb_record_misc): Update to correct logical
15156 error while recording ldm, ldmia and pop instructions.
15158 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15160 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15162 2014-01-15 Pedro Alves <palves@redhat.com>
15164 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15165 (go32_resume, go32_fetch_registers, store_register)
15166 (go32_store_registers, go32_prepare_to_store)
15167 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15168 (go32_create_inferior, go32_can_run, go32_terminal_init)
15169 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15172 2014-01-15 Tom Tromey <tromey@redhat.com>
15174 * target.h (async_callback_ftype): New typedef.
15175 (struct target_ops) <to_async>: Use it.
15177 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15179 * python/py-value.c (get_field_type): Remove unnecessary curly
15180 braces for single-statement if block.
15182 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15184 * python/py-type.c (convert_field): Add missing empty line
15185 after declarations.
15187 2014-01-14 Doug Evans <dje@google.com>
15189 * symfile.h (expand_symtabs_matching): Renamed from
15190 expand_partial_symbol_names. Update prototype.
15191 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15192 * symfile.c (expand_symtabs_matching): Renamed from
15193 expand_partial_symbol_names. New args file_matcher, kind.
15194 Rename arg fun to symbol_matcher.
15195 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15196 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15197 ada_expand_partial_symbol_name.
15198 (ada_make_symbol_completion_list): Update to call
15199 expand_symtabs_matching.
15200 (ada_add_global_exceptions): Call expand_symtabs_matching.
15201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15202 call map_symbol_filenames.
15203 * symtab.c (sources_info): Update to call map_symbol_filenames.
15204 (search_symbols): Call expand_symtabs_matching.
15205 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15206 (default_make_symbol_completion_list_break_on): Update to call
15207 expand_symtabs_matching.
15208 (make_source_files_completion_list): Update to call
15209 map_symbol_filenames.
15211 2014-01-14 Doug Evans <dje@google.com>
15213 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15214 (expand_symtabs_symbol_matcher_ftype): New typedef.
15215 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15216 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15217 * symfile.c (expand_partial_symbol_names): Update to use
15218 expand_symtabs_symbol_matcher_ftype.
15219 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15221 Arg name_matcher renamed to symbol_matcher.
15222 * psymtab.c (recursively_search_psymtabs): Update to use
15223 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15225 (expand_symtabs_matching_via_partial): Update to use
15226 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15227 Arg name_matcher renamed to symbol_matcher.
15229 2014-01-14 Doug Evans <dje@google.com>
15231 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15232 (map_partial_symbol_filenames): Ditto.
15233 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15234 (map_partial_symbol_filenames): Ditto.
15235 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15236 (map_partial_symbol_filenames): Ditto.
15237 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15238 (map_partial_symbol_filenames): Ditto.
15239 * symtab.c: Delete #include "psymtab.h".
15241 2014-01-14 Pedro Alves <palves@redhat.com>
15242 Tom Tromey <tromey@redhat.com>
15244 * infrun.c (use_displaced_stepping): Use find_record_target
15245 instead of RECORD_IS_USED.
15246 (adjust_pc_after_break): Use record_full_is_used instead of
15248 * record-btrace.c (record_btrace_open): Call record_preopen
15249 instead of checking RECORD_IS_USED.
15250 * record-full.c (record_full_shortname)
15251 (record_full_core_shortname): New globals.
15252 (record_full_is_used): New function.
15253 (find_full_open): Call record_preopen instead of checking
15255 (init_record_full_ops): Set the target's shortname to
15256 record_full_shortname.
15257 (init_record_full_core_ops): Set the target's shortname to
15258 record_full_core_shortname.
15259 * record-full.h (record_full_is_used): Declare.
15260 * record.c (find_record_target): Make extern.
15261 (record_preopen): New function.
15262 * record.h (RECORD_IS_USED): Delete macro.
15263 (find_record_target, record_preopen): Declare functions.
15265 2014-01-14 Yao Qi <yao@codesourcery.com>
15267 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15268 'len''s type to ULONGEST.
15269 (core_xfer_shared_libraries_aix): Likewise.
15270 * gdbarch.c, gdbarch.h: Regenerated.
15271 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15272 Change type of 'len' to ULONGEST.
15273 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15274 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15276 2014-01-14 Yao Qi <yao@codesourcery.com>
15278 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15279 type of 'len' to ULONGEST.
15280 (linux_xfer_osdata_processgroups): Likewise.
15281 (linux_xfer_osdata_threads): Likewise.
15282 (linux_xfer_osdata_fds): Likewise.
15283 (linux_xfer_osdata_isockets): Likewise.
15284 (linux_xfer_osdata_shm): Likewise.
15285 (linux_xfer_osdata_sem): Likewise.
15286 (linux_xfer_osdata_msg): Likewise.
15287 (linux_common_xfer_osdata): Likewise.
15288 (struct osdata_type) <getter>: Likewise.
15289 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15292 2014-01-14 Yao Qi <yao@codesourcery.com>
15294 * target.h (target_xfer_partial_ftype): Update.
15295 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15297 * aix-thread.c (aix_thread_xfer_partial): Change type of
15298 argument 'len' to ULONGEST.
15299 * auxv.c (procfs_xfer_auxv): Likewise.
15300 (ld_so_xfer_auxv): Likewise.
15301 (memory_xfer_auxv): Likewise.
15302 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15303 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15304 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15305 * corelow.c (core_xfer_partial): Likewise.
15306 * ctf.c (ctf_xfer_partial): Likewise.
15307 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15309 (darwin_read_dyld_info): Likewise.
15310 (darwin_xfer_partial): Likewise.
15311 * exec.c (section_table_xfer_memory_partial): Likewise.
15312 (exec_xfer_partial): Likewise.
15313 * exec.h (section_table_xfer_memory_partial): Update
15315 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15316 instead of plongest.
15317 (gnu_xfer_partial): Likewise.
15318 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15319 (ia64_hpux_xfer_solib_got): Likewise.
15320 (ia64_hpux_xfer_partial): Likewise.
15321 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15322 * inf-ptrace.c (inf_ptrace_xfer_partial):
15323 * inf-ttrace.c (inf_ttrace_xfer_partial):
15324 * linux-nat.c (linux_xfer_siginfo): Likewise.
15325 (linux_nat_xfer_partial): Likewise.
15326 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15327 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15328 * monitor.c (monitor_xfer_memory): Likewise.
15329 (monitor_xfer_partial): Likewise.
15330 * procfs.c (procfs_xfer_partial): Likewise.
15331 * record-full.c (record_full_xfer_partial): Likewise.
15332 (record_full_core_xfer_partial): Likewise.
15333 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15334 instead of plongest.
15335 (gdbsim_xfer_partial): Likewise.
15336 * remote.c (remote_xfer_partial): Likewise.
15337 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15338 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15340 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15341 (rs6000_xfer_shared_libraries): Likewise.
15342 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15343 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15344 (sparc_xfer_partial): Likewise.
15345 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15346 (spu_xfer_partial): Likewise.
15347 * spu-multiarch.c (spu_xfer_partial): Likewise.
15348 * target.c (target_read_live_memory): Likewise.
15349 (memory_xfer_live_readonly_partial): Likewise.
15350 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15351 (target_xfer_partial, default_xfer_partial): Likewise.
15352 (current_xfer_partial): Likewise.
15353 * tracepoint.c (tfile_xfer_partial): Likewise.
15354 * windows-nat.c (windows_xfer_memory): Likewise. Call
15355 pulongest instead of plongest.
15356 (windows_xfer_partial): Likewise.
15357 (windows_xfer_shared_libraries): Likewise.
15359 2014-01-14 Yao Qi <yao@codesourcery.com>
15361 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15362 target_xfer_partial_ftype.
15364 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15368 * valops.c (value_struct_elt_bitpos): New function
15369 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15370 object to 'None' if the field name is an empty string ("").
15371 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15372 attribute to look for a field when 'name' is 'None'.
15373 (get_field_type): New function
15375 2014-01-13 Doug Evans <dje@google.com>
15378 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15379 (try_open_dwop_file): Ditto.
15380 * gdb_bfd.c: #include "vec.h".
15381 (bfdp): New typedef.
15382 (struct gdb_bfd_data): New member included_bfds.
15383 (gdb_bfd_unref): Unref all included bfds.
15384 (gdb_bfd_record_inclusion): New function.
15385 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15387 2014-01-13 Tom Tromey <tromey@redhat.com>
15389 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15391 2014-01-13 Tom Tromey <tromey@redhat.com>
15393 * defs.h (use_windows): Remove.
15394 * gdb.c (main): Update.
15395 * main.c (captured_main, gdb_main): Update.
15396 * main.h (struct captured_main_args) <use_windows>: Remove.
15397 * top.c (use_windows): Remove.
15399 2014-01-13 Tom Tromey <tromey@redhat.com>
15401 * defs.h (deprecated_flush_hook): Remove.
15403 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15406 * linux-thread-db.c (try_thread_db_load): Add parameter
15407 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15408 (try_thread_db_load_from_pdir_1): Move it there from here.
15409 (try_thread_db_load_from_sdir): Update caller.
15410 (try_thread_db_load_from_dir): Move it there from here.
15412 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15414 * regformats/regdat.sh: Always rewrite the register file.
15416 2014-01-13 Pedro Alves <palves@redhat.com>
15418 * Makefile.in (CHECK_HEADERS): New variable.
15419 (check-headers:): New rule.
15421 2014-01-13 Tom Tromey <tromey@redhat.com>
15423 * cli/cli-setshow.c (do_set_command): Update.
15424 * defs.h (deprecated_set_hook): Remove.
15425 * top.c (deprecated_set_hook): Remove.
15427 2014-01-13 Pedro Alves <palves@redhat.com>
15429 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15430 the tracepoint if the PC is a pseudo-register.
15432 2014-01-13 Tom Tromey <tromey@redhat.com>
15434 * defs.h (XCALLOC): Remove.
15435 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15436 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15437 * dwarf2loc.c (allocate_piece_closure): Likewise.
15438 * elfread.c (elf_symfile_segments): Likewise.
15439 (elf_symfile_segments): Likewise.
15440 * gdbtypes.c (copy_type_recursive): Likewise.
15441 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15442 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15443 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15445 * mt-tdep.c (mt_gdbarch_init): Likewise.
15446 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15448 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15449 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15450 * registry.c (registry_alloc_data): Likewise.
15451 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15452 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15453 * serial.c (serial_fdopen_ops): Likewise.
15454 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15456 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15457 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15460 2014-01-13 Tom Tromey <tromey@redhat.com>
15462 * defs.h (XMALLOC): Remove.
15463 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15464 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15465 * cli-out.c (struct ui_out *): Likewise.
15466 * cli/cli-dump.c (add_dump_command): Likewise.
15467 (add_dump_command): Likewise.
15468 * complaints.c (get_complaints): Likewise.
15469 (find_complaint): Likewise.
15470 * dwarf2-frame.c (execute_cfa_program): Likewise.
15471 * dwarf2read.c (abbrev_table_read_table): Likewise.
15472 * gdbarch.sh: Likewise.
15473 * gdbarch.c: Rebuild.
15474 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15475 * interps.c (interp_new): Likewise.
15476 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15477 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15478 * mi/mi-console.c (mi_console_file_new): Likewise.
15479 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15480 * mi/mi-out.c (mi_out_new): Likewise.
15481 * mi/mi-parse.c (mi_parse): Likewise.
15482 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15483 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15484 * observer.c (xalloc_observer_list_node): Likewise.
15485 * regcache.c (regcache_xmalloc_1): Likewise.
15486 * reggroups.c (reggroup_new): Likewise.
15487 (_initialize_reggroup): Likewise.
15488 * registry.c (register_data_with_cleanup): Likewise.
15489 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15490 * ser-base.c (serial_ttystate): Likewise.
15491 * ser-mingw.c (make_pipe_state): Likewise.
15492 * ser-pipe.c (pipe_open): Likewise.
15493 * serial.c (serial_open): Likewise.
15494 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15495 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15496 (tui_alloc_win_info): Likewise.
15497 (tui_add_content_elements): Likewise.
15498 * tui/tui-file.c (tui_file_new): Likewise.
15499 * tui/tui-out.c (tui_out_new): Likewise.
15500 * ui-file.c (mem_file_new): Likewise.
15501 * ui-out.c (push_level): Likewise.
15502 (make_cleanup_ui_out_end): Likewise.
15503 (append_header_to_list): Likewise.
15504 (ui_out_new): Likewise.
15505 * user-regs.c (user_reg_add_builtin): Likewise.
15507 2014-01-13 Tom Tromey <tromey@redhat.com>
15509 * defs.h (XZALLOC): Remove.
15510 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15511 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15512 (get_ada_tasks_inferior_data): Likewise.
15513 * auto-load.c (get_auto_load_pspace_data): Likewise.
15514 * auxv.c (get_auxv_inferior_data): Likewise.
15515 * bfd-target.c (target_bfd_reopen): Likewise.
15516 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15517 (deprecated_insert_raw_breakpoint): Likewise.
15518 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15519 * corelow.c (core_open): Likewise.
15520 * darwin-nat.c (darwin_check_new_threads): Likewise.
15521 (darwin_attach_pid): Likewise.
15522 * dummy-frame.c (dummy_frame_push): Likewise.
15523 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15524 * dwarf2loc.c (allocate_piece_closure): Likewise.
15525 * elfread.c (elf_symfile_segments): Likewise.
15526 * eval.c (ptrmath_type_p): Likewise.
15527 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15528 * gdbtypes.c (alloc_type_arch): Likewise.
15529 (alloc_type_instance): Likewise.
15530 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15531 * inf-child.c (inf_child_can_use_agent): Likewise.
15532 * inflow.c (get_inflow_inferior_data): Likewise.
15533 * infrun.c (save_infcall_suspend_state): Likewise.
15534 * jit.c (jit_reader_load): Likewise.
15535 (get_jit_objfile_data): Likewise.
15536 (get_jit_program_space_data): Likewise.
15537 (jit_object_open_impl): Likewise.
15538 (jit_symtab_open_impl): Likewise.
15539 (jit_block_open_impl): Likewise.
15540 (jit_frame_sniffer): Likewise.
15541 * linux-fork.c (add_fork): Likewise.
15542 * maint.c (make_command_stats_cleanup): Likewise.
15543 * objfiles.c (get_objfile_pspace_data): Likewise.
15544 * opencl-lang.c (struct lval_closure): Likewise.
15545 * osdata.c (osdata_start_osdata): Likewise.
15546 * progspace.c (new_address_space): Likewise.
15547 (add_program_space): Likewise.
15548 * remote-sim.c (get_sim_inferior_data): Likewise.
15549 * sh-tdep.c (sh_gdbarch_init): Likewise.
15550 * skip.c (Ignore): Likewise.
15551 (skip_delete_command): Likewise.
15552 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15553 (library_list_start_library): Likewise.
15554 (solib_aix_current_sos): Likewise.
15555 * solib-darwin.c (get_darwin_info): Likewise.
15556 (darwin_current_sos): Likewise.
15557 * solib-dsbt.c (get_dsbt_info): Likewise.
15558 * solib-ia64-hpux.c (new_so_list): Likewise.
15559 (ia64_hpux_get_solib_linkage_addr): Likewise.
15560 * solib-spu.c (append_ocl_sos): Likewise.
15561 (spu_current_sos): Likewise.
15562 * solib-svr4.c (get_svr4_info): Likewise.
15563 (svr4_keep_data_in_core): Likewise.
15564 (library_list_start_library): Likewise.
15565 (svr4_default_sos): Likewise.
15566 (svr4_read_so_list): Likewise.
15567 * solib-target.c (library_list_start_library): Likewise.
15568 (solib_target_current_sos): Likewise.
15569 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15570 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15571 * symfile.c (default_symfile_segments): Likewise.
15572 * target-descriptions.c (tdesc_data_init): Likewise.
15573 (tdesc_create_reg): Likewise.
15574 (struct tdesc_type *): Likewise.
15575 (tdesc_create_vector): Likewise.
15576 (tdesc_set_struct_size): Likewise.
15577 (struct tdesc_type *): Likewise.
15578 (tdesc_free_feature): Likewise.
15579 (tdesc_create_feature): Likewise.
15580 * windows-nat.c (windows_add_thread): Likewise.
15581 (windows_make_so): Likewise.
15582 * xml-support.c (gdb_xml_body_text): Likewise.
15583 (gdb_xml_create_parser_and_cleanup): Likewise.
15584 (xml_process_xincludes): Likewise.
15585 * xml-syscall.c (allocate_syscalls_info): Likewise.
15586 (syscall_create_syscall_desc): Likewise.
15588 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15590 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15591 function, with code from i386_stap_parse_special_token.
15592 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15593 (i386_stap_parse_special_token): Move code to the two functions
15594 above; simplify it.
15596 2014-01-09 Pedro Alves <palves@redhat.com>
15597 Hui Zhu <hui@codesourcery.com>
15600 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15601 bp_err_string. Don't mark the location shlib_disabled if the
15602 error thrown wasn't a generic or memory error. Catch errors
15603 thrown while inserting breakpoints in overlayed code. Output
15604 error message of software breakpoints.
15605 * remote.c (remote_insert_breakpoint): If this breakpoint has
15606 target-side commands but this stub doesn't support Z0 packets,
15607 throw NOT_SUPPORTED_ERROR error.
15608 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15609 * target.h (target_insert_breakpoint): Extend comment.
15610 (target_insert_hw_breakpoint): Add comment.
15612 2014-01-08 Pedro Alves <palves@redhat.com>
15614 * remote.c (remote_add_thread): Add threads silently if starting
15616 (remote_notice_new_inferior): If in all-stop, and starting up,
15617 don't call notice_new_inferior.
15618 (get_current_thread): New function, factored out from ...
15619 (add_current_inferior_and_thread): ... this. Adjust.
15620 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15621 found any thread, then select the remote's current thread as GDB's
15622 current thread too.
15624 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15626 * NEWS: Create a new section for the next release branch.
15627 Rename the section of the current branch, now that it has
15630 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15632 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15633 * version.in: Bump version to 7.7.50.DATE-cvs.
15635 2014-01-08 Yao Qi <yao@codesourcery.com>
15637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15638 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15639 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15641 2014-01-08 Yao Qi <yao@codesourcery.com>
15643 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15644 return value of bfd_get_filename to symbol_file_add_from_bfd.
15646 2014-01-08 Pierre Muller <muller@sourceware.org>
15649 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15650 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15651 to prim_record_mininal_symbol_and_info.
15652 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15653 in call to prim_record_minimal_symbol_and_info.
15654 (read_pe_exported_syms): Set index field of section_data.
15656 2014-01-07 Andrew Pinski <apinski@cavium.com>
15658 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15659 * features/aarch64.c: Regenerate.
15661 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15663 * target.c (return_null): Define.
15664 (update_current_target): Use it instead of return_zero for
15665 functions that return a pointer.
15667 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15669 * source.c (add_path): Fix check for duplicated paths in the previously
15672 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15674 * ada-lang.c: Remove duplicated include statements.
15675 * alphabsd-nat.c: Ditto.
15676 * amd64-darwin-tdep.c: Ditto.
15677 * amd64fbsd-nat.c: Ditto.
15678 * auto-load.c: Ditto.
15680 * breakpoint.c: Ditto.
15681 * dbxread.c: Ditto.
15682 * fork-child.c: Ditto.
15683 * gdb_usleep.c: Ditto.
15684 * i386-darwin-tdep.c: Ditto.
15685 * i386fbsd-nat.c: Ditto.
15687 * inferior.c: Ditto.
15688 * jv-lang.c: Ditto.
15689 * linux-nat.c: Ditto.
15690 * linux-tdep.c: Ditto.
15691 * m68kbsd-nat.c: Ditto.
15692 * m68klinux-nat.c: Ditto.
15693 * microblaze-tdep.c: Ditto.
15694 * mips-linux-tdep.c: Ditto.
15695 * mn10300-tdep.c: Ditto.
15696 * nto-tdep.c: Ditto.
15697 * opencl-lang.c: Ditto.
15699 * printcmd.c: Ditto.
15700 * regcache.c: Ditto.
15701 * remote-m32r-sdi.c: Ditto.
15703 * symfile.c: Ditto.
15705 * tilegx-linux-nat.c: Ditto.
15706 * tilegx-tdep.c: Ditto.
15707 * tracepoint.c: Ditto.
15709 * vaxbsd-nat.c: Ditto.
15710 * windows-nat.c: Ditto.
15711 * xtensa-tdep.c: Ditto.
15713 2014-01-07 Yao Qi <yao@codesourcery.com>
15715 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15717 2014-01-07 Yao Qi <yao@codesourcery.com>
15718 Joel Brobecker <brobecker@adacore.com>
15720 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15721 (pdc_write_regs): Likewise.
15722 (fetch_regs_kernel_thread): Likewise.
15723 (store_regs_kernel_thread): Likewise.
15725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15727 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15728 tagged type objects to their actual type.
15730 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15732 * ada-valprint.c (print_field_values): Add "language" parameter.
15733 Update calls to print_field_values and print_variant_part.
15734 Pass new parameter "language" in call to val_print instead
15735 of "current_language". Replace call to ada_val_print by call
15737 (print_variant_part): Add "language" parameter.
15738 (ada_val_print_struct_union): Update call to print_field_values.
15740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15742 * ada-valprint.c (ui_memcpy): Delete.
15743 (ada_print_floating): Update documentation. Add empty line
15744 between between function documentation and implementation.
15745 Delete variable "buffer". Use ui_file_xstrdup in place of
15746 ui_file_put. Minor adjustments following this change.
15748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15750 * ada-valprint.c (ada_val_print_string): New function,
15751 extracted from ada_val_print_array.
15752 (ada_val_print_array): Replace extracted code by call
15753 to ada_val_print_string followed by a return. Move
15754 "else" branch to the function's top block.
15756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15758 * ada-valprint.c (ada_val_print_array): Move implementation
15759 down. Rename parameter "offset" and "val" into "offset_aligned"
15760 and "original_value" respectively. Add parameter "offset".
15762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15764 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15765 re-organizing the code. Change the "???" message printed
15766 when target type is a TYPE_CODE_UNDEF into
15767 "<ref to undefined type>".
15769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15771 * ada-valprint.c (print_record): Delete, implementation inlined...
15772 (ada_val_print_struct_union): ... here. Remove call to
15773 ada_check_typedef in inlined implementation.
15775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15777 * ada-valprint.c (ada_val_print_gnat_array): New function,
15778 extracted from ada_val_print_1;
15779 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15780 (ada_val_print_flt, ada_val_print_struct_union)
15781 (ada_val_print_ref): Likewise.
15782 (ada_val_print_1): Delete variables i and elttype.
15783 Replace extracted-out code by call to corresponding
15786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15788 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15792 * ada-valprint.c (ada_val_print_1): Replace calls to
15793 ada_val_print_1 by calls to val_print.
15795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15797 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15798 Update calls to self accordingly. Replace calls to c_val_print
15799 by calls to val_print.
15801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15803 * ada-valprint.c (print_record): Delete declaration.
15804 (adjust_type_signedness, ada_val_print_1): Likewise.
15805 (ada_val_print): Move function implementation down.
15806 (print_variant_part, print_field_values, print_record):
15807 Move function implementation up.
15809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15811 * python/py-type.c (typy_get_name): New function.
15812 (type_object_getset): Add entry for attribute "name".
15813 * NEWS: Add entry mentioning this new attribute.
15815 2014-01-07 Yao Qi <yao@codesourcery.com>
15817 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15820 2014-01-07 Yao Qi <yao@codesourcery.com>
15822 * gnu-nat.c (info_port_rights): Add qualifier const to
15825 2014-01-07 Yao Qi <yao@codesourcery.com>
15827 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15829 2014-01-07 Yao Qi <yao@codesourcery.com>
15831 * gnu-nat.c (make_inf) Update declaration.
15832 (make_inf): Make it static.
15833 (inf_set_traced): Likewise.
15834 (inf_port_to_thread, inf_task_died_status): Likewise.
15836 2014-01-07 Yao Qi <yao@codesourcery.com>
15838 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15840 2014-01-07 Yao Qi <yao@codesourcery.com>
15842 * gnu-nat.c (_initialize_gnu_nat): Declare.
15844 2014-01-07 Yao Qi <yao@codesourcery.com>
15846 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15848 (struct gdbarch_info) <byte_order>: Change type to
15850 <byte_order_for_code>: Likewise.
15851 * gdbarch.c, gdbarch.h: Regenerated.
15853 2014-01-06 Sasha Smundak <asmundak@google.com>
15855 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15857 2014-01-06 Tom Tromey <tromey@redhat.com>
15859 * doublest.c (convert_doublest_to_floatformat): Use const, not
15861 * somread.c (som_symtab_read): Likewise.
15863 2014-01-07 Hui Zhu <hui@codesourcery.com>
15865 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15866 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15867 (gdb_bfd_fopen): Ditto.
15868 (gdb_bfd_openr): Ditto.
15869 (gdb_bfd_openw): Ditto.
15870 (gdb_bfd_openr_iovec): Ditto.
15871 (gdb_bfd_fdopenr): Ditto.
15872 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15873 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15875 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15877 * symfile-mem.c (symbol_file_add_from_memory): Removed
15878 gdb_bfd_stash_filename.
15880 2014-01-03 Doug Evans <dje@google.com>
15882 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15885 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15887 Update year range in copyright notice of all files.
15889 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15891 * top.c (print_gdb_version): Set copyright year to 2014.
15893 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15895 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15897 For older changes see ChangeLog-2013.
15903 version-control: never