1 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
4 * target.c (cleanup_restore_target_terminal): New function.
5 (make_cleanup_restore_target_terminal): New function.
6 * target.h (make_cleanup_restore_target_terminal): New declaration.
7 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
9 2014-12-08 Doug Evans <dje@google.com>
11 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
13 2014-12-08 Doug Evans <dje@google.com>
15 * NEWS: Mention gdb.Objfile.owner.
16 * python/py-objfile.c (objfpy_get_owner): New function.
17 (objfile_getset): Add "owner".
19 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
21 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
22 (lookup_global_symbol_from_objfile): Call it.
24 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
26 Remove const from struct objfile *.
27 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
28 symtab.c, symtab.h: In these files.
30 2014-12-05 Andreas From <andreas.from@ericsson.com>
32 * MAINTAINERS (Write After Approval): Add "Andreas From"
34 2014-12-05 Doug Evans <xdje42@gmail.com>
38 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
40 2014-12-04 Doug Evans <dje@google.com>
42 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
43 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
44 (objfile_getset): Add "add_separate_debug_file".
46 2014-12-04 Doug Evans <dje@google.com>
48 * NEWS: Mention gdb.Objfile.build_id.
49 * build-id.c (build_id_bfd_get): Make non-static.
50 * build-id.h (build_id_bfd_get): Add declaration.
51 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
52 (OBJFPY_REQUIRE_VALID): New macro.
53 (objfpy_get_build_id): New function.
54 (objfile_getset): Add "build_id".
55 * utils.c (make_hex_string): New function.
56 * utils.h (make_hex_string): Add declaration.
58 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
60 * block.c (block_lookup_symbol_primary): New function.
61 * block.h (block_lookup_symbol_primary): New declaration.
62 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
63 Call block_lookup_symbol_primary.
65 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
67 * tramp-frame.h (tramp_frame): Add `validate' member.
68 * tramp-frame.c (tramp_frame_start): Validate trampoline before
70 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
71 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
72 (mips_linux_o32_sigframe): Initialize `validate' member.
73 (mips_linux_o32_rt_sigframe): Likewise.
74 (mips_linux_n32_rt_sigframe): Likewise.
75 (mips_linux_n64_rt_sigframe): Likewise.
76 (micromips_linux_o32_sigframe): New variable.
77 (micromips_linux_o32_rt_sigframe): Likewise.
78 (micromips_linux_n32_rt_sigframe): Likewise.
79 (micromips_linux_n64_rt_sigframe): Likewise.
80 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
81 (mips_linux_n32n64_sigframe_init): Likewise.
82 (mips_linux_sigframe_validate): New function.
83 (micromips_linux_sigframe_validate): Likewise.
84 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
86 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
88 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
89 * sparc-sol2-tdep.c: Include "regset.h".
90 (sparc32_sol2_supply_core_gregset): New function.
91 (sparc32_sol2_collect_core_gregset): Likewise.
92 (sparc32_sol2_supply_core_fpregset): Likewise.
93 (sparc32_sol2_collect_core_fpregset): Likewise.
94 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
95 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
96 tdep->fpregset/sizeof_fpregset.
97 * sparc64-sol2-tdep.c: Include "regset.h".
98 (sparc64_sol2_supply_core_gregset): New function.
99 (sparc64_sol2_collect_core_gregset): Likewise.
100 (sparc64_sol2_supply_core_fpregset): Likewise.
101 (sparc64_sol2_collect_core_fpregset): Likewise.
102 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
103 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
104 tdep->fpregset/sizeof_fpregset.
106 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
108 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
111 2014-12-02 Doug Evans <dje@google.com>
113 * symtab.c (symbol_init_cplus_specific): Delete.
114 (symbol_set_demangled_name): Remove special c++ support.
115 (symbol_get_demangled_name, symbol_set_language): Ditto.
116 * symtab.h (struct cplus_specific): Delete.
117 (struct general_symbol_info) <language_specific>: Remove
120 2014-12-02 Doug Evans <dje@google.com>
123 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
125 2014-12-02 Doug Evans <dje@google.com>
128 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
131 2014-12-02 Doug Evans <dje@google.com>
133 * dwarf2read.c (peek_die_abbrev): Improve error message text.
135 2014-12-02 Doug Evans <dje@google.com>
137 * valops.c (do_search_struct_field): Remove remnant of Chill support.
138 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
140 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
142 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
144 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
146 * NEWS: Mention new Python events.
147 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
148 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
149 (py-infevents.o): New rule.
150 * doc/observer.texi (inferior_call_pre, inferior_call_post)
151 (memory_changed, register_changed): New observers.
152 * infcall.c (call_function_by_hand): Notify observer before and
154 * python/py-event.h (inferior_call_kind): New enum.
155 (emit_inferior_call_event): New prototype.
156 (emit_register_changed_event): New prototype.
157 (emit_memory_changed_event): New prototype.
158 * python/py-events.h (events_object): New registries
159 inferior_call, memory_changed and register_changed.
160 * python/py-evts.c (gdbpy_initialize_py_events): Add the
161 inferior_call, memory_changed and register_changed registries.
162 * python/py-infevents.c: New.
163 * python/py-inferior.c (python_on_inferior_call_pre)
164 (python_on_inferior_call_post, python_on_register_change)
165 (python_on_memory_change): New functions.
166 (gdbpy_initialize_inferior): Attach python handler to new
168 * python/py-infthread.c(gdbpy_create_ptid_object): New.
169 (thpy_get_ptid) Use gdbpy_create_ptid_object.
170 * python/python-internal.h:
171 (gdbpy_create_ptid_object)
172 (gdbpy_initialize_inferior_call_pre_event)
173 (gdbpy_initialize_inferior_call_post_event)
174 (gdbpy_initialize_register_changed_event)
175 (gdbpy_initialize_memory_changed_event): New prototypes.
176 * python/python.c (_initialize_python): Initialize new events.
177 * valops.c (value_assign): Notify register_changed observer.
179 2014-12-02 Doug Evans <dje@google.com>
181 * python/py-infthread.c: Whitespace fixes.
183 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
185 * features/Makefile (s390-te-linux64-expedite): Replace
186 non-existant r14 and r15 by r14l and r15l, respectively.
187 * regformats/s390-te-linux64.dat: Regenerate.
189 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
191 * objfiles.c (allocate_objfile): Remove duplicate comment.
193 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
195 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
196 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
197 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
198 (supply_gregset, supply_fpregset): Remove.
199 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
200 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
203 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
205 Add add-auto-load-scripts-directory.
206 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
207 * auto-load.c (add_auto_load_dir): New function.
208 (_initialize_auto_load): Install it.
210 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
212 Pushed by Joel Brobecker <brobecker@adacore.com>.
213 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
215 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
217 * eval.c (evaluate_subexp): Check that the thread stack temporaries
218 are not already enabled before enabling them.
220 2014-11-29 Yao Qi <yao@codesourcery.com>
222 * arm-tdep.c (arm_analyze_prologue): Move local variables
223 'framereg' and 'framesize' to inner block. Move code to
226 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
228 * eval.c: Include gdbthread.h.
229 (evaluate_subexp): Enable thread stack temporaries before
230 evaluating a complete expression and clean them up after the
231 evaluation is complete.
232 * gdbthread.h: Include common/vec.h.
233 (value_ptr): New typedef.
234 (VEC (value_ptr)): New vector type.
235 (value_vec): New typedef.
236 (struct thread_info): Add new fields stack_temporaries_enabled
237 and stack_temporaries.
238 (enable_thread_stack_temporaries)
239 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
240 (get_last_thread_stack_temporary)
241 (value_in_thread_stack_temporaries): Declare.
242 * gdbtypes.c (class_or_union_p): New function.
243 * gdbtypes.h (class_or_union_p): Declare.
244 * infcall.c (call_function_by_hand): Store return values of class
245 type as temporaries on stack.
246 * thread.c (enable_thread_stack_temporaries): New function.
247 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
248 (get_last_thread_stack_temporary): Likewise.
249 (value_in_thread_stack_temporaries): Likewise.
250 * value.c (value_force_lval): New function.
251 * value.h (value_force_lval): Declare.
253 2014-11-28 Pierre Muller <muller@sourceware.org>
255 Pushed by Joel Brobecker <brobecker@adacore.com>.
256 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
259 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
261 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
262 * config/sparc/linux.mh (NATDEPFILES): Likewise.
263 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
264 * m68klinux-nat.c (fetch_core_registers): Remove.
265 (linux_elf_core_fns): Remove.
266 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
268 2014-11-28 Joel Brobecker <brobecker@adacore.com>
270 * utils.c (gdb_realpath): Rework comment about handling on
273 2014-11-28 Yao Qi <yao@codesourcery.com>
275 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
277 * gnulib/aclocal.m4: Re-generated.
278 * gnulib/config.in: Re-generated.
279 * gnulib/configure: Re-generated.
280 * gnulib/import/Makefile.am: Re-generated.
281 * gnulib/import/Makefile.in: Re-generated.
282 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
283 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
284 * import/basename-lgpl.c: New file.
285 * import/dirname-lgpl.c: New file.
286 * import/dirname.h: New file.
287 * import/m4/dirname.m4: New file.
288 * import/m4/malloc.m4: New file.
289 * import/m4/rename.m4: New file.
290 * import/m4/rmdir.m4: New file.
291 * import/m4/stdio_h.m4: New file.
292 * import/malloc.c: New file.
293 * import/rename.c: New file.
294 * import/rmdir.c: New file.
295 * import/same-inode.h: New file.
296 * import/stdio.c: New file.
297 * import/stdio.in.h: New file.
298 * import/stripslash.c: New file.
300 2014-11-28 Yao Qi <yao@codesourcery.com>
302 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
304 * config.in: Re-generated.
305 * configure: Re-generated.
306 * utils.c (gdb_realpath): Remove code calling realpath,
307 canonicalize_file_name and pathconf.
308 [!_WIN32]: Call canonicalize_file_name.
310 2014-11-28 Yao Qi <yao@codesourcery.com>
312 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
314 * aclocal.m4: Re-generated.
315 * config.in: Re-generated.
316 * configure: Re-generated.
317 * import/Makefile.am: Re-generated.
318 * import/Makefile.in: Re-generated.
319 * import/m4/gnulib-cache.m4: Re-generated.
320 * import/m4/gnulib-comp.m4: Re-generated.
321 * import/canonicalize-lgpl.c: New file.
322 * import/extra/snippet/_Noreturn.h: New file.
323 * import/m4/canonicalize.m4: New file.
324 * import/m4/double-slash-root.m4: New file.
325 * import/m4/eealloc.m4: New file.
326 * import/m4/malloca.m4: New file.
327 * import/m4/nocrash.m4: New file.
328 * import/m4/stdlib_h.m4: New file.
329 * import/malloca.c: New file.
330 * import/malloca.h: New file.
331 * import/malloca.valgrind: New file.
333 2014-11-28 Yao Qi <yao@codesourcery.com>
335 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
336 * config.in, configure: Regenerate.
337 * symfile.c (find_separate_debug_file_by_debuglink): Remove
338 code checking HAVE_LSTAT is defined.
340 2014-11-28 Yao Qi <yao@codesourcery.com>
342 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
344 * gnulib/aclocal.m4: Re-generated.
345 * gnulib/config.in: Re-generated.
346 * gnulib/configure: Re-generated.
347 * gnulib/import/Makefile.am: Re-generated.
348 * gnulib/import/Makefile.in: Re-generated.
349 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
350 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
351 * gnulib/import/lstat.c: New file.
352 * gnulib/import/m4/lstat.m4: New file.
354 2014-11-28 Yao Qi <yao@codesourcery.com>
356 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
357 * config.in, configure: Re-generate.
358 * inf-child.c (inf_child_fileio_readlink): Don't check
359 HAVE_READLINK is defined.
361 2014-11-28 Yao Qi <yao@codesourcery.com>
363 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
364 * gnulib/aclocal.m4: Re-generated.
365 * gnulib/config.in: Likewise.
366 * gnulib/configure: Likewise.
367 * gnulib/import/Makefile.am: Likewise.
368 * gnulib/import/Makefile.in: Likewise.
369 * gnulib/import/m4/gnulib-cache.m4: Likewise.
370 * gnulib/import/m4/gnulib-comp.m4: Likewise.
371 * gnulib/import/dosname.h: New file
372 * gnulib/import/m4/largefile.m4: New file.
373 * gnulib/import/m4/readlink.m4: New file.
374 * gnulib/import/m4/stat.m4: New file.
375 * gnulib/import/readlink.c: New file.
376 * gnulib/import/stat.c: New file.
378 2014-11-26 Mark Wielaard <mjw@redhat.com>
380 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
381 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
383 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
385 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
386 that there can be only one stack adjustment in the prologue
387 with tests to detect specific disallowed stack adjustments.
389 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
391 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
394 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
396 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
397 the instruction as well as reading it from memory.
398 (nios2_match_add): New.
399 (nios2_match_sub): New.
400 (nios2_match_addi): New.
401 (nios2_match_orhi): New.
402 (nios2_match_stw): New.
403 (nios2_match_ldw): New.
404 (nios2_match_rdctl): New.
405 (enum branch_condition): New.
406 (nios2_match_branch): New.
407 (nios2_match_jmpi): New.
408 (nios2_match_calli): New.
409 (nios2_match_jmpr): New.
410 (nios2_match_callr): New.
411 (nios2_match_break): New.
412 (nios2_match_trap): New.
413 (nios2_in_epilogue_p): Rewrite to use new functions.
414 (nios2_analyze_prologue): Likewise.
415 (nios2_skip_prologue): Delete unused local limit_pc.
416 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
417 (nios2_get_next_pc): Rewrite to use new functions.
419 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
423 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
425 Pushed by Joel Brobecker <brobecker@adacore.com>
426 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
427 elements pi_len by the size of the elements before calling
429 (inf_validate_task_sc): Likewise, and properly deallocate the
432 2014-11-23 Doug Evans <xdje42@gmail.com>
434 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
435 number and name if present. All callers updated.
436 (dump_fn_fieldlists): Fix indentation of args.
438 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
440 * MAINTAINERS (Write After Approval): Add myself.
442 2014-11-23 Joel Brobecker <brobecker@adacore.com>
444 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
445 to a bp_call_dummy breakpoint type.
447 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
449 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
450 registering the signal handler.
452 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
454 * event-top.h (call_stdin_event_handler_again_p): Declare.
455 * event-top.c (call_stdin_event_handler_again_p): Define.
456 (stdin_event_handler): Use it.
457 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
458 handler again if there is pending input following a
461 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
463 Pushed by Joel Brobecker <brobecker@adacore.com>
464 * linux-fork.c (checkpoint_command): Print index of new
465 checkpoint in response message.
467 2014-11-23 Yao Qi <yao@codesourcery.com>
469 * valprint.c (read_string): Move local variables 'found_nul',
470 'chunksize' and 'limit' to inner scope. Update comments.
472 2014-11-22 Doug Evans <xdje42@gmail.com>
474 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
476 (search_symbols): Fix comments and whitespace.
478 2014-11-22 Doug Evans <xdje42@gmail.com>
480 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
482 2014-11-21 Doug Evans <dje@google.com>
484 * psymtab.c (psymtab_search_name): Fix whitespace.
486 2014-11-21 Yao Qi <yao@codesourcery.com>
488 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
490 * gnulib/import/Makefile.am: Re-generated.
491 * gnulib/import/Makefile.in: Likewise.
492 * gnulib/import/m4/gnulib-cache.m4: Likewise.
494 2014-11-21 Yao Qi <yao@codesourcery.com>
496 * gdb_wchar.h: Include wchar.h and wctype.h.
497 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
498 include wchar.h and wctype.h.
499 Don't check HAVE_WCHAR_H.
501 2014-11-21 Yao Qi <yao@codesourcery.com>
503 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
505 * gnulib/import/Makefile.am: Re-generated.
506 * gnulib/import/Makefile.in: Likewise.
507 * gnulib/import/m4/gnulib-cache.m4: Likewise.
509 2014-11-21 Yao Qi <yao@codesourcery.com>
511 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
513 * gnulib/import/Makefile.am: Re-generated.
514 * gnulib/import/Makefile.in: Likewise.
515 * gnulib/import/m4/gnulib-cache.m4: Likewise.
517 2014-11-21 Yao Qi <yao@codesourcery.com>
519 * common/common-defs.h: Include alloca.h
520 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
521 * configure: Re-generated.
522 * defs.h: Remove code handling alloca.
523 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
526 2014-11-21 Yao Qi <yao@codesourcery.com>
528 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
530 * gnulib/import/Makefile.am: Re-generated.
531 * gnulib/import/Makefile.in: Likewise..
532 * gnulib/import/m4/gnulib-cache.m4: Likewise.
534 2014-11-21 Yao Qi <yao@codesourcery.com>
536 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
539 2014-11-21 Joel Brobecker <brobecker@adacore.com>
541 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
542 flag_unsigned if HIGH_BOUND is constant and negative.
544 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
547 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
548 modifier from "struct gdbarch" when compiling without Expat (XML)
550 (get_syscall_by_number): Likewise.
551 (get_syscall_by_name): Likewise.
552 (get_syscall_names): Likewise.
554 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
557 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
558 set_xml_syscall_file_name to provide gdbarch.
559 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
560 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
561 * breakpoint.c (print_it_catch_syscall): Adjust call to
562 get_syscall_by_number to provide gdbarch.
563 (print_one_catch_syscall): Likewise.
564 (print_mention_catch_syscall): Likewise.
565 (print_recreate_catch_syscall): Likewise.
566 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
567 and get_syscall_by_name to provide gdbarch.
568 (catch_syscall_completer): Adjust call to get_syscall_names to
570 * gdbarch.c: Regenerate.
571 * gdbarch.h: Likewise.
572 * gdbarch.sh: Forward declare "struct syscalls_info".
573 (xml_syscall_file): New variable.
574 (syscalls_info): Likewise.
575 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
576 set_xml_syscall_file_name to provide gdbarch.
577 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
578 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
579 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
580 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
581 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
582 * xml-syscall.c: Include gdbarch.h.
583 (set_xml_syscall_file_name): Accept gdbarch parameter.
584 (get_syscall_by_number): Likewise.
585 (get_syscall_by_name): Likewise.
586 (get_syscall_names): Likewise.
587 (my_gdb_datadir): Delete global variable.
588 (struct syscalls_info) <my_gdb_datadir>: New variable.
589 (struct syscalls_info) <sysinfo>: Rename variable to
591 (sysinfo): Delete global variable.
592 (have_initialized_sysinfo): Likewise.
593 (xml_syscall_file): Likewise.
594 (sysinfo_free_syscalls_desc): Rename to...
595 (syscalls_info_free_syscalls_desc): ... this.
596 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
597 code to the new layout of "struct syscalls_info".
598 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
600 (syscall_create_syscall_desc): Likewise.
601 (syscall_start_syscall): Likewise.
602 (syscall_parse_xml): Likewise.
603 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
604 (init_sysinfo): Rename to...
605 (init_syscalls_info): ...this. Add gdbarch as a parameter.
606 Adjust function to deal with gdbarch.
607 (xml_get_syscall_number): Delete parameter sysinfo. Accept
608 gdbarch as a parameter. Adjust code.
609 (xml_get_syscall_name): Likewise.
610 (xml_list_of_syscalls): Likewise.
611 (set_xml_syscall_file_name): Accept gdbarch as parameter.
612 (get_syscall_by_number): Likewise.
613 (get_syscall_by_name): Likewise.
614 (get_syscall_names): Likewise.
615 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
616 (get_syscall_by_number): Likewise.
617 (get_syscall_by_name): Likewise.
618 (get_syscall_names): Likewise.
620 2014-11-20 Doug Evans <xdje42@gmail.com>
622 Split struct symtab into two: struct symtab and compunit_symtab.
623 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
624 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
625 to "struct compunit_symtab *". All callers updated.
626 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
627 "struct symtab *" argument to "struct compunit_symtab *".
629 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
630 result to "struct compunit_symtab *". All callers updated.
631 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
632 Change result to "struct compunit_symtab *". All callers updated.
633 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
634 hange type to "struct compunit_symtab *". All uses updated.
635 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
636 Change type to "struct compunit_symtab *". All uses updated.
637 * buildsym.c (struct buildsym_compunit): New struct.
638 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
639 (buildsym_compunit): New static global.
640 (finish_block_internal): Update to fetch objfile from
642 (make_blockvector): Delete objfile argument.
643 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
644 debugformat, producer.
645 (start_buildsym_compunit): New function.
646 (free_buildsym_compunit): Renamed from free_subfiles_list.
648 (patch_subfile_names): Rewrite to use buildsym_compunit.
649 (get_compunit_symtab): New function.
650 (get_macro_table): Delete argument comp_dir. All callers updated.
651 (start_symtab): Change result to "struct compunit_symtab *".
652 All callers updated. Create the subfile of the main source file.
653 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
654 (reset_symtab_globals): Update.
655 (end_symtab_get_static_block): Update to use buildsym_compunit.
656 (end_symtab_without_blockvector): Rewrite.
657 (end_symtab_with_blockvector): Change result to
658 "struct compunit_symtab *". All callers updated.
659 Update to use buildsym_compunit. Don't set symtab->dirname,
660 instead set it in the compunit.
661 Explicitly make sure main symtab is first in its list.
662 Set debugformat, producer, blockvector, block_line_section, and
663 macrotable in the compunit.
664 (end_symtab_from_static_block): Change result to
665 "struct compunit_symtab *". All callers updated.
666 (end_symtab, end_expandable_symtab): Ditto.
667 (set_missing_symtab): Change symtab argument to
668 "struct compunit_symtab *". All callers updated.
669 (augment_type_symtab): Ditto.
670 (record_debugformat): Update to use buildsym_compunit.
671 (record_producer): Update to use buildsym_compunit.
672 * buildsym.h (struct subfile) <dirname>: Delete.
673 <producer, debugformat>: Delete.
674 <buildsym_compunit>: New member.
675 (get_compunit_symtab): Declare.
676 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
677 from primary_symtab. Change type to "struct compunit_symtab *".
679 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
681 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
682 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
683 symtab. Change type to "struct compunit_symtab *". All uses updated.
684 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
686 (dw2_find_last_source_symtab): Ditto.
687 (dw2_lookup_symbol): Ditto.
688 (recursively_find_pc_sect_compunit_symtab): Renamed from
689 recursively_find_pc_sect_symtab. Change result to
690 "struct compunit_symtab *". All callers updated.
691 (dw2_find_pc_sect_compunit_symtab): Renamed from
692 dw2_find_pc_sect_symtab. Change result to
693 "struct compunit_symtab *". All callers updated.
694 (get_compunit_symtab): Renamed from get_symtab. Change result to
695 "struct compunit_symtab *". All callers updated.
696 (recursively_compute_inclusions): Change type of immediate_parent
697 argument to "struct compunit_symtab *". All callers updated.
698 (compute_compunit_symtab_includes): Renamed from
699 compute_symtab_includes. All callers updated. Rewrite to compute
700 includes of compunit_symtabs and not symtabs.
701 (process_full_comp_unit): Update to work with struct compunit_symtab.
702 (process_full_type_unit): Ditto.
703 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
704 (dwarf_decode_lines): Remove special case handling of main subfile.
705 (macro_start_file): Delete argument comp_dir. All callers updated.
706 (dwarf_decode_macro_bytes): Ditto.
707 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
708 use struct compunit_symtab.
709 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
710 * jit.c (finalize_symtab): Build compunit_symtab.
711 * jv-lang.c (get_java_class_symtab): Change result to
712 "struct compunit_symtab *". All callers updated.
713 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
714 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
715 comp_dir. Change type to "struct compunit_symtab *".
717 (new_macro_table): Change comp_dir argument to cust,
718 "struct compunit_symtab *". All callers updated.
719 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
720 nr_primary_symtabs. All uses updated.
721 (count_symtabs_and_blocks): Update to handle compunits.
722 (report_command_stats): Update output, "primary symtabs" renamed to
724 * mdebugread.c (new_symtab): Change result to
725 "struct compunit_symtab *". All callers updated.
726 (parse_procedure): Change type of search_symtab argument to
727 "struct compunit_symtab *". All callers updated.
728 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
730 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
731 symtabs. Change type to "struct compunit_symtab *". All uses updated.
732 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
734 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
736 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
737 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
738 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
739 symtab. Change type to "struct compunit_symtab *". All uses updated.
740 * psymtab.c (psymtab_to_symtab): Change result type to
741 "struct compunit_symtab *". All callers updated.
742 (find_pc_sect_compunit_symtab_from_partial): Renamed from
743 find_pc_sect_symtab_from_partial. Change result type to
744 "struct compunit_symtab *". All callers updated.
745 (lookup_symbol_aux_psymtabs): Change result type to
746 "struct compunit_symtab *". All callers updated.
747 (find_last_source_symtab_from_partial): Ditto.
748 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
749 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
750 and macro_table from compunit.
751 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
752 type to "struct compunit_symtab *". All callers updated.
753 (debug_qf_lookup_symbol): Ditto.
754 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
755 debug_qf_find_pc_sect_symtab, change result type to
756 "struct compunit_symtab *". All callers updated.
757 * symfile.c (allocate_symtab): Delete objfile argument.
759 (allocate_compunit_symtab): New function.
760 (add_compunit_symtab_to_objfile): New function.
761 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
762 Change result type to "struct compunit_symtab *". All uses updated.
763 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
764 Change result type to "struct compunit_symtab *". All uses updated.
765 * symmisc.c (print_objfile_statistics): Compute blockvector count in
767 (dump_symtab_1): Update test for primary source symtab.
768 (maintenance_info_symtabs): Update to handle compunit symtabs.
769 (maintenance_check_symtabs): Ditto.
770 * symtab.c (set_primary_symtab): Delete.
771 (compunit_primary_filetab): New function.
772 (compunit_language): New function.
773 (iterate_over_some_symtabs): Change type of arguments "first",
774 "after_last" to "struct compunit_symtab *". All callers updated.
775 Update to loop over symtabs in each compunit.
776 (error_in_psymtab_expansion): Rename symtab argument to cust,
777 and change type to "struct compunit_symtab *". All callers updated.
778 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
779 Change result type to "struct compunit_symtab *". All callers updated.
780 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
781 Change result type to "struct compunit_symtab *". All callers updated.
782 (find_pc_sect_line): Only loop over symtabs within selected compunit
783 instead of all symtabs in the objfile.
784 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
785 <compunit_symtab> New member.
786 <block_line_section>: Moved to compunit_symtab.
787 <locations_valid>: Ditto.
788 <epilogue_unwind_valid>: Ditto.
789 <macro_table>: Ditto.
791 <debugformat>: Ditto.
794 <call_site_htab>: Ditto.
798 (SYMTAB_COMPUNIT): New macro.
799 (SYMTAB_BLOCKVECTOR): Update definition.
800 (SYMTAB_OBJFILE): Update definition.
801 (SYMTAB_DIRNAME): Update definition.
802 (struct compunit_symtab): New type. Common members among all source
803 symtabs within a compilation unit moved here. All uses updated.
804 (COMPUNIT_OBJFILE): New macro.
805 (COMPUNIT_FILETABS): New macro.
806 (COMPUNIT_DEBUGFORMAT): New macro.
807 (COMPUNIT_PRODUCER): New macro.
808 (COMPUNIT_DIRNAME): New macro.
809 (COMPUNIT_BLOCKVECTOR): New macro.
810 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
811 (COMPUNIT_LOCATIONS_VALID): New macro.
812 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
813 (COMPUNIT_CALL_SITE_HTAB): New macro.
814 (COMPUNIT_MACRO_TABLE): New macro.
815 (ALL_COMPUNIT_FILETABS): New macro.
816 (compunit_symtab_ptr): New typedef.
817 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
819 2014-11-20 Joel Brobecker <brobecker@adacore.com>
821 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
822 if the TYPE_CODE of range_type's base type does not match
823 the TYPE_CODE of encoding_type's base type.
825 2014-11-19 Joel Brobecker <brobecker@adacore.com>
827 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
830 2014-11-19 Joel Brobecker <brobecker@adacore.com>
832 * ada-lang.c (ada_is_redundant_range_encoding): New function.
833 (ada_is_redundant_index_type_desc): New function.
834 (to_fixed_array_type): Ignore parallel XA type if redundant.
836 2014-11-19 Joel Brobecker <brobecker@adacore.com>
838 * ada-lang.c (constrained_packed_array_type): Set the length
839 of the return array as if both bounds where zero if that
840 returned array's index type is dynamic.
842 2014-11-19 Yao Qi <yao@codesourcery.com>
844 * config/i386/go32.mh (CC): Remove.
846 2014-11-18 Doug Evans <xdje42@gmail.com>
848 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
851 2014-11-18 Doug Evans <xdje42@gmail.com>
853 * buildsym.c (buildsym_objfile): New static global.
854 (buildsym_comp_dir): New static global.
855 (finish_block_internal): Delete arg objfile. All callers updated.
856 (finish_block): Delete arg objfile. All callers updated.
857 (start_subfile): Delete arg dirname. All callers updated.
858 (patch_subfile_names): Update buildsym_comp_dir.
859 (get_macro_table): Delete arg objfile. All callers updated.
860 (start_symtab): New arg objfile. All callers updated.
861 Rename arg dirname to comp_dir.
862 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
863 (end_symtab_get_static_block): Delete arg objfile. All callers
865 (end_symtab_without_blockvector): Ditto.
866 (end_symtab_with_blockvector): Ditto.
867 (end_symtab_from_static_block): Ditto.
869 (end_expandable_symtab): Ditto.
870 (augment_type_symtab): Ditto.
871 * coffread.c (coff_start_symtab): New arg objfile. All callers
874 2014-11-18 Doug Evans <xdje42@gmail.com>
876 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
879 2014-11-18 Doug Evans <xdje42@gmail.com>
881 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
882 symtab.dirname updated to use it.
884 2014-11-18 Doug Evans <xdje42@gmail.com>
886 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
887 symtab.objfile updated to use it.
889 2014-11-18 Doug Evans <xdje42@gmail.com>
891 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
893 2014-11-18 Doug Evans <xdje42@gmail.com>
895 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
897 * findvar.c (default_read_var_value): Ditto.
898 * jv-lang.c (add_class_symtab_symbol): Ditto.
899 * parse.c (operator_check_standard): Ditto.
900 * printcmd.c (address_info): Ditto.
901 * symtab.c (fixup_symbol_section): Ditto.
902 (skip_prologue_sal): Ditto.
903 * tracepoint.c (scope_info): Ditto.
904 * valops.c (find_function_in_inferior): Ditto.
905 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
906 * python/py-symbol.c (set_symbol): Ditto.
908 2014-11-18 Doug Evans <xdje42@gmail.com>
910 * buildsym.c (main_subfile): New static global.
911 (free_subfiles_list): New function.
912 (start_symtab): Set main_subfile.
913 (restart_symtab): Replace init of subfiles, current_subfile with
914 call to free_subfiles_list.
915 (watch_main_source_file_lossage): Use main_subfile.
916 (reset_symtab_globals): Replace init of current_subfile with call
917 to free_subfiles_list.
918 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
919 functions, split out from ...
920 (end_symtab_from_static_block): ... here. Rewrite to call them.
922 2014-11-18 Doug Evans <xdje42@gmail.com>
924 The result of symtab expansion is always a primary symtab.
925 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
926 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
927 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
928 (psymtab_to_symtab): Add comment and assert.
929 (map_matching_symbols_psymtab): Remove unnecessary test for
932 2014-11-15 Doug Evans <xdje42@gmail.com>
935 * symtab.c (find_pc_line_symtab): New function.
936 * symtab.h (find_pc_line_symtab): Declare.
937 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
939 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
940 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
941 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
942 * tui/tui-win.c (make_visible_with_new_height): Ditto.
943 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
944 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
946 2014-11-15 Doug Evans <xdje42@gmail.com>
948 * symtab.c (expand_symtab_containing_pc): Renamed from
949 find_pc_sect_symtab_via_partial. All callers updated.
951 2014-11-15 Yao Qi <yao@codesourcery.com>
953 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
955 2014-11-14 Joel Brobecker <brobecker@adacore.com>
957 * common/common-defs.h: Move <stdarg.h> #include ahead of
960 2014-11-14 Pedro Alves <palves@redhat.com>
962 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
963 [!PHONY_ICONV] (gdb_iconv): New function.
964 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
966 2014-11-13 Doug Evans <dje@google.com>
969 * dwarf2read.c (find_slot_in_mapped_hash): Handle
970 "(anonymous namespace)".
972 2014-11-13 Doug Evans <dje@google.com>
974 * dwarf2read.c (update_enumeration_type_from_children): Avoid
977 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
979 * NEWS (maint set target-async): Fix typo.
981 2014-11-12 Pedro Alves <palves@redhat.com>
983 * infrun.c (enum infwait_states, infwait_state): Delete.
985 2014-11-12 Pedro Alves <palves@redhat.com>
987 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
988 Rewrite stepping over a permanent breakpoint.
989 (thread_still_needs_step_over, proceed): Don't set
990 stepping_over_breakpoint for permanent breakpoints.
991 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
992 single-step breakpoints out of the target on hardware step
994 (process_event_stop_test): If stepping a permanent breakpoint
995 doesn't hit the step-resume breakpoint, delete the step-resume
997 (switch_back_to_stepped_thread): Also check if the stepped thread
998 has advanced already on hardware step targets.
999 (currently_stepping): Return true if the thread stepped a
1002 2014-11-12 Pedro Alves <palves@redhat.com>
1004 Mark locations as permanent, not the whole breakpoint.
1005 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1006 (mark_breakpoints_out): Don't mark permanent breakpoints as
1008 (breakpoint_init_inferior): Use mark_breakpoints_out.
1009 (breakpoint_here_p): Adjust.
1010 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1011 of permanent breakpoints.
1012 (make_breakpoint_permanent): Mark each location as permanent,
1013 instead of marking the breakpoint.
1014 (add_location_to_breakpoint): If the location is permanent, mark
1015 it as such, and as inserted.
1016 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1017 (bp_location_compare, update_global_location_list): Adjust.
1018 (update_breakpoint_locations): Don't make the breakpoint permanent
1020 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1022 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1023 (struct bp_location) <permanent>: New field.
1024 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1025 reference to bp_permanent.
1027 2014-11-12 Pedro Alves <palves@redhat.com>
1029 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1030 * arch-utils.h (default_skip_permanent_breakpoint): New
1032 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1033 Install default_skip_permanent_breakpoint as default method.
1034 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1035 (i386_gdbarch_init): Don't install it.
1036 * infrun.c (resume): Assume there's always a
1037 gdbarch_skip_permanent_breakpoint implementation.
1038 * gdbarch.h, gdbarch.c: Regenerate.
1040 2014-11-11 Daniel Colascione <dancol@dancol.org>
1042 Warn about cross-PID-namespace debugging.
1043 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1044 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1045 * linux-thread-db.c (check_pid_namespace_match): New function.
1046 (thread_db_inferior_created): Call it.
1048 2014-11-10 Doug Evans <xdje42@gmail.com>
1050 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1051 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1053 2014-11-10 Doug Evans <xdje42@gmail.com>
1055 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1057 2014-11-10 Doug Evans <xdje42@gmail.com>
1060 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1061 (lookup_static_symbol): Move definition to new location and rewrite.
1062 (lookup_symbol_in_objfile): New function.
1063 (lookup_symbol_global_iterator_cb): Call it.
1065 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1067 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1069 2014-11-07 Pedro Alves <palves@redhat.com>
1071 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1072 check if we did a "nexti" inside a prologue.
1073 * symtab.c (in_prologue): Delete function.
1074 * symtab.h (in_prologue): Delete declaration.
1076 2014-11-06 Doug Evans <xdje42@gmail.com>
1078 * symtab.h (lookup_global_symbol): Improve function comment.
1080 2014-11-06 Doug Evans <xdje42@gmail.com>
1082 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1083 All callers updated.
1084 * symtab.h (lookup_global_symbol): Update decl.
1085 (lookup_static_symbol): Move decl to better location.
1087 2014-11-06 Doug Evans <xdje42@gmail.com>
1089 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1091 2014-11-06 Doug Evans <xdje42@gmail.com>
1093 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1094 All callers updated.
1095 (lookup_symbol_in_all_objfiles): Renamed from
1096 lookup_symbol_aux_symtabs. All callers updated.
1097 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1098 All callers updated.
1099 (lookup_symbol_in_objfile_symtabs): Renamed from
1100 lookup_symbol_aux_objfile. All callers updated.
1102 2014-11-06 Doug Evans <xdje42@gmail.com>
1104 * symtab.c (lookup_symbol_in_block): Renamed from
1105 lookup_symbol_aux_block. All callers updated.
1107 2014-11-06 Doug Evans <xdje42@gmail.com>
1109 * symtab.c (lookup_static_symbol): Renamed from
1110 lookup_static_symbol_aux. All callers updated.
1111 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1112 All callers updated.
1114 2014-11-06 Doug Evans <xdje42@gmail.com>
1116 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1117 * block.c (block_lookup_symbol): Use it.
1118 * cp-support.c (make_symbol_overload_list_block): Use it.
1119 * symtab.c (iterate_over_symbols): Use it.
1121 2014-11-06 Doug Evans <xdje42@gmail.com>
1123 * symtab.c (lookup_block_symbol): Moved to ...
1124 * block.c (block_lookup_symbol): ... here and renamed.
1125 All callers updated.
1126 * block.h (block_lookup_symbol): Declare.
1127 * symtab.h (lookup_block_symbol): Delete.
1129 2014-11-06 Doug Evans <xdje42@gmail.com>
1131 * ada-lang.c (ada_make_symbol_completion_list): Use
1132 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1133 * symtab.c (lookup_objfile_from_block): Ditto.
1135 2014-11-06 Doug Evans <xdje42@gmail.com>
1137 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1140 2014-11-06 Doug Evans <xdje42@gmail.com>
1142 * objfiles.c (get_objfile_arch): Constify.
1143 * objfiles.h (get_objfile_arch): Update prototype.
1144 * solib.c (solib_global_lookup): Fetch arch from objfile,
1147 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1149 * nios2-tdep.c (wild_insn): Delete.
1150 (profiler_insn, irqentry_insn): Delete.
1151 (nios2_match_sequence): Delete.
1152 (nios2_analyze_prologue): Update comments. Remove matching
1153 of obsolete profiler_insn and irqentry_insn sequences.
1155 2014-11-05 Alan Modra <amodra@gmail.com>
1157 * charset.c (convert_between_encodings): Shrink obstack using
1159 * minsyms.c (install_minimal_symbols): Likewise.
1160 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1161 to char* before doing pointer arithmetic.
1163 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1165 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1167 2014-11-04 Pedro Alves <palves@redhat.com>
1169 * breakpoint.c (breakpoint_thread_match): Delete function.
1170 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1172 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1175 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1176 the method args also under EVAL_SKIP when evaluating method
1177 calls under EVAL_SKIP.
1179 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1181 * dwarf2loc.c (read_pieced_value): Do big endian
1182 processing only if gdb_regnum is not -1.
1183 (write_pieced_value): Ditto.
1185 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1187 * arm-linux-tdep.c (arm_linux_init_abi): Use
1188 info.byte_order_for_code to choose endianity of breakpoint
1189 instructions snippets.
1191 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1193 * arm-tdep.c (extract_arm_insn): Use
1194 gdbarch_byte_order_for_code to read arm instruction.
1196 2014-11-02 Doug Evans <xdje42@gmail.com>
1198 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1200 2014-11-02 Doug Evans <xdje42@gmail.com>
1202 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1203 main_subfile before returning.
1205 2014-10-31 Doug Evans <xdje42@gmail.com>
1207 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1208 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1210 2014-10-31 Doug Evans <xdje42@gmail.com>
1212 * valops.c (value_cast_pointers): Fix whitespace.
1213 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1216 2014-10-30 Doug Evans <dje@google.com>
1218 * NEWS: Mention ability add attributes to gdb.Objfile and
1219 gdb.Progspace objects.
1220 * python/py-objfile.c (objfile_object): New member dict.
1221 (objfpy_dealloc): Py_XDECREF dict.
1222 (objfpy_initialize): Initialize dict.
1223 (objfile_getset): Add __dict__.
1224 (objfile_object_type): Set tp_dictoffset member.
1225 * python/py-progspace.c (progspace_object): New member dict.
1226 (pspy_dealloc): Py_XDECREF dict.
1227 (pspy_initialize): Initialize dict.
1228 (pspace_getset): Add __dict__.
1229 (pspace_object_type): Set tp_dictoffset member.
1231 2014-10-30 Yao Qi <yao@codesourcery.com>
1233 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1234 replace '\\' with '\\\\'.
1236 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1240 2014-10-29 Pedro Alves <palves@redhat.com>
1243 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1244 instead of assuming a thread with a stepping range is always
1247 2014-10-29 Pedro Alves <palves@redhat.com>
1250 * event-top.c (change_line_handler): Call
1251 gdb_rl_callback_handler_remove instead of
1252 rl_callback_handler_remove.
1253 (callback_handler_installed): New global.
1254 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1255 (gdb_rl_callback_handler_reinstall): New functions.
1256 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1257 gdb_rl_callback_handler_install instead of
1258 rl_callback_handler_remove and rl_callback_handler_install.
1259 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1260 instead of rl_callback_handler_remove.
1261 * event-top.h (gdb_rl_callback_handler_remove)
1262 (gdb_rl_callback_handler_install)
1263 (gdb_rl_callback_handler_reinstall): New declarations.
1264 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1266 (fetch_inferior_event): Install it.
1267 * top.c (gdb_readline_wrapper_line) Call
1268 gdb_rl_callback_handler_remove instead of
1269 rl_callback_handler_remove.
1270 (gdb_readline_wrapper_cleanup): Don't call
1271 rl_callback_handler_install.
1273 2014-10-29 Pedro Alves <palves@redhat.com>
1275 * event-top.c (command_line_handler): Clear the first byte of
1276 linebuffer, when it is first allocated.
1278 2014-10-29 Pedro Alves <palves@redhat.com>
1280 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1283 2014-10-29 Pedro Alves <palves@redhat.com>
1287 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1288 (tui_allowed_p): Delete function.
1289 * tui/tui.c: Include "interps.h".
1290 (tui_enable): Don't use tui_allowed_p. Error out here with
1291 detailed error messages if the TUI is the top level interpreter,
1292 or if output is not a terminal. Use newterm instead of initscr,
1293 and error out if initializing the terminal fails. Also error out if
1294 the terminal doesn't support cursor addressing.
1295 * tui/tui.h (tui_allowed_p): Delete declaration.
1297 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1299 * arm-tdep.c (arm_skip_stack_protector): Return early if
1300 address loaded by first "ldr" instruction does not have
1301 a corresponding minimal symbol. Update comment.
1303 2014-10-29 Yao Qi <yao@codesourcery.com>
1305 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1306 loaded address correctly of ldr instruction.
1308 2014-10-28 Pedro Alves <palves@redhat.com>
1311 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1313 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1314 thread's stepped_breakpoint field. Skip if reverse debugging.
1316 (init_thread_stepping_state, handle_signal_stop): Clear the
1317 thread's stepped_breakpoint field.
1319 2014-10-27 Pedro Alves <palves@redhat.com>
1321 * remote.c (remote_thread_alive): New, factored out from ...
1322 (remote_thread_alive): ... this.
1323 (remote_update_thread_list): Bail out before deleting threads if
1324 the target returned an empty list, and, the current thread has a
1327 2014-10-27 Pedro Alves <palves@redhat.com>
1329 * infrun.c (handle_signal_stop): Also skip handlers when a random
1330 signal arrives while handling a "stepi" or a "nexti". Set the
1331 thread's 'step_after_step_resume_breakpoint' flag.
1333 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1335 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1336 (arm_record_ld_st_imm_offset): Reimplement to cover all
1337 load/store cases for ARM opcode 010.
1338 (arm_record_ld_st_multiple): Reimplement to cover all
1339 load/store cases for ARM opcode 100.
1341 2014-10-26 Doug Evans <xdje42@gmail.com>
1343 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1345 2014-10-26 Doug Evans <xdje42@gmail.com>
1347 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1348 parameter "kind" to "block_index".
1349 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1351 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1353 2014-10-26 Doug Evans <xdje42@gmail.com>
1355 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1357 2014-10-26 Doug Evans <xdje42@gmail.com>
1359 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1362 2014-10-26 Doug Evans <xdje42@gmail.com>
1364 * parser-defs.h (block_found): Move decl from here ...
1365 * symtab.h (block_found): ... to here.
1367 2014-10-26 Doug Evans <xdje42@gmail.com>
1369 * symtab.h (struct field_of_this_result): Fix typo in comment.
1370 (lookup_symbol_in_language): Move function comment here.
1371 (lookup_symbol): Improve function comment.
1372 (basic_lookup_symbol_nonlocal): Ditto.
1373 (lookup_symbol_static, lookup_symbol_global): Ditto.
1374 (lookup_symbol_aux_block): Ditto.
1375 (lookup_language_this): Add function comment.
1376 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1378 (lookup_block_symbol): Improve function comment.
1379 (lookup_struct): Fix capitalization in function comment.
1380 (lookup_transparent_type): Add function comment.
1381 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1382 Improve function comment.
1383 (lookup_objfile_from_block): Add function comment.
1384 * symtab.c (lookup_symbol_in_language): Update function comment.
1385 (lookup_symbol, lookup_language_this): Ditto.
1386 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1387 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1388 (basic_lookup_symbol_nonlocal): Ditto.
1389 (lookup_symbol_static, lookup_symbol_global): Ditto.
1390 (lookup_transparent_type, lookup_block_symbol): Ditto.
1392 2014-10-25 Doug Evans <xdje42@gmail.com>
1394 * symtab.c (types_info): Delete forward decl.
1395 (functions_info, variables_info, sources_info): Ditto.
1396 (_initialize_symtab): Rewrite forward decl to use
1397 initialize_file_ftype.
1399 2014-10-25 Doug Evans <xdje42@gmail.com>
1401 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1403 2014-10-25 Doug Evans <xdje42@gmail.com>
1405 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1406 of local var child_die.
1408 2014-10-24 Don Breazeal <donb@codesourcery.com>
1410 * infrun.c (follow_fork_inferior): Update fork message printing
1411 to use target_terminal_ours_for_output instead of
1412 target_terminal_ours, to use _() for all format strings, to print
1413 "vfork" instead of "fork" for vforks, and to add a detach message.
1414 (handle_vfork_child_exec_or_exit): Update message printing to use
1415 target_terminal_ours_for_output instead of target_terminal_ours, to
1416 use _() for all format strings, and to fix some formatting.
1418 2014-10-24 Pedro Alves <palves@redhat.com>
1420 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1421 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1422 * config/vax/vax.mh: Delete.
1423 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1424 obsolete configurations section.
1425 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1426 * vax-nat.c: Delete file.
1428 2014-10-24 Pedro Alves <palves@redhat.com>
1430 * NEWS (Removed targets): Add OS/arch column.
1432 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1434 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1435 on the arg type of a constructor only if it is of reference type.
1437 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1439 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1440 accessors and constants from nios2 opcodes update.
1441 (nios2_get_next_pc): Likewise.
1443 2014-10-19 Doug Evans <xdje42@gmail.com>
1445 * gdbthread.h (set_running): Fix comment.
1446 (set_executing, finish_thread_state): Fix comment.
1448 2014-10-18 Doug Evans <xdje42@gmail.com>
1450 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1452 2014-10-17 Doug Evans <dje@google.com>
1454 * NEWS: Mention new event gdb.clear_objfiles.
1455 * python/py-event.h (emit_clear_objfiles_event): Clear
1456 * python/py-events.h (events_object): New member clear_objfiles.
1457 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1459 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1460 emit clear_objfiles event.
1461 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1463 (emit_clear_objfiles_event): New function.
1464 (clear_objfiles): New event.
1465 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1467 * python/python.c (_initialize_python): Call
1468 gdbpy_initialize_clear_objfiles_event.
1470 2014-10-17 Doug Evans <dje@google.com>
1472 * NEWS: Mention new gdb.Objfile.progspace attribute.
1473 * python/py-objfile.c (objfpy_get_progspace): New function.
1474 (objfile_getset): New entry for "progspace".
1476 2014-10-17 Pedro Alves <palves@redhat.com>
1479 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1480 returns a copy of the input.
1481 (run_command_1, continue_command, step_1, jump_command)
1482 (signal_command, until_command, advance_command, finish_command)
1483 (attach_command): Adjust and install a cleanup to free the
1486 2014-10-17 Pedro Alves <palves@redhat.com>
1489 * infcmd.c (continue_1): If continuing all threads in the
1490 foreground, make sure the inferior's terminal settings are put in
1493 2014-10-17 Pedro Alves <palves@redhat.com>
1496 * annotate.c (annotate_breakpoints_invalid): Use
1497 target_terminal_our_for_output instead of target_terminal_ours.
1498 Give back the terminal to the target.
1499 (annotate_frames_invalid): Likewise.
1501 2014-10-17 Pedro Alves <palves@redhat.com>
1503 * target.c (enum terminal_state): New enum.
1504 (terminal_state): New global.
1505 (target_terminal_init): New function.
1506 (target_terminal_inferior): Skip if inferior already owns the
1508 (target_terminal_ours, target_terminal_ours_for_output): New
1510 * target.h (target_terminal_init): Convert to function prototype.
1511 (target_terminal_ours_for_output): Convert to function prototype
1513 (target_terminal_ours): Convert to function prototype and tweak
1515 * windows-nat.c (do_initial_windows_stuff): Call
1516 target_terminal_init instead of child_terminal_init_with_pgrp.
1518 2014-10-17 Pedro Alves <palves@redhat.com>
1520 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1521 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1522 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1524 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1525 * ada-lang.h [__alpha__ && __osf__]
1526 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1527 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1528 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1530 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1532 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1533 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1534 * configure: Regenerate.
1535 * configure.ac: Remove references to osf.
1536 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1537 section. Remove all other references to osf.
1538 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1539 Remove all other references to osf.
1540 * dec-thread.c: Delete file.
1541 * defs.h (GDB_OSABI_OSF1): Delete.
1542 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1544 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1545 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1547 (unconditionally_kill_inferior)
1548 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1549 * solib-osf.c: Delete file.
1551 2014-10-17 Pedro Alves <palves@redhat.com>
1553 * remote.c (clear_threads_listing_context): Move higher up, out of
1554 the HAVE_LIBEXPAT guard.
1556 2014-10-16 Tristan Gingold <gingold@adacore.com>
1558 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1559 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1562 2014-10-15 Pedro Alves <palves@redhat.com>
1564 * dec-thread.c (dec_thread_count_gdb_threads)
1565 (dec_thread_add_gdb_thread): Delete.
1566 (dec_thread_update_thread_list): Delete.
1567 (dec_thread_find_new_threads): Rename to ...
1568 (dec_thread_update_thread_list): ... this. Delete GDB-size
1569 threads that are no longer found in dec_thread_list.
1570 (resync_thread_list): Delete.
1571 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1574 2014-10-15 Pedro Alves <palves@redhat.com>
1576 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1577 * remote.c (remote_update_thread_list): Skip calling prune_threads
1578 if any thread listing method is supported, and instead walk over
1579 the set of remote threads listed, deleting those that are not
1580 found in GDB's thread list.
1582 2014-10-15 Pedro Alves <palves@redhat.com>
1584 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1585 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1586 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1587 (bsd_uthread_target): Adjust.
1588 * corelow.c (core_open): Adjust.
1589 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1590 (dec_thread_update_thread_list): New function.
1591 (init_dec_thread_ops): Adjust.
1592 * gdbthread.h (prune_threads): New declaration.
1593 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1594 (thread_db_update_thread_list): ... this. Call prune_threads.
1595 (init_thread_db_ops): Adjust.
1596 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1597 (procfs_update_thread_list): ... this. Call prune_threads.
1598 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1600 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1601 (obsd_update_thread_list): ... this. Call prune_threads.
1602 (obsd_add_target): Adjust.
1603 * procfs.c (procfs_target): Adjust.
1604 (procfs_notice_thread): Update comment.
1605 (procfs_find_new_threads): Rename to ...
1606 (procfs_update_thread_list): ... this. Call prune_threads.
1607 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1609 (ravenscar_wait): Adjust.
1610 (ravenscar_find_new_threads): Rename to ...
1611 (ravenscar_update_thread_list): ... this. Call prune_threads.
1612 (init_ravenscar_thread_ops): Adjust.
1613 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1614 (record_btrace_update_thread_list): ... this. Adjust comment.
1615 (init_record_btrace_ops): Adjust.
1616 * remote.c (remote_threads_info): Rename to ...
1617 (remote_update_thread_list): ... this. Call prune_threads.
1618 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1620 * sol-thread.c (check_for_thread_db): Adjust.
1621 (sol_find_new_threads_callback): Rename to ...
1622 (sol_update_thread_list_callback): ... this.
1623 (sol_find_new_threads): Rename to ...
1624 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1625 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1626 * target-delegates.c: Regenerate.
1627 * target.c (target_find_new_threads): Rename to ...
1628 (target_update_thread_list): ... this.
1629 * target.h (struct target_ops): Rename to_find_new_threads field
1630 to to_update_thread_list.
1631 (target_find_new_threads): Rename to ...
1632 (target_update_thread_list): ... this.
1633 * thread.c (prune_threads): Make extern.
1634 (update_thread_list): Adjust.
1636 2014-10-15 Pedro Alves <palves@redhat.com>
1638 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1639 Add describing comment. Return -1 if the qL packet is not
1641 (struct thread_item, thread_item_t): Move higher up in
1642 the file. Add comments.
1643 (struct threads_parsing_context): Move higher up in
1644 the file, add comments, and remote to ...
1645 (struct threads_listing_context): ... this.
1646 (remote_newthread_step): Don't add the thread to GDB's thread
1647 database here. Instead push it to the thread_listing_context
1649 (remote_find_new_threads): Rename to ...
1650 (remote_get_threads_with_ql): ... this. Add target_ops and
1651 targets_listing_context parameters. Pass down context.
1652 (start_thread): Adjust.
1653 (clear_threads_parsing_context): Rename to ...
1654 (clear_threads_listing_context): ... this.
1655 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1656 remote_threads_info.
1657 (remote_get_threads_with_qthreadinfo): Ditto.
1658 (remote_threads_info): Reimplement.
1660 2014-10-15 Pedro Alves <palves@redhat.com>
1662 * infrun.c (resume): Don't force displaced-stepping for all
1663 single-steps on software single-stepping archs.
1665 2014-10-15 Pedro Alves <palves@redhat.com>
1667 * breakpoint.c (single_step_breakpoints): Delete global.
1668 (insert_single_step_breakpoint): Adjust to store the breakpoint
1669 pointer in the current thread.
1670 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1671 (cancel_single_step_breakpoints): Delete functions.
1672 (breakpoint_has_location_inserted_here): Make extern.
1673 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1675 * breakpoint.h (breakpoint_has_location_inserted_here): New
1677 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1678 (cancel_single_step_breakpoints): Remove declarations.
1679 * gdbthread.h (struct thread_control_state)
1680 <single_step_breakpoints>: New field.
1681 (delete_single_step_breakpoints)
1682 (thread_has_single_step_breakpoints_set)
1683 (thread_has_single_step_breakpoint_here): New declarations.
1684 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1685 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1686 (singlestep_pc): Delete globals.
1687 (infrun_thread_ptid_changed): Remove references to removed
1689 (resume_cleanups): Delete the current thread's single-step
1691 (maybe_software_singlestep): Remove references to removed globals.
1692 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1693 delete_single_step_breakpoints.
1694 (init_wait_for_inferior): Remove references to removed globals.
1695 (delete_thread_infrun_breakpoints): Delete the thread's
1696 single-step breakpoints too.
1697 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1698 single-step breakpoints here.
1699 (delete_stopped_threads_single_step_breakpoints): New function.
1700 (adjust_pc_after_break): Adjust to use
1701 thread_has_single_step_breakpoints_set.
1702 (handle_inferior_event): Remove references to removed globals.
1703 Use delete_stopped_threads_single_step_breakpoints.
1704 (handle_signal_stop): Adjust to per-thread single-step
1705 breakpoints. Swap test order to do cheaper tests first.
1706 (switch_back_to_stepped_thread): Extend debug output. Remove
1707 references to removed globals.
1708 * record-full.c (record_full_wait_1): Adjust to per-thread
1709 single-step breakpoints.
1710 * thread.c (delete_single_step_breakpoints)
1711 (thread_has_single_step_breakpoints_set)
1712 (thread_has_single_step_breakpoint_here): New functions.
1713 (clear_thread_inferior_resources): Also delete the thread's
1714 single-step breakpoints.
1716 2014-10-15 Pedro Alves <palves@redhat.com>
1718 * thread.c (delete_thread_breakpoint): New function.
1719 (delete_step_resume_breakpoint)
1720 (delete_exception_resume_breakpoint): Use it.
1721 (delete_at_next_stop): New function.
1722 (clear_thread_inferior_resources): Use delete_at_next_stop.
1724 2014-10-15 Pedro Alves <palves@redhat.com>
1726 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1727 (breakpoint_inserted_here_p): ... here. Remove special case for
1728 software single-step breakpoints.
1729 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1730 (software_breakpoint_inserted_here_p): ... here. Remove special
1731 case for software single-step breakpoints.
1732 (bp_target_info_copy_insertion_state)
1733 (deprecated_insert_raw_breakpoint)
1734 (deprecated_remove_raw_breakpoint): Delete functions.
1735 * breakpoint.h (deprecated_insert_raw_breakpoint)
1736 (deprecated_remove_raw_breakpoint): Remove declarations.
1738 2014-10-15 Pedro Alves <palves@redhat.com>
1741 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1742 Delete array globals.
1743 (single_step_breakpoints): New global.
1744 (breakpoint_xfer_memory): Remove special handling for single-step
1746 (update_breakpoints_after_exec): Delete bp_single_step
1748 (detach_breakpoints): Remove special handling for single-step
1750 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1751 (bpstat_stop_status): Add comment.
1752 (bpstat_what, bptype_string, print_one_breakpoint_location)
1753 (adjust_breakpoint_address, init_bp_location): Handle
1755 (new_single_step_breakpoint): New function.
1756 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1757 handling for single-step breakpoints.
1758 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1759 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1761 (detach_single_step_breakpoints, find_single_step_breakpoint):
1763 (breakpoint_has_location_inserted_here): New function.
1764 (single_step_breakpoint_inserted_here_p): Rewrite.
1765 * breakpoint.h: Remove FIXME.
1766 (enum bptype) <bp_single_step>: New enum value.
1767 (insert_single_step_breakpoint): Update comment.
1768 * infrun.c (resume_cleanups)
1769 (delete_step_thread_step_resume_breakpoint): Remove single-step
1771 (fetch_inferior_event): Install a cleanup that removes infrun
1773 (switch_back_to_stepped_thread) <expect thread advanced also>:
1774 Clear step-over info.
1776 2014-10-15 Pedro Alves <palves@redhat.com>
1778 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1779 (delete_thread_infrun_breakpoints): New function, with parts
1780 salvaged from delete_step_resume_breakpoint_callback.
1781 (delete_step_thread_step_resume_breakpoint): Delete.
1782 (for_each_just_stopped_thread_callback_func): New typedef.
1783 (for_each_just_stopped_thread): New function.
1784 (delete_just_stopped_threads_infrun_breakpoints): New function.
1785 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1786 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1788 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1790 2014-10-15 Pedro Alves <palves@redhat.com>
1792 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1793 trying to step past a non-steppable watchpoint.
1794 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1796 * infrun.c (struct step_over_info): Add new field
1797 'nonsteppable_watchpoint_p' and adjust comments.
1798 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1800 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1801 (stepping_past_nonsteppable_watchpoint): New function.
1802 (step_over_info_valid_p): Also return true if stepping past a
1803 nonsteppable watchpoint.
1804 (proceed): Adjust call to set_step_over_info. Remove reference to
1806 (init_wait_for_inferior): Remove reference to init_infwait_state.
1807 (waiton_ptid): Delete global.
1808 (struct execution_control_state)
1809 <stepped_after_stopped_by_watchpoint>: Delete field.
1810 (wait_for_inferior, fetch_inferior_event): Always pass
1811 minus_one_ptid to target_wait.
1812 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1814 (init_infwait_state): Delete function.
1815 (handle_inferior_event): Remove infwait_state handling.
1816 (handle_signal_stop) <watchpoints handling>: Adjust after
1817 stepped_after_stopped_by_watchpoint removal. Don't remove
1818 breakpoints here nor set infwait_state. Set the thread's
1819 stepping_over_watchpoint flag, and call keep_going instead.
1820 (keep_going): Handle stepping_over_watchpoint. Adjust
1821 set_step_over_info calls.
1822 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1825 2014-10-15 Pedro Alves <palves@redhat.com>
1827 * infrun.c (step_over_info_valid_p): New function.
1828 (resume): Use step_over_info_valid_p instead of checking the
1829 threads's trap_expected flag.
1831 2014-10-15 Doug Evans <dje@google.com>
1832 Walfred Tedeschi <walfred.tedeschi@intel.com>
1835 * python/lib/gdb/__init__.py (packages): Add "printer".
1836 * python/lib/gdb/command/bound_registers.py: Moved to ...
1837 * python/lib/gdb/printer/bound_registers.py: ... here.
1838 Add printer to global set of builtin printers. Rename printer from
1839 "bound" to "mpx_bound128".
1840 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1841 registered as global "builtin" printer.
1842 (add_builtin_pretty_printer): New function.
1843 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1844 gdb/printer/__init__.py.
1846 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1848 * Makefile.in (SFILES): Remove d-support.c.
1849 (COMMON_OBS): Remove d-support.o.
1850 * d-lang.h (d_parse_symbol): Remove declaration.
1851 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1852 * d-support.c: Remove file.
1854 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1856 * gdb/infrun.c (process_event_stop_test): Apply
1857 gdbarch_addr_bits_remove to longjmp resume address.
1859 2014-10-15 Pedro Alves <palves@redhat.com>
1861 * regformats/microblaze.dat: Delete file.
1863 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1865 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1866 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1868 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1870 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1873 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1877 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1878 with qualified args.
1880 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1882 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1883 of the case where the second operand is a pointer.
1884 <BINOP_SUB>: Likewise.
1886 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1888 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1889 only if it is not NULL.
1890 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1891 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1892 (struct probe_ops) <clear_semaphore>: Likewise.
1893 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1895 (stop_tracing): Likewise, for clear_semaphore.
1897 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1899 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1900 using language_c, instead of current_language.
1902 2014-10-13 Doug Evans <dje@google.com>
1904 * python/py-objfile.c (objfpy_initialize): New function.
1905 (objfpy_new, objfile_to_objfile_object): Call it.
1906 * python/py-progspace.c (pspy_initialize): New function.
1907 (pspy_new, pspace_to_pspace_object): Call it.
1909 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1910 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 Fix "save breakpoints" for "catch" command.
1913 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1916 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1918 Fix "save breakpoints" for "disable $bpnum" command.
1919 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1921 2014-10-10 Pedro Alves <palves@redhat.com>
1923 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1924 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1925 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1926 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1928 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1929 * configure.ac: Remove references to IRIX.
1930 * configure.host: Add *-*-irix* to the obsolete hosts section.
1931 Remove all other references to irix.
1932 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1935 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1937 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1938 isn't valid, release the tdesc arch data and return NULL.
1940 2014-10-10 Pedro Alves <palves@redhat.com>
1942 * linux-tdep.c: Include observer.h.
1943 (linux_inferior_data): New global.
1944 (struct linux_info): New structure.
1945 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1946 (get_linux_inferior_data): New functions.
1947 (linux_vsyscall_range): Rename to ...
1948 (linux_vsyscall_range_raw): ... this.
1949 (linux_vsyscall_range): New function; handles caching.
1950 (_initialize_linux_tdep): Register linux_inferior_data. Install
1951 inferior_exit and inferior_appeared observers.
1953 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 Pedro Alves <palves@redhat.com>
1957 * solib-svr4.c (svr4_read_so_list): Rename to ...
1958 (svr4_current_sos_1): ... this and change the function comment.
1959 (svr4_current_sos): New function.
1961 2014-10-10 Pedro Alves <palves@redhat.com>
1963 * arch-utils.c (default_vsyscall_range): New function.
1964 * arch-utils.h (default_vsyscall_range): New declaration.
1965 * gdbarch.sh (vsyscall_range): New hook.
1966 * gdbarch.h, gdbarch.c: Regenerate.
1967 * linux-tdep.c (linux_vsyscall_range): New function.
1968 (linux_init_abi): Install linux_vsyscall_range as
1969 vsyscall_range gdbarch hook.
1970 * memrange.c (address_in_mem_range): New function.
1971 * memrange.h (address_in_mem_range): New declaration.
1972 * symfile-mem.c (find_vdso_size): Delete function.
1973 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1975 2014-10-10 Pedro Alves <palves@redhat.com>
1977 * infrun.c (normal_stop): Fix typo in comment.
1979 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1982 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1983 typo when using logical AND to determine instruction type.
1985 2014-10-09 Yao Qi <yao@codesourcery.com>
1987 * infrun.c (handle_signal_stop): Remove local variable
1990 2014-10-08 Stan Shebs <stan@codesourcery.com>
1992 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1994 2014-10-08 Gary Benson <gbenson@redhat.com>
1996 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1998 2014-10-08 Gary Benson <gbenson@redhat.com>
2000 * common/common-defs.h: Include common-exceptions.h.
2001 * exceptions.h: Do not include common-exceptions.h.
2003 2014-10-08 Gary Benson <gbenson@redhat.com>
2005 * common/common-defs.h: Include cleanups.h.
2006 * common/common-exceptions.c: Do not include cleanups.h.
2007 * utils.h: Likewise.
2009 2014-10-08 Gary Benson <gbenson@redhat.com>
2011 * ada-lang.c: Do not include exceptions.h.
2012 * ada-valprint.c: Likewise.
2013 * amd64-tdep.c: Likewise.
2014 * auto-load.c: Likewise.
2015 * block.c: Likewise.
2016 * break-catch-throw.c: Likewise.
2017 * breakpoint.c: Likewise.
2018 * btrace.c: Likewise.
2019 * c-lang.c: Likewise.
2020 * cli/cli-cmds.c: Likewise.
2021 * cli/cli-interp.c: Likewise.
2022 * cli/cli-script.c: Likewise.
2023 * completer.c: Likewise.
2024 * corefile.c: Likewise.
2025 * corelow.c: Likewise.
2026 * cp-abi.c: Likewise.
2027 * cp-support.c: Likewise.
2028 * cp-valprint.c: Likewise.
2029 * darwin-nat.c: Likewise.
2030 * dwarf2-frame-tailcall.c: Likewise.
2031 * dwarf2-frame.c: Likewise.
2032 * dwarf2loc.c: Likewise.
2033 * dwarf2read.c: Likewise.
2035 * event-loop.c: Likewise.
2036 * event-top.c: Likewise.
2037 * f-valprint.c: Likewise.
2038 * frame-unwind.c: Likewise.
2039 * frame.c: Likewise.
2040 * gdbtypes.c: Likewise.
2041 * gnu-v2-abi.c: Likewise.
2042 * gnu-v3-abi.c: Likewise.
2043 * guile/scm-auto-load.c: Likewise.
2044 * guile/scm-breakpoint.c: Likewise.
2045 * guile/scm-cmd.c: Likewise.
2046 * guile/scm-frame.c: Likewise.
2047 * guile/scm-lazy-string.c: Likewise.
2048 * guile/scm-param.c: Likewise.
2049 * guile/scm-symbol.c: Likewise.
2050 * guile/scm-type.c: Likewise.
2051 * hppa-hpux-tdep.c: Likewise.
2052 * i386-tdep.c: Likewise.
2053 * inf-loop.c: Likewise.
2054 * infcall.c: Likewise.
2055 * infcmd.c: Likewise.
2056 * infrun.c: Likewise.
2057 * interps.c: Likewise.
2058 * interps.h: Likewise.
2060 * linespec.c: Likewise.
2061 * linux-nat.c: Likewise.
2062 * linux-thread-db.c: Likewise.
2063 * m32r-rom.c: Likewise.
2065 * memory-map.c: Likewise.
2066 * mi/mi-cmd-break.c: Likewise.
2067 * mi/mi-cmd-stack.c: Likewise.
2068 * mi/mi-interp.c: Likewise.
2069 * mi/mi-main.c: Likewise.
2070 * monitor.c: Likewise.
2071 * nto-procfs.c: Likewise.
2072 * objc-lang.c: Likewise.
2073 * p-valprint.c: Likewise.
2074 * parse.c: Likewise.
2075 * ppc-linux-tdep.c: Likewise.
2076 * printcmd.c: Likewise.
2077 * probe.c: Likewise.
2078 * python/py-auto-load.c: Likewise.
2079 * python/py-breakpoint.c: Likewise.
2080 * python/py-cmd.c: Likewise.
2081 * python/py-finishbreakpoint.c: Likewise.
2082 * python/py-frame.c: Likewise.
2083 * python/py-framefilter.c: Likewise.
2084 * python/py-function.c: Likewise.
2085 * python/py-gdb-readline.c: Likewise.
2086 * python/py-inferior.c: Likewise.
2087 * python/py-infthread.c: Likewise.
2088 * python/py-lazy-string.c: Likewise.
2089 * python/py-linetable.c: Likewise.
2090 * python/py-param.c: Likewise.
2091 * python/py-prettyprint.c: Likewise.
2092 * python/py-symbol.c: Likewise.
2093 * python/py-type.c: Likewise.
2094 * python/py-value.c: Likewise.
2095 * python/python-internal.h: Likewise.
2096 * python/python.c: Likewise.
2097 * record-btrace.c: Likewise.
2098 * record-full.c: Likewise.
2099 * regcache.c: Likewise.
2100 * remote-fileio.c: Likewise.
2101 * remote-mips.c: Likewise.
2102 * remote.c: Likewise.
2103 * rs6000-aix-tdep.c: Likewise.
2104 * rs6000-nat.c: Likewise.
2106 * solib-darwin.c: Likewise.
2107 * solib-dsbt.c: Likewise.
2108 * solib-frv.c: Likewise.
2109 * solib-ia64-hpux.c: Likewise.
2110 * solib-spu.c: Likewise.
2111 * solib-svr4.c: Likewise.
2112 * solib.c: Likewise.
2113 * spu-tdep.c: Likewise.
2114 * stack.c: Likewise.
2115 * stap-probe.c: Likewise.
2116 * symfile-mem.c: Likewise.
2117 * symmisc.c: Likewise.
2118 * target.c: Likewise.
2119 * thread.c: Likewise.
2121 * tracepoint.c: Likewise.
2122 * tui/tui-interp.c: Likewise.
2123 * typeprint.c: Likewise.
2124 * utils.c: Likewise.
2125 * valarith.c: Likewise.
2126 * valops.c: Likewise.
2127 * valprint.c: Likewise.
2128 * value.c: Likewise.
2129 * varobj.c: Likewise.
2130 * windows-nat.c: Likewise.
2131 * xml-support.c: Likewise.
2133 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2135 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2137 (extended_mips16_next_pc): Update accordingly.
2139 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2141 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2143 (micromips_instruction_is_compact_branch): Likewise.
2144 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2145 or a compact jump, reaching a jump delay slot, or seeing a
2146 second non-prologue instruction.
2147 (micromips_scan_prologue): Also terminate scanning upon seeing a
2148 compact branch or jump, or reaching a branch or jump delay slot.
2149 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2150 or jump delay slot, or seeing a second non-prologue instruction.
2151 (mips32_instruction_has_delay_slot): Retain instruction
2152 examination code only, update arguments accordingly and move
2153 instruction fetch pieces to...
2154 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2155 (micromips_instruction_has_delay_slot): Likewise and to...
2156 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2157 (mips16_instruction_has_delay_slot): Likewise and to...
2158 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2159 (mips_single_step_through_delay): Update accordingly.
2160 (mips_adjust_breakpoint_address): Likewise.
2162 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2164 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2165 !mustbe32 also return 1 for 32-bit instructions.
2166 (mips16_instruction_has_delay_slot): Likewise. Add an
2167 explanatory comment.
2169 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2171 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2174 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2176 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2178 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2179 for the breakpoint's address. Don't preinitialize `placed_size'.
2180 (insert_bp_location): Set `reqstd_address' rather than
2182 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2183 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2185 (bkpt_remove_location): Likewise.
2186 (deprecated_insert_raw_breakpoint): Likewise.
2187 (deprecated_remove_raw_breakpoint): Likewise.
2188 (find_single_step_breakpoint): Likewise.
2189 * mem-break.c (default_memory_insert_breakpoint): Use
2190 `reqstd_address' for the breakpoint's address. Don't set
2191 `placed_address' or `placed_size' if breakpoint contents couldn't
2192 have been determined.
2193 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2194 the breakpoint's address.
2195 (remote_insert_hw_breakpoint): Likewise. Don't set
2196 `placed_address' or `placed_size' if breakpoint couldn't have been
2198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2199 `reqstd_address' for the breakpoint's address.
2200 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2201 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2202 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2203 * microblaze-linux-tdep.c
2204 (microblaze_linux_memory_remove_breakpoint): Likewise.
2205 * monitor.c (monitor_insert_breakpoint): Likewise.
2206 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2207 (procfs_insert_hw_breakpoint): Likewise.
2208 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2209 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2210 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2211 * remote-mips.c (mips_insert_breakpoint): Likewise.
2212 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2214 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2216 * valops.c (value_assign): Check for bit field assignments
2217 before calling architecture-specific register value
2218 conversion functions.
2220 2014-10-03 Pierre Muller <muller@sourceware.org>
2222 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2224 2014-10-02 Pedro Alves <palves@redhat.com>
2226 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2227 threads_are_executing.
2228 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2230 * gdbthread.h (threads_are_executing): Declare.
2231 (handle_signal_stop) <random signals>: Don't print about the
2232 signal here if stopping.
2233 (end_stepping_range): Don't notify observers here.
2234 (normal_stop): Update the thread list. If stopped by a random
2235 signal or a stepping range ended, notify observers.
2236 * thread.c (threads_executing): New global.
2237 (init_thread_list): Clear 'threads_executing'.
2238 (set_executing): Set or clear 'threads_executing'.
2239 (threads_are_executing): New function.
2240 (update_threads_executing): New function.
2241 (update_thread_list): Use it.
2243 2014-10-02 Pedro Alves <palves@redhat.com>
2245 PR breakpoints/17431
2246 * breakpoint.c (update_breakpoints_after_exec): Don't create
2247 overlay, longjmp, std terminate nor exception breakpoints here.
2249 2014-10-02 Pedro Alves <palves@redhat.com>
2251 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2253 * inferior.c (find_inferior_for_program_space): Give preference to
2254 the current inferior.
2255 * inferior.h (find_inferior_for_program_space): Update comment.
2256 * progspace.c (switch_to_program_space_and_thread): Prefer the
2257 current inferior if it's bound to the program space requested. If
2258 the inferior found doesn't have a PID yet, don't bother looking up
2260 * progspace.h (switch_to_program_space_and_thread): Adjust
2262 * thread.c (any_thread_of_process, any_live_thread_of_process):
2263 Give preference to the current thread.
2265 2014-10-01 Pedro Alves <palves@redhat.com>
2267 * breakpoint.c (insert_bp_location): Error out if inserting a
2268 software breakpoint at a read-only address.
2269 * target.c (memory_xfer_check_region): New function, factored out
2271 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2273 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2274 against the memory region attributes.
2276 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2278 * NEWS: Announce new exit-code field in -list-thread-groups
2280 * inferior.c (exit_inferior_1): Don't clear exit code.
2281 (inferior_appeared): Clear exit code.
2282 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2285 2014-10-01 Pedro Alves <palves@redhat.com>
2287 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2288 GENERATED" along with emacs/vi read-only markers.
2289 * regformats/aarch64.dat: Regenerate.
2290 * regformats/arm-with-iwmmxt.dat: Regenerate.
2291 * regformats/arm-with-neon.dat: Regenerate.
2292 * regformats/arm-with-vfpv2.dat: Regenerate.
2293 * regformats/arm-with-vfpv3.dat: Regenerate.
2294 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2295 * regformats/i386/amd64-avx.dat: Regenerate.
2296 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2297 * regformats/i386/amd64-avx512.dat: Regenerate.
2298 * regformats/i386/amd64-linux.dat: Regenerate.
2299 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2300 * regformats/i386/amd64-mpx.dat: Regenerate.
2301 * regformats/i386/amd64.dat: Regenerate.
2302 * regformats/i386/i386-avx-linux.dat: Regenerate.
2303 * regformats/i386/i386-avx.dat: Regenerate.
2304 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2305 * regformats/i386/i386-avx512.dat: Regenerate.
2306 * regformats/i386/i386-linux.dat: Regenerate.
2307 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2308 * regformats/i386/i386-mmx.dat: Regenerate.
2309 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2310 * regformats/i386/i386-mpx.dat: Regenerate.
2311 * regformats/i386/i386.dat: Regenerate.
2312 * regformats/i386/x32-avx-linux.dat: Regenerate.
2313 * regformats/i386/x32-avx.dat: Regenerate.
2314 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2315 * regformats/i386/x32-avx512.dat: Regenerate.
2316 * regformats/i386/x32-linux.dat: Regenerate.
2317 * regformats/i386/x32.dat: Regenerate.
2318 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2319 * regformats/mips-dsp-linux.dat: Regenerate.
2320 * regformats/mips-linux.dat: Regenerate.
2321 * regformats/mips64-dsp-linux.dat: Regenerate.
2322 * regformats/mips64-linux.dat: Regenerate.
2323 * regformats/nios2-linux.dat: Regenerate.
2324 * regformats/rs6000/powerpc-32.dat: Regenerate.
2325 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2326 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2327 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2328 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2329 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2330 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2331 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2332 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2333 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2334 * regformats/s390-linux32.dat: Regenerate.
2335 * regformats/s390-linux32v1.dat: Regenerate.
2336 * regformats/s390-linux32v2.dat: Regenerate.
2337 * regformats/s390-linux64.dat: Regenerate.
2338 * regformats/s390-linux64v1.dat: Regenerate.
2339 * regformats/s390-linux64v2.dat: Regenerate.
2340 * regformats/s390-te-linux64.dat: Regenerate.
2341 * regformats/s390x-linux64.dat: Regenerate.
2342 * regformats/s390x-linux64v1.dat: Regenerate.
2343 * regformats/s390x-linux64v2.dat: Regenerate.
2344 * regformats/s390x-te-linux64.dat: Regenerate.
2345 * regformats/tic6x-c62x-linux.dat: Regenerate.
2346 * regformats/tic6x-c62x.dat: Regenerate.
2347 * regformats/tic6x-c64x-linux.dat: Regenerate.
2348 * regformats/tic6x-c64x.dat: Regenerate.
2349 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2350 * regformats/tic6x-c64xp.dat: Regenerate.
2352 2014-10-01 Pedro Alves <palves@redhat.com>
2354 * features/Makefile: Update comments.
2355 (XMLTOC): List all xml files we build C files from.
2356 (clean-cfiles): New rule.
2358 2014-10-01 Pedro Alves <palves@redhat.com>
2360 * features/i386/amd64-avx512-linux.c: Regenerate.
2361 * features/i386/amd64-avx512.c: Regenerate.
2362 * features/i386/x32-avx512-linux.c: Regenerate.
2363 * features/i386/x32-avx512.c: Regenerate.
2365 2014-10-01 Pedro Alves <palves@redhat.com>
2367 * features/Makefile (WHICH): Remove arm-with-m,
2368 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2370 2014-10-01 Pedro Alves <palves@redhat.com>
2372 * features/Makefile (clean): New rule.
2374 2014-10-01 Pedro Alves <palves@redhat.com>
2376 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2377 (zmm14h): Add missing end quotes.
2379 2014-10-01 Pedro Alves <palves@redhat.com>
2381 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2382 * features/aarch64.c: Regenerate.
2384 2014-09-30 Don Breazeal <donb@codesourcery.com>
2386 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2387 code so as to work with follow_fork_inferior.
2388 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2389 (inf_ttrace_create_inferior): Remove reference to
2390 inf_ttrace_vfork_ppid.
2391 (inf_ttrace_attach): Ditto.
2392 (inf_ttrace_detach): Ditto.
2393 (inf_ttrace_kill): Use current_inferior instead of
2394 inf_ttrace_vfork_ppid.
2395 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2396 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2397 inferior away from the parent.
2398 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2400 (follow_fork_inferior): New function.
2401 (follow_inferior_reset_breakpoints): Make function static.
2402 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2403 * linux-nat.c (linux_child_follow_fork): Move target-independent
2404 code to infrun.c:follow_fork_inferior.
2406 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2409 * gdbarch.c: Regenerate.
2410 * gdbarch.h: Likewise.
2411 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2412 gdbarch method 'regset_from_core_section'.
2413 (get_core_register_section): Remove handling for the case that
2414 regset == NULL and regset_from_core_section is defined.
2415 (get_core_registers): Drop check for deleted method.
2416 * procfs.c (procfs_do_thread_registers): Adjust comment.
2418 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2420 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2421 (linux_nat_make_corefile_notes): Remove.
2422 (linux_target_install_ops): Do not set target method
2423 'make_corefile_notes'.
2424 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2426 (linux_corefile_thread_callback): Instead of args->collect, call
2427 linux_collect_thread_registers.
2428 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2429 NULL unless there is a regset iterator.
2430 (linux_make_corefile_notes_1): Remove.
2431 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2432 by linux_make_corefile_notes.
2433 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2437 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2438 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2440 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2442 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2444 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2445 (xtensa_iterate_over_regset_sections): New.
2446 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2448 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2450 * vax-tdep.c (vax_regset_from_core_section): Remove.
2451 (vax_iterate_over_regset_sections): New.
2452 (vax_gdbarch_init): Adjust gdbarch initialization.
2454 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2457 (tilegx_regset_from_core_section): Remove.
2458 (tilegx_iterate_over_regset_sections): New.
2459 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2463 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2464 (sparc_iterate_over_regset_sections): New.
2465 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2466 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2468 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2469 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2470 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2471 target method 'make_corefile_notes'.
2473 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2476 'sizeof_gregset' and 'sizeof_fpregset'.
2477 * sh-tdep.c (sh_regset_from_core_section): Remove.
2478 (sh_iterate_over_regset_sections): New.
2479 (sh_gdbarch_init): Adjust gdbarch initialization.
2480 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2482 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2488 (score7_linux_iterate_over_regset_sections): New.
2489 (score_gdbarch_init): Adjust gdbarch initialization.
2491 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2493 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2495 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2496 method 'make_corefile_notes'.
2497 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2498 (ppcfbsd_regset_from_core_section): Remove.
2499 (ppcfbsd_iterate_over_regset_sections): New.
2500 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2502 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2503 (ppcnbsd_iterate_over_regset_sections): New.
2504 (ppcnbsd_init_abi): Adjust.
2505 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2506 (ppcobsd_iterate_over_regset_sections): New.
2507 (ppcobsd_init_abi): Adjust.
2508 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2509 (rs6000_aix_iterate_over_regset_sections): New.
2510 (rs6000_aix_init_osabi): Adjust.
2512 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2514 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2515 (nios2_regset_from_core_section): Remove.
2516 (nios2_iterate_over_regset_sections): New.
2517 (nios2_linux_init_abi): Adjust gdbarch initialization.
2519 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2521 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2522 (am33_iterate_over_regset_sections): New.
2523 (am33_linux_init_osabi): Adjust gdbarch initialization.
2525 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2527 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2528 (mips_linux_iterate_over_regset_sections): New.
2529 (mips_linux_init_abi): Adjust gdbarch initialization.
2530 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2531 (mips64obsd_iterate_over_regset_sections): New.
2532 (mips64obsd_init_abi): Adjust.
2533 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2534 (mipsnbsd_iterate_over_regset_sections): New.
2535 (mipsnbsd_init_abi): Adjust.
2537 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2539 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2540 (m88k_iterate_over_regset_sections): New.
2541 (m88k_gdbarch_init): Adjust gdbarch initialization.
2543 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2546 (ia64_linux_iterate_over_regset_sections): New.
2547 (ia64_linux_init_abi): Adjust gdbarch initialization.
2549 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2551 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2552 (m68kbsd_iterate_over_regset_sections): New.
2553 (m68kbsd_init_abi): Adjust gdbarch initialization.
2554 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2555 (m68k_linux_iterate_over_regset_sections): New.
2556 (m68k_linux_init_abi): Adjust gdbarch initialization.
2558 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2560 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2561 (m32r_linux_regset_from_core_section): Remove.
2562 (m32r_linux_iterate_over_regset_sections): New.
2563 (m32r_linux_init_abi): Adjust gdbarch initialization.
2565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2567 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2568 (amd64obsd_iterate_over_regset_sections): New.
2569 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2570 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2572 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2573 regset_from_core_section initialization.
2574 * i386-tdep.c (i386_regset_from_core_section): Remove.
2575 (i386_iterate_over_regset_sections): New.
2576 (i386_gdbarch_init): Adjust gdbarch initialization.
2577 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2578 (i386_iterate_over_regset_sections): New prototype.
2579 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2581 (i386obsd_aout_iterate_over_regset_sections): New.
2582 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2583 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2585 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2586 (amd64fbsd_init_abi): Call fbsd_init_abi.
2587 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2588 (i386fbsd4_init_abi): Call fbsd_init_abi.
2589 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2590 target method 'make_corefile_notes'.
2591 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2593 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2595 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2596 (hppa_hpux_iterate_over_regset_sections): New.
2597 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2598 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2599 (hppa_linux_iterate_over_regset_sections): New.
2600 (hppa_linux_init_abi): Adjust.
2601 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2602 (hppanbsd_iterate_over_regset_sections): New.
2603 (hppanbsd_init_abi): Adjust.
2604 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2605 (hppaobsd_iterate_over_regset_sections): New.
2606 (hppaobsd_init_abi): Adjust.
2608 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2610 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2611 (frv_linux_iterate_over_regset_sections): New.
2612 (frv_linux_init_abi): Adjust gdbarch initialization.
2614 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2616 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2617 (armbsd_iterate_over_regset_sections): New prototype.
2618 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2619 (armbsd_iterate_over_regset_sections): New.
2620 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2623 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2625 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2626 (alpha_linux_iterate_over_regset_sections): New.
2627 (alpha_linux_init_abi): Adjust gdbarch initialization.
2628 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2630 (alphanbsd_iterate_over_regset_sections): New prototype.
2632 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2634 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2636 (aarch64_linux_iterate_over_regset_sections): New.
2637 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2641 * fbsd-tdep.c: New file.
2642 * fbsd-tdep.h: New file.
2643 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2644 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2645 (ALLDEPFILES): Add fbsd-tdep.c.
2647 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2649 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2651 * gdbarch.h: Regenerate.
2652 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2654 (get_core_register_section): Add parameter 'regset' and use it, if
2655 set. Add parameter 'min_size' and verify the bfd section size
2657 (get_core_registers_cb): Add parameter 'regset' and pass it to
2658 get_core_register section. For the "standard" register sections
2659 ".reg" and ".reg2", set an appropriate default for human_name.
2660 (get_core_registers): Don't abort when the gdbarch has an iterator
2661 but no regset_from_core_section. Add NULL/0 for parameters
2662 'regset'/'min_size' in calls to get_core_register_section.
2663 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2664 'regset' and use it instead of calling the
2665 regset_from_core_section gdbarch method.
2666 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2667 * i386-tdep.c (i386_supply_xstateregset)
2668 (i386_collect_xstateregset, i386_xstateregset): Moved to
2670 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2672 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2673 core file support only if the regset iterator hasn't been set.
2674 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2675 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2676 Moved from i386-tdep.c and renamed to *_linux*.
2677 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2678 each callback invocation. Allow any .reg-xstate size when reading
2680 * amd64-tdep.c (amd64_supply_xstateregset)
2681 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2683 (amd64_regset_from_core_section): Remove.
2684 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2685 install an amd64-specific regset_from_core_section gdbarch method.
2686 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2687 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2688 Moved from amd64-tdep.c and renamed to *_linux*.
2689 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2690 to each callback invocation. Allow any .reg-xstate size when
2691 reading from a core file.
2692 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2693 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2694 each callback invocation.
2695 (arm_linux_init_abi): No longer set the regset_from_core_section
2697 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2698 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2699 each callback invocation.
2700 (ppc_linux_init_abi): No longer set the regset_from_core_section
2702 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2703 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2704 (s390_regset_from_core_section): Remove.
2705 (s390_iterate_over_regset_sections): Add regset parameter to each
2706 callback invocation.
2707 (s390_gdbarch_init): No longer set the regset_from_core_section
2708 gdbarch method. Drop initialization of deleted tdep fields.
2710 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2712 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2713 (amd64_linux_iterate_over_regset_sections): New.
2714 (amd64_linux_init_abi_common): Don't install the regset section
2715 list, but the new iterator in gdbarch.
2716 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2717 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2718 (arm_linux_iterate_over_regset_sections): ...here. New function.
2719 (arm_linux_init_abi): Set iterator instead of section list.
2720 * corelow.c (get_core_registers_cb): New function, logic moved
2722 (get_core_registers): ...loop body here. Use new iterator method
2723 instead of walking through the regset section list.
2724 * gdbarch.sh: Remove 'core_regset_sections'. New method
2725 'iterate_over_regset_sections'. New typedef
2726 'iterate_over_regset_sections_cb'.
2727 * gdbarch.c: Regenerate.
2728 * gdbarch.h: Likewise.
2729 * i386-linux-tdep.c (i386_linux_regset_sections)
2730 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2732 (i386_linux_iterate_over_regset_sections): New.
2733 (i386_linux_init_abi): Don't choose a regset section list, but
2734 install new iterator in gdbarch.
2735 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2736 (linux_collect_regset_section_cb): New function, logic moved
2738 (linux_collect_thread_registers): ...loop body here. Use iterator
2739 method instead of walking through list.
2740 (linux_make_corefile_notes_1): Check for presence of iterator
2741 method instead of regset section list.
2742 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2743 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2744 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2745 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2746 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2747 (ppc_linux_init_abi): Don't choose from above regset section
2748 lists, but install new iterator in gdbarch.
2749 * regset.h (struct core_regset_section): Remove.
2750 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2751 have_linux_v1, have_linux_v2, and have_tdb.
2752 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2753 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2754 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2755 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2756 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2757 (s390_iterate_over_regset_sections): ...here. New function. Use
2759 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2760 regset section lists, but install new iterator.
2762 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2764 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2766 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2768 * progspace.c (print_program_space): Don't prune program spaces
2769 before printing them.
2771 2014-09-25 Pedro Alves <palves@redhat.com>
2773 * infrun.c (user_visible_resume_ptid): Don't check
2774 singlestep_breakpoints_inserted_p.
2776 2014-09-25 Pedro Alves <palves@redhat.com>
2778 * breakpoint.c (should_be_inserted): Add debug output.
2780 2014-09-25 Pedro Alves <palves@redhat.com>
2782 * infrun.c (stepping_past_instruction_at)
2783 (clear_exit_convenience_vars): Point at infrun.h instead of
2785 (handle_signal_stop): Fix typo.
2787 2014-09-24 Yao Qi <yao@codesourcery.com>
2789 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2792 2014-09-22 Gary Benson <gbenson@redhat.com>
2794 * target.c (target_stop): Updated comment.
2796 2014-09-22 Gary Benson <gbenson@redhat.com>
2798 * target/target.h (target_stop_ptid): Renamed as...
2799 (target_stop_and_wait): New function. Updated comment.
2801 (target_continue_ptid): Renamed as...
2802 (target_continue_no_signal): New function. Updated comment.
2805 2014-09-22 Pedro Alves <palves@redhat.com>
2807 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2809 * breakpoint.c (enum ugll_insert_mode): New enum.
2810 (always_inserted_mode): Now a plain boolean.
2811 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2812 (breakpoints_always_inserted_mode): Delete.
2813 (breakpoints_should_be_inserted_now): New function.
2814 (insert_breakpoints): Pass UGLL_INSERT to
2815 update_global_location_list instead of calling
2816 insert_breakpoint_locations manually.
2817 (create_solib_event_breakpoint_1): New, factored out from ...
2818 (create_solib_event_breakpoint): ... this.
2819 (create_and_insert_solib_event_breakpoint): Use
2820 create_solib_event_breakpoint_1 instead of calling
2821 insert_breakpoint_locations manually.
2822 (update_global_location_list): Change parameter type from boolean
2823 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2824 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2825 (update_global_location_list_nothrow): Change parameter type from
2826 boolean to enum ugll_insert_mode.
2827 (_initialize_breakpoint): "breakpoint always-inserted" option is
2828 now a boolean command. Update help text.
2829 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2830 (breakpoints_should_be_inserted_now): New declaration.
2831 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2832 Remove breakpoints_always_inserted_mode check.
2833 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2834 * remote.c (remote_start_remote): Likewise.
2836 2014-09-22 Pedro Alves <palves@redhat.com>
2838 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2839 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2840 Instead, pass UGLL_INSERT to update_global_location_list.
2841 (update_global_location_list): Change parameter type from boolean
2842 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2843 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2844 (create_solib_event_breakpoint_1): New, factored out from ...
2845 (create_solib_event_breakpoint): ... this.
2846 (create_and_insert_solib_event_breakpoint): Use
2847 create_solib_event_breakpoint_1 instead of calling
2848 insert_breakpoint_locations manually.
2849 (update_global_location_list): Handle UGLL_INSERT.
2851 2014-09-22 Pedro Alves <palves@redhat.com>
2853 * breakpoint.c (enum ugll_insert_mode): New enum.
2854 (update_global_location_list)
2855 (update_global_location_list_nothrow): Change parameter type from
2856 boolean to enum ugll_insert_mode. All callers adjusted.
2858 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2860 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2861 SystemTap support in GDB.
2863 2014-09-19 Don Breazeal <donb@codesourcery.com>
2865 * linux-nat.c (linux_handle_extended_wait): Call
2866 linux_ptrace_get_extended_event.
2867 (wait_lwp): Call linux_is_extended_waitstatus.
2868 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2869 and linux_is_extended_waitstatus.
2870 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2871 linux_ptrace_get_extended_event.
2872 (linux_ptrace_get_extended_event): New function.
2873 (linux_is_extended_waitstatus): New function.
2874 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2875 (linux_is_extended_waitstatus): New declarations.
2877 2014-09-19 Yao Qi <yao@codesourcery.com>
2879 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2880 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2881 comments. Callers update.
2882 (dwarf_decode_lines): Likewise.
2883 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2884 comments. Skip the line table if 'lowpc' is greater than
2885 'address'. Don't check
2886 dwarf2_per_objfile->has_section_at_zero.
2888 2014-09-18 Doug Evans <dje@google.com>
2890 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2891 * python/py-symtab.c (stpy_get_producer): New function.
2892 (symtab_object_getset): Add "producer" attribute.
2894 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2897 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2898 (do_captured_read_memory_integer): Remove.
2899 (safe_read_memory_integer): Use target_read_memory directly instead
2900 of catching errors in do_captured_read_memory_integer.
2902 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2904 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2907 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2909 * objc-lang.c (find_implementation_from_class): Remove dead code.
2911 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2914 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2915 "fprintf_unfiltered (gdb_stdlog...)".
2917 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2919 PR breakpoints/12526
2920 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2922 * breakpoint.c (watch_command_1): Use these fields to retain
2923 bitfield information.
2924 (extract_bitfield_from_watchpoint_value): New function.
2925 (watchpoint_check): Use it.
2926 (update_watchpoint): Use it. Optimize the address and length of a
2927 HW watchpoint pointing to a bitfield.
2928 * value.h (unpack_value_bitfield): New prototype.
2929 * value.c (unpack_value_bitfield): Make extern.
2931 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2933 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2935 * gnu-nat.c (inf_threads): New function.
2936 * gnu-nat.h (inf_threads_ftype): New typedef.
2937 (inf_threads): New declaration.
2938 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2939 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2940 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2941 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2942 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2943 (i386_gnu_dr_get_control): New functions.
2944 (reg_addr): New structure.
2945 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2946 i386 debugging register hooks.
2947 * NEWS: Mention this.
2949 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2951 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2952 vector data transfer instructions.
2953 (arm_record_coproc_data_proc): Updated.
2955 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2957 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2958 arm_record_exreg_ld_st_insn.
2959 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2962 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2964 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2965 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2966 processing instructions.
2968 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2970 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2971 for advance SIMD struct ld/st insn.
2972 (thumb2_record_decode_insn_handler): Replace stub handler with
2973 thumb2_record_asimd_struct_ld_st.
2975 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2977 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2978 for asimd, vfp and coprocessor insns.
2979 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2980 and coprocessor insns.
2981 (thumb2_record_coproc_insn): New function.
2982 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2984 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2987 2014-09-13 Doug Evans <xdje42@gmail.com>
2989 * NEWS: Mention new "queue-signal" command.
2990 * infcmd.c (queue_signal_command): New function.
2991 (_initialize_infcmd): Add new queue-signal command.
2993 2014-09-13 Doug Evans <xdje42@gmail.com>
2995 * linux-nat.c (wait_lwp): Add debugging printf.
2996 (linux_nat_wait_1): Ditto.
2998 2014-09-12 Pedro Alves <palves@redhat.com>
3000 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3001 (create_and_insert_solib_event_breakpoint): New functions.
3002 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3003 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3004 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3005 (remove_dbx_link_breakpoint): Delete function.
3006 (insert_dbx_link_bpt_in_file): Use
3007 create_and_insert_solib_event_breakpoint instead of
3008 deprecated_insert_raw_breakpoint.
3009 (procfs_wait): Don't check whether we hit __dbx_link here.
3010 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3012 * solib-irix.c (base_breakpoint): Delete global.
3013 (disable_break): Delete function.
3014 (enable_break): Use create_solib_event_breakpoint
3015 instead of deprecated_insert_raw_breakpoint.
3016 (irix_solib_handle_event): New function.
3017 (irix_solib_create_inferior_hook): Don't run the target or disable
3018 the mapping-complete breakpoint here.
3019 (_initialize_irix_solib): Install irix_solib_handle_event as
3020 so_ops->handle_event hook.
3022 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3023 Ulrich Weigand <uweigand@de.ibm.com>
3026 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3027 instead of read_memory_unsigned_integer.
3029 2014-09-12 Gary Benson <gbenson@redhat.com>
3031 * nat/linux-waitpid.c: Include common-defs.h.
3032 [GDBSERVER]: Add FIXME comment.
3033 [!GDBSERVER]: Don't include defs.h or signal.h.
3034 (linux_debug) [!GDBSERVER]: Remove empty block.
3036 2014-09-12 Gary Benson <gbenson@redhat.com>
3038 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3039 Don't include defs.h or server.h.
3041 2014-09-12 Gary Benson <gbenson@redhat.com>
3043 * nat/linux-btrace.c: Include common-defs.h.
3044 Don't include defs.h, server.h or gdbthread.h.
3045 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3047 2014-09-12 Gary Benson <gbenson@redhat.com>
3049 * common/agent.c: Include common-defs.h.
3050 Don't include defs.h or server.h.
3051 * common/buffer.c: Likewise.
3052 * common/common-debug.c: Likewise.
3053 * common/common-utils.c: Likewise.
3054 * common/errors.c: Likewise.
3055 * common/filestuff.c: Likewise.
3056 * common/format.c: Likewise.
3057 * common/gdb_vecs.c: Likewise.
3058 * common/print-utils.c: Likewise.
3059 * common/ptid.c: Likewise.
3060 * common/rsp-low.c: Likewise.
3061 * common/signals.c: Likewise.
3062 * common/vec.c: Likewise.
3063 * common/xml-utils.c: Likewise.
3064 * nat/linux-osdata.c: Likewise.
3065 * nat/linux-procfs.c: Likewise.
3066 * nat/linux-ptrace.c: Likewise.
3067 * nat/mips-linux-watch.c: Likewise.
3068 * target/waitstatus.c: Likewise.
3070 2014-09-12 Tom Tromey <tromey@redhat.com>
3071 Gary Benson <gbenson@redhat.com>
3073 * common/common-regcache.h: New file.
3074 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3075 * regcache.h: Include common-regcache.h.
3076 (regcache_read_pc): Don't declare.
3077 * regcache.c (get_thread_regcache_for_ptid): New function.
3078 * nat/linux-btrace.c: Don't include regcache.h.
3079 Include common-regcache.h.
3080 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3082 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3084 * regcache.h (struct regset): Declare.
3086 2014-09-11 Pedro Alves <palves@redhat.com>
3089 * main.c: Include "infrun.h".
3090 (catch_command_errors, catch_command_errors_const): Wait for the
3091 foreground command to complete.
3092 * top.c (maybe_wait_sync_command_done): New function, factored out
3094 (maybe_wait_sync_command_done): ... here.
3095 * top.h (maybe_wait_sync_command_done): New declaration.
3097 2014-09-11 Tom Tromey <tromey@redhat.com>
3098 Gary Benson <gbenson@redhat.com>
3100 * common/symbol.h: New file.
3101 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3102 * minsyms.c (find_minimal_symbol_address): New function.
3103 * common/agent.c: Include common/symbol.h.
3104 [!GDBSERVER]: Don't include objfiles.h.
3105 (agent_look_up_symbols): Use find_minimal_symbol_address.
3107 2014-09-11 Gary Benson <gbenson@redhat.com>
3109 * target/target.h (target_stop_ptid, target_continue_ptid):
3111 * target.c (target_stop_ptid, target_continue_ptid): New
3113 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3114 (agent_run_command): Always use target_stop_ptid and
3115 target_continue_ptid.
3117 2014-09-11 Tom Tromey <tromey@redhat.com>
3118 Gary Benson <gbenson@redhat.com>
3120 * target/target.h: New file.
3121 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3122 * target.h: Include target/target.h.
3123 (target_read_memory, target_write_memory): Don't declare.
3124 * target.c (target_read_uint32): New function.
3125 * common/agent.c: Include target/target.h.
3126 [!GDBSERVER]: Don't include target.h.
3127 (helper_thread_id): Type changed to uint32_t.
3128 (agent_get_helper_thread_id): Use target_read_uint32.
3129 (agent_run_command): Always use target_read_memory and
3130 target_write_memory.
3131 (agent_capability): Type changed to uint32_t.
3132 (agent_capability_check): Use target_read_uint32.
3134 2014-09-11 Gary Benson <gbenson@redhat.com>
3136 * common/common-debug.h (show_debug_regs): Declare.
3137 * common/common-debug.c (show_debug_regs): Define.
3138 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3139 all uses with show_debug_regs. Replace all uses that considered
3140 debug_hw_points as a multi-value integer with straight boolean
3142 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3143 with show_debug_regs.
3144 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3145 all uses with show_debug_regs.
3146 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3147 uses with show_debug_regs.
3149 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3151 * findvar.c (address_from_register): Handle targets requiring
3152 a special conversion routine even for plain pointer types.
3154 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3156 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3157 (store_register): Do not call exec_one_dummy_insn.
3159 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3161 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3162 dereference it first. Use value_enclosing_type instead of
3164 (ada_array_length): Likewise.
3166 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3168 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3169 Adjust function implementation and documentation accordingly.
3170 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3171 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3172 Update call to ada_value_ptr_subscript.
3174 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3176 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3177 instead of VAL's type.
3179 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3181 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3183 2014-09-09 Doug Evans <xdje42@gmail.com>
3186 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3187 last parameter to pkg-config, not first.
3188 * configure.ac: Pass --with-guile provided pkg-config path to
3189 GDB_GUILE_PROGRAM_NAMES.
3190 * configure: Regenerate.
3192 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3194 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3197 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3199 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3200 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3201 the list of sections determining GDB_OSABI_IRIX.
3203 2014-09-09 James Hogan <james.hogan@imgtec.com>
3205 * MAINTAINERS (Write After Approval): Add "James Hogan".
3207 2014-09-09 James Hogan <james.hogan@imgtec.com>
3209 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3211 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3213 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3215 2014-09-08 Doug Evans <xdje42@gmail.com>
3218 * guile.c: #include <signal.h>.
3219 (_initialize_guile): Block SIGCHLD while initializing Guile.
3221 Replaces the following, which is reverted.
3223 2014-07-26 Doug Evans <xdje42@gmail.com>
3226 * configure.ac: Add check for header gc/gc.h.
3227 Add check for function setenv.
3228 * configure: Regenerate.
3229 * config.in: Regenerate.
3230 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3232 2014-09-08 Doug Evans <xdje42@gmail.com>
3234 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3235 with named constant. Fix style of pointer comparison.
3236 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3238 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3241 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3242 decide whether we display the command on "show user".
3243 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3244 printing command name.
3245 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3246 * cli/cli-decode.c (cli_user_command_p): Create helper function
3247 to verify whether cmd_list_element is a user-defined command.
3249 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3253 Fix goto out of TRY_CATCH.
3255 2014-09-06 Doug Evans <xdje42@gmail.com>
3256 Tom Tromey <tromey@redhat.com>
3259 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3260 $_any_caller_matches.
3261 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3262 * python/lib/gdb/function/caller_is.py: New file.
3264 2014-09-06 Doug Evans <xdje42@gmail.com>
3266 * infcmd.c (program_info): Fix typo.
3268 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3271 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3272 'number'. New variable 'has_digit'. Rewrite code to deal with
3273 subexpressions on SDT probes.
3275 2014-09-04 Pedro Alves <palves@redhat.com>
3277 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3278 the input is only one character long.
3280 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3283 * f-valprint.c (f_val_print): Specify the correct print option to
3284 use when printing integer values.
3286 2014-09-04 Gary Benson <gbenson@redhat.com>
3288 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3289 Remove code to cope with LWPs wrapped as PIDs.
3290 Add assertions to ensure no wrapped LWPs are passed.
3292 2014-09-04 Pedro Alves <palves@redhat.com>
3294 * value.c (value_ranges_copy_adjusted): New function, factored out
3296 (value_contents_copy_raw): ... here.
3297 (unpack_value_bits_as_long_1): Rename back to ...
3298 (unpack_bits_as_long): ... this. Remove 'original_value' and
3299 'result' parameters. Change return type to LONGEST.
3300 (unpack_value_bits_as_long): Delete.
3301 (unpack_value_field_as_long_1): Delete.
3302 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3303 (unpack_value_bitfield): New function.
3304 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3305 (value_fetch_lazy): Use unpack_value_bitfield.
3306 * value.h (unpack_value_bits_as_long): Delete declaration.
3308 2014-09-03 Sasha Smundak <asmundak@google.com>
3310 * python/py-frame.c (frapy_read_register): New function.
3312 2014-09-03 James Hogan <james.hogan@imgtec.com>
3314 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3315 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3317 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3320 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3322 (add_cmd): Set "completer_handle_brkchars" to NULL.
3323 * cli/cli-decode.h (struct cmd_list_element)
3324 <completer_handle_brkchars>: New field.
3325 * command.h (completer_ftype_void): New typedef.
3326 (set_cmd_completer_handle_brkchars): New prototype.
3327 * completer.c (set_gdb_completion_word_break_characters): New
3329 (complete_line_internal): Call "completer_handle_brkchars"
3330 callback from command.
3331 * completer.h: Include "command.h".
3332 (set_gdb_completion_word_break_characters): New prototype.
3333 * python/py-cmd.c (cmdpy_completer_helper): New function.
3334 (cmdpy_completer_handle_brkchars): New function.
3335 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3336 (cmdpy_init): Set completer_handle_brkchars to
3337 cmdpy_completer_handle_brkchars.
3339 2014-09-03 Gary Benson <gbenson@redhat.com>
3341 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3342 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3343 Loop conditions changed to equivalent form.
3344 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3345 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3346 ALL_DEBUG_ADDRESS_REGISTERS.
3348 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3350 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3353 2014-09-02 Doug Evans <dje@google.com>
3355 * typeprint.c (find_global_typedef): Fix comment.
3357 2014-09-02 Gary Benson <gbenson@redhat.com>
3359 * i386-nat.h: Renamed as...
3360 * x86-nat.h: New file. All type, function and variable name
3361 prefixes changed from "i386_" to "x86_". All references updated.
3362 * i386-nat.c: Renamed as...
3363 * x86-nat.c: New file. All type, function and variable name
3364 prefixes changed from "i386_" to "x86_". All references updated.
3365 * common/i386-xstate.h: Renamed as...
3366 * common/x86-xstate.h: New file. All type, function and variable
3367 name prefixes changed from "i386_" to "x86_". All references
3369 * nat/i386-cpuid.h: Renamed as...
3370 * nat/x86-cpuid.h: New file. All type, function and variable name
3371 prefixes changed from "i386_" to "x86_". All references updated.
3372 * nat/i386-gcc-cpuid.h: Renamed as...
3373 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3374 name prefixes changed from "i386_" to "x86_". All references
3376 * nat/i386-dregs.h: Renamed as...
3377 * nat/x86-dregs.h: New file. All type, function and variable name
3378 prefixes changed from "i386_" to "x86_". All references updated.
3379 * nat/i386-dregs.c: Renamed as...
3380 * nat/x86-dregs.c: New file. All type, function and variable name
3381 prefixes changed from "i386_" to "x86_". All references updated.
3383 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3385 * varobj.c (_initialize_varobj): Move to the end of file.
3387 2014-08-29 Gary Benson <gbenson@redhat.com>
3389 * common/common-exceptions.h: New file.
3390 * common/common-exceptions.c: Likewise.
3391 * Makefile.in (SFILES): Add common/common-exceptions.c.
3392 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3393 (COMMON_OBS): Add common-exceptions.o.
3394 (common-exceptions.o): New rule.
3395 * exceptions.h (common-exceptions.h): Include.
3396 (gdb_setjmp.h): Do not include.
3397 (return_reason): Moved to common-exceptions.h.
3398 (enum return_reason): Likewise.
3399 (RETURN_MASK): Likewise.
3400 (typedef return_mask): Likewise.
3401 (enum errors): Likewise.
3402 (struct gdb_exception): Likewise.
3403 (exceptions_state_mc_init): Likewise.
3404 (exceptions_state_mc_action_iter): Likewise.
3405 (exceptions_state_mc_action_iter_1): Likewise.
3406 (TRY_CATCH): Likewise.
3407 (throw_exception): Likewise.
3408 (throw_verror): Likewise.
3409 (throw_vquit): Likewise.
3410 (throw_error): Likewise.
3411 (throw_quit): Likewise.
3412 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3413 (enum catcher_action): Likewise.
3414 (struct catcher): Likewise.
3415 (current_catcher): Likewise.
3416 (catcher_list_size): Likewise.
3417 (exceptions_state_mc_init): Likewise.
3418 (catcher_pop): Likewise.
3419 (exceptions_state_mc): Likewise.
3420 (exceptions_state_mc_action_iter): Likewise.
3421 (exceptions_state_mc_action_iter_1): Likewise.
3422 (throw_exception): Likewise.
3423 (exception_messages): Likewise.
3424 (exception_messages_size): Likewise.
3425 (throw_it): Likewise.
3426 (throw_verror): Likewise.
3427 (throw_vquit): Likewise.
3428 (throw_error): Likewise.
3429 (throw_quit): Likewise.
3430 (prepare_to_throw_exception): New function.
3432 2014-08-29 Gary Benson <gbenson@redhat.com>
3434 * common/gdb_setjmp.h: New file.
3435 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3436 * configure.ac: Move sigsetjmp check...
3437 * common/common.m4: ...here.
3438 * configure: Regenerate.
3439 * cp-support.c (SIGJMP_BUF): Delete.
3440 (SIGSETJMP): Likewise.
3441 (SIGLONGJMP): Likewise.
3442 * exceptions.h (gdb_setjmp.h): Include.
3443 (setjmp.h): Do not include.
3444 (EXCEPTIONS_SIGJMP_BUF): Delete.
3445 (EXCEPTIONS_SIGSETJMP): Likewise.
3446 (EXCEPTIONS_SIGLONGJMP): Likewise.
3447 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3449 * exceptions.c: Likewise.
3451 2014-08-29 Gary Benson <gbenson@redhat.com>
3453 * cleanups.h: Moved to...
3454 * common/cleanups.h: New file.
3455 * cleanups.c: Moved to...
3456 * common/cleanups.c: New file. Include common-defs.h and
3457 cleanups.h. Do not include defs.h.
3458 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3459 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3460 (cleanups.o): New rule.
3462 2014-08-29 Gary Benson <gbenson@redhat.com>
3464 * common/errors.h (internal_warning): New declaration.
3465 (internal_vwarning): Likewise.
3466 * common/errors.c (internal_warning): New function.
3467 * utils.h (internal_warning): Don't declare.
3468 (internal_vwarning): Likewise.
3469 * utils.c (internal_warning): Removed.
3471 2014-08-29 Gary Benson <gbenson@redhat.com>
3473 * main.c (captured_main): Use warning during startup.
3474 Prefix startup warning messages with command name.
3476 2014-08-29 Gary Benson <gbenson@redhat.com>
3478 * main.c (captured_main): Handle usage errors with error.
3480 2014-08-29 Gary Benson <gbenson@redhat.com>
3482 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3483 exit pair with a call to error. Wrap the message with _().
3485 2014-08-29 Gary Benson <gbenson@redhat.com>
3487 * main.c (captured_main): Replace a fprintf/exit
3488 pair with a call to error. Wrap the message with _().
3490 2014-08-29 Gary Benson <gbenson@redhat.com>
3492 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3493 pairs with calls to error. Wrap the message with _().
3495 2014-08-29 Gary Benson <gbenson@redhat.com>
3497 * utils.c (vwarning): Protect calls to target_terminal_ours
3500 2014-08-29 Gary Benson <gbenson@redhat.com>
3502 * exceptions.c (print_flush): Protect calls to
3503 target_terminal_ours and wrap_here.
3505 2014-08-29 Gary Benson <gbenson@redhat.com>
3507 * utils.h (filtered_printing_initialized): New declaration.
3508 * utils.c (abort_with_message): New function.
3509 (internal_vproblem): Use abort_with_message for first level
3510 recursive internal problems, and if gdb_stderr is not set up.
3511 Protect calls to target_terminal_ours, begin_line and query.
3513 2014-08-28 Doug Evans <dje@google.com>
3515 * symtab.c (in_prologue): Move definition to better spot.
3516 (skip_prologue_using_sal): Ditto.
3518 2014-08-28 Doug Evans <dje@google.com>
3520 * symtab.c (find_function_start_sal): Move definition to better spot.
3522 2014-08-28 Yao Qi <yao@codesourcery.com>
3524 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3525 found_stack_adjust in forward scan. Remove condition check
3526 on found_stack_adjust which is always true. Indent the code.
3528 2014-08-28 Yao Qi <yao@codesourcery.com>
3530 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3531 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3532 (dwarf_decode_lines): Remove argument
3533 want_line_info. Remove condition check on want_line_info.
3536 2014-08-27 Doug Evans <dje@google.com>
3538 * dwarf2read.c (dwarf_record_line): Fix typo.
3540 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3542 * target.h (struct target_ops::to_terminal_save_ours): Remove
3544 (target_terminal_save_ours): Remove macro.
3545 * target-delegates.c: Regenerate.
3546 * inf-child.c (inf_child_target): Don't set the nonexistent
3547 field to_terminal_save_ours.
3548 * inferior.h (child_terminal_save_ours): Remove declaration.
3549 * terminal.h (gdb_save_tty_state): New declaration.
3550 * inflow.c (child_terminal_save_ours): Rename to ...
3551 (gdb_save_tty_state): ... this.
3552 * tui/tui.c: Include terminal.h.
3553 (tui_enable): Use gdb_save_tty_state instead of
3554 target_terminal_save_ours.
3555 (tui_disable): Likewise.
3557 2014-08-25 Doug Evans <dje@google.com>
3559 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3560 Pass NULL instead of 0 for context pointer.
3562 2014-08-25 Yao Qi <yao@codesourcery.com>
3564 * dwarf2read.c: Fix grammatical error.
3566 2014-08-24 Yao Qi <yao@codesourcery.com>
3568 * dwarf2read.c (scan_partial_symbols): Update comments.
3569 Rename argument 'need_pc' with 'set_addrmap'.
3570 (add_partial_namespace): Rename argument 'need_pc' with
3572 (add_partial_module): Likewise.
3573 (add_partial_subprogram): Likewise. Update comments.
3574 (dwarf2_name): Fix typo.
3576 2014-08-22 Doug Evans <dje@google.com>
3579 * dwarf2read.c (dwarf_record_line_p): New function.
3580 (dwarf_decode_lines_1): Ignore subsequent line number entries
3581 for the same line if any entry had a non-zero discriminator.
3583 2014-08-22 Doug Evans <dje@google.com>
3585 * buildsym.h (record_line_ftype): New typedef.
3586 (record_line): Use it.
3587 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3588 (dwarf_decode_lines_1): Call them.
3590 2014-08-22 Yao Qi <yao@codesourcery.com>
3592 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3593 (ctf_end): Remove code.
3595 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3598 (linux_make_corefile_notes): call update_thread_list, protected against
3601 2014-08-21 Pedro Alves <palves@redhat.com>
3603 * infcmd.c (attach_command): Remove comment.
3605 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3607 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3608 unsigned LONGEST to ULONGEST.
3610 2014-08-20 Pedro Alves <palves@redhat.com>
3612 * Makefile.in (check-read1): New rule.
3614 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3616 * value.c (value_from_contents_and_address): Strip resolved_type's
3617 typedef layers before checking its TYPE_DATA_LOCATION.
3619 2014-08-20 Pedro Alves <palves@redhat.com>
3621 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3623 2014-08-20 Yao Qi <yao@codesourcery.com>
3625 * amd64-tdep.c (amd64_classify): Add a blank line after the
3626 example. Move "*/" to a new line.
3627 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3628 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3629 * dwarf2read.c (psymtab_include_file_name): Likewise.
3631 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3632 Pedro Alves <palves@redhat.com>
3636 * ada-lang.c (coerce_unspec_val_to_type): Use
3637 value_contents_copy_raw.
3638 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3639 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3640 * cp-valprint.c (cp_print_value_fields): Let the common printing
3641 code handle optimized out values.
3642 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3643 * d-valprint.c (dynamic_array_type): Use
3644 value_bits_any_optimized_out.
3645 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3646 check_any_valid fields.
3647 (check_pieced_value_bits): Delete and inline ...
3648 (check_pieced_synthetic_pointer): ... here.
3649 (check_pieced_value_validity): Delete.
3650 (check_pieced_value_invalid): Delete.
3651 (pieced_value_funcs): Remove check_validity and check_any_valid
3653 (read_pieced_value): Use mark_value_bits_optimized_out.
3654 (write_pieced_value): Switch to use
3655 mark_value_bytes_optimized_out.
3656 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3657 of assuming the whole value is optimized out.
3658 * findvar.c (read_frame_register_value): Remove special handling
3659 of optimized out registers.
3660 (value_from_register): Use mark_value_bytes_optimized_out.
3661 * frame-unwind.c (frame_unwind_got_optimized): Use
3662 mark_value_bytes_optimized_out.
3663 * jv-valprint.c (java_value_print): Adjust.
3664 (java_print_value_fields): Let the common printing code handle
3665 optimized out values.
3666 * mips-tdep.c (mips_print_register): Remove special handling of
3667 optimized out registers.
3668 * opencl-lang.c (lval_func_check_validity): Delete.
3669 (lval_func_check_any_valid): Delete.
3670 (opencl_value_funcs): Remove check_validity and check_any_valid
3672 * p-valprint.c (pascal_object_print_value_fields): Let the common
3673 printing code handle optimized out values.
3674 * stack.c (read_frame_arg): Remove special handling of optimized
3675 out values. Fetch both VAL and ENTRYVAL before comparing
3676 contents. Adjust to value_available_contents_eq rename.
3677 * valprint.c (valprint_check_validity)
3678 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3679 (val_print_array_elements): Adjust.
3680 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3681 (value_bits_any_optimized_out): New function.
3682 (value_entirely_covered_by_range_vector): New function, factored
3683 out from value_entirely_unavailable.
3684 (value_entirely_unavailable): Reimplement.
3685 (value_entirely_optimized_out): New function.
3686 (insert_into_bit_range_vector): New function, factored out from
3687 mark_value_bits_unavailable.
3688 (mark_value_bits_unavailable): Reimplement.
3689 (struct ranges_and_idx): New struct.
3690 (find_first_range_overlap_and_match): New function, factored out
3691 from value_available_contents_bits_eq.
3692 (value_available_contents_bits_eq): Rename to ...
3693 (value_contents_bits_eq): ... this. Check both unavailable
3694 contents and optimized out contents.
3695 (value_available_contents_eq): Rename to ...
3696 (value_contents_eq): ... this.
3697 (allocate_value_lazy): Remove reference to the old optimized_out
3699 (allocate_optimized_out_value): Use
3700 mark_value_bytes_optimized_out.
3701 (require_not_optimized_out): Adjust to check whether the
3702 optimized_out vec is empty.
3703 (ranges_copy_adjusted): New function, factored out from
3704 value_contents_copy_raw.
3705 (value_contents_copy_raw): Also copy the optimized out ranges.
3706 Assert the destination ranges aren't optimized out.
3707 (value_contents_copy): Update comment, remove call to
3708 require_not_optimized_out.
3709 (value_contents_equal): Adjust to check whether the optimized_out
3711 (set_value_optimized_out, value_optimized_out_const): Delete.
3712 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3714 (value_entirely_optimized_out, value_bits_valid): Delete.
3715 (value_copy): Take a VEC copy of the 'optimized_out' field.
3716 (value_primitive_field): Remove special handling of optimized out.
3717 (value_fetch_lazy): Assert that lazy values have no unavailable
3718 regions. Use value_bits_any_optimized_out. Remove some special
3719 handling for optimized out values.
3720 * value.h: Add intro comment about <optimized out> and
3722 (struct lval_funcs): Remove check_validity and check_any_valid
3724 (set_value_optimized_out, value_optimized_out_const): Remove.
3725 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3727 (value_bits_any_optimized_out): New declaration.
3728 (value_bits_valid): Delete declaration.
3729 (value_available_contents_eq): Rename to ...
3730 (value_contents_eq): ... this, and extend comments.
3732 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 Fix -fsanitize=address on unreadable inferior strings.
3735 * valprint.c (val_print_string): Fix access before BUFFER.
3737 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3739 * target.c (target_struct_size): Remove.
3740 (target_struct_allocsize): Remove.
3741 (DEFAULT_ALLOCSIZE): Remove.
3742 (target_ops_p): New typedef.
3743 (DEF_VEC_P (target_ops_p)): New vector type.
3744 (target_structs): Change type to VEC (target_ops_p).
3745 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3746 (find_default_run_target): Rewrite for loop following changes to
3749 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3751 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3752 Adjust code accordingly. Adjust function description comment.
3754 2014-08-19 Yao Qi <yao@codesourcery.com>
3756 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3759 2014-08-19 Alan Modra <amodra@gmail.com>
3761 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3762 * config.in: Regenerate.
3763 * configure: Regenerate.
3765 2014-08-19 Tom Tromey <tromey@redhat.com>
3766 Gary Benson <gbenson@redhat.com>
3768 * common/common-debug.h: New file.
3769 * common/common-debug.c: Likewise.
3770 * debug.c: Likewise.
3771 * Makefile.in (SFILES): Add common/common-debug.c.
3772 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3773 (COMMON_OBS): Add common-debug.o and debug.o.
3774 (common-debug.o): New rule.
3775 * common/common-defs.h: Include common-debug.h.
3776 * common/agent.c (debug_agent_printf): New function.
3777 (DEBUG_AGENT): Redefine.
3778 * nat/i386-dregs.c (debug_printf): Undefine.
3780 2014-08-19 Gary Benson <gbenson@redhat.com>
3782 * common/common-defs.h: Include print-utils.h.
3783 * utils.h: Do not include print-utils.h.
3785 2014-08-19 Tom Tromey <tromey@redhat.com>
3786 Gary Benson <gbenson@redhat.com>
3788 * common/common-types.h: New file.
3789 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3790 * common/common-defs.h: Include common-types.h.
3791 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3794 2014-08-19 Tom Tromey <tromey@redhat.com>
3795 Gary Benson <gbenson@redhat.com>
3797 * common/errors.h: New file.
3798 * common/errors.c: Likewise.
3799 * Makefile.in (SFILES): Add common/errors.c.
3800 (HFILES_NO_SRCDIR): Add common/errors.h.
3801 (COMMON_OBS): Add errors.o.
3802 (errors.o): New rule.
3803 * common/common-defs.h: Include errors.h.
3804 * utils.h (perror_with_name, error, verror, warning, vwarning):
3806 * common/common-utils.h: (malloc_failure, internal_error):
3809 2014-08-19 Gary Benson <gbenson@redhat.com>
3811 * utils.c (internal_vproblem): Always print the message.
3813 2014-08-18 Doug Evans <dje@google.com>
3815 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3817 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3819 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3820 Return 0 if TYPE is dynamic.
3821 (print_range): Add handling of dynamic ranges.
3823 2014-08-18 Keven Boell <keven.boell@intel.com>
3824 Joel Brobecker <brobecker@adacore.com>
3826 * gdbtypes.h (struct main_type): Add field "data_location".
3827 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3828 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3829 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3830 a dynamic data location.
3831 (resolve_dynamic_type): Add DW_AT_data_location handling.
3832 (copy_recursive, copy_type): Copy the data_location information
3834 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3835 * value.c (value_from_contents_and_address): Add
3836 DW_AT_data_location handling.
3838 2014-08-18 Keven Boell <keven.boell@intel.com>
3839 Joel Brobecker <brobecker@adacore.com>
3841 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3842 field "get_object_address".
3843 * dwarf2expr.c (execute_stack_op): Add handling for
3844 DW_OP_push_object_address.
3845 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3846 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3847 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3848 (dwarf_expr_get_obj_addr): New function.
3849 (dwarf_expr_ctx_funcs): Add get_object_address field.
3850 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3851 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3852 (dwarf2_evaluate_property): Add parameter "address". Use it.
3853 (needs_get_obj_addr): New function.
3854 (needs_frame_ctx_funcs): Add get_object_address field.
3855 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3856 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3857 (resolve_dynamic_array): Likewise.
3859 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3861 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3862 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3863 fixed value for records and unions for which some GNAT encodings
3866 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3868 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3869 rewrite to avoid "else if" and "else" constructs. Should be
3870 a no-op in practice.
3872 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3874 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3877 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3880 * eval.c: Update all calls to find_overload_match.
3881 * valarith.c: Likewise.
3882 (value_user_defined_cpp_op, value_user_defined_op): New
3883 argument NOSIDE. Update all callers.
3884 * valops.c (find_overload_match): New argument NOSIDE.
3885 * value.h (find_overload_match): Update signature.
3887 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3889 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3890 'items' methods instead of 'iteritems' method on dictionaries.
3892 2014-08-15 Doug Evans <dje@google.com>
3894 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3897 2014-08-15 Doug Evans <dje@google.com>
3899 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3901 2014-08-15 Doug Evans <dje@google.com>
3903 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3905 2014-08-15 Doug Evans <dje@google.com>
3907 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3910 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3912 * dcache.h: Include target.h, to avoid compile time warnings.
3914 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3916 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3917 frame_info" partial declaration.
3918 * gdbarch.h: Regenerate.
3920 2014-08-15 Yao Qi <yao@codesourcery.com>
3922 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3923 Add parameter 'decode_for_pst_p'. Callers update.
3925 2014-08-13 Yao Qi <yao@codesourcery.com>
3928 * configure.ac: Use local variable 'pos'.
3929 * configure: Regenerated.
3931 2014-08-11 Doug Evans <dje@google.com>
3933 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3934 message, it is redundant with "Reading symbols from ..." message.
3936 2014-08-10 Doug Evans <xdje42@gmail.com>
3938 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3940 2014-08-09 Yao Qi <yao@codesourcery.com>
3943 * remote.c (remote_xfer_partial): Remove dead code.
3945 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3947 * ia64-linux-tdep.c: Include "regset.h".
3948 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3949 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3950 (ia64_linux_supply_fpregset): New function.
3951 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3952 (ia64_linux_regset_from_core_section): New function.
3953 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3956 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3958 * m68klinux-tdep.c: Include "regset.h".
3959 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3960 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3961 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3962 (m68k_linux_regset_from_core_section): New function.
3963 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3966 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3968 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3969 function. Move logic to...
3970 (tilegx_linux_regmap): ... this new register map.
3971 (tilegx_linux_regset): Refer to register map, replace supply
3972 method by regcache_supply_regset, and add collect method.
3973 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3974 TILEGX_FIRST_EASY_REGNUM.
3976 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3978 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3979 that calls regcache_supply_regset and handles the EPC register
3980 separately. Move main logic to...
3981 (score7_linux_gregmap): ... this new register map.
3982 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3983 (score7_linux_gregset): Refer to register map. Add collect method.
3984 (score7_linux_regset_from_core_section): Replace
3985 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3986 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3987 (struct regset): Delete unused forward declaraction.
3988 (struct pt_regs): Delete structure definition.
3989 (elf_gregset_t): Delete typedef.
3991 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3993 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3994 (nios2_core_regset): Add collect method.
3996 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3998 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3999 platform-independent and don't write to read-only input buffer.
4000 (m32r_linux_collect_gregset): New function.
4001 (m32r_linux_gregset): Add collect method.
4003 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4005 * hppa-linux-tdep.c (greg_map): Rename to...
4006 (hppa_linux_gregmap): ... this. Also convert to
4007 regcache_map_entry format.
4008 (hppa_linux_supply_regset): Delete function.
4009 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4010 (hppa_linux_fpregmap): ... this new register map.
4011 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4012 register map, replace supply method by regcache_supply_regset, and
4013 add collect method regcache_collect_regset.
4015 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4017 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4018 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4019 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4020 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4021 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4022 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4023 (frv_linux_supply_gregset): Replace main logic by call to
4024 regcache_supply_regset, but keep clearing gr32-gr63.
4025 (frv_linux_supply_fpregset): Delete function.
4026 (frv_linux_gregset): Refer to appropriate register map and add
4027 regcache_collect_regset as the collect method.
4028 (frv_linux_fpregset): Likewise. Also exchange the supply method
4029 by regcache_supply_regset.
4031 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4033 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4034 by call to alpha_supply_int_regs.
4035 (alpha_linux_collect_gregset): New function.
4036 (alpha_linux_supply_fpregset): Replace logic by call to
4037 alpha_supply_fp_regs.
4038 (alpha_linux_collect_fpregset): New function.
4039 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4043 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4044 by call to regcache_collect_regset.
4045 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4046 instead of aarch64_linux_supply_gregset/_fpregset.
4047 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4048 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4049 header file instead.
4050 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4051 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4052 functions. Move logic to ...
4053 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4055 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4056 refer to new register maps, replace *_regset_from_core by
4057 regcache_supply_regset, and also use regcache_collect_regset.
4058 * aarch64-linux-tdep.h: Include "regset.h".
4059 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4061 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4062 macros, moved from C source file.
4063 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4064 variable declarations.
4066 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4068 * s390-linux-nat.c: Include "regset.h".
4069 (regmap_gregset): Delete macro.
4070 (s390_64_regmap_gregset): New register map for
4071 regcache_supply/_collect_regset.
4072 (s390_64_gregset): New regset.
4073 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4074 (regmap_fpregset): Delete macro.
4075 (s390_native_supply, s390_native_collect): Delete functions.
4076 (supply_gregset, fill_gregset): Replace s390-specific regmap
4077 handling by a call to regcache_supply/_collect_regset.
4078 (supply_fpregset, fill_fpregset): Call regcache_supply/
4079 _collect_regset instead of s390_native_supply/_collect.
4080 (fetch_regset, store_regset): Likewise. Also change the last
4081 parameter to a regset instead of a regmap.
4082 (s390_linux_fetch_inferior_registers)
4083 (390_linux_store_inferior_registers): Adjust last parameter in
4084 calls to fetch_regset and store_regset.
4085 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4086 (s390_gregmap): ... this. Also make static const and convert to
4087 regcache_map_entry format.
4088 (s390x_regmap_gregset): Delete.
4089 (s390_regmap_fpregset): Rename to...
4090 (s390_fpregmap): ... this. Make static const and convert to
4091 regcache_map_entry format.
4092 (s390_regmap_upper, s390_regmap_last_break)
4093 (s390x_regmap_last_break, s390_regmap_system_call)
4094 (s390_regmap_tdb): Likewise.
4095 (s390_supply_regset, s390_collect_regset): Remove functions.
4096 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4098 (s390_gregset, s390_fpregset, s390_upper_regset)
4099 (s390_last_break_regset, s390x_last_break_regset)
4100 (s390_system_call_regset, s390_tdb_regset): Make global and
4101 replace s390_supply/_collect_regset by regcache_supply/
4103 (s390x_gregset): Delete.
4104 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4105 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4106 (s390_regmap_fpregset, s390_regmap_last_break)
4107 (s390x_regmap_last_break, s390_regmap_system_call)
4108 (s390_regmap_tdb): Delete global variable declarations.
4109 (s390_gregset, s390_fpregset, s390_last_break_regset)
4110 (s390x_last_break_regset, s390_system_call_regset)
4111 (s390_tdb_regset): New global variable declarations.
4113 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4115 * regcache.c: Include "regset.h".
4116 (regcache_transfer_regset): New local function.
4117 (regcache_supply_regset, regcache_collect_regset): New functions.
4118 * regcache.h (struct regcache_map_entry): New structure.
4119 (REGCACHE_MAP_SKIP): New enum value.
4120 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4122 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4124 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4125 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4126 (ppc_linux_collect_gregset ): Likewise.
4127 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4128 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4129 (ppc_collect_vrregset): Likewise.
4130 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4133 2014-08-07 Yao Qi <yao@codesourcery.com>
4135 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4136 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4137 * remote.c (remote_read_bytes): Likewise.
4139 2014-08-07 Yao Qi <yao@codesourcery.com>
4141 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4143 2014-08-07 Yao Qi <yao@codesourcery.com>
4146 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4147 TARGET_XFER_OK instead of 0.
4149 2014-08-07 Gary Benson <gbenson@redhat.com>
4151 * common/common-defs.h: Include errno.h.
4152 * defs.h: Do not include errno.h.
4153 * ada-typeprint.c: Likewise.
4154 * c-typeprint.c: Likewise.
4155 * core-regset.c: Likewise.
4156 * corefile.c: Likewise.
4157 * corelow.c: Likewise.
4158 * event-loop.c: Likewise.
4159 * f-typeprint.c: Likewise.
4160 * gnu-nat.c: Likewise.
4161 * go32-nat.c: Likewise.
4162 * i386gnu-nat.c: Likewise.
4163 * m2-typeprint.c: Likewise.
4164 * nat/linux-btrace.c: Likewise.
4165 * p-typeprint.c: Likewise.
4166 * procfs.c: Likewise.
4167 * remote-sim.c: Likewise.
4168 * rs6000-nat.c: Likewise.
4169 * target.c: Likewise.
4170 * typeprint.c: Likewise.
4171 * ui-file.c: Likewise.
4172 * valops.c: Likewise.
4173 * valprint.c: Likewise.
4175 2014-08-07 Gary Benson <gbenson@redhat.com>
4177 * common/common-defs.h: Include string.h.
4178 * aarch64-tdep.c: Do not include string.h.
4179 * ada-exp.y: Likewise.
4180 * ada-lang.c: Likewise.
4181 * ada-lex.l: Likewise.
4182 * ada-typeprint.c: Likewise.
4183 * ada-valprint.c: Likewise.
4184 * aix-thread.c: Likewise.
4185 * alpha-linux-tdep.c: Likewise.
4186 * alpha-mdebug-tdep.c: Likewise.
4187 * alpha-nat.c: Likewise.
4188 * alpha-osf1-tdep.c: Likewise.
4189 * alpha-tdep.c: Likewise.
4190 * alphanbsd-tdep.c: Likewise.
4191 * amd64-dicos-tdep.c: Likewise.
4192 * amd64-linux-tdep.c: Likewise.
4193 * amd64-nat.c: Likewise.
4194 * amd64-sol2-tdep.c: Likewise.
4195 * amd64fbsd-tdep.c: Likewise.
4196 * amd64obsd-tdep.c: Likewise.
4197 * arch-utils.c: Likewise.
4198 * arm-linux-nat.c: Likewise.
4199 * arm-linux-tdep.c: Likewise.
4200 * arm-tdep.c: Likewise.
4201 * arm-wince-tdep.c: Likewise.
4202 * armbsd-tdep.c: Likewise.
4203 * armnbsd-nat.c: Likewise.
4204 * armnbsd-tdep.c: Likewise.
4205 * armobsd-tdep.c: Likewise.
4206 * avr-tdep.c: Likewise.
4207 * ax-gdb.c: Likewise.
4208 * ax-general.c: Likewise.
4209 * bcache.c: Likewise.
4210 * bfin-tdep.c: Likewise.
4211 * breakpoint.c: Likewise.
4212 * build-id.c: Likewise.
4213 * buildsym.c: Likewise.
4214 * c-exp.y: Likewise.
4215 * c-lang.c: Likewise.
4216 * c-typeprint.c: Likewise.
4217 * c-valprint.c: Likewise.
4218 * charset.c: Likewise.
4219 * cli-out.c: Likewise.
4220 * cli/cli-cmds.c: Likewise.
4221 * cli/cli-decode.c: Likewise.
4222 * cli/cli-dump.c: Likewise.
4223 * cli/cli-interp.c: Likewise.
4224 * cli/cli-logging.c: Likewise.
4225 * cli/cli-script.c: Likewise.
4226 * cli/cli-setshow.c: Likewise.
4227 * cli/cli-utils.c: Likewise.
4228 * coffread.c: Likewise.
4229 * common/agent.c: Likewise.
4230 * common/buffer.c: Likewise.
4231 * common/buffer.h: Likewise.
4232 * common/common-utils.c: Likewise.
4233 * common/filestuff.c: Likewise.
4234 * common/filestuff.c: Likewise.
4235 * common/format.c: Likewise.
4236 * common/print-utils.c: Likewise.
4237 * common/rsp-low.c: Likewise.
4238 * common/signals.c: Likewise.
4239 * common/vec.h: Likewise.
4240 * common/xml-utils.c: Likewise.
4241 * core-regset.c: Likewise.
4242 * corefile.c: Likewise.
4243 * corelow.c: Likewise.
4244 * cp-abi.c: Likewise.
4245 * cp-name-parser.y: Likewise.
4246 * cp-support.c: Likewise.
4247 * cp-valprint.c: Likewise.
4248 * cris-tdep.c: Likewise.
4249 * d-exp.y: Likewise.
4250 * darwin-nat.c: Likewise.
4251 * dbxread.c: Likewise.
4252 * dcache.c: Likewise.
4253 * demangle.c: Likewise.
4254 * dicos-tdep.c: Likewise.
4255 * disasm.c: Likewise.
4256 * doublest.c: Likewise.
4257 * dsrec.c: Likewise.
4258 * dummy-frame.c: Likewise.
4259 * dwarf2-frame.c: Likewise.
4260 * dwarf2loc.c: Likewise.
4261 * dwarf2read.c: Likewise.
4262 * elfread.c: Likewise.
4263 * environ.c: Likewise.
4265 * event-loop.c: Likewise.
4266 * exceptions.c: Likewise.
4268 * expprint.c: Likewise.
4269 * f-exp.y: Likewise.
4270 * f-lang.c: Likewise.
4271 * f-typeprint.c: Likewise.
4272 * f-valprint.c: Likewise.
4273 * fbsd-nat.c: Likewise.
4274 * findcmd.c: Likewise.
4275 * findvar.c: Likewise.
4276 * fork-child.c: Likewise.
4277 * frame.c: Likewise.
4278 * frv-linux-tdep.c: Likewise.
4279 * frv-tdep.c: Likewise.
4281 * gdb_bfd.c: Likewise.
4282 * gdbarch.c: Likewise.
4283 * gdbarch.sh: Likewise.
4284 * gdbtypes.c: Likewise.
4285 * gnu-nat.c: Likewise.
4286 * gnu-v2-abi.c: Likewise.
4287 * gnu-v3-abi.c: Likewise.
4288 * go-exp.y: Likewise.
4289 * go-lang.c: Likewise.
4290 * go32-nat.c: Likewise.
4291 * guile/guile.c: Likewise.
4292 * guile/scm-auto-load.c: Likewise.
4293 * hppa-hpux-tdep.c: Likewise.
4294 * hppa-linux-nat.c: Likewise.
4295 * hppanbsd-tdep.c: Likewise.
4296 * hppaobsd-tdep.c: Likewise.
4297 * i386-cygwin-tdep.c: Likewise.
4298 * i386-dicos-tdep.c: Likewise.
4299 * i386-linux-tdep.c: Likewise.
4300 * i386-nto-tdep.c: Likewise.
4301 * i386-sol2-tdep.c: Likewise.
4302 * i386-tdep.c: Likewise.
4303 * i386bsd-tdep.c: Likewise.
4304 * i386gnu-nat.c: Likewise.
4305 * i386nbsd-tdep.c: Likewise.
4306 * i386obsd-tdep.c: Likewise.
4307 * i387-tdep.c: Likewise.
4308 * ia64-libunwind-tdep.c: Likewise.
4309 * ia64-linux-nat.c: Likewise.
4310 * inf-child.c: Likewise.
4311 * inf-ptrace.c: Likewise.
4312 * inf-ttrace.c: Likewise.
4313 * infcall.c: Likewise.
4314 * infcmd.c: Likewise.
4315 * inflow.c: Likewise.
4316 * infrun.c: Likewise.
4317 * interps.c: Likewise.
4318 * iq2000-tdep.c: Likewise.
4319 * irix5-nat.c: Likewise.
4320 * jv-exp.y: Likewise.
4321 * jv-lang.c: Likewise.
4322 * jv-typeprint.c: Likewise.
4323 * jv-valprint.c: Likewise.
4324 * language.c: Likewise.
4325 * linux-fork.c: Likewise.
4326 * linux-nat.c: Likewise.
4327 * lm32-tdep.c: Likewise.
4328 * m2-exp.y: Likewise.
4329 * m2-typeprint.c: Likewise.
4330 * m32c-tdep.c: Likewise.
4331 * m32r-linux-nat.c: Likewise.
4332 * m32r-linux-tdep.c: Likewise.
4333 * m32r-rom.c: Likewise.
4334 * m32r-tdep.c: Likewise.
4335 * m68hc11-tdep.c: Likewise.
4336 * m68k-tdep.c: Likewise.
4337 * m68kbsd-tdep.c: Likewise.
4338 * m68klinux-nat.c: Likewise.
4339 * m68klinux-tdep.c: Likewise.
4340 * m88k-tdep.c: Likewise.
4341 * machoread.c: Likewise.
4342 * macrocmd.c: Likewise.
4344 * mdebugread.c: Likewise.
4345 * mem-break.c: Likewise.
4346 * memattr.c: Likewise.
4347 * memory-map.c: Likewise.
4348 * mep-tdep.c: Likewise.
4349 * mi/mi-cmd-break.c: Likewise.
4350 * mi/mi-cmd-disas.c: Likewise.
4351 * mi/mi-cmd-env.c: Likewise.
4352 * mi/mi-cmd-stack.c: Likewise.
4353 * mi/mi-cmd-var.c: Likewise.
4354 * mi/mi-cmds.c: Likewise.
4355 * mi/mi-console.c: Likewise.
4356 * mi/mi-getopt.c: Likewise.
4357 * mi/mi-interp.c: Likewise.
4358 * mi/mi-main.c: Likewise.
4359 * mi/mi-parse.c: Likewise.
4360 * microblaze-rom.c: Likewise.
4361 * microblaze-tdep.c: Likewise.
4362 * mingw-hdep.c: Likewise.
4363 * minidebug.c: Likewise.
4364 * minsyms.c: Likewise.
4365 * mips-irix-tdep.c: Likewise.
4366 * mips-linux-tdep.c: Likewise.
4367 * mips-tdep.c: Likewise.
4368 * mips64obsd-tdep.c: Likewise.
4369 * mipsnbsd-tdep.c: Likewise.
4370 * mipsread.c: Likewise.
4371 * mn10300-linux-tdep.c: Likewise.
4372 * mn10300-tdep.c: Likewise.
4373 * monitor.c: Likewise.
4374 * moxie-tdep.c: Likewise.
4375 * mt-tdep.c: Likewise.
4376 * nat/linux-btrace.c: Likewise.
4377 * nat/linux-osdata.c: Likewise.
4378 * nat/linux-procfs.c: Likewise.
4379 * nat/linux-ptrace.c: Likewise.
4380 * nat/linux-waitpid.c: Likewise.
4381 * nbsd-tdep.c: Likewise.
4382 * nios2-linux-tdep.c: Likewise.
4383 * nto-procfs.c: Likewise.
4384 * nto-tdep.c: Likewise.
4385 * objc-lang.c: Likewise.
4386 * objfiles.c: Likewise.
4387 * opencl-lang.c: Likewise.
4388 * osabi.c: Likewise.
4389 * osdata.c: Likewise.
4390 * p-exp.y: Likewise.
4391 * p-lang.c: Likewise.
4392 * p-typeprint.c: Likewise.
4393 * parse.c: Likewise.
4394 * posix-hdep.c: Likewise.
4395 * ppc-linux-nat.c: Likewise.
4396 * ppc-sysv-tdep.c: Likewise.
4397 * ppcfbsd-tdep.c: Likewise.
4398 * ppcnbsd-tdep.c: Likewise.
4399 * ppcobsd-tdep.c: Likewise.
4400 * printcmd.c: Likewise.
4401 * procfs.c: Likewise.
4402 * prologue-value.c: Likewise.
4403 * python/py-auto-load.c: Likewise.
4404 * python/py-gdb-readline.c: Likewise.
4405 * ravenscar-thread.c: Likewise.
4406 * regcache.c: Likewise.
4407 * registry.c: Likewise.
4408 * remote-fileio.c: Likewise.
4409 * remote-m32r-sdi.c: Likewise.
4410 * remote-mips.c: Likewise.
4411 * remote-notif.c: Likewise.
4412 * remote-sim.c: Likewise.
4413 * remote.c: Likewise.
4414 * reverse.c: Likewise.
4415 * rs6000-aix-tdep.c: Likewise.
4416 * ser-base.c: Likewise.
4417 * ser-go32.c: Likewise.
4418 * ser-mingw.c: Likewise.
4419 * ser-pipe.c: Likewise.
4420 * ser-tcp.c: Likewise.
4421 * ser-unix.c: Likewise.
4422 * serial.c: Likewise.
4423 * sh-tdep.c: Likewise.
4424 * sh64-tdep.c: Likewise.
4425 * shnbsd-tdep.c: Likewise.
4427 * sol-thread.c: Likewise.
4428 * solib-dsbt.c: Likewise.
4429 * solib-frv.c: Likewise.
4430 * solib-osf.c: Likewise.
4431 * solib-som.c: Likewise.
4432 * solib-spu.c: Likewise.
4433 * solib-target.c: Likewise.
4434 * solib.c: Likewise.
4435 * somread.c: Likewise.
4436 * source.c: Likewise.
4437 * sparc-nat.c: Likewise.
4438 * sparc-sol2-tdep.c: Likewise.
4439 * sparc-tdep.c: Likewise.
4440 * sparc64-tdep.c: Likewise.
4441 * sparc64fbsd-tdep.c: Likewise.
4442 * sparc64nbsd-tdep.c: Likewise.
4443 * sparcnbsd-tdep.c: Likewise.
4444 * spu-linux-nat.c: Likewise.
4445 * spu-multiarch.c: Likewise.
4446 * spu-tdep.c: Likewise.
4447 * stabsread.c: Likewise.
4448 * stack.c: Likewise.
4449 * std-regs.c: Likewise.
4450 * symfile.c: Likewise.
4451 * symmisc.c: Likewise.
4452 * symtab.c: Likewise.
4453 * target.c: Likewise.
4454 * thread.c: Likewise.
4455 * tilegx-linux-nat.c: Likewise.
4456 * tilegx-tdep.c: Likewise.
4458 * tracepoint.c: Likewise.
4459 * tui/tui-command.c: Likewise.
4460 * tui/tui-data.c: Likewise.
4461 * tui/tui-disasm.c: Likewise.
4462 * tui/tui-file.c: Likewise.
4463 * tui/tui-layout.c: Likewise.
4464 * tui/tui-out.c: Likewise.
4465 * tui/tui-regs.c: Likewise.
4466 * tui/tui-source.c: Likewise.
4467 * tui/tui-stack.c: Likewise.
4468 * tui/tui-win.c: Likewise.
4469 * tui/tui-windata.c: Likewise.
4470 * tui/tui-winsource.c: Likewise.
4471 * typeprint.c: Likewise.
4472 * ui-file.c: Likewise.
4473 * ui-out.c: Likewise.
4474 * user-regs.c: Likewise.
4475 * utils.c: Likewise.
4476 * v850-tdep.c: Likewise.
4477 * valarith.c: Likewise.
4478 * valops.c: Likewise.
4479 * valprint.c: Likewise.
4480 * value.c: Likewise.
4481 * varobj.c: Likewise.
4482 * vax-tdep.c: Likewise.
4483 * vaxnbsd-tdep.c: Likewise.
4484 * vaxobsd-tdep.c: Likewise.
4485 * windows-nat.c: Likewise.
4486 * xcoffread.c: Likewise.
4487 * xml-support.c: Likewise.
4488 * xstormy16-tdep.c: Likewise.
4489 * xtensa-linux-nat.c: Likewise.
4491 2014-08-07 Gary Benson <gbenson@redhat.com>
4493 * common/common-defs.h: Include gdb_assert.h.
4494 * aarch64-tdep.c: Do not include gdb_assert.h.
4495 * addrmap.c: Likewise.
4496 * aix-thread.c: Likewise.
4497 * alpha-linux-tdep.c: Likewise.
4498 * alpha-mdebug-tdep.c: Likewise.
4499 * alphanbsd-tdep.c: Likewise.
4500 * amd64-nat.c: Likewise.
4501 * amd64-tdep.c: Likewise.
4502 * amd64bsd-nat.c: Likewise.
4503 * amd64fbsd-nat.c: Likewise.
4504 * amd64fbsd-tdep.c: Likewise.
4505 * amd64nbsd-nat.c: Likewise.
4506 * amd64nbsd-tdep.c: Likewise.
4507 * amd64obsd-nat.c: Likewise.
4508 * amd64obsd-tdep.c: Likewise.
4509 * arch-utils.c: Likewise.
4510 * arm-tdep.c: Likewise.
4511 * armbsd-tdep.c: Likewise.
4513 * bcache.c: Likewise.
4514 * bfin-tdep.c: Likewise.
4515 * blockframe.c: Likewise.
4516 * breakpoint.c: Likewise.
4517 * bsd-kvm.c: Likewise.
4518 * bsd-uthread.c: Likewise.
4519 * buildsym.c: Likewise.
4520 * c-exp.y: Likewise.
4521 * c-lang.c: Likewise.
4522 * charset.c: Likewise.
4523 * cleanups.c: Likewise.
4524 * cli-out.c: Likewise.
4525 * cli/cli-decode.c: Likewise.
4526 * cli/cli-dump.c: Likewise.
4527 * cli/cli-logging.c: Likewise.
4528 * cli/cli-script.c: Likewise.
4529 * cli/cli-utils.c: Likewise.
4530 * coffread.c: Likewise.
4531 * common/common-utils.c: Likewise.
4532 * common/queue.h: Likewise.
4533 * common/signals.c: Likewise.
4534 * common/vec.h: Likewise.
4535 * complaints.c: Likewise.
4536 * completer.c: Likewise.
4537 * corelow.c: Likewise.
4538 * cp-abi.c: Likewise.
4539 * cp-name-parser.y: Likewise.
4540 * cp-namespace.c: Likewise.
4541 * cp-support.c: Likewise.
4542 * cris-tdep.c: Likewise.
4543 * dbxread.c: Likewise.
4544 * dictionary.c: Likewise.
4545 * doublest.c: Likewise.
4546 * dsrec.c: Likewise.
4547 * dummy-frame.c: Likewise.
4548 * dwarf2-frame-tailcall.c: Likewise.
4549 * dwarf2-frame.c: Likewise.
4550 * dwarf2expr.c: Likewise.
4551 * dwarf2loc.c: Likewise.
4552 * dwarf2read.c: Likewise.
4554 * event-loop.c: Likewise.
4555 * exceptions.c: Likewise.
4556 * expprint.c: Likewise.
4557 * f-valprint.c: Likewise.
4558 * fbsd-nat.c: Likewise.
4559 * findvar.c: Likewise.
4560 * frame-unwind.c: Likewise.
4561 * frame.c: Likewise.
4562 * frv-tdep.c: Likewise.
4563 * gcore.c: Likewise.
4564 * gdb-dlfcn.c: Likewise.
4565 * gdb_bfd.c: Likewise.
4566 * gdbarch.c: Likewise.
4567 * gdbarch.sh: Likewise.
4568 * gdbtypes.c: Likewise.
4569 * gnu-nat.c: Likewise.
4570 * gnu-v3-abi.c: Likewise.
4571 * go-lang.c: Likewise.
4572 * guile/scm-exception.c: Likewise.
4573 * guile/scm-gsmob.c: Likewise.
4574 * guile/scm-lazy-string.c: Likewise.
4575 * guile/scm-math.c: Likewise.
4576 * guile/scm-pretty-print.c: Likewise.
4577 * guile/scm-safe-call.c: Likewise.
4578 * guile/scm-utils.c: Likewise.
4579 * guile/scm-value.c: Likewise.
4580 * h8300-tdep.c: Likewise.
4581 * hppa-hpux-nat.c: Likewise.
4582 * hppa-tdep.c: Likewise.
4583 * hppanbsd-tdep.c: Likewise.
4584 * hppaobsd-tdep.c: Likewise.
4585 * i386-darwin-nat.c: Likewise.
4586 * i386-darwin-tdep.c: Likewise.
4587 * i386-nto-tdep.c: Likewise.
4588 * i386-tdep.c: Likewise.
4589 * i386bsd-nat.c: Likewise.
4590 * i386fbsd-tdep.c: Likewise.
4591 * i386gnu-nat.c: Likewise.
4592 * i386nbsd-tdep.c: Likewise.
4593 * i386obsd-tdep.c: Likewise.
4594 * i387-tdep.c: Likewise.
4595 * ia64-libunwind-tdep.c: Likewise.
4596 * ia64-tdep.c: Likewise.
4597 * inf-ptrace.c: Likewise.
4598 * inf-ttrace.c: Likewise.
4599 * infcall.c: Likewise.
4600 * infcmd.c: Likewise.
4601 * infrun.c: Likewise.
4602 * inline-frame.c: Likewise.
4603 * interps.c: Likewise.
4604 * jv-lang.c: Likewise.
4605 * jv-typeprint.c: Likewise.
4606 * linux-fork.c: Likewise.
4607 * linux-nat.c: Likewise.
4608 * linux-thread-db.c: Likewise.
4609 * m32c-tdep.c: Likewise.
4610 * m32r-linux-nat.c: Likewise.
4611 * m32r-tdep.c: Likewise.
4612 * m68k-tdep.c: Likewise.
4613 * m68kbsd-nat.c: Likewise.
4614 * m68kbsd-tdep.c: Likewise.
4615 * m88k-tdep.c: Likewise.
4616 * machoread.c: Likewise.
4617 * macroexp.c: Likewise.
4618 * macrotab.c: Likewise.
4619 * maint.c: Likewise.
4620 * mdebugread.c: Likewise.
4621 * memory-map.c: Likewise.
4622 * mep-tdep.c: Likewise.
4623 * mi/mi-common.c: Likewise.
4624 * microblaze-tdep.c: Likewise.
4625 * mingw-hdep.c: Likewise.
4626 * mips-linux-nat.c: Likewise.
4627 * mips-linux-tdep.c: Likewise.
4628 * mips-tdep.c: Likewise.
4629 * mips64obsd-tdep.c: Likewise.
4630 * mipsnbsd-tdep.c: Likewise.
4631 * mn10300-linux-tdep.c: Likewise.
4632 * mn10300-tdep.c: Likewise.
4633 * moxie-tdep.c: Likewise.
4634 * mt-tdep.c: Likewise.
4635 * nat/linux-btrace.c: Likewise.
4636 * nat/linux-osdata.c: Likewise.
4637 * nat/linux-ptrace.c: Likewise.
4638 * nat/mips-linux-watch.c: Likewise.
4639 * nios2-linux-tdep.c: Likewise.
4640 * nios2-tdep.c: Likewise.
4641 * objc-lang.c: Likewise.
4642 * objfiles.c: Likewise.
4643 * obsd-nat.c: Likewise.
4644 * opencl-lang.c: Likewise.
4645 * osabi.c: Likewise.
4646 * parse.c: Likewise.
4647 * ppc-linux-nat.c: Likewise.
4648 * ppc-sysv-tdep.c: Likewise.
4649 * ppcfbsd-nat.c: Likewise.
4650 * ppcfbsd-tdep.c: Likewise.
4651 * ppcnbsd-nat.c: Likewise.
4652 * ppcnbsd-tdep.c: Likewise.
4653 * ppcobsd-nat.c: Likewise.
4654 * ppcobsd-tdep.c: Likewise.
4655 * printcmd.c: Likewise.
4656 * procfs.c: Likewise.
4657 * prologue-value.c: Likewise.
4658 * psymtab.c: Likewise.
4659 * python/py-lazy-string.c: Likewise.
4660 * python/py-value.c: Likewise.
4661 * regcache.c: Likewise.
4662 * reggroups.c: Likewise.
4663 * registry.c: Likewise.
4664 * remote-sim.c: Likewise.
4665 * remote.c: Likewise.
4666 * rs6000-aix-tdep.c: Likewise.
4667 * rs6000-tdep.c: Likewise.
4668 * s390-linux-tdep.c: Likewise.
4669 * score-tdep.c: Likewise.
4670 * ser-base.c: Likewise.
4671 * ser-mingw.c: Likewise.
4672 * sh-tdep.c: Likewise.
4673 * sh64-tdep.c: Likewise.
4674 * solib-darwin.c: Likewise.
4675 * solib-spu.c: Likewise.
4676 * solib-svr4.c: Likewise.
4677 * source.c: Likewise.
4678 * sparc-nat.c: Likewise.
4679 * sparc-sol2-tdep.c: Likewise.
4680 * sparc-tdep.c: Likewise.
4681 * sparc64-sol2-tdep.c: Likewise.
4682 * sparc64-tdep.c: Likewise.
4683 * sparc64fbsd-tdep.c: Likewise.
4684 * sparc64nbsd-tdep.c: Likewise.
4685 * sparc64obsd-tdep.c: Likewise.
4686 * sparcnbsd-tdep.c: Likewise.
4687 * sparcobsd-tdep.c: Likewise.
4688 * spu-multiarch.c: Likewise.
4689 * spu-tdep.c: Likewise.
4690 * stabsread.c: Likewise.
4691 * stack.c: Likewise.
4692 * symfile.c: Likewise.
4693 * symtab.c: Likewise.
4694 * target-descriptions.c: Likewise.
4695 * target-memory.c: Likewise.
4696 * target.c: Likewise.
4697 * tic6x-linux-tdep.c: Likewise.
4698 * tic6x-tdep.c: Likewise.
4699 * tilegx-linux-nat.c: Likewise.
4700 * tilegx-tdep.c: Likewise.
4702 * tramp-frame.c: Likewise.
4703 * tui/tui-out.c: Likewise.
4704 * tui/tui-winsource.c: Likewise.
4705 * ui-out.c: Likewise.
4706 * user-regs.c: Likewise.
4707 * utils.c: Likewise.
4708 * v850-tdep.c: Likewise.
4709 * valops.c: Likewise.
4710 * value.c: Likewise.
4711 * varobj.c: Likewise.
4712 * vax-nat.c: Likewise.
4713 * xml-syscall.c: Likewise.
4714 * xml-tdesc.c: Likewise.
4715 * xstormy16-tdep.c: Likewise.
4716 * xtensa-linux-nat.c: Likewise.
4717 * xtensa-tdep.c: Likewise.
4719 2014-08-07 Gary Benson <gbenson@redhat.com>
4721 * common/common-defs.h: Include common-utils.h.
4722 * defs.h: Do not include common-utils.h.
4723 * common/gdb_assert.h: Likewise.
4724 * darwin-nat.h: Likewise.
4725 * nat/linux-btrace.c: Likewise.
4726 * target/waitstatus.h: Likewise.
4728 2014-08-07 Gary Benson <gbenson@redhat.com>
4730 * common/common-defs.h: Include ptid.h.
4731 * defs.h: Do not include ptid.h.
4732 * inferior.h: Likewise.
4733 * infrun.h: Likewise.
4734 * nat/linux-btrace.h: Likewise.
4735 * nat/linux-osdata.h: Likewise.
4736 * target/waitstatus.h: Likewise.
4738 2014-08-07 Gary Benson <gbenson@redhat.com>
4740 * common/common-defs.h: Include gdb_locale.h.
4741 * defs.h: Do not include gdb_locale.h.
4743 2014-08-07 Gary Benson <gbenson@redhat.com>
4745 * common/common-defs.h: Include gdb/signals.h.
4746 * defs.h: Do not include gdb/signals.h.
4748 2014-08-07 Gary Benson <gbenson@redhat.com>
4750 * common/common-defs.h: Include pathmax.h.
4751 * defs.h: Do not include pathmax.h.
4753 2014-08-07 Gary Benson <gbenson@redhat.com>
4755 * common/common-defs.h: Include libiberty.h.
4756 * defs.h: Do not include libiberty.h.
4757 * common/queue.h: Likewise.
4758 * cp-name-parser.y: Likewise.
4759 * mi/mi-cmd-catch.c: Likewise.
4760 * python/python.c: Likewise.
4762 2014-08-07 Gary Benson <gbenson@redhat.com>
4764 * common/common-defs.h: Include ansidecl.h.
4765 * defs.h: Do not include ansidecl.h.
4766 * common/buffer.h: Likewise.
4767 * common/common-utils.h: Likewise.
4769 2014-08-07 Gary Benson <gbenson@redhat.com>
4771 * common/common-defs.h: Include stddef.h.
4772 * defs.h: Do not include stddef.h.
4773 * common/common-utils.h: Likewise.
4774 * amd64fbsd-nat.c: Likewise.
4775 * bcache.c: Likewise.
4776 * charset.c: Likewise.
4777 * common/buffer.h: Likewise.
4778 * common/vec.h: Likewise.
4779 * i386bsd-nat.c: Likewise.
4780 * nat/linux-btrace.h: Likewise.
4781 * ppcfbsd-nat.c: Likewise.
4782 * ppcnbsd-tdep.h: Likewise.
4783 * ppcobsd-nat.c: Likewise.
4784 * ppcobsd-tdep.h: Likewise.
4785 * python/py-gdb-readline.c: Likewise.
4787 2014-08-07 Gary Benson <gbenson@redhat.com>
4789 * common/common-defs.h: Include stdarg.h.
4790 * defs.h: Do not include stdarg.h.
4791 * ada-lang.c: Likewise.
4792 * common/common-utils.h: Likewise.
4793 * guile/scm-string.c: Likewise.
4794 * guile/scm-utils.c: Likewise.
4795 * m32c-tdep.c: Likewise.
4797 2014-08-07 Gary Benson <gbenson@redhat.com>
4799 * common/common-defs.h: Include stdlib.h.
4800 * defs.h: Do not include stdlib.h.
4801 * addrmap.c: Likewise.
4802 * bcache.c: Likewise.
4803 * common/buffer.c: Likewise.
4804 * common/common-utils.c: Likewise.
4805 * cp-name-parser.y: Likewise.
4806 * go32-nat.c: Likewise.
4807 * mn10300-linux-tdep.c: Likewise.
4808 * nat/linux-osdata.c: Likewise.
4809 * tui/tui.c: Likewise.
4810 * windows-nat.c: Likewise.
4812 2014-08-07 Gary Benson <gbenson@redhat.com>
4814 * common/common-defs.h: Include stdio.h.
4815 * defs.h: Do not include stdio.h.
4816 * ada-lang.c: Likewise.
4817 * common/buffer.c: Likewise.
4818 * common/common-utils.c: Likewise.
4819 * cp-name-parser.y: Likewise.
4820 * gnu-nat.c: Likewise.
4821 * go32-nat.c: Likewise.
4822 * i386gnu-nat.c: Likewise.
4823 * proc-api.c: Likewise.
4824 * proc-events.c: Likewise.
4825 * proc-flags.c: Likewise.
4826 * proc-why.c: Likewise.
4827 * python/python-internal.h: Likewise.
4828 * target-memory.c: Likewise.
4829 * tui/tui-io.c: Likewise.
4830 * tui/tui.c: Likewise.
4832 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4834 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4835 (scan_dyntag_auxv): Same.
4837 2014-08-06 Yao Qi <yao@codesourcery.com>
4839 * amd64-linux-nat.c: Remove duplicated include
4841 * i386-linux-nat.c: Likewise.
4843 2014-08-06 Yao Qi <yao@codesourcery.com>
4845 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4846 operand" with "Special opcode" in comments.
4848 2014-08-05 Gary Benson <gbenson@redhat.com>
4850 * interps.c (initialize_interps): Remove prototype.
4851 (interpreter_initialized): Remove static global.
4852 (interp_add): Do not call initialize_interps.
4853 (initialize_interps): Remove function.
4855 2014-08-05 Gary Benson <gbenson@redhat.com>
4857 * utils.c (vwarning): Remove spurious va_end.
4859 2014-08-05 Alan Modra <amodra@gmail.com>
4861 * charset.c (convert_between_encodings): Cast result of obstack_base.
4862 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4863 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4864 (read_unwind_info): Use size_t for some locals.
4865 * jit.c (finalize_symtab): Likewise.
4866 * utils.c (hashtab_obstack_allocate): Likewise.
4867 * symmisc.c (print_objfile_statistics): Update format strings.
4869 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4872 (Changes in GDB 7.8): ... here.
4874 2014-08-04 Tom Tromey <tromey@redhat.com>
4876 * target.c (set_targetdebug): New function.
4877 (initialize_targets): Pass set_targetdebug when creating "set
4880 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4882 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4883 if detecting a variable-sized field that is not the last field.
4884 Fix struct type length computation.
4886 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4888 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4891 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4893 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4894 Remove "+ 8" offset in computation of CHAIN_VMA.
4896 2014-07-31 Doug Evans <dje@google.com>
4898 * inflow.c (child_terminal_inferior): Add comment.
4899 (child_terminal_ours_for_output): Add comment.
4900 (child_terminal_ours): Add comment.
4901 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4902 (linux_nat_terminal_ours): Add comment.
4904 2014-07-31 Gary Benson <gbenson@redhat.com>
4906 * common/btrace-common.h: Do not include defs.h or server.h.
4907 * nat/mips-linux-watch.h: Likewise.
4908 * gdb-dlfcn.h: Do not include defs.h.
4909 * tracefile.h: Likewise.
4911 2014-07-30 Roland McGrath <mcgrathr@google.com>
4913 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4915 2014-07-30 Tom Tromey <tromey@redhat.com>
4917 * bsd-kvm.c (bsd_kvm_open): Constify.
4918 * corelow.c (core_open): Constify.
4919 * ctf.c (ctf_open): Constify.
4920 * dbug-rom.c (dbug_open): Constify.
4921 * exec.c (exec_open): Constify.
4922 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4923 * microblaze-rom.c (picobug_open): Constify.
4924 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4926 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4927 * record-btrace.c (record_btrace_open): Constify.
4928 * record-full.c (record_full_core_open_1, record_full_open_1)
4929 (record_full_open): Constify.
4930 * remote-m32r-sdi.c (m32r_open): Constify.
4931 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4932 (rockhopper_open, lsi_open): Constify.
4933 * remote-sim.c (gdbsim_open): Constify.
4934 * remote.c (remote_open, extended_remote_open, remote_open_1):
4936 * target.h (struct target_ops) <to_open>: Make "arg" const.
4937 * tracefile-tfile.c (tfile_open): Constify.
4939 2014-07-30 Tom Tromey <tromey@redhat.com>
4941 * breakpoint.c (map_breakpoint_numbers): Update.
4942 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4943 (get_number_const): New function.
4944 (get_number): Rewrite using get_number_const.
4945 (init_number_or_range): Make "string" const.
4946 (number_is_in_list): Make "list" const.
4947 * cli/cli-utils.h (get_number_const): Declare.
4948 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4949 (init_number_or_range, number_is_in_list): Update.
4950 * printcmd.c (map_display_numbers): Update.
4951 * value.c (value_from_history_ref): Constify.
4952 * value.h (value_from_history_ref): Update.
4954 2014-07-30 Tom Tromey <tromey@redhat.com>
4956 * corefile.c (hook_type, call_extra_exec_file_hooks)
4957 (specify_exec_file_hook): Constify.
4958 * exec.c (exec_file_attach): Make "filename" const.
4959 * gdbcore.h (deprecated_exec_file_display_hook)
4960 (specify_exec_file_hook, exec_file_attach): Constify.
4961 * main.c (captured_main): Use catch_command_errors_const.
4963 2014-07-30 Tom Tromey <tromey@redhat.com>
4965 * target.c (open_target): New function.
4966 (add_target_with_completer, add_deprecated_target_alias): Use
4967 set_cmd_sfunc, set_cmd_context.
4968 (debug_to_open): Remove.
4969 (setup_target_debug): Update.
4971 2014-07-30 Yao Qi <yao@codesourcery.com>
4973 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4975 * parse.c (exp_iterate): Update comments.
4977 2014-07-30 Gary Benson <gbenson@redhat.com>
4979 * common/common-defs.h: New file.
4980 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4981 * defs.h: Include common-defs.h.
4982 Do not include config.h or build-gnulib/config.h.
4984 2014-07-30 Gary Benson <gbenson@redhat.com>
4986 * common/common-utils.h: Do not include config.h.
4987 * nat/linux-btrace.h: Likewise.
4989 2014-07-30 Gary Benson <gbenson@redhat.com>
4991 * btrace.c: Include defs.h.
4992 * common/ptid.c: Include defs.h or server.h as appropriate.
4993 * nat/mips-linux-watch.c: Likewise.
4995 2014-07-29 Tom Tromey <tromey@redhat.com>
4997 * target.c (target_is_pushed): Simplify.
4999 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5003 2014-07-29 Yao Qi <yao@codesourcery.com>
5006 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5008 2014-07-28 Doug Evans <xdje42@gmail.com>
5011 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5012 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5015 2014-07-28 Will Newton <will.newton@linaro.org>
5017 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5018 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5019 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5020 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5021 (THUMB2_EABI_SYSCALL): Likewise.
5022 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5024 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5025 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5027 2014-07-27 Doug Evans <xdje42@gmail.com>
5029 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5031 2014-07-27 Doug Evans <xdje42@gmail.com>
5033 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5035 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5036 Doug Evans <xdje42@gmail.com>
5039 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5040 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5041 * configure.ac: Try to use guild to compile an scm file, if it fails
5042 then disable guile support.
5043 * configure: Regenerate.
5044 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5046 (GUILE_COMPILED_FILES): New variable.
5047 (GUILE_FILES) Update.
5048 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5049 (stamp-guile): Compile scm files.
5050 * guile/guile.c (boot_guile_support): New function.
5051 (standard_throw_args_p): New function.
5052 (print_standard_throw_error, print_throw_error): New functions.
5053 (handle_boot_error): New function.
5054 (initialize_scheme_side): Rewrite to call boot_guile_support.
5055 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5056 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5058 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5059 Doug Evans <xdje42@gmail.com>
5062 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5063 * guile/lib/gdb/support.scm: New file.
5064 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5065 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5067 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5069 (%assert-type): Ditto, and renamed to assert-type.
5070 (%exception-print-style): Delete.
5072 2014-07-26 Doug Evans <xdje42@gmail.com>
5075 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5076 * configure: Regenerate.
5077 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5079 (PYTHON_FILES): New variable.
5080 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5081 (GUILE_FILES): New variable.
5082 (stamp-python, install-python, uninstall-python): Handle empty
5084 (stamp-guile, install-guile, uninstall-guile): Ditto.
5086 2014-07-26 Doug Evans <xdje42@gmail.com>
5089 * guile/lib/gdb.scm (pretty-printers): Export.
5090 (set-pretty-printers!): Export.
5091 * guile/lib/gdb/printing.scm (gdb module): Update.
5092 (prepend-pretty-printer!, append-pretty-printer!): Update.
5093 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5094 (pretty_printer_list_var): Delete.
5095 (pretty_printer_list): New static global.
5096 (gdbscm_pretty_printers): New function.
5097 (gdbscm_set_pretty_printers_x): New function.
5098 (ppscm_find_pretty_printer_from_gdb): Update.
5099 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5100 (gdbscm_initialize_pretty_printers): Update.
5102 2014-07-26 Doug Evans <xdje42@gmail.com>
5105 * configure.ac: Add check for header gc/gc.h.
5106 Add check for function setenv.
5107 * configure: Regenerate.
5108 * config.in: Regenerate.
5109 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5111 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5113 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5114 variation in gdbarch matching.
5116 2014-07-25 Tom Tromey <tromey@redhat.com>
5118 * exec.c (using_exec_ops): Remove.
5119 (exec_close_1): Update. Remove extraneous block, reindent.
5120 (add_target_sections): Use target_is_pushed.
5122 2014-07-25 Pedro Alves <palves@redhat.com>
5124 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5125 * monitor.c (monitor_create_inferior): Likewise.
5126 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5127 * remote-sim.c (gdbsim_create_inferior): Likewise.
5128 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5129 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5130 * windows-nat.c (do_initial_windows_stuff): Likewise.
5132 2014-07-25 Pedro Alves <palves@redhat.com>
5134 * NEWS: Mention signal passing and "signal" command changes.
5135 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5137 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5139 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5140 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5141 (jump_command): Adjust clear_proceed_status call.
5142 (signal_command): Warn if other thread that are resumed have
5143 signals that will be delivered. Adjust clear_proceed_status call.
5144 (until_next_command, finish_command)
5145 (proceed_after_attach_callback, attach_command_post_wait)
5146 (attach_command): Adjust clear_proceed_status call.
5147 * infrun.c (proceed_after_vfork_done): Likewise.
5148 (proceed_after_attach_callback): Adjust comment.
5149 (clear_proceed_status_thread): Clear stop_signal if not in pass
5151 (clear_proceed_status_callback): Delete.
5152 (clear_proceed_status): New 'step' parameter. Only clear the
5153 proceed status of threads the command being prepared is about to
5155 (proceed): If passed in an explicit signal, override stop_signal
5156 with it. Don't pass the last stop signal to the thread we're
5158 (init_wait_for_inferior): Adjust clear_proceed_status call.
5159 (switch_back_to_stepped_thread): Clear the signal if it should not
5161 * infrun.h (clear_proceed_status): New 'step' parameter.
5162 (user_visible_resume_ptid): Add comment.
5163 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5164 signal is in pass state.
5165 * remote.c (append_pending_thread_resumptions): Likewise.
5166 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5168 2014-07-25 Tom Tromey <tromey@redhat.com>
5170 * target.h (target_stopped_data_address)
5171 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5174 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5176 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5178 (avr_pointer_to_address): Likewise.
5180 2014-07-24 Tom Tromey <tromey@redhat.com>
5182 * monitor.c (compile_pattern): Update.
5183 * target.h (struct target_ops) <to_shortname, to_longname,
5186 2014-07-24 Tom Tromey <tromey@redhat.com>
5188 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5189 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5190 (add_info_alias, add_com): Make "doc" const.
5191 (print_doc_line): Make "str" const.
5192 (delete_cmd): Update.
5193 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5194 (print_doc_line): Update.
5195 * cli/cli-script.c (document_command): Update.
5196 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5197 (add_com, add_info, add_info_alias): Update.
5198 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5199 * python/py-cmd.c (cmdpy_destroyer): Update.
5201 2014-07-24 Tom Tromey <tromey@redhat.com>
5203 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5204 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5205 (help_cmd_list): Constify.
5206 (lookup_cmd): Update.
5207 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5209 (help_cmd_list, apropos_cmd): Update.
5210 * cli/cli-script.c (show_user): Update.
5211 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5212 * cli/cli-setshow.h (cmd_show_list): Update.
5213 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5214 (cmd_show_list): Update.
5215 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5216 * python/py-cmd.c (cmdpy_destroyer): Update.
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5220 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5221 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5223 * command.h (deprecate_cmd): Update.
5224 * maint.c (maintenance_do_deprecate): Add casts.
5226 2014-07-24 Tom Tromey <tromey@redhat.com>
5228 * cli/cli-decode.c (help_cmd): Make parameter "const".
5229 * cli/cli-decode.h (help_cmd): Update.
5231 2014-07-24 Tom Tromey <tromey@redhat.com>
5233 * stack.c (up_silently_base, down_silently_base): Make argument
5236 2014-07-24 Tom Tromey <tromey@redhat.com>
5238 * solib.c (solib_add): Make "pattern" const.
5239 * solib.h (solib_add): Update.
5241 2014-07-24 Tom Tromey <tromey@redhat.com>
5243 * remote.c (remote_serial_open, print_packet, putpkt)
5244 (putpkt_binary): Constify.
5245 * remote.h (putpkt): Update.
5247 2014-07-24 Tom Tromey <tromey@redhat.com>
5249 * monitor.c (monitor_open): Make "args" const.
5250 * monitor.h (monitor_open): Update.
5252 2014-07-24 Tom Tromey <tromey@redhat.com>
5254 * maint.c (match_bfd_flags): Make "string" const.
5255 (print_bfd_section_info): Remove casts.
5256 (print_objfile_section_info): Make "string" const.
5258 2014-07-24 Tom Tromey <tromey@redhat.com>
5260 * inf-child.c (inf_child_open_target): Make "arg" const.
5261 * inf-child.h (inf_child_open_target): Update.
5263 2014-07-24 Tom Tromey <tromey@redhat.com>
5265 * environ.c (unset_in_environ): Make "var" const.
5266 * environ.h (unset_in_environ): Update.
5268 2014-07-24 Tom Tromey <tromey@redhat.com>
5270 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5272 (scan_filename_with_cleanup): Likewise.
5273 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5274 Make arguments const.
5275 (restore_command): Update.
5277 2014-07-24 Pedro Alves <palves@redhat.com>
5279 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5281 2014-07-24 Tom Tromey <tromey@redhat.com>
5282 Gary Benson <gbenson@redhat.com>
5284 * nat/linux-ptrace.c (additional_flags): New global.
5285 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5286 additional_flags; don't check GDBSERVER.
5287 (linux_ptrace_set_additional_flags): New function.
5288 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5290 * linux-nat.c (_initialize_linux_nat): Call
5291 linux_ptrace_set_additional_flags.
5293 2014-07-24 Tom Tromey <tromey@redhat.com>
5295 * make-target-delegates (munge_type, write_debugmethod): New
5297 (debug_names): New global.
5298 ($TARGET_DEBUG_PRINTER): New global.
5299 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5301 Write debug methods. Generate init_debug_target.
5302 * target-debug.h: New file.
5303 * target-delegates.c: Rebuild.
5304 * target.c: Include target-debug.h.
5305 (debug_target): Hoist definition.
5306 (target_kill, target_get_section_table, target_memory_map)
5307 (target_flash_erase, target_flash_done, target_detach)
5308 (target_disconnect, target_wait, target_resume)
5309 (target_pass_signals, target_program_signals, target_follow_fork)
5310 (target_mourn_inferior, target_search_memory)
5311 (target_thread_address_space, target_close)
5312 (target_find_new_threads, target_core_of_thread)
5313 (target_verify_memory, target_insert_mask_watchpoint)
5314 (target_remove_mask_watchpoint): Remove targetdebug code.
5315 (debug_to_post_attach, debug_to_prepare_to_store)
5316 (debug_to_files_info, debug_to_insert_breakpoint)
5317 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5318 (debug_to_region_ok_for_hw_watchpoint)
5319 (debug_to_can_accel_watchpoint_condition)
5320 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5321 (debug_to_watchpoint_addr_within_range)
5322 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5323 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5324 (debug_to_terminal_init, debug_to_terminal_inferior)
5325 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5326 (debug_to_terminal_save_ours, debug_to_terminal_info)
5327 (debug_to_load, debug_to_post_startup_inferior)
5328 (debug_to_insert_fork_catchpoint)
5329 (debug_to_remove_fork_catchpoint)
5330 (debug_to_insert_vfork_catchpoint)
5331 (debug_to_remove_vfork_catchpoint)
5332 (debug_to_insert_exec_catchpoint)
5333 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5334 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5335 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5336 (setup_target_debug): Call init_debug_target.
5337 * target.h (TARGET_DEBUG_PRINTER): New macro.
5338 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5339 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5341 2014-07-24 Gary Benson <gbenson@redhat.com>
5343 * exceptions.h (throw_vfatal): Renamed to...
5344 (throw_vquit): New declaration.
5345 (throw_quit): Likewise.
5346 * exceptions.c (throw_vfatal): Renamed to...
5347 (throw_vquit): New function.
5348 (throw_quit): Likewise.
5349 (throw_error): Call throw_verror rather than throw_it.
5350 * utils.h (vfatal): Removed.
5352 * utils.c (vfatal): Removed.
5354 (internal_verror): Replaced call to fatal with call to throw_quit.
5355 (quit): Replaced calls to fatal with calls to throw_quit.
5357 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5359 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5362 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5364 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5365 less than zero in conditional expression.
5367 2014-07-23 Tom Tromey <tromey@redhat.com>
5369 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5370 ($INTRO_PART): Don't match whitespace.
5371 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5373 ($METHOD): Add $METHOD_TRAILER.
5375 (scan_target_h): New sub.
5376 Change main loop not to collect state.
5377 * target-delegates.c: Rebuild.
5379 2014-07-23 Gary Benson <gbenson@redhat.com>
5381 * cp-support.c (gdb_demangle): Fix build on systems without
5384 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5386 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5387 for reference entry value target data value.
5389 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5392 value_available_contents_eq.
5394 2014-07-22 Pedro Alves <palves@redhat.com>
5396 * value.c (allocate_optimized_out_value): Don't mark value as
5399 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5401 * MAINTAINERS (Write After Approval): Update my email address.
5403 2014-07-20 Doug Evans <dje@google.com>
5406 * remote.c (putpkt_binary): Add text to error message.
5408 2014-07-20 Yao Qi <yao@codesourcery.com>
5410 * eval.c: Remove "Chill" from comments.
5411 * gdbtypes.h: Likewise.
5412 * symtab.h: Likewise.
5414 2014-07-20 Yao Qi <yao@codesourcery.com>
5416 * std-operator.def: Update comments to TERNOP_SLICE.
5418 2014-07-20 Yao Qi <yao@codesourcery.com>
5420 * std-operator.def: Remove BINOP_RANGE.
5421 * breakpoint.c (watchpoint_exp_is_const): Update.
5422 * expprint.c (dump_subexp_body_standard): Likewise.
5423 * eval.c (init_array_element): Remove dead code.
5424 (evaluate_subexp_standard): Likewise.
5426 2014-07-20 Yao Qi <yao@codesourcery.com>
5428 * std-operator.def: Remove BINOP_IN.
5429 * breakpoint.c (watchpoint_exp_is_const): Update.
5430 * eval.c (evaluate_subexp_standard): Likewise.
5431 * expprint.c (dump_subexp_body_standard): Likewise.
5433 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5435 * microblaze-tdep.c (microblaze_register_names): Add
5436 the rshr and rslr register names.
5437 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5438 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5439 Use of tdesc_numbered_register. Use of
5440 microblaze_register_g_packet_guesses. Use of
5441 tdesc_use_registers. Use of set_gdbarch_register_type.
5442 (microblaze_register_g_packet_guesses): New.
5443 * microblaze-tdep.h (microblaze_reg_num): Add
5444 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5445 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5446 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5447 * features/microblaze-core.xml: New file.
5448 * features/microblaze-stack-protect.xml: New file.
5449 * features/microblaze-with-stack-protect.c: New file.
5450 * features/microblaze-with-stack-protect.xml: New file.
5451 * features/microblaze.xml: New file.
5452 * features/microblaze.c: New file.
5453 * features/Makefile (microblaze-with-stack-protect): Add
5454 microblaze-with-stack-protect microblaze and microblaze-expedite.
5455 * regformats/microblaze-with-stack-protect.dat: New file.
5456 * regformats/microblaze.dat: New file.
5457 * doc/gdb.texinfo (MicroBlaze Features): Added.
5459 2014-07-18 Tom Tromey <tromey@redhat.com>
5461 * exec.c (exec_ops): Now static.
5462 * exec.h (exec_ops): Don't declare.
5464 2014-07-18 Tom Tromey <tromey@redhat.com>
5466 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5467 to find_target_beneath.
5468 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5469 find_target_beneath.
5470 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5472 2014-07-18 Tom Tromey <tromey@redhat.com>
5475 * utils.c (quit): Use target_supports_terminal_ours.
5476 * target.h (target_supports_terminal_ours): Declare.
5477 * target.c (target_supports_delete_record): Don't check
5478 to_delete_record against NULL.
5479 (target_supports_terminal_ours): New function.
5481 2014-07-18 Tom Tromey <tromey@redhat.com>
5484 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5485 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5486 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5487 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5488 * windows-nat.c (windows_xfer_partial): Always delegate.
5489 * record-btrace.c (record_btrace_xfer_partial): Simplify
5491 (record_btrace_fetch_registers, record_btrace_store_registers)
5492 (record_btrace_prepare_to_store, record_btrace_resume)
5493 (record_btrace_wait, record_btrace_find_new_threads)
5494 (record_btrace_thread_alive): Likewise.
5495 * procfs.c (procfs_xfer_partial): Always delegate.
5496 * corelow.c (core_xfer_partial): Always delegate.
5497 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5499 2014-07-18 Tom Tromey <tromey@redhat.com>
5501 * exec.c (exec_make_note_section): Move earlier.
5503 2014-07-17 Doug Evans <dje@google.com>
5506 * maint.c (count_symtabs_and_blocks): Handle NULL
5507 current_program_space.
5508 (report_command_stats): Check global enabled flag in addition to
5509 recorded enabled flag.
5510 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5512 2014-07-16 Pedro Alves <palves@redhat.com>
5514 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5516 2014-07-16 Tom Tromey <tromey@redhat.com>
5518 * target.h (struct target_ops) <to_delete_record>: Reformat
5521 2014-07-16 Tom Tromey <tromey@redhat.com>
5523 * target-delegates.c: Rebuild.
5525 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5527 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5528 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5529 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5530 (avr_pointer_to_address): Likewise.
5531 (avr_address_class_type_flags): New function.
5532 (avr_address_class_type_flags_to_name): Likewise.
5533 (avr_address_class_name_to_type_flags): Likewise.
5534 (avr_gdbarch_init): Set address_class_type_flags,
5535 address_class_type_flags_to_name and
5536 address_class_name_to_type_flags.
5538 2014-07-15 Pedro Alves <palves@redhat.com>
5540 * linux-nat.c (kill_callback): Save errno and work with saved
5543 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5545 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5547 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5549 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5550 breakpoint support correctly.
5552 2014-07-14 Pedro Alves <palves@redhat.com>
5554 * utils.c (prompt_for_continue): Call target_terminal_ours.
5556 2014-07-14 Pedro Alves <palves@redhat.com>
5558 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5559 catch_errors. Don't re-enable stdin or notify observers where,
5561 (fetch_inferior_event_wrapper): Delete.
5563 2014-07-14 Pedro Alves <palves@redhat.com>
5566 * top.c: Include "inf-loop.h".
5567 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5569 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5571 (gdb_readline_wrapper): Store whether the target is async, and
5574 2014-07-14 Pedro Alves <palves@redhat.com>
5577 * top.c (gdb_readline_wrapper_line): Tweak comment.
5578 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5579 the input handler callback.
5581 2014-07-14 Pedro Alves <palves@redhat.com>
5584 * main.c: Include event-top.h.
5585 (handle_command_errors): New function.
5586 (catch_command_errors, catch_command_errors_const): Use it.
5588 2014-07-14 Pedro Alves <palves@redhat.com>
5590 * exceptions.c (catch_command_errors, catch_command_errors_const):
5592 * exceptions.h (catch_command_errors_ftype)
5593 (catch_command_errors_const_ftype): Moved to main.c.
5594 (catch_command_errors, catch_command_errors_const): Delete
5596 * main.c (catch_command_errors_ftype)
5597 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5598 (catch_command_errors, catch_command_errors_const)): Moved here
5599 from exceptions.c and make static.
5601 2014-07-14 Pedro Alves <palves@redhat.com>
5603 * exceptions.c (print_any_exception): Delete.
5604 (catch_exceptions_with_msg): Use exception_print instead of
5605 print_any_exception.
5606 (catch_errors): Use exception_fprintf instead of
5607 print_any_exception.
5608 (catch_command_errors, catch_command_errors_const): Use
5609 exception_print instead of print_any_exception.
5611 2014-07-14 Pedro Alves <palves@redhat.com>
5613 * infcall.c (run_inferior_call): Set 'sync_execution' while
5614 running the inferior call.
5616 2014-07-14 Pedro Alves <palves@redhat.com>
5618 * value.c (value_contents_equal): Delete function.
5619 * value.h (value_contents_equal): Delete declaration.
5621 2014-07-14 Tom Tromey <tromey@redhat.com>
5624 * gdbtypes.c (is_dynamic_type_internal): New function, from
5626 (is_dynamic_type): Rewrite.
5627 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5628 (resolve_dynamic_struct): Likewise.
5629 (resolve_dynamic_type_internal): New function, from
5630 resolve_dynamic_type.
5631 (resolve_dynamic_type): Rewrite.
5633 2014-07-14 Tom Tromey <tromey@redhat.com>
5635 * target.c (target_require_runnable): Also check record_stratum.
5638 2014-07-11 Yao Qi <yao@codesourcery.com>
5640 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5641 thumb_instruction_restores_sp return true.
5643 2014-07-11 Yao Qi <yao@codesourcery.com>
5645 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5646 (thumb_in_function_epilogue_p): Call
5647 thumb_instruction_restores_sp.
5649 2014-07-11 Yao Qi <yao@codesourcery.com>
5651 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5653 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5655 2014-07-11 Gary Benson <gbenson@redhat.com>
5657 * amd64-linux-nat.c (gdbcore.h): Remove include.
5658 (regset.h): Likewise.
5659 (nat/linux-btrace.h): Likewise.
5660 (btrace.h): Likewise.
5661 (gdb_assert.h): Likewise.
5662 (string.h): Likewise.
5663 (sys/uio.h): Likewise.
5664 (sys/debugreg.h): Likewise.
5665 (sys/syscall.h): Likewise.
5666 (sys/procfs.h): Likewise.
5667 (sys/user.h): Likewise.
5668 (asm/ptrace.h): Likewise.
5669 (i386-nat.h): Likewise.
5670 * i386-linux-nat.c (i386-nat.h): Likewise.
5671 (regset.h): Likewise.
5672 (target.h): Likewise.
5673 (linux-nat.h): Likewise.
5674 (nat/linux-btrace.h): Likewise.
5675 (btrace.h): Likewise.
5676 (gdb_assert.h): Likewise.
5677 (string.h): Likewise.
5678 (sys/uio.h): Likewise.
5679 (sys/user.h): Likewise.
5680 (sys/procfs.h): Likewise.
5681 (sys/reg.h): Likewise.
5682 (sys/debugreg.h): Likewise.
5683 (ORIG_EAX): Remove definition.
5685 2014-07-11 Gary Benson <gbenson@redhat.com>
5687 * i386-linux-nat.h: New file.
5688 * x86-linux-nat.h: Likewise.
5689 * x86-linux-nat.c: Likewise.
5690 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5691 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5692 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5693 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5694 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5695 (PTRACE_SETREGSET): Likewise.
5696 (arch_lwp_info): Now in x86-linux-nat.c.
5697 (have_ptrace_getregset): Now in x86-linux-nat.h.
5698 (x86_linux_dr_get): Now in x86-linux-nat.c.
5699 (x86_linux_dr_set): Likewise.
5700 (x86_linux_dr_get_addr): Likewise.
5701 (x86_linux_dr_get_control): Likewise.
5702 (x86_linux_dr_get_status): Likewise.
5703 (update_debug_registers_callback): Likewise.
5704 (x86_linux_dr_set_control): Likewise.
5705 (x86_linux_dr_set_addr): Likewise.
5706 (x86_linux_prepare_to_resume): Likewise.
5707 (x86_linux_new_thread): Likewise.
5708 (x86_linux_new_fork): Likewise.
5709 (x86_linux_get_thread_area): Likewise.
5710 (super_post_startup_inferior): Likewise.
5711 (x86_linux_child_post_startup_inferior): Likewise.
5712 (AMD64_LINUX_USER64_CS): Likewise.
5713 (AMD64_LINUX_X32_DS): Likewise.
5714 (x86_linux_read_description): Likewise.
5715 (x86_linux_enable_btrace): Likewise.
5716 (x86_linux_disable_btrace): Likewise.
5717 (x86_linux_teardown_btrace): Likewise.
5718 (x86_linux_read_btrace): Likewise.
5719 (x86_linux_create_target): Likewise.
5720 (x86_linux_add_target): Likewise.
5721 * i386-linux-nat.c (x86-linux-nat.h): New include.
5722 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5723 (PTRACE_SETREGSET): Likewise.
5724 (arch_lwp_info): Now in x86-linux-nat.c.
5725 (have_ptrace_getregset): Now in x86-linux-nat.h.
5726 (x86_linux_dr_get): Now in x86-linux-nat.c.
5727 (x86_linux_dr_set): Likewise.
5728 (x86_linux_dr_get_addr): Likewise.
5729 (x86_linux_dr_get_control): Likewise.
5730 (x86_linux_dr_get_status): Likewise.
5731 (update_debug_registers_callback): Likewise.
5732 (x86_linux_dr_set_control): Likewise.
5733 (x86_linux_dr_set_addr): Likewise.
5734 (x86_linux_prepare_to_resume): Likewise.
5735 (x86_linux_new_thread): Likewise.
5736 (x86_linux_new_fork): Likewise.
5737 (x86_linux_get_thread_area): Likewise.
5738 (super_post_startup_inferior): Likewise.
5739 (x86_linux_child_post_startup_inferior): Likewise.
5740 (AMD64_LINUX_USER64_CS): Likewise.
5741 (AMD64_LINUX_X32_DS): Likewise.
5742 (x86_linux_read_description): Likewise.
5743 (x86_linux_enable_btrace): Likewise.
5744 (x86_linux_disable_btrace): Likewise.
5745 (x86_linux_teardown_btrace): Likewise.
5746 (x86_linux_read_btrace): Likewise.
5747 (x86_linux_create_target): Likewise.
5748 (x86_linux_add_target): Likewise.
5750 2014-07-11 Gary Benson <gbenson@redhat.com>
5752 * amd64-linux-nat.c: Comment and whitespace changes.
5753 * i386-linux-nat.c: Comment and whitespace changes.
5755 2014-07-11 Gary Benson <gbenson@redhat.com>
5757 * amd64-linux-nat.c (x86_linux_create_target): New function.
5758 (x86_linux_add_target): Likewise.
5759 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5760 * i386-linux-nat.c (x86_linux_create_target): New function.
5761 (x86_linux_add_target): Likewise.
5762 (_initialize_i386_linux_nat): Delegate to the above new functions.
5764 2014-07-11 Gary Benson <gbenson@redhat.com>
5766 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5767 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5768 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5769 (ps_get_thread_area): Delegate to the above.
5771 2014-07-11 Gary Benson <gbenson@redhat.com>
5773 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5774 x86_linux_read_description. All uses updated. amd64-specific
5775 code conditionalized. Conditionalized i386-specific code added.
5776 Redundant cast removed.
5777 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5778 x86_linux_read_description. All uses updated. i386-specific
5779 code conditionalized. Conditionalized amd64-specific code added.
5780 One sizeof replaced with the actual type it is describing.
5782 2014-07-11 Gary Benson <gbenson@redhat.com>
5784 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5785 x86_linux_dr_get. All uses updated.
5786 (amd64_linux_dr_set): Renamed to
5787 x86_linux_dr_set. All uses updated.
5788 (amd64_linux_dr_get_addr): Renamed to
5789 x86_linux_dr_get_addr. All uses updated.
5790 (amd64_linux_dr_get_control): Renamed to
5791 x86_linux_dr_get_control. All uses updated.
5792 (amd64_linux_dr_get_status): Renamed to
5793 x86_linux_dr_get_status. All uses updated.
5794 (amd64_linux_dr_set_control): Renamed to
5795 x86_linux_dr_set_control. All uses updated.
5796 (amd64_linux_dr_set_addr): Renamed to
5797 x86_linux_dr_set_addr. All uses updated.
5798 (amd64_linux_prepare_to_resume): Renamed to
5799 x86_linux_prepare_to_resume. All uses updated.
5800 (amd64_linux_new_thread): Renamed to
5801 x86_linux_new_thread. All uses updated.
5802 (amd64_linux_new_fork): Renamed to
5803 x86_linux_new_fork. All uses updated.
5804 (amd64_linux_child_post_startup_inferior): Renamed to
5805 x86_linux_child_post_startup_inferior. All uses updated.
5806 (amd64_linux_enable_btrace): Renamed to
5807 x86_linux_enable_btrace. All uses updated.
5808 (amd64_linux_disable_btrace): Renamed to
5809 x86_linux_disable_btrace. All uses updated.
5810 (amd64_linux_teardown_btrace): Renamed to
5811 x86_linux_teardown_btrace. All uses updated.
5812 (amd64_linux_read_btrace): Renamed to
5813 x86_linux_read_btrace. All uses updated.
5814 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5815 x86_linux_dr_get. All uses updated.
5816 (i386_linux_dr_set): Renamed to
5817 x86_linux_dr_set. All uses updated.
5818 (i386_linux_dr_get_addr): Renamed to
5819 x86_linux_dr_get_addr. All uses updated.
5820 (i386_linux_dr_get_control): Renamed to
5821 x86_linux_dr_get_control. All uses updated.
5822 (i386_linux_dr_get_status): Renamed to
5823 x86_linux_dr_get_status. All uses updated.
5824 (i386_linux_dr_set_control): Renamed to
5825 x86_linux_dr_set_control. All uses updated.
5826 (i386_linux_dr_set_addr): Renamed to
5827 x86_linux_dr_set_addr. All uses updated.
5828 (i386_linux_prepare_to_resume): Renamed to
5829 x86_linux_prepare_to_resume. All uses updated.
5830 (i386_linux_new_thread): Renamed to
5831 x86_linux_new_thread. All uses updated.
5832 (i386_linux_new_fork): Renamed to
5833 x86_linux_new_fork. All uses updated.
5834 (i386_linux_child_post_startup_inferior): Renamed to
5835 x86_linux_child_post_startup_inferior. All uses updated.
5836 (i386_linux_enable_btrace): Renamed to
5837 x86_linux_enable_btrace. All uses updated.
5838 (i386_linux_disable_btrace): Renamed to
5839 x86_linux_disable_btrace. All uses updated.
5840 (i386_linux_teardown_btrace): Renamed to
5841 x86_linux_teardown_btrace. All uses updated.
5842 (i386_linux_read_btrace): Renamed to
5843 x86_linux_read_btrace. All uses updated.
5845 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5847 * remote.c (extended_remote_post_attach): New function.
5848 (init_extended_remote_ops): Install it as to_post_attach method.
5850 2014-07-09 Pedro Alves <palves@redhat.com>
5852 * infcmd.c (attach_command_post_wait): Don't call
5853 target_terminal_inferior here.
5854 (attach_command): Call it here instead.
5856 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5858 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5860 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5861 from varobj.c, with additional checks.
5862 (c_varobj_ops): Fill in is_path_expr_parent field.
5863 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5864 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5866 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5868 (varobj_default_is_path_expr_parent): New function.
5869 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5870 (varobj_default_is_path_expr_parent): Declare new function.
5872 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5874 * infcmd.c (finish_backward): Turn internal error into normal error.
5876 2014-07-07 Pedro Alves <palves@redhat.com>
5879 * remote.c (async_handle_remote_sigint)
5880 (async_handle_remote_sigint_twice): Call
5881 gdb_call_async_signal_handler instead of
5882 mark_async_signal_handler.
5884 2014-07-07 Tom Tromey <tromey@redhat.com>
5886 * target-delegates.c: Rebuild.
5887 * target.c (target_info_record): Remove.
5888 * record.c (info_record_command): Unconditionally call
5890 * target.h (struct target_ops) <to_info_record>: Use
5891 TARGET_DEFAULT_IGNORE.
5892 (target_info_record): Remove.
5894 2014-07-07 Tom Tromey <tromey@redhat.com>
5896 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5897 TARGET_DEFAULT_NORETURN.
5898 * target.c (generic_tls_error): New function.
5899 (target_translate_tls_address): Don't search target stack.
5900 * target-delegates.c: Rebuild.
5901 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5903 * linux-thread-db.c (thread_db_get_thread_local_address):
5904 Unconditionally call beneath target.
5906 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5908 * cli/cli-logging.c (pop_output_files): Assign targerr to
5911 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5913 * MAINTAINERS (Write After Approval): Update my email address.
5915 2014-07-02 Gary Benson <gbenson@redhat.com>
5917 * proc-service.c (ps_xfer_memory): Update comment.
5918 (ps_pstop): Remove unused function.
5919 (ps_pcontinue): Likewise.
5920 (ps_lstop): Likewise.
5921 (ps_lcontinue): Likewise.
5922 (ps_lgetxregsize): Likewise.
5923 (ps_lgetxregs): Likewise.
5924 (ps_lsetxregs): Likewise.
5925 (ps_plog): Likewise.
5926 (ps_ptread): Likewise.
5927 (ps_ptwrite): Likewise.
5929 2014-07-01 Mark Wielaard <mjw@redhat.com>
5931 * dwarf2read.c (add_array_cv_type): New function.
5932 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5933 (read_tag_volatile_type): Likewise.
5935 2014-07-01 Tom Tromey <tromey@redhat.com>
5937 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5938 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5939 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5940 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5941 * command.h (cmd_cfunc_ftype): Move earlier.
5942 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5943 (add_com, add_info): Use cmd_cfunc_ftype.
5945 2014-06-30 Tom Tromey <tromey@redhat.com>
5947 * symtab.c (operator_chars): Make parameters and return type
5949 (file_matches): Make "files" const.
5950 (struct search_symbols_data) <files>: Now const.
5951 (search_symbols): Make "regexp" and "files" parameters const.
5953 (symtab_symbol_info): Remove cast.
5954 (rbreak_command): Update.
5955 * symtab.h (search_symbols): Update.
5957 2014-06-27 Yao Qi <yao@codesourcery.com>
5959 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5960 Change parameter type to 'struct thread_info *'. Caller
5962 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5964 * dummy-frame.c (struct dummy_frame_id): New.
5965 (dummy_frame_id_eq): New function.
5966 (struct dummy_frame) <id>: Change its type to 'struct
5968 (dummy_frame_push): Add parameter ptid and save it in
5970 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5972 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5974 (lookup_dummy_frame): Change parameter type to 'struct
5975 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5976 instead of frame_id_eq.
5977 (dummy_frame_pop): Add parameter ptid. Callers updated.
5978 Update comments. Compose dummy_frame_id and pass it to
5980 (dummy_frame_discard): Add parameter ptid.
5981 (dummy_frame_sniffer): Compose dummy_frame_id and call
5982 dummy_frame_id_eq instead of frame_id_eq.
5983 (fprint_dummy_frames): Print ptid.
5984 * dummy-frame.h: Remove comments.
5985 (dummy_frame_push): Add ptid in declaration.
5986 (dummy_frame_pop, dummy_frame_discard): Likewise.
5988 2014-06-26 Tom Tromey <tromey@redhat.com>
5990 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5991 * command.h (error_no_arg): Update.
5993 2014-06-26 Tom Tromey <tromey@redhat.com>
5995 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5996 (do_show_command): Make "arg" const.
5997 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5999 2014-06-26 Tom Tromey <tromey@redhat.com>
6001 * record-full.c (record_full_get_bookmark): Make "args" const.
6002 (record_full_goto_bookmark): Make "raw_bookmark" const.
6003 * record.c (record_goto): New function.
6004 (cmd_record_goto): Use it. Now static.
6005 * record.h (record_goto): Declare.
6006 (cmd_record_goto): Remove declaration.
6007 * target-delegates.c: Rebuild.
6008 * target.h (struct target_ops) <to_get_bookmark,
6009 to_goto_bookmark>: Make parameter const.
6011 2014-06-26 Tom Tromey <tromey@redhat.com>
6013 * defs.h (generic_load): Update.
6014 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6015 * monitor.c (monitor_load): Make "args" const.
6016 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6017 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6019 (mips_load): Make "file" const.
6020 * remote-sim.c (gdbsim_load): Make "args" const.
6021 * remote.c (remote_load): Make "name" const.
6022 * symfile.c (generic_load): Make "args" const.
6023 * target-delegates.c: Rebuild.
6024 * target.c (target_load): Make "arg" const.
6025 (debug_to_load): Make "args" const.
6026 * target.h (struct target_ops) <to_load>: Make parameter const.
6027 (target_load): Update.
6029 2014-06-26 Tom Tromey <tromey@redhat.com>
6032 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6033 (dwarf2_physname, read_partial_die)
6034 (guess_partial_die_structure_name, fixup_partial_die)
6035 (guess_full_die_structure_name, anonymous_struct_prefix)
6036 (dwarf2_name): Use per-BFD obstack.
6038 2014-06-26 Yao Qi <yao@codesourcery.com>
6040 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6041 dummyframe and this_id into inner block below.
6043 2014-06-26 Yao Qi <yao@codesourcery.com>
6045 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6046 with "signal_pass[0]" in the initialization of signal_pass.
6048 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6050 * record-btrace.c (record_btrace_generating_corefile)
6051 (record_btrace_prepare_to_generate_core)
6052 (record_btrace_done_generating_core): New.
6053 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6054 (record_btrace_store_registers, record_btrace_prepare_to_store):
6055 Forward request when generating a core file.
6056 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6057 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6058 to_done_generating_core.
6060 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6062 * target.h (target_ops) <to_prepare_to_generate_core>
6063 <to_done_generating_core>: New.
6064 (target_prepare_to_generate_core, target_done_generating_core): New.
6065 * target.c (target_prepare_to_generate_core)
6066 (target_done_generating_core): New.
6067 * target-delegates.c: Regenerate.
6068 * gcore.c: (write_gcore_file): Rename to ...
6069 (write_gcore_file_1): ...this.
6070 (write_gcore_file): Call target_prepare_to_generate_core
6071 and target_done_generating_core.
6073 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6075 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6076 * gcore.c (write_gcore_file): Free memory returned from
6077 make_corefile_notes.
6078 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6079 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6081 2014-06-24 Yao Qi <yao@codesourcery.com>
6083 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6084 (arm_linux_init_abi): Set skip_trampoline_code with
6085 gdbarch_skip_trampoline_code instead of
6086 find_solib_trampoline_target.
6088 2014-06-24 Yao Qi <yao@codesourcery.com>
6090 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6091 arm_skip_bx_reg returns non-zero.
6093 2014-06-24 Yao Qi <yao@codesourcery.com>
6095 * arm-tdep.c (arm_skip_bx_reg): New function.
6096 (arm_skip_stub): Call arm_skip_bx_reg.
6098 2014-06-23 Don Breazeal <donb@codesourcery.com>
6100 * MAINTAINERS: Add myself as write-after-approval maintainer.
6102 2014-06-23 Pedro Alves <palves@redhat.com>
6104 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6105 DR_CONTROL before setting DR0..DR3.
6106 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6107 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6108 bits of DR_CONTROL related to the debug register slot being
6109 disabled. If all slots are vacant, clear local slowdown as well,
6110 and assert DR_CONTROL is 0.
6112 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6114 * python/lib/gdb/command/xmethods.py
6115 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6116 current progspace only if the string "progspace" matches LOCUS_RE.
6118 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6120 Fix --with-system-readline with readline-6.3 patch 5.
6121 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6122 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6125 2014-06-20 Tom Tromey <tromey@redhat.com>
6127 * dwarf2read.c (dw2_get_real_path): Use correct type in
6129 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6131 2014-06-20 Gary Benson <gbenson@redhat.com>
6133 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6134 * common/glibc_thread_db.h: Likewise.
6135 * common/i386-cpuid.h: Likewise.
6136 * common/i386-gcc-cpuid.h: Likewise.
6137 * common/linux-btrace.h: Likewise.
6138 * common/linux-osdata.h: Likewise.
6139 * common/linux-procfs.h: Likewise.
6140 * common/linux-ptrace.h: Likewise.
6141 * common/mips-linux-watch.h: Likewise.
6142 * common/linux-btrace.c: Moved to nat.
6143 * common/linux-osdata.c: Likewise.
6144 * common/linux-procfs.c: Likewise.
6145 * common/linux-ptrace.c: Likewise.
6146 * common/mips-linux-watch.c: Likewise.
6147 * nat/gdb_thread_db.h: Moved from common.
6148 * nat/glibc_thread_db.h: Likewise.
6149 * nat/i386-cpuid.h: Likewise.
6150 * nat/i386-gcc-cpuid.h: Likewise.
6151 * nat/linux-btrace.c: Likewise.
6152 * nat/linux-btrace.h: Likewise.
6153 * nat/linux-osdata.c: Likewise.
6154 * nat/linux-osdata.h: Likewise.
6155 * nat/linux-procfs.c: Likewise.
6156 * nat/linux-procfs.h: Likewise.
6157 * nat/linux-ptrace.c: Likewise.
6158 * nat/linux-ptrace.h: Likewise.
6159 * nat/mips-linux-watch.c: Likewise.
6160 * nat/mips-linux-watch.h: Likewise.
6161 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6162 (object file files): Reordered.
6163 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6164 of glibc_thread_db.h.
6166 2014-06-20 Gary Benson <gbenson@redhat.com>
6168 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6169 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6170 (i386_dr_low): Likewise.
6171 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6172 (i386_dr_low_set_addr): Likewise.
6173 (i386_dr_low_get_addr): Likewise.
6174 (i386_dr_low_can_set_control): Likewise.
6175 (i386_dr_low_set_control): Likewise.
6176 (i386_dr_low_get_control): Likewise.
6177 (i386_dr_low_get_status): Likewise.
6178 (i386_get_debug_register_length): Likewise.
6179 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6180 (i386_dr_low): Likewise.
6181 * nat/i386-dregs.c (i386-low.h): Remove include.
6182 (i386-nat.h): Likewise.
6183 (nat/i386-dregs.h): New include.
6184 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6185 (i386_dr_low_set_addr): Likewise.
6186 (i386_dr_low_get_addr): Likewise.
6187 (i386_dr_low_can_set_control): Likewise.
6188 (i386_dr_low_set_control): Likewise.
6189 (i386_dr_low_get_control): Likewise.
6190 (i386_dr_low_get_status): Likewise.
6191 (i386_get_debug_register_length): Likewise.
6192 (debug_hw_points): Likewise.
6194 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6196 * Makefile.in (SFILES): Add d-exp.y.
6197 (YYFILES): Add d-exp.c.
6198 (YYOBJ): Add d-exp.o.
6199 (local-maintainer-clean): Delete d-exp.c.
6200 * d-exp.y: New file.
6201 * d-lang.h (d_parse): New declaration.
6202 (d_error): New declaration.
6203 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6204 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6205 PREC_ORDER operators.
6206 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6208 2014-06-19 Yao Qi <yao@codesourcery.com>
6210 * gdbthread.h (any_running): Remove the declaration.
6211 * thread.c (any_running): Remove.
6213 2014-06-19 Yao Qi <yao@codesourcery.com>
6215 * gdbthread.h (struct thread_info) <state>: Change its type to
6216 'enum thread_state'. Update comments.
6218 2014-06-19 Pedro Alves <palves@redhat.com>
6220 * gdbthread.h (ALL_THREADS): Delete.
6221 (ALL_NON_EXITED_THREADS): New macro.
6222 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6223 instead of ALL_THREADS.
6224 * infrun.c (find_thread_needs_step_over)
6225 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6226 instead of ALL_THREADS.
6227 * record-btrace.c (record_btrace_open)
6228 (record_btrace_stop_recording, record_btrace_close)
6229 (record_btrace_is_replaying, record_btrace_resume)
6230 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6231 * remote.c (append_pending_thread_resumptions): Likewise.
6232 * thread.c (thread_apply_all_command): Likewise.
6234 2014-06-19 Gary Benson <gbenson@redhat.com>
6236 * i386-nat.c (i386_stopped_by_watchpoint):
6237 Use i386_dr_stopped_by_watchpoint.
6238 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6239 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6241 2014-06-19 Gary Benson <gbenson@redhat.com>
6243 * nat/i386-dregs.c: New file.
6244 * Makefile.in (i386-dregs.o): New rule.
6245 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6246 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6247 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6248 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6249 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6250 * config/i386/go32.mh (NATDEPFILES): Likewise.
6251 * config/i386/linux.mh (NATDEPFILES): Likewise.
6252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6253 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6254 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6255 * i386-nat.h (debug_hw_points): New declaration.
6256 * i386-nat.c (breakpoint.h): Remove include.
6257 (command.h): Likewise.
6258 (target.h): Likewise.
6259 (gdb_assert.h): Likewise.
6260 (debug_hw_points): Made nonstatic.
6261 (debug_printf): Now in i386-dregs.c.
6262 (TARGET_HAS_DR_LEN_8): Likewise.
6263 (DR_CONTROL_SHIFT): Likewise.
6264 (DR_CONTROL_SIZE): Likewise.
6265 (DR_RW_EXECUTE): Likewise.
6266 (DR_RW_WRITE): Likewise.
6267 (DR_RW_READ): Likewise.
6268 (DR_RW_IORW): Likewise.
6269 (DR_LEN_1): Likewise.
6270 (DR_LEN_2): Likewise.
6271 (DR_LEN_4): Likewise.
6272 (DR_LEN_8): Likewise.
6273 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6274 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6275 (DR_ENABLE_SIZE): Likewise.
6276 (DR_LOCAL_SLOWDOWN): Likewise.
6277 (DR_GLOBAL_SLOWDOWN): Likewise.
6278 (DR_CONTROL_RESERVED): Likewise.
6279 (I386_DR_CONTROL_MASK): Likewise.
6280 (I386_DR_VACANT): Likewise.
6281 (I386_DR_LOCAL_ENABLE): Likewise.
6282 (I386_DR_GLOBAL_ENABLE): Likewise.
6283 (I386_DR_DISABLE): Likewise.
6284 (I386_DR_SET_RW_LEN): Likewise.
6285 (I386_DR_GET_RW_LEN): Likewise.
6286 (I386_DR_WATCH_HIT): Likewise.
6287 (i386_wp_op_t): Likewise.
6288 (i386_show_dr): Likewise.
6289 (i386_length_and_rw_bits): Likewise.
6290 (i386_insert_aligned_watchpoint): Likewise.
6291 (i386_remove_aligned_watchpoint): Likewise.
6292 (i386_handle_nonaligned_watchpoint): Likewise.
6293 (i386_update_inferior_debug_regs): Likewise.
6294 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6295 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6296 (i386_region_ok_for_watchpoint):
6297 Use i386_dr_region_ok_for_watchpoint.
6298 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6300 2014-06-19 Gary Benson <gbenson@redhat.com>
6302 * i386-nat.c (i386_insert_hw_breakpoint): Use
6303 i386_insert_watchpoint.
6304 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6306 2014-06-19 Gary Benson <gbenson@redhat.com>
6308 * i386-nat.c (i386_dr_show): Renamed to
6309 i386_show_dr and made static. All uses updated.
6310 (i386_dr_length_and_rw_bits): Renamed to
6311 i386_length_and_rw_bits and made static.
6313 (i386_dr_insert_aligned_watchpoint): Renamed to
6314 i386_insert_aligned_watchpoint and made static.
6316 (i386_dr_remove_aligned_watchpoint): Renamed to
6317 i386_remove_aligned_watchpoint and made static.
6319 (i386_dr_update_inferior_debug_regs): Renamed to
6320 i386_update_inferior_debug_regs and made static.
6322 * nat/i386-dregs.h (i386_dr_show): Removed.
6323 (i386_dr_length_and_rw_bits): Likewise.
6324 (i386_dr_insert_aligned_watchpoint): Likewise.
6325 (i386_dr_remove_aligned_watchpoint): Likewise.
6326 (i386_dr_update_inferior_debug_regs): Likewise.
6328 2014-06-19 Gary Benson <gbenson@redhat.com>
6330 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6331 * configure: Regenerate.
6332 * config.in: Likewise.
6333 * main.c (signal.h): New include.
6334 (setup_alternate_signal_stack): New function.
6335 (captured_main): Call the above.
6336 * cp-support.c (signal.h): New include.
6337 (catch_demangler_crashes): New flag.
6338 (SIGJMP_BUF): New define.
6339 (SIGSETJMP): Likewise.
6340 (SIGLONGJMP): Likewise.
6341 (gdb_demangle_jmp_buf): New static global.
6342 (gdb_demangle_attempt_core_dump): Likewise.
6343 (gdb_demangle_signal_handler): New function.
6344 (gdb_demangle): If catch_demangler_crashes is set, install the
6345 above signal handler before calling bfd_demangle, and restore
6346 the original signal handler afterwards. Display the offending
6347 symbol and call demangler_warning the first time a segmentation
6349 (_initialize_cp_support): New maint set/show command.
6351 2014-06-19 Gary Benson <gbenson@redhat.com>
6353 * utils.h (resource_limit_kind): New enum.
6354 (can_dump_core): New declaration.
6355 (warn_cant_dump_core): Likewise.
6356 (dump_core): Likewise.
6357 * utils.c (dump_core): Made nonstatic. Added new
6358 parameter "limit_kind".
6359 (can_dump_core): Made nonstatic. Moved printing code to...
6360 (warn_cant_dump_core): New function.
6361 (can_dump_core_warn): Likewise.
6362 (internal_vproblem): Replace calls to can_dump_core with
6363 calls to can_dump_core_warn. Supply new argument to each.
6365 2014-06-19 Gary Benson <gbenson@redhat.com>
6367 * utils.h (demangler_vwarning): New declaration.
6368 (demangler_warning): Likewise.
6369 * utils.c (struct internal_problem)
6370 <user_settable_should_quit>: New field.
6371 <user_settable_should_dump_core>: Likewise
6372 (internal_error_problem): Add values for above new fields.
6373 (internal_warning_problem): Likewise.
6374 (demangler_warning_problem): New static global.
6375 (demangler_vwarning): New function.
6376 (demangler_warning): Likewise.
6377 (add_internal_problem_command): Selectively add commands.
6378 (_initialize_utils): New internal problem command.
6379 * maint.c (maintenance_demangler_warning): New function.
6380 (_initialize_maint_cmds): New command.
6382 2014-06-18 Tom Tromey <tromey@redhat.com>
6384 * f-valprint.c (info_common_command_for_block): Update.
6385 * symtab.h (struct general_symbol_info) <common_block>: Now
6388 2014-06-18 Tom Tromey <tromey@redhat.com>
6390 * symtab.h (struct symtab) <blockvector>: Now const.
6391 * ada-lang.c (ada_add_global_exceptions): Update.
6392 * buildsym.c (augment_type_symtab): Update.
6393 * dwarf2read.c (dw2_lookup_symbol): Update.
6394 * jit.c (finalize_symtab): Update.
6395 * jv-lang.c (add_class_symtab_symbol): Update.
6396 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6398 * objfiles.c (objfile_relocate1): Update.
6399 * psymtab.c (lookup_symbol_aux_psymtabs)
6400 (maintenance_check_psymtabs): Update.
6401 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6403 * spu-tdep.c (spu_catch_start): Update.
6404 * symmisc.c (dump_symtab_1): Update.
6405 * symtab.c (lookup_global_symbol_from_objfile)
6406 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6407 (basic_lookup_transparent_type_quick)
6408 (basic_lookup_transparent_type, find_pc_sect_symtab)
6409 (find_pc_sect_line, search_symbols): Update.
6410 * block.c (find_block_in_blockvector): Make "bl" const.
6411 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6413 (blockvector_contains_pc): Make "bv" const.
6414 (block_for_pc_sect): Update.
6415 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6416 (blockvector_contains_pc): Update.
6417 * breakpoint.c (resolve_sal_pc): Update.
6418 * inline-frame.c (block_starting_point_at): Update.
6420 2014-06-18 Tom Tromey <tromey@redhat.com>
6422 * completer.c (complete_line): Make "line_buffer" const.
6423 * completer.h (complete_line): Update.
6425 2014-06-18 Tom Tromey <tromey@redhat.com>
6427 * symtab.c (add_macro_name): Remove unneeded cast.
6429 2014-06-18 Tom Tromey <tromey@redhat.com>
6431 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6432 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6434 2014-06-18 Tom Tromey <tromey@redhat.com>
6436 * probe.c (info_probes_for_ops): Make "arg" const.
6437 * probe.h (info_probes_for_ops): Update.
6439 2014-06-18 Tom Tromey <tromey@redhat.com>
6441 * varobj.c (varobj_create): Update.
6442 * valops.c (value_of_this): Update.
6443 * tracepoint.c (add_local_symbols, scope_info): Update.
6444 * symtab.h (struct general_symbol_info) <block>: Now const.
6445 * symtab.c (skip_prologue_sal)
6446 (default_make_symbol_completion_list_break_on)
6447 (skip_prologue_using_sal): Update.
6448 * stack.h (iterate_over_block_locals)
6449 (iterate_over_block_local_vars): Update.
6450 * stack.c (print_frame_args): Update.
6451 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6453 (get_selected_block): Make return type const.
6454 * python/py-frame.c (frapy_block): Update.
6455 * python/py-block.c (gdbpy_block_for_pc): Update.
6456 * p-exp.y (%union) <bval>: Now const.
6457 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6458 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6459 * m2-exp.y (%union) <bval>: Now const.
6460 * linespec.c (get_current_search_block): Make return type const.
6461 (create_sals_line_offset, find_label_symbols): Update.
6462 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6464 (block_starting_point_at): Make "block" const.
6465 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6466 (check_exception_resume): Update.
6467 * guile/scm-frame.c (gdbscm_frame_block): Update.
6468 * guile/scm-block.c (gdbscm_lookup_block): Update.
6469 * frame.h (get_frame_block): Update.
6470 (get_selected_block): Make return type const.
6471 * frame.c (frame_id_inner): Update.
6472 * f-valprint.c (info_common_command_for_block)
6473 (info_common_command): Update.
6474 * dwarf2loc.c (dwarf2_find_location_expression)
6475 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6476 (locexpr_describe_location_piece): Update.
6477 * c-exp.y (%union) <bval>: Now const.
6478 * breakpoint.c (resolve_sal_pc): Update.
6479 * blockframe.c (get_frame_block):Make return type const.
6480 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6481 (block_innermost_frame): Update.
6482 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6483 (block_for_pc, block_for_pc_sect): Update.
6484 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6486 (block_for_pc_sect, block_for_pc): Make return type const.
6487 * ax-gdb.c (gen_expr): Update.
6488 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6489 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6490 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6491 (ada_read_var_value): Update.
6492 * ada-exp.y (struct name_info) <block>: Now const.
6494 (block_lookup): Constify.
6496 2014-06-18 Gary Benson <gbenson@redhat.com>
6498 * nat/i386-dregs.h: New file.
6499 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6500 * i386-nat.h (i386-dregs.h): New include.
6501 (DR_FIRSTADDR): Now in i386-dregs.h.
6502 (DR_LASTADDR): Likewise.
6503 (DR_NADDR): Likewise.
6504 (DR_STATUS): Likewise.
6505 (DR_CONTROL): Likewise.
6506 (i386_debug_reg_state): Likewise.
6507 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6509 2014-06-18 Don Breazeal <donb@codesourcery.com>
6511 * breakpoint.c (set_longjmp_breakpoint): Call
6512 momentary_breakpoint_from_master with additional argument.
6513 (set_longjmp_breakpoint_for_call_dummy): Call
6514 momentary_breakpoint_from_master with additional argument.
6515 (set_std_terminate_breakpoint): Call
6516 momentary_breakpoint_from_master with additional argument.
6517 (momentary_breakpoint_from_master): Add argument to function
6518 definition and use it to initialize structure member flag.
6519 (clone_momentary_breakpoint): Call
6520 momentary_breakpoint_from_master with additional argument.
6521 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6522 member flags set in momentary_breakpoint_from_master.
6524 2014-06-18 Gary Benson <gbenson@redhat.com>
6526 * i386-nat.c (i386_show_dr): Renamed to
6527 i386_dr_show and made nonstatic. All uses updated.
6528 (i386_length_and_rw_bits): Renamed to
6529 i386_dr_length_and_rw_bits and made nonstatic.
6531 (i386_insert_aligned_watchpoint): Renamed to
6532 i386_dr_insert_aligned_watchpoint and made nonstatic.
6534 (i386_remove_aligned_watchpoint): Renamed to
6535 i386_dr_remove_aligned_watchpoint and made nonstatic.
6537 (i386_update_inferior_debug_regs): Renamed to
6538 i386_dr_update_inferior_debug_regs and made nonstatic.
6541 2014-06-18 Gary Benson <gbenson@redhat.com>
6543 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6544 (i386_dr_low_can_set_control): Likewise.
6545 (i386_dr_low_set_addr): Likewise.
6546 (i386_dr_low_set_control): Likewise.
6547 (i386_dr_low_get_addr): Likewise.
6548 (i386_dr_low_get_status): Likewise.
6549 (i386_dr_low_get_control): Likewise.
6550 (i386_insert_aligned_watchpoint): Use new macros.
6551 (i386_update_inferior_debug_regs): Likewise.
6552 (i386_stopped_data_address): Likewise.
6554 2014-06-18 Gary Benson <gbenson@redhat.com>
6556 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6557 New parameter. All uses updated.
6559 2014-06-18 Gary Benson <gbenson@redhat.com>
6561 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6564 2014-06-18 Gary Benson <gbenson@redhat.com>
6566 * i386-nat.c (debug_printf): New macro.
6567 (i386_get_debug_register_length): Likewise.
6568 (TARGET_HAS_DR_LEN_8): Use above macro.
6569 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6570 and printf_unfiltered. Use phex to format values.
6572 2014-06-18 Gary Benson <gbenson@redhat.com>
6574 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6577 2014-06-18 Gary Benson <gbenson@redhat.com>
6579 * i386-nat.c: Comment changes.
6581 2014-06-18 Gary Benson <gbenson@redhat.com>
6583 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6585 2014-06-18 Gary Benson <gbenson@redhat.com>
6587 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6588 (i386_insert_aligned_watchpoint): Likewise.
6589 (i386_remove_aligned_watchpoint): Likewise.
6590 (i386_handle_nonaligned_watchpoint): Likewise.
6592 2014-06-18 Gary Benson <gbenson@redhat.com>
6594 * i386-nat.c: Whitespace changes.
6596 2014-06-17 Samuel Bronson <naesten@gmail.com>
6598 * MAINTAINERS: Update Roland McGrath's email address.
6599 Thanks to Sergio Durigan Junior for pointing out that he left
6600 Red Hat a while ago, and giving me a current address.
6602 2014-06-17 Tom Tromey <tromey@redhat.com>
6604 * utils.h (savestring): Remove declaration.
6606 2014-06-17 Tom Tromey <tromey@redhat.com>
6608 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6610 2014-06-16 Keith Seitz <keiths@redhat.com>
6613 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6614 to update the varobj if inferior_ptid is null_ptid.
6616 2014-06-16 Tom Tromey <tromey@redhat.com>
6618 * target.h (struct target_ops) <to_info_proc>: Make parameter
6620 (target_info_proc): Update.
6621 * target.c (target_info_proc): Make "args" const.
6622 * procfs.c (procfs_info_proc): Update.
6623 * linux-tdep.c (linux_info_proc): Update.
6624 (linux_core_info_proc_mappings): Make "args" const.
6625 (linux_core_info_proc): Update.
6626 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6627 * gdbarch.c: Rebuild.
6628 * gdbarch.h: Rebuild.
6629 * corelow.c (core_info_proc): Update.
6631 2014-06-16 Tom Tromey <tromey@redhat.com>
6633 * target.h (struct target_ops) <to_disconnect>: Make parameter
6635 (target_disconnect): Update.
6636 * target.c (target_disconnect): Make "args" const.
6637 * target-delegates.c: Rebuild.
6638 * remote.c (remote_disconnect): Update.
6639 * record.h (record_disconnect): Update.
6640 * record.c (record_disconnect): Update.
6641 * inf-child.c (inf_child_disconnect): Update.
6643 2014-06-16 Tom Tromey <tromey@redhat.com>
6645 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6646 * target.c (debug_to_rcmd, default_rcmd): Update.
6647 * target-delegates.c: Rebuild.
6648 * remote.c (remote_rcmd): Update.
6649 * monitor.c (monitor_rcmd): Update.
6651 2014-06-16 Pedro Alves <palves@redhat.com>
6653 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6654 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6655 have OBJF_SHARED set.
6656 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6657 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6658 instead of OBJF_USERLOADED.
6659 * objfiles.h (OBJF_SHARED): Update comment.
6660 (userloaded_objfile_contains_address_p): Rename to ...
6661 (shared_objfile_contains_address_p): ... this, and update
6663 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6665 (remove_symbol_file_command): Skip objfiles that don't have
6668 2014-06-16 Tom Tromey <tromey@redhat.com>
6670 * minsyms.h (prim_record_minimal_symbol)
6671 (prim_record_minimal_symbol_and_info): Update comments.
6673 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6675 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6676 or --without-guile, according to how GDB was built.
6678 2014-06-13 Tom Tromey <tromey@redhat.com>
6680 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6682 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6684 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6686 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6687 help_list.Pass all_commands, not -1, to help_list.
6688 * cli/cli-dump.c (dump_command, append_command)
6689 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6690 (binary_dump_command, binary_append_command): Pass all_commands,
6691 not -1, to help_list.
6692 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6694 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6696 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6698 * top.c (set_history): Pass all_commands, not -1, to help_list.
6699 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6700 all_commands, not -1, to help_list.
6701 * symfile.c (overlay_command): Pass all_commands, not -1, to
6703 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6705 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6707 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6709 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6710 not -1, to help_list.
6711 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6712 not -1, to help_list.
6713 * maint.c (maintenance_command, maintenance_info_command)
6714 (maintenance_print_command, maintenance_set_cmd): Pass
6715 all_commands, not -1, to help_list.
6716 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6718 * language.c (set_check): Pass all_commands, not -1, to help_list.
6719 * infcmd.c (unset_command): Pass all_commands, not -1, to
6721 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6723 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6725 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6727 * breakpoint.c (save_command): Pass all_commands, not -1, to
6729 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6730 all_commands, not -1, to help_list.
6732 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6734 * regcache.c (struct register_to_invalidate): New structure.
6735 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6737 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6739 2014-06-12 Yao Qi <yao@codesourcery.com>
6741 * varobj.c (varobj_get_num_children): Call
6742 varobj_is_dynamic_p.
6743 (varobj_list_children): Likewise.
6744 (varobj_update): Likewise. Update comments.
6746 2014-06-12 Yao Qi <yao@codesourcery.com>
6748 * varobj.c (varobj_pretty_printed_p): Rename to ...
6749 (varobj_is_dynamic_p): ... this. New function.
6750 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6751 (varobj_is_dynamic_p): Declare.
6752 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6753 (mi_print_value_p, varobj_update_one): Likewise.
6755 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6756 Yao Qi <yao@codesourcery.com>
6758 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6759 (varobj_get_iterator): Wrap up code for pretty-printer by
6760 "#if HAVE_PYTHON" and "#endif".
6761 (update_dynamic_varobj_children): Likewise.
6763 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6764 Yao Qi <yao@codesourcery.com>
6766 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6767 gdb_python_initialized is false. Move some code from varobj.c.
6768 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6769 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6770 (struct varobj_item): Moved to varobj-iter.h".
6771 (varobj_clear_saved_item): New function.
6772 (update_dynamic_varobj_children): Move python-related code to
6774 (free_variable): Call varobj_clear_saved_item and
6777 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6778 Yao Qi <yao@codesourcery.com>
6780 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6781 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6782 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6783 (py-varobj.o): New rule.
6784 * python/py-varobj.c: New file.
6785 * python/python-internal.h (py_varobj_get_iterator): Declare.
6786 * varobj-iter.h: New file.
6787 * varobj.c: Include "varobj-iter.h"
6788 (struct varobj) <child_iter>: Change its type from "PyObject *"
6789 to "struct varobj_iter *".
6790 <saved_item>: Likewise.
6791 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6792 [HAVE_PYTHON] (varobj_get_iterator): New function.
6793 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6794 python-specific code to python/py-varobj.c.
6795 (install_visualizer): Call varobj_iter_delete instead of
6797 * varobj.h (varobj_ensure_python_env): Declare.
6799 2014-06-12 Yao Qi <yao@codesourcery.com>
6801 * varobj.c (struct varobj_item): New structure.
6802 (create_child_with_value): Update declaration.
6803 (varobj_add_child): Replace arguments 'name' and 'value' with
6804 'item'. All callers updated.
6805 (install_dynamic_child): Likewise.
6806 (update_dynamic_varobj_children): Likewise.
6807 (varobj_add_child): Likewise.
6808 (create_child_with_value): Likewise.
6810 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6812 * NEWS: Create a new section for the next release branch.
6813 Rename the section of the current branch, now that it has
6816 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6818 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6819 * version.in: Bump version to 7.8.50.DATE-cvs.
6821 2014-06-11 Pedro Alves <palves@redhat.com>
6824 * ser-mingw.c (net_windows_socket_check_pending): New function.
6825 (net_windows_select_thread): Ignore spurious wakeups. Use
6826 net_windows_socket_check_pending.
6827 (net_windows_wait_handle): Check for pending events with
6828 ioctlsocket, through net_windows_socket_check_pending, instead of
6829 checking the socket's event.
6831 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6833 * python/python-internal.h (gdb_PyObject_GetAttrString)
6834 (gdb_PyObject_HasAttrString): New inline function definitions.
6835 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6836 char * of the second argument to PyObject_GetAttrString.
6838 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6840 * serial.c (serial_write): Fix index of character to be printed
6841 in call to serial_logchar when serial debug traces are enabled.
6843 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6845 * gdbtypes (resolve_dynamic_range): Add function description.
6847 2014-06-09 Pedro Alves <palves@redhat.com>
6849 * linux-nat.c (linux_child_follow_fork): Initialize status with
6850 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6851 inner block. Only pass the signal to PTRACE_DETACH if in pass
6854 2014-06-09 Gary Benson <gbenson@redhat.com>
6856 * common/signals.c (gdb_signal_from_host): Reorder to separate
6857 the always-available ANSI-standard signals from the signals that
6859 (do_gdb_signal_to_host): Likewise.
6860 * proc-events.c (signal_table): Likewise.
6862 2014-06-08 Hui Zhu <hui@codesourcery.com>
6864 * common/linux-ptrace.c (linux_disable_event_reporting): New
6866 * common/linux-ptrace.h (linux_disable_event_reporting): New
6868 * linux-nat.c (linux_child_follow_fork): Do a single step before
6871 2014-06-07 Keith Seitz <keiths@redhat.com>
6875 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6876 from symbol_matches_domain in symtab.c. All local callers
6877 of symbol_matches_domain updated.
6878 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6879 search STRUCT_DOMAIN.
6880 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6881 independently. standard_lookup will do that automatically.
6882 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6883 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6884 (cp_lookup_symbol_in_namespace): Likewise.
6885 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6886 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6887 may return a STRUCT_DOMAIN match.
6888 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6889 * cp-support.c: Include language.h.
6890 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6892 * psymtab.c (match_partial_symbol): Compare the requested
6893 domain with the symbol's domain directly.
6894 (lookup_partial_symbol): Likewise.
6895 * symtab.c (lookup_symbol_in_language): Explain when/why
6896 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6897 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6898 appropriate languages.
6899 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6900 and moved to ada-lang.c
6901 (lookup_block_symbol): Explain that this function only returns
6902 symbol matching the requested DOMAIN.
6903 Compare the requested domain with the symbol's domain directly.
6904 (iterate_over_symbols): Compare the requested domain with the
6905 symbol's domain directly.
6906 * symtab.h (symbol_matches_domain): Remove.
6908 2014-06-06 Doug Evans <xdje42@gmail.com>
6910 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6911 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6912 (gdbscm_guile_version_is_at_least): Declare.
6913 (gdbscm_scm_string_to_int): Declare.
6914 * guile/guile.c (gdbscm_guile_major_version): New global.
6915 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6916 (guile_datadir): New static global.
6917 (gdbscm_guile_data_directory): New function.
6918 (initialize_scheme_side): Update.
6919 (misc_guile_functions): Add guile-data-directory.
6920 (initialize_gdb_module): Fetch guile version number.
6921 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6922 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6923 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6924 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6926 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6927 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6928 * guile/scm-value.c (gdbscm_value_to_string): Only call
6929 scm_port_conversion_strategy if Guile version >= 2.0.6.
6931 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6933 * main.c (print_gdb_help): Add -q and --silent.
6935 2014-06-06 Gary Benson <gbenson@redhat.com>
6937 * common/signals.c: Remove preprocessor conditionals for
6938 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6939 SIGSEGV and SIGTERM.
6940 * proc-events.c: Likewise.
6942 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6944 * symfile.c (symfile_free_objfile): Remove restriction to
6946 * symfile-mem.c (symbol_file_add_from_memory): Call
6947 add_target_sections_of_objfile.
6949 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6951 * guile/scm-value.c (gdbscm_history_append_x): Use
6952 'vlscm_get_value_smob_arg_unsafe' instead of
6953 'vlscm_scm_to_value'.
6955 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6958 * utils.c (printchar): Don't escape at all if quoter is NUL.
6959 Update function documentation to clarify effect of parameter
6961 * remote.c (escape_buffer): Pass '\\' as the quoter to
6962 fputstrn_unfiltered.
6963 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6964 generate the output.
6965 (mi_solib_unloaded): Same.
6967 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6969 * development.sh: Delete.
6970 * Makefile.in (config.status): Adjust dependency on development.sh.
6971 * configure.ac: Adjust development.sh source call.
6972 * configure: Regenerate.
6974 2014-06-04 Doug Evans <xdje42@gmail.com>
6976 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6977 is_scheme_bkpt, spec.
6978 (bpscm_make_breakpoint_smob): Initialize new members.
6979 (gdbscm_create_breakpoint_x): Split into two ...
6980 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6981 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6982 (scheme_function breakpoint_functions): Update.
6983 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6984 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6985 register-breakpoint!.
6987 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6990 * mem-break.c (z_type_supported): Return zero if
6991 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6993 2014-06-04 Tom Tromey <tromey@redhat.com>
6995 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6996 value_from_contents_and_address_unresolved.
6997 (ada_template_to_fixed_record_type_1): Likewise.
6998 (ada_which_variant_applies): Likewise.
6999 * value.h (value_from_contents_and_address_unresolved): Declare.
7000 * value.c (value_from_contents_and_address_unresolved): New
7002 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7003 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7004 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7006 2014-06-04 Tom Tromey <tromey@redhat.com>
7008 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7010 2014-06-04 Tom Tromey <tromey@redhat.com>
7012 * procfs.c (procfs_attach): Make "args" const.
7013 * windows-nat.c (windows_attach): Make "args" const.
7014 * nto-procfs.c (procfs_attach): Make "args" const.
7015 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7016 * go32-nat.c (go32_attach): Make "args" const.
7017 * gnu-nat.c (gnu_attach): Make "args" const.
7018 * darwin-nat.c (darwin_attach): Make "args" const.
7019 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7020 * linux-nat.c (linux_nat_attach): Make "args" const.
7021 * remote.c (extended_remote_attach_1, extended_remote_attach):
7023 * target.h (struct target_ops) <to_attach>: Make "args" const.
7024 (find_default_attach): Likewise.
7025 * utils.c (parse_pid_to_attach): Make "args" const.
7026 * utils.h (parse_pid_to_attach): Update.
7028 2014-06-04 Tom Tromey <tromey@redhat.com>
7030 * target-delegates.c: Rebuild.
7031 * target.c (default_thread_address_space): New function.
7032 (target_thread_address_space): Simplify.
7033 * target.h (struct target_ops) <to_thread_address_space>: Add
7034 TARGET_DEFAULT_FUNC.
7036 2014-06-04 Doug Evans <xdje42@gmail.com>
7038 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7040 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7042 * record-btrace.c: Include event-loop.h and inf-loop.h.
7043 (record_btrace_resume_exec_dir)
7044 (record_btrace_async_inferior_event_handler)
7045 (record_btrace_handle_async_inferior_event): New.
7046 (record_btrace_open): Create async event handler.
7047 (record_btrace_close): Delete async event handler.
7048 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7049 Mark async event handler.
7050 (record_btrace_execution_direction): New.
7051 (init_record_btrace_ops): Initialize to_execution_direction.
7053 2014-06-03 Doug Evans <xdje42@gmail.com>
7055 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7056 (gdbscm_make_parameter): Ditto.
7058 2014-06-03 Doug Evans <dje@google.com>
7060 * exec.c (exec_close_1): Call clear_section_table instead of
7061 resize_section_table.
7062 (clear_section_table): New function.
7063 (resize_section_table): Make static. Rename arg num_added to
7065 * exec.h (clear_section_table): Declare.
7066 (resize_section_table): Delete.
7067 * progspace.c (release_program_space): Call clear_section_table
7068 instead of resize_section_table.
7070 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7072 * NEWS (Python Scripting): Add entry about the new xmethods
7075 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7077 * python/py-xmethods.c: New file.
7078 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7079 (objfpy_dealloc): XDECREF on the new xmethods field.
7080 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7082 (objfpy_get_xmethods): New function.
7083 (objfile_getset): New entry 'xmethods'.
7084 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7085 (pspy_dealloc): XDECREF on the new xmethods field.
7086 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7088 (pspy_get_xmethods): New function.
7089 (pspace_getset): New entry 'xmethods'.
7090 * python/python-internal.h: Add declarations for new functions.
7091 * python/python.c (_initialize_python): Invoke
7092 gdbpy_initialize_xmethods.
7093 * python/lib/gdb/__init__.py (xmethods): New
7095 * python/lib/gdb/xmethod.py: New file.
7096 * python/lib/gdb/command/xmethods.py: New file.
7098 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7100 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7101 best match method returned by find_overload_match is an xmethod.
7102 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7103 the best matching operator returned by find_overload_match is an
7105 * valops.c: #include "extension.h".
7106 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7107 Return void. The list of matching source methods is returned in
7108 "fn_list" and a vector of matching debug method workers is
7109 returned in "xm_worker_vec". Update all callers.
7110 (value_find_oload_method_list): Likewise.
7111 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7112 non-NULL, then the index of the best matching method in this
7113 vector is returned. Update all callers.
7114 (find_overload_match): Include xmethods while performing overload
7117 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7119 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7120 * extension-priv.h (struct extension_language_ops): Add the
7122 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7123 get_matching_xmethod_workers, get_xmethod_argtypes,
7124 invoke_xmethod, free_xmethod_worker,
7125 free_xmethod_worker_vec): New functions.
7126 * extension.h: #include "common/vec.h".
7127 New function declarations.
7128 (struct xmethod_worker): New struct.
7129 (VEC (xmethod_worker_ptr)): New vector type.
7130 (xmethod_worker_ptr): New typedef.
7131 (xmethod_worker_vec): Likewise.
7132 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7134 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7135 (struct builtin_type): New field "xmethod".
7136 * valarith.c (value_ptradd): Assert that the value argument is not
7138 * valops.c (value_must_coerce_to_target): Return 0 for
7139 lval_xcallable values.
7140 * value.c (struct value): New field XM_WORKER in the field
7142 (value_address, value_raw_address): Return 0 for lval_xcallable
7144 (set_value_address): Assert that the value is not an
7146 (value_free): Free the associated xmethod worker when freeing
7147 lval_xcallable values.
7148 (set_value_component_location): Assert that the WHOLE value is not
7150 (value_of_xmethod, call_xmethod): New functions.
7151 * value.h: Declare "struct xmethod_worker".
7152 Declare new functions value_of_xmethod, call_xmethod.
7154 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7155 Pedro Alves <palves@redhat.com>
7157 PR breakpoints/17000
7158 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7159 New function, extracted from software_breakpoint_inserted_here_p.
7160 (software_breakpoint_inserted_here_p): Replace factored out code
7161 by call to find_non_raw_software_breakpoint_inserted_here.
7162 (bp_target_info_copy_insertion_state): New function.
7163 (bkpt_insert_location): Handle the case of a single-step
7164 breakpoint already inserted at the same address.
7165 (bkpt_remove_location): Handle the case of a single-step
7166 breakpoint still inserted at the same address.
7167 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7168 breakpoint already inserted at the same address.
7169 (deprecated_remove_raw_breakpoint): Handle the case of a
7170 non-raw breakpoint still inserted at the same address.
7171 (find_single_step_breakpoint): New function, extracted from
7172 single_step_breakpoint_inserted_here_p.
7173 (find_single_step_breakpoint): New function,
7174 factored out from single_step_breakpoint_inserted_here_p.
7175 (single_step_breakpoint_inserted_here_p): Reimplement.
7177 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7179 Pushed by Joel Brobecker <brobecker@adacore.com>
7180 * source.c (show_substitute_path_command): Fix display of matching
7183 2014-06-03 Gary Benson <gbenson@redhat.com>
7185 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7187 2014-06-02 Doug Evans <xdje42@gmail.com>
7189 Add parameter support for Guile.
7190 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7191 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7192 (scm-param.o): New rule.
7193 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7194 (gdbscm_misc_error): Declare.
7195 (gdbscm_canonicalize_command_name): Declare.
7196 (gdbscm_scm_to_host_string): Declare.
7197 (gdbscm_scm_from_host_string): Declare.
7198 (gdbscm_initialize_parameters): Declare.
7199 * guile/guile.c (initialize_gdb_module): Call
7200 gdbscm_initialize_parameters.
7201 * guile/lib/gdb.scm: Export parameter symbols.
7202 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7203 cmdscm_canonicalize_name and made public. All callers updated.
7204 * guile/scm-exception.c (gdbscm_misc_error): New function.
7205 * guile/scm-param.c: New file.
7206 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7207 (gdbscm_scm_to_host_string): New function.
7208 (gdbscm_scm_from_host_string): New function.
7209 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7211 2014-06-02 Doug Evans <xdje42@gmail.com>
7213 Add command support for Guile.
7214 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7215 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7216 (scm-cmd.o): New rule.
7217 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7218 (gdbscm_user_error_p): Declare.
7219 (gdbscm_parse_command_name): Declare.
7220 (gdbscm_valid_command_class_p): Declare.
7221 (gdbscm_initialize_commands): Declare.
7222 * guile/guile.c (initialize_gdb_module): Call
7223 gdbscm_initialize_commands.
7224 * guile/lib/gdb.scm: Export command symbols.
7225 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7226 (throw-user-error): New function.
7227 * guile/scm-cmd.c: New file.
7228 * guile/scm-exception.c (user_error_symbol): New static global.
7229 (gdbscm_user_error_p): New function.
7230 (gdbscm_initialize_exceptions): Set user_error_symbol.
7231 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7233 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7235 * top.c (command_loop): Handle comments here...
7236 (command_line_input): ... not here.
7238 2014-06-02 Doug Evans <xdje42@gmail.com>
7240 Add progspace support for Guile.
7241 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7242 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7243 (scm-progspace.o): New rule.
7244 * guile/guile-internal.h (pspace_smob): New typedef.
7245 (psscm_pspace_smob_pretty_printers): Declare.
7246 (psscm_pspace_smob_from_pspace): Declare.
7247 (psscm_scm_from_pspace): Declare.
7248 * guile/guile.c (initialize_gdb_module): Call
7249 gdbscm_initialize_pspaces.
7250 * guile/lib/gdb.scm: Export progspace symbols.
7251 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7253 (append-pretty-printer!): Ditto.
7254 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7256 * guile/scm-progspace.c: New file.
7258 2014-06-03 Alan Modra <amodra@gmail.com>
7260 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7261 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7263 2014-06-02 Doug Evans <dje@google.com>
7265 Add support for skeletonless type units.
7266 * dwarf2read.c (struct dwarf2_per_objfile): New member
7267 n_allocated_type_units.
7268 (struct dwarf2_per_objfile) <tu_stats>: New member
7269 nr_all_type_units_reallocs.
7270 (create_signatured_type_table_from_index): Initialize
7271 n_allocated_type_units
7272 (create_all_type_units): Ditto.
7273 (add_type_unit): Move up in file. New arg slot.
7274 All callers updated. Increase space for all_type_units more
7276 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7277 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7278 (lookup_dwp_signatured_type): Ditto.
7279 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7280 All callers updated.
7281 (build_type_psymtabs_1): Leave type_unit_groups as
7282 NULL if no TUs present.
7283 (print_tu_stats): New function.
7284 (process_skeletonless_type_unit): New function.
7285 (process_dwo_file_for_skeletonless_type_units): New
7287 (process_skeletonless_type_units): New function.
7288 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7289 Call print tu_stats if debugging enabled.
7291 2014-06-02 Pedro Alves <palves@redhat.com>
7293 * breakpoint.c (build_target_command_list): Don't build a command
7294 list if we have any duplicate location that isn't a dprintf.
7296 2014-06-02 Pedro Alves <palves@redhat.com>
7298 * breakpoint.c (dprintf_breakpoint_hit): New function.
7299 (initialize_breakpoint_ops): Install it as dprintf's
7300 breakpoint_hit method.
7302 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7304 * source.c (substitute_path_rule_matches): Simplify using
7305 filename_ncmp instead of FILENAME_CMP.
7307 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7309 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7311 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7313 * configure.ac: When Guile is available, check for the
7314 availability of 'scm_new_smob'.
7315 * configure, config.h.in: Regenerate.
7316 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7319 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7321 * frame.c (struct frame_info): Add stop_string field.
7322 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7323 (get_prev_frame_always): Old content moved into
7324 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7325 TRY_CATCH, handle MEMORY_ERROR exceptions.
7326 (frame_stop_reason_string): New function definition.
7327 * frame.h (unwind_stop_reason_to_string): Extend comment to
7328 mention frame_stop_reason_string.
7329 (frame_stop_reason_string): New function declaration.
7330 * stack.c (frame_info): Switch to frame_stop_reason_string.
7331 (backtrace_command_1): Switch to frame_stop_reason_string.
7332 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7333 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7334 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7336 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7338 * frame.c (frame_stop_reason_string): Rename to ...
7339 (unwind_stop_reason_to_string): this.
7340 * frame.h (frame_stop_reason_string): Rename to ...
7341 (unwind_stop_reason_to_string): this.
7342 * stack.c (frame_info): Update call to frame_stop_reason_string.
7343 (backtrace_command_1): Likewise.
7344 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7345 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7347 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7349 * frame.c (remove_prev_frame): New function.
7350 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7353 2014-05-29 Pedro Alves <palves@redhat.com>
7355 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7356 and make it const. When a single-step decays to a continue,
7357 clear 'step', not 'hw_step'. Pass whether the caller wanted
7358 to step to user_visible_resume_ptid, not what we ask the
7361 2014-05-29 Pedro Alves <palves@redhat.com>
7363 * infrun.c (process_event_stop_test, handle_step_into_function)
7364 (handle_step_into_function_backward): Adjust.
7365 Don't set the even thread's stop_step and call stop_waiting before
7366 calling end_stepping_range. Instead do that ...
7367 (end_stepping_range): ... here. Take an ecs pointer parameter.
7369 2014-05-29 Pedro Alves <palves@redhat.com>
7371 * infrun.c (stop_stepping): Rename to ...
7372 (stop_waiting): ... this.
7373 (proceed): Update comment.
7374 (process_event_stop_test, handle_inferior_event)
7375 (handle_signal_stop, handle_step_into_function)
7376 (handle_step_into_function_backward): Update.
7378 2014-05-29 Pedro Alves <palves@redhat.com>
7380 * infcall.c (run_inferior_call): Don't check whether the current
7381 thread is running after the proceed call.
7383 2014-05-29 Pedro Alves <palves@redhat.com>
7384 Tom Tromey <tromey@redhat.com>
7386 * NEWS: Mention "maint set target-async", "set mi-async", and that
7387 background execution commands are now always available.
7388 * target.h (target_async_permitted): Update comment.
7389 * target.c (target_async_permitted, target_async_permitted_1):
7391 (set_target_async_command): Rename to ...
7392 (maint_set_target_async_command): ... this.
7393 (show_target_async_command): Rename to ...
7394 (maint_show_target_async_command): ... this.
7395 (_initialize_target): Adjust.
7396 * infcmd.c (prepare_execution_command): Make extern.
7397 * inferior.h (prepare_execution_command): Declare.
7398 * infrun.c (set_observer_mode): Leave target async alone.
7399 * mi/mi-interp.c (mi_interpreter_init): Install
7400 mi_on_sync_execution_done as sync_execution_done observer.
7401 (mi_on_sync_execution_done): New function.
7402 (mi_execute_command_input_handler): Don't print the prompt if we
7403 just started a synchronous command with an async target.
7404 (mi_on_resume): Check sync_execution before printing prompt.
7405 * mi/mi-main.h (mi_async_p): Declare.
7406 * mi/mi-main.c: Include gdbcmd.h.
7407 (mi_async_p): New function.
7408 (mi_async, mi_async_1): New globals.
7409 (set_mi_async_command, show_mi_async_command, mi_async): New
7411 (exec_continue): Call prepare_execution_command.
7412 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7413 (mi_execute_async_cli_command): Use mi_async_p.
7414 (_initialize_mi_main): Install "set mi-async". Make
7415 "target-async" a deprecated alias.
7417 2014-05-29 Pedro Alves <palves@redhat.com>
7419 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7420 (_initialize_cli_interp): Adjust.
7421 * event-loop.c: Include "observer.h".
7422 (start_event_loop): Notify 'command_error' observers instead of
7423 calling display_gdb_prompt. Remove FIXME comment.
7424 * event-top.c (display_gdb_prompt): Remove call into the
7426 * inf-loop.c: Include "observer.h".
7427 (inferior_event_handler): Notify 'command_error' observers instead
7428 of calling display_gdb_prompt.
7429 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7430 observers instead of calling display_gdb_prompt.
7431 * interps.c (interp_set): Don't call display_gdb_prompt.
7432 (current_interp_display_prompt_p): Delete.
7433 * interps.h (interp_prompt_p): Delete declaration.
7434 (interp_prompt_p_ftype): Delete.
7435 (struct interp_procs) <prompt_proc_p>: Delete field.
7436 (current_interp_display_prompt_p): Delete declaration.
7437 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7438 (_initialize_mi_interp): Adjust.
7439 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7440 'command_error' observers.
7441 (tui_on_sync_execution_done, tui_on_command_error): New
7443 (tui_display_prompt_p): Delete.
7444 (_initialize_tui_interp): Adjust.
7446 2014-05-29 Pedro Alves <palves@redhat.com>
7449 * cli/cli-interp.c: Include infrun.h and observer.h.
7450 (cli_uiout, cli_interp): New globals.
7451 (cli_on_signal_received, cli_on_end_stepping_range)
7452 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7454 (cli_interpreter_init): Install them as 'end_stepping_range',
7455 'signal_received' 'signal_exited', 'exited' and 'no_history'
7457 (_initialize_cli_interp): Remove cli_interp local.
7458 * infrun.c (handle_inferior_event): Call the several stop reason
7459 observers instead of printing the stop reason directly.
7460 (end_stepping_range): New function.
7461 (print_end_stepping_range_reason, print_signal_exited_reason)
7462 (print_exited_reason, print_signal_received_reason)
7463 (print_no_history_reason): Make static, and add an uiout
7464 parameter. Print to that instead of to CURRENT_UIOUT.
7465 * infrun.h (print_end_stepping_range_reason)
7466 (print_signal_exited_reason, print_exited_reason)
7467 (print_signal_received_reason print_no_history_reason): New
7469 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7471 <cli_uiout>: New field.
7472 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7473 uiout for CLI output. Install 'signal_received',
7474 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7476 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7477 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7478 (mi_on_no_history): New functions.
7479 (ui_out_free_cleanup): Delete function.
7480 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7481 instead use the one already stored in the MI interpreter data.
7482 (mi_ui_out): Adjust.
7483 * tui/tui-interp.c: Include infrun.h and observer.h.
7484 (tui_interp): New global.
7485 (tui_on_signal_received, tui_on_end_stepping_range)
7486 (tui_on_signal_exited, tui_on_exited)
7487 (tui_on_no_history): New functions.
7488 (tui_init): Install them as 'end_stepping_range',
7489 'signal_received' 'signal_exited', 'exited' and 'no_history'
7491 (_initialize_tui_interp): Delete tui_interp local.
7493 2014-05-29 Pedro Alves <palves@redhat.com>
7496 * linux-nat.c (linux_nat_resume_callback): Rename the second
7497 parameter to 'except'. Skip LP if it points to EXCEPT.
7498 (linux_nat_resume): Don't mark the event lwp as not stopped
7499 before resuming sibling lwps. Instead ask
7500 linux_nat_resume_callback to skip the event lwp. Mark it as not
7501 stopped after actually resuming it.
7502 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7504 (wait_lwp): Mark the lwp as stopped here.
7505 (stop_wait_callback): Mark the lwp as not stopped right after
7506 resuming it. Don't mark lwps as stopped here.
7507 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7508 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7510 2014-05-29 Pedro Alves <palves@redhat.com>
7513 * infrun.c (resume): Determine how much to resume depending on
7514 whether the caller wanted a step, not whether we can hardware step
7515 the target. Mark all threads that we intend to run as running,
7516 unless we're calling an inferior function.
7517 (normal_stop): If the thread is running an infcall, don't finish
7519 * target.c (target_resume): Don't mark threads as running here.
7521 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7523 * serial.c (_initialize_serial): Remove support for
7524 the "set remotebaud" and "show remotebaud" commands.
7525 * NEWS: Add entry documenting the removal of that command.
7527 2014-05-28 Yao Qi <yao@codesourcery.com>
7529 * charset.c: Fix typo in comments.
7531 2014-05-27 Gary Benson <gbenson@redhat.com>
7533 * utils.c (internal_vproblem): Prompt for a bug report.
7535 2014-05-26 Andy Wingo <wingo@igalia.com>
7537 * guile/scm-arch.c (arscm_mark_arch_smob):
7538 * guile/scm-block.c (bkscm_mark_block_smob)
7539 (bkscm_mark_block_syms_progress_smob):
7540 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7541 * guile/scm-exception.c (exscm_mark_exception_smob):
7542 * guile/scm-frame.c (frscm_mark_frame_smob):
7543 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7544 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7545 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7546 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7547 (ppscm_mark_pretty_printer_worker_smob):
7548 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7549 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7550 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7551 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7553 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7556 2014-05-26 Andy Wingo <wingo@igalia.com>
7557 Doug Evans <xdje42@gmail.com>
7559 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7560 empty_base_class. All uses updated.
7561 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7562 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7564 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7565 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7566 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7567 (gdbscm_gsmob_has_property_p, add_property_name)
7568 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7569 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7570 (gdb-object-has-property?, gdb-object-properties): Remove.
7571 (gdb-object-kind): Renamed from gsmob-kind.
7573 2014-05-26 Andy Wingo <wingo@igalia.com>
7575 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7576 * configure: Regenerate.
7578 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7580 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7582 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7584 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7585 (replay_memory_access_read_only, replay_memory_access_read_write)
7586 (replay_memory_access_types, replay_memory_access)
7587 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7588 (cmd_set_record_btrace, cmd_show_record_btrace)
7589 (cmd_show_replay_memory_access): New.
7590 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7591 (record_btrace_remove_breakpoint): Replace
7592 record_btrace_allow_memory_access with replay_memory_access.
7593 (_initialize_record_btrace): Add commands.
7594 * NEWS: Announce it.
7596 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7598 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7600 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7602 * MAINTAINERS (Write After Approval): Move self back from
7605 2014-05-22 Pedro Alves <palves@redhat.com>
7607 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7608 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7609 (disable_randomization, enum exec_direction_kind)
7610 (execution_direction, stop_registers, start_remote)
7611 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7612 (wait_for_inferior, normal_stop, get_last_target_status)
7613 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7614 (insert_step_resume_breakpoint_at_sal)
7615 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7616 (set_step_info, print_stop_event, signal_stop_state)
7617 (signal_print_state, signal_pass_state, signal_stop_update)
7618 (signal_print_update, signal_pass_update)
7619 (update_signals_program_target, clear_exit_convenience_vars)
7620 (displaced_step_dump_bytes, update_observer_mode)
7621 (signal_catch_update, gdb_signal_from_command): Move
7623 * infrun.h: ... to this new file.
7624 * amd64-tdep.c: Include infrun.h.
7625 * annotate.c: Include infrun.h.
7626 * arch-utils.c: Include infrun.h.
7627 * arm-linux-tdep.c: Include infrun.h.
7628 * arm-tdep.c: Include infrun.h.
7629 * break-catch-sig.c: Include infrun.h.
7630 * breakpoint.c: Include infrun.h.
7631 * common/agent.c: Include infrun.h instead of inferior.h.
7632 * corelow.c: Include infrun.h.
7633 * event-top.c: Include infrun.h.
7634 * go32-nat.c: Include infrun.h.
7635 * i386-tdep.c: Include infrun.h.
7636 * inf-loop.c: Include infrun.h.
7637 * infcall.c: Include infrun.h.
7638 * infcmd.c: Include infrun.h.
7639 * infrun.c: Include infrun.h.
7640 * linux-fork.c: Include infrun.h.
7641 * linux-nat.c: Include infrun.h.
7642 * linux-thread-db.c: Include infrun.h.
7643 * monitor.c: Include infrun.h.
7644 * nto-tdep.c: Include infrun.h.
7645 * procfs.c: Include infrun.h.
7646 * record-btrace.c: Include infrun.h.
7647 * record-full.c: Include infrun.h.
7648 * remote-m32r-sdi.c: Include infrun.h.
7649 * remote-mips.c: Include infrun.h.
7650 * remote-notif.c: Include infrun.h.
7651 * remote-sim.c: Include infrun.h.
7652 * remote.c: Include infrun.h.
7653 * reverse.c: Include infrun.h.
7654 * rs6000-tdep.c: Include infrun.h.
7655 * s390-linux-tdep.c: Include infrun.h.
7656 * solib-irix.c: Include infrun.h.
7657 * solib-osf.c: Include infrun.h.
7658 * solib-svr4.c: Include infrun.h.
7659 * target.c: Include infrun.h.
7660 * top.c: Include infrun.h.
7661 * windows-nat.c: Include infrun.h.
7662 * mi/mi-interp.c: Include infrun.h.
7663 * mi/mi-main.c: Include infrun.h.
7664 * python/py-threadevent.c: Include infrun.h.
7666 2014-05-22 Pedro Alves <palves@redhat.com>
7668 * infrun.c (handle_inferior_event): Store the exit code for
7669 --return-child-result here, instead of ...
7670 (print_exited_reason): ... here.
7672 2014-05-21 Pedro Alves <palves@redhat.com>
7675 * gdbthread.h (struct thread_control_state): New field
7677 * infrun.c (follow_fork): Copy the new thread control field to the
7679 (clear_proceed_status_thread): Clear the new thread control field.
7680 (proceed): Set the new thread control field.
7681 * interps.h (command_interp): Declare.
7682 * interps.c (command_interpreter): New global.
7683 (command_interp): New function.
7684 (interp_exec): Set `command_interpreter' while here.
7685 * cli-out.c (cli_uiout_dtor): New function.
7686 (cli_ui_out_impl): Install it.
7687 * mi/mi-interp.c: Include cli-out.h.
7688 (mi_cmd_interpreter_exec): Add comment.
7689 (restore_current_uiout_cleanup): New function.
7690 (ui_out_free_cleanup): New function.
7691 (mi_on_normal_stop): If finishing an execution command started by
7692 a CLI command, or any kind of breakpoint-like event triggered,
7693 print the stop event to the output (CLI) stream.
7694 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7696 2014-05-21 Pedro Alves <palves@redhat.com>
7698 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7699 current source line having changed.
7700 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7701 * infrun.c (normal_stop): Adjust call to
7702 set_current_sal_from_frame.
7703 * source.c (clear_lines_listed_range): New function.
7704 (set_current_source_symtab_and_line, identify_source_line): Clear
7705 the lines listed range.
7706 (line_info): Handle the first "info line" after the current source
7707 line having changed.
7708 * stack.c (print_stack_frame): Remove center handling.
7709 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7712 2014-05-21 Pedro Alves <palves@redhat.com>
7714 * inf-child.c (inf_child_mourn_inferior): New function.
7715 * inf-child.h (inf_child_mourn_inferior): New declaration.
7716 * darwin-nat.c (darwin_mourn_inferior): Use
7717 inf_child_mourn_inferior.
7718 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7719 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7720 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7721 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7722 * windows-nat.c (windows_mourn_inferior): Likewise.
7724 2014-05-21 Doug Evans <xdje42@gmail.com>
7726 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7728 2014-05-21 Doug Evans <xdje42@gmail.com>
7730 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7731 (gdbscm_out_of_range_error): Ditto.
7732 (gdbscm_memory_error): Ditto.
7733 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7734 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7735 (gdbscm_out_of_range_error): Update.
7736 (gdbscm_memory_error): Update.
7737 (gdbscm_scm_to_target_string_unsafe): Delete.
7739 2014-05-21 Pedro Alves <palves@redhat.com>
7741 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7743 (inf_child_open_target): New function.
7744 (inf_child_open): Use inf_child_open_target to push the target
7745 instead of erroring out.
7746 (inf_child_disconnect, inf_child_close)
7747 (inf_child_maybe_unpush_target): New functions.
7748 (inf_child_target): Install inf_child_disconnect and
7749 inf_child_close. Store a pointer to the returned object.
7750 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7752 * target.c (auto_connect_native_target): New global.
7753 (show_default_run_target): New function.
7754 (find_default_run_target): Return NULL if automatically connecting
7755 to the native target is disabled.
7756 (_initialize_target): Install set/show auto-connect-native-target.
7757 * NEWS: Mention "set auto-connect-native-target", and "target
7759 * linux-nat.c (super_close): New global.
7760 (linux_nat_close): Call super_close.
7761 (linux_nat_add_target): Store a pointer to the base class's
7763 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7764 inf_child_maybe_unpush.
7765 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7767 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7768 the inferior. Use inf_child_maybe_unpush_target.
7769 (inf_ttrace_attach): Don't push the target if it is already
7771 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7772 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7773 after mourning the inferior. Use inf_child_maybe_unpush_target.
7774 (darwin_attach_pid): Don't push the target if it is already
7776 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7777 mourning the inferior. Use inf_child_maybe_unpush_target.
7778 (gnu_detach): Use inf_child_maybe_unpush_target.
7779 * go32-nat.c (go32_create_inferior): Don't push the target if it
7781 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7782 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7783 (procfs_open): Rename to ...
7784 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7785 comments. Can target_preopen before changing node. Call
7786 inf_child_open_target to push the target explicitly.
7787 (procfs_attach): Don't push the target if it is already pushed.
7788 (procfs_detach): Use inf_child_maybe_unpush_target.
7789 (procfs_create_inferior): Don't push the target if it is already
7791 (nto_native_ops): New global.
7792 (procfs_open): Reimplement.
7793 (procfs_native_open): New function.
7794 (init_procfs_targets): Install procfs_native_open as to_open of
7795 "target native". Store a pointer to the "native" target in
7797 * procfs.c (procfs_attach): Don't push the target if it is already
7799 (procfs_detach): Use inf_child_maybe_unpush_target.
7800 (procfs_mourn_inferior): Only unpush the target after mourning the
7801 inferior. Use inf_child_maybe_unpush_target.
7802 (procfs_init_inferior): Don't push the target if it is already
7804 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7805 if it is already pushed.
7807 2014-05-21 Pedro Alves <palves@redhat.com>
7809 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7810 and "procfs" targets are now called "native" instead.
7812 2014-05-21 Pedro Alves <palves@redhat.com>
7814 * go32-nat.c (go32_open): Delete.
7815 (go32_target): Don't override the to_open method.
7817 2014-05-21 Pedro Alves <palves@redhat.com>
7819 * nto-procfs.c (procfs_can_run): New function.
7820 (nto_procfs_ops): New global.
7821 (init_procfs_targets): New, based on procfs_target. Install
7822 "target native" in addition to "target procfs".
7823 (_initialize_procfs): Call init_procfs_targets instead of adding
7826 2014-05-21 Pedro Alves <palves@redhat.com>
7828 * windows-nat.c (windows_target): Don't override to_shortname,
7829 to_longname or to_doc.
7831 2014-05-21 Pedro Alves <palves@redhat.com>
7833 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7836 2014-05-21 Pedro Alves <palves@redhat.com>
7838 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7839 to_shortname, to_longname or to_doc.
7841 2014-05-21 Pedro Alves <palves@redhat.com>
7843 * go32-nat.c (go32_target): Don't override to_shortname,
7844 to_longname or to_doc.
7846 2014-05-21 Pedro Alves <palves@redhat.com>
7848 * inf-child.c (inf_child_open): Remove mention of "child".
7849 (inf_child_target): Rename target to "native" instead of "child".
7851 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7853 * Makefile.in (SFILES): Delete "regset.c".
7854 (COMMON_OBS): Delete "regset.o".
7856 * regset.h (regset_alloc): Delete prototype.
7858 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7860 * sparc-linux-tdep.c (sparc32_linux_gregset)
7861 (sparc32_linux_fpregset): New static regset structures.
7862 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7863 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7865 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7866 (sparc64_linux_fpregset): New static regset structures.
7867 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7868 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7869 New static regset structures.
7870 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7871 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7872 New static regset structures.
7873 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7874 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7875 New static regset structures.
7876 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7877 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7878 New static regset structures.
7879 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7881 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7883 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7884 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7885 register maps ("regmaps") from "*regset" to "*regmap". Do this
7886 for all regmap types and variables.
7887 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7888 (sparc32_linux_supply_core_gregset)
7889 (sparc32_linux_collect_core_gregset)
7890 (sparc32_linux_supply_core_fpregset)
7891 (sparc32_linux_collect_core_fpregset): Likewise.
7892 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7893 (sparc_gregmap, sparc_fpregmap): ... these.
7894 (sparc_supply_gregset, sparc_collect_gregset)
7895 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7896 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7897 (_initialize_sparc_nat): Rename regmaps.
7898 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7899 (sparc_gregmap, sparc_fpregmap): ... these.
7900 (sparc_supply_gregset, sparc_collect_gregset)
7901 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7902 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7904 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7905 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7907 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7909 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7910 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7911 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7913 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7914 (sparc32_bsd_fpregset): Rename to...
7915 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7916 (sparc32_bsd_fpregmap): ... these.
7917 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7918 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7919 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7920 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7921 (struct sparc_gregmap, struct sparc_fpregmap)
7922 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7923 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7924 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7925 (sparc32_supply_regset, sparc32_collect_gregset)
7926 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7928 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7929 (sparc64_linux_ptrace_gregmap): ... this.
7930 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7931 (_initialize_sparc64_linux_nat): Rename regmaps.
7932 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7933 (sparc64_linux_core_gregmap): ... this.
7934 (sparc64_linux_supply_core_gregset)
7935 (sparc64_linux_collect_core_gregset)
7936 (sparc64_linux_supply_core_fpregset)
7937 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7938 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7939 (sparc64_sol2_fpregset): Rename to...
7940 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7941 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7942 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7944 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7945 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7946 (sparc64_bsd_fpregset): Rename to...
7947 (struct sparc_gregmap, sparc64_sol2_gregmap)
7948 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7949 (sparc64_bsd_fpregmap): ... these.
7950 (sparc64_supply_gregset, sparc64_collect_gregset)
7951 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7953 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7954 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7955 (sparc64fbsd_gregmap): ... this.
7956 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7957 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7959 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7960 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7961 (sparc64nbsd_collect_fpregset): Likewise.
7962 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7963 (sparc64nbsd_gregmap): ... this.
7964 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7966 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7967 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7968 (sparc64obsd_gregmap): ... this.
7969 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7971 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7972 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7973 (sparc32nbsd_gregmap): ... this.
7974 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7977 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7979 * score-tdep.c (score7_linux_gregset): New static regset
7981 (score7_linux_regset_from_core_section): Remove dynamic regset
7983 (score_gdbarch_init): Drop allocation of tdep structure.
7984 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7986 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7988 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7990 (am33_regset_from_core_section): Remove dynamic regset
7993 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7995 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7996 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7998 (mips_linux_regset_from_core_section): Remove dynamic regset
8000 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8001 'gregset64', 'fpregset', and 'fpregset64'.
8002 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8003 deleted tdep fields.
8005 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8007 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8009 (amd64_regset_from_core_section): Remove dynamic regset
8011 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8013 (amd64obsd_regset_from_core_section): Remove dynamic regset
8015 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8017 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8018 x86-common regset supply function.
8019 * i386-tdep.c (i386_collect_gregset): Make static.
8020 (i386_gregset): New global regset structure.
8021 (i386_fpregset, i386_xstateregset): New static regset structures.
8022 (i386_regset_from_core_section): Remove dynamic regset
8024 (i386_gdbarch_init): Remove initialization of tdep fields
8025 'gregset', 'fpregset', and 'xstateregset'.
8026 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8027 'fpregset', and 'xstateregset'.
8028 (i386_collect_gregset): Remove prototype.
8029 (i386_gregset): New declaration.
8030 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8032 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8035 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8037 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8038 (arm_linux_vfpregset): New static regset structures.
8039 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8041 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8042 and 'vfpregset' fields.
8044 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8046 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8047 (aarch64_linux_fpregset): New static regset structures.
8048 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8049 of regset structures.
8050 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8053 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8055 * regset.h (struct regset): Remove gdbarch field.
8056 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8057 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8058 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8060 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8061 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8062 (ppc32_linux_vsxregset): Likewise.
8063 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8064 via the regcache instead of the regset.
8065 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8066 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8067 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8068 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8071 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8073 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8074 Constify structures.
8075 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8076 (alphanbsd_aout_gregset): Likewise.
8077 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8078 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8080 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8081 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8083 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8084 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8085 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8086 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8087 * m88k-tdep.c (m88k_gregset): Likewise.
8088 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8089 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8090 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8091 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8092 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8093 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8094 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8095 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8096 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8098 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8099 * sh-tdep.h (sh_corefile_gregset): Likewise.
8100 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8101 * vax-tdep.c (vax_gregset): Likewise.
8103 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8105 Fix TLS access for -static -pthread.
8106 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8107 (try_thread_db_load_1): Initialize it.
8108 (thread_db_get_thread_local_address): Call it if LM is zero.
8109 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8110 * target.h (struct target_ops) (to_get_thread_local_address): Add
8111 load_module_addr comment.
8113 2014-05-21 Pedro Alves <palves@redhat.com>
8115 * dcache.c (dcache_read_memory_partial): If reading the cache line
8116 fails, fallback to reading just the memory the caller wanted.
8118 2014-05-20 Doug Evans <dje@google.com>
8120 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8121 instead of get_current_arch.
8123 2014-05-20 Pedro Alves <palves@redhat.com>
8125 * NEWS: Mention that compare-sections now works with all targets.
8127 * remote.c (PACKET_qCRC): New enum value.
8128 (remote_verify_memory): Don't send qCRC if the target has no
8129 execution. Use packet_support/packet_ok. If the target doesn't
8130 support the qCRC packet, fallback to a deep memory copy.
8131 (compare_sections_command): Say "target image" instead of "remote
8133 (_initialize_remote): Add PACKET_qCRC to the list of config
8134 packets that have no associated command. Extend comment.
8135 * target.c (simple_verify_memory, default_verify_memory): New
8137 * target.h (struct target_ops) <to_verify_memory>: Default to
8138 default_verify_memory.
8139 (simple_verify_memory): New declaration.
8140 * target-delegates.c: Regenerate.
8142 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8144 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8146 2014-05-20 Hui Zhu <hui@codesourcery.com>
8147 Yao Qi <yao@codesourcery.com>
8150 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8151 and change address of sp and pc.
8153 2014-05-19 Tom Tromey <tromey@redhat.com>
8155 * gdbtypes.c (rank_function): Use XNEWVEC.
8156 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8158 2014-05-19 Doug Evans <dje@google.com>
8160 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8161 build_type_unit_groups and moved closer to only caller. Remove
8162 arguments. All references updated. Remove outdated .gdb_index
8164 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8165 build_type_psymtabs_1.
8167 2014-05-19 Doug Evans <dje@google.com>
8169 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8170 n_type_unit_groups, all_type_unit_groups. All uses removed.
8171 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8172 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8173 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8174 (add_type_unit_group_to_table): Delete.
8176 2014-05-19 Doug Evans <dje@google.com>
8178 * eval.c (evaluate_subexp_standard): Add some comments.
8180 2014-05-17 Doug Evans <xdje42@gmail.com>
8182 * progspace.c (remove_program_space): Delete, unused.
8183 * progspace.h (remove_program_space): Ditto.
8185 2014-05-17 Doug Evans <xdje42@gmail.com>
8187 * inferior.c (prune_inferiors): Fix comment.
8188 (remove_inferior_command): Call prune_program_spaces.
8190 2014-05-16 Doug Evans <dje@google.com>
8192 New command line option -D.
8194 * main.c (set_gdb_data_directory): New function.
8195 (captured_main): Recognize -D. Flag error for --data-directory "".
8196 Call set_gdb_data_directory.
8197 (print_gdb_help): Print --data-directory, -D.
8198 * main.h (set_gdb_data_directory): Declare.
8199 * top.c (staged_gdb_datadir): New static global.
8200 (set_gdb_datadir): Call set_gdb_data_directory
8201 (show_gdb_datadir): New function.
8202 (init_main): Update init of data-directory parameter.
8204 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8206 Import the "dirfd" gnulib module.
8207 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8208 * gnulib/aclocal.m4: Update.
8209 * gnulib/config.in: Update.
8210 * gnulib/configure: Update.
8211 * gnulib/import/Makefile.am: Update.
8212 * gnulib/import/Makefile.in: Update.
8213 * gnulib/import/dirfd.c: New.
8214 * gnulib/import/m4/dirfd.m4: New.
8215 * gnulib/import/m4/gnulib-cache.m4: Update.
8216 * gnulib/import/m4/gnulib-comp.m4: Update.
8218 2014-05-16 Pierre Muller <muller@sourceware.org>
8219 Yao Qi <yao@codesourcery.com>
8221 * valprint.c (print_wchar): Move the code on checking whether
8222 W is a printable wide char to the default branch of switch
8223 statement below. Call wchar_printable instead of gdb_iswprint.
8225 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8227 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8228 ldr.w and ldrd instructions.
8230 2014-05-15 Doug Evans <dje@google.com>
8232 * dwarf2read.c (read_structure_type): Delete outdated comments.
8234 2014-05-14 Tom Tromey <tromey@redhat.com>
8236 * macrocmd.c (print_macro_definition): Reindent.
8238 2014-05-13 Doug Evans <xdje42@gmail.com>
8240 * python/py-cmd.c (cmdpy_completer): Add comment.
8241 (completers): Make const.
8243 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8245 * infrun.c (resume): Remove should_resume (unused). Move up
8246 declaration of resume_ptid.
8248 2014-05-13 Tom Tromey <tromey@redhat.com>
8250 * language.h (unop_type_check): Remove.
8251 (binop_type_check): Don't declare.
8253 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8255 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8256 call to regcache_raw_collect.
8258 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8260 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8261 mi_console->quote as the quoting character.
8263 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8265 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8267 2014-04-29 Tom Tromey <tromey@redhat.com>
8269 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8270 "show debug varobj".
8272 2014-05-07 Kyle McMartin <kyle@redhat.com>
8274 Pushed by Joel Brobecker <brobecker@adacore.com>.
8275 * aarch64-tdep.c (aarch64_software_single_step): New function.
8276 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8277 with aarch64_software_single_step.
8279 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8283 2014-05-05 Keith Seitz <keiths@redhat.com>
8285 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8286 variable or history value is successfully parsed.
8288 2014-05-05 Yao Qi <yao@codesourcery.com>
8289 Pedro Alves <palves@redhat.com>
8291 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8292 address of blocks that intersects the requested range. Trim
8293 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8295 * ctf.c (ctf_xfer_partial): Likewise.
8297 2014-05-05 Yao Qi <yao@codesourcery.com>
8299 * printcmd.c (display_command): Remove the check to
8300 target_has_execution.
8302 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8304 * ppcobsd-nat.c: Include "obsd-nat.h".
8305 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8307 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8309 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8311 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8312 and 16-bit signed and unsigned arguments. Update comment.
8313 (stap_parse_probe_arguments): Extend code to handle such
8314 arguments. Use warning instead of complaint to notify about
8315 unrecognized bitness.
8317 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8319 PR breakpoints/16889
8320 * stap-probe.c (stap_parse_probe_arguments): Simplify
8321 check for non-prefixed probes (i.e., probes whose
8322 arguments do not start with "N@"). Always set the
8323 argument type to a sane value.
8325 2014-05-01 David Taylor <dtaylor@emc.com>
8327 * remote.c (compare_sections_command): Add -r option to compare
8328 all loadable read-only sections.
8330 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8332 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8333 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8335 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8336 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8337 Remove unused CORE_ADDR argument. Update all callers.
8339 2014-04-29 Pedro Alves <palves@redhat.com>
8341 * remote.c (struct packet_config) <detect>: Extend comment.
8342 (add_packet_config_cmd): Don't set the config's detect or support
8344 (init_all_packet_configs): Also initialize the config's 'detect'
8346 (reset_all_packet_configs_support): New function.
8347 (remote_open_1): Call reset_all_packet_configs_support instead of
8348 init_all_packet_configs.
8349 (_initialize_remote): Initialize all packet configs. Assert that
8350 all packets have an associated command, except a few known
8353 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8355 * dwarf2read.c (read_subrange_type): Handle dynamic
8356 DW_AT_lower_bound attributes.
8358 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8360 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8361 dynamic bounds before computing its upper bound.
8362 (ada_discrete_type_low_bound): Same as above with the lower bound.
8364 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8366 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8367 range types. Adjust the array handling implementation to
8368 take advantage of this change.
8369 (resolve_dynamic_range): New function, mostly extracted from
8370 resolve_dynamic_bounds.
8371 (resolve_dynamic_array): New function, mostly extracted from
8372 resolve_dynamic_bounds.
8373 (resolve_dynamic_bounds): Delete.
8374 (resolve_dynamic_type): Reimplement. Add handling of
8375 TYPE_CODE_RANGE types.
8377 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8379 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8380 handling of parallel ___XA types.
8382 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8385 unnecessary second call to static_unwrap_type.
8387 2014-04-27 Hui Zhu <hui@codesourcery.com>
8389 * stack.c (print_frame_info): Call do_gdb_disassembly with
8390 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8392 2014-04-26 Doug Evans <xdje42@gmail.com>
8394 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8396 2014-04-25 Pedro Alves <palves@redhat.com>
8399 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8400 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8401 and newline from built string.
8402 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8403 (linux_ptrace_attach_fail_reason): ... this.
8404 * linux-nat.c (linux_nat_attach): Adjust to use
8405 linux_ptrace_attach_fail_reason.
8407 2014-04-25 Pedro Alves <palves@redhat.com>
8409 * remote.c (struct remote_state): Remove multi_process_aware,
8410 non_stop_aware, cond_tracepoints, cond_breakpoints,
8411 breakpoint_commands, fast_tracepoints, static_tracepoints,
8412 install_in_trace, disconnected_tracing,
8413 enable_disable_tracepoints, string_tracing, and
8414 augmented_libraries_svr4_read fields.
8415 (remote_multi_process_p): Move further below in the file.
8416 (struct packet_config): Add comments.
8417 (update_packet_config): Delete function.
8418 (show_packet_config_cmd): Use packet_config_support.
8419 (add_packet_config_cmd): Use NULL as set callback.
8420 (packet_ok): "set remote foo-packet"-style commands no longer
8421 change config->supported -- adjust.
8422 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8423 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8424 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8425 (PACKET_QNonStop, PACKET_multiprocess_feature)
8426 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8427 (PACKET_DisconnectedTracing_feature)
8428 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8429 (set_remote_protocol_packet_cmd): Delete function.
8430 (packet_config_support, packet_support): New functions.
8431 (set_remote_protocol_Z_packet_cmd): Don't call
8432 update_packet_config.
8433 (remote_query_attached, remote_pass_signals)
8434 (remote_program_signals, remote_threads_info)
8435 (remote_threads_extra_info, remote_start_remote): Use
8437 (remote_start_remote): Use packet_config_support and
8439 (init_all_packet_configs): Set all packets to unknown support,
8440 instead of calling update_packet_config.
8441 (remote_check_symbols): Use packet_support.
8442 (remote_supported_packet): Unconditionally set the packet config's
8444 (remote_multi_process_feature, remote_non_stop_feature)
8445 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8446 (remote_breakpoint_commands_feature)
8447 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8448 (remote_install_in_trace_feature)
8449 (remote_disconnected_tracing_feature)
8450 (remote_enable_disable_tracepoint_feature)
8451 (remote_string_tracing_feature)
8452 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8453 (remote_protocol_features): Adjust to use remote_supported_packet
8454 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8455 "ConditionalTracepoints", "ConditionalBreakpoints",
8456 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8457 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8458 "EnableDisableTracepoints", and "tracenz".
8459 (remote_query_supported): Use packet_support.
8460 (remote_open_1): Adjust.
8461 (extended_remote_attach_1): Use packet_support. Switch on the
8462 result of packet_ok instead of checking whether the packet ended
8464 (remote_vcont_resume): Use packet_support.
8465 (remote_resume, remote_stop_ns, fetch_register_using_p)
8466 (remote_prepare_to_store, store_register_using_P)
8467 (check_binary_download, remote_write_bytes): Use packet_support.
8468 (remote_vkill): Use packet_support. Switch on the result of
8469 packet_ok instead of checking whether the packet ended up
8471 (extended_remote_supports_disable_randomization): Use
8473 (extended_remote_run): Switch on the result of packet_ok instead
8474 of checking whether the packet ended up disabled.
8475 (remote_insert_breakpoint, remote_remove_breakpoint)
8476 (remote_insert_watchpoint, remote_remove_watchpoint)
8477 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8479 (remote_search_memory): Use packet_config_support.
8480 (remote_get_thread_local_address, remote_get_tib_address)
8481 (remote_hostio_send_command, remote_can_execute_reverse): Use
8483 (remote_supports_cond_tracepoints)
8484 (remote_supports_cond_breakpoints)
8485 (remote_supports_fast_tracepoints)
8486 (remote_supports_static_tracepoints)
8487 (remote_supports_install_in_trace)
8488 (remote_supports_enable_disable_tracepoint)
8489 (remote_supports_string_tracing)
8490 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8491 the packet config says the feature is enabled or disabled.
8492 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8493 (remote_get_trace_status): Use packet_support.
8494 (remote_set_disconnected_tracing): Adjust to check whether the
8495 feature is enabled with packet_support.
8496 (remote_set_trace_buffer_size, remote_use_agent)
8497 (remote_can_use_agent, remote_supports_btrace): Use
8499 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8500 Use packet_config_support.
8501 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8502 the packet config says the feature is enabled or disabled.
8503 (set_range_stepping): Use packet_support.
8505 2014-04-25 Tom Tromey <tromey@redhat.com>
8507 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8510 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8512 * NEWS: Mention support for C99 variable length arrays.
8514 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8516 * ada-lang.c (standard_exc): Expand introductory comment.
8518 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8519 Walfred Tedeschi <walfred.tedeschi@intel.com>
8521 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8523 (amd64_linux_read_description): Add code to handle AVX512 xstate
8524 mask and return respective tdesc.
8525 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8526 and features/i386/x32-avx512-linux.c.
8527 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8528 (amd64_linux_core_read_description): Add code to handle AVX512
8529 xstate mask and return respective tdesc.
8530 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8531 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8533 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8534 (tdesc_amd64_avx512_linux): New prototype.
8535 (tdesc_x32_avx512_linux): Likewise.
8536 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8537 features/i386/x32-avx512.c.
8538 (amd64_ymm_avx512_names): New register names for pseudo
8540 (amd64_ymmh_avx512_names): New register names for raw registers
8542 (amd64_k_names): New register names for K registers.
8543 (amd64_zmmh_names): New register names for ZMM raw registers.
8544 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8545 (amd64_xmm_avx512_names): New register names for XMM16-31
8547 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8549 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8550 if feature is present.
8551 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8552 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8553 (AMD64_NUM_REGS): Adjust to new number of registers.
8554 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8555 registers supplied via XSTATE by AVX512 registers.
8556 (i386_linux_read_description): Add case for AVX512.
8557 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8558 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8559 (i386_linux_core_read_description): Add case for AVX512.
8560 (i386_linux_init_abi): Install supported register note section
8562 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8564 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8565 registers to be number of zmm7h + 1.
8566 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8567 * i386-tdep.c: Include features/i386/i386-avx512.c.
8568 (i386_zmm_names): Add ZMM pseudo register names array.
8569 (i386_zmmh_names): Add ZMM raw register names array.
8570 (i386_k_names): Add K raw register names array.
8571 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8572 registers. AVX512 has 16 more ZMM registers than there are YMM
8574 (i386_zmmh_regnum_p): Add function to look up register number of
8576 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8577 (i386_k_regnum_p): Likewise for K raw registers.
8578 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8579 registers added by AVX512.
8580 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8581 registers added by AVX512.
8582 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8584 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8585 (i386_pseudo_register_name): Add ZMM pseudo registers.
8586 (i386_zmm_type): Construct and return vector registers type for ZMM
8588 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8589 ZMM0-31 pseudo registers and K registers.
8590 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8591 and YMM16-31 registers from register cache.
8592 (i386_pseudo_register_write): Add code to write K, ZMM and
8594 (i386_register_reggroup_p): Add code to include/exclude AVX512
8595 registers in/from respective register groups.
8596 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8597 registers if feature is present in xcr0.
8598 (i386_gdbarch_init): Add code to initialize AVX512 feature
8599 variables in tdep structure, wire in pseudo registers and call
8600 initialize_tdesc_i386_avx512.
8601 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8603 (i386_regnum): Add AVX512 registers.
8604 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8605 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8606 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8607 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8609 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8610 (i386_ymm_avx512_regnum_p): Likewise.
8611 (i386_k_regnum_p): Likewise.
8612 (i386_zmm_regnum_p): Likewise.
8613 (i386_zmmh_regnum_p): Likewise.
8614 * i387-tdep.c : Update year in copyright notice.
8615 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8617 (XSAVE_YMM_AVX512_ADDR): New macro.
8618 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8620 (XSAVE_XMM_AVX512_ADDR): New macro.
8621 (xsave_avx512_k_offset): New table for K register offsets in
8623 (XSAVE_AVX512_K_ADDR): New macro.
8624 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8626 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8627 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8629 (i387_collect_xsave): Add code to collect AVX512 registers from
8631 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8632 of XMM16-31 registers.
8633 (I387_NUM_K_REGS): New define for number of K registers.
8634 (I387_K0_REGNUM): New define for K0 register number.
8635 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8636 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8637 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8639 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8640 (I387_XMM16_REGNUM): New define for XMM16 register number.
8641 (I387_YMM0_REGNUM): New define for YMM0 register number.
8642 (I387_KEND_REGNUM): New define for last K register number.
8643 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8644 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8646 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8648 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8650 * features/Makefile: Add AVX512 related files.
8651 * features/i386/32bit-avx512.xml: New file.
8652 * features/i386/64bit-avx512.xml: Likewise.
8653 * features/i386/amd64-avx512-linux.c: Likewise.
8654 * features/i386/amd64-avx512-linux.xml: Likewise.
8655 * features/i386/amd64-avx512.c: Likewise.
8656 * features/i386/amd64-avx512.xml: Likewise.
8657 * features/i386/i386-avx512-linux.c: Likewise.
8658 * features/i386/i386-avx512-linux.xml: Likewise.
8659 * features/i386/i386-avx512.c: Likewise.
8660 * features/i386/i386-avx512.xml: Likewise.
8661 * features/i386/x32-avx512-linux.c: Likewise.
8662 * features/i386/x32-avx512-linux.xml: Likewise.
8663 * features/i386/x32-avx512.c: Likewise.
8664 * features/i386/x32-avx512.xml: Likewise.
8665 * regformats/i386/amd64-avx512-linux.dat: New file.
8666 * regformats/i386/amd64-avx512.dat: Likewise.
8667 * regformats/i386/i386-avx512-linux.dat: Likewise.
8668 * regformats/i386/i386-avx512.dat: Likewise.
8669 * regformats/i386/x32-avx512-linux.dat: Likewise.
8670 * regformats/i386/x32-avx512.dat: Likewise.
8671 * NEWS: Add note about new support for AVX512.
8674 2014-04-23 Pedro Alves <palves@redhat.com>
8676 * breakpoint.c (insert_bp_location): Tolerate errors if the
8677 breakpoint is set in a user-loaded objfile.
8678 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8679 location is marked shlib_disabled. If the breakpoint is set in a
8680 user-loaded objfile is a GDB-side memory breakpoint, validate it
8681 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8682 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8684 * mem-break.c (memory_validate_breakpoint): New function.
8685 * objfiles.c (userloaded_objfile_contains_address_p): New
8687 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8688 * target.h (memory_validate_breakpoint): New declaration.
8690 2014-04-23 Pedro Alves <palves@redhat.com>
8692 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8693 the breakpoint is set in a shared library, only suppress
8694 errors for software breakpoints, not hardware breakpoints.
8696 2014-04-22 Pedro Alves <palves@redhat.com>
8698 * infrun.c (schedlock_applies): New function, factored out from
8699 find_thread_needs_step_over.
8700 (find_thread_needs_step_over): Use it.
8701 (switch_back_to_stepped_thread): Always clear trap_expected if the
8702 step over is finished. Return early if scheduler locking applies.
8703 Look for the stepping thread and a potential step-over thread with
8705 (currently_stepping_or_nexting_callback): Delete.
8707 2014-04-22 Nick Clifton <nickc@redhat.com>
8709 * NEWS: Mention that ARM sim now supports tracing.
8711 2014-04-22 Yao Qi <yao@codesourcery.com>
8713 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8715 * tracefile.c (tracefile_fetch_registers): ... it. New
8717 * tracefile.h (tracefile_fetch_registers): Declare.
8718 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8719 tracefile_fetch_registers.
8721 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8724 * windows-nat.c (thread_rec): Don't display a warning when
8725 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8726 fails for any reason, set th->suspended to -1, so that we don't
8727 try to resume such a thread. Also, don't return NULL in these
8728 cases, to avoid completely ruin the session due to "PC register is
8729 not available" error.
8730 (do_windows_fetch_inferior_registers): Check errors in
8731 GetThreadContext call.
8732 (windows_continue): Accept an additional argument KILLED; if not
8733 zero, ignore errors in the SetThreadContext call, since the
8734 inferior was killed and is shutting down.
8735 (windows_resume, get_windows_debug_event)
8736 (windows_create_inferior, windows_mourn_inferior)
8737 (windows_kill_inferior): All callers of windows_continue changed
8738 to adjust to its new calling sequence.
8740 2014-04-19 Yao Qi <yao@codesourcery.com>
8742 * ctf.c (ctf_open): Call post_create_inferior.
8744 2014-04-19 Yao Qi <yao@codesourcery.com>
8746 * ctf.c (handle_id): New static variable.
8747 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8748 value. Get the declaration of event "register" and get length
8749 of field "contents".
8751 2014-04-19 Yao Qi <yao@codesourcery.com>
8753 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8755 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8757 * valops.c (oload_method_static): Remove unnecessary argument
8758 METHOD. Update all callers.
8760 2014-04-18 Pedro alves <palves@redhat.com>
8761 Tom Tromey <tromey@redhat.com>
8764 * frame.c (get_prev_frame_1): Rename to ...
8765 (get_prev_frame_always): ... this, and make extern. Adjust.
8766 (skip_artificial_frames): Use get_prev_frame_always.
8767 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8768 (get_frame_unwind_stop_reason): Adjust to rename.
8769 * frame.h (get_prev_frame_always): Declare.
8770 * inline-frame.c: Include frame.h.
8771 (inline_frame_this_id): Use get_prev_frame_always.
8773 2014-04-18 Tristan Gingold <gingold@adacore.com>
8775 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8776 code by using bfd_mach_o_get_base_address.
8778 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8780 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8781 (spu_ax_pseudo_register_collect): New function.
8782 (spu_ax_pseudo_register_push_stack): Likewise.
8783 (spu_dwarf_reg_to_regnum): Likewise.
8784 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8786 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8788 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8789 Replace FRAME argument with FRAME_ID.
8790 * gdbarch.c, gdbarch.h: Regenerate.
8791 * findvar.c (default_value_from_register): Add GDBARCH argument;
8792 replace FRAME by FRAME_ID. No longer call get_frame_id.
8793 (value_from_register): Update call to gdbarch_value_from_register.
8794 * value.h (default_value_from_register): Update prototype.
8795 * s390-linux-tdep.c (s390_value_from_register): Update interface
8796 and call to default_value_from_register.
8797 * spu-tdep.c (spu_value_from_register): Likewise.
8799 * findvar.c (address_from_register): Remove TYPE argument.
8800 Do not call value_from_register; use gdbarch_value_from_register
8801 with null_frame_id instead.
8802 * value.h (address_from_register): Update prototype.
8803 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8804 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8805 address_from_register interface change.
8807 2014-04-17 Yao Qi <yao@codesourcery.com>
8809 * gdbtypes.h: Update comments to link to types and macros'
8812 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8814 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8816 2014-04-16 Keith Seitz <keiths@redhat.com>
8819 * dwarf2read.c (skip_one_die): Check that all relative-offset
8820 sibling DIEs fall within range of the current reader's buffer.
8821 (read_partial_die): Likewise.
8823 2014-04-16 Keith Seitz <keiths@redhat.com>
8826 * cp-namespace.c (lookup_symbol_file): If the type name of
8827 `this' is NULL, return immediately.
8829 2014-04-14 Keith Seitz <keiths@redhat.com>
8832 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8833 from symbol_matches_domain in symtab.c. All local callers
8834 of symbol_matches_domain updated.
8835 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8836 search STRUCT_DOMAIN.
8837 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8838 independently. standard_lookup will do that automatically.
8839 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8840 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8841 (cp_lookup_symbol_in_namespace): Likewise.
8842 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8843 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8844 may return a STRUCT_DOMAIN match.
8845 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8846 * cp-support.c: Include language.h.
8847 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8849 * psymtab.c (match_partial_symbol): Compare the requested
8850 domain with the symbol's domain directly.
8851 (lookup_partial_symbol): Likewise.
8852 * symtab.c (lookup_symbol_in_language): Explain when/why
8853 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8854 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8855 appropriate languages.
8856 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8857 and moved to ada-lang.c
8858 (lookup_block_symbol): Explain that this function only returns
8859 symbol matching the requested DOMAIN.
8860 Compare the requested domain with the symbol's domain directly.
8861 (iterate_over_symbols): Compare the requested domain with the
8862 symbol's domain directly.
8863 * symtab.h (symbol_matches_domain): Remove.
8865 2014-04-14 Tom Tromey <tromey@redhat.com>
8868 * c-exp.y (type_aggregate_p): New function.
8869 (qualified_name, classify_inner_name): Use it.
8870 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8871 and TYPE_TARGET_TYPE of an enum type.
8872 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8874 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8875 handle TYPE_DECLARED_CLASS.
8876 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8878 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8879 * valops.c (enum_constant_from_type): New function.
8880 (value_aggregate_elt): Use it.
8881 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8884 2014-04-14 Tom Tromey <tromey@redhat.com>
8886 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8887 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8889 * value.h (value_aggregate_elt): Update.
8891 2014-04-14 Tom Tromey <tromey@redhat.com>
8893 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8895 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8897 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8898 (evaluate_subexp_standard): Pass noside argument.
8899 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8900 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8901 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8902 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8903 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8905 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8907 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8908 points to a constant blob.
8910 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8912 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8913 property and store it as the high bound and flag the range accordingly.
8914 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8915 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8916 * gdbtypes.h (enum range_flags): New enum.
8917 (struct range_bounds): Add flags member.
8919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8921 * c-typeprint.c (c_type_print_varspec_suffix): Added
8922 check for not yet resolved high bound. If unresolved, print
8923 "variable length" string to the console instead of random
8926 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8928 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8930 (ada_template_to_fixed_record_type_1): Likewise.
8931 (ada_to_fixed_type_1): Likewise.
8932 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8933 (cp_print_value): Likewise.
8934 * d-valprint.c (dynamic_array_type): Likewise.
8935 * findvar.c (address_of_variable): Likewise.
8936 * jv-valprint.c (java_value_print): Likewise.
8937 * valops.c (value_ind): Likewise.
8938 * value.c (coerce_ref): Likewise.
8940 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8942 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8943 value and retrieve the dynamic type size.
8945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8947 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8948 passed to sizeof is dynamic evaluate the argument to compute the length.
8950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8951 Joel Brobecker <brobecker@adacore.com>
8953 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8954 (dwarf2_evaluate_property): New function.
8955 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8956 * dwarf2read.c (attr_to_dynamic_prop): New function.
8957 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8959 * gdbtypes.c: Include dwarf2loc.h.
8960 (is_dynamic_type): New function.
8961 (resolve_dynamic_type): New function.
8962 (resolve_dynamic_bounds): New function.
8963 (get_type_length): New function.
8964 (check_typedef): Use get_type_length to compute type length.
8965 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8966 (TYPE_LOW_BOUND_KIND): New macro.
8967 (is_dynamic_type): New function prototype.
8968 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8969 to resolve dynamic properties of the type. Update comment.
8970 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8972 2014-04-14 Richard Henderson <rth@redhat.com>
8974 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8976 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8977 Doug Evans <xdje42@gmail.com>
8979 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8980 dereference TYPE_CODE_REF values.
8982 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8984 Revert the following changes due to regressions:
8986 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8987 (dwarf2_evaluate_property): New function.
8988 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8989 * dwarf2read.c (attr_to_dynamic_prop): New function.
8990 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8992 * gdbtypes.c: Include dwarf2loc.h.
8993 (is_dynamic_type): New function.
8994 (resolve_dynamic_type): New function.
8995 (resolve_dynamic_bounds): New function.
8996 (get_type_length): New function.
8997 (check_typedef): Use get_type_length to compute type length.
8998 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8999 (TYPE_LOW_BOUND_KIND): New macro.
9000 (is_dynamic_type): New function prototype.
9001 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9002 to resolve dynamic properties of the type. Update comment.
9003 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9005 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9006 passed to sizeof is dynamic evaluate the argument to compute the length.
9008 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9009 value and retrieve the dynamic type size.
9011 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9012 (ada_template_to_fixed_record_type_1): Likewise.
9013 (ada_to_fixed_type_1): Likewise.
9014 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9015 (cp_print_value): Likewise.
9016 * d-valprint.c (dynamic_array_type): Likewise.
9017 * eval.c (evaluate_subexp_with_coercion): Likewise.
9018 * findvar.c (address_of_variable): Likewise.
9019 * jv-valprint.c (java_value_print): Likewise.
9020 * valops.c (value_ind): Likewise.
9021 * value.c (coerce_ref): Likewise.
9023 * c-typeprint.c (c_type_print_varspec_suffix): Added
9024 check for not yet resolved high bound. If unresolved, print
9025 "variable length" string to the console instead of random
9028 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9029 property and store it as the high bound and flag the range accordingly.
9030 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9031 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9032 * gdbtypes.h (enum range_flags): New enum.
9033 (struct range_bounds): Add flags member.
9035 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9036 points to a constant blob.
9038 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9039 (evaluate_subexp_standard): Pass noside argument.
9040 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9041 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9042 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9043 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9044 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9046 2014-04-11 Keith Seitz <keiths@redhat.com>
9049 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9050 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9053 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9055 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9056 (evaluate_subexp_standard): Pass noside argument.
9057 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9058 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9059 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9060 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9061 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9063 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9065 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9066 points to a constant blob.
9068 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9070 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9071 property and store it as the high bound and flag the range accordingly.
9072 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9073 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9074 * gdbtypes.h (enum range_flags): New enum.
9075 (struct range_bounds): Add flags member.
9077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9079 * c-typeprint.c (c_type_print_varspec_suffix): Added
9080 check for not yet resolved high bound. If unresolved, print
9081 "variable length" string to the console instead of random
9084 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9086 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9087 (ada_template_to_fixed_record_type_1): Likewise.
9088 (ada_to_fixed_type_1): Likewise.
9089 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9090 (cp_print_value): Likewise.
9091 * d-valprint.c (dynamic_array_type): Likewise.
9092 * eval.c (evaluate_subexp_with_coercion): Likewise.
9093 * findvar.c (address_of_variable): Likewise.
9094 * jv-valprint.c (java_value_print): Likewise.
9095 * valops.c (value_ind): Likewise.
9096 * value.c (coerce_ref): Likewise.
9098 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9100 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9101 value and retrieve the dynamic type size.
9103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9105 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9106 passed to sizeof is dynamic evaluate the argument to compute the length.
9108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9110 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9111 (dwarf2_evaluate_property): New function.
9112 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9113 * dwarf2read.c (attr_to_dynamic_prop): New function.
9114 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9116 * gdbtypes.c: Include dwarf2loc.h.
9117 (is_dynamic_type): New function.
9118 (resolve_dynamic_type): New function.
9119 (resolve_dynamic_bounds): New function.
9120 (get_type_length): New function.
9121 (check_typedef): Use get_type_length to compute type length.
9122 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9123 (TYPE_LOW_BOUND_KIND): New macro.
9124 (is_dynamic_type): New function prototype.
9125 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9126 to resolve dynamic properties of the type. Update comment.
9127 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9131 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9132 declaring high/low bounds and change uses accordingly. Call
9133 create_range_type instead of create_static_range_type.
9134 * gdbtypes.c (create_range_type): New function.
9135 (create_range_type): Convert bounds into struct bound_prop and pass
9136 them to create_range_type.
9137 * gdbtypes.h (struct bound_prop): New struct.
9138 (create_range_type): New function prototype.
9139 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9140 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9141 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9143 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9147 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9148 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9149 * ada-lang.c: All uses of create_range_type updated.
9150 * coffread.c: All uses of create_range_type updated.
9151 * dwarf2read.c: All uses of create_range_type updated.
9152 * f-exp.y: All uses of create_range_type updated.
9153 * m2-valprint.c: All uses of create_range_type updated.
9154 * mdebugread.c: All uses of create_range_type updated.
9155 * stabsread.c: All uses of create_range_type updated.
9156 * valops.c: All uses of create_range_type updated.
9157 * valprint.c: All uses of create_range_type updated.
9159 2014-04-10 Pedro Alves <palves@redhat.com>
9161 * breakpoint.c (single_step_breakpoints)
9162 (single_step_gdbarch): Move up in the file.
9163 (one_breakpoint_xfer_memory): New function, factored out from ...
9164 (breakpoint_xfer_memory): ... here. Also process single-step
9167 2014-04-09 Tristan Gingold <gingold@adacore.com>
9169 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9171 (darwin_decode_exception_message): Free port only after use.
9173 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9175 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9176 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9177 when setting the size of call_length.
9179 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9181 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9182 dereference TYPE_CODE_REF values.
9184 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9186 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9187 end of warning message.
9189 2014-04-03 Doug Evans <dje@google.com>
9191 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9192 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9194 2014-04-02 Alan Modra <amodra@gmail.com>
9196 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9197 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9198 (struct symbol_file_add_from_memory_args): Add size field.
9199 (find_vdso_size): New function.
9200 (add_vsyscall_page): Attempt to find vdso size.
9202 2014-04-01 Doug Evans <dje@google.com>
9204 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9206 2014-04-01 Tristan Gingold <gingold@adacore.com>
9208 * darwin-nat.c (darwin_encode_reply): Add prototype.
9209 (darwin_decode_exception_message): Reply to unknown inferiors.
9210 (darwin_decode_message): Handle message by id. Ignore message
9211 to unknown inferior.
9212 (darwin_wait): Discard unknown messages, add debug trace.
9214 2014-03-31 Doug Evans <dje@google.com>
9216 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9219 2014-03-31 Doug Evans <dje@google.com>
9221 New option "set print symbol-loading".
9223 * solib.c (solib_read_symbols): Only print symbol loading messages
9225 (solib_add): If symbol loading is in "brief" mode, notify user
9226 symbols are being loaded.
9227 (reload_shared_libraries_1): Ditto.
9228 * symfile.c (print_symbol_loading_off): New static global.
9229 (print_symbol_loading_brief): New static global.
9230 (print_symbol_loading_full): New static global.
9231 (print_symbol_loading_enums): New static global.
9232 (print_symbol_loading): New static global.
9233 (print_symbol_loading_p): New function.
9234 (symbol_file_add_with_addrs): Only print symbol loading messages
9236 (_initialize_symfile): Register "print symbol-loading" set/show
9238 * symfile.h (print_symbol_loading_p): Declare.
9240 2014-03-30 Doug Evans <xdje42@gmail.com>
9242 * infrun.c (set_last_target_status): New function.
9243 (handle_inferior_event): Call it.
9245 2014-03-30 Doug Evans <xdje42@gmail.com>
9247 * inferior.h (enum stop_kind): Improve comment.
9249 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9251 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9252 a reference, strip the reference layer before calling
9253 the lang_ops value_has_mutated callback.
9255 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9257 Remove some globals from our parser.
9258 * language.c (unk_lang_parser): Add "struct parser_state"
9260 * language.h (struct language_defn) <la_parser>: Likewise.
9261 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9262 (initialize_expout): Add "struct parser_state" argument.
9263 Rewrite function to use the parser state.
9264 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9265 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9266 write_exp_elt_longcst, write_exp_elt_dblcst,
9267 write_exp_elt_decfloatcst, write_exp_elt_type,
9268 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9269 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9270 write_dollar_variable): Likewise.
9271 (parse_exp_in_context_1): Use parser state.
9272 (insert_type_address_space): Add "struct parser_state" argument.
9274 (increase_expout_size): New function.
9275 * parser-defs.h: Forward declare "struct language_defn" and
9276 "struct parser_state".
9277 (expout, expout_size, expout_ptr): Remove extern declarations.
9278 (parse_gdbarch, parse_language): Rewrite macro declarations to
9279 accept the parser state.
9280 (struct parser_state): New struct.
9281 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9282 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9283 write_exp_elt_decfloatcst, write_exp_elt_type,
9284 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9285 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9286 write_exp_msymbol, write_dollar_variable,
9287 mark_struct_expression, insert_type_address_space): Add "struct
9288 parser_state" argument.
9289 (increase_expout_size): New function.
9290 * utils.c (do_clear_parser_state): New function.
9291 (make_cleanup_clear_parser_state): Likewise.
9292 * utils.h (make_cleanup_clear_parser_state): New function
9294 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9295 Update calls to write_exp* in order to pass the parser state.
9296 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9297 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9298 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9299 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9300 * stap-probe.c (stap_parse_register_operand): Likewise.
9301 (stap_parse_single_operand): Likewise.
9302 (stap_parse_argument_1): Likewise.
9303 (stap_parse_argument): Use parser state.
9304 * stap-probe.h: Include "parser-defs.h".
9305 (struct stap_parse_info) <pstate>: New field.
9306 * c-exp.y (parse_type): Rewrite to use parser state.
9307 (yyparse): Redefine to c_parse_internal.
9308 (pstate): New global variable.
9309 (parse_number): Add "struct parser_state" argument.
9310 (write_destructor_name): Likewise.
9311 (type_exp): Update calls to write_exp* and similars in order to
9313 (exp1, exp, variable, qualified_name, space_identifier,
9314 typename, typebase): Likewise.
9315 (write_destructor_name, parse_number, lex_one_token,
9316 classify_name, classify_inner_name, c_parse): Add "struct
9317 parser_state" argument. Update function to use parser state.
9318 * c-lang.h: Forward declare "struct parser_state".
9319 (c_parse): Add "struct parser_state" argument.
9320 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9321 (yyparse): Redefine macro to ada_parse_internal.
9322 (pstate): New variable.
9323 (write_int, write_object_renaming, write_var_or_type,
9324 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9325 type_int, type_long, type_long_long, type_float, type_double,
9326 type_long_double, type_char, type_boolean, type_system_address):
9327 Add "struct parser_state" argument.
9328 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9329 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9330 var_or_type, aggregate, aggregate_component_list,
9331 positional_list, others, component_group,
9332 component_associations): Update calls to write_exp* and similar
9333 functions in order to use parser state.
9334 (ada_parse, write_var_from_sym, write_int,
9335 write_exp_op_with_string, write_object_renaming,
9336 find_primitive_type, write_selectors, write_ambiguous_var,
9337 write_var_or_type, write_name_assoc, type_int, type_long,
9338 type_long_long, type_float, type_double, type_long_double,
9339 type_char, type_boolean, type_system_address): Add "struct
9340 parser_state" argument. Adjust function to use parser state.
9341 * ada-lang.c (parse): Likewise.
9342 * ada-lang.h: Forward declare "struct parser_state".
9343 (ada_parse): Add "struct parser_state" argument.
9344 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9345 calls to both functions.
9346 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9348 (yyparse): Redefine macro to f_parse_internal.
9349 (pstate): New variable.
9350 (parse_number): Add "struct parser_state" argument.
9351 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9352 and similars in order to use parser state.
9353 (parse_number): Adjust code to use parser state.
9355 (f_parse): New function.
9356 * f-lang.h: Forward declare "struct parser_state".
9357 (f_parse): Add "struct parser_state" argument.
9358 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9360 (yyparse): Redefine macro for java_parse_internal.
9361 (pstate): New variable.
9362 (push_expression_name, push_expression_name, insert_exp): Add
9363 "struct parser_state" argument.
9364 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9365 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9366 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9367 PostIncrementExpression, PostDecrementExpression,
9368 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9369 UnaryExpressionNotPlusMinus, CastExpression,
9370 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9371 RelationalExpression, EqualityExpression, AndExpression,
9372 ExclusiveOrExpression, InclusiveOrExpression,
9373 ConditionalAndExpression, ConditionalOrExpression,
9374 ConditionalExpression, Assignment, LeftHandSide): Update
9375 calls to write_exp* and similars in order to use parser state.
9376 (parse_number): Ajust code to use parser state.
9378 (java_parse): New function.
9379 (push_variable): Add "struct parser_state" argument. Adjust
9380 code to user parser state.
9381 (push_fieldnames, push_qualified_expression_name,
9382 push_expression_name, insert_exp): Likewise.
9383 * jv-lang.h: Forward declare "struct parser_state".
9384 (java_parse): Add "struct parser_state" argument.
9385 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9387 (yyparse): Redefine macro to m2_parse_internal.
9388 (pstate): New variable.
9389 (type_exp, exp, fblock, variable, type): Update calls to
9390 write_exp* and similars to use parser state.
9392 (m2_parse): New function.
9393 * m2-lang.h: Forward declare "struct parser_state".
9394 (m2_parse): Add "struct parser_state" argument.
9395 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9396 * objc-lang.h: Forward declare "struct parser_state".
9397 (end_msglist): Add "struct parser_state" argument.
9398 * p-exp.y (parse_type): Rewrite macro to use parser state.
9399 (yyparse): Redefine macro to pascal_parse_internal.
9400 (pstate): New variable.
9401 (parse_number): Add "struct parser_state" argument.
9402 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9403 write_exp* and similars in order to use parser state.
9404 (parse_number, yylex): Adjust code to use parser state.
9405 (pascal_parse): New function.
9406 * p-lang.h: Forward declare "struct parser_state".
9407 (pascal_parse): Add "struct parser_state" argument.
9408 * go-exp.y (parse_type): Rewrite macro to use parser state.
9409 (yyparse): Redefine macro to go_parse_internal.
9410 (pstate): New variable.
9411 (parse_number): Add "struct parser_state" argument.
9412 (type_exp, exp1, exp, variable, type): Update calls to
9413 write_exp* and similars in order to use parser state.
9414 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9415 to use parser state.
9416 (go_parse): Likewise.
9417 * go-lang.h: Forward declare "struct parser_state".
9418 (go_parse): Add "struct parser_state" argument.
9420 2014-03-27 Doug Evans <dje@google.com>
9422 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9424 2014-03-27 Doug Evans <dje@google.com>
9426 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9427 Remove argument abbrev_section. All callers updated.
9429 2014-03-27 Doug Evans <dje@google.com>
9431 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9432 addr_base, ranges_base.
9434 2014-03-26 Keith Seitz <keiths@redhat.com>
9436 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9437 types, not VAR_DOMAIN.
9439 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9441 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9443 * features/nios2-linux.c: Regenerated.
9444 * features/nios2.c: Regenerated.
9446 2014-03-25 Pedro Alves <palves@redhat.com>
9448 * cli/cli-script.c (script_from_file): Force the interpreter to
9451 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9453 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9454 small stack allocation.
9456 2014-03-24 Tristan Gingold <gingold@adacore.com>
9458 * darwin-nat.c (exc_server): Remove unused prototype.
9459 (darwin_dump_message): Correctly display data on x86_64.
9460 (darwin_encode_reply): Fix style.
9461 Add comments and fix indentation.
9463 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9465 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9467 2014-03-22 Doug Evans <xdje42@gmail.com>
9469 * infcmd.c: Whitespace fixes.
9470 (interrupt_command): Merge two function comments into one.
9472 2014-03-22 Doug Evans <xdje42@gmail.com>
9474 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9477 2014-03-22 Yao Qi <yao@codesourcery.com>
9479 * remote.c (target_read_live_memory): Remove.
9480 (memory_xfer_live_readonly_partial): Rename it to
9481 remote_xfer_live_readonly_partial. Remove argument 'object'.
9482 All callers updated. Call remote_read_bytes_1
9483 instead of target_read_live_memory.
9484 * tracepoint.c (set_traceframe_number): Remove.
9485 (make_cleanup_restore_traceframe_number): Likewise .
9486 * tracepoint.h (set_traceframe_number): Remove declaration.
9487 (make_cleanup_restore_traceframe_number): Likewise.
9489 2014-03-22 Yao Qi <yao@codesourcery.com>
9491 * remote.c (remote_read_bytes): Move code on reading from the
9493 (remote_read_bytes_1): ... here. New function.
9495 2014-03-22 Yao Qi <yao@codesourcery.com>
9497 * ctf.c (ctf_xfer_partial): Check the return value of
9498 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9499 return TARGET_XFER_UNAVAILABLE.
9500 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9501 * target.c (target_read_live_memory): Move it to remote.c.
9502 (memory_xfer_live_readonly_partial): Likewise.
9503 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9504 * remote.c (target_read_live_memory): Moved from target.c.
9505 (memory_xfer_live_readonly_partial): Likewise.
9506 (remote_read_bytes): Factored out from
9507 memory_xfer_partial_1.
9509 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9511 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9514 2014-03-21 Pedro Alves <palves@redhat.com>
9516 * infrun.c (normal_stop): Extend comment.
9518 2014-03-21 Hui Zhu <hui@codesourcery.com>
9519 Pedro Alves <palves@redhat.com>
9521 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9523 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9524 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9525 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9527 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9529 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9530 `z' formatted output modifier.
9532 2014-03-20 Tom Tromey <tromey@redhat.com>
9533 Sergio Durigan Junior <sergiodj@redhat.com>
9535 * probe.c (parse_probes): Turn assert into an ordinary error.
9536 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9537 exceptions when parsing probes. Rearrange the code for clarity.
9539 2014-03-20 Tom Tromey <tromey@redhat.com>
9542 * top.c (execute_command): Only dispatch events if the command
9545 2014-03-20 Tom Tromey <tromey@redhat.com>
9548 * infcall.c: Include event-top.h.
9549 (run_inferior_call): Call async_disable_stdin if needed.
9551 2014-03-20 Pedro Alves <palves@redhat.com>
9553 * infrun.c (prepare_to_proceed): Delete.
9554 (thread_still_needs_step_over): New function.
9555 (find_thread_needs_step_over): New function.
9556 (proceed): If the current thread needs a step-over, set its
9557 steping_over_breakpoint flag. Adjust to use
9558 find_thread_needs_step_over instead of prepare_to_proceed.
9559 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9560 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9562 (switch_back_to_stepped_thread): Step over breakpoints of all
9563 threads not the stepping thread, before switching back to the
9566 2014-03-20 Pedro Alves <palves@redhat.com>
9568 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9570 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9571 * infrun.c (saved_singlestep_ptid)
9572 (stepping_past_singlestep_breakpoint): Delete.
9573 (resume): Remove stepping_past_singlestep_breakpoint handling.
9574 (proceed): Store the prev_pc of the stepping thread too.
9575 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9577 (enum infwait_states): Delete infwait_thread_hop_state.
9578 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9580 (handle_inferior_event): Adjust.
9581 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9582 handling and the thread-hop code. Before removing single-step
9583 breakpoints, check whether the thread hit a single-step breakpoint
9584 of another thread. If it did, the trap is not a random signal.
9585 (switch_back_to_stepped_thread): If the event thread hit a
9586 single-step breakpoint, unblock it before switching to the
9587 stepping thread. Handle the case of the stepped thread having
9589 (keep_going): Handle the case of the current thread moving past a
9590 single-step breakpoint.
9592 2014-03-20 Pedro Alves <palves@redhat.com>
9595 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9596 are being stepped over.
9597 (breakpoint_address_match): Make extern.
9598 * breakpoint.h (breakpoint_address_match): New declaration.
9599 * inferior.h (stepping_past_instruction_at): New declaration.
9600 * infrun.c (struct step_over_info): New type.
9601 (step_over_info): New global.
9602 (set_step_over_info, clear_step_over_info)
9603 (stepping_past_instruction_at): New functions.
9604 (handle_inferior_event): Clear the step-over info when
9605 trap_expected is cleared.
9606 (resume): Remove now stale comment.
9607 (clear_proceed_status): Clear step-over info.
9608 (proceed): Adjust step-over handling to set or clear the step-over
9609 info instead of removing all breakpoints.
9610 (handle_signal_stop): When setting up a thread-hop, don't remove
9612 (stop_stepping): Clear step-over info.
9613 (keep_going): Adjust step-over handling to set or clear step-over
9614 info and then always inserting breakpoints, instead of removing
9615 all breakpoints when stepping over one.
9617 2014-03-20 Pedro Alves <palves@redhat.com>
9619 * infrun.c (previous_inferior_ptid): Adjust comment.
9620 (deferred_step_ptid): Delete.
9621 (infrun_thread_ptid_changed, prepare_to_proceed)
9622 (init_wait_for_inferior): Adjust.
9623 (handle_signal_stop): Delete deferred_step_ptid handling.
9625 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9628 * defs.h (sync_quit_force_run): New declaration.
9629 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9630 * event-top.c (async_sigterm_handler): New declaration.
9631 (async_sigterm_token): New variable.
9632 (async_init_signals): Create also async_sigterm_token.
9633 (async_sigterm_handler): New function.
9634 (sync_quit_force_run): New variable.
9635 (handle_sigterm): Replace quit_force call by other calls.
9636 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9638 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9640 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9641 offset into SPE pseudo registers.
9643 2014-03-18 Pedro Alves <palves@redhat.com>
9646 * inferior.h (print_stop_event): Declare.
9647 * infrun.c (print_stop_event): New, factored out from ...
9648 (normal_stop): ... this.
9649 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9650 of bpstat_print/print_stack_frame.
9652 2014-03-17 Tom Tromey <tromey@redhat.com>
9654 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9656 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9658 * ada-lang.c (decode_constrained_packed_array): Perform a
9659 minimal coercion for reference with coerce_ref instead of
9662 2014-03-17 Tristan Gingold <gingold@adacore.com>
9664 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9665 (darwin_solib_create_inferior_hook): Emit a warning if version
9668 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9670 * python/py-value.c (get_field_flag): Cast flag_name argument to
9671 PyObject_GetAttrString to support Python 2.4.
9673 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9675 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9676 (Global Maintainers): Remove Jan Kratochvil.
9678 2014-03-14 Pedro Alves <palves@redhat.com>
9680 * inferior.h (terminal_ours_for_output): Rename to ...
9681 (child_terminal_ours_for_output): ... this.
9682 (terminal_save_ours): Rename to ...
9683 (child_terminal_save_ours): ... this.
9684 (terminal_ours): Rename to ...
9685 (child_terminal_ours): ... this.
9686 (terminal_inferior): Rename to ...
9687 (child_terminal_inferior): ... this.
9688 (terminal_init_inferior): Rename to ...
9689 (child_terminal_init_inferior): ... this.
9690 (terminal_init_inferior_with_pgrp): Rename to ...
9691 (child_terminal_init_inferior_with_pgrp): ... this.
9692 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9693 (child_terminal_init_with_pgrp): ... this.
9694 (terminal_save_ours): Rename to ...
9695 (child_terminal_save_ours): ... this.
9696 (terminal_init_inferior): Rename to ...
9697 (child_terminal_init): ... this. Adjust.
9698 (terminal_inferior): Rename to ...
9699 (child_terminal_inferior): ... this.
9700 (terminal_ours_for_output): Rename to ...
9701 (child_terminal_ours_for_output): ... this. Adjust.
9702 (terminal_ours): Rename to ...
9703 (child_terminal_ours): ... this.
9704 (terminal_ours_1): Rename to ...
9705 (child_terminal_ours_1): ... this. Adjust.
9706 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9707 * windows-nat.c (do_initial_windows_stuff): Adjust.
9708 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9709 (gnu_terminal_init): ... this. Adjust.
9710 (gnu_target): Adjust.
9711 * inf-child.c (inf_child_target): Adjust.
9713 2014-03-13 Doug Evans <xdje42@gmail.com>
9716 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9719 2014-03-13 Doug Evans <xdje42@gmail.com>
9721 * value.c (record_latest_value): Call release_value_or_incref
9722 instead of release_value.
9724 2014-03-13 Pedro Alves <palves@redhat.com>
9726 * procfs.c (procfs_target): Don't override to_shortname,
9727 to_longname or to_doc.
9729 2014-03-13 Pedro Alves <palves@redhat.com>
9731 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9732 Unix in user visible strings.
9734 2014-03-12 Stan Shebs <stan@codesourcery.com>
9736 * gdbtypes.h: Annotate comments for Doxygen, add a page
9737 block comment with some general info.
9739 2014-03-12 Pedro Alves <palves@redhat.com>
9741 * infcmd.c (prepare_execution_command): New function, factored out
9742 from several execution commands.
9743 (run_command_1, continue_command, step_1, jump_command)
9744 (signal_command, until_command, advance_command, finish_command)
9745 (attach_command): Use prepare_execution_command.
9747 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9749 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9752 (struct arm_linux_thread_points): Removed.
9753 (struct arm_linux_process_info): New.
9754 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9755 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9756 (arm_linux_find_breakpoints_by_tid): Removed.
9757 (struct arch_lwp_info): New.
9758 (arm_linux_find_process_pid): New functions.
9759 (arm_linux_add_process): New functions.
9760 (arm_linux_process_info_get): New functions.
9761 (arm_linux_forget_process): New function.
9762 (arm_linux_get_debug_reg_state): New function.
9763 (struct update_registers_data): New.
9764 (update_registers_callback): New function.
9765 (arm_linux_insert_hw_breakpoint1): Updated.
9766 (arm_linux_remove_hw_breakpoint1): Updated.
9767 (arm_linux_insert_hw_breakpoint): Updated.
9768 (arm_linux_remove_hw_breakpoint): Updated.
9769 (arm_linux_insert_watchpoint): Updated.
9770 (arm_linux_remove_watchpoint): Updated.
9771 (arm_linux_new_thread): Updated.
9772 (arm_linux_prepare_to_resume): New function.
9773 (arm_linux_new_fork): New function.
9774 (_initialize_arm_linux_nat): Updated.
9776 2014-03-12 Pedro Alves <palves@redhat.com>
9778 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9780 2014-03-12 Tom Tromey <tromey@redhat.com>
9782 * inf-child.c (return_zero): New function.
9783 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9784 * aix-thread.c (aix_thread_inferior_created): New function.
9785 (aix_thread_attach): Remove.
9786 (init_aix_thread_ops): Don't set to_attach.
9787 (_initialize_aix_thread): Register inferior_created observer.
9788 * corelow.c (init_core_ops): Don't set to_attach or
9790 * exec.c (init_exec_ops): Don't set to_attach or
9792 * infcmd.c (run_command_1): Use find_run_target. Make direct
9794 (attach_command): Use find_attach_target. Make direct target
9796 * record-btrace.c (init_record_btrace_ops): Don't set
9798 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9800 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9801 set to_create_inferior.
9802 * target.c (complete_target_initialization): Add assertion.
9803 (target_create_inferior): Remove.
9804 (find_default_attach, find_default_create_inferior): Remove.
9805 (find_attach_target, find_run_target): New functions.
9806 (find_default_is_async_p, find_default_can_async_p)
9807 (target_supports_non_stop, target_attach): Remove.
9808 (init_dummy_target): Don't set to_create_inferior or
9809 to_supports_non_stop.
9810 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9811 TARGET_DEFAULT_FUNC.
9812 <to_create_inferior>: Add comment.
9813 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9814 TARGET_DEFAULT_RETURN.
9815 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9816 (find_attach_target, find_run_target): Declare.
9817 (target_create_inferior): Remove.
9818 (target_has_execution_1): Update comment.
9819 (target_supports_non_stop): Remove.
9820 * target-delegates.c: Rebuild.
9822 2014-03-12 Pedro Alves <palves@redhat.com>
9824 * inf-child.h: Update comment to not mention Unix.
9826 2014-03-12 Pedro Alves <palves@redhat.com>
9828 * inf-child.c: Update top comment to not mention Unix. Add
9829 generic comment describing how this target is meant to be used.
9830 (inf_child_post_attach, inf_child_post_startup_inferior)
9831 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9834 2014-03-12 Pedro Alves <palves@redhat.com>
9836 * nto-procfs.c: Include inf-child.h.
9837 (procfs_ops): Delete global.
9838 (procfs_can_run): Delete method.
9839 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9840 target pointer instead of referencing procfs_ops.
9841 (procfs_prepare_to_store): Delete.
9842 (init_procfs_ops): Delete function.
9843 (procfs_target): New function, based on init_procfs_ops, but
9844 inherit inf_child_target.
9845 (_initialize_procfs): Use procfs_target.
9847 2014-03-12 Pedro Alves <palves@redhat.com>
9849 * windows-nat.c: Include inf-child.h.
9850 (windows_ops): Delete global.
9851 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9853 (init_windows_ops): Delete function.
9854 (windows_target): New function, based on init_windows_ops, but
9855 inherit inf_child_target.
9856 (_initialize_windows_nat): Use windows_target. Install x86
9857 specific target methods here.
9859 2014-03-10 Doug Evans <xdje42@gmail.com>
9861 * guile/guile.c (call_initialize_gdb_module): New function.
9862 (initialize_guile): Replace call to scm_init_guile with call to
9865 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9867 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9868 in call to TYPE_CODE macro.
9870 2014-03-10 Jerome Guitton <guitton@adacore.com>
9872 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9873 Resolve tagged types to full view.
9875 2014-03-10 Hui Zhu <hui@codesourcery.com>
9877 * target.h (target_insert_breakpoint): Remove "hardware" from its
9880 2014-03-07 Doug Evans <dje@google.com>
9882 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9884 2014-03-07 Doug Evans <dje@google.com>
9886 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9887 Remove unused local comp_dir_attr. Assert exactly one of
9888 stub_comp_unit_die, stub_comp_dir is non-NULL.
9890 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9892 * target.h (complete_target_initialization, add_target):
9895 2014-03-07 Pedro Alves <palves@redhat.com>
9897 * go32-nat.c: Include inf-child.h.
9898 (go32_ops): Delete global.
9899 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9901 (go32_create_inferior): Push the passed in target pointer instead
9902 of referencing go32_ops.
9903 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9904 (go32_target): New function, based on init_go32_ops, but inherit
9906 (_initialize_go32_nat): Use go32_target. Move parts of
9909 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9911 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9912 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9913 SYMBOL_VALUE_ADDRESS.
9914 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9916 2014-03-06 Yao Qi <yao@codesourcery.com>
9918 * breakpoint.c (get_tracepoint_by_number): Remove argument
9919 optional_p. All callers updated. Adjust comments. Update
9921 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9923 2014-03-06 Yao Qi <yao@codesourcery.com>
9925 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9926 early if get_number returns zero. Use 'p' instead of 'args'.
9928 2014-03-06 Yao Qi <yao@codesourcery.com>
9930 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9933 2014-03-06 Yao Qi <yao@codesourcery.com>
9935 PR breakpoints/16508
9936 * tracepoint.c (check_trace_running): New function.
9937 (trace_find_command): Move code to check_trace_running and
9938 call check_trace_running.
9939 (trace_find_pc_command): Likewise.
9940 (trace_find_tracepoint_command): Likewise.
9941 (trace_find_line_command): Likewise.
9942 (trace_find_range_command): Likewise.
9943 * tracepoint.h (check_trace_running): Likewise.
9944 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9946 2014-03-06 Yao Qi <yao@codesourcery.com>
9948 * target.h (struct target_ops) <to_traceframe_info>: Use
9949 TARGET_DEFAULT_NORETURN (tcomplain ()).
9950 * target-delegates.c: Regenerated.
9952 2014-03-05 Pedro Alves <palves@redhat.com>
9955 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9956 void. Update comment.
9957 (dcache_xfer_memory): Delete.
9958 (dcache_read_memory_partial): New, based on the read bits of
9960 (dcache_update): Add status parameter. Use ULONGEST for len, and
9961 adjust. Discard cache lines if the reason for the update was
9963 * dcache.h (dcache_xfer_memory): Delete declaration.
9964 (dcache_read_memory_partial): New declaration.
9965 (dcache_update): Update prototype.
9966 * target.c (raw_memory_xfer_partial): Update the dcache here.
9967 (memory_xfer_partial_1): Don't handle dcache writes here.
9969 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9971 * remote-sim.c (gdbsim_load): Add const to prog.
9973 2014-03-03 Tom Tromey <tromey@redhat.com>
9975 * elfread.c (probe_key): Change to bfd_data.
9976 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9977 now per-BFD, not per-objfile.
9978 * stap-probe.c (stap_probe_destroy): Update comment.
9979 (handle_stap_probe): Allocate on the per-BFD obstack.
9981 2014-03-03 Tom Tromey <tromey@redhat.com>
9983 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9984 * breakpoint.c (create_longjmp_master_breakpoint): Use
9986 (add_location_to_breakpoint, bkpt_probe_insert_location)
9987 (bkpt_probe_remove_location): Update.
9988 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9989 * elfread.c (elf_symfile_relocate_probe): Remove.
9990 (elf_probe_fns): Update.
9991 (insert_exception_resume_breakpoint): Change type of "probe"
9992 parameter to bound_probe.
9993 (check_exception_resume): Update.
9994 * objfiles.c (objfile_relocate1): Don't relocate probes.
9995 * probe.c (bound_probe_s): New typedef.
9996 (parse_probes): Use get_probe_address. Set sal's objfile.
9997 (find_probe_by_pc): Return a bound_probe.
9998 (collect_probes): Return a VEC(bound_probe_s).
9999 (compare_probes): Update.
10000 (gen_ui_out_table_header_info): Change type of "probes"
10002 (info_probes_for_ops): Update.
10003 (get_probe_address): New function.
10004 (probe_safe_evaluate_at_pc): Update.
10005 * probe.h (struct probe_ops) <get_probe_address>: New field.
10006 <set_semaphore, clear_semaphore>: Add objfile parameter.
10007 (struct probe) <objfile>: Remove field.
10009 <address>: Update comment.
10010 (struct bound_probe): New.
10011 (find_probe_by_pc): Return a bound_probe.
10012 (get_probe_address): Declare.
10013 * solib-svr4.c (struct probe_and_action) <address>: New field.
10014 (hash_probe_and_action, equal_probe_and_action): Update.
10015 (register_solib_event_probe): Add address parameter.
10016 (solib_event_probe_at): Update.
10017 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10019 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10020 (stap_get_probe_address): New function.
10021 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10022 (compile_probe_arg): Update.
10023 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10025 (handle_stap_probe): Don't relocate the probe.
10026 (stap_relocate): Remove.
10027 (stap_gen_info_probes_table_values): Update.
10028 (stap_probe_ops): Remove stap_relocate.
10029 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10030 (debug_sym_probe_fns): Update.
10031 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10032 * symtab.c (init_sal): Use memset.
10033 * symtab.h (struct symtab_and_line) <objfile>: New field.
10034 * tracepoint.c (start_tracing, stop_tracing): Update.
10036 2014-03-03 Tom Tromey <tromey@redhat.com>
10038 * probe.h (parse_probes, find_probe_by_pc)
10039 (find_probes_in_objfile): Fix comments.
10041 2014-03-02 Doug Evans <xdje42@gmail.com>
10043 * infrun.c (handle_signal_stop): Replace test for
10044 TARGET_WAITKIND_STOPPED with an assert.
10046 2014-03-02 Doug Evans <xdje42@gmail.com>
10048 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10050 2014-03-02 Doug Evans <xdje42@gmail.com>
10052 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10054 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10056 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10058 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10060 * i386obsd-nat.c: Include "obsd-nat.h".
10061 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10063 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10065 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10067 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10069 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10071 * mips64obsd-nat.c: Include "obsd-nath".
10072 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10074 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10076 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10078 * amd64obsd-nat.c: Include "obsd-nat,h.
10079 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10081 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10083 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10085 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10086 (find_overload_match): Update call to find_oload_champ.
10087 (find_oload_champ_namespace_loop): Likewise
10089 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10091 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10093 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10094 * config/sparc/obsd64.mh: New file.
10095 * sparc64obsd-nat.c: New file.
10097 * obsd-nat.h: New file.
10098 * obsd-nat.c: New file.
10099 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10100 (ALLDEPFILES): Add obsd-nat.c.
10102 2014-02-28 Tom Tromey <tromey@redhat.com>
10104 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10105 * cli-out.h (cli_ui_out_impl): Now const.
10106 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10107 * ui-out.c (struct ui_out) <impl>: Now const.
10108 (default_ui_out_impl): Now const.
10109 (ui_out_new): Make 'impl' parameter const.
10110 * ui-out.h (ui_out_new): Update.
10112 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10114 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10116 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10118 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10120 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10122 Additional PR 8882 fix.
10123 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10125 2014-02-27 Pedro Alves <palves@redhat.com>
10127 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10130 2014-02-27 Pedro Alves <palves@redhat.com>
10133 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10134 * nat/linux-waitpid.c: Include string.h.
10135 (status_to_str): Moved here and made extern.
10136 * nat/linux-waitpid.h (status_to_str): New declaration.
10138 2014-02-27 Hui Zhu <hui@codesourcery.com>
10141 * infrun.c (ptid_match): Move ...
10142 * common/ptid.c (ptid_match): ... here.
10143 * inferior.h (ptid_match): Move ...
10144 * common/ptid.h (ptid_match): ... here.
10146 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10148 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10149 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10152 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10154 * obsd-tdep.c (obsd_auxv_parse): New function.
10155 (obsd_init_abi): Set auxv_parse.
10157 * gdbarch.sh (auxv_parse): New.
10158 * gdbarch.h: Regenerated.
10159 * gdbarch.c: Regenerated.
10160 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10162 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10164 * guile/scm-value.c (gdbscm_history_append_x): New function.
10165 (value_functions): Add it.
10167 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10169 * dwarf2read.c (attr_value_as_address): New function.
10170 (dwarf2_find_base_address, read_call_site_scope): Use
10171 attr_value_as_address in place of DW_ADDR.
10172 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10173 the low and high addresses. Slight rework of the handling
10174 of the high pc being a constant form, and limit it to
10175 DWARF verson 4 or higher.
10176 (dwarf2_record_block_ranges): Likewise.
10177 (read_partial_die): Likewise.
10178 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10180 2014-02-26 Tom Tromey <tromey@redhat.com>
10182 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10184 2014-02-26 Tom Tromey <tromey@redhat.com>
10186 * elfread.c (elf_read_minimal_symbols): Return early if
10187 minimal symbols have already been read. Add "ei" parameter.
10188 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10189 * minsyms.c (prim_record_minimal_symbol_full): Update.
10190 * objfiles.h (struct objstats) <n_minsyms>: Move...
10191 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10192 * symmisc.c (print_objfile_statistics): Update.
10194 2014-02-26 Tom Tromey <tromey@redhat.com>
10196 * elfread.c (elf_read_minimal_symbols): New function, from
10198 (elf_symfile_read): Call it.
10200 2014-02-26 Tom Tromey <tromey@redhat.com>
10202 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10203 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10204 (lookup_minimal_symbol_solib_trampoline)
10205 (lookup_minimal_symbol_by_pc_section_1)
10206 (lookup_minimal_symbol_and_objfile): Update.
10207 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10208 Don't allocate a minimal symbol if minsyms have already been read.
10209 (build_minimal_symbol_hash_tables): Update.
10210 (install_minimal_symbols): Do nothing if minsyms already read.
10211 Use the per-BFD obstack.
10212 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10213 * objfiles.c (allocate_objfile): Call
10214 terminate_minimal_symbol_table later.
10215 (have_minimal_symbols): Update.
10216 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10217 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10218 Move from struct objfile.
10219 <minsyms_read>: New field.
10220 (struct objfile) <msymbols, minimal_symbol_count,
10221 msymbol_hash, msymbol_demangled_hash>: Move.
10222 (ALL_OBJFILE_MSYMBOLS): Update.
10223 * symfile.c (read_symbols): Set minsyms_read.
10224 (reread_symbols): Update.
10225 * symmisc.c (dump_objfile, dump_msymbols): Update.
10227 2014-02-26 Tom Tromey <tromey@redhat.com>
10229 * minsyms.c (msymbols_sort): Remove.
10230 * minsyms.h (msymbols_sort): Remove.
10231 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10232 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10233 * elfread.c (elf_symtab_read): Don't add section offsets.
10234 * xcoffread.c (record_minimal_symbol): Don't add section offset
10235 to minimal symbol address.
10236 * somread.c (text_offset, data_offset): Remove.
10237 (som_symtab_read): Don't add section offsets to minimal symbol
10239 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10240 Don't add section offsets to minimal symbols.
10241 * coffread.c (coff_symtab_read): Don't add section offsets
10242 to minimal symbol addresses.
10243 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10244 to minimal symbol addresses.
10245 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10246 section offset to minimal symbol addresses.
10247 * mdebugread.c (parse_partial_symbols): Don't add section
10248 offset to minimal symbol addresses.
10249 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10250 offset to minimal symbol addresses.
10252 2014-02-26 Tom Tromey <tromey@redhat.com>
10254 * ada-lang.c (ada_main_name): Update.
10255 (ada_add_standard_exceptions): Update.
10256 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10257 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10258 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10259 * auxv.c (ld_so_xfer_auxv): Update.
10260 * avr-tdep.c (avr_scan_prologue): Update.
10261 * ax-gdb.c (gen_var_ref): Update.
10262 * blockframe.c (get_pc_function_start)
10263 (find_pc_partial_function_gnu_ifunc): Update.
10264 * breakpoint.c (create_overlay_event_breakpoint)
10265 (create_longjmp_master_breakpoint)
10266 (create_std_terminate_master_breakpoint)
10267 (create_exception_master_breakpoint): Update.
10268 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10269 * c-valprint.c (c_val_print): Update.
10270 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10271 * common/agent.c (agent_look_up_symbols): Update.
10272 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10273 * dwarf2loc.c (call_site_to_target_addr): Update.
10274 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10275 * elfread.c (elf_gnu_ifunc_record_cache)
10276 (elf_gnu_ifunc_resolve_by_got): Update.
10277 * findvar.c (default_read_var_value): Update.
10278 * frame.c (inside_main_func): Update.
10279 * frv-tdep.c (frv_frame_this_id): Update.
10280 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10281 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10283 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10284 (hppa_hpux_find_dummy_bpaddr): Update.
10285 * hppa-tdep.c (hppa_symbol_address): Update.
10286 * infcmd.c (until_next_command): Update.
10287 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10289 * linespec.c (minsym_found, add_minsym): Update.
10290 * linux-nat.c (get_signo): Update.
10291 * linux-thread-db.c (inferior_has_bug): Update.
10292 * m32c-tdep.c (m32c_return_value)
10293 (m32c_m16c_address_to_pointer): Update.
10294 * m32r-tdep.c (m32r_frame_this_id): Update.
10295 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10296 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10297 * maint.c (maintenance_translate_address): Update.
10298 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10299 (frob_address): New function.
10300 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10301 frob_address. Rename parameter to "pc_in".
10302 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10304 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10306 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10307 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10308 * objc-lang.c (find_objc_msgsend): Update.
10309 * objfiles.c (objfile_relocate1): Update.
10310 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10311 * p-valprint.c (pascal_val_print): Update.
10312 * parse.c (write_exp_msymbol): Update.
10313 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10314 (ppc_elfv2_skip_entrypoint): Update.
10315 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10316 * printcmd.c (build_address_symbolic, msym_info)
10317 (address_info): Update.
10318 * proc-service.c (ps_pglobal_lookup): Update.
10319 * psymtab.c (find_pc_sect_psymtab_closer)
10320 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10321 Change msymbol parameter to bound_minimal_symbol.
10322 * ravenscar-thread.c (get_running_thread_id): Update.
10323 * remote.c (remote_check_symbols): Update.
10324 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10326 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10327 * solib-dsbt.c (lm_base): Update.
10328 * solib-frv.c (lm_base, main_got): Update.
10329 * solib-irix.c (locate_base): Update.
10330 * solib-som.c (som_solib_create_inferior_hook)
10331 (link_map_start): Update.
10332 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10333 * solib-svr4.c (elf_locate_base, enable_break): Update.
10334 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10335 (flush_ea_cache): Update.
10336 * stabsread.c (define_symbol, scan_file_globals): Update.
10337 * stack.c (find_frame_funname): Update.
10338 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10339 (debug_qf_find_pc_sect_symtab): Update.
10340 * symfile.c (simple_read_overlay_table)
10341 (simple_overlay_update): Update.
10342 * symfile.h (struct quick_symbol_functions)
10343 <find_pc_sect_symtab>: Change type of msymbol to
10344 bound_minimal_symbol.
10345 * symmisc.c (dump_msymbols): Update.
10346 * symtab.c (find_pc_sect_symtab_via_partial)
10347 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10348 (search_symbols, print_msymbol_info): Update.
10349 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10350 (MSYMBOL_VALUE_ADDRESS): Redefine.
10351 (BMSYMBOL_VALUE_ADDRESS): New macro.
10352 * tracepoint.c (scope_info): Update.
10353 * tui/tui-disasm.c (tui_find_disassembly_address)
10354 (tui_get_begin_asm_address): Update.
10355 * valops.c (find_function_in_inferior): Update.
10356 * value.c (value_static_field, value_fn_field): Update.
10358 2014-02-26 Tom Tromey <tromey@redhat.com>
10360 * ada-lang.c (ada_update_initial_language): Update.
10361 (ada_main_name, ada_has_this_exception_support): Update.
10362 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10363 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10364 * arm-tdep.c (arm_skip_stub): Update.
10365 * auxv.c (ld_so_xfer_auxv): Update.
10366 * avr-tdep.c (avr_scan_prologue): Update.
10367 * ax-gdb.c (gen_var_ref): Update.
10368 * breakpoint.c (struct breakpoint_objfile_data)
10369 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10370 type to bound_minimal_symbol.
10371 (create_overlay_event_breakpoint)
10372 (create_longjmp_master_breakpoint)
10373 (create_std_terminate_master_breakpoint)
10374 (create_exception_master_breakpoint): Update.
10375 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10376 * c-exp.y (classify_name): Update.
10377 * coffread.c (coff_symfile_read): Update.
10378 * common/agent.c (agent_look_up_symbols): Update.
10379 * d-lang.c (d_main_name): Update.
10380 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10381 * dec-thread.c (enable_dec_thread): Update.
10382 * dwarf2loc.c (call_site_to_target_addr): Update.
10383 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10384 * eval.c (evaluate_subexp_standard): Update.
10385 * findvar.c (struct minsym_lookup_data) <result>: Change type
10386 to bound_minimal_symbol.
10388 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10389 * frame.c (inside_main_func): Update.
10390 * frv-tdep.c (frv_frame_this_id): Update.
10391 * gcore.c (call_target_sbrk): Update.
10392 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10393 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10395 * go-lang.c (go_main_name): Update.
10396 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10397 (hppa_hpux_find_import_stub_for_addr): Update.
10398 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10399 Update. Change return type.
10400 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10402 * jit.c (jit_breakpoint_re_set_internal): Update.
10403 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10405 * linux-nat.c (get_signo): Update.
10406 * linux-thread-db.c (inferior_has_bug): Update
10407 * m32c-tdep.c (m32c_return_value)
10408 (m32c_m16c_address_to_pointer): Update.
10409 * m32r-tdep.c (m32r_frame_this_id): Update.
10410 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10411 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10412 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10413 lookup_minimal_symbol. Change return type.
10414 (lookup_minimal_symbol): Remove.
10415 (lookup_bound_minimal_symbol): Update.
10416 (lookup_minimal_symbol_text): Change return type.
10417 (lookup_minimal_symbol_solib_trampoline): Change return type.
10418 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10419 (lookup_minimal_symbol_solib_trampoline): Change return type.
10420 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10421 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10422 (value_nsstring, find_imps): Update.
10423 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10424 * p-lang.c (pascal_main_name): Update.
10425 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10426 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10427 * proc-service.c (ps_pglobal_lookup): Update.
10428 * ravenscar-thread.c (get_running_thread_msymbol): Change
10430 (has_ravenscar_runtime, get_running_thread_id): Update.
10431 * remote.c (remote_check_symbols): Update.
10432 * sol-thread.c (ps_pglobal_lookup): Update.
10433 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10434 * solib-dsbt.c (lm_base): Update.
10435 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10437 * solib-irix.c (locate_base): Update.
10438 * solib-som.c (som_solib_create_inferior_hook)
10439 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10441 * solib-spu.c (spu_enable_break): Update.
10442 * solib-svr4.c (elf_locate_base, enable_break): Update.
10443 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10444 (flush_ea_cache): Update.
10445 * stabsread.c (define_symbol): Update.
10446 * symfile.c (simple_read_overlay_table): Update.
10447 * symtab.c (find_pc_sect_line): Update.
10448 * tracepoint.c (scope_info): Update.
10449 * tui-disasm.c (tui_get_begin_asm_address): Update.
10450 * value.c (value_static_field): Update.
10452 2014-02-26 Tom Tromey <tromey@redhat.com>
10454 * minsyms.c (prim_record_minimal_symbol_full): Use
10455 SET_MSYMBOL_VALUE_ADDRESS.
10456 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10457 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10458 SET_MSYMBOL_VALUE_ADDRESS.
10459 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10460 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10462 2014-02-26 Tom Tromey <tromey@redhat.com>
10464 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10465 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10466 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10467 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10468 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10469 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10470 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10471 * ada-lang.c (ada_main_name): Update.
10472 (ada_lookup_simple_minsym): Update.
10473 (ada_make_symbol_completion_list): Update.
10474 (ada_add_standard_exceptions): Update.
10475 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10476 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10477 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10478 * arm-tdep.c (skip_prologue_function): Update.
10479 (arm_skip_stack_protector, arm_skip_stub): Update.
10480 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10481 (arm_wince_skip_main_prologue): Update.
10482 * auxv.c (ld_so_xfer_auxv): Update.
10483 * avr-tdep.c (avr_scan_prologue): Update.
10484 * ax-gdb.c (gen_var_ref): Update.
10485 * block.c (call_site_for_pc): Update.
10486 * blockframe.c (get_pc_function_start): Update.
10487 (find_pc_partial_function_gnu_ifunc): Update.
10488 * breakpoint.c (create_overlay_event_breakpoint): Update.
10489 (create_longjmp_master_breakpoint): Update.
10490 (create_std_terminate_master_breakpoint): Update.
10491 (create_exception_master_breakpoint): Update.
10492 (resolve_sal_pc): Update.
10493 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10494 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10496 * c-valprint.c (c_val_print): Update.
10497 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10498 * coffread.c (coff_symfile_read): Update.
10499 * common/agent.c (agent_look_up_symbols): Update.
10500 * dbxread.c (find_stab_function_addr): Update.
10501 (end_psymtab): Update.
10502 * dwarf2loc.c (call_site_to_target_addr): Update.
10503 (func_verify_no_selftailcall): Update.
10504 (tailcall_dump): Update.
10505 (call_site_find_chain_1): Update.
10506 (dwarf_expr_reg_to_entry_parameter): Update.
10507 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10508 (elf_gnu_ifunc_resolve_by_got): Update.
10509 * f-valprint.c (info_common_command): Update.
10510 * findvar.c (read_var_value): Update.
10511 * frame.c (get_prev_frame_1): Update.
10512 (inside_main_func): Update.
10513 * frv-tdep.c (frv_skip_main_prologue): Update.
10514 (frv_frame_this_id): Update.
10515 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10516 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10517 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10518 (gnuv3_skip_trampoline): Update.
10519 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10520 (hppa64_hpux_in_solib_call_trampoline): Update.
10521 (hppa_hpux_skip_trampoline_code): Update.
10522 (hppa64_hpux_search_dummy_call_sequence): Update.
10523 (hppa_hpux_find_import_stub_for_addr): Update.
10524 (hppa_hpux_find_dummy_bpaddr): Update.
10525 * hppa-tdep.c (hppa_symbol_address)
10526 (hppa_lookup_stub_minimal_symbol): Update.
10527 * i386-tdep.c (i386_skip_main_prologue): Update.
10528 (i386_pe_skip_trampoline_code): Update.
10529 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10530 * infcall.c (get_function_name): Update.
10531 * infcmd.c (until_next_command): Update.
10532 * jit.c (jit_breakpoint_re_set_internal): Update.
10533 (jit_inferior_init): Update.
10534 * linespec.c (minsym_found): Update.
10535 (add_minsym): Update.
10536 * linux-fork.c (info_checkpoints_command): Update.
10537 * linux-nat.c (get_signo): Update.
10538 * linux-thread-db.c (inferior_has_bug): Update.
10539 * m32c-tdep.c (m32c_return_value): Update.
10540 (m32c_m16c_address_to_pointer): Update.
10541 (m32c_m16c_pointer_to_address): Update.
10542 * m32r-tdep.c (m32r_frame_this_id): Update.
10543 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10544 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10545 * maint.c (maintenance_translate_address): Update.
10546 * minsyms.c (add_minsym_to_hash_table): Update.
10547 (add_minsym_to_demangled_hash_table): Update.
10548 (msymbol_objfile): Update.
10549 (lookup_minimal_symbol): Update.
10550 (iterate_over_minimal_symbols): Update.
10551 (lookup_minimal_symbol_text): Update.
10552 (lookup_minimal_symbol_by_pc_name): Update.
10553 (lookup_minimal_symbol_solib_trampoline): Update.
10554 (lookup_minimal_symbol_by_pc_section_1): Update.
10555 (lookup_minimal_symbol_and_objfile): Update.
10556 (prim_record_minimal_symbol_full): Update.
10557 (compare_minimal_symbols): Update.
10558 (compact_minimal_symbols): Update.
10559 (build_minimal_symbol_hash_tables): Update.
10560 (install_minimal_symbols): Update.
10561 (terminate_minimal_symbol_table): Update.
10562 (find_solib_trampoline_target): Update.
10563 (minimal_symbol_upper_bound): Update.
10564 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10565 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10566 (mips_skip_pic_trampoline_code): Update.
10567 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10568 * objc-lang.c (selectors_info): Update.
10569 (classes_info): Update.
10570 (find_methods): Update.
10571 (find_imps): Update.
10572 (find_objc_msgsend): Update.
10573 * objfiles.c (objfile_relocate1): Update.
10574 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10575 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10576 * p-valprint.c (pascal_val_print): Update.
10577 * parse.c (write_exp_msymbol): Update.
10578 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10579 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10580 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10581 * printcmd.c (build_address_symbolic): Update.
10582 (sym_info): Update.
10583 (address_info): Update.
10584 * proc-service.c (ps_pglobal_lookup): Update.
10585 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10586 (find_pc_sect_psymtab): Update.
10587 * python/py-framefilter.c (py_print_frame): Update.
10588 * ravenscar-thread.c (get_running_thread_id): Update.
10589 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10591 * remote.c (remote_check_symbols): Update.
10592 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10593 (rs6000_skip_trampoline_code): Update.
10594 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10595 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10596 * solib-dsbt.c (lm_base): Update.
10597 * solib-frv.c (lm_base): Update.
10598 (main_got): Update.
10599 * solib-irix.c (locate_base): Update.
10600 * solib-som.c (som_solib_create_inferior_hook): Update.
10601 (som_solib_desire_dynamic_linker_symbols): Update.
10602 (link_map_start): Update.
10603 * solib-spu.c (spu_enable_break): Update.
10604 (ocl_enable_break): Update.
10605 * solib-svr4.c (elf_locate_base): Update.
10606 (enable_break): Update.
10607 * spu-tdep.c (spu_get_overlay_table): Update.
10608 (spu_catch_start): Update.
10609 (flush_ea_cache): Update.
10610 * stabsread.c (define_symbol): Update.
10611 (scan_file_globals): Update.
10612 * stack.c (find_frame_funname): Update.
10613 (frame_info): Update.
10614 * symfile.c (simple_read_overlay_table): Update.
10615 (simple_overlay_update): Update.
10616 * symmisc.c (dump_msymbols): Update.
10617 * symtab.c (fixup_section): Update.
10618 (find_pc_sect_line): Update.
10619 (skip_prologue_sal): Update.
10620 (search_symbols): Update.
10621 (print_msymbol_info): Update.
10622 (rbreak_command): Update.
10623 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10624 (completion_list_objc_symbol): Update.
10625 (default_make_symbol_completion_list_break_on): Update.
10626 * tracepoint.c (scope_info): Update.
10627 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10628 (tui_get_begin_asm_address): Update.
10629 * valops.c (find_function_in_inferior): Update.
10630 * value.c (value_static_field): Update.
10631 (value_fn_field): Update.
10633 2014-02-26 Tom Tromey <tromey@redhat.com>
10635 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10636 bound minimal symbols. Move code that knows about minsym
10638 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10640 * minsyms.h (minimal_symbol_upper_bound): Declare.
10641 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10642 minimal_symbol_upper_bound.
10644 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10646 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10647 Use the type's name if its basic type does not have a tag.
10649 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10651 * dwarf2read.c (read_subrange_type): Add comment.
10653 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10655 * dwarf2read.c (update_enumeration_type_from_children): New
10656 function, mostly extracted from process_structure_scope.
10657 (read_enumeration_type): Call update_enumeration_type_from_children.
10658 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10659 and flag_flag_enum fields.
10661 2014-02-26 Pedro Alves <palves@redhat.com>
10663 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10664 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10665 to_xfer_partial method.
10667 2014-02-26 Pedro Alves <palves@redhat.com>
10669 * target.c (complete_target_initialization): Don't install
10670 default_xfer_partial as to_xfer_partial hook.
10671 (nomemory): Delete.
10672 (update_current_target): Don't INHERIT nor de_fault
10673 deprecated_xfer_memory. Delete de_fault macro.
10674 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10675 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10676 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10679 2014-02-26 Pedro Alves <palves@redhat.com>
10681 * go32-nat.c (my_write_child): New function.
10682 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10683 (go32_xfer_partial): New function.
10684 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10685 Instead install a to_xfer_partial hook.
10687 2014-02-26 Pedro Alves <palves@redhat.com>
10689 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10690 to_xfer_partial helper. Rewrite.
10691 (procfs_xfer_partial): New function.
10692 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10693 Install a to_xfer_partial hook.
10695 2014-02-26 Pedro Alves <palves@redhat.com>
10697 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10698 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10699 (m32r_xfer_partial): New function.
10700 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10701 Install a to_xfer_partial hook.
10703 2014-02-26 Pedro Alves <palves@redhat.com>
10705 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10707 (mips_xfer_partial): New function.
10708 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10709 hook. Install a to_xfer_partial hook.
10711 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10713 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10714 * gdbtypes.c (create_array_type_with_stride): New function,
10715 renaming create_array_type, but with an added parameter
10716 called "bit_stride".
10717 (create_array_type): Re-implement using
10718 create_array_type_with_stride.
10719 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10720 and DW_AT_bit_stride attributes.
10722 2014-02-26 Pedro Alves <palves@redhat.com>
10724 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10725 task-specific breakpoints.
10727 2014-02-25 Pedro Alves <palves@redhat.com>
10729 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10730 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10732 2014-02-25 Stan Shebs <stan@codesourcery.com>
10734 * defs.h: Annotate comments for Doxygen.
10736 2014-02-25 Tom Tromey <tromey@redhat.com>
10738 * target.h (target_ignore): Don't declare.
10739 * target.c (target_ignore): Remove.
10741 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10744 * auto-load.c (auto_load_objfile_script_1): Change filename to
10747 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10749 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10750 documentation. Adjust prototype to match the target_ops
10751 to_xfer_partial method. Adjust implementation accordingly.
10753 2014-02-25 Hui Zhu <hui@codesourcery.com>
10755 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10756 to_traceframe_info.
10758 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10760 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10761 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10762 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10763 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10764 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10765 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10766 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10767 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10769 (rl78_register_type): Use a data pointer type for SP and
10770 new pseudo registers mentioned above. Use a 16 bit integer
10771 type for all other register pairs.
10772 (rl78_register_name, rl78_g10_register_name): Update for
10773 new pseudo registers.
10774 (rl78_pseudo_register_read): Likewise.
10775 (rl78_pseudo_register_write): Likewise.
10776 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10777 to the newly added pseudo registers.
10779 2014-02-24 Doug Evans <dje@google.com>
10781 * value.c (record_latest_value): Fix comment.
10782 * printcmd.c (print_command_1): Remove code to handle -1 return from
10783 record_latest_value.
10785 2014-02-24 Pedro Alves <palves@redhat.com>
10787 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10788 deprecated_xfer_memory hook.
10789 (procfs_xfer_partial): Call procfs_xfer_memory instead
10790 of the deprecated_xfer_memory target hook.
10791 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10794 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10796 * windows-nat.c (windows_xfer_shared_libraries): Return
10797 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10798 requested object is TARGET_OBJECT_LIBRARIES.
10800 2014-02-24 Yao Qi <yao@codesourcery.com>
10802 * target.h (enum target_xfer_status)
10803 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10804 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10806 * corefile.c (memory_error_message): User updated.
10807 * exec.c (section_table_read_available_memory): Likewise.
10808 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10809 * target.c (target_xfer_status_to_string): Likewise.
10810 (raw_memory_xfer_partial): Likewise.
10811 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10812 * valops.c (read_value_memory): Likewise.
10813 * exec.h: Update comments.
10815 2014-02-24 Yao Qi <yao@codesourcery.com>
10817 * target.c (target_xfer_status_to_string): Rename argument err
10819 * target.h (target_xfer_status_to_string): Update declaration.
10820 Replace target_xfer_error_to_string with
10821 target_xfer_status_to_string in comment.
10823 2014-02-24 Yao Qi <yao@codesourcery.com>
10825 * mips-linux-nat.c (super_close): Update its type.
10826 (mips_linux_close): Pass 'self' to super_close.
10828 2014-02-24 Yao Qi <yao@codesourcery.com>
10830 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10831 * corefile.c (read_memory): Adjusted.
10832 * target.c (target_write_with_progress): Adjusted.
10834 2014-02-23 Yao Qi <yao@codesourcery.com>
10836 Revert two patches:
10838 2013-10-25 Yao Qi <yao@codesourcery.com>
10840 * remote.c (remote_traceframe_info): Return early if
10841 traceframe is not selected.
10843 2013-07-19 Yao Qi <yao@codesourcery.com>
10845 * target.c (update_current_target): Change the default action
10846 of 'to_traceframe_info' from tcomplain to return_zero.
10847 * target.h (struct target_ops) <to_traceframe_info>: Add more
10850 2014-02-23 Yao Qi <yao@codesourcery.com>
10852 * valops.c (read_value_memory): Rewrite it. Call
10853 target_xfer_partial in a loop.
10854 * exec.h (section_table_available_memory): Remove declaration.
10855 Move comments to ...
10856 * exec.c (section_table_available_memory): ... here. Make it
10859 2014-02-23 Yao Qi <yao@codesourcery.com>
10861 * exec.c (section_table_read_available_memory): New function.
10862 * exec.h (section_table_read_available_memory): Declare.
10863 * ctf.c (ctf_xfer_partial): Call
10864 section_table_read_available_memory.
10865 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10867 2014-02-23 Yao Qi <yao@codesourcery.com>
10869 * ctf.c (ctf_xfer_partial): Move code to ...
10870 * exec.c (exec_read_partial_read_only): ... it. New function.
10871 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10872 * tracefile.c: Include "exec.h".
10873 * exec.h (exec_read_partial_read_only): Declare.
10875 2014-02-23 Yao Qi <yao@codesourcery.com>
10877 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10878 (tfile_has_memory): Remove.
10879 (init_tfile_ops): Don't set fields to_has_all_memory and
10880 to_has_memory of tfile_ops.
10881 * tracefile.c (tracefile_has_all_memory): New function.
10882 (tracefile_has_memory): New function.
10883 (init_tracefile_ops): Initialize fields to_has_all_memory and
10884 to_has_memory of 'ops'.
10886 2014-02-23 Yao Qi <yao@codesourcery.com>
10888 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10889 (ctf_thread_alive, ctf_get_trace_status): Remove.
10890 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10891 init_tracefile_ops.
10892 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10893 (tfile_has_stack, tfile_has_registers): Remove.
10894 (tfile_thread_alive): Remove.
10895 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10896 init_tracefile_ops.
10897 * tracefile.c (tracefile_has_stack): New function.
10898 (tracefile_has_registers): New function.
10899 (tracefile_thread_alive): New function.
10900 (tracefile_get_trace_status): New function.
10901 (init_tracefile_ops): New function.
10902 * tracefile.h (init_tracefile_ops): Declare.
10904 2014-02-23 Yao Qi <yao@codesourcery.com>
10906 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10907 (O_LARGEFILE): Likewise.
10908 (tfile_ops): Likewise.
10909 (TRACE_HEADER_SIZE): Likewise.
10910 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10911 (cur_data_size): Likewise.
10912 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10913 (tfile_close, tfile_files_info): Likewise.
10914 (tfile_get_trace_status): Likewise.
10915 (tfile_get_tracepoint_status): Likewise.
10916 (tfile_get_traceframe_address): Likewise.
10917 (tfile_trace_find, match_blocktype): Likewise.
10918 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10919 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10920 (tfile_get_trace_state_variable_value): Likewise.
10921 (tfile_has_all_memory, tfile_has_memory): Likewise.
10922 (tfile_has_stack, tfile_has_registers): Likewise.
10923 (tfile_thread_alive, build_traceframe_info): Likewise.
10924 (tfile_traceframe_info, init_tfile_ops): Likewise.
10925 (_initialize_tracepoint): Don't call init_tfile_ops
10926 and add_target_with_completer.
10927 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10928 exec.h, completer.h and filenames.h.
10929 (_initialize_tracefile_tfile): New function.
10931 2014-02-23 Yao Qi <yao@codesourcery.com>
10933 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10935 (HFILES_NO_SRCDIR): Add tracefile.h.
10936 * ctf.c: Include "tracefile.h".
10937 * tracefile.h: New file.
10938 * tracefile.c: New file
10939 * tracefile-tfile.c: New file.
10940 * tracepoint.c: Include "tracefile.h".
10941 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10942 (stop_reason_names): Add const.
10943 (trace_file_writer_xfree): Move it to tracefile.c.
10944 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10945 (trace_save_ctf): Likewise.
10946 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10947 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10948 (tfile_write_header, tfile_write_regblock_type): Likewise.
10949 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10950 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10951 (tfile_write_raw_data, tfile_end): Likewise.
10952 (tfile_trace_file_writer_new): Likewise.
10953 (free_uploaded_tp): Make it extern.
10954 (free_uploaded_tsv): Make it extern.
10955 (_initialize_tracepoint): Move code to register command 'tsave'
10957 * tracepoint.h (stop_reason_names): Declare.
10958 (struct trace_frame_write_ops): Move it to tracefile.h.
10959 (struct trace_file_write_ops): Likewise.
10960 (struct trace_file_writer): Likewise.
10961 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10963 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10966 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10968 (get_cores_used_by_process): New parameter num_cores, use it.
10969 (linux_xfer_osdata_processes): Pass num_cores to it.
10970 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10973 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10975 * target.c (memory_xfer_partial): Fix length arg in call to
10976 breakpoint_xfer_memory.
10978 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10981 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10982 number comes after the + or - signs. Adjust length of register
10983 name to be extracted.
10985 2014-02-20 Tom Tromey <tromey@redhat.com>
10987 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10988 (ada_varobj_ops): Mark "extern".
10990 2014-02-20 Tom Tromey <tromey@redhat.com>
10992 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10994 2014-02-20 Doug Evans <xdje42@gmail.com>
10996 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10997 All callers updated.
10998 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10999 All callers updated.
11000 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11001 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11003 2014-02-20 lin zuojian <manjian2006@gmail.com>
11004 Joel Brobecker <brobecker@adacore.com>
11005 Doug Evans <xdje42@gmail.com>
11008 * dwarf2read.c (struct die_info): New member in_process.
11009 (reset_die_in_process): New function.
11010 (process_die): Set it at the start, reset when returning.
11011 (inherit_abstract_dies): Only call process_die if origin_child_die
11012 not already being processed.
11014 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11016 * windows-nat.c (handle_unload_dll): Add function documentation.
11017 (do_initial_windows_stuff): Add comment explaining why we wait
11018 until after inferior initialization has finished before
11019 processing all DLLs.
11021 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11023 * windows-nat.c (get_module_name): Delete.
11024 (windows_get_exec_module_filename): New function, mostly
11025 inspired from get_module_name.
11026 (windows_pid_to_exec_file): Replace call to get_module_name
11027 by call to windows_get_exec_module_filename.
11029 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11031 * windows-nat.c (handle_load_dll): Rewrite this function's
11032 introductory comment. Remove code using get_module_name
11033 to get the DLL's name.
11035 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11037 * windows-nat.c (get_windows_debug_event): Ignore
11038 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11039 if windows_initialization_done == 0.
11040 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11041 Adjust implementation to always load all DLLs.
11042 (do_initial_windows_stuff): Replace call to
11043 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11047 * windows-nat.c (_initialize_windows_nat): Deprecate the
11048 "dll-symbols" command. Turn the "add-shared-symbol-files"
11049 and "assf" aliases into commands, and deprecate them as well.
11050 * NEWS: Add entry explaining that "dll-symbols" and its two
11051 aliases are now deprecated.
11053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11055 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11056 new-line in debug string. Remove trailing spaces.
11058 2014-02-19 Stan Shebs <stan@codesourcery.com>
11060 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11062 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11064 * NEWS: Add entry for the new feature
11065 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11068 2014-02-19 Stan Shebs <stan@codesourcery.com>
11070 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11072 2014-02-19 Pedro Alves <palves@redhat.com>
11074 * common/ptid.h (struct ptid): Mention that process_stratum
11075 targets should prefer ptid.lwp.
11077 2014-02-19 Pedro Alves <palves@redhat.com>
11079 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11080 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11081 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11082 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11083 store remote thread ids rather than ptid.tid.
11084 (_initialize_remote): Adjust.
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11088 * target.c (target_get_unwinder): Rewrite.
11089 (target_get_tailcall_unwinder): Rewrite.
11090 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11091 (record_btrace_to_get_tailcall_unwinder): New function.
11092 (init_record_btrace_ops): Update.
11093 * target.h (struct target_ops) <to_get_unwinder,
11094 to_get_tailcall_unwinder>: Now function pointers. Use
11095 TARGET_DEFAULT_RETURN.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11101 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11105 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11107 * target-delegates.c: Rebuild.
11108 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11109 TARGET_DEFAULT_FUNC.
11110 * target.c (default_target_decr_pc_after_break): Rename from
11111 forward_target_decr_pc_after_break. Simplify.
11112 (target_decr_pc_after_break): Rely on delegation.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target.c (update_current_target): Do not INHERIT to_doc or
11117 to_magic. Do not de_fault to_open or to_close.
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11121 * gcore.h (objfile_find_memory_regions): Declare.
11122 * gcore.c (objfile_find_memory_regions): No longer static. Add
11124 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11125 * exec.c: Include gcore.h.
11126 (exec_set_find_memory_regions): Remove.
11127 (exec_find_memory_regions): Remove.
11128 (exec_do_find_memory_regions): Remove.
11129 (init_exec_ops): Update.
11130 * defs.h (exec_set_find_memory_regions): Remove.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target-delegates.c: Rebuild.
11135 * target.h (struct target_ops) <to_extra_thread_info,
11136 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11137 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11138 not 0, in TARGET_DEFAULT_RETURN.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.c (complete_target_initialization): Remove casts. Use
11143 return_zero_has_execution.
11144 (return_zero): Add "ignore" argument.
11145 (return_zero_has_execution): New function.
11146 (init_dummy_target): Remove casts. Use
11147 return_zero_has_execution.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.c (update_current_target): Update comments. Do not
11152 INHERIT to_stratum.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11158 * corelow.c (core_read_description): Delegate when needed.
11159 * remote.c (remote_read_description): Delegate when needed.
11160 * target-delegates.c: Rebuild.
11161 * target.c (target_read_description): Rewrite.
11162 * target.h (struct target_ops) <to_read_description>: Update
11163 comment. Use TARGET_DEFAULT_RETURN.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11170 (find_default_run_target): Check against delegate_can_run.
11171 * target.h (struct target_ops) <to_can_run>: Use
11172 TARGET_DEFAULT_RETURN.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_disconnect): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_disconnect>: Use
11179 TARGET_DEFAULT_NORETURN.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * record.c (record_stop): Unconditionally delegate.
11184 * target-delegates.c: Rebuild.
11185 * target.c (target_stop_recording): Unconditionally delegate.
11186 * target.h (struct target_ops) <to_stop_recording>: Use
11187 TARGET_DEFAULT_IGNORE.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (target_enable_btrace): Unconditionally delegate.
11193 * target.h (struct target_ops) <to_enable_btrace>: Use
11194 TARGET_DEFAULT_NORETURN.
11196 2014-02-19 Tom Tromey <tromey@redhat.com>
11198 * target-delegates.c: Rebuild.
11199 * target.c (target_read_btrace): Unconditionally delegate.
11200 * target.h (struct target_ops) <to_read_btrace>: Use
11201 TARGET_DEFAULT_NORETURN.
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * target-delegates.c: Rebuild.
11206 * target.c (target_teardown_btrace): Unconditionally delegate.
11207 * target.h (struct target_ops) <to_teardown_btrace>: Use
11208 TARGET_DEFAULT_NORETURN.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_disable_btrace): Unconditionally delegate.
11214 * target.h (struct target_ops) <to_disable_btrace>: Use
11215 TARGET_DEFAULT_NORETURN.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target-delegates.c: Rebuild.
11220 * target.c (default_search_memory): New function.
11221 (simple_search_memory): Update comment.
11222 (target_search_memory): Unconditionally delegate.
11223 * target.h (struct target_ops) <to_search_memory>: Use
11224 TARGET_DEFAULT_FUNC.
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11228 * auxv.c (default_auxv_parse): No longer static.
11229 (target_auxv_parse): Unconditionally delegate.
11230 * auxv.h (default_auxv_parse): Declare.
11231 * target-delegates.c: Rebuild.
11232 * target.c: Include auxv.h.
11233 * target.h (struct target_ops) <to_auxv_parse>: Use
11234 TARGET_DEFAULT_FUNC.
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_memory_map): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_memory_map>: Use
11241 TARGET_DEFAULT_RETURN.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_thread_alive): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_thread_alive>: Use
11248 TARGET_DEFAULT_RETURN.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_save_record): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_save_record>: Use
11255 TARGET_DEFAULT_NORETURN.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_delete_record): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_delete_record>: Use
11262 TARGET_DEFAULT_NORETURN.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_record_is_replaying): Unconditionally
11269 * target.h (struct target_ops) <to_record_is_replaying>: Use
11270 TARGET_DEFAULT_RETURN.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target-delegates.c: Rebuild.
11275 * target.c (target_goto_record_begin): Unconditionally delegate.
11276 * target.h (struct target_ops) <to_goto_record_begin>: Use
11277 TARGET_DEFAULT_NORETURN.
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target-delegates.c: Rebuild.
11282 * target.c (target_goto_record_end): Unconditionally delegate.
11283 * target.h (struct target_ops) <to_goto_record_end>: Use
11284 TARGET_DEFAULT_NORETURN.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target-delegates.c: Rebuild.
11289 * target.c (target_goto_record): Unconditionally delegate.
11290 * target.h (struct target_ops) <to_goto_record>: Use
11291 TARGET_DEFAULT_NORETURN.
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11295 * target-delegates.c: Rebuild.
11296 * target.c (target_insn_history): Unconditionally delegate.
11297 * target.h (struct target_ops) <to_insn_history>: Use
11298 TARGET_DEFAULT_NORETURN.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target-delegates.c: Rebuild.
11303 * target.c (target_insn_history_from): Unconditionally delegate.
11304 * target.h (struct target_ops) <to_insn_history_from>: Use
11305 TARGET_DEFAULT_NORETURN.
11307 2014-02-19 Tom Tromey <tromey@redhat.com>
11309 * target-delegates.c: Rebuild.
11310 * target.c (target_insn_history_range): Unconditionally delegate.
11311 * target.h (struct target_ops) <to_insn_history_range>: Use
11312 TARGET_DEFAULT_NORETURN.
11314 2014-02-19 Tom Tromey <tromey@redhat.com>
11316 * target-delegates.c: Rebuild.
11317 * target.c (target_call_history): Unconditionally delegate.
11318 * target.h (struct target_ops) <to_call_history>: Use
11319 TARGET_DEFAULT_NORETURN.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target-delegates.c: Rebuild.
11324 * target.c (target_call_history_from): Unconditionally delegate.
11325 * target.h (struct target_ops) <to_call_history_from>: Use
11326 TARGET_DEFAULT_NORETURN.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target-delegates.c: Rebuild.
11331 * target.c (target_call_history_range): Unconditionally delegate.
11332 * target.h (struct target_ops) <to_call_history_range>: Use
11333 TARGET_DEFAULT_NORETURN.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * target-delegates.c: Rebuild.
11338 * target.c (target_verify_memory): Unconditionally delegate.
11339 * target.h (struct target_ops) <to_verify_memory>: Use
11340 TARGET_DEFAULT_NORETURN.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target-delegates.c: Rebuild.
11345 * target.c (target_core_of_thread): Unconditionally delegate.
11346 * target.h (struct target_ops) <to_core_of_thread>: Use
11347 TARGET_DEFAULT_RETURN.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * target-delegates.c: Rebuild.
11352 * target.c (target_flash_done): Unconditionally delegate.
11353 * target.h (struct target_ops) <to_flash_done>: Use
11354 TARGET_DEFAULT_NORETURN.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target-delegates.c: Rebuild.
11359 * target.c (target_flash_erase): Unconditionally delegate.
11360 * target.h (struct target_ops) <to_flash_erase>: Use
11361 TARGET_DEFAULT_NORETURN.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_get_section_table): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_get_section_table>: Use
11368 TARGET_DEFAULT_RETURN.
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * target-delegates.c: Rebuild.
11373 * target.c (target_pid_to_str): Unconditionally delegate.
11374 (init_dummy_target): Don't initialize to_pid_to_str.
11375 (default_pid_to_str): Rename from dummy_pid_to_str.
11376 * target.h (struct target_ops) <to_pid_to_str>: Use
11377 TARGET_DEFAULT_FUNC.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * target-delegates.c: Rebuild.
11382 * target.c (target_find_new_threads): Unconditionally delegate.
11383 * target.h (struct target_ops) <to_find_new_threads>: Use
11384 TARGET_DEFAULT_RETURN.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target-delegates.c: Rebuild.
11389 * target.c (target_program_signals): Unconditionally delegate.
11390 * target.h (struct target_ops) <to_program_signals>: Use
11391 TARGET_DEFAULT_IGNORE.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target-delegates.c: Rebuild.
11396 * target.c (target_pass_signals): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_pass_signals>: Use
11398 TARGET_DEFAULT_IGNORE.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target-delegates.c: Rebuild.
11403 * target.c (default_mourn_inferior): New function.
11404 (target_mourn_inferior): Unconditionally delegate.
11405 * target.h (struct target_ops) <to_mourn_inferior>: Use
11406 TARGET_DEFAULT_FUNC.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (default_follow_fork): New function.
11412 (target_follow_fork): Unconditionally delegate.
11413 * target.h (struct target_ops) <to_follow_fork>: Use
11414 TARGET_DEFAULT_FUNC.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (target_kill): Unconditionally delegate.
11420 * target.h (struct target_ops) <to_kill>: Use
11421 TARGET_DEFAULT_NORETURN.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target-delegates.c: Rebuild.
11426 * target.c (target_masked_watch_num_registers): Unconditionally
11428 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11429 Use TARGET_DEFAULT_RETURN.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_remove_mask_watchpoint): Unconditionally
11436 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11437 TARGET_DEFAULT_RETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (target_insert_mask_watchpoint): Unconditionally
11444 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11445 TARGET_DEFAULT_RETURN.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_ranged_break_num_registers): Unconditionally
11452 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11453 Use TARGET_DEFAULT_RETURN.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_fetch_registers): Unconditionally delegate.
11459 * target.h (struct target_ops) <to_fetch_registers>: Use
11460 TARGET_DEFAULT_NORETURN.
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11467 * target.h (struct target_ops) <to_stop>: Use
11468 TARGET_DEFAULT_IGNORE.
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_can_run_breakpoint_commands.
11475 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11476 Use TARGET_DEFAULT_RETURN.
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_supports_evaluation_of_breakpoint_conditions.
11483 * target.h (struct target_ops)
11484 <to_supports_evaluation_of_breakpoint_conditions>: Use
11485 TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_augmented_libraries_svr4_read.
11492 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11493 Use TARGET_DEFAULT_RETURN.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11500 * target.h (struct target_ops) <to_can_use_agent>: Use
11501 TARGET_DEFAULT_RETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11508 * target.h (struct target_ops) <to_use_agent>: Use
11509 TARGET_DEFAULT_NORETURN.
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_traceframe_info.
11516 (return_null): Remove.
11517 * target.h (struct target_ops) <to_traceframe_info>: Use
11518 TARGET_DEFAULT_RETURN.
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_static_tracepoint_markers_by_strid.
11525 * target.h (struct target_ops)
11526 <to_static_tracepoint_markers_by_strid>: Use
11527 TARGET_DEFAULT_NORETURN.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11533 to_static_tracepoint_marker_at.
11534 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11535 Use TARGET_DEFAULT_RETURN.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_set_permissions.
11542 * target.h (struct target_ops) <to_set_permissions>: Use
11543 TARGET_DEFAULT_IGNORE.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_get_tib_address.
11550 * target.h (struct target_ops) <to_get_tib_address>: Use
11551 TARGET_DEFAULT_NORETURN.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_set_trace_notes.
11558 * target.h (struct target_ops) <to_set_trace_notes>: Use
11559 TARGET_DEFAULT_RETURN.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't initialize
11565 to_set_trace_buffer_size.
11566 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11567 TARGET_DEFAULT_IGNORE.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_set_circular_trace_buffer.
11574 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_set_disconnected_tracing.
11582 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11583 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
11590 (return_minus_one): Remove.
11591 * target.h (struct target_ops)
11592 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_get_raw_trace_data.
11599 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11600 TARGET_DEFAULT_NORETURN.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_upload_trace_state_variables.
11607 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11608 Use TARGET_DEFAULT_RETURN.
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_upload_tracepoints.
11615 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11616 TARGET_DEFAULT_RETURN.
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_save_trace_data.
11623 * target.h (struct target_ops) <to_save_trace_data>: Use
11624 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
11631 * target.h (struct target_ops)
11632 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
11639 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11646 * target.h (struct target_ops) <to_trace_stop>: Use
11647 TARGET_DEFAULT_NORETURN.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_get_tracepoint_status.
11654 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11655 TARGET_DEFAULT_NORETURN.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_get_trace_status.
11662 * target.h (struct target_ops) <to_get_trace_status>: Use
11663 TARGET_DEFAULT_RETURN.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11670 * target.h (struct target_ops) <to_trace_start>: Use
11671 TARGET_DEFAULT_NORETURN.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_trace_set_readonly_regions.
11678 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11679 Use 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_disable_tracepoint.
11686 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11687 TARGET_DEFAULT_NORETURN.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_enable_tracepoint.
11694 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11695 TARGET_DEFAULT_NORETURN.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_download_trace_state_variable.
11702 * target.h (struct target_ops) <to_download_trace_state_variable>:
11703 Use 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_can_download_tracepoint.
11710 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11711 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
11718 * target.h (struct target_ops) <to_download_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
11726 * target.h (struct target_ops) <to_trace_init>: Use
11727 TARGET_DEFAULT_RETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_supports_string_tracing.
11734 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11735 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
11742 * target.h (struct target_ops)
11743 <to_supports_enable_disable_tracepoint>: Use
11744 TARGET_DEFAULT_RETURN.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_supports_multi_process.
11751 * target.h (struct target_ops) <to_supports_multi_process>: Use
11752 TARGET_DEFAULT_RETURN.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_get_ada_task_ptid.
11759 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11760 TARGET_DEFAULT_FUNC.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_thread_architecture.
11767 * target.h (struct target_ops) <to_thread_architecture>: Use
11768 TARGET_DEFAULT_FUNC.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_execution_direction.
11775 * target.h (struct target_ops) <to_execution_direction>: Use
11776 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
11783 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11784 TARGET_DEFAULT_RETURN.
11785 (target_can_execute_reverse): Unconditionally delegate.
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11789 * target-delegates.c: Rebuild.
11790 * target.c (update_current_target): Don't inherit or default
11792 (dummy_goto_bookmark): Remove.
11793 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11794 * target.h (struct target_ops) <to_goto_bookmark>: Use
11795 TARGET_DEFAULT_NORETURN.
11797 2014-02-19 Tom Tromey <tromey@redhat.com>
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11802 (dummy_get_bookmark): Remove.
11803 (init_dummy_target): Don't inherit or default to_get_bookmark.
11804 * target.h (struct target_ops) <to_get_bookmark>: Use
11805 TARGET_DEFAULT_NORETURN
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11811 to_make_corefile_notes.
11812 (init_dummy_target): Don't initialize to_make_corefile_notes.
11813 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11814 TARGET_DEFAULT_FUNC.
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't inherit or default
11820 to_find_memory_regions.
11821 (init_dummy_target): Don't initialize to_find_memory_regions.
11822 * target.h (struct target_ops) <to_find_memory_regions>: Use
11823 TARGET_DEFAULT_FUNC.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11830 * target.h (struct target_ops) <to_log_command>: Use
11831 TARGET_DEFAULT_IGNORE.
11832 (target_log_command): Unconditionally delegate.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_pid_to_exec_file.
11839 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11840 TARGET_DEFAULT_RETURN.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11847 (target_thread_name): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_thread_name>: Use
11849 TARGET_DEFAULT_RETURN.
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_extra_thread_info.
11856 * target.h (struct target_ops) <to_extra_thread_info>: Use
11857 TARGET_DEFAULT_RETURN.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11864 * target.h (struct target_ops) <to_has_exited>: Use
11865 TARGET_DEFAULT_RETURN..
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_set_syscall_catchpoint.
11872 (return_one): Remove.
11873 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11874 TARGET_DEFAULT_RETURN.
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_insert_exec_catchpoint.
11881 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11882 TARGET_DEFAULT_RETURN.
11884 2014-01-08 Tom Tromey <tromey@redhat.com>
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_insert_exec_catchpoint.
11889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11890 TARGET_DEFAULT_RETURN.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target-delegates.c: Rebuild.
11895 * target.c (update_current_target): Don't inherit or default
11896 to_remove_vfork_catchpoint.
11897 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11898 TARGET_DEFAULT_RETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_insert_vfork_catchpoint.
11905 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
11913 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_insert_fork_catchpoint.
11921 * target.h (struct target_ops) <to_insert_fork_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_post_startup_inferior.
11929 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11930 TARGET_DEFAULT_IGNORE.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11937 * target.h (struct target_ops) <to_load>: Use
11938 TARGET_DEFAULT_NORETURN.
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
11945 * target.h (struct target_ops) <to_terminal_info>: Use
11946 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
11953 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11954 TARGET_DEFAULT_IGNORE.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11961 * target.h (struct target_ops) <to_terminal_ours>: Use
11962 TARGET_DEFAULT_IGNORE.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11968 to_terminal_ours_for_output.
11969 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11970 TARGET_DEFAULT_IGNORE.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_terminal_inferior.
11977 * target.h (struct target_ops) <to_terminal_inferior>: Use
11978 TARGET_DEFAULT_IGNORE.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11985 * target.h (struct target_ops) <to_terminal_init>: 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
11992 to_can_accel_watchpoint_condition.
11993 * target.h (struct target_ops)
11994 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
12001 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12002 Use TARGET_DEFAULT_FUNC.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_watchpoint_addr_within_range.
12009 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12010 Use TARGET_DEFAULT_FUNC.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_remove_watchpoint.
12017 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12018 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
12025 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12026 TARGET_DEFAULT_RETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_remove_hw_breakpoint.
12033 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12034 TARGET_DEFAULT_RETURN.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_insert_hw_breakpoint.
12041 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_can_use_hw_breakpoint.
12049 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12057 * target.h (struct target_ops) <to_files_info>: Use
12058 TARGET_DEFAULT_IGNORE.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12065 * target.h (struct target_ops) <to_store>: Use
12066 TARGET_DEFAULT_NORETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12073 * target.h (struct target_ops) <to_post_attach>: Use
12074 TARGET_DEFAULT_IGNORE.
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
12081 (default_rcmd): New function.
12082 (do_monitor_command): Unconditionally delegate.
12083 * target.h (struct target_ops) <to_rmcd>: Use
12084 TARGET_DEFAULT_FUNC.
12086 2014-02-19 Tom Tromey <tromey@redhat.com>
12088 * target-delegates.c: Rebuild.
12089 * target.c (init_dummy_target): Don't initialize to_attach.
12090 (target_attach): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_attach>: Use
12092 TARGET_DEFAULT_FUNC.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target-delegates.c: Rebuild.
12097 * target.c (target_detach): Unconditionally delegate.
12098 (init_dummy_target): Don't initialize to_detach.
12099 * target.h (struct target_ops) <to_detach>: Use
12100 TARGET_DEFAULT_IGNORE.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12106 (target_augmented_libraries_svr4_read): Add argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12113 * target.h (struct target_ops) <to_call_history_range>: Add
12115 * target.c (target_call_history_range): Add argument.
12116 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12118 (record_btrace_call_history_from): Update.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_call_history_from>: Add
12124 * target.c (target_call_history_from): Add argument.
12125 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * target.h (struct target_ops) <to_call_history>: Add argument.
12131 * target.c (target_call_history): Add argument.
12132 * record-btrace.c (record_btrace_call_history): Add 'self'
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target.h (struct target_ops) <to_insn_history_range>: Add
12139 * target.c (target_insn_history_range): Add argument.
12140 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12142 (record_btrace_insn_history_from): Update.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops) <to_insn_history_from>: Add
12148 * target.c (target_insn_history_from): Add argument.
12149 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target.h (struct target_ops) <to_insn_history>: Add argument.
12155 * target.c (target_insn_history): Add argument.
12156 * record-btrace.c (record_btrace_insn_history): Add 'self'
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target.h (struct target_ops) <to_goto_record>: Add argument.
12162 * target.c (target_goto_record): Add argument.
12163 * record-full.c (record_full_goto): Add 'self' argument.
12164 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12168 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12169 * target.c (target_goto_record_end): Add argument.
12170 * record-full.c (record_full_goto_end): Add 'self' argument.
12171 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target.h (struct target_ops) <to_goto_record_begin>: Add
12177 * target.c (target_goto_record_begin): Add argument.
12178 * record-full.c (record_full_goto_begin): Add 'self' argument.
12179 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12184 * target.h (struct target_ops) <to_record_is_replaying>: Add
12186 * target.c (target_record_is_replaying): Add argument.
12187 * record-full.c (record_full_is_replaying): Add 'self' argument.
12188 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12190 (record_btrace_xfer_partial, record_btrace_store_registers)
12191 (record_btrace_prepare_to_store, record_btrace_resume)
12192 (record_btrace_wait, record_btrace_decr_pc_after_break)
12193 (record_btrace_find_new_threads, record_btrace_thread_alive):
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12198 * target.h (struct target_ops) <to_delete_record>: Add argument.
12199 * target.c (target_delete_record): Add argument.
12200 * record-full.c (record_full_delete): Add 'self' argument.
12202 2014-02-19 Tom Tromey <tromey@redhat.com>
12204 * target.h (struct target_ops) <to_save_record>: Add argument.
12205 * target.c (target_save_record): Add argument.
12206 * record-full.c (record_full_save): Add 'self' argument.
12207 (record_full_save): Add 'self' argument.
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target.h (struct target_ops) <to_info_record>: Add argument.
12212 * target.c (target_info_record): Add argument.
12213 * record.c (info_record_command): Add argument.
12214 * record-full.c (record_full_info): Add 'self' argument.
12215 * record-btrace.c (record_btrace_info): Add 'self' argument.
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12220 * target.c (target_stop_recording): Add argument.
12221 * record.c (record_stop): Add argument.
12222 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12228 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12229 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12231 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12232 (_initialize_amd64_linux_nat): Use it.
12233 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12234 (_initialize_i386_linux_nat): Use it.
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12239 * target.c (target_teardown_btrace): Add argument.
12240 * remote.c (remote_teardown_btrace): Add 'self' argument.
12241 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12243 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12248 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12249 * target.c (target_disable_btrace): Add argument.
12250 * remote.c (remote_disable_btrace): Add 'self' argument.
12251 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12253 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12258 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12259 * target.c (target_enable_btrace): Add argument.
12260 * remote.c (remote_enable_btrace): Add 'self' argument.
12261 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12263 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12269 (target_can_use_agent): Add argument.
12270 * target.c (update_current_target): Update.
12271 * remote.c (remote_can_use_agent): Add 'self' argument.
12272 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12276 * target.h (struct target_ops) <to_use_agent>: Add argument.
12277 (target_use_agent): Add argument.
12278 * target.c (update_current_target): Update.
12279 * remote.c (remote_use_agent): Add 'self' argument.
12280 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12282 2014-02-19 Tom Tromey <tromey@redhat.com>
12284 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12285 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12286 (target_traceframe_info): Add argument.
12287 * target.c (update_current_target): Update.
12288 * remote.c (remote_traceframe_info): Add 'self' argument.
12289 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * target.h (target_static_tracepoint_markers_by_strid): Add
12295 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12297 * target.c (update_current_target): Update.
12298 * remote.c (struct target_ops)
12299 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12300 * linux-nat.c (struct target_ops)
12301 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12305 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12307 (target_static_tracepoint_marker_at): Add argument.
12308 * target.c (update_current_target): Update.
12309 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12315 (target_set_permissions): Add argument.
12316 * target.c (update_current_target): Update.
12317 * remote.c (remote_set_permissions): Add 'self' argument.
12318 (remote_start_remote): Update.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12323 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12324 (target_get_tib_address): Add argument.
12325 * target.c (update_current_target): Update.
12326 * remote.c (remote_get_tib_address): Add 'self' argument.
12328 2014-02-19 Tom Tromey <tromey@redhat.com>
12330 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12331 (target_set_trace_notes): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_set_trace_notes): Add 'self' argument.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12339 (target_set_trace_buffer_size): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12343 2014-02-19 Tom Tromey <tromey@redhat.com>
12345 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12347 (target_set_circular_trace_buffer): Add argument.
12348 * target.c (update_current_target): Update.
12349 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12356 (target_set_disconnected_tracing): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12362 * target.h (struct target_ops)
12363 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12364 (target_get_min_fast_tracepoint_insn_len): Add argument.
12365 * target.c (update_current_target): Update.
12366 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12371 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12373 (target_get_raw_trace_data): Add argument.
12374 * target.c (update_current_target): Update.
12375 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12377 2014-02-19 Tom Tromey <tromey@redhat.com>
12379 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12381 (target_upload_trace_state_variables): Add argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_upload_trace_state_variables): Add 'self'
12385 (remote_start_remote): Update.
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12389 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12391 (target_upload_tracepoints): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12394 (remote_start_remote): Update.
12396 2014-02-19 Tom Tromey <tromey@redhat.com>
12398 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12399 (target_save_trace_data): Add argument.
12400 * target.c (update_current_target): Update.
12401 * remote.c (remote_save_trace_data): Add 'self' argument.
12403 2014-02-19 Tom Tromey <tromey@redhat.com>
12405 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12407 * target.h (struct target_ops)
12408 <to_get_trace_state_variable_value>: Add argument.
12409 (target_get_trace_state_variable_value): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12413 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12415 2014-02-19 Tom Tromey <tromey@redhat.com>
12417 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12418 * target.h (struct target_ops) <to_trace_find>: Add argument.
12419 (target_trace_find): Add argument.
12420 * target.c (update_current_target): Update.
12421 * remote.c (remote_trace_find): Add 'self' argument.
12422 * ctf.c (ctf_trace_find): Add 'self' argument.
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12426 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12427 (target_trace_stop): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_trace_stop): Add 'self' argument.
12431 2014-02-19 Tom Tromey <tromey@redhat.com>
12433 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12434 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12436 (target_get_tracepoint_status): Add argument.
12437 * target.c (update_current_target): Update.
12438 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12442 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12443 * target.h (struct target_ops) <to_get_trace_status>: Add
12445 (target_get_trace_status): Add argument.
12446 * target.c (update_current_target): Update.
12447 * remote.c (remote_get_trace_status): Add 'self' argument.
12448 (remote_start_remote, remote_can_download_tracepoint): Update.
12449 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12451 2014-02-19 Tom Tromey <tromey@redhat.com>
12453 * target.h (struct target_ops) <to_trace_start>: Add argument.
12454 (target_trace_start): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_trace_start): Add 'self' argument.
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12460 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12462 (target_trace_set_readonly_regions): Add argument.
12463 * target.c (update_current_target): Update.
12464 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12471 (target_disable_tracepoint): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12477 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12479 (target_enable_tracepoint): Add argument.
12480 * target.c (update_current_target): Update.
12481 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12483 2014-02-19 Tom Tromey <tromey@redhat.com>
12485 * target.h (struct target_ops) <to_download_trace_state_variable>:
12487 (target_download_trace_state_variable): Add argument.
12488 * target.c (update_current_target): Update.
12489 * remote.c (remote_download_trace_state_variable): Add 'self'
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12496 (target_can_download_tracepoint): Add argument.
12497 * target.c (update_current_target): Update.
12498 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12502 * target.h (struct target_ops) <to_download_tracepoint>: Add
12504 (target_download_tracepoint): Add argument.
12505 * target.c (update_current_target): Update.
12506 * remote.c (remote_download_tracepoint): Add 'self' argument.
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12510 * target.h (struct target_ops) <to_trace_init>: Add argument.
12511 (target_trace_init): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_trace_init): Add 'self' argument.
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12517 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12518 * target.c (target_fileio_readlink): Add argument.
12519 * remote.c (remote_hostio_readlink): Add 'self' argument.
12520 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12522 2014-02-19 Tom Tromey <tromey@redhat.com>
12524 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12525 * target.c (target_fileio_unlink): Add argument.
12526 * remote.c (remote_hostio_unlink): Add 'self' argument.
12527 (remote_file_delete): Update.
12528 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12532 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12533 * target.c (target_fileio_close): Add argument.
12534 * remote.c (remote_hostio_close): Add 'self' argument.
12535 (remote_hostio_close_cleanup): Update.
12536 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12538 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12543 * target.c (target_fileio_pread): Add argument.
12544 * remote.c (remote_hostio_pread): Add 'self' argument.
12545 (remote_bfd_iovec_pread, remote_file_get): Update.
12546 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12550 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12551 * target.c (target_fileio_pwrite): Add argument.
12552 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12553 (remote_file_put): Update.
12554 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12556 2014-02-19 Tom Tromey <tromey@redhat.com>
12558 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12559 * target.c (target_fileio_open): Add argument.
12560 * remote.c (remote_hostio_open): Add 'self' argument.
12561 (remote_bfd_iovec_open): Add 'self' argument.
12562 (remote_file_put): Add 'self' argument.
12563 (remote_file_get): Add 'self' argument.
12564 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12566 2014-02-19 Tom Tromey <tromey@redhat.com>
12568 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12570 (target_can_run_breakpoint_commands): Add argument.
12571 * target.c (update_current_target): Update.
12572 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12574 (remote_insert_breakpoint): Add 'self' argument.
12575 (remote_insert_hw_breakpoint): Add 'self' argument.
12576 (remote_can_run_breakpoint_commands): Add 'self' argument.
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12580 * target.h (struct target_ops)
12581 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12582 (target_supports_evaluation_of_breakpoint_conditions): Add
12584 * target.c (update_current_target): Update.
12585 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12587 (remote_insert_breakpoint): Add 'self' argument.
12588 (remote_insert_hw_breakpoint): Add 'self' argument.
12589 (remote_supports_cond_breakpoints): Add 'self' argument.
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12593 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12595 (target_supports_string_tracing): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12599 2014-02-19 Tom Tromey <tromey@redhat.com>
12601 * target.h (struct target_ops)
12602 <to_supports_disable_randomization>: Add argument.
12603 * target.c (find_default_supports_disable_randomization): Add
12605 (target_supports_disable_randomization): Add argument.
12606 (find_default_supports_disable_randomization): Add 'self'
12608 * remote.c (extended_remote_supports_disable_randomization): Add
12610 (remote_supports_disable_randomization): Add 'self' argument.
12611 (extended_remote_create_inferior): Update.
12612 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target.h (struct target_ops)
12618 <to_supports_enable_disable_tracepoint>: Add argument.
12619 (target_supports_enable_disable_tracepoint): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target.h (struct target_ops) <to_supports_multi_process>: Add
12628 (target_supports_multi_process): Add argument.
12629 * target.c (update_current_target): Update.
12630 * remote.c (remote_supports_multi_process): Add 'self' argument.
12631 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12633 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12638 * target.h (struct target_ops) <to_execution_direction>: Add
12640 (target_execution_direction): Add argument.
12641 * target.c (default_execution_direction): Add 'self' argument.
12642 * record-full.c (record_full_execution_direction): Add 'self'
12645 2014-02-19 Tom Tromey <tromey@redhat.com>
12647 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12649 (target_can_execute_reverse): Add argument.
12650 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12651 * record-full.c (record_full_can_execute_reverse): Add 'self'
12653 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12659 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12661 (target_get_ada_task_ptid): Add argument.
12662 * target.c (update_current_target): Update.
12663 (default_get_ada_task_ptid): Add 'self' argument.
12664 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12665 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12666 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12668 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12670 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12672 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12674 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12675 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12680 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12681 (target_goto_bookmark): Add argument.
12682 * target.c (dummy_goto_bookmark): Add 'self' argument.
12683 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12685 2014-02-19 Tom Tromey <tromey@redhat.com>
12687 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12688 (target_get_bookmark): Add argument.
12689 * target.c (dummy_get_bookmark): Add 'self' argument.
12690 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12694 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12696 (target_make_corefile_notes): Add argument.
12697 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12698 * procfs.c (procfs_make_note_section): Add 'self' argument.
12699 (procfs_make_note_section): Add 'self' argument.
12700 (procfs_make_note_section): Add 'self' argument.
12701 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12703 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12704 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12705 * exec.c (exec_make_note_section): Add 'self' argument.
12706 (exec_make_note_section): Add 'self' argument.
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12710 * target.h (struct target_ops) <to_find_memory_regions>: Add
12712 (target_find_memory_regions): Add argument.
12713 * target.c (dummy_find_memory_regions): Add 'self' argument.
12714 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12715 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12716 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12717 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12718 * exec. (exec_do_find_memory_regions): New global.
12719 (exec_set_find_memory_regions): Rewrite.
12720 (exec_find_memory_regions): New function.
12721 (init_exec_ops): Use exec_find_memory_regions.
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12725 * target.h (struct target_ops) <to_supports_non_stop>: Add
12727 * target.c (find_default_supports_non_stop): Add argument.
12728 (target_supports_non_stop): Add argument.
12729 (find_default_supports_non_stop): Add 'self' argument.
12730 * remote.c (remote_supports_non_stop): Add 'self' argument.
12731 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12733 2014-02-19 Tom Tromey <tromey@redhat.com>
12735 * target.h (struct target_ops) <to_log_command>: Add argument.
12736 (target_log_command): Add argument.
12737 * serial.h (serial_log_command): Add 'self' argument.
12738 * serial.c (serial_log_command): Add 'self' argument.
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12742 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12743 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12745 (target_pid_to_exec_file): Add argument.
12746 * target.c (debug_to_pid_to_exec_file): Add argument.
12747 (update_current_target): Update.
12748 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12749 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12750 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12751 (linux_handle_extended_wait): Update.
12752 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12753 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12754 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12755 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12759 * target.h (struct target_ops) <to_rcmd>: Add argument.
12760 (target_rcmd): Add argument.
12761 * target.c (debug_to_rcmd): Add argument.
12762 (update_current_target, do_monitor_command): Update.
12763 * remote.c (remote_rcmd): Add 'self' argument.
12764 * monitor.c (monitor_rcmd): Add 'self' argument.
12766 2014-02-19 Tom Tromey <tromey@redhat.com>
12768 * windows-nat.c (windows_stop): Add 'self' argument.
12769 * target.h (struct target_ops) <to_stop>: Add argument.
12770 * target.c (target_stop): Add argument.
12771 (debug_to_stop): Add argument.
12772 (update_current_target): Update.
12773 * remote.c (remote_stop): Add 'self' argument.
12774 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12775 (gdbsim_cntrl_c): Update.
12776 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12777 * procfs.c (procfs_stop): Add 'self' argument.
12778 * nto-procfs.c (procfs_stop): Add 'self' argument.
12779 * monitor.c (monitor_stop): Add 'self' argument.
12780 (monitor_open): Update.
12781 * linux-nat.c (linux_nat_stop): Add argument.
12782 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12783 * gnu-nat.c (gnu_stop): Add 'self' argument.
12784 * darwin-nat.c (darwin_stop): Add 'self' argument.
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12788 * target.h (struct target_ops) <to_thread_name>: Add argument.
12789 * target.c (target_thread_name): Add argument.
12790 (update_current_target): Update.
12791 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12795 * target.h (struct target_ops) <to_extra_thread_info>: Add
12797 (target_extra_thread_info): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_threads_extra_info): Add 'self' argument.
12800 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12802 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12803 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12804 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12806 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12808 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12810 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12813 2014-02-19 Tom Tromey <tromey@redhat.com>
12815 * target.h (struct target_ops) <to_program_signals>: Add argument.
12816 * target.c (target_program_signals): Add argument.
12817 * remote.c (remote_program_signals): Add 'self' argument.
12819 2014-02-19 Tom Tromey <tromey@redhat.com>
12821 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12822 * target.c (target_pass_signals): Add argument.
12823 * remote.c (remote_pass_signals): Add 'self' argument.
12824 (remote_start_remote): Update.
12825 * procfs.c (procfs_pass_signals): Add 'self' argument.
12826 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12827 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12828 (linux_nat_create_inferior, linux_nat_attach): Update.
12830 2014-02-19 Tom Tromey <tromey@redhat.com>
12832 * windows-nat.c (windows_can_run): Add 'self' argument.
12833 * target.h (struct target_ops) <to_can_run>: Add argument.
12834 (target_can_run): Add argument.
12835 * target.c (debug_to_can_run): Add argument.
12836 (update_current_target): Update.
12837 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12838 * inf-child.c (inf_child_can_run): Add 'self' argument.
12839 * go32-nat.c (go32_can_run): Add 'self' argument.
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12843 * target.h (struct target_ops) <to_has_exited>: Add argument.
12844 (target_has_exited): Add argument.
12845 * target.c (debug_to_has_exited): Add argument.
12846 (update_current_target): Update.
12848 2014-02-19 Tom Tromey <tromey@redhat.com>
12850 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12852 (target_set_syscall_catchpoint): Add argument.
12853 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12855 * target.c (update_current_target): Update.
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12859 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12861 (target_remove_exec_catchpoint): Add argument.
12862 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12863 (update_current_target): Update.
12864 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12871 (target_insert_exec_catchpoint): Add argument.
12872 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12873 (update_current_target): Update.
12874 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12877 2014-02-19 Tom Tromey <tromey@redhat.com>
12879 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12881 (target_remove_vfork_catchpoint): Add argument.
12882 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12883 (update_current_target): Update.
12884 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12887 2014-02-19 Tom Tromey <tromey@redhat.com>
12889 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12891 (target_insert_vfork_catchpoint): Add argument.
12892 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12893 (update_current_target): Update.
12894 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12899 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12901 (target_remove_fork_catchpoint): Add argument.
12902 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12903 (update_current_target): Update.
12904 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12907 2014-02-19 Tom Tromey <tromey@redhat.com>
12909 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12911 (target_insert_fork_catchpoint): Add argument.
12912 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12913 (update_current_target): Update.
12914 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12917 2014-02-19 Tom Tromey <tromey@redhat.com>
12919 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12921 (target_post_startup_inferior): Add argument.
12922 * target.c (debug_to_post_startup_inferior): Add argument.
12923 (update_current_target): Update.
12924 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12926 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12928 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12930 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12932 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12934 (super_post_startup_inferior): Likewise.
12935 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12937 (super_post_startup_inferior): Likewise.
12938 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12939 Add 'self' argument.
12940 (super_post_startup_inferior): Likewise.
12942 2014-02-19 Tom Tromey <tromey@redhat.com>
12944 * target.h (struct target_ops) <to_load>: Add argument.
12945 * target.c (target_load): Add argument.
12946 (debug_to_load): Add argument.
12947 (update_current_target): Update.
12948 * remote.c (remote_load): Add 'self' argument.
12949 * remote-sim.c (gdbsim_load): Add 'self' argument.
12950 * remote-mips.c (mips_load): Add 'self' argument.
12951 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12952 * monitor.c (monitor_load): Add 'self' argument.
12953 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12957 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12958 (target_terminal_info): Add argument.
12959 * target.c (debug_to_terminal_info): Add argument.
12960 (default_terminal_info): Likewise.
12961 * inflow.c (child_terminal_info): Add 'self' argument.
12962 * inferior.h (child_terminal_info): Add 'self' argument.
12963 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12965 2014-02-19 Tom Tromey <tromey@redhat.com>
12967 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12969 (target_terminal_save_ours): Add argument.
12970 * target.c (debug_to_terminal_save_ours): Add argument.
12971 (update_current_target): Update.
12972 * inflow.c (terminal_save_ours): Add 'self' argument.
12973 * inferior.h (terminal_save_ours): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12978 (target_terminal_ours): Add argument.
12979 * target.c (debug_to_terminal_ours): Add argument.
12980 (update_current_target): Update.
12981 * remote.c (remote_terminal_ours): Add 'self' argument.
12982 (remote_close): Update.
12983 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12984 * inflow.c (terminal_ours): Add 'self' argument.
12985 * inferior.h (terminal_ours): Add 'self' argument.
12986 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12988 2014-02-19 Pedro Alves <palves@redhat.com>
12989 Tom Tromey <tromey@redhat.com>
12991 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12993 (target_terminal_ours_for_output): Add argument.
12994 * target.c (debug_to_terminal_ours_for_output): Add argument.
12995 (update_current_target): Update.
12996 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12997 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12998 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13002 * target.h (struct target_ops) <to_terminal_inferior>: Add
13004 * target.c (target_terminal_inferior): Add argument.
13005 (update_current_target): Update.
13006 * remote.c (remote_terminal_inferior): Add 'self' argument.
13007 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13008 * inflow.c (terminal_inferior): Add 'self' argument.
13009 * inferior.h (terminal_inferior): Add 'self' argument.
13010 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13011 (go32_terminal_inferior): Add 'self' argument.
13013 2014-02-19 Tom Tromey <tromey@redhat.com>
13015 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13016 (target_terminal_init): Add argument.
13017 * target.c (debug_to_terminal_init): Add argument.
13018 (update_current_target): Update.
13019 * inflow.c (terminal_init_inferior): Add 'self' argument.
13020 * inferior.h (terminal_init_inferior): Add 'self' argument.
13021 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13022 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13026 * target.h (struct target_ops)
13027 <to_can_accel_watchpoint_condition>: Add argument.
13028 (target_can_accel_watchpoint_condition): Add argument.
13029 * target.c (debug_to_can_accel_watchpoint_condition): Add
13031 (update_current_target): Update.
13032 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13035 2014-02-19 Tom Tromey <tromey@redhat.com>
13037 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13039 (target_region_ok_for_hw_watchpoint): Add argument.
13040 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13041 (default_region_ok_for_hw_watchpoint): Add argument.
13042 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13043 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13045 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13047 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13049 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13051 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13053 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13055 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13056 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13058 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13059 Add 'self' argument.
13061 2014-02-19 Tom Tromey <tromey@redhat.com>
13063 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13065 (target_insert_watchpoint): Add argument.
13066 * target.c (debug_to_insert_watchpoint): Add argument.
13067 (update_current_target): Update.
13068 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13069 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13070 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13071 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13072 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13073 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13075 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13076 (procfs_insert_hw_watchpoint): Add 'self' argument.
13077 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13079 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13081 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13083 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13084 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13086 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13089 2014-02-19 Tom Tromey <tromey@redhat.com>
13091 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13093 (target_remove_watchpoint): Add argument.
13094 * target.c (debug_to_remove_watchpoint): Add argument.
13095 (update_current_target): Update.
13096 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13097 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13098 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13099 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13100 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13101 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13103 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13104 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13106 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13108 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13110 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13111 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13113 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13118 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13120 (target_remove_hw_breakpoint): Add argument.
13121 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13122 (update_current_target): Update.
13123 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13124 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13126 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13127 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13129 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13132 2014-02-19 Tom Tromey <tromey@redhat.com>
13134 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13136 (target_insert_hw_breakpoint): Add argument.
13137 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13138 (update_current_target): Update.
13139 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13140 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13142 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13143 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13144 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13146 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13149 2014-02-19 Tom Tromey <tromey@redhat.com>
13151 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13153 (target_can_use_hardware_watchpoint): Add argument.
13154 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13155 (update_current_target): Update.
13156 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13158 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13160 * remote.c (remote_check_watch_resources): Add 'self' argument.
13161 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13162 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13164 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13165 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13167 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13169 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13171 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13173 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13175 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13177 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13178 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13180 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13183 2014-02-19 Tom Tromey <tromey@redhat.com>
13185 * target.h (struct target_ops) <to_post_attach>: Add argument.
13186 (target_post_attach): Add argument.
13187 * target.c (debug_to_post_attach): Add argument.
13188 (update_current_target): Update.
13189 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13190 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13191 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13192 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13193 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13195 2014-02-19 Tom Tromey <tromey@redhat.com>
13197 * windows-nat.c (windows_close): Add 'self' argument.
13198 * tracepoint.c (tfile_close): Add 'self' argument.
13199 * target.h (struct target_ops) <to_close>: Add argument.
13200 * target.c (target_close): Add argument.
13201 (update_current_target): Update.
13202 * remote.c (remote_close): Add 'self' argument.
13203 * remote-sim.c (gdbsim_close): Add 'self' argument.
13204 * remote-mips.c (mips_close): Add 'self' argument.
13205 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13206 * record-full.c (record_full_close): Add 'self' argument.
13207 * record-btrace.c (record_btrace_close): Add 'self' argument.
13208 * monitor.h (monitor_close): Add 'self' argument.
13209 * monitor.c (monitor_close): Add 'self' argument.
13210 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13211 * linux-nat.c (linux_nat_close): Add argument.
13212 * go32-nat.c (go32_close): Add 'self' argument.
13213 * exec.c (exec_close_1): Add 'self' argument.
13214 * ctf.c (ctf_close): Add 'self' argument.
13215 * corelow.c (core_close): Add 'self' argument.
13216 (core_close_cleanup): Update.
13217 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13218 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13220 2014-02-19 Tom Tromey <tromey@redhat.com>
13222 * remote.c (remote_load): New function.
13223 (init_remote_ops): Use it.
13225 2014-02-19 Tom Tromey <tromey@redhat.com>
13227 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13229 * common/linux-btrace.h (linux_supports_btrace): Update.
13230 * remote.c (remote_supports_btrace): Add "self" argument.
13231 * target-delegates.c: Rebuild.
13232 * target.c (target_supports_btrace): Remove.
13233 * target.h (struct target_ops) <to_supports_btrace>: Add
13234 target_ops argument.
13235 (target_supports_btrace): New define.
13237 2014-02-19 Tom Tromey <tromey@redhat.com>
13239 * record-full.c (record_full_beneath_to_resume_ops)
13240 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13241 (record_full_beneath_to_wait)
13242 (record_full_beneath_to_store_registers_ops)
13243 (record_full_beneath_to_store_registers)
13244 (record_full_beneath_to_xfer_partial_ops)
13245 (record_full_beneath_to_xfer_partial)
13246 (record_full_beneath_to_insert_breakpoint_ops)
13247 (record_full_beneath_to_insert_breakpoint)
13248 (record_full_beneath_to_remove_breakpoint_ops)
13249 (record_full_beneath_to_remove_breakpoint)
13250 (record_full_beneath_to_stopped_by_watchpoint)
13251 (record_full_beneath_to_stopped_data_address)
13252 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13253 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13254 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13255 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13256 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13257 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13258 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13259 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13260 (record_full_resume, record_full_wait_1)
13261 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13262 (record_full_store_registers, record_full_xfer_partial)
13263 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13264 (record_full_async, record_full_core_xfer_partial): Use target
13266 * target-delegates.c: Rebuild.
13267 * target.c (current_xfer_partial): Remove.
13268 (update_current_target): Do not INHERIT or de_fault
13269 to_insert_breakpoint, to_remove_breakpoint,
13270 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13271 to_is_async_p, to_async. Do not set to_xfer_partial field.
13272 (default_xfer_partial): Simplify.
13273 (current_xfer_partial): Remove.
13274 (target_wait, target_resume): Simplify.
13275 (find_default_can_async_p, find_default_is_async_p): Update.
13276 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13277 to_xfer_partial, to_stopped_by_watchpoint,
13278 to_stopped_data_address.
13279 (target_store_registers): Simplify.
13280 (forward_target_remove_breakpoint)
13281 (forward_target_insert_breakpoint): Remove.
13282 (target_remove_breakpoint, target_insert_breakpoint)
13283 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13284 * target.h (struct target_ops) <to_resume, to_wait,
13285 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13286 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13287 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13289 (forward_target_remove_breakpoint)
13290 (forward_target_insert_breakpoint): Remove.
13291 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13293 (record_btrace_insert_breakpoint): Delegate directly.
13295 2014-02-19 Tom Tromey <tromey@redhat.com>
13298 * target-delegates.c: New file.
13299 * target.c: Include target-delegates.c.
13300 (init_dummy_target): Call install_dummy_methods.
13301 (complete_target_initialization): Call install_delegators.
13302 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13303 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13304 * make-target-delegates: New file.
13306 2014-02-19 Tom Tromey <tromey@redhat.com>
13308 * record.c (find_record_target): Use find_target_at.
13309 * target.c (find_target_at): New function.
13310 * target.h (find_target_at): Declare.
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13314 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13315 Add 'ops' argument.
13316 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13318 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13319 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13321 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13323 * linux-nat.c (save_sigtrap): Update.
13324 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13325 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13326 (linux_nat_close): Update.
13327 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13329 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13331 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13332 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13333 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13334 (tmp_to_async): Add 'ops' argument.
13335 (record_full_stopped_by_watchpoint, record_full_async)
13336 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13338 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13339 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13340 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13341 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13342 (remote_is_async_p, remote_async): Add 'ops' argument.
13343 (remote_stopped_data_address): Update.
13344 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13345 * target.c (update_current_target)
13346 (find_default_can_async_p, find_default_is_async_p): Update.
13347 (init_dummy_target): Update.
13348 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13349 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13350 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13351 (target_can_async_p, target_is_async_p, target_async)
13352 (target_stopped_by_watchpoint): Update.
13354 2014-02-19 Yao Qi <yao@codesourcery.com>
13357 * gdbarch.sh: Remove startup_gdbarch.
13358 * gdbarch.c: Regenerated.
13359 * gdbarch.h: Likewise.
13361 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13363 * rl78-tdep.c (rl78_g10_register_name): New function.
13364 (rl78_return_value): Add g10 support.
13365 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13368 2014-02-17 Doug Evans <xdje42@gmail.com>
13370 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13371 (SUBDIR_GUILE_SRCS): Ditto.
13372 (scm-gsmob.o): Ditto.
13374 2014-02-17 Yao Qi <yao@codesourcery.com>
13376 * gnu-nat.c (ILL_RPC): Declare defined function.
13378 2014-02-17 Yao Qi <yao@codesourcery.com>
13380 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13381 mach_msg_type_number_t.
13382 (gnu_write_inferior): Likewise.
13384 2014-02-17 Yao Qi <yao@codesourcery.com>
13386 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13388 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13389 (inf_validate_procs, inf_signal): Likewise.
13390 (S_exception_raise_request): Likewise.
13391 (do_mach_notify_dead_name): Likewise.
13392 (steal_exc_port): Likewise.
13393 (gnu_read_inferior): Change 'copy_count''s type to
13394 mach_msg_type_number_t.
13395 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13398 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13400 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13401 flag. Adjust all users; in particular...
13402 (gnu_wait): ..., don't decrement its value in here...
13403 (gnu_create_inferior): ..., and instead set the flag in here,
13404 around the startup_inferior call, and call that one with
13405 START_INFERIOR_TRAPS_EXPECTED.
13407 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13408 (ILL_RPC): ... new macro.
13409 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13410 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13411 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13412 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13413 functions with ILL_RPC macro.
13414 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13415 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13416 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13417 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13418 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13419 (S_proc_getlogin_reply, S_proc_getsid_reply)
13420 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13421 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13422 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13423 (S_proc_getnports_reply, S_proc_is_important_reply)
13424 (S_proc_get_code_reply): New stub functions, generated with
13427 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13428 collected the type check structures.
13430 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13432 2014-02-14 Doug Evans <dje@google.com>
13434 * target.c (target_write_partial): Fix result type.
13436 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13438 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13439 the proper offsets to access fpregset_t.
13441 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13443 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13444 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13445 * h8300-tdep.c (setmachinelist): Remove global.
13446 * hppa-tdep.c (hppa_sigtramp): Remove global.
13447 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13448 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13449 * ravenscar-thread.c (update_target_observer): Remove global.
13450 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13452 2014-02-12 Tom Tromey <tromey@redhat.com>
13454 * common/rsp-low.c: Update comments.
13455 * common/rsp-low.h: Update comments.
13457 2014-02-12 Tom Tromey <tromey@redhat.com>
13459 * common/rsp-low.c (convert_ascii_to_int): Remove.
13460 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13462 2014-02-12 Tom Tromey <tromey@redhat.com>
13464 * common/rsp-low.h (unhexify): Don't declare.
13465 * common/rsp-low.c (unhexify): Remove.
13467 2014-02-12 Tom Tromey <tromey@redhat.com>
13469 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13470 * common/rsp-low.c (convert_int_to_ascii): Remove.
13472 2014-02-12 Tom Tromey <tromey@redhat.com>
13474 * common/rsp-low.h (hexify): Don't declare.
13475 * common/rsp-low.c (hexify): Remove.
13477 2014-02-12 Tom Tromey <tromey@redhat.com>
13479 * common/rsp-low.c (hexify): Never take strlen of argument.
13481 2014-02-12 Tom Tromey <tromey@redhat.com>
13483 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13484 * remote.c (extended_remote_run, remote_rcmd)
13485 (remote_download_trace_state_variable, remote_save_trace_data)
13486 (remote_set_trace_notes): Update.
13487 * tracepoint.c (encode_source_string, tfile_write_status)
13488 (tfile_write_uploaded_tsv): Update.
13490 2014-02-12 Tom Tromey <tromey@redhat.com>
13492 * tracepoint.c: Include rsp-low.h.
13493 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13494 * remote.c: Include rsp-low.h.
13495 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13496 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13497 (remote_unescape_input): Move to common/rsp-low.c.
13498 * common/rsp-low.h: New file.
13499 * common/rsp-low.c: New file.
13500 * Makefile.in (SFILES): Add common/rsp-low.c.
13501 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13502 (COMMON_OBS): Add rsp-low.o.
13503 (rsp-low.o): New target.
13505 2014-02-12 Tom Tromey <tromey@redhat.com>
13507 * utils.h: Include print-utils.h.
13508 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13509 (int_string, core_addr_to_string, core_addr_to_string_nz)
13510 (hex_string, hex_string_custom): Don't declare.
13511 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13512 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13513 (hex_string_custom, int_string, core_addr_to_string)
13514 (core_addr_to_string_nz, host_address_to_string): Move to
13515 common/print-utils.c.
13516 * common/print-utils.h: New file.
13517 * common/print-utils.c: New file
13518 * Makefile.in (SFILES): Add common/print-utils.c.
13519 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13520 (COMMON_OBS): Add print-utils.o.
13521 (print-utils.o): New target.
13523 2014-02-12 Tom Tromey <tromey@redhat.com>
13525 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13527 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13529 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13531 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13533 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13534 if a PT_IO ptrace request returns sucessfully but indicates that 0
13535 bytes were transferred.
13537 2014-02-12 Pedro Alves <palves@redhat.com>
13538 Kevin Buettner <kevinb@redhat.com>
13540 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13541 TYPE_INSTANCE_FLAG_CODE_SPACE.
13543 2014-02-12 Pedro Alves <palves@redhat.com>
13545 * h8300-tdep.c (pseudo_from_raw_register)
13546 (raw_from_pseudo_register): New functions.
13547 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13550 2014-02-12 Pedro Alves <palves@redhat.com>
13552 * h8300-tdep.c (h8300_register_sim_regno): New function.
13553 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13554 gdbarch_register_sim_regno hook.
13556 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13558 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13560 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13562 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13564 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13566 * obsd-tdep.h (obsd_init_abi): New prototype.
13567 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13568 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13569 (obsd_init_abi): New functions.
13570 * i386obsd-tdep.c: Include "obsd-tdep.h".
13571 (i386obsd_init_abi): Call obsd_init_abi.
13572 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13573 (amd64obsd_init_abi): Call obsd_init_abi.
13574 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13575 obsd-tdep.c to gdb_target_obs.
13577 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13579 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13580 double float arguments to 16-byte in the argument slots.
13582 2014-02-11 Doug Evans <xdje42@gmail.com>
13584 * configure.ac: Don't crash if pkg-config is not found and guile
13585 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13587 * configure: Regenerate.
13589 2014-02-11 Yao Qi <yao@codesourcery.com>
13591 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13592 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13593 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13594 * gnu-nat.c (gnu_xfer_memory): Likewise.
13595 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13596 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13597 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13598 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13600 2014-02-11 Yao Qi <yao@codesourcery.com>
13602 * target.h (enum target_xfer_error): Rename to ...
13603 (enum target_xfer_status): ... it. New. All users updated.
13604 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13606 (TARGET_XFER_STATUS_ERROR_P): New macro.
13607 (target_xfer_error_to_string): Remove declaration.
13608 (target_xfer_status_to_string): Declare.
13609 (target_xfer_partial_ftype): Adjust it.
13610 (struct target_ops) <to_xfer_partial>: Return
13611 target_xfer_status. Add argument xfered_len. Update
13613 * target.c (target_xfer_error_to_string): Rename to ...
13614 (target_xfer_status_to_string): ... it. New. All callers
13616 (target_read_live_memory): Likewise. Call target_xfer_partial
13617 instead of target_read.
13618 (memory_xfer_live_readonly_partial): Return
13619 target_xfer_status. Add argument xfered_len.
13620 (raw_memory_xfer_partial): Likewise.
13621 (memory_xfer_partial_1): Likewise.
13622 (memory_xfer_partial): Likewise.
13623 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13624 properly. Update debug message.
13625 (default_xfer_partial, current_xfer_partial): Likewise.
13626 (target_write_partial): Likewise.
13627 (target_read_partial): Likewise. All callers updated.
13628 (read_whatever_is_readable): Likewise.
13629 (target_write_with_progress): Likewise.
13630 (target_read_alloc_1): Likewise.
13632 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13633 * auxv.c (procfs_xfer_auxv): Likewise.
13634 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13635 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13636 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13637 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13638 * corefile.c (read_memory): Adjust.
13639 * corelow.c (core_xfer_partial): Likewise.
13640 * ctf.c (ctf_xfer_partial): Likewise.
13641 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13643 (darwin_xfer_partial): Likewise.
13644 * exec.c (section_table_xfer_memory_partial): Likewise. All
13646 (exec_xfer_partial): Likewise.
13647 * exec.h (section_table_xfer_memory_partial): Update
13649 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13651 (gnu_xfer_partial): Likewise.
13652 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13653 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13654 (ia64_hpux_xfer_solib_got): Likewise.
13655 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13656 type of 'partial_len' to ULONGEST.
13657 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13658 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13659 (linux_nat_xfer_partial): Likewise.
13660 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13661 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13662 * monitor.c (monitor_xfer_memory): Likewise.
13663 (monitor_xfer_partial): Likewise.
13664 * procfs.c (procfs_xfer_partial): Likewise.
13665 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13666 * record-full.c (record_full_xfer_partial): Likewise.
13667 (record_full_core_xfer_partial): Likewise.
13668 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13669 (gdbsim_xfer_partial): Likewise.
13670 * remote.c (remote_write_bytes_aux): Likewise. All callers
13672 (remote_write_bytes, remote_read_bytes): Likewise. All
13674 (remote_flash_erase): Likewise. All callers updated.
13675 (remote_write_qxfer): Likewise. All callers updated.
13676 (remote_read_qxfer): Likewise. All callers updated.
13677 (remote_xfer_partial): Likewise.
13678 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13679 (rs6000_xfer_shared_libraries): Likewise.
13680 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13681 (sol_thread_xfer_partial): Likewise.
13682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13683 (sparc_xfer_partial): Likewise.
13684 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13686 (spu_xfer_partial): Likewise.
13687 * spu-multiarch.c (spu_xfer_partial): Likewise.
13688 * tracepoint.c (tfile_xfer_partial): Likewise.
13689 * windows-nat.c (windows_xfer_memory): Likewise.
13690 (windows_xfer_shared_libraries): Likewise.
13691 (windows_xfer_partial): Likewise.
13692 * valprint.c: Replace 'target_xfer_error' with
13693 'target_xfer_status' in comments.
13695 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13697 Checked in by Joel Brobecker <brobecker@adacore.com>.
13698 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13700 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13702 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13703 function parameters.
13705 2014-02-10 Will Newton <will.newton@linaro.org>
13707 * elfread.c (elf_rel_plt_read): Look for a .got section if
13708 looking up .got.plt fails.
13709 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13710 on address passed to elf_gnu_ifunc_record_cache.
13711 (elf_gnu_ifunc_resolve_addr): Likewise.
13712 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13714 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13716 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13717 (X_RETTURN): New macro.
13718 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13720 * sparc64-tdep.c (sparc64_init_abi): Hook
13721 sparc_in_function_epilogue_p.
13723 2014-02-10 Gary Benson <gbenson@redhat.com>
13725 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13726 Rename name_matcher to symbol_matcher.
13728 2014-02-10 Gary Benson <gbenson@redhat.com>
13730 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13731 Use expand_symtabs_file_matcher_ftype and
13732 expand_symtabs_symbol_matcher_ftype.
13734 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13736 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13737 (struct ada_symbol_cache): New.
13738 (ada_free_symbol_cache): Forward declare.
13739 (struct ada_pspace_data): New.
13740 (ada_pspace_data_handle): New static global.
13741 (get_ada_pspace_data, ada_pspace_data_cleanup)
13742 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13743 (cache_space, cache): Delete, now folded inside struct
13745 (ada_get_symbol_cache): New function.
13746 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13748 (_initialize_ada_language): Remove initialization of cache_space.
13749 Move call to observer_attach_inferior_exit up, grouping it
13750 with the other observer registrations inside this function.
13751 Rename command to be more general. Add call to
13752 register_program_space_data_with_cleanup.
13754 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13756 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13757 ada_new_objfile_observer.
13758 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13759 (_initialize_tasks): Update uses of ada_new_objfile_observer
13760 and ada_tasks_normal_stop_observer.
13762 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13764 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13765 returned by the 'Length attribute to integer.
13767 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13769 * ada-lang.c (_initialize_ada_language): Initialize
13770 cache_space obstack.
13772 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13774 * ada-lang.c (HASH_SIZE): New macro.
13775 (struct cache_entry): New type.
13776 (cache_space, cache): New static globals.
13777 (ada_clear_symbol_cache, find_entry): New functions.
13778 (lookup_cached_symbol, cache_symbol): Implement.
13779 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13780 (_initialize_ada_language): Attach ada_new_objfile_observer
13781 and ada_free_objfile_observer.
13783 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13785 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13786 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13787 struct block * parameter.
13788 (ada_lookup_symbol_list_worker): Constify local variable "block".
13789 Remove cast which is no longer necessary.
13791 2014-02-10 Doug Evans <xdje42@gmail.com>
13793 Add Guile as an extension language.
13794 * NEWS: Mention Guile scripting.
13795 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13796 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13797 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13798 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13799 (CLIBS): Add GUILE_LIBS.
13800 (install-guile): New rule.
13801 (guile.o): New rule.
13802 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13803 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13804 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13805 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13806 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13807 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13808 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13809 * configure.ac: New option --with-guile.
13810 * configure: Regenerate.
13811 * config.in: Regenerate.
13812 * auto-load.c: Remove #include "python/python.h". Add #include
13813 "gdb/section-scripts.h".
13814 (source_section_scripts): Handle Guile scripts.
13815 (_initialize_auto_load): Add name of Guile objfile script to
13816 scripts-directory help text.
13817 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13818 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13819 (struct breakpoint): New member scm_bp_object.
13820 * defs.h (enum command_control_type): New value guile_control.
13821 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13823 (show_user): Update comment.
13824 (_initialize_cli_cmds): Update help text for "show user". Update help
13825 text for max-user-call-depth.
13826 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13828 (multi_line_command_p): Add guile_control.
13829 (print_command_lines): Handle guile_control.
13830 (execute_control_command, recurse_read_control_structure): Ditto.
13831 (process_next_line): Recognize "guile" commands.
13832 * disasm.c (gdb_disassemble_info): Make non-static.
13833 * disasm.h: #include "dis-asm.h".
13834 (struct gdbarch): Add forward decl.
13835 (gdb_disassemble_info): Declare.
13836 * extension.c: #include "guile/guile.h".
13837 (extension_languages): Add guile.
13838 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13839 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13840 * gdbtypes.c (get_unsigned_type_max): New function.
13841 (get_signed_type_minmax): New function.
13842 * gdbtypes.h (get_unsigned_type_max): Declare.
13843 (get_signed_type_minmax): Declare.
13844 * guile/README: New file.
13845 * guile/guile-internal.h: New file.
13846 * guile/guile.c: New file.
13847 * guile/guile.h: New file.
13848 * guile/scm-arch.c: New file.
13849 * guile/scm-auto-load.c: New file.
13850 * guile/scm-block.c: New file.
13851 * guile/scm-breakpoint.c: New file.
13852 * guile/scm-disasm.c: New file.
13853 * guile/scm-exception.c: New file.
13854 * guile/scm-frame.c: New file.
13855 * guile/scm-gsmob.c: New file.
13856 * guile/scm-iterator.c: New file.
13857 * guile/scm-lazy-string.c: New file.
13858 * guile/scm-math.c: New file.
13859 * guile/scm-objfile.c: New file.
13860 * guile/scm-ports.c: New file.
13861 * guile/scm-pretty-print.c: New file.
13862 * guile/scm-safe-call.c: New file.
13863 * guile/scm-string.c: New file.
13864 * guile/scm-symbol.c: New file.
13865 * guile/scm-symtab.c: New file.
13866 * guile/scm-type.c: New file.
13867 * guile/scm-utils.c: New file.
13868 * guile/scm-value.c: New file.
13869 * guile/lib/gdb.scm: New file.
13870 * guile/lib/gdb/boot.scm: New file.
13871 * guile/lib/gdb/experimental.scm: New file.
13872 * guile/lib/gdb/init.scm: New file.
13873 * guile/lib/gdb/iterator.scm: New file.
13874 * guile/lib/gdb/printing.scm: New file.
13875 * guile/lib/gdb/types.scm: New file.
13876 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13877 (VPATH): Add $(GUILE_SRCDIR).
13878 (GUILE_DIR): New variable.
13879 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13880 (all): Add stamp-guile dependency.
13881 (stamp-guile): New rule.
13882 (clean-guile, install-guile, uninstall-guile): New rules.
13883 (install-only): Add install-guile dependency.
13884 (uninstall): Add uninstall-guile dependency.
13885 (clean): Add clean-guile dependency.
13887 2014-02-09 Doug Evans <xdje42@gmail.com>
13889 Revert this patch (which I approved, mea culpa).
13891 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13893 * Makefile.in (all-lib): Remove.
13894 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13896 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13898 Fix Python stack corruption.
13899 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13902 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13904 * Makefile.in (all-lib): Remove.
13905 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13907 2014-02-07 Doug Evans <dje@google.com>
13909 * extension-priv.h (extension_language_script_ops): Add comment.
13910 (extension_language_ops): Add comment.
13911 (active_ext_lang_state): Fix typo in comment.
13913 2014-02-07 Pedro Alves <palves@redhat.com>
13915 PR breakpoints/16292
13916 * infrun.c (handle_signal_stop) <signal arrives while stepping
13917 over a breakpoint>: Switch back to the stepping thread.
13919 2014-02-07 Yao Qi <yao@codesourcery.com>
13921 * target.c (target_xfer_partial): Return zero if LEN is zero.
13923 2014-02-07 Yao Qi <yao@codesourcery.com>
13925 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13926 (ld_so_xfer_auxv): Likewise.
13927 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13928 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13929 * corelow.c (core_xfer_partial): Likewise.
13930 * ctf.c (ctf_xfer_partial): Likewise.
13931 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13932 (darwin_xfer_partial): Likewise.
13933 * exec.c (exec_xfer_partial): Likewise.
13934 * gnu-nat.c (gnu_xfer_partial): Likewise.
13935 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13936 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13937 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13938 * linux-nat.c (linux_xfer_siginfo): Likewise.
13939 (linux_proc_xfer_spu): Likewise.
13940 * procfs.c (procfs_xfer_partial): Likewise.
13941 * record-full.c (record_full_xfer_partial): Likewise.
13942 (record_full_core_xfer_partial): Likewise.
13943 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13944 * remote.c (remote_write_qxfer): Likewise.
13945 (remote_write_qxfer, remote_read_qxfer): Likewise.
13946 (remote_xfer_partial): Likewise.
13947 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13948 (rs6000_xfer_shared_libraries): Likewise.
13949 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13950 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13951 (spu_xfer_partial): Likewise.
13952 * target.c (memory_xfer_partial_1): Likewise.
13953 * tracepoint.c (tfile_xfer_partial): Likewise.
13954 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13955 (windows_xfer_partial): Likewise.
13957 2014-02-07 Yao Qi <yao@codesourcery.com>
13959 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13961 (core_xfer_shared_libraries_aix): Likewise.
13962 * gdbarch.c, gdbarch.h: Regenerated.
13963 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13964 ULONGEST. Change 'len_avail' type to ULONGEST.
13965 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13966 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13968 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13970 2014-02-07 Yao Qi <yao@codesourcery.com>
13972 * corefile.c (memory_error): Get 'exception' from ERR and pass
13973 'exception' to throw_error.
13975 2014-02-06 Doug Evans <xdje42@gmail.com>
13977 * configure.ac (libpython checking): Remove all but python.o from
13978 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13979 * configure: Regenerate.
13981 * Makefile.in (SFILES): Add extension.c.
13982 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13983 (COMMON_OBS): Add extension.o.
13984 * extension.h: New file.
13985 * extension-priv.h: New file.
13986 * extension.c: New file.
13988 * python/python-internal.h: #include "extension.h".
13989 (gdbpy_auto_load_enabled): Declare.
13990 (gdbpy_apply_val_pretty_printer): Declare.
13991 (gdbpy_apply_frame_filter): Declare.
13992 (gdbpy_preserve_values): Declare.
13993 (gdbpy_breakpoint_cond_says_stop): Declare.
13994 (gdbpy_breakpoint_has_cond): Declare.
13995 (void source_python_script_for_objfile): Delete.
13996 * python/python.c: #include "extension-priv.h".
13997 Delete inclusion of "observer.h".
13998 (extension_language_python): Moved here and renamed from
13999 script_language_python in py-auto-load.c.
14000 Redefined to be of type extension_language_defn.
14001 (python_extension_script_ops): New global.
14002 (python_extension_ops): New global.
14003 (struct python_env): New member previous_active.
14004 (restore_python_env): Call restore_active_ext_lang.
14005 (ensure_python_env): Call set_active_ext_lang.
14006 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14008 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14010 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14012 (gdbpy_eval_from_control_command): Renamed from
14013 eval_python_from_control_command, made static. New arg extlang.
14014 (gdbpy_source_script) Renamed from source_python_script, made static.
14016 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14017 result to int. New arg extlang.
14018 (gdbpy_source_objfile_script): Renamed from
14019 source_python_script_for_objfile, made static. New arg extlang.
14020 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14021 static. New args extlang, extlang_printers. Change result type to
14023 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14024 static. New arg extlang. Rename arg printers to extlang_printers
14025 and change type to ext_lang_type_printers *.
14026 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14027 static. Replace argument arg with extlang, extlang_printers.
14028 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14029 (!HAVE_PYTHON, source_python_script): Delete.
14030 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14031 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14032 (!HAVE_PYTHON, start_type_printers): Delete.
14033 (!HAVE_PYTHON, apply_type_printers): Delete.
14034 (!HAVE_PYTHON, free_type_printers): Delete.
14035 (_initialize_python): Delete call to observer_attach_before_prompt.
14036 (finalize_python): Set/restore active extension language.
14037 (gdbpy_finish_initialization) Renamed from
14038 finish_python_initialization, made static. New arg extlang.
14039 (gdbpy_initialized): New function.
14040 * python/python.h: #include "extension.h". Delete #include
14041 "value.h", "mi/mi-cmds.h".
14042 (extension_language_python): Declare.
14043 (GDBPY_AUTO_FILE_NAME): Delete.
14044 (enum py_bt_status): Moved to extension.h and renamed to
14045 ext_lang_bt_status.
14046 (enum frame_filter_flags): Moved to extension.h.
14047 (enum py_frame_args): Moved to extension.h and renamed to
14048 ext_lang_frame_args.
14049 (finish_python_initialization): Delete.
14050 (eval_python_from_control_command): Delete.
14051 (source_python_script): Delete.
14052 (apply_val_pretty_printer): Delete.
14053 (apply_frame_filter): Delete.
14054 (preserve_python_values): Delete.
14055 (gdbpy_script_language_defn): Delete.
14056 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14057 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14059 * auto-load.c: #include "extension.h".
14060 (GDB_AUTO_FILE_NAME): Delete.
14061 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14062 (script_language_gdb): Delete, moved to extension.c and renamed to
14063 extension_language_gdb.
14064 (source_gdb_script_for_objfile): Delete.
14065 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14066 (loaded_script): Change type of language member to
14067 struct extension_language_defn *.
14068 (init_loaded_scripts_info): Initialize
14069 unsupported_script_warning_printed.
14070 (maybe_add_script): Make static. Change type of language arg to
14071 struct extension_language_defn *.
14072 (clear_section_scripts): Reset unsupported_script_warning_printed.
14073 (auto_load_objfile_script_1): Rewrite to use extension language API.
14074 (auto_load_objfile_script): Make public. Remove support-compiled-in
14075 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14076 (source_section_scripts): Rewrite to use extension language API.
14077 (load_auto_scripts_for_objfile): Rewrite to use
14078 auto_load_scripts_for_objfile.
14079 (collect_matching_scripts_data): Change type of language member to
14080 struct extension_language_defn *.
14081 (auto_load_info_scripts): Change type of language arg to
14082 struct extension_language_defn *.
14083 (unsupported_script_warning_print): New function.
14084 (script_not_found_warning_print): Make static.
14085 (_initialize_auto_load): Rewrite construction of scripts-directory
14087 * auto-load.h (struct objfile): Add forward decl.
14088 (struct script_language): Delete.
14089 (struct auto_load_pspace_info): Add forward decl.
14090 (struct extension_language_defn): Add forward decl.
14091 (maybe_add_script): Delete.
14092 (auto_load_objfile_script): Declare.
14093 (script_not_found_warning_print): Delete.
14094 (auto_load_info_scripts): Update prototype.
14095 (auto_load_gdb_scripts_enabled): Declare.
14096 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14097 auto_load_python_scripts_enabled and made public.
14098 (script_language_python): Delete, moved to python.c.
14099 (gdbpy_script_language_defn): Delete.
14100 (info_auto_load_python_scripts): Update to use
14101 extension_language_python.
14103 * breakpoint.c (condition_command): Replace call to
14104 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14105 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14106 with call to breakpoint_ext_lang_cond_says_stop.
14107 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14108 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14109 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14110 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14112 (local_setattro): Print name of extension language with existing
14115 * valprint.c (val_print, value_print): Update to call
14116 apply_ext_lang_val_pretty_printer.
14117 * cp-valprint.c (cp_print_value): Update call to
14118 apply_ext_lang_val_pretty_printer.
14119 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14120 (gdbpy_apply_val_pretty_printer): Renamed from
14121 apply_val_pretty_printer. New arg extlang.
14122 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14124 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14125 extension language API.
14126 * cli/cli-script.c (execute_control_command): Update to call
14127 eval_ext_lang_from_control_command.
14129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14130 enum ext_lang_bt_status values. Update call to
14131 apply_ext_lang_frame_filter.
14132 (mi_cmd_stack_list_locals): Ditto.
14133 (mi_cmd_stack_list_args): Ditto.
14134 (mi_cmd_stack_list_variables): Ditto.
14135 * mi/mi-main.c: Delete #include "python/python-internal.h".
14136 Add #include "extension.h".
14137 (mi_cmd_list_features): Replace reference to python internal variable
14138 gdb_python_initialized with call to ext_lang_initialized_p.
14140 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14141 Update to use enum ext_lang_frame_args. Update to call
14142 apply_ext_lang_frame_filter.
14143 * python/py-framefilter.c (extract_sym): Update to use enum
14144 ext_lang_bt_status.
14145 (extract_value, py_print_type, py_print_value): Ditto.
14146 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14147 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14148 (py_print_frame): Ditto.
14149 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14150 New arg extlang. Update to use enum ext_lang_bt_status.
14152 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14153 finish_python_initialization. Replace with call to
14154 finish_ext_lang_initialization.
14156 * typeprint.c (do_free_global_table): Update to call
14157 free_ext_lang_type_printers.
14158 (create_global_typedef_table): Update to call
14159 start_ext_lang_type_printers.
14160 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14161 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14162 (type_print_options): Change type of global_printers from "void *"
14163 to "struct ext_lang_type_printers *".
14165 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14166 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14167 (gdbpy_preserve_values): Renamed from preserve_python_values.
14169 (!HAVE_PYTHON, preserve_python_values): Delete.
14171 * utils.c (quit_flag): Delete, moved to extension.c.
14172 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14175 * eval.c: Delete #include "python/python.h".
14176 * main.c: Delete #include "python/python.h".
14178 * defs.h: Update comment.
14180 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14184 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14186 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14189 2014-02-05 Yao Qi <yao@codesourcery.com>
14191 * remote.c (remote_pass_signals): Remove local 'buf' and use
14193 (remote_program_signals): Likewise.
14195 2014-02-05 Yao Qi <yao@codesourcery.com>
14197 * ctf.c: Include "inferior.h" and "gdbthread.h".
14198 (CTF_PID): A new macro.
14199 (ctf_open): Call inferior_appeared and add_thread_silent.
14200 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14201 (ctf_thread_alive): New function.
14202 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14204 2014-02-05 Yao Qi <yao@codesourcery.com>
14208 2013-05-24 Yao Qi <yao@codesourcery.com>
14210 * tracepoint.c (TFILE_PID): Remove.
14211 (tfile_open): Don't add thread and inferior.
14212 (tfile_close): Don't set 'inferior_ptid'. Don't call
14213 exit_inferior_silent.
14214 (tfile_thread_alive): Remove.
14215 (init_tfile_ops): Don't set field 'to_thread_alive' of
14218 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14220 * remote.c (remote_start_remote): Call remote_check_symbols even
14221 if only symbol-file (not file) has been given.
14223 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14225 * gdbarch.sh (skip_entrypoint): New callback.
14226 * gdbarch.c, gdbarch.h: Regenerate.
14227 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14228 * infrun.c (fill_in_stop_func): Likewise.
14229 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14230 (ppc_elfv2_elf_make_msymbol_special): New function.
14231 (ppc_elfv2_skip_entrypoint): Likewise.
14232 (ppc_linux_init_abi): Install them for ELFv2.
14234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14236 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14237 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14238 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14239 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14240 structures returned in GPRs.
14242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14245 offset to the stack parameter list for the ELFv2 ABI.
14247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14249 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14250 set_gdbarch_convert_from_func_ptr_addr and
14251 set_gdbarch_elf_make_msymbol_special for ELFv1.
14252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14253 function descriptors on ELFv1.
14254 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14255 set up r12 at function entry.
14257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14259 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14260 (struct gdbarch_tdep): New member elf_abi.
14262 * rs6000-tdep.c: Include "elf/ppc64.h".
14263 (rs6000_gdbarch_init): Detect ELF ABI version.
14265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14267 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14268 within a register pair holding a DFP 128-bit value on little-endian.
14269 (ppc64_sysv_abi_return_value_base): Likewise.
14270 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14271 (dfp_pseudo_register_write): Likewise.
14273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14276 offset on little-endian when passing _Decimal32.
14277 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14281 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14282 of the overlapped FP register within the VSX register on little-
14284 (efpr_pseudo_register_write): Likewise.
14286 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14288 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14289 offset on little-endian when passing small structures.
14291 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14293 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14294 (struct ppc64_sysv_argpos): New data structure.
14295 (ppc64_sysv_abi_push_float): Remove.
14296 (ppc64_sysv_abi_push_val): New function.
14297 (ppc64_sysv_abi_push_integer): Likewise.
14298 (ppc64_sysv_abi_push_freg): Likewise.
14299 (ppc64_sysv_abi_push_vreg): Likewise.
14300 (ppc64_sysv_abi_push_param): Likewise.
14301 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14302 (ppc64_sysv_abi_return_value_base): New function.
14303 (ppc64_sysv_abi_return_value): Refactor to use it.
14305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14307 * NEWS: Document new target powerpc64le-*-linux*.
14309 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14311 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14312 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14314 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14315 register set used in ELF core dumps. Add floating-point register set.
14317 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14319 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14320 dwarf2_to_gdb[] table using symbolic constants. Adjust
14321 penultimate entry from number representing the PC register
14322 to symbolic constant representing the MDR register. Add
14323 constant for the PC register to the end of the table.
14325 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14327 * bsd-kvm.c: Include <sys/param.h>
14329 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14331 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14333 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14335 * ada-lang.h (clear_ada_sym_cache): Delete.
14337 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14339 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14341 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14343 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14344 the sigreturn register save area only if the syscall is
14347 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14349 * valops.c (value_slice): Minor reformatting.
14351 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14353 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14355 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14357 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14358 New static globals.
14359 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14360 (ada_ignore_descriptive_types_p): New static global.
14361 (find_parallel_type_by_descriptive_type): Return immediately
14362 if ada_ignore_descriptive_types_p is set.
14363 (_initialize_ada_language): Register new commands "maintenance
14364 set ada", "maintenance show ada", "maintenance set ada
14365 ignore-descriptive-types" and "maintenance show ada
14366 ignore-descriptive-types".
14367 * NEWS: Add entry for new "maint ada set/show
14368 ignore-descriptive-types" commands.
14370 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14372 * record-btrace.c (record_btrace_close): Call btrace_teardown
14375 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14377 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14380 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14382 * ada-typeprint (type_is_full_subrange_of_target_type):
14384 (print_range): Add parameter bounds_prefered_p. If not set,
14385 try printing range types using the name of their base type.
14386 (print_range_type): Add parameter bounds_prefered_p.
14387 Use it in call to print_range.
14388 (print_array_type, ada_print_type): Update calls to print_range
14389 and print_range_type.
14391 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14393 * ada-typeprint.c (print_array_type, print_choices, print_range)
14394 (print_range_bound, print_dynamic_range_bound, print_range_type):
14395 Remove declaration.
14397 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14399 * ada-typeprint.c (print_range): Add missing empty line
14400 after local declaration.
14402 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14404 * ada-valprint.c (print_optional_low_bound): Get index_type's
14405 target type for as long as it is a TYPE_CODE_RANGE.
14407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14409 * procfs.c (procfs_make_note_section): Remove assertion and
14410 associated comment.
14412 2014-01-24 Yao Qi <yao@codesourcery.com>
14414 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14415 * corelow.c (get_core_siginfo): Likewise.
14417 2014-01-24 Yao Qi <yao@codesourcery.com>
14419 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14420 ULONGEST. Don't check 'len' is negative.
14421 (remote_write_bytes): Change type of 'len' to ULONGEST.
14423 2014-01-23 Tom Tromey <tromey@redhat.com>
14426 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14427 Handle exception from frame.block.
14428 (FrameVars.fetch_frame_locals): Likewise.
14430 2014-01-23 Tom Tromey <tromey@redhat.com>
14433 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14434 on a NULL pointer. Move "goto error" to correct place.
14436 2014-01-23 Tom Tromey <tromey@redhat.com>
14439 * python/py-framefilter.c (apply_frame_filter): Call
14440 ensure_python_env after computing gdbarch.
14442 2014-01-23 Yao Qi <yao@codesourcery.com>
14444 * target.c (raw_memory_xfer_partial): Change argument type
14445 from void * to gdb_byte *.
14446 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14448 2014-01-22 Doug Evans <dje@google.com>
14450 New gdbserver option --debug-format=timestamp.
14451 * NEWS: Mention it.
14453 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14455 * syscalls/s390x-linux.xml: New file.
14456 * syscalls/s390-linux.xml: New file.
14457 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14458 (XML_SYSCALL_FILENAME_S390X): Likewise.
14459 (op_svc): New enum value for SVC opcode.
14460 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14461 (s390_linux_get_syscall_number): New function.
14462 (s390_gdbarch_init): Register '*get_syscall_number' and the
14463 syscall xml file name.
14464 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14465 "s390-linux.xml" and "s390x-linux.xml".
14466 * NEWS: Announce new feature.
14468 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14470 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14472 2014-01-22 Pedro Alves <palves@redhat.com>
14474 * xtensa-config.c: Include defs.h.
14476 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14478 * common/common-utils.h: Add "ARI:" comment beside __func__
14481 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14483 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14484 documentation a bit.
14486 2014-01-21 Roland McGrath <mcgrathr@google.com>
14488 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14489 * configure: Regenerate.
14490 * aclocal.m4: Regenerate.
14491 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14492 New substituted variables.
14493 (install-strip): New target.
14494 (INSTALL_SCRIPT): New substituted variable.
14495 (FLAGS_TO_PASS): Add it.
14496 (install-only): Use $(INSTALL_SCRIPT) rather than
14497 $(INSTALL_PROGRAM) for gcore.
14499 2014-01-20 Tom Tromey <tromey@redhat.com>
14501 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14504 2014-01-20 Tom Tromey <tromey@redhat.com>
14506 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14507 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14508 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14509 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14510 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14511 (struct cmd_list_element) <flags>: Remove.
14512 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14513 doc_allocated>: New fields.
14514 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14516 * maint.c (maintenance_do_deprecate): Update.
14517 * top.c (execute_command): Update.
14519 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14521 * xtensa-linux-nat.c: Include asm/ptrace.h.
14523 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14525 * Makefile.in (SFILES): Add d-support.c.
14526 (COMMON_OBS): Add d-support.o.
14527 * d-lang.h (d_parse_symbol): Add comment, now defined in
14529 * d-lang.c (parse_call_convention)
14530 (parse_attributes, parse_function_types)
14531 (parse_function_args, parse_type, parse_identifier)
14532 (call_convention_p, d_parse_symbol): Move functions to ...
14533 * d-support.c: ... New file.
14535 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14537 * d-lang.h (d_parse_symbol): Add declaration.
14538 * d-lang.c (extract_identifiers)
14539 (extract_type_info): Remove functions.
14540 (parse_call_convention, parse_attributes)
14541 (parse_function_types, parse_function_args)
14542 (parse_type, parse_identifier, call_convention_p)
14543 (d_parse_symbol): New functions.
14544 (d_demangle): Use d_parse_symbol to demangle D symbols.
14546 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14548 * d-lang.h (struct builtin_d_type): New data type.
14549 (builtin_d_type): Add declaration.
14550 * d-lang.c (d_language_arch_info, build_d_types)
14551 (builtin_d_type): New functions.
14552 (enum d_primitive_types): New data type.
14553 (d_language_defn): Change c_language_arch_info to
14554 d_language_arch_info.
14555 (d_type_data): New static variable.
14556 (_initialize_d_language): Initialize d_type_data.
14558 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14560 * d-lang.h (d_main_name): Add declaration.
14561 * d-lang.c (d_main_name): New function.
14562 * symtab.c (find_main_name): Add call to d_main_name.
14564 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14566 * d-lang.c (d_language_defn): Change macro_expansion_c to
14567 macro_expansion_no.
14569 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14571 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14573 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14575 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14576 gdb_exception" declaration.
14577 * remote.c (getpkt_or_notif_sane): Likewise.
14579 2014-01-17 Doug Evans <dje@google.com>
14581 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14582 function, contents of dirnames_to_char_ptr_vec_append moved here.
14583 (delim_string_to_char_ptr_vec): New function.
14584 (dirnames_to_char_ptr_vec_append): Rewrite.
14585 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14587 2014-01-17 Doug Evans <dje@google.com>
14589 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14591 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14592 #include "common-utils.h".
14593 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14594 * common/vec.h (VEC_ASSERT_PASS): Update.
14595 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14596 (MACH_CHECK_ERROR): Update.
14598 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14600 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14602 * gdbarch.h: Regenerate.
14604 2014-01-16 Tom Tromey <tromey@redhat.com>
14606 * value.c (struct value) <regnum>: Move earlier.
14608 2014-01-16 Tom Tromey <tromey@redhat.com>
14610 * remote.c (extended_remote_create_inferior): Rename from
14611 extended_remote_create_inferior_1. Add "ops" argument. Remove
14612 old implementation.
14614 2014-01-16 Pedro Alves <palves@redhat.com>
14616 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14617 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14620 2014-01-16 Doug Evans <dje@google.com>
14622 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14626 * btrace.h (btrace_thread_flag): New.
14627 (struct btrace_thread_info) <flags>: New.
14628 * record-btrace.c (record_btrace_resume_thread)
14629 (record_btrace_find_thread_to_move, btrace_step_no_history)
14630 (btrace_step_stopped, record_btrace_start_replaying)
14631 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14632 (record_btrace_find_resume_thread): New.
14633 (record_btrace_resume, record_btrace_wait): Extend.
14634 (record_btrace_can_execute_reverse): New.
14635 (record_btrace_open): Fail in non-stop mode.
14636 (record_btrace_set_replay): Split into this, ...
14637 (record_btrace_stop_replaying): ... this, ...
14638 (record_btrace_clear_histories): ... and this.
14639 (init_record_btrace_ops): Init to_can_execute_reverse.
14640 * NEWS: Announce it.
14642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14644 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14645 (forward_target_decr_pc_after_break)
14646 (target_decr_pc_after_break): New.
14647 * target.c (forward_target_decr_pc_after_break)
14648 (target_decr_pc_after_break): New.
14649 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14650 instead of gdbarch_decr_pc_after_break.
14651 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14652 instead of gdbarch_decr_pc_after_break.
14653 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14654 instead of gdbarch_decr_pc_after_break.
14655 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14656 instead of gdbarch_decr_pc_after_break.
14657 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14658 instead of gdbarch_decr_pc_after_break.
14659 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14660 instead of gdbarch_decr_pc_after_break.
14662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14664 * btrace.c: Include regcache.h.
14665 (btrace_add_pc): New.
14666 (btrace_enable): Call btrace_add_pc.
14667 (btrace_is_empty): New.
14668 * btrace.h (btrace_is_empty): New.
14669 * record-btrace.c (require_btrace, record_btrace_info): Call
14672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14674 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14675 Support delta reads.
14676 (linux_disable_btrace): Change return type.
14677 * common/linux-btrace.h (linux_read_btrace): Change parameters
14678 and return type to allow error reporting. Update users.
14679 (linux_disable_btrace): Change return type. Update users.
14680 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14682 (btrace_error): New.
14683 (btrace_block) <begin>: Comment on BEGIN == 0.
14684 * btrace.c (btrace_compute_ftrace): Start from the end of
14686 (btrace_stitch_trace, btrace_clear_history): New.
14687 (btrace_fetch): Read delta trace, return if replaying.
14688 (btrace_clear): Move clear history code to btrace_clear_history.
14689 (parse_xml_btrace): Throw an error if parsing failed.
14690 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14691 and return type to allow error reporting.
14692 (target_read_btrace): Change parameters and return type to allow
14694 * target.c (target_read_btrace): Update.
14695 * remote.c (remote_read_btrace): Support delta reads. Pass
14697 * NEWS: Announce it.
14699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14701 * record.h (record_btrace_frame_unwind)
14702 (record_btrace_tailcall_frame_unwind): New declarations.
14703 * dwarf2-frame: Include record.h
14704 (dwarf2_frame_cfa): Throw an error for btrace frames.
14705 * record-btrace.c: Include hashtab.h.
14706 (btrace_get_bfun_name): New.
14707 (btrace_call_history): Call btrace_get_bfun_name.
14708 (struct btrace_frame_cache): New.
14710 (bfcache_hash, bfcache_eq, bfcache_new): New.
14711 (btrace_get_frame_function): New.
14712 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14713 (record_btrace_frame_this_id): Compute own id.
14714 (record_btrace_frame_prev_register): Provide PC, throw_error
14715 for all other registers.
14716 (record_btrace_frame_sniffer): Detect btrace frames.
14717 (record_btrace_tailcall_frame_sniffer): New.
14718 (record_btrace_frame_dealloc_cache): New.
14719 (record_btrace_frame_unwind): Add new functions.
14720 (record_btrace_tailcall_frame_unwind): New.
14721 (_initialize_record_btrace): Allocate cache.
14722 * btrace.c (btrace_clear): Call reinit_frame_cache.
14723 * NEWS: Announce it.
14725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14727 * record-btrace.c (record_btrace_set_replay)
14728 (record_btrace_goto_begin, record_btrace_goto_end)
14729 (record_btrace_goto): New.
14730 (init_record_btrace_ops): Initialize them.
14731 * NEWS: Announce it.
14733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14735 * record-btrace.c (record_btrace_find_new_threads)
14736 (record_btrace_thread_alive): New.
14737 (init_record_btrace_ops): Initialize to_find_new_threads and
14740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14742 * record-btrace.c (record_btrace_resume): New.
14743 (record_btrace_wait): New.
14744 (init_record_btrace_ops): Initialize to_wait and to_resume.
14746 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14748 * record-btrace.c (record_btrace_xfer_partial)
14749 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14750 (record_btrace_allow_memory_access): New.
14751 (init_record_btrace_ops): Initialize new methods.
14752 * target.c (raw_memory_xfer_partial): Bail out if target reports
14753 that this memory is not available.
14755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14757 * target.h (target_ops) <to_insert_breakpoint>
14758 <to_remove_breakpoint>: Add target_ops parameter.
14759 (forward_target_insert_breakpoint): New.
14760 (forward_target_remove_breakpoint): New.
14761 (memory_remove_breakpoint, memory_insert_breakpoint):
14762 Add target_ops parameter.
14763 * target.c (target_insert_breakpoint): Split into this and ...
14764 (forward_target_insert_breakpoint): ... this.
14765 (target_remove_breakpoint): Split into this and ...
14766 (forward_target_remove_breakpoint): ... this.
14767 (debug_to_insert_breakpoint): Add target_ops parameter.
14768 Call forward_target_insert_breakpoint.
14769 (debug_to_remove_breakpoint): Add target_ops parameter.
14770 Call forward_target_remove_breakpoint.
14771 (update_current_target): Do not inherit or default to_insert_breakpoint
14772 and to_remove_breakpoint.
14773 * corelow.c (ignore): Add target_ops parameter.
14774 * exec.c (ignore): Add target_ops parameter.
14775 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14776 Add target_ops parameter.
14777 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14778 Add target_ops parameter.
14779 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14780 Add target_ops parameter.
14781 * record-full.c (record_full_beneath_to_insert_breakpoint)
14782 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14783 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14784 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14785 (record_full_core_remove_breakpoint): Add target_ops parameter.
14787 (record_full_beneath_to_insert_breakpoint_ops)
14788 (record_full_beneath_to_remove_breakpoint_ops)
14789 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14790 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14791 tmp_to_remove_breakpoint_ops,
14792 record_full_beneath_to_insert_breakpoint_ops, and
14793 record_full_beneath_to_remove_breakpoint_ops.
14794 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14795 (m32r_remove_breakpoint): Add target_ops parameter.
14796 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14797 Add target_ops parameter.
14798 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14799 Add target_ops parameter.
14801 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14802 Markus Metzger <markus.t.metzger@intel.com>
14804 * record-btrace.c: Include frame-unwind.h.
14805 (record_btrace_frame_unwind_stop_reason)
14806 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14807 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14809 (init_record_btrace_ops): Install it.
14811 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14813 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14816 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14818 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14821 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14823 * frame-unwind.c: Include target.h.
14824 (frame_unwind_try_unwinder): New function with code from ...
14825 (frame_unwind_find_by_frame): ... here. New variable
14826 unwinder_from_target, call also target_get_unwinder)
14827 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14828 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14829 * target.h (struct target_ops): New fields to_get_unwinder and
14830 to_get_tailcall_unwinder.
14831 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14835 * record-btrace.c (record_btrace_fetch_registers)
14836 (record_btrace_store_registers)
14837 (record_btrace_to_prepare_to_store): New.
14838 (init_record_btrace_ops): Add the above.
14840 2014-01-16 Tom Tromey <tromey@redhat.com>
14842 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14843 * target.h (struct target_ops) <to_prepare_to_store>: Add
14845 (target_prepare_to_store): Add argument.
14846 * target.c (debug_to_prepare_to_store): Add argument.
14847 (update_current_target): Update.
14848 * remote.c (remote_prepare_to_store): Add 'self' argument.
14849 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14850 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14851 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14852 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14854 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14855 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14856 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14857 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14858 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14862 * btrace.h (replay) <replay>: New.
14863 (btrace_is_replaying): New.
14864 * btrace.c (btrace_clear): Free replay iterator.
14865 (btrace_is_replaying): New.
14866 * record-btrace.c (record_btrace_is_replaying): New.
14867 (record_btrace_info): Print insn number if replaying.
14868 (record_btrace_insn_history): Start at replay position.
14869 (record_btrace_call_history): Start at replay position.
14870 (init_record_btrace_ops): Init to_record_is_replaying.
14872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14874 * record-btrace.c (record_btrace_insn_history_range): Include
14876 (record_btrace_insn_history_from): Adjust range.
14877 (record_btrace_call_history_range): Include
14879 (record_btrace_call_history_from): Adjust range.
14880 * NEWS: Announce changes.
14882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14884 * record.h (enum record_print_flag)
14885 <record_print_indent_calls>: New.
14886 * record.c (get_call_history_modifiers): Recognize /c modifier.
14887 (_initialize_record): Document /c modifier.
14888 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14889 Reorder fields. Optionally indent the function name. Update
14891 * NEWS: Announce changes.
14893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14895 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14899 * btrace.c (ftrace_new_function): Start counting at one.
14900 * record-btrace.c (record_btrace_info): Adjust number of calls
14902 * NEWS: Announce it.
14904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14906 * record-btrace.c (btrace_call_history_insn_range): Print
14907 insn range as [begin, end].
14909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14911 * btrace.h (struct btrace_func_link): New.
14912 (enum btrace_function_flag): New.
14913 (struct btrace_inst): Rename to ...
14914 (struct btrace_insn): ...this. Update all users.
14915 (struct btrace_func) <ibegin, iend>: Remove.
14916 (struct btrace_func_link): New.
14917 (struct btrace_func): Rename to ...
14918 (struct btrace_function): ...this. Update all users.
14919 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14920 (number, level, flags>: New.
14921 (struct btrace_insn_iterator): Rename to ...
14922 (struct btrace_insn_history): ...this.
14924 (struct btrace_insn_iterator, btrace_call_iterator): New.
14925 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14926 (struct btrace_target_info) <begin, end, level>
14927 <insn_history, call_history>: New.
14928 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14929 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14930 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14931 (btrace_call_number, btrace_call_begin, btrace_call_end)
14932 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14933 (btrace_find_function_by_number, btrace_set_insn_history)
14934 (btrace_set_call_history): New.
14935 * btrace.c (btrace_init_insn_iterator)
14936 (btrace_init_func_iterator, compute_itrace): Remove.
14937 (ftrace_print_function_name, ftrace_print_filename)
14938 (ftrace_skip_file): Change
14939 parameter to const.
14940 (ftrace_init_func): Remove.
14941 (ftrace_debug): Use new btrace_function fields.
14942 (ftrace_function_switched): Also consider gaining and
14943 losing symbol information).
14944 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14945 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14946 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14948 (ftrace_new_function): Move. Remove debug print.
14949 (ftrace_update_lines, ftrace_update_insns): New.
14950 (ftrace_update_function): Check for call, ret, and jump.
14951 (compute_ftrace): Renamed to ...
14952 (btrace_compute_ftrace): ...this. Rewritten to compute call
14954 (btrace_fetch, btrace_clear): Updated.
14955 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14956 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14957 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14958 (btrace_call_number, btrace_call_begin, btrace_call_end)
14959 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14960 (btrace_find_function_by_number, btrace_set_insn_history)
14961 (btrace_set_call_history): New.
14962 * record-btrace.c (require_btrace): Use new btrace thread
14964 (record_btrace_info, btrace_insn_history)
14965 (record_btrace_insn_history, record_btrace_insn_history_range):
14966 Use new btrace thread info fields and new iterator.
14967 (btrace_func_history_src_line): Rename to ...
14968 (btrace_call_history_src_line): ...this. Use new btrace
14969 thread info fields.
14970 (btrace_func_history): Rename to ...
14971 (btrace_call_history): ...this. Use new btrace thread info
14972 fields and new iterator.
14973 (record_btrace_call_history, record_btrace_call_history_range):
14974 Use new btrace thread info fields and new iterator.
14976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14978 * frame.h (frame_id_build_unavailable_stack_special): New.
14979 * frame.c (frame_id_build_unavailable_stack_special): New.
14981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14983 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14984 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14985 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14987 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14988 (i386_insn_is_jump, i386_jmp_p): New.
14989 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14990 insn_is_jump to gdbarch.
14991 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14992 * gdbarch.h: Regenerated.
14993 * gdbarch.c: Regenerated.
14994 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14995 (default_insn_is_jump): New.
14996 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14997 (default_insn_is_jump): New.
14999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15001 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15003 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15004 (btrace_read_type) <btrace_read_new>: Change to ...
15005 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15009 * common/linux-btrace.c (linux_read_btrace): Free trace from
15010 previous iteration.
15012 2014-01-15 Doug Evans <dje@google.com>
15014 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15017 2014-01-15 Tom Tromey <tromey@redhat.com>
15019 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15020 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15021 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15022 (set_objfile_main_name): New function.
15023 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15024 language_of_main>: New fields.
15025 (set_objfile_main_name): Declare.
15026 * symtab.c (find_main_name): Loop over objfiles to find the main
15028 (set_main_name): Now static.
15029 (get_main_info): Add comment.
15030 * symtab.h (set_main_name): Don't declare.
15032 2014-01-15 Tom Tromey <tromey@redhat.com>
15034 * symtab.c (main_progspace_key): New global.
15035 (struct main_info): New.
15036 (name_of_main, language_of_main): Remove.
15037 (get_main_info, main_info_cleanup): New function.
15038 (set_main_name, main_name, main_language): Use get_main_info.
15039 (_initialize_symtab): Initialize main_progspace_key.
15041 2014-01-15 Tom Tromey <tromey@redhat.com>
15043 * dbxread.c (process_one_symbol): Update.
15044 * dwarf2read.c (read_partial_die): Update.
15045 * symfile.c (set_initial_language): Call main_language.
15046 * symtab.c (language_of_main): Now static.
15047 (set_main_name): Add 'lang' parameter.
15048 (find_main_name): Update.
15049 (main_language): New function.
15050 (symtab_observer_executable_changed): Update.
15051 * symtab.h (set_main_name): Update.
15052 (language_of_main): Remove.
15053 (main_language): Declare.
15055 2014-01-15 Tom Tromey <tromey@redhat.com>
15057 * symfile.c (init_entry_point_info): Use new "initialized" field.
15059 * objfiles.h (struct entry_point) <initialized>: New field.
15060 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15061 (struct objfile) <ei>: ...here. Remove.
15062 * objfiles.c (entry_point_address_query): Update.
15064 2014-01-15 Tom Tromey <tromey@redhat.com>
15066 * objfiles.c (entry_point_address_query): Relocate entry point
15068 (objfile_relocate1): Do not relocate entry point address.
15069 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15070 <the_bfd_section_index>: New field.
15071 * symfile.c (init_entry_point_info): Find the entry point's
15074 2014-01-15 Tom Tromey <tromey@redhat.com>
15076 * solib-frv.c (enable_break): Use entry_point_address_query.
15078 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15080 * NEWS: Add note on improved process record-replay on
15081 arm*-linux* targets.
15083 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15085 * arm-tdep.c (enum arm_record_result): New enum.
15086 (arm_record_unsupported_insn): New function.
15087 (arm_record_coproc_data_proc): Removed.
15088 (thumb2_record_ld_st_multiple): New function.
15089 (thumb2_record_ld_st_dual_ex_tbb): New function.
15090 (thumb2_record_data_proc_sreg_mimm): New function.
15091 (thumb2_record_ps_dest_generic): New function.
15092 (thumb2_record_branch_misc_cntrl): New function.
15093 (thumb2_record_str_single_data): New function.
15094 (thumb2_record_ld_mem_hints): New function.
15095 (thumb2_record_ld_word): New function.
15096 (thumb2_record_lmul_lmla_div): New function.
15097 (thumb2_record_decode_insn_handler): New function.
15098 (decode_insn): Add thumb32 instruction handlers.
15100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15102 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15103 (struct arm_linux_record_tdep): Declare.
15104 (arm_canonicalize_syscall): New function.
15105 (arm_all_but_pc_registers_record): New function.
15106 (arm_linux_syscall_record): New function.
15107 (arm_linux_init_abi): Add syscall recording constructs.
15108 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15109 decoding. (arm_record_coproc_data_proc): Update arm syscall
15111 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15112 <arm_syscall_record>: New field.
15113 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15116 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15118 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15119 register for push instruction recording.
15121 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15123 * arm-tdep.c (thumb_record_misc): Update to correct logical
15124 error while recording ldm, ldmia and pop instructions.
15126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15128 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15130 2014-01-15 Pedro Alves <palves@redhat.com>
15132 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15133 (go32_resume, go32_fetch_registers, store_register)
15134 (go32_store_registers, go32_prepare_to_store)
15135 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15136 (go32_create_inferior, go32_can_run, go32_terminal_init)
15137 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15140 2014-01-15 Tom Tromey <tromey@redhat.com>
15142 * target.h (async_callback_ftype): New typedef.
15143 (struct target_ops) <to_async>: Use it.
15145 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15147 * python/py-value.c (get_field_type): Remove unnecessary curly
15148 braces for single-statement if block.
15150 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15152 * python/py-type.c (convert_field): Add missing empty line
15153 after declarations.
15155 2014-01-14 Doug Evans <dje@google.com>
15157 * symfile.h (expand_symtabs_matching): Renamed from
15158 expand_partial_symbol_names. Update prototype.
15159 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15160 * symfile.c (expand_symtabs_matching): Renamed from
15161 expand_partial_symbol_names. New args file_matcher, kind.
15162 Rename arg fun to symbol_matcher.
15163 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15164 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15165 ada_expand_partial_symbol_name.
15166 (ada_make_symbol_completion_list): Update to call
15167 expand_symtabs_matching.
15168 (ada_add_global_exceptions): Call expand_symtabs_matching.
15169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15170 call map_symbol_filenames.
15171 * symtab.c (sources_info): Update to call map_symbol_filenames.
15172 (search_symbols): Call expand_symtabs_matching.
15173 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15174 (default_make_symbol_completion_list_break_on): Update to call
15175 expand_symtabs_matching.
15176 (make_source_files_completion_list): Update to call
15177 map_symbol_filenames.
15179 2014-01-14 Doug Evans <dje@google.com>
15181 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15182 (expand_symtabs_symbol_matcher_ftype): New typedef.
15183 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15184 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15185 * symfile.c (expand_partial_symbol_names): Update to use
15186 expand_symtabs_symbol_matcher_ftype.
15187 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15188 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15189 Arg name_matcher renamed to symbol_matcher.
15190 * psymtab.c (recursively_search_psymtabs): Update to use
15191 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15193 (expand_symtabs_matching_via_partial): Update to use
15194 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15195 Arg name_matcher renamed to symbol_matcher.
15197 2014-01-14 Doug Evans <dje@google.com>
15199 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15200 (map_partial_symbol_filenames): Ditto.
15201 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15202 (map_partial_symbol_filenames): Ditto.
15203 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15204 (map_partial_symbol_filenames): Ditto.
15205 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15206 (map_partial_symbol_filenames): Ditto.
15207 * symtab.c: Delete #include "psymtab.h".
15209 2014-01-14 Pedro Alves <palves@redhat.com>
15210 Tom Tromey <tromey@redhat.com>
15212 * infrun.c (use_displaced_stepping): Use find_record_target
15213 instead of RECORD_IS_USED.
15214 (adjust_pc_after_break): Use record_full_is_used instead of
15216 * record-btrace.c (record_btrace_open): Call record_preopen
15217 instead of checking RECORD_IS_USED.
15218 * record-full.c (record_full_shortname)
15219 (record_full_core_shortname): New globals.
15220 (record_full_is_used): New function.
15221 (find_full_open): Call record_preopen instead of checking
15223 (init_record_full_ops): Set the target's shortname to
15224 record_full_shortname.
15225 (init_record_full_core_ops): Set the target's shortname to
15226 record_full_core_shortname.
15227 * record-full.h (record_full_is_used): Declare.
15228 * record.c (find_record_target): Make extern.
15229 (record_preopen): New function.
15230 * record.h (RECORD_IS_USED): Delete macro.
15231 (find_record_target, record_preopen): Declare functions.
15233 2014-01-14 Yao Qi <yao@codesourcery.com>
15235 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15236 'len''s type to ULONGEST.
15237 (core_xfer_shared_libraries_aix): Likewise.
15238 * gdbarch.c, gdbarch.h: Regenerated.
15239 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15240 Change type of 'len' to ULONGEST.
15241 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15242 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15244 2014-01-14 Yao Qi <yao@codesourcery.com>
15246 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15247 type of 'len' to ULONGEST.
15248 (linux_xfer_osdata_processgroups): Likewise.
15249 (linux_xfer_osdata_threads): Likewise.
15250 (linux_xfer_osdata_fds): Likewise.
15251 (linux_xfer_osdata_isockets): Likewise.
15252 (linux_xfer_osdata_shm): Likewise.
15253 (linux_xfer_osdata_sem): Likewise.
15254 (linux_xfer_osdata_msg): Likewise.
15255 (linux_common_xfer_osdata): Likewise.
15256 (struct osdata_type) <getter>: Likewise.
15257 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15260 2014-01-14 Yao Qi <yao@codesourcery.com>
15262 * target.h (target_xfer_partial_ftype): Update.
15263 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15265 * aix-thread.c (aix_thread_xfer_partial): Change type of
15266 argument 'len' to ULONGEST.
15267 * auxv.c (procfs_xfer_auxv): Likewise.
15268 (ld_so_xfer_auxv): Likewise.
15269 (memory_xfer_auxv): Likewise.
15270 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15271 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15272 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15273 * corelow.c (core_xfer_partial): Likewise.
15274 * ctf.c (ctf_xfer_partial): Likewise.
15275 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15277 (darwin_read_dyld_info): Likewise.
15278 (darwin_xfer_partial): Likewise.
15279 * exec.c (section_table_xfer_memory_partial): Likewise.
15280 (exec_xfer_partial): Likewise.
15281 * exec.h (section_table_xfer_memory_partial): Update
15283 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15284 instead of plongest.
15285 (gnu_xfer_partial): Likewise.
15286 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15287 (ia64_hpux_xfer_solib_got): Likewise.
15288 (ia64_hpux_xfer_partial): Likewise.
15289 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15290 * inf-ptrace.c (inf_ptrace_xfer_partial):
15291 * inf-ttrace.c (inf_ttrace_xfer_partial):
15292 * linux-nat.c (linux_xfer_siginfo): Likewise.
15293 (linux_nat_xfer_partial): Likewise.
15294 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15295 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15296 * monitor.c (monitor_xfer_memory): Likewise.
15297 (monitor_xfer_partial): Likewise.
15298 * procfs.c (procfs_xfer_partial): Likewise.
15299 * record-full.c (record_full_xfer_partial): Likewise.
15300 (record_full_core_xfer_partial): Likewise.
15301 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15302 instead of plongest.
15303 (gdbsim_xfer_partial): Likewise.
15304 * remote.c (remote_xfer_partial): Likewise.
15305 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15306 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15308 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15309 (rs6000_xfer_shared_libraries): Likewise.
15310 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15311 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15312 (sparc_xfer_partial): Likewise.
15313 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15314 (spu_xfer_partial): Likewise.
15315 * spu-multiarch.c (spu_xfer_partial): Likewise.
15316 * target.c (target_read_live_memory): Likewise.
15317 (memory_xfer_live_readonly_partial): Likewise.
15318 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15319 (target_xfer_partial, default_xfer_partial): Likewise.
15320 (current_xfer_partial): Likewise.
15321 * tracepoint.c (tfile_xfer_partial): Likewise.
15322 * windows-nat.c (windows_xfer_memory): Likewise. Call
15323 pulongest instead of plongest.
15324 (windows_xfer_partial): Likewise.
15325 (windows_xfer_shared_libraries): Likewise.
15327 2014-01-14 Yao Qi <yao@codesourcery.com>
15329 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15330 target_xfer_partial_ftype.
15332 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15336 * valops.c (value_struct_elt_bitpos): New function
15337 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15338 object to 'None' if the field name is an empty string ("").
15339 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15340 attribute to look for a field when 'name' is 'None'.
15341 (get_field_type): New function
15343 2014-01-13 Doug Evans <dje@google.com>
15346 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15347 (try_open_dwop_file): Ditto.
15348 * gdb_bfd.c: #include "vec.h".
15349 (bfdp): New typedef.
15350 (struct gdb_bfd_data): New member included_bfds.
15351 (gdb_bfd_unref): Unref all included bfds.
15352 (gdb_bfd_record_inclusion): New function.
15353 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15355 2014-01-13 Tom Tromey <tromey@redhat.com>
15357 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15359 2014-01-13 Tom Tromey <tromey@redhat.com>
15361 * defs.h (use_windows): Remove.
15362 * gdb.c (main): Update.
15363 * main.c (captured_main, gdb_main): Update.
15364 * main.h (struct captured_main_args) <use_windows>: Remove.
15365 * top.c (use_windows): Remove.
15367 2014-01-13 Tom Tromey <tromey@redhat.com>
15369 * defs.h (deprecated_flush_hook): Remove.
15371 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15374 * linux-thread-db.c (try_thread_db_load): Add parameter
15375 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15376 (try_thread_db_load_from_pdir_1): Move it there from here.
15377 (try_thread_db_load_from_sdir): Update caller.
15378 (try_thread_db_load_from_dir): Move it there from here.
15380 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15382 * regformats/regdat.sh: Always rewrite the register file.
15384 2014-01-13 Pedro Alves <palves@redhat.com>
15386 * Makefile.in (CHECK_HEADERS): New variable.
15387 (check-headers:): New rule.
15389 2014-01-13 Tom Tromey <tromey@redhat.com>
15391 * cli/cli-setshow.c (do_set_command): Update.
15392 * defs.h (deprecated_set_hook): Remove.
15393 * top.c (deprecated_set_hook): Remove.
15395 2014-01-13 Pedro Alves <palves@redhat.com>
15397 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15398 the tracepoint if the PC is a pseudo-register.
15400 2014-01-13 Tom Tromey <tromey@redhat.com>
15402 * defs.h (XCALLOC): Remove.
15403 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15404 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15405 * dwarf2loc.c (allocate_piece_closure): Likewise.
15406 * elfread.c (elf_symfile_segments): Likewise.
15407 (elf_symfile_segments): Likewise.
15408 * gdbtypes.c (copy_type_recursive): Likewise.
15409 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15410 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15411 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15413 * mt-tdep.c (mt_gdbarch_init): Likewise.
15414 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15416 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15417 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15418 * registry.c (registry_alloc_data): Likewise.
15419 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15420 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15421 * serial.c (serial_fdopen_ops): Likewise.
15422 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15424 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15425 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15428 2014-01-13 Tom Tromey <tromey@redhat.com>
15430 * defs.h (XMALLOC): Remove.
15431 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15432 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15433 * cli-out.c (struct ui_out *): Likewise.
15434 * cli/cli-dump.c (add_dump_command): Likewise.
15435 (add_dump_command): Likewise.
15436 * complaints.c (get_complaints): Likewise.
15437 (find_complaint): Likewise.
15438 * dwarf2-frame.c (execute_cfa_program): Likewise.
15439 * dwarf2read.c (abbrev_table_read_table): Likewise.
15440 * gdbarch.sh: Likewise.
15441 * gdbarch.c: Rebuild.
15442 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15443 * interps.c (interp_new): Likewise.
15444 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15445 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15446 * mi/mi-console.c (mi_console_file_new): Likewise.
15447 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15448 * mi/mi-out.c (mi_out_new): Likewise.
15449 * mi/mi-parse.c (mi_parse): Likewise.
15450 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15451 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15452 * observer.c (xalloc_observer_list_node): Likewise.
15453 * regcache.c (regcache_xmalloc_1): Likewise.
15454 * reggroups.c (reggroup_new): Likewise.
15455 (_initialize_reggroup): Likewise.
15456 * registry.c (register_data_with_cleanup): Likewise.
15457 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15458 * ser-base.c (serial_ttystate): Likewise.
15459 * ser-mingw.c (make_pipe_state): Likewise.
15460 * ser-pipe.c (pipe_open): Likewise.
15461 * serial.c (serial_open): Likewise.
15462 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15463 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15464 (tui_alloc_win_info): Likewise.
15465 (tui_add_content_elements): Likewise.
15466 * tui/tui-file.c (tui_file_new): Likewise.
15467 * tui/tui-out.c (tui_out_new): Likewise.
15468 * ui-file.c (mem_file_new): Likewise.
15469 * ui-out.c (push_level): Likewise.
15470 (make_cleanup_ui_out_end): Likewise.
15471 (append_header_to_list): Likewise.
15472 (ui_out_new): Likewise.
15473 * user-regs.c (user_reg_add_builtin): Likewise.
15475 2014-01-13 Tom Tromey <tromey@redhat.com>
15477 * defs.h (XZALLOC): Remove.
15478 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15479 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15480 (get_ada_tasks_inferior_data): Likewise.
15481 * auto-load.c (get_auto_load_pspace_data): Likewise.
15482 * auxv.c (get_auxv_inferior_data): Likewise.
15483 * bfd-target.c (target_bfd_reopen): Likewise.
15484 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15485 (deprecated_insert_raw_breakpoint): Likewise.
15486 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15487 * corelow.c (core_open): Likewise.
15488 * darwin-nat.c (darwin_check_new_threads): Likewise.
15489 (darwin_attach_pid): Likewise.
15490 * dummy-frame.c (dummy_frame_push): Likewise.
15491 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15492 * dwarf2loc.c (allocate_piece_closure): Likewise.
15493 * elfread.c (elf_symfile_segments): Likewise.
15494 * eval.c (ptrmath_type_p): Likewise.
15495 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15496 * gdbtypes.c (alloc_type_arch): Likewise.
15497 (alloc_type_instance): Likewise.
15498 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15499 * inf-child.c (inf_child_can_use_agent): Likewise.
15500 * inflow.c (get_inflow_inferior_data): Likewise.
15501 * infrun.c (save_infcall_suspend_state): Likewise.
15502 * jit.c (jit_reader_load): Likewise.
15503 (get_jit_objfile_data): Likewise.
15504 (get_jit_program_space_data): Likewise.
15505 (jit_object_open_impl): Likewise.
15506 (jit_symtab_open_impl): Likewise.
15507 (jit_block_open_impl): Likewise.
15508 (jit_frame_sniffer): Likewise.
15509 * linux-fork.c (add_fork): Likewise.
15510 * maint.c (make_command_stats_cleanup): Likewise.
15511 * objfiles.c (get_objfile_pspace_data): Likewise.
15512 * opencl-lang.c (struct lval_closure): Likewise.
15513 * osdata.c (osdata_start_osdata): Likewise.
15514 * progspace.c (new_address_space): Likewise.
15515 (add_program_space): Likewise.
15516 * remote-sim.c (get_sim_inferior_data): Likewise.
15517 * sh-tdep.c (sh_gdbarch_init): Likewise.
15518 * skip.c (Ignore): Likewise.
15519 (skip_delete_command): Likewise.
15520 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15521 (library_list_start_library): Likewise.
15522 (solib_aix_current_sos): Likewise.
15523 * solib-darwin.c (get_darwin_info): Likewise.
15524 (darwin_current_sos): Likewise.
15525 * solib-dsbt.c (get_dsbt_info): Likewise.
15526 * solib-ia64-hpux.c (new_so_list): Likewise.
15527 (ia64_hpux_get_solib_linkage_addr): Likewise.
15528 * solib-spu.c (append_ocl_sos): Likewise.
15529 (spu_current_sos): Likewise.
15530 * solib-svr4.c (get_svr4_info): Likewise.
15531 (svr4_keep_data_in_core): Likewise.
15532 (library_list_start_library): Likewise.
15533 (svr4_default_sos): Likewise.
15534 (svr4_read_so_list): Likewise.
15535 * solib-target.c (library_list_start_library): Likewise.
15536 (solib_target_current_sos): Likewise.
15537 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15538 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15539 * symfile.c (default_symfile_segments): Likewise.
15540 * target-descriptions.c (tdesc_data_init): Likewise.
15541 (tdesc_create_reg): Likewise.
15542 (struct tdesc_type *): Likewise.
15543 (tdesc_create_vector): Likewise.
15544 (tdesc_set_struct_size): Likewise.
15545 (struct tdesc_type *): Likewise.
15546 (tdesc_free_feature): Likewise.
15547 (tdesc_create_feature): Likewise.
15548 * windows-nat.c (windows_add_thread): Likewise.
15549 (windows_make_so): Likewise.
15550 * xml-support.c (gdb_xml_body_text): Likewise.
15551 (gdb_xml_create_parser_and_cleanup): Likewise.
15552 (xml_process_xincludes): Likewise.
15553 * xml-syscall.c (allocate_syscalls_info): Likewise.
15554 (syscall_create_syscall_desc): Likewise.
15556 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15558 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15559 function, with code from i386_stap_parse_special_token.
15560 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15561 (i386_stap_parse_special_token): Move code to the two functions
15562 above; simplify it.
15564 2014-01-09 Pedro Alves <palves@redhat.com>
15565 Hui Zhu <hui@codesourcery.com>
15568 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15569 bp_err_string. Don't mark the location shlib_disabled if the
15570 error thrown wasn't a generic or memory error. Catch errors
15571 thrown while inserting breakpoints in overlayed code. Output
15572 error message of software breakpoints.
15573 * remote.c (remote_insert_breakpoint): If this breakpoint has
15574 target-side commands but this stub doesn't support Z0 packets,
15575 throw NOT_SUPPORTED_ERROR error.
15576 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15577 * target.h (target_insert_breakpoint): Extend comment.
15578 (target_insert_hw_breakpoint): Add comment.
15580 2014-01-08 Pedro Alves <palves@redhat.com>
15582 * remote.c (remote_add_thread): Add threads silently if starting
15584 (remote_notice_new_inferior): If in all-stop, and starting up,
15585 don't call notice_new_inferior.
15586 (get_current_thread): New function, factored out from ...
15587 (add_current_inferior_and_thread): ... this. Adjust.
15588 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15589 found any thread, then select the remote's current thread as GDB's
15590 current thread too.
15592 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15594 * NEWS: Create a new section for the next release branch.
15595 Rename the section of the current branch, now that it has
15598 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15600 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15601 * version.in: Bump version to 7.7.50.DATE-cvs.
15603 2014-01-08 Yao Qi <yao@codesourcery.com>
15605 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15606 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15607 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15609 2014-01-08 Yao Qi <yao@codesourcery.com>
15611 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15612 return value of bfd_get_filename to symbol_file_add_from_bfd.
15614 2014-01-08 Pierre Muller <muller@sourceware.org>
15617 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15618 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15619 to prim_record_mininal_symbol_and_info.
15620 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15621 in call to prim_record_minimal_symbol_and_info.
15622 (read_pe_exported_syms): Set index field of section_data.
15624 2014-01-07 Andrew Pinski <apinski@cavium.com>
15626 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15627 * features/aarch64.c: Regenerate.
15629 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15631 * target.c (return_null): Define.
15632 (update_current_target): Use it instead of return_zero for
15633 functions that return a pointer.
15635 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15637 * source.c (add_path): Fix check for duplicated paths in the previously
15640 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15642 * ada-lang.c: Remove duplicated include statements.
15643 * alphabsd-nat.c: Ditto.
15644 * amd64-darwin-tdep.c: Ditto.
15645 * amd64fbsd-nat.c: Ditto.
15646 * auto-load.c: Ditto.
15648 * breakpoint.c: Ditto.
15649 * dbxread.c: Ditto.
15650 * fork-child.c: Ditto.
15651 * gdb_usleep.c: Ditto.
15652 * i386-darwin-tdep.c: Ditto.
15653 * i386fbsd-nat.c: Ditto.
15655 * inferior.c: Ditto.
15656 * jv-lang.c: Ditto.
15657 * linux-nat.c: Ditto.
15658 * linux-tdep.c: Ditto.
15659 * m68kbsd-nat.c: Ditto.
15660 * m68klinux-nat.c: Ditto.
15661 * microblaze-tdep.c: Ditto.
15662 * mips-linux-tdep.c: Ditto.
15663 * mn10300-tdep.c: Ditto.
15664 * nto-tdep.c: Ditto.
15665 * opencl-lang.c: Ditto.
15667 * printcmd.c: Ditto.
15668 * regcache.c: Ditto.
15669 * remote-m32r-sdi.c: Ditto.
15671 * symfile.c: Ditto.
15673 * tilegx-linux-nat.c: Ditto.
15674 * tilegx-tdep.c: Ditto.
15675 * tracepoint.c: Ditto.
15677 * vaxbsd-nat.c: Ditto.
15678 * windows-nat.c: Ditto.
15679 * xtensa-tdep.c: Ditto.
15681 2014-01-07 Yao Qi <yao@codesourcery.com>
15683 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15685 2014-01-07 Yao Qi <yao@codesourcery.com>
15686 Joel Brobecker <brobecker@adacore.com>
15688 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15689 (pdc_write_regs): Likewise.
15690 (fetch_regs_kernel_thread): Likewise.
15691 (store_regs_kernel_thread): Likewise.
15693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15695 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15696 tagged type objects to their actual type.
15698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15700 * ada-valprint.c (print_field_values): Add "language" parameter.
15701 Update calls to print_field_values and print_variant_part.
15702 Pass new parameter "language" in call to val_print instead
15703 of "current_language". Replace call to ada_val_print by call
15705 (print_variant_part): Add "language" parameter.
15706 (ada_val_print_struct_union): Update call to print_field_values.
15708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15710 * ada-valprint.c (ui_memcpy): Delete.
15711 (ada_print_floating): Update documentation. Add empty line
15712 between between function documentation and implementation.
15713 Delete variable "buffer". Use ui_file_xstrdup in place of
15714 ui_file_put. Minor adjustments following this change.
15716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15718 * ada-valprint.c (ada_val_print_string): New function,
15719 extracted from ada_val_print_array.
15720 (ada_val_print_array): Replace extracted code by call
15721 to ada_val_print_string followed by a return. Move
15722 "else" branch to the function's top block.
15724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15726 * ada-valprint.c (ada_val_print_array): Move implementation
15727 down. Rename parameter "offset" and "val" into "offset_aligned"
15728 and "original_value" respectively. Add parameter "offset".
15730 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15732 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15733 re-organizing the code. Change the "???" message printed
15734 when target type is a TYPE_CODE_UNDEF into
15735 "<ref to undefined type>".
15737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15739 * ada-valprint.c (print_record): Delete, implementation inlined...
15740 (ada_val_print_struct_union): ... here. Remove call to
15741 ada_check_typedef in inlined implementation.
15743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15745 * ada-valprint.c (ada_val_print_gnat_array): New function,
15746 extracted from ada_val_print_1;
15747 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15748 (ada_val_print_flt, ada_val_print_struct_union)
15749 (ada_val_print_ref): Likewise.
15750 (ada_val_print_1): Delete variables i and elttype.
15751 Replace extracted-out code by call to corresponding
15754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15756 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15758 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15760 * ada-valprint.c (ada_val_print_1): Replace calls to
15761 ada_val_print_1 by calls to val_print.
15763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15765 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15766 Update calls to self accordingly. Replace calls to c_val_print
15767 by calls to val_print.
15769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15771 * ada-valprint.c (print_record): Delete declaration.
15772 (adjust_type_signedness, ada_val_print_1): Likewise.
15773 (ada_val_print): Move function implementation down.
15774 (print_variant_part, print_field_values, print_record):
15775 Move function implementation up.
15777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15779 * python/py-type.c (typy_get_name): New function.
15780 (type_object_getset): Add entry for attribute "name".
15781 * NEWS: Add entry mentioning this new attribute.
15783 2014-01-07 Yao Qi <yao@codesourcery.com>
15785 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15788 2014-01-07 Yao Qi <yao@codesourcery.com>
15790 * gnu-nat.c (info_port_rights): Add qualifier const to
15793 2014-01-07 Yao Qi <yao@codesourcery.com>
15795 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15797 2014-01-07 Yao Qi <yao@codesourcery.com>
15799 * gnu-nat.c (make_inf) Update declaration.
15800 (make_inf): Make it static.
15801 (inf_set_traced): Likewise.
15802 (inf_port_to_thread, inf_task_died_status): Likewise.
15804 2014-01-07 Yao Qi <yao@codesourcery.com>
15806 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15808 2014-01-07 Yao Qi <yao@codesourcery.com>
15810 * gnu-nat.c (_initialize_gnu_nat): Declare.
15812 2014-01-07 Yao Qi <yao@codesourcery.com>
15814 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15816 (struct gdbarch_info) <byte_order>: Change type to
15818 <byte_order_for_code>: Likewise.
15819 * gdbarch.c, gdbarch.h: Regenerated.
15821 2014-01-06 Sasha Smundak <asmundak@google.com>
15823 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15825 2014-01-06 Tom Tromey <tromey@redhat.com>
15827 * doublest.c (convert_doublest_to_floatformat): Use const, not
15829 * somread.c (som_symtab_read): Likewise.
15831 2014-01-07 Hui Zhu <hui@codesourcery.com>
15833 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15834 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15835 (gdb_bfd_fopen): Ditto.
15836 (gdb_bfd_openr): Ditto.
15837 (gdb_bfd_openw): Ditto.
15838 (gdb_bfd_openr_iovec): Ditto.
15839 (gdb_bfd_fdopenr): Ditto.
15840 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15841 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15843 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15845 * symfile-mem.c (symbol_file_add_from_memory): Removed
15846 gdb_bfd_stash_filename.
15848 2014-01-03 Doug Evans <dje@google.com>
15850 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15853 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15855 Update year range in copyright notice of all files.
15857 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15859 * top.c (print_gdb_version): Set copyright year to 2014.
15861 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15863 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15865 For older changes see ChangeLog-2013.
15871 version-control: never