1 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Remove const from struct objfile *.
4 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
5 symtab.c, symtab.h: In these files.
7 2014-12-05 Andreas From <andreas.from@ericsson.com>
9 * MAINTAINERS (Write After Approval): Add "Andreas From"
11 2014-12-05 Doug Evans <xdje42@gmail.com>
15 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
17 2014-12-04 Doug Evans <dje@google.com>
19 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
20 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
21 (objfile_getset): Add "add_separate_debug_file".
23 2014-12-04 Doug Evans <dje@google.com>
25 * NEWS: Mention gdb.Objfile.build_id.
26 * build-id.c (build_id_bfd_get): Make non-static.
27 * build-id.h (build_id_bfd_get): Add declaration.
28 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
29 (OBJFPY_REQUIRE_VALID): New macro.
30 (objfpy_get_build_id): New function.
31 (objfile_getset): Add "build_id".
32 * utils.c (make_hex_string): New function.
33 * utils.h (make_hex_string): Add declaration.
35 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * block.c (block_lookup_symbol_primary): New function.
38 * block.h (block_lookup_symbol_primary): New declaration.
39 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
40 Call block_lookup_symbol_primary.
42 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
44 * tramp-frame.h (tramp_frame): Add `validate' member.
45 * tramp-frame.c (tramp_frame_start): Validate trampoline before
47 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
48 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
49 (mips_linux_o32_sigframe): Initialize `validate' member.
50 (mips_linux_o32_rt_sigframe): Likewise.
51 (mips_linux_n32_rt_sigframe): Likewise.
52 (mips_linux_n64_rt_sigframe): Likewise.
53 (micromips_linux_o32_sigframe): New variable.
54 (micromips_linux_o32_rt_sigframe): Likewise.
55 (micromips_linux_n32_rt_sigframe): Likewise.
56 (micromips_linux_n64_rt_sigframe): Likewise.
57 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
58 (mips_linux_n32n64_sigframe_init): Likewise.
59 (mips_linux_sigframe_validate): New function.
60 (micromips_linux_sigframe_validate): Likewise.
61 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
63 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
65 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
66 * sparc-sol2-tdep.c: Include "regset.h".
67 (sparc32_sol2_supply_core_gregset): New function.
68 (sparc32_sol2_collect_core_gregset): Likewise.
69 (sparc32_sol2_supply_core_fpregset): Likewise.
70 (sparc32_sol2_collect_core_fpregset): Likewise.
71 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
72 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
73 tdep->fpregset/sizeof_fpregset.
74 * sparc64-sol2-tdep.c: Include "regset.h".
75 (sparc64_sol2_supply_core_gregset): New function.
76 (sparc64_sol2_collect_core_gregset): Likewise.
77 (sparc64_sol2_supply_core_fpregset): Likewise.
78 (sparc64_sol2_collect_core_fpregset): Likewise.
79 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
80 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
81 tdep->fpregset/sizeof_fpregset.
83 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
85 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
88 2014-12-02 Doug Evans <dje@google.com>
90 * symtab.c (symbol_init_cplus_specific): Delete.
91 (symbol_set_demangled_name): Remove special c++ support.
92 (symbol_get_demangled_name, symbol_set_language): Ditto.
93 * symtab.h (struct cplus_specific): Delete.
94 (struct general_symbol_info) <language_specific>: Remove
97 2014-12-02 Doug Evans <dje@google.com>
100 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
102 2014-12-02 Doug Evans <dje@google.com>
105 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
108 2014-12-02 Doug Evans <dje@google.com>
110 * dwarf2read.c (peek_die_abbrev): Improve error message text.
112 2014-12-02 Doug Evans <dje@google.com>
114 * valops.c (do_search_struct_field): Remove remnant of Chill support.
115 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
117 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
119 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
121 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
123 * NEWS: Mention new Python events.
124 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
125 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
126 (py-infevents.o): New rule.
127 * doc/observer.texi (inferior_call_pre, inferior_call_post)
128 (memory_changed, register_changed): New observers.
129 * infcall.c (call_function_by_hand): Notify observer before and
131 * python/py-event.h (inferior_call_kind): New enum.
132 (emit_inferior_call_event): New prototype.
133 (emit_register_changed_event): New prototype.
134 (emit_memory_changed_event): New prototype.
135 * python/py-events.h (events_object): New registries
136 inferior_call, memory_changed and register_changed.
137 * python/py-evts.c (gdbpy_initialize_py_events): Add the
138 inferior_call, memory_changed and register_changed registries.
139 * python/py-infevents.c: New.
140 * python/py-inferior.c (python_on_inferior_call_pre)
141 (python_on_inferior_call_post, python_on_register_change)
142 (python_on_memory_change): New functions.
143 (gdbpy_initialize_inferior): Attach python handler to new
145 * python/py-infthread.c(gdbpy_create_ptid_object): New.
146 (thpy_get_ptid) Use gdbpy_create_ptid_object.
147 * python/python-internal.h:
148 (gdbpy_create_ptid_object)
149 (gdbpy_initialize_inferior_call_pre_event)
150 (gdbpy_initialize_inferior_call_post_event)
151 (gdbpy_initialize_register_changed_event)
152 (gdbpy_initialize_memory_changed_event): New prototypes.
153 * python/python.c (_initialize_python): Initialize new events.
154 * valops.c (value_assign): Notify register_changed observer.
156 2014-12-02 Doug Evans <dje@google.com>
158 * python/py-infthread.c: Whitespace fixes.
160 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
162 * features/Makefile (s390-te-linux64-expedite): Replace
163 non-existant r14 and r15 by r14l and r15l, respectively.
164 * regformats/s390-te-linux64.dat: Regenerate.
166 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
168 * objfiles.c (allocate_objfile): Remove duplicate comment.
170 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
172 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
173 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
174 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
175 (supply_gregset, supply_fpregset): Remove.
176 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
177 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
180 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
182 Add add-auto-load-scripts-directory.
183 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
184 * auto-load.c (add_auto_load_dir): New function.
185 (_initialize_auto_load): Install it.
187 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
189 Pushed by Joel Brobecker <brobecker@adacore.com>.
190 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
192 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
194 * eval.c (evaluate_subexp): Check that the thread stack temporaries
195 are not already enabled before enabling them.
197 2014-11-29 Yao Qi <yao@codesourcery.com>
199 * arm-tdep.c (arm_analyze_prologue): Move local variables
200 'framereg' and 'framesize' to inner block. Move code to
203 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
205 * eval.c: Include gdbthread.h.
206 (evaluate_subexp): Enable thread stack temporaries before
207 evaluating a complete expression and clean them up after the
208 evaluation is complete.
209 * gdbthread.h: Include common/vec.h.
210 (value_ptr): New typedef.
211 (VEC (value_ptr)): New vector type.
212 (value_vec): New typedef.
213 (struct thread_info): Add new fields stack_temporaries_enabled
214 and stack_temporaries.
215 (enable_thread_stack_temporaries)
216 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
217 (get_last_thread_stack_temporary)
218 (value_in_thread_stack_temporaries): Declare.
219 * gdbtypes.c (class_or_union_p): New function.
220 * gdbtypes.h (class_or_union_p): Declare.
221 * infcall.c (call_function_by_hand): Store return values of class
222 type as temporaries on stack.
223 * thread.c (enable_thread_stack_temporaries): New function.
224 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
225 (get_last_thread_stack_temporary): Likewise.
226 (value_in_thread_stack_temporaries): Likewise.
227 * value.c (value_force_lval): New function.
228 * value.h (value_force_lval): Declare.
230 2014-11-28 Pierre Muller <muller@sourceware.org>
232 Pushed by Joel Brobecker <brobecker@adacore.com>.
233 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
236 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
238 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
239 * config/sparc/linux.mh (NATDEPFILES): Likewise.
240 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
241 * m68klinux-nat.c (fetch_core_registers): Remove.
242 (linux_elf_core_fns): Remove.
243 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
245 2014-11-28 Joel Brobecker <brobecker@adacore.com>
247 * utils.c (gdb_realpath): Rework comment about handling on
250 2014-11-28 Yao Qi <yao@codesourcery.com>
252 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
254 * gnulib/aclocal.m4: Re-generated.
255 * gnulib/config.in: Re-generated.
256 * gnulib/configure: Re-generated.
257 * gnulib/import/Makefile.am: Re-generated.
258 * gnulib/import/Makefile.in: Re-generated.
259 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
260 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
261 * import/basename-lgpl.c: New file.
262 * import/dirname-lgpl.c: New file.
263 * import/dirname.h: New file.
264 * import/m4/dirname.m4: New file.
265 * import/m4/malloc.m4: New file.
266 * import/m4/rename.m4: New file.
267 * import/m4/rmdir.m4: New file.
268 * import/m4/stdio_h.m4: New file.
269 * import/malloc.c: New file.
270 * import/rename.c: New file.
271 * import/rmdir.c: New file.
272 * import/same-inode.h: New file.
273 * import/stdio.c: New file.
274 * import/stdio.in.h: New file.
275 * import/stripslash.c: New file.
277 2014-11-28 Yao Qi <yao@codesourcery.com>
279 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
281 * config.in: Re-generated.
282 * configure: Re-generated.
283 * utils.c (gdb_realpath): Remove code calling realpath,
284 canonicalize_file_name and pathconf.
285 [!_WIN32]: Call canonicalize_file_name.
287 2014-11-28 Yao Qi <yao@codesourcery.com>
289 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
291 * aclocal.m4: Re-generated.
292 * config.in: Re-generated.
293 * configure: Re-generated.
294 * import/Makefile.am: Re-generated.
295 * import/Makefile.in: Re-generated.
296 * import/m4/gnulib-cache.m4: Re-generated.
297 * import/m4/gnulib-comp.m4: Re-generated.
298 * import/canonicalize-lgpl.c: New file.
299 * import/extra/snippet/_Noreturn.h: New file.
300 * import/m4/canonicalize.m4: New file.
301 * import/m4/double-slash-root.m4: New file.
302 * import/m4/eealloc.m4: New file.
303 * import/m4/malloca.m4: New file.
304 * import/m4/nocrash.m4: New file.
305 * import/m4/stdlib_h.m4: New file.
306 * import/malloca.c: New file.
307 * import/malloca.h: New file.
308 * import/malloca.valgrind: New file.
310 2014-11-28 Yao Qi <yao@codesourcery.com>
312 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
313 * config.in, configure: Regenerate.
314 * symfile.c (find_separate_debug_file_by_debuglink): Remove
315 code checking HAVE_LSTAT is defined.
317 2014-11-28 Yao Qi <yao@codesourcery.com>
319 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
321 * gnulib/aclocal.m4: Re-generated.
322 * gnulib/config.in: Re-generated.
323 * gnulib/configure: Re-generated.
324 * gnulib/import/Makefile.am: Re-generated.
325 * gnulib/import/Makefile.in: Re-generated.
326 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
327 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
328 * gnulib/import/lstat.c: New file.
329 * gnulib/import/m4/lstat.m4: New file.
331 2014-11-28 Yao Qi <yao@codesourcery.com>
333 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
334 * config.in, configure: Re-generate.
335 * inf-child.c (inf_child_fileio_readlink): Don't check
336 HAVE_READLINK is defined.
338 2014-11-28 Yao Qi <yao@codesourcery.com>
340 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
341 * gnulib/aclocal.m4: Re-generated.
342 * gnulib/config.in: Likewise.
343 * gnulib/configure: Likewise.
344 * gnulib/import/Makefile.am: Likewise.
345 * gnulib/import/Makefile.in: Likewise.
346 * gnulib/import/m4/gnulib-cache.m4: Likewise.
347 * gnulib/import/m4/gnulib-comp.m4: Likewise.
348 * gnulib/import/dosname.h: New file
349 * gnulib/import/m4/largefile.m4: New file.
350 * gnulib/import/m4/readlink.m4: New file.
351 * gnulib/import/m4/stat.m4: New file.
352 * gnulib/import/readlink.c: New file.
353 * gnulib/import/stat.c: New file.
355 2014-11-26 Mark Wielaard <mjw@redhat.com>
357 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
358 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
360 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
362 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
363 that there can be only one stack adjustment in the prologue
364 with tests to detect specific disallowed stack adjustments.
366 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
368 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
371 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
373 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
374 the instruction as well as reading it from memory.
375 (nios2_match_add): New.
376 (nios2_match_sub): New.
377 (nios2_match_addi): New.
378 (nios2_match_orhi): New.
379 (nios2_match_stw): New.
380 (nios2_match_ldw): New.
381 (nios2_match_rdctl): New.
382 (enum branch_condition): New.
383 (nios2_match_branch): New.
384 (nios2_match_jmpi): New.
385 (nios2_match_calli): New.
386 (nios2_match_jmpr): New.
387 (nios2_match_callr): New.
388 (nios2_match_break): New.
389 (nios2_match_trap): New.
390 (nios2_in_epilogue_p): Rewrite to use new functions.
391 (nios2_analyze_prologue): Likewise.
392 (nios2_skip_prologue): Delete unused local limit_pc.
393 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
394 (nios2_get_next_pc): Rewrite to use new functions.
396 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
398 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
400 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
402 Pushed by Joel Brobecker <brobecker@adacore.com>
403 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
404 elements pi_len by the size of the elements before calling
406 (inf_validate_task_sc): Likewise, and properly deallocate the
409 2014-11-23 Doug Evans <xdje42@gmail.com>
411 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
412 number and name if present. All callers updated.
413 (dump_fn_fieldlists): Fix indentation of args.
415 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
417 * MAINTAINERS (Write After Approval): Add myself.
419 2014-11-23 Joel Brobecker <brobecker@adacore.com>
421 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
422 to a bp_call_dummy breakpoint type.
424 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
426 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
427 registering the signal handler.
429 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
431 * event-top.h (call_stdin_event_handler_again_p): Declare.
432 * event-top.c (call_stdin_event_handler_again_p): Define.
433 (stdin_event_handler): Use it.
434 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
435 handler again if there is pending input following a
438 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
440 Pushed by Joel Brobecker <brobecker@adacore.com>
441 * linux-fork.c (checkpoint_command): Print index of new
442 checkpoint in response message.
444 2014-11-23 Yao Qi <yao@codesourcery.com>
446 * valprint.c (read_string): Move local variables 'found_nul',
447 'chunksize' and 'limit' to inner scope. Update comments.
449 2014-11-22 Doug Evans <xdje42@gmail.com>
451 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
453 (search_symbols): Fix comments and whitespace.
455 2014-11-22 Doug Evans <xdje42@gmail.com>
457 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
459 2014-11-21 Doug Evans <dje@google.com>
461 * psymtab.c (psymtab_search_name): Fix whitespace.
463 2014-11-21 Yao Qi <yao@codesourcery.com>
465 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
467 * gnulib/import/Makefile.am: Re-generated.
468 * gnulib/import/Makefile.in: Likewise.
469 * gnulib/import/m4/gnulib-cache.m4: Likewise.
471 2014-11-21 Yao Qi <yao@codesourcery.com>
473 * gdb_wchar.h: Include wchar.h and wctype.h.
474 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
475 include wchar.h and wctype.h.
476 Don't check HAVE_WCHAR_H.
478 2014-11-21 Yao Qi <yao@codesourcery.com>
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
482 * gnulib/import/Makefile.am: Re-generated.
483 * gnulib/import/Makefile.in: Likewise.
484 * gnulib/import/m4/gnulib-cache.m4: Likewise.
486 2014-11-21 Yao Qi <yao@codesourcery.com>
488 * 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 * common/common-defs.h: Include alloca.h
497 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
498 * configure: Re-generated.
499 * defs.h: Remove code handling alloca.
500 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
503 2014-11-21 Yao Qi <yao@codesourcery.com>
505 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
507 * gnulib/import/Makefile.am: Re-generated.
508 * gnulib/import/Makefile.in: Likewise..
509 * gnulib/import/m4/gnulib-cache.m4: Likewise.
511 2014-11-21 Yao Qi <yao@codesourcery.com>
513 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
516 2014-11-21 Joel Brobecker <brobecker@adacore.com>
518 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
519 flag_unsigned if HIGH_BOUND is constant and negative.
521 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
524 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
525 modifier from "struct gdbarch" when compiling without Expat (XML)
527 (get_syscall_by_number): Likewise.
528 (get_syscall_by_name): Likewise.
529 (get_syscall_names): Likewise.
531 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
534 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
535 set_xml_syscall_file_name to provide gdbarch.
536 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
537 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
538 * breakpoint.c (print_it_catch_syscall): Adjust call to
539 get_syscall_by_number to provide gdbarch.
540 (print_one_catch_syscall): Likewise.
541 (print_mention_catch_syscall): Likewise.
542 (print_recreate_catch_syscall): Likewise.
543 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
544 and get_syscall_by_name to provide gdbarch.
545 (catch_syscall_completer): Adjust call to get_syscall_names to
547 * gdbarch.c: Regenerate.
548 * gdbarch.h: Likewise.
549 * gdbarch.sh: Forward declare "struct syscalls_info".
550 (xml_syscall_file): New variable.
551 (syscalls_info): Likewise.
552 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
553 set_xml_syscall_file_name to provide gdbarch.
554 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
555 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
556 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
557 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
558 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
559 * xml-syscall.c: Include gdbarch.h.
560 (set_xml_syscall_file_name): Accept gdbarch parameter.
561 (get_syscall_by_number): Likewise.
562 (get_syscall_by_name): Likewise.
563 (get_syscall_names): Likewise.
564 (my_gdb_datadir): Delete global variable.
565 (struct syscalls_info) <my_gdb_datadir>: New variable.
566 (struct syscalls_info) <sysinfo>: Rename variable to
568 (sysinfo): Delete global variable.
569 (have_initialized_sysinfo): Likewise.
570 (xml_syscall_file): Likewise.
571 (sysinfo_free_syscalls_desc): Rename to...
572 (syscalls_info_free_syscalls_desc): ... this.
573 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
574 code to the new layout of "struct syscalls_info".
575 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
577 (syscall_create_syscall_desc): Likewise.
578 (syscall_start_syscall): Likewise.
579 (syscall_parse_xml): Likewise.
580 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
581 (init_sysinfo): Rename to...
582 (init_syscalls_info): ...this. Add gdbarch as a parameter.
583 Adjust function to deal with gdbarch.
584 (xml_get_syscall_number): Delete parameter sysinfo. Accept
585 gdbarch as a parameter. Adjust code.
586 (xml_get_syscall_name): Likewise.
587 (xml_list_of_syscalls): Likewise.
588 (set_xml_syscall_file_name): Accept gdbarch as parameter.
589 (get_syscall_by_number): Likewise.
590 (get_syscall_by_name): Likewise.
591 (get_syscall_names): Likewise.
592 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
593 (get_syscall_by_number): Likewise.
594 (get_syscall_by_name): Likewise.
595 (get_syscall_names): Likewise.
597 2014-11-20 Doug Evans <xdje42@gmail.com>
599 Split struct symtab into two: struct symtab and compunit_symtab.
600 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
601 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
602 to "struct compunit_symtab *". All callers updated.
603 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
604 "struct symtab *" argument to "struct compunit_symtab *".
606 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
607 result to "struct compunit_symtab *". All callers updated.
608 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
609 Change result to "struct compunit_symtab *". All callers updated.
610 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
611 hange type to "struct compunit_symtab *". All uses updated.
612 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
613 Change type to "struct compunit_symtab *". All uses updated.
614 * buildsym.c (struct buildsym_compunit): New struct.
615 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
616 (buildsym_compunit): New static global.
617 (finish_block_internal): Update to fetch objfile from
619 (make_blockvector): Delete objfile argument.
620 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
621 debugformat, producer.
622 (start_buildsym_compunit): New function.
623 (free_buildsym_compunit): Renamed from free_subfiles_list.
625 (patch_subfile_names): Rewrite to use buildsym_compunit.
626 (get_compunit_symtab): New function.
627 (get_macro_table): Delete argument comp_dir. All callers updated.
628 (start_symtab): Change result to "struct compunit_symtab *".
629 All callers updated. Create the subfile of the main source file.
630 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
631 (reset_symtab_globals): Update.
632 (end_symtab_get_static_block): Update to use buildsym_compunit.
633 (end_symtab_without_blockvector): Rewrite.
634 (end_symtab_with_blockvector): Change result to
635 "struct compunit_symtab *". All callers updated.
636 Update to use buildsym_compunit. Don't set symtab->dirname,
637 instead set it in the compunit.
638 Explicitly make sure main symtab is first in its list.
639 Set debugformat, producer, blockvector, block_line_section, and
640 macrotable in the compunit.
641 (end_symtab_from_static_block): Change result to
642 "struct compunit_symtab *". All callers updated.
643 (end_symtab, end_expandable_symtab): Ditto.
644 (set_missing_symtab): Change symtab argument to
645 "struct compunit_symtab *". All callers updated.
646 (augment_type_symtab): Ditto.
647 (record_debugformat): Update to use buildsym_compunit.
648 (record_producer): Update to use buildsym_compunit.
649 * buildsym.h (struct subfile) <dirname>: Delete.
650 <producer, debugformat>: Delete.
651 <buildsym_compunit>: New member.
652 (get_compunit_symtab): Declare.
653 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
654 from primary_symtab. Change type to "struct compunit_symtab *".
656 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
658 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
659 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
660 symtab. Change type to "struct compunit_symtab *". All uses updated.
661 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
663 (dw2_find_last_source_symtab): Ditto.
664 (dw2_lookup_symbol): Ditto.
665 (recursively_find_pc_sect_compunit_symtab): Renamed from
666 recursively_find_pc_sect_symtab. Change result to
667 "struct compunit_symtab *". All callers updated.
668 (dw2_find_pc_sect_compunit_symtab): Renamed from
669 dw2_find_pc_sect_symtab. Change result to
670 "struct compunit_symtab *". All callers updated.
671 (get_compunit_symtab): Renamed from get_symtab. Change result to
672 "struct compunit_symtab *". All callers updated.
673 (recursively_compute_inclusions): Change type of immediate_parent
674 argument to "struct compunit_symtab *". All callers updated.
675 (compute_compunit_symtab_includes): Renamed from
676 compute_symtab_includes. All callers updated. Rewrite to compute
677 includes of compunit_symtabs and not symtabs.
678 (process_full_comp_unit): Update to work with struct compunit_symtab.
679 (process_full_type_unit): Ditto.
680 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
681 (dwarf_decode_lines): Remove special case handling of main subfile.
682 (macro_start_file): Delete argument comp_dir. All callers updated.
683 (dwarf_decode_macro_bytes): Ditto.
684 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
685 use struct compunit_symtab.
686 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
687 * jit.c (finalize_symtab): Build compunit_symtab.
688 * jv-lang.c (get_java_class_symtab): Change result to
689 "struct compunit_symtab *". All callers updated.
690 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
691 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
692 comp_dir. Change type to "struct compunit_symtab *".
694 (new_macro_table): Change comp_dir argument to cust,
695 "struct compunit_symtab *". All callers updated.
696 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
697 nr_primary_symtabs. All uses updated.
698 (count_symtabs_and_blocks): Update to handle compunits.
699 (report_command_stats): Update output, "primary symtabs" renamed to
701 * mdebugread.c (new_symtab): Change result to
702 "struct compunit_symtab *". All callers updated.
703 (parse_procedure): Change type of search_symtab argument to
704 "struct compunit_symtab *". All callers updated.
705 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
707 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
708 symtabs. Change type to "struct compunit_symtab *". All uses updated.
709 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
711 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
713 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
714 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
715 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
716 symtab. Change type to "struct compunit_symtab *". All uses updated.
717 * psymtab.c (psymtab_to_symtab): Change result type to
718 "struct compunit_symtab *". All callers updated.
719 (find_pc_sect_compunit_symtab_from_partial): Renamed from
720 find_pc_sect_symtab_from_partial. Change result type to
721 "struct compunit_symtab *". All callers updated.
722 (lookup_symbol_aux_psymtabs): Change result type to
723 "struct compunit_symtab *". All callers updated.
724 (find_last_source_symtab_from_partial): Ditto.
725 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
726 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
727 and macro_table from compunit.
728 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
729 type to "struct compunit_symtab *". All callers updated.
730 (debug_qf_lookup_symbol): Ditto.
731 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
732 debug_qf_find_pc_sect_symtab, change result type to
733 "struct compunit_symtab *". All callers updated.
734 * symfile.c (allocate_symtab): Delete objfile argument.
736 (allocate_compunit_symtab): New function.
737 (add_compunit_symtab_to_objfile): New function.
738 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
739 Change result type to "struct compunit_symtab *". All uses updated.
740 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
741 Change result type to "struct compunit_symtab *". All uses updated.
742 * symmisc.c (print_objfile_statistics): Compute blockvector count in
744 (dump_symtab_1): Update test for primary source symtab.
745 (maintenance_info_symtabs): Update to handle compunit symtabs.
746 (maintenance_check_symtabs): Ditto.
747 * symtab.c (set_primary_symtab): Delete.
748 (compunit_primary_filetab): New function.
749 (compunit_language): New function.
750 (iterate_over_some_symtabs): Change type of arguments "first",
751 "after_last" to "struct compunit_symtab *". All callers updated.
752 Update to loop over symtabs in each compunit.
753 (error_in_psymtab_expansion): Rename symtab argument to cust,
754 and change type to "struct compunit_symtab *". All callers updated.
755 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
756 Change result type to "struct compunit_symtab *". All callers updated.
757 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
758 Change result type to "struct compunit_symtab *". All callers updated.
759 (find_pc_sect_line): Only loop over symtabs within selected compunit
760 instead of all symtabs in the objfile.
761 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
762 <compunit_symtab> New member.
763 <block_line_section>: Moved to compunit_symtab.
764 <locations_valid>: Ditto.
765 <epilogue_unwind_valid>: Ditto.
766 <macro_table>: Ditto.
768 <debugformat>: Ditto.
771 <call_site_htab>: Ditto.
775 (SYMTAB_COMPUNIT): New macro.
776 (SYMTAB_BLOCKVECTOR): Update definition.
777 (SYMTAB_OBJFILE): Update definition.
778 (SYMTAB_DIRNAME): Update definition.
779 (struct compunit_symtab): New type. Common members among all source
780 symtabs within a compilation unit moved here. All uses updated.
781 (COMPUNIT_OBJFILE): New macro.
782 (COMPUNIT_FILETABS): New macro.
783 (COMPUNIT_DEBUGFORMAT): New macro.
784 (COMPUNIT_PRODUCER): New macro.
785 (COMPUNIT_DIRNAME): New macro.
786 (COMPUNIT_BLOCKVECTOR): New macro.
787 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
788 (COMPUNIT_LOCATIONS_VALID): New macro.
789 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
790 (COMPUNIT_CALL_SITE_HTAB): New macro.
791 (COMPUNIT_MACRO_TABLE): New macro.
792 (ALL_COMPUNIT_FILETABS): New macro.
793 (compunit_symtab_ptr): New typedef.
794 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
796 2014-11-20 Joel Brobecker <brobecker@adacore.com>
798 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
799 if the TYPE_CODE of range_type's base type does not match
800 the TYPE_CODE of encoding_type's base type.
802 2014-11-19 Joel Brobecker <brobecker@adacore.com>
804 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
807 2014-11-19 Joel Brobecker <brobecker@adacore.com>
809 * ada-lang.c (ada_is_redundant_range_encoding): New function.
810 (ada_is_redundant_index_type_desc): New function.
811 (to_fixed_array_type): Ignore parallel XA type if redundant.
813 2014-11-19 Joel Brobecker <brobecker@adacore.com>
815 * ada-lang.c (constrained_packed_array_type): Set the length
816 of the return array as if both bounds where zero if that
817 returned array's index type is dynamic.
819 2014-11-19 Yao Qi <yao@codesourcery.com>
821 * config/i386/go32.mh (CC): Remove.
823 2014-11-18 Doug Evans <xdje42@gmail.com>
825 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
828 2014-11-18 Doug Evans <xdje42@gmail.com>
830 * buildsym.c (buildsym_objfile): New static global.
831 (buildsym_comp_dir): New static global.
832 (finish_block_internal): Delete arg objfile. All callers updated.
833 (finish_block): Delete arg objfile. All callers updated.
834 (start_subfile): Delete arg dirname. All callers updated.
835 (patch_subfile_names): Update buildsym_comp_dir.
836 (get_macro_table): Delete arg objfile. All callers updated.
837 (start_symtab): New arg objfile. All callers updated.
838 Rename arg dirname to comp_dir.
839 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
840 (end_symtab_get_static_block): Delete arg objfile. All callers
842 (end_symtab_without_blockvector): Ditto.
843 (end_symtab_with_blockvector): Ditto.
844 (end_symtab_from_static_block): Ditto.
846 (end_expandable_symtab): Ditto.
847 (augment_type_symtab): Ditto.
848 * coffread.c (coff_start_symtab): New arg objfile. All callers
851 2014-11-18 Doug Evans <xdje42@gmail.com>
853 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
856 2014-11-18 Doug Evans <xdje42@gmail.com>
858 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
859 symtab.dirname updated to use it.
861 2014-11-18 Doug Evans <xdje42@gmail.com>
863 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
864 symtab.objfile updated to use it.
866 2014-11-18 Doug Evans <xdje42@gmail.com>
868 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
870 2014-11-18 Doug Evans <xdje42@gmail.com>
872 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
874 * findvar.c (default_read_var_value): Ditto.
875 * jv-lang.c (add_class_symtab_symbol): Ditto.
876 * parse.c (operator_check_standard): Ditto.
877 * printcmd.c (address_info): Ditto.
878 * symtab.c (fixup_symbol_section): Ditto.
879 (skip_prologue_sal): Ditto.
880 * tracepoint.c (scope_info): Ditto.
881 * valops.c (find_function_in_inferior): Ditto.
882 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
883 * python/py-symbol.c (set_symbol): Ditto.
885 2014-11-18 Doug Evans <xdje42@gmail.com>
887 * buildsym.c (main_subfile): New static global.
888 (free_subfiles_list): New function.
889 (start_symtab): Set main_subfile.
890 (restart_symtab): Replace init of subfiles, current_subfile with
891 call to free_subfiles_list.
892 (watch_main_source_file_lossage): Use main_subfile.
893 (reset_symtab_globals): Replace init of current_subfile with call
894 to free_subfiles_list.
895 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
896 functions, split out from ...
897 (end_symtab_from_static_block): ... here. Rewrite to call them.
899 2014-11-18 Doug Evans <xdje42@gmail.com>
901 The result of symtab expansion is always a primary symtab.
902 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
903 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
904 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
905 (psymtab_to_symtab): Add comment and assert.
906 (map_matching_symbols_psymtab): Remove unnecessary test for
909 2014-11-15 Doug Evans <xdje42@gmail.com>
912 * symtab.c (find_pc_line_symtab): New function.
913 * symtab.h (find_pc_line_symtab): Declare.
914 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
916 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
917 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
918 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
919 * tui/tui-win.c (make_visible_with_new_height): Ditto.
920 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
921 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
923 2014-11-15 Doug Evans <xdje42@gmail.com>
925 * symtab.c (expand_symtab_containing_pc): Renamed from
926 find_pc_sect_symtab_via_partial. All callers updated.
928 2014-11-15 Yao Qi <yao@codesourcery.com>
930 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
932 2014-11-14 Joel Brobecker <brobecker@adacore.com>
934 * common/common-defs.h: Move <stdarg.h> #include ahead of
937 2014-11-14 Pedro Alves <palves@redhat.com>
939 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
940 [!PHONY_ICONV] (gdb_iconv): New function.
941 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
943 2014-11-13 Doug Evans <dje@google.com>
946 * dwarf2read.c (find_slot_in_mapped_hash): Handle
947 "(anonymous namespace)".
949 2014-11-13 Doug Evans <dje@google.com>
951 * dwarf2read.c (update_enumeration_type_from_children): Avoid
954 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
956 * NEWS (maint set target-async): Fix typo.
958 2014-11-12 Pedro Alves <palves@redhat.com>
960 * infrun.c (enum infwait_states, infwait_state): Delete.
962 2014-11-12 Pedro Alves <palves@redhat.com>
964 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
965 Rewrite stepping over a permanent breakpoint.
966 (thread_still_needs_step_over, proceed): Don't set
967 stepping_over_breakpoint for permanent breakpoints.
968 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
969 single-step breakpoints out of the target on hardware step
971 (process_event_stop_test): If stepping a permanent breakpoint
972 doesn't hit the step-resume breakpoint, delete the step-resume
974 (switch_back_to_stepped_thread): Also check if the stepped thread
975 has advanced already on hardware step targets.
976 (currently_stepping): Return true if the thread stepped a
979 2014-11-12 Pedro Alves <palves@redhat.com>
981 Mark locations as permanent, not the whole breakpoint.
982 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
983 (mark_breakpoints_out): Don't mark permanent breakpoints as
985 (breakpoint_init_inferior): Use mark_breakpoints_out.
986 (breakpoint_here_p): Adjust.
987 (bpstat_stop_status, describe_other_breakpoints): Remove handling
988 of permanent breakpoints.
989 (make_breakpoint_permanent): Mark each location as permanent,
990 instead of marking the breakpoint.
991 (add_location_to_breakpoint): If the location is permanent, mark
992 it as such, and as inserted.
993 (init_breakpoint_sal): Don't make the breakpoint permanent here.
994 (bp_location_compare, update_global_location_list): Adjust.
995 (update_breakpoint_locations): Don't make the breakpoint permanent
997 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
999 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1000 (struct bp_location) <permanent>: New field.
1001 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1002 reference to bp_permanent.
1004 2014-11-12 Pedro Alves <palves@redhat.com>
1006 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1007 * arch-utils.h (default_skip_permanent_breakpoint): New
1009 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1010 Install default_skip_permanent_breakpoint as default method.
1011 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1012 (i386_gdbarch_init): Don't install it.
1013 * infrun.c (resume): Assume there's always a
1014 gdbarch_skip_permanent_breakpoint implementation.
1015 * gdbarch.h, gdbarch.c: Regenerate.
1017 2014-11-11 Daniel Colascione <dancol@dancol.org>
1019 Warn about cross-PID-namespace debugging.
1020 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1021 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1022 * linux-thread-db.c (check_pid_namespace_match): New function.
1023 (thread_db_inferior_created): Call it.
1025 2014-11-10 Doug Evans <xdje42@gmail.com>
1027 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1028 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1030 2014-11-10 Doug Evans <xdje42@gmail.com>
1032 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1034 2014-11-10 Doug Evans <xdje42@gmail.com>
1037 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1038 (lookup_static_symbol): Move definition to new location and rewrite.
1039 (lookup_symbol_in_objfile): New function.
1040 (lookup_symbol_global_iterator_cb): Call it.
1042 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1044 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1046 2014-11-07 Pedro Alves <palves@redhat.com>
1048 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1049 check if we did a "nexti" inside a prologue.
1050 * symtab.c (in_prologue): Delete function.
1051 * symtab.h (in_prologue): Delete declaration.
1053 2014-11-06 Doug Evans <xdje42@gmail.com>
1055 * symtab.h (lookup_global_symbol): Improve function comment.
1057 2014-11-06 Doug Evans <xdje42@gmail.com>
1059 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1060 All callers updated.
1061 * symtab.h (lookup_global_symbol): Update decl.
1062 (lookup_static_symbol): Move decl to better location.
1064 2014-11-06 Doug Evans <xdje42@gmail.com>
1066 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1068 2014-11-06 Doug Evans <xdje42@gmail.com>
1070 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1071 All callers updated.
1072 (lookup_symbol_in_all_objfiles): Renamed from
1073 lookup_symbol_aux_symtabs. All callers updated.
1074 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1075 All callers updated.
1076 (lookup_symbol_in_objfile_symtabs): Renamed from
1077 lookup_symbol_aux_objfile. All callers updated.
1079 2014-11-06 Doug Evans <xdje42@gmail.com>
1081 * symtab.c (lookup_symbol_in_block): Renamed from
1082 lookup_symbol_aux_block. All callers updated.
1084 2014-11-06 Doug Evans <xdje42@gmail.com>
1086 * symtab.c (lookup_static_symbol): Renamed from
1087 lookup_static_symbol_aux. All callers updated.
1088 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1089 All callers updated.
1091 2014-11-06 Doug Evans <xdje42@gmail.com>
1093 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1094 * block.c (block_lookup_symbol): Use it.
1095 * cp-support.c (make_symbol_overload_list_block): Use it.
1096 * symtab.c (iterate_over_symbols): Use it.
1098 2014-11-06 Doug Evans <xdje42@gmail.com>
1100 * symtab.c (lookup_block_symbol): Moved to ...
1101 * block.c (block_lookup_symbol): ... here and renamed.
1102 All callers updated.
1103 * block.h (block_lookup_symbol): Declare.
1104 * symtab.h (lookup_block_symbol): Delete.
1106 2014-11-06 Doug Evans <xdje42@gmail.com>
1108 * ada-lang.c (ada_make_symbol_completion_list): Use
1109 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1110 * symtab.c (lookup_objfile_from_block): Ditto.
1112 2014-11-06 Doug Evans <xdje42@gmail.com>
1114 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1117 2014-11-06 Doug Evans <xdje42@gmail.com>
1119 * objfiles.c (get_objfile_arch): Constify.
1120 * objfiles.h (get_objfile_arch): Update prototype.
1121 * solib.c (solib_global_lookup): Fetch arch from objfile,
1124 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1126 * nios2-tdep.c (wild_insn): Delete.
1127 (profiler_insn, irqentry_insn): Delete.
1128 (nios2_match_sequence): Delete.
1129 (nios2_analyze_prologue): Update comments. Remove matching
1130 of obsolete profiler_insn and irqentry_insn sequences.
1132 2014-11-05 Alan Modra <amodra@gmail.com>
1134 * charset.c (convert_between_encodings): Shrink obstack using
1136 * minsyms.c (install_minimal_symbols): Likewise.
1137 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1138 to char* before doing pointer arithmetic.
1140 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1142 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1144 2014-11-04 Pedro Alves <palves@redhat.com>
1146 * breakpoint.c (breakpoint_thread_match): Delete function.
1147 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1149 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1152 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1153 the method args also under EVAL_SKIP when evaluating method
1154 calls under EVAL_SKIP.
1156 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1158 * dwarf2loc.c (read_pieced_value): Do big endian
1159 processing only if gdb_regnum is not -1.
1160 (write_pieced_value): Ditto.
1162 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1164 * arm-linux-tdep.c (arm_linux_init_abi): Use
1165 info.byte_order_for_code to choose endianity of breakpoint
1166 instructions snippets.
1168 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1170 * arm-tdep.c (extract_arm_insn): Use
1171 gdbarch_byte_order_for_code to read arm instruction.
1173 2014-11-02 Doug Evans <xdje42@gmail.com>
1175 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1177 2014-11-02 Doug Evans <xdje42@gmail.com>
1179 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1180 main_subfile before returning.
1182 2014-10-31 Doug Evans <xdje42@gmail.com>
1184 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1185 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1187 2014-10-31 Doug Evans <xdje42@gmail.com>
1189 * valops.c (value_cast_pointers): Fix whitespace.
1190 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1193 2014-10-30 Doug Evans <dje@google.com>
1195 * NEWS: Mention ability add attributes to gdb.Objfile and
1196 gdb.Progspace objects.
1197 * python/py-objfile.c (objfile_object): New member dict.
1198 (objfpy_dealloc): Py_XDECREF dict.
1199 (objfpy_initialize): Initialize dict.
1200 (objfile_getset): Add __dict__.
1201 (objfile_object_type): Set tp_dictoffset member.
1202 * python/py-progspace.c (progspace_object): New member dict.
1203 (pspy_dealloc): Py_XDECREF dict.
1204 (pspy_initialize): Initialize dict.
1205 (pspace_getset): Add __dict__.
1206 (pspace_object_type): Set tp_dictoffset member.
1208 2014-10-30 Yao Qi <yao@codesourcery.com>
1210 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1211 replace '\\' with '\\\\'.
1213 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1217 2014-10-29 Pedro Alves <palves@redhat.com>
1220 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1221 instead of assuming a thread with a stepping range is always
1224 2014-10-29 Pedro Alves <palves@redhat.com>
1227 * event-top.c (change_line_handler): Call
1228 gdb_rl_callback_handler_remove instead of
1229 rl_callback_handler_remove.
1230 (callback_handler_installed): New global.
1231 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1232 (gdb_rl_callback_handler_reinstall): New functions.
1233 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1234 gdb_rl_callback_handler_install instead of
1235 rl_callback_handler_remove and rl_callback_handler_install.
1236 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1237 instead of rl_callback_handler_remove.
1238 * event-top.h (gdb_rl_callback_handler_remove)
1239 (gdb_rl_callback_handler_install)
1240 (gdb_rl_callback_handler_reinstall): New declarations.
1241 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1243 (fetch_inferior_event): Install it.
1244 * top.c (gdb_readline_wrapper_line) Call
1245 gdb_rl_callback_handler_remove instead of
1246 rl_callback_handler_remove.
1247 (gdb_readline_wrapper_cleanup): Don't call
1248 rl_callback_handler_install.
1250 2014-10-29 Pedro Alves <palves@redhat.com>
1252 * event-top.c (command_line_handler): Clear the first byte of
1253 linebuffer, when it is first allocated.
1255 2014-10-29 Pedro Alves <palves@redhat.com>
1257 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1260 2014-10-29 Pedro Alves <palves@redhat.com>
1264 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1265 (tui_allowed_p): Delete function.
1266 * tui/tui.c: Include "interps.h".
1267 (tui_enable): Don't use tui_allowed_p. Error out here with
1268 detailed error messages if the TUI is the top level interpreter,
1269 or if output is not a terminal. Use newterm instead of initscr,
1270 and error out if initializing the terminal fails. Also error out if
1271 the terminal doesn't support cursor addressing.
1272 * tui/tui.h (tui_allowed_p): Delete declaration.
1274 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1276 * arm-tdep.c (arm_skip_stack_protector): Return early if
1277 address loaded by first "ldr" instruction does not have
1278 a corresponding minimal symbol. Update comment.
1280 2014-10-29 Yao Qi <yao@codesourcery.com>
1282 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1283 loaded address correctly of ldr instruction.
1285 2014-10-28 Pedro Alves <palves@redhat.com>
1288 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1290 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1291 thread's stepped_breakpoint field. Skip if reverse debugging.
1293 (init_thread_stepping_state, handle_signal_stop): Clear the
1294 thread's stepped_breakpoint field.
1296 2014-10-27 Pedro Alves <palves@redhat.com>
1298 * remote.c (remote_thread_alive): New, factored out from ...
1299 (remote_thread_alive): ... this.
1300 (remote_update_thread_list): Bail out before deleting threads if
1301 the target returned an empty list, and, the current thread has a
1304 2014-10-27 Pedro Alves <palves@redhat.com>
1306 * infrun.c (handle_signal_stop): Also skip handlers when a random
1307 signal arrives while handling a "stepi" or a "nexti". Set the
1308 thread's 'step_after_step_resume_breakpoint' flag.
1310 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1312 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1313 (arm_record_ld_st_imm_offset): Reimplement to cover all
1314 load/store cases for ARM opcode 010.
1315 (arm_record_ld_st_multiple): Reimplement to cover all
1316 load/store cases for ARM opcode 100.
1318 2014-10-26 Doug Evans <xdje42@gmail.com>
1320 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1322 2014-10-26 Doug Evans <xdje42@gmail.com>
1324 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1325 parameter "kind" to "block_index".
1326 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1328 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1330 2014-10-26 Doug Evans <xdje42@gmail.com>
1332 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1334 2014-10-26 Doug Evans <xdje42@gmail.com>
1336 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1339 2014-10-26 Doug Evans <xdje42@gmail.com>
1341 * parser-defs.h (block_found): Move decl from here ...
1342 * symtab.h (block_found): ... to here.
1344 2014-10-26 Doug Evans <xdje42@gmail.com>
1346 * symtab.h (struct field_of_this_result): Fix typo in comment.
1347 (lookup_symbol_in_language): Move function comment here.
1348 (lookup_symbol): Improve function comment.
1349 (basic_lookup_symbol_nonlocal): Ditto.
1350 (lookup_symbol_static, lookup_symbol_global): Ditto.
1351 (lookup_symbol_aux_block): Ditto.
1352 (lookup_language_this): Add function comment.
1353 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1355 (lookup_block_symbol): Improve function comment.
1356 (lookup_struct): Fix capitalization in function comment.
1357 (lookup_transparent_type): Add function comment.
1358 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1359 Improve function comment.
1360 (lookup_objfile_from_block): Add function comment.
1361 * symtab.c (lookup_symbol_in_language): Update function comment.
1362 (lookup_symbol, lookup_language_this): Ditto.
1363 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1364 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1365 (basic_lookup_symbol_nonlocal): Ditto.
1366 (lookup_symbol_static, lookup_symbol_global): Ditto.
1367 (lookup_transparent_type, lookup_block_symbol): Ditto.
1369 2014-10-25 Doug Evans <xdje42@gmail.com>
1371 * symtab.c (types_info): Delete forward decl.
1372 (functions_info, variables_info, sources_info): Ditto.
1373 (_initialize_symtab): Rewrite forward decl to use
1374 initialize_file_ftype.
1376 2014-10-25 Doug Evans <xdje42@gmail.com>
1378 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1380 2014-10-25 Doug Evans <xdje42@gmail.com>
1382 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1383 of local var child_die.
1385 2014-10-24 Don Breazeal <donb@codesourcery.com>
1387 * infrun.c (follow_fork_inferior): Update fork message printing
1388 to use target_terminal_ours_for_output instead of
1389 target_terminal_ours, to use _() for all format strings, to print
1390 "vfork" instead of "fork" for vforks, and to add a detach message.
1391 (handle_vfork_child_exec_or_exit): Update message printing to use
1392 target_terminal_ours_for_output instead of target_terminal_ours, to
1393 use _() for all format strings, and to fix some formatting.
1395 2014-10-24 Pedro Alves <palves@redhat.com>
1397 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1398 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1399 * config/vax/vax.mh: Delete.
1400 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1401 obsolete configurations section.
1402 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1403 * vax-nat.c: Delete file.
1405 2014-10-24 Pedro Alves <palves@redhat.com>
1407 * NEWS (Removed targets): Add OS/arch column.
1409 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1411 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1412 on the arg type of a constructor only if it is of reference type.
1414 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1416 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1417 accessors and constants from nios2 opcodes update.
1418 (nios2_get_next_pc): Likewise.
1420 2014-10-19 Doug Evans <xdje42@gmail.com>
1422 * gdbthread.h (set_running): Fix comment.
1423 (set_executing, finish_thread_state): Fix comment.
1425 2014-10-18 Doug Evans <xdje42@gmail.com>
1427 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1429 2014-10-17 Doug Evans <dje@google.com>
1431 * NEWS: Mention new event gdb.clear_objfiles.
1432 * python/py-event.h (emit_clear_objfiles_event): Clear
1433 * python/py-events.h (events_object): New member clear_objfiles.
1434 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1436 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1437 emit clear_objfiles event.
1438 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1440 (emit_clear_objfiles_event): New function.
1441 (clear_objfiles): New event.
1442 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1444 * python/python.c (_initialize_python): Call
1445 gdbpy_initialize_clear_objfiles_event.
1447 2014-10-17 Doug Evans <dje@google.com>
1449 * NEWS: Mention new gdb.Objfile.progspace attribute.
1450 * python/py-objfile.c (objfpy_get_progspace): New function.
1451 (objfile_getset): New entry for "progspace".
1453 2014-10-17 Pedro Alves <palves@redhat.com>
1456 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1457 returns a copy of the input.
1458 (run_command_1, continue_command, step_1, jump_command)
1459 (signal_command, until_command, advance_command, finish_command)
1460 (attach_command): Adjust and install a cleanup to free the
1463 2014-10-17 Pedro Alves <palves@redhat.com>
1466 * infcmd.c (continue_1): If continuing all threads in the
1467 foreground, make sure the inferior's terminal settings are put in
1470 2014-10-17 Pedro Alves <palves@redhat.com>
1473 * annotate.c (annotate_breakpoints_invalid): Use
1474 target_terminal_our_for_output instead of target_terminal_ours.
1475 Give back the terminal to the target.
1476 (annotate_frames_invalid): Likewise.
1478 2014-10-17 Pedro Alves <palves@redhat.com>
1480 * target.c (enum terminal_state): New enum.
1481 (terminal_state): New global.
1482 (target_terminal_init): New function.
1483 (target_terminal_inferior): Skip if inferior already owns the
1485 (target_terminal_ours, target_terminal_ours_for_output): New
1487 * target.h (target_terminal_init): Convert to function prototype.
1488 (target_terminal_ours_for_output): Convert to function prototype
1490 (target_terminal_ours): Convert to function prototype and tweak
1492 * windows-nat.c (do_initial_windows_stuff): Call
1493 target_terminal_init instead of child_terminal_init_with_pgrp.
1495 2014-10-17 Pedro Alves <palves@redhat.com>
1497 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1498 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1499 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1501 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1502 * ada-lang.h [__alpha__ && __osf__]
1503 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1504 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1505 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1507 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1509 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1510 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1511 * configure: Regenerate.
1512 * configure.ac: Remove references to osf.
1513 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1514 section. Remove all other references to osf.
1515 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1516 Remove all other references to osf.
1517 * dec-thread.c: Delete file.
1518 * defs.h (GDB_OSABI_OSF1): Delete.
1519 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1521 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1522 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1524 (unconditionally_kill_inferior)
1525 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1526 * solib-osf.c: Delete file.
1528 2014-10-17 Pedro Alves <palves@redhat.com>
1530 * remote.c (clear_threads_listing_context): Move higher up, out of
1531 the HAVE_LIBEXPAT guard.
1533 2014-10-16 Tristan Gingold <gingold@adacore.com>
1535 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1536 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1539 2014-10-15 Pedro Alves <palves@redhat.com>
1541 * dec-thread.c (dec_thread_count_gdb_threads)
1542 (dec_thread_add_gdb_thread): Delete.
1543 (dec_thread_update_thread_list): Delete.
1544 (dec_thread_find_new_threads): Rename to ...
1545 (dec_thread_update_thread_list): ... this. Delete GDB-size
1546 threads that are no longer found in dec_thread_list.
1547 (resync_thread_list): Delete.
1548 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1551 2014-10-15 Pedro Alves <palves@redhat.com>
1553 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1554 * remote.c (remote_update_thread_list): Skip calling prune_threads
1555 if any thread listing method is supported, and instead walk over
1556 the set of remote threads listed, deleting those that are not
1557 found in GDB's thread list.
1559 2014-10-15 Pedro Alves <palves@redhat.com>
1561 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1562 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1563 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1564 (bsd_uthread_target): Adjust.
1565 * corelow.c (core_open): Adjust.
1566 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1567 (dec_thread_update_thread_list): New function.
1568 (init_dec_thread_ops): Adjust.
1569 * gdbthread.h (prune_threads): New declaration.
1570 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1571 (thread_db_update_thread_list): ... this. Call prune_threads.
1572 (init_thread_db_ops): Adjust.
1573 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1574 (procfs_update_thread_list): ... this. Call prune_threads.
1575 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1577 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1578 (obsd_update_thread_list): ... this. Call prune_threads.
1579 (obsd_add_target): Adjust.
1580 * procfs.c (procfs_target): Adjust.
1581 (procfs_notice_thread): Update comment.
1582 (procfs_find_new_threads): Rename to ...
1583 (procfs_update_thread_list): ... this. Call prune_threads.
1584 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1586 (ravenscar_wait): Adjust.
1587 (ravenscar_find_new_threads): Rename to ...
1588 (ravenscar_update_thread_list): ... this. Call prune_threads.
1589 (init_ravenscar_thread_ops): Adjust.
1590 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1591 (record_btrace_update_thread_list): ... this. Adjust comment.
1592 (init_record_btrace_ops): Adjust.
1593 * remote.c (remote_threads_info): Rename to ...
1594 (remote_update_thread_list): ... this. Call prune_threads.
1595 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1597 * sol-thread.c (check_for_thread_db): Adjust.
1598 (sol_find_new_threads_callback): Rename to ...
1599 (sol_update_thread_list_callback): ... this.
1600 (sol_find_new_threads): Rename to ...
1601 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1602 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1603 * target-delegates.c: Regenerate.
1604 * target.c (target_find_new_threads): Rename to ...
1605 (target_update_thread_list): ... this.
1606 * target.h (struct target_ops): Rename to_find_new_threads field
1607 to to_update_thread_list.
1608 (target_find_new_threads): Rename to ...
1609 (target_update_thread_list): ... this.
1610 * thread.c (prune_threads): Make extern.
1611 (update_thread_list): Adjust.
1613 2014-10-15 Pedro Alves <palves@redhat.com>
1615 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1616 Add describing comment. Return -1 if the qL packet is not
1618 (struct thread_item, thread_item_t): Move higher up in
1619 the file. Add comments.
1620 (struct threads_parsing_context): Move higher up in
1621 the file, add comments, and remote to ...
1622 (struct threads_listing_context): ... this.
1623 (remote_newthread_step): Don't add the thread to GDB's thread
1624 database here. Instead push it to the thread_listing_context
1626 (remote_find_new_threads): Rename to ...
1627 (remote_get_threads_with_ql): ... this. Add target_ops and
1628 targets_listing_context parameters. Pass down context.
1629 (start_thread): Adjust.
1630 (clear_threads_parsing_context): Rename to ...
1631 (clear_threads_listing_context): ... this.
1632 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1633 remote_threads_info.
1634 (remote_get_threads_with_qthreadinfo): Ditto.
1635 (remote_threads_info): Reimplement.
1637 2014-10-15 Pedro Alves <palves@redhat.com>
1639 * infrun.c (resume): Don't force displaced-stepping for all
1640 single-steps on software single-stepping archs.
1642 2014-10-15 Pedro Alves <palves@redhat.com>
1644 * breakpoint.c (single_step_breakpoints): Delete global.
1645 (insert_single_step_breakpoint): Adjust to store the breakpoint
1646 pointer in the current thread.
1647 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1648 (cancel_single_step_breakpoints): Delete functions.
1649 (breakpoint_has_location_inserted_here): Make extern.
1650 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1652 * breakpoint.h (breakpoint_has_location_inserted_here): New
1654 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1655 (cancel_single_step_breakpoints): Remove declarations.
1656 * gdbthread.h (struct thread_control_state)
1657 <single_step_breakpoints>: New field.
1658 (delete_single_step_breakpoints)
1659 (thread_has_single_step_breakpoints_set)
1660 (thread_has_single_step_breakpoint_here): New declarations.
1661 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1662 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1663 (singlestep_pc): Delete globals.
1664 (infrun_thread_ptid_changed): Remove references to removed
1666 (resume_cleanups): Delete the current thread's single-step
1668 (maybe_software_singlestep): Remove references to removed globals.
1669 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1670 delete_single_step_breakpoints.
1671 (init_wait_for_inferior): Remove references to removed globals.
1672 (delete_thread_infrun_breakpoints): Delete the thread's
1673 single-step breakpoints too.
1674 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1675 single-step breakpoints here.
1676 (delete_stopped_threads_single_step_breakpoints): New function.
1677 (adjust_pc_after_break): Adjust to use
1678 thread_has_single_step_breakpoints_set.
1679 (handle_inferior_event): Remove references to removed globals.
1680 Use delete_stopped_threads_single_step_breakpoints.
1681 (handle_signal_stop): Adjust to per-thread single-step
1682 breakpoints. Swap test order to do cheaper tests first.
1683 (switch_back_to_stepped_thread): Extend debug output. Remove
1684 references to removed globals.
1685 * record-full.c (record_full_wait_1): Adjust to per-thread
1686 single-step breakpoints.
1687 * thread.c (delete_single_step_breakpoints)
1688 (thread_has_single_step_breakpoints_set)
1689 (thread_has_single_step_breakpoint_here): New functions.
1690 (clear_thread_inferior_resources): Also delete the thread's
1691 single-step breakpoints.
1693 2014-10-15 Pedro Alves <palves@redhat.com>
1695 * thread.c (delete_thread_breakpoint): New function.
1696 (delete_step_resume_breakpoint)
1697 (delete_exception_resume_breakpoint): Use it.
1698 (delete_at_next_stop): New function.
1699 (clear_thread_inferior_resources): Use delete_at_next_stop.
1701 2014-10-15 Pedro Alves <palves@redhat.com>
1703 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1704 (breakpoint_inserted_here_p): ... here. Remove special case for
1705 software single-step breakpoints.
1706 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1707 (software_breakpoint_inserted_here_p): ... here. Remove special
1708 case for software single-step breakpoints.
1709 (bp_target_info_copy_insertion_state)
1710 (deprecated_insert_raw_breakpoint)
1711 (deprecated_remove_raw_breakpoint): Delete functions.
1712 * breakpoint.h (deprecated_insert_raw_breakpoint)
1713 (deprecated_remove_raw_breakpoint): Remove declarations.
1715 2014-10-15 Pedro Alves <palves@redhat.com>
1718 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1719 Delete array globals.
1720 (single_step_breakpoints): New global.
1721 (breakpoint_xfer_memory): Remove special handling for single-step
1723 (update_breakpoints_after_exec): Delete bp_single_step
1725 (detach_breakpoints): Remove special handling for single-step
1727 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1728 (bpstat_stop_status): Add comment.
1729 (bpstat_what, bptype_string, print_one_breakpoint_location)
1730 (adjust_breakpoint_address, init_bp_location): Handle
1732 (new_single_step_breakpoint): New function.
1733 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1734 handling for single-step breakpoints.
1735 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1736 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1738 (detach_single_step_breakpoints, find_single_step_breakpoint):
1740 (breakpoint_has_location_inserted_here): New function.
1741 (single_step_breakpoint_inserted_here_p): Rewrite.
1742 * breakpoint.h: Remove FIXME.
1743 (enum bptype) <bp_single_step>: New enum value.
1744 (insert_single_step_breakpoint): Update comment.
1745 * infrun.c (resume_cleanups)
1746 (delete_step_thread_step_resume_breakpoint): Remove single-step
1748 (fetch_inferior_event): Install a cleanup that removes infrun
1750 (switch_back_to_stepped_thread) <expect thread advanced also>:
1751 Clear step-over info.
1753 2014-10-15 Pedro Alves <palves@redhat.com>
1755 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1756 (delete_thread_infrun_breakpoints): New function, with parts
1757 salvaged from delete_step_resume_breakpoint_callback.
1758 (delete_step_thread_step_resume_breakpoint): Delete.
1759 (for_each_just_stopped_thread_callback_func): New typedef.
1760 (for_each_just_stopped_thread): New function.
1761 (delete_just_stopped_threads_infrun_breakpoints): New function.
1762 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1763 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1765 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1767 2014-10-15 Pedro Alves <palves@redhat.com>
1769 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1770 trying to step past a non-steppable watchpoint.
1771 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1773 * infrun.c (struct step_over_info): Add new field
1774 'nonsteppable_watchpoint_p' and adjust comments.
1775 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1777 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1778 (stepping_past_nonsteppable_watchpoint): New function.
1779 (step_over_info_valid_p): Also return true if stepping past a
1780 nonsteppable watchpoint.
1781 (proceed): Adjust call to set_step_over_info. Remove reference to
1783 (init_wait_for_inferior): Remove reference to init_infwait_state.
1784 (waiton_ptid): Delete global.
1785 (struct execution_control_state)
1786 <stepped_after_stopped_by_watchpoint>: Delete field.
1787 (wait_for_inferior, fetch_inferior_event): Always pass
1788 minus_one_ptid to target_wait.
1789 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1791 (init_infwait_state): Delete function.
1792 (handle_inferior_event): Remove infwait_state handling.
1793 (handle_signal_stop) <watchpoints handling>: Adjust after
1794 stepped_after_stopped_by_watchpoint removal. Don't remove
1795 breakpoints here nor set infwait_state. Set the thread's
1796 stepping_over_watchpoint flag, and call keep_going instead.
1797 (keep_going): Handle stepping_over_watchpoint. Adjust
1798 set_step_over_info calls.
1799 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1802 2014-10-15 Pedro Alves <palves@redhat.com>
1804 * infrun.c (step_over_info_valid_p): New function.
1805 (resume): Use step_over_info_valid_p instead of checking the
1806 threads's trap_expected flag.
1808 2014-10-15 Doug Evans <dje@google.com>
1809 Walfred Tedeschi <walfred.tedeschi@intel.com>
1812 * python/lib/gdb/__init__.py (packages): Add "printer".
1813 * python/lib/gdb/command/bound_registers.py: Moved to ...
1814 * python/lib/gdb/printer/bound_registers.py: ... here.
1815 Add printer to global set of builtin printers. Rename printer from
1816 "bound" to "mpx_bound128".
1817 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1818 registered as global "builtin" printer.
1819 (add_builtin_pretty_printer): New function.
1820 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1821 gdb/printer/__init__.py.
1823 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1825 * Makefile.in (SFILES): Remove d-support.c.
1826 (COMMON_OBS): Remove d-support.o.
1827 * d-lang.h (d_parse_symbol): Remove declaration.
1828 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1829 * d-support.c: Remove file.
1831 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1833 * gdb/infrun.c (process_event_stop_test): Apply
1834 gdbarch_addr_bits_remove to longjmp resume address.
1836 2014-10-15 Pedro Alves <palves@redhat.com>
1838 * regformats/microblaze.dat: Delete file.
1840 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1842 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1843 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1845 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1847 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1850 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1854 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1855 with qualified args.
1857 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1859 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1860 of the case where the second operand is a pointer.
1861 <BINOP_SUB>: Likewise.
1863 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1865 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1866 only if it is not NULL.
1867 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1868 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1869 (struct probe_ops) <clear_semaphore>: Likewise.
1870 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1872 (stop_tracing): Likewise, for clear_semaphore.
1874 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1876 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1877 using language_c, instead of current_language.
1879 2014-10-13 Doug Evans <dje@google.com>
1881 * python/py-objfile.c (objfpy_initialize): New function.
1882 (objfpy_new, objfile_to_objfile_object): Call it.
1883 * python/py-progspace.c (pspy_initialize): New function.
1884 (pspy_new, pspace_to_pspace_object): Call it.
1886 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1887 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Fix "save breakpoints" for "catch" command.
1890 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1893 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1895 Fix "save breakpoints" for "disable $bpnum" command.
1896 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1898 2014-10-10 Pedro Alves <palves@redhat.com>
1900 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1901 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1902 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1903 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1905 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1906 * configure.ac: Remove references to IRIX.
1907 * configure.host: Add *-*-irix* to the obsolete hosts section.
1908 Remove all other references to irix.
1909 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1912 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1914 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1915 isn't valid, release the tdesc arch data and return NULL.
1917 2014-10-10 Pedro Alves <palves@redhat.com>
1919 * linux-tdep.c: Include observer.h.
1920 (linux_inferior_data): New global.
1921 (struct linux_info): New structure.
1922 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1923 (get_linux_inferior_data): New functions.
1924 (linux_vsyscall_range): Rename to ...
1925 (linux_vsyscall_range_raw): ... this.
1926 (linux_vsyscall_range): New function; handles caching.
1927 (_initialize_linux_tdep): Register linux_inferior_data. Install
1928 inferior_exit and inferior_appeared observers.
1930 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1931 Pedro Alves <palves@redhat.com>
1934 * solib-svr4.c (svr4_read_so_list): Rename to ...
1935 (svr4_current_sos_1): ... this and change the function comment.
1936 (svr4_current_sos): New function.
1938 2014-10-10 Pedro Alves <palves@redhat.com>
1940 * arch-utils.c (default_vsyscall_range): New function.
1941 * arch-utils.h (default_vsyscall_range): New declaration.
1942 * gdbarch.sh (vsyscall_range): New hook.
1943 * gdbarch.h, gdbarch.c: Regenerate.
1944 * linux-tdep.c (linux_vsyscall_range): New function.
1945 (linux_init_abi): Install linux_vsyscall_range as
1946 vsyscall_range gdbarch hook.
1947 * memrange.c (address_in_mem_range): New function.
1948 * memrange.h (address_in_mem_range): New declaration.
1949 * symfile-mem.c (find_vdso_size): Delete function.
1950 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1952 2014-10-10 Pedro Alves <palves@redhat.com>
1954 * infrun.c (normal_stop): Fix typo in comment.
1956 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1959 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1960 typo when using logical AND to determine instruction type.
1962 2014-10-09 Yao Qi <yao@codesourcery.com>
1964 * infrun.c (handle_signal_stop): Remove local variable
1967 2014-10-08 Stan Shebs <stan@codesourcery.com>
1969 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1971 2014-10-08 Gary Benson <gbenson@redhat.com>
1973 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1975 2014-10-08 Gary Benson <gbenson@redhat.com>
1977 * common/common-defs.h: Include common-exceptions.h.
1978 * exceptions.h: Do not include common-exceptions.h.
1980 2014-10-08 Gary Benson <gbenson@redhat.com>
1982 * common/common-defs.h: Include cleanups.h.
1983 * common/common-exceptions.c: Do not include cleanups.h.
1984 * utils.h: Likewise.
1986 2014-10-08 Gary Benson <gbenson@redhat.com>
1988 * ada-lang.c: Do not include exceptions.h.
1989 * ada-valprint.c: Likewise.
1990 * amd64-tdep.c: Likewise.
1991 * auto-load.c: Likewise.
1992 * block.c: Likewise.
1993 * break-catch-throw.c: Likewise.
1994 * breakpoint.c: Likewise.
1995 * btrace.c: Likewise.
1996 * c-lang.c: Likewise.
1997 * cli/cli-cmds.c: Likewise.
1998 * cli/cli-interp.c: Likewise.
1999 * cli/cli-script.c: Likewise.
2000 * completer.c: Likewise.
2001 * corefile.c: Likewise.
2002 * corelow.c: Likewise.
2003 * cp-abi.c: Likewise.
2004 * cp-support.c: Likewise.
2005 * cp-valprint.c: Likewise.
2006 * darwin-nat.c: Likewise.
2007 * dwarf2-frame-tailcall.c: Likewise.
2008 * dwarf2-frame.c: Likewise.
2009 * dwarf2loc.c: Likewise.
2010 * dwarf2read.c: Likewise.
2012 * event-loop.c: Likewise.
2013 * event-top.c: Likewise.
2014 * f-valprint.c: Likewise.
2015 * frame-unwind.c: Likewise.
2016 * frame.c: Likewise.
2017 * gdbtypes.c: Likewise.
2018 * gnu-v2-abi.c: Likewise.
2019 * gnu-v3-abi.c: Likewise.
2020 * guile/scm-auto-load.c: Likewise.
2021 * guile/scm-breakpoint.c: Likewise.
2022 * guile/scm-cmd.c: Likewise.
2023 * guile/scm-frame.c: Likewise.
2024 * guile/scm-lazy-string.c: Likewise.
2025 * guile/scm-param.c: Likewise.
2026 * guile/scm-symbol.c: Likewise.
2027 * guile/scm-type.c: Likewise.
2028 * hppa-hpux-tdep.c: Likewise.
2029 * i386-tdep.c: Likewise.
2030 * inf-loop.c: Likewise.
2031 * infcall.c: Likewise.
2032 * infcmd.c: Likewise.
2033 * infrun.c: Likewise.
2034 * interps.c: Likewise.
2035 * interps.h: Likewise.
2037 * linespec.c: Likewise.
2038 * linux-nat.c: Likewise.
2039 * linux-thread-db.c: Likewise.
2040 * m32r-rom.c: Likewise.
2042 * memory-map.c: Likewise.
2043 * mi/mi-cmd-break.c: Likewise.
2044 * mi/mi-cmd-stack.c: Likewise.
2045 * mi/mi-interp.c: Likewise.
2046 * mi/mi-main.c: Likewise.
2047 * monitor.c: Likewise.
2048 * nto-procfs.c: Likewise.
2049 * objc-lang.c: Likewise.
2050 * p-valprint.c: Likewise.
2051 * parse.c: Likewise.
2052 * ppc-linux-tdep.c: Likewise.
2053 * printcmd.c: Likewise.
2054 * probe.c: Likewise.
2055 * python/py-auto-load.c: Likewise.
2056 * python/py-breakpoint.c: Likewise.
2057 * python/py-cmd.c: Likewise.
2058 * python/py-finishbreakpoint.c: Likewise.
2059 * python/py-frame.c: Likewise.
2060 * python/py-framefilter.c: Likewise.
2061 * python/py-function.c: Likewise.
2062 * python/py-gdb-readline.c: Likewise.
2063 * python/py-inferior.c: Likewise.
2064 * python/py-infthread.c: Likewise.
2065 * python/py-lazy-string.c: Likewise.
2066 * python/py-linetable.c: Likewise.
2067 * python/py-param.c: Likewise.
2068 * python/py-prettyprint.c: Likewise.
2069 * python/py-symbol.c: Likewise.
2070 * python/py-type.c: Likewise.
2071 * python/py-value.c: Likewise.
2072 * python/python-internal.h: Likewise.
2073 * python/python.c: Likewise.
2074 * record-btrace.c: Likewise.
2075 * record-full.c: Likewise.
2076 * regcache.c: Likewise.
2077 * remote-fileio.c: Likewise.
2078 * remote-mips.c: Likewise.
2079 * remote.c: Likewise.
2080 * rs6000-aix-tdep.c: Likewise.
2081 * rs6000-nat.c: Likewise.
2083 * solib-darwin.c: Likewise.
2084 * solib-dsbt.c: Likewise.
2085 * solib-frv.c: Likewise.
2086 * solib-ia64-hpux.c: Likewise.
2087 * solib-spu.c: Likewise.
2088 * solib-svr4.c: Likewise.
2089 * solib.c: Likewise.
2090 * spu-tdep.c: Likewise.
2091 * stack.c: Likewise.
2092 * stap-probe.c: Likewise.
2093 * symfile-mem.c: Likewise.
2094 * symmisc.c: Likewise.
2095 * target.c: Likewise.
2096 * thread.c: Likewise.
2098 * tracepoint.c: Likewise.
2099 * tui/tui-interp.c: Likewise.
2100 * typeprint.c: Likewise.
2101 * utils.c: Likewise.
2102 * valarith.c: Likewise.
2103 * valops.c: Likewise.
2104 * valprint.c: Likewise.
2105 * value.c: Likewise.
2106 * varobj.c: Likewise.
2107 * windows-nat.c: Likewise.
2108 * xml-support.c: Likewise.
2110 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2112 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2114 (extended_mips16_next_pc): Update accordingly.
2116 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2118 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2120 (micromips_instruction_is_compact_branch): Likewise.
2121 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2122 or a compact jump, reaching a jump delay slot, or seeing a
2123 second non-prologue instruction.
2124 (micromips_scan_prologue): Also terminate scanning upon seeing a
2125 compact branch or jump, or reaching a branch or jump delay slot.
2126 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2127 or jump delay slot, or seeing a second non-prologue instruction.
2128 (mips32_instruction_has_delay_slot): Retain instruction
2129 examination code only, update arguments accordingly and move
2130 instruction fetch pieces to...
2131 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2132 (micromips_instruction_has_delay_slot): Likewise and to...
2133 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2134 (mips16_instruction_has_delay_slot): Likewise and to...
2135 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2136 (mips_single_step_through_delay): Update accordingly.
2137 (mips_adjust_breakpoint_address): Likewise.
2139 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2141 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2142 !mustbe32 also return 1 for 32-bit instructions.
2143 (mips16_instruction_has_delay_slot): Likewise. Add an
2144 explanatory comment.
2146 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2148 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2151 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2153 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2155 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2156 for the breakpoint's address. Don't preinitialize `placed_size'.
2157 (insert_bp_location): Set `reqstd_address' rather than
2159 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2160 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2162 (bkpt_remove_location): Likewise.
2163 (deprecated_insert_raw_breakpoint): Likewise.
2164 (deprecated_remove_raw_breakpoint): Likewise.
2165 (find_single_step_breakpoint): Likewise.
2166 * mem-break.c (default_memory_insert_breakpoint): Use
2167 `reqstd_address' for the breakpoint's address. Don't set
2168 `placed_address' or `placed_size' if breakpoint contents couldn't
2169 have been determined.
2170 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2171 the breakpoint's address.
2172 (remote_insert_hw_breakpoint): Likewise. Don't set
2173 `placed_address' or `placed_size' if breakpoint couldn't have been
2175 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2176 `reqstd_address' for the breakpoint's address.
2177 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2178 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2179 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2180 * microblaze-linux-tdep.c
2181 (microblaze_linux_memory_remove_breakpoint): Likewise.
2182 * monitor.c (monitor_insert_breakpoint): Likewise.
2183 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2184 (procfs_insert_hw_breakpoint): Likewise.
2185 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2186 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2187 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2188 * remote-mips.c (mips_insert_breakpoint): Likewise.
2189 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2191 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2193 * valops.c (value_assign): Check for bit field assignments
2194 before calling architecture-specific register value
2195 conversion functions.
2197 2014-10-03 Pierre Muller <muller@sourceware.org>
2199 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2201 2014-10-02 Pedro Alves <palves@redhat.com>
2203 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2204 threads_are_executing.
2205 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2207 * gdbthread.h (threads_are_executing): Declare.
2208 (handle_signal_stop) <random signals>: Don't print about the
2209 signal here if stopping.
2210 (end_stepping_range): Don't notify observers here.
2211 (normal_stop): Update the thread list. If stopped by a random
2212 signal or a stepping range ended, notify observers.
2213 * thread.c (threads_executing): New global.
2214 (init_thread_list): Clear 'threads_executing'.
2215 (set_executing): Set or clear 'threads_executing'.
2216 (threads_are_executing): New function.
2217 (update_threads_executing): New function.
2218 (update_thread_list): Use it.
2220 2014-10-02 Pedro Alves <palves@redhat.com>
2222 PR breakpoints/17431
2223 * breakpoint.c (update_breakpoints_after_exec): Don't create
2224 overlay, longjmp, std terminate nor exception breakpoints here.
2226 2014-10-02 Pedro Alves <palves@redhat.com>
2228 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2230 * inferior.c (find_inferior_for_program_space): Give preference to
2231 the current inferior.
2232 * inferior.h (find_inferior_for_program_space): Update comment.
2233 * progspace.c (switch_to_program_space_and_thread): Prefer the
2234 current inferior if it's bound to the program space requested. If
2235 the inferior found doesn't have a PID yet, don't bother looking up
2237 * progspace.h (switch_to_program_space_and_thread): Adjust
2239 * thread.c (any_thread_of_process, any_live_thread_of_process):
2240 Give preference to the current thread.
2242 2014-10-01 Pedro Alves <palves@redhat.com>
2244 * breakpoint.c (insert_bp_location): Error out if inserting a
2245 software breakpoint at a read-only address.
2246 * target.c (memory_xfer_check_region): New function, factored out
2248 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2250 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2251 against the memory region attributes.
2253 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2255 * NEWS: Announce new exit-code field in -list-thread-groups
2257 * inferior.c (exit_inferior_1): Don't clear exit code.
2258 (inferior_appeared): Clear exit code.
2259 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2262 2014-10-01 Pedro Alves <palves@redhat.com>
2264 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2265 GENERATED" along with emacs/vi read-only markers.
2266 * regformats/aarch64.dat: Regenerate.
2267 * regformats/arm-with-iwmmxt.dat: Regenerate.
2268 * regformats/arm-with-neon.dat: Regenerate.
2269 * regformats/arm-with-vfpv2.dat: Regenerate.
2270 * regformats/arm-with-vfpv3.dat: Regenerate.
2271 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2272 * regformats/i386/amd64-avx.dat: Regenerate.
2273 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2274 * regformats/i386/amd64-avx512.dat: Regenerate.
2275 * regformats/i386/amd64-linux.dat: Regenerate.
2276 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2277 * regformats/i386/amd64-mpx.dat: Regenerate.
2278 * regformats/i386/amd64.dat: Regenerate.
2279 * regformats/i386/i386-avx-linux.dat: Regenerate.
2280 * regformats/i386/i386-avx.dat: Regenerate.
2281 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2282 * regformats/i386/i386-avx512.dat: Regenerate.
2283 * regformats/i386/i386-linux.dat: Regenerate.
2284 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2285 * regformats/i386/i386-mmx.dat: Regenerate.
2286 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2287 * regformats/i386/i386-mpx.dat: Regenerate.
2288 * regformats/i386/i386.dat: Regenerate.
2289 * regformats/i386/x32-avx-linux.dat: Regenerate.
2290 * regformats/i386/x32-avx.dat: Regenerate.
2291 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2292 * regformats/i386/x32-avx512.dat: Regenerate.
2293 * regformats/i386/x32-linux.dat: Regenerate.
2294 * regformats/i386/x32.dat: Regenerate.
2295 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2296 * regformats/mips-dsp-linux.dat: Regenerate.
2297 * regformats/mips-linux.dat: Regenerate.
2298 * regformats/mips64-dsp-linux.dat: Regenerate.
2299 * regformats/mips64-linux.dat: Regenerate.
2300 * regformats/nios2-linux.dat: Regenerate.
2301 * regformats/rs6000/powerpc-32.dat: Regenerate.
2302 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2303 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2304 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2305 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2306 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2307 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2308 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2309 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2310 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2311 * regformats/s390-linux32.dat: Regenerate.
2312 * regformats/s390-linux32v1.dat: Regenerate.
2313 * regformats/s390-linux32v2.dat: Regenerate.
2314 * regformats/s390-linux64.dat: Regenerate.
2315 * regformats/s390-linux64v1.dat: Regenerate.
2316 * regformats/s390-linux64v2.dat: Regenerate.
2317 * regformats/s390-te-linux64.dat: Regenerate.
2318 * regformats/s390x-linux64.dat: Regenerate.
2319 * regformats/s390x-linux64v1.dat: Regenerate.
2320 * regformats/s390x-linux64v2.dat: Regenerate.
2321 * regformats/s390x-te-linux64.dat: Regenerate.
2322 * regformats/tic6x-c62x-linux.dat: Regenerate.
2323 * regformats/tic6x-c62x.dat: Regenerate.
2324 * regformats/tic6x-c64x-linux.dat: Regenerate.
2325 * regformats/tic6x-c64x.dat: Regenerate.
2326 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2327 * regformats/tic6x-c64xp.dat: Regenerate.
2329 2014-10-01 Pedro Alves <palves@redhat.com>
2331 * features/Makefile: Update comments.
2332 (XMLTOC): List all xml files we build C files from.
2333 (clean-cfiles): New rule.
2335 2014-10-01 Pedro Alves <palves@redhat.com>
2337 * features/i386/amd64-avx512-linux.c: Regenerate.
2338 * features/i386/amd64-avx512.c: Regenerate.
2339 * features/i386/x32-avx512-linux.c: Regenerate.
2340 * features/i386/x32-avx512.c: Regenerate.
2342 2014-10-01 Pedro Alves <palves@redhat.com>
2344 * features/Makefile (WHICH): Remove arm-with-m,
2345 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2347 2014-10-01 Pedro Alves <palves@redhat.com>
2349 * features/Makefile (clean): New rule.
2351 2014-10-01 Pedro Alves <palves@redhat.com>
2353 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2354 (zmm14h): Add missing end quotes.
2356 2014-10-01 Pedro Alves <palves@redhat.com>
2358 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2359 * features/aarch64.c: Regenerate.
2361 2014-09-30 Don Breazeal <donb@codesourcery.com>
2363 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2364 code so as to work with follow_fork_inferior.
2365 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2366 (inf_ttrace_create_inferior): Remove reference to
2367 inf_ttrace_vfork_ppid.
2368 (inf_ttrace_attach): Ditto.
2369 (inf_ttrace_detach): Ditto.
2370 (inf_ttrace_kill): Use current_inferior instead of
2371 inf_ttrace_vfork_ppid.
2372 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2373 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2374 inferior away from the parent.
2375 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2377 (follow_fork_inferior): New function.
2378 (follow_inferior_reset_breakpoints): Make function static.
2379 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2380 * linux-nat.c (linux_child_follow_fork): Move target-independent
2381 code to infrun.c:follow_fork_inferior.
2383 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2385 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2386 * gdbarch.c: Regenerate.
2387 * gdbarch.h: Likewise.
2388 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2389 gdbarch method 'regset_from_core_section'.
2390 (get_core_register_section): Remove handling for the case that
2391 regset == NULL and regset_from_core_section is defined.
2392 (get_core_registers): Drop check for deleted method.
2393 * procfs.c (procfs_do_thread_registers): Adjust comment.
2395 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2397 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2398 (linux_nat_make_corefile_notes): Remove.
2399 (linux_target_install_ops): Do not set target method
2400 'make_corefile_notes'.
2401 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2403 (linux_corefile_thread_callback): Instead of args->collect, call
2404 linux_collect_thread_registers.
2405 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2406 NULL unless there is a regset iterator.
2407 (linux_make_corefile_notes_1): Remove.
2408 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2409 by linux_make_corefile_notes.
2410 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2412 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2414 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2415 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2417 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2419 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2421 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2422 (xtensa_iterate_over_regset_sections): New.
2423 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2425 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2427 * vax-tdep.c (vax_regset_from_core_section): Remove.
2428 (vax_iterate_over_regset_sections): New.
2429 (vax_gdbarch_init): Adjust gdbarch initialization.
2431 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2433 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2434 (tilegx_regset_from_core_section): Remove.
2435 (tilegx_iterate_over_regset_sections): New.
2436 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2438 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2440 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2441 (sparc_iterate_over_regset_sections): New.
2442 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2443 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2445 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2446 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2447 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2448 target method 'make_corefile_notes'.
2450 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2452 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2453 'sizeof_gregset' and 'sizeof_fpregset'.
2454 * sh-tdep.c (sh_regset_from_core_section): Remove.
2455 (sh_iterate_over_regset_sections): New.
2456 (sh_gdbarch_init): Adjust gdbarch initialization.
2457 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2459 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2464 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2465 (score7_linux_iterate_over_regset_sections): New.
2466 (score_gdbarch_init): Adjust gdbarch initialization.
2468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2470 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2472 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2473 method 'make_corefile_notes'.
2474 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2475 (ppcfbsd_regset_from_core_section): Remove.
2476 (ppcfbsd_iterate_over_regset_sections): New.
2477 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2479 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2480 (ppcnbsd_iterate_over_regset_sections): New.
2481 (ppcnbsd_init_abi): Adjust.
2482 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2483 (ppcobsd_iterate_over_regset_sections): New.
2484 (ppcobsd_init_abi): Adjust.
2485 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2486 (rs6000_aix_iterate_over_regset_sections): New.
2487 (rs6000_aix_init_osabi): Adjust.
2489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2491 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2492 (nios2_regset_from_core_section): Remove.
2493 (nios2_iterate_over_regset_sections): New.
2494 (nios2_linux_init_abi): Adjust gdbarch initialization.
2496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2498 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2499 (am33_iterate_over_regset_sections): New.
2500 (am33_linux_init_osabi): Adjust gdbarch initialization.
2502 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2504 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2505 (mips_linux_iterate_over_regset_sections): New.
2506 (mips_linux_init_abi): Adjust gdbarch initialization.
2507 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2508 (mips64obsd_iterate_over_regset_sections): New.
2509 (mips64obsd_init_abi): Adjust.
2510 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2511 (mipsnbsd_iterate_over_regset_sections): New.
2512 (mipsnbsd_init_abi): Adjust.
2514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2516 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2517 (m88k_iterate_over_regset_sections): New.
2518 (m88k_gdbarch_init): Adjust gdbarch initialization.
2520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2522 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2523 (ia64_linux_iterate_over_regset_sections): New.
2524 (ia64_linux_init_abi): Adjust gdbarch initialization.
2526 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2528 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2529 (m68kbsd_iterate_over_regset_sections): New.
2530 (m68kbsd_init_abi): Adjust gdbarch initialization.
2531 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2532 (m68k_linux_iterate_over_regset_sections): New.
2533 (m68k_linux_init_abi): Adjust gdbarch initialization.
2535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2537 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2538 (m32r_linux_regset_from_core_section): Remove.
2539 (m32r_linux_iterate_over_regset_sections): New.
2540 (m32r_linux_init_abi): Adjust gdbarch initialization.
2542 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2544 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2545 (amd64obsd_iterate_over_regset_sections): New.
2546 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2547 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2549 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2550 regset_from_core_section initialization.
2551 * i386-tdep.c (i386_regset_from_core_section): Remove.
2552 (i386_iterate_over_regset_sections): New.
2553 (i386_gdbarch_init): Adjust gdbarch initialization.
2554 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2555 (i386_iterate_over_regset_sections): New prototype.
2556 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2558 (i386obsd_aout_iterate_over_regset_sections): New.
2559 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2560 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2562 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2563 (amd64fbsd_init_abi): Call fbsd_init_abi.
2564 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2565 (i386fbsd4_init_abi): Call fbsd_init_abi.
2566 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2567 target method 'make_corefile_notes'.
2568 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2570 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2572 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2573 (hppa_hpux_iterate_over_regset_sections): New.
2574 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2575 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2576 (hppa_linux_iterate_over_regset_sections): New.
2577 (hppa_linux_init_abi): Adjust.
2578 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2579 (hppanbsd_iterate_over_regset_sections): New.
2580 (hppanbsd_init_abi): Adjust.
2581 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2582 (hppaobsd_iterate_over_regset_sections): New.
2583 (hppaobsd_init_abi): Adjust.
2585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2587 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2588 (frv_linux_iterate_over_regset_sections): New.
2589 (frv_linux_init_abi): Adjust gdbarch initialization.
2591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2593 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2594 (armbsd_iterate_over_regset_sections): New prototype.
2595 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2596 (armbsd_iterate_over_regset_sections): New.
2597 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2603 (alpha_linux_iterate_over_regset_sections): New.
2604 (alpha_linux_init_abi): Adjust gdbarch initialization.
2605 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2607 (alphanbsd_iterate_over_regset_sections): New prototype.
2609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2611 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2613 (aarch64_linux_iterate_over_regset_sections): New.
2614 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2616 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618 * fbsd-tdep.c: New file.
2619 * fbsd-tdep.h: New file.
2620 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2621 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2622 (ALLDEPFILES): Add fbsd-tdep.c.
2624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2626 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2628 * gdbarch.h: Regenerate.
2629 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2631 (get_core_register_section): Add parameter 'regset' and use it, if
2632 set. Add parameter 'min_size' and verify the bfd section size
2634 (get_core_registers_cb): Add parameter 'regset' and pass it to
2635 get_core_register section. For the "standard" register sections
2636 ".reg" and ".reg2", set an appropriate default for human_name.
2637 (get_core_registers): Don't abort when the gdbarch has an iterator
2638 but no regset_from_core_section. Add NULL/0 for parameters
2639 'regset'/'min_size' in calls to get_core_register_section.
2640 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2641 'regset' and use it instead of calling the
2642 regset_from_core_section gdbarch method.
2643 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2644 * i386-tdep.c (i386_supply_xstateregset)
2645 (i386_collect_xstateregset, i386_xstateregset): Moved to
2647 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2649 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2650 core file support only if the regset iterator hasn't been set.
2651 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2652 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2653 Moved from i386-tdep.c and renamed to *_linux*.
2654 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2655 each callback invocation. Allow any .reg-xstate size when reading
2657 * amd64-tdep.c (amd64_supply_xstateregset)
2658 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2660 (amd64_regset_from_core_section): Remove.
2661 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2662 install an amd64-specific regset_from_core_section gdbarch method.
2663 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2664 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2665 Moved from amd64-tdep.c and renamed to *_linux*.
2666 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2667 to each callback invocation. Allow any .reg-xstate size when
2668 reading from a core file.
2669 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2670 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2671 each callback invocation.
2672 (arm_linux_init_abi): No longer set the regset_from_core_section
2674 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2675 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2676 each callback invocation.
2677 (ppc_linux_init_abi): No longer set the regset_from_core_section
2679 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2680 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2681 (s390_regset_from_core_section): Remove.
2682 (s390_iterate_over_regset_sections): Add regset parameter to each
2683 callback invocation.
2684 (s390_gdbarch_init): No longer set the regset_from_core_section
2685 gdbarch method. Drop initialization of deleted tdep fields.
2687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2689 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2690 (amd64_linux_iterate_over_regset_sections): New.
2691 (amd64_linux_init_abi_common): Don't install the regset section
2692 list, but the new iterator in gdbarch.
2693 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2694 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2695 (arm_linux_iterate_over_regset_sections): ...here. New function.
2696 (arm_linux_init_abi): Set iterator instead of section list.
2697 * corelow.c (get_core_registers_cb): New function, logic moved
2699 (get_core_registers): ...loop body here. Use new iterator method
2700 instead of walking through the regset section list.
2701 * gdbarch.sh: Remove 'core_regset_sections'. New method
2702 'iterate_over_regset_sections'. New typedef
2703 'iterate_over_regset_sections_cb'.
2704 * gdbarch.c: Regenerate.
2705 * gdbarch.h: Likewise.
2706 * i386-linux-tdep.c (i386_linux_regset_sections)
2707 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2709 (i386_linux_iterate_over_regset_sections): New.
2710 (i386_linux_init_abi): Don't choose a regset section list, but
2711 install new iterator in gdbarch.
2712 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2713 (linux_collect_regset_section_cb): New function, logic moved
2715 (linux_collect_thread_registers): ...loop body here. Use iterator
2716 method instead of walking through list.
2717 (linux_make_corefile_notes_1): Check for presence of iterator
2718 method instead of regset section list.
2719 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2720 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2721 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2722 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2723 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2724 (ppc_linux_init_abi): Don't choose from above regset section
2725 lists, but install new iterator in gdbarch.
2726 * regset.h (struct core_regset_section): Remove.
2727 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2728 have_linux_v1, have_linux_v2, and have_tdb.
2729 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2730 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2731 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2732 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2733 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2734 (s390_iterate_over_regset_sections): ...here. New function. Use
2736 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2737 regset section lists, but install new iterator.
2739 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2741 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2743 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2745 * progspace.c (print_program_space): Don't prune program spaces
2746 before printing them.
2748 2014-09-25 Pedro Alves <palves@redhat.com>
2750 * infrun.c (user_visible_resume_ptid): Don't check
2751 singlestep_breakpoints_inserted_p.
2753 2014-09-25 Pedro Alves <palves@redhat.com>
2755 * breakpoint.c (should_be_inserted): Add debug output.
2757 2014-09-25 Pedro Alves <palves@redhat.com>
2759 * infrun.c (stepping_past_instruction_at)
2760 (clear_exit_convenience_vars): Point at infrun.h instead of
2762 (handle_signal_stop): Fix typo.
2764 2014-09-24 Yao Qi <yao@codesourcery.com>
2766 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2769 2014-09-22 Gary Benson <gbenson@redhat.com>
2771 * target.c (target_stop): Updated comment.
2773 2014-09-22 Gary Benson <gbenson@redhat.com>
2775 * target/target.h (target_stop_ptid): Renamed as...
2776 (target_stop_and_wait): New function. Updated comment.
2778 (target_continue_ptid): Renamed as...
2779 (target_continue_no_signal): New function. Updated comment.
2782 2014-09-22 Pedro Alves <palves@redhat.com>
2784 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2786 * breakpoint.c (enum ugll_insert_mode): New enum.
2787 (always_inserted_mode): Now a plain boolean.
2788 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2789 (breakpoints_always_inserted_mode): Delete.
2790 (breakpoints_should_be_inserted_now): New function.
2791 (insert_breakpoints): Pass UGLL_INSERT to
2792 update_global_location_list instead of calling
2793 insert_breakpoint_locations manually.
2794 (create_solib_event_breakpoint_1): New, factored out from ...
2795 (create_solib_event_breakpoint): ... this.
2796 (create_and_insert_solib_event_breakpoint): Use
2797 create_solib_event_breakpoint_1 instead of calling
2798 insert_breakpoint_locations manually.
2799 (update_global_location_list): Change parameter type from boolean
2800 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2801 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2802 (update_global_location_list_nothrow): Change parameter type from
2803 boolean to enum ugll_insert_mode.
2804 (_initialize_breakpoint): "breakpoint always-inserted" option is
2805 now a boolean command. Update help text.
2806 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2807 (breakpoints_should_be_inserted_now): New declaration.
2808 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2809 Remove breakpoints_always_inserted_mode check.
2810 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2811 * remote.c (remote_start_remote): Likewise.
2813 2014-09-22 Pedro Alves <palves@redhat.com>
2815 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2816 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2817 Instead, pass UGLL_INSERT to update_global_location_list.
2818 (update_global_location_list): Change parameter type from boolean
2819 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2820 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2821 (create_solib_event_breakpoint_1): New, factored out from ...
2822 (create_solib_event_breakpoint): ... this.
2823 (create_and_insert_solib_event_breakpoint): Use
2824 create_solib_event_breakpoint_1 instead of calling
2825 insert_breakpoint_locations manually.
2826 (update_global_location_list): Handle UGLL_INSERT.
2828 2014-09-22 Pedro Alves <palves@redhat.com>
2830 * breakpoint.c (enum ugll_insert_mode): New enum.
2831 (update_global_location_list)
2832 (update_global_location_list_nothrow): Change parameter type from
2833 boolean to enum ugll_insert_mode. All callers adjusted.
2835 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2837 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2838 SystemTap support in GDB.
2840 2014-09-19 Don Breazeal <donb@codesourcery.com>
2842 * linux-nat.c (linux_handle_extended_wait): Call
2843 linux_ptrace_get_extended_event.
2844 (wait_lwp): Call linux_is_extended_waitstatus.
2845 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2846 and linux_is_extended_waitstatus.
2847 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2848 linux_ptrace_get_extended_event.
2849 (linux_ptrace_get_extended_event): New function.
2850 (linux_is_extended_waitstatus): New function.
2851 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2852 (linux_is_extended_waitstatus): New declarations.
2854 2014-09-19 Yao Qi <yao@codesourcery.com>
2856 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2857 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2858 comments. Callers update.
2859 (dwarf_decode_lines): Likewise.
2860 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2861 comments. Skip the line table if 'lowpc' is greater than
2862 'address'. Don't check
2863 dwarf2_per_objfile->has_section_at_zero.
2865 2014-09-18 Doug Evans <dje@google.com>
2867 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2868 * python/py-symtab.c (stpy_get_producer): New function.
2869 (symtab_object_getset): Add "producer" attribute.
2871 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2874 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2875 (do_captured_read_memory_integer): Remove.
2876 (safe_read_memory_integer): Use target_read_memory directly instead
2877 of catching errors in do_captured_read_memory_integer.
2879 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2881 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2884 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2886 * objc-lang.c (find_implementation_from_class): Remove dead code.
2888 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2891 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2892 "fprintf_unfiltered (gdb_stdlog...)".
2894 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2896 PR breakpoints/12526
2897 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2899 * breakpoint.c (watch_command_1): Use these fields to retain
2900 bitfield information.
2901 (extract_bitfield_from_watchpoint_value): New function.
2902 (watchpoint_check): Use it.
2903 (update_watchpoint): Use it. Optimize the address and length of a
2904 HW watchpoint pointing to a bitfield.
2905 * value.h (unpack_value_bitfield): New prototype.
2906 * value.c (unpack_value_bitfield): Make extern.
2908 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2910 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2912 * gnu-nat.c (inf_threads): New function.
2913 * gnu-nat.h (inf_threads_ftype): New typedef.
2914 (inf_threads): New declaration.
2915 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2916 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2917 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2918 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2919 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2920 (i386_gnu_dr_get_control): New functions.
2921 (reg_addr): New structure.
2922 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2923 i386 debugging register hooks.
2924 * NEWS: Mention this.
2926 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2928 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2929 vector data transfer instructions.
2930 (arm_record_coproc_data_proc): Updated.
2932 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2934 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2935 arm_record_exreg_ld_st_insn.
2936 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2939 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2941 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2942 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2943 processing instructions.
2945 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2947 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2948 for advance SIMD struct ld/st insn.
2949 (thumb2_record_decode_insn_handler): Replace stub handler with
2950 thumb2_record_asimd_struct_ld_st.
2952 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2954 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2955 for asimd, vfp and coprocessor insns.
2956 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2957 and coprocessor insns.
2958 (thumb2_record_coproc_insn): New function.
2959 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2961 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2964 2014-09-13 Doug Evans <xdje42@gmail.com>
2966 * NEWS: Mention new "queue-signal" command.
2967 * infcmd.c (queue_signal_command): New function.
2968 (_initialize_infcmd): Add new queue-signal command.
2970 2014-09-13 Doug Evans <xdje42@gmail.com>
2972 * linux-nat.c (wait_lwp): Add debugging printf.
2973 (linux_nat_wait_1): Ditto.
2975 2014-09-12 Pedro Alves <palves@redhat.com>
2977 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2978 (create_and_insert_solib_event_breakpoint): New functions.
2979 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2980 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2981 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2982 (remove_dbx_link_breakpoint): Delete function.
2983 (insert_dbx_link_bpt_in_file): Use
2984 create_and_insert_solib_event_breakpoint instead of
2985 deprecated_insert_raw_breakpoint.
2986 (procfs_wait): Don't check whether we hit __dbx_link here.
2987 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2989 * solib-irix.c (base_breakpoint): Delete global.
2990 (disable_break): Delete function.
2991 (enable_break): Use create_solib_event_breakpoint
2992 instead of deprecated_insert_raw_breakpoint.
2993 (irix_solib_handle_event): New function.
2994 (irix_solib_create_inferior_hook): Don't run the target or disable
2995 the mapping-complete breakpoint here.
2996 (_initialize_irix_solib): Install irix_solib_handle_event as
2997 so_ops->handle_event hook.
2999 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3000 Ulrich Weigand <uweigand@de.ibm.com>
3003 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3004 instead of read_memory_unsigned_integer.
3006 2014-09-12 Gary Benson <gbenson@redhat.com>
3008 * nat/linux-waitpid.c: Include common-defs.h.
3009 [GDBSERVER]: Add FIXME comment.
3010 [!GDBSERVER]: Don't include defs.h or signal.h.
3011 (linux_debug) [!GDBSERVER]: Remove empty block.
3013 2014-09-12 Gary Benson <gbenson@redhat.com>
3015 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3016 Don't include defs.h or server.h.
3018 2014-09-12 Gary Benson <gbenson@redhat.com>
3020 * nat/linux-btrace.c: Include common-defs.h.
3021 Don't include defs.h, server.h or gdbthread.h.
3022 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3024 2014-09-12 Gary Benson <gbenson@redhat.com>
3026 * common/agent.c: Include common-defs.h.
3027 Don't include defs.h or server.h.
3028 * common/buffer.c: Likewise.
3029 * common/common-debug.c: Likewise.
3030 * common/common-utils.c: Likewise.
3031 * common/errors.c: Likewise.
3032 * common/filestuff.c: Likewise.
3033 * common/format.c: Likewise.
3034 * common/gdb_vecs.c: Likewise.
3035 * common/print-utils.c: Likewise.
3036 * common/ptid.c: Likewise.
3037 * common/rsp-low.c: Likewise.
3038 * common/signals.c: Likewise.
3039 * common/vec.c: Likewise.
3040 * common/xml-utils.c: Likewise.
3041 * nat/linux-osdata.c: Likewise.
3042 * nat/linux-procfs.c: Likewise.
3043 * nat/linux-ptrace.c: Likewise.
3044 * nat/mips-linux-watch.c: Likewise.
3045 * target/waitstatus.c: Likewise.
3047 2014-09-12 Tom Tromey <tromey@redhat.com>
3048 Gary Benson <gbenson@redhat.com>
3050 * common/common-regcache.h: New file.
3051 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3052 * regcache.h: Include common-regcache.h.
3053 (regcache_read_pc): Don't declare.
3054 * regcache.c (get_thread_regcache_for_ptid): New function.
3055 * nat/linux-btrace.c: Don't include regcache.h.
3056 Include common-regcache.h.
3057 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3059 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3061 * regcache.h (struct regset): Declare.
3063 2014-09-11 Pedro Alves <palves@redhat.com>
3066 * main.c: Include "infrun.h".
3067 (catch_command_errors, catch_command_errors_const): Wait for the
3068 foreground command to complete.
3069 * top.c (maybe_wait_sync_command_done): New function, factored out
3071 (maybe_wait_sync_command_done): ... here.
3072 * top.h (maybe_wait_sync_command_done): New declaration.
3074 2014-09-11 Tom Tromey <tromey@redhat.com>
3075 Gary Benson <gbenson@redhat.com>
3077 * common/symbol.h: New file.
3078 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3079 * minsyms.c (find_minimal_symbol_address): New function.
3080 * common/agent.c: Include common/symbol.h.
3081 [!GDBSERVER]: Don't include objfiles.h.
3082 (agent_look_up_symbols): Use find_minimal_symbol_address.
3084 2014-09-11 Gary Benson <gbenson@redhat.com>
3086 * target/target.h (target_stop_ptid, target_continue_ptid):
3088 * target.c (target_stop_ptid, target_continue_ptid): New
3090 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3091 (agent_run_command): Always use target_stop_ptid and
3092 target_continue_ptid.
3094 2014-09-11 Tom Tromey <tromey@redhat.com>
3095 Gary Benson <gbenson@redhat.com>
3097 * target/target.h: New file.
3098 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3099 * target.h: Include target/target.h.
3100 (target_read_memory, target_write_memory): Don't declare.
3101 * target.c (target_read_uint32): New function.
3102 * common/agent.c: Include target/target.h.
3103 [!GDBSERVER]: Don't include target.h.
3104 (helper_thread_id): Type changed to uint32_t.
3105 (agent_get_helper_thread_id): Use target_read_uint32.
3106 (agent_run_command): Always use target_read_memory and
3107 target_write_memory.
3108 (agent_capability): Type changed to uint32_t.
3109 (agent_capability_check): Use target_read_uint32.
3111 2014-09-11 Gary Benson <gbenson@redhat.com>
3113 * common/common-debug.h (show_debug_regs): Declare.
3114 * common/common-debug.c (show_debug_regs): Define.
3115 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3116 all uses with show_debug_regs. Replace all uses that considered
3117 debug_hw_points as a multi-value integer with straight boolean
3119 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3120 with show_debug_regs.
3121 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3122 all uses with show_debug_regs.
3123 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3124 uses with show_debug_regs.
3126 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3128 * findvar.c (address_from_register): Handle targets requiring
3129 a special conversion routine even for plain pointer types.
3131 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3133 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3134 (store_register): Do not call exec_one_dummy_insn.
3136 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3138 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3139 dereference it first. Use value_enclosing_type instead of
3141 (ada_array_length): Likewise.
3143 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3145 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3146 Adjust function implementation and documentation accordingly.
3147 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3148 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3149 Update call to ada_value_ptr_subscript.
3151 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3153 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3154 instead of VAL's type.
3156 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3158 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3160 2014-09-09 Doug Evans <xdje42@gmail.com>
3163 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3164 last parameter to pkg-config, not first.
3165 * configure.ac: Pass --with-guile provided pkg-config path to
3166 GDB_GUILE_PROGRAM_NAMES.
3167 * configure: Regenerate.
3169 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3171 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3174 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3176 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3177 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3178 the list of sections determining GDB_OSABI_IRIX.
3180 2014-09-09 James Hogan <james.hogan@imgtec.com>
3182 * MAINTAINERS (Write After Approval): Add "James Hogan".
3184 2014-09-09 James Hogan <james.hogan@imgtec.com>
3186 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3188 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3190 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3192 2014-09-08 Doug Evans <xdje42@gmail.com>
3195 * guile.c: #include <signal.h>.
3196 (_initialize_guile): Block SIGCHLD while initializing Guile.
3198 Replaces the following, which is reverted.
3200 2014-07-26 Doug Evans <xdje42@gmail.com>
3203 * configure.ac: Add check for header gc/gc.h.
3204 Add check for function setenv.
3205 * configure: Regenerate.
3206 * config.in: Regenerate.
3207 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3209 2014-09-08 Doug Evans <xdje42@gmail.com>
3211 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3212 with named constant. Fix style of pointer comparison.
3213 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3215 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3218 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3219 decide whether we display the command on "show user".
3220 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3221 printing command name.
3222 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3223 * cli/cli-decode.c (cli_user_command_p): Create helper function
3224 to verify whether cmd_list_element is a user-defined command.
3226 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3229 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3230 Fix goto out of TRY_CATCH.
3232 2014-09-06 Doug Evans <xdje42@gmail.com>
3233 Tom Tromey <tromey@redhat.com>
3236 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3237 $_any_caller_matches.
3238 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3239 * python/lib/gdb/function/caller_is.py: New file.
3241 2014-09-06 Doug Evans <xdje42@gmail.com>
3243 * infcmd.c (program_info): Fix typo.
3245 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3248 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3249 'number'. New variable 'has_digit'. Rewrite code to deal with
3250 subexpressions on SDT probes.
3252 2014-09-04 Pedro Alves <palves@redhat.com>
3254 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3255 the input is only one character long.
3257 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3260 * f-valprint.c (f_val_print): Specify the correct print option to
3261 use when printing integer values.
3263 2014-09-04 Gary Benson <gbenson@redhat.com>
3265 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3266 Remove code to cope with LWPs wrapped as PIDs.
3267 Add assertions to ensure no wrapped LWPs are passed.
3269 2014-09-04 Pedro Alves <palves@redhat.com>
3271 * value.c (value_ranges_copy_adjusted): New function, factored out
3273 (value_contents_copy_raw): ... here.
3274 (unpack_value_bits_as_long_1): Rename back to ...
3275 (unpack_bits_as_long): ... this. Remove 'original_value' and
3276 'result' parameters. Change return type to LONGEST.
3277 (unpack_value_bits_as_long): Delete.
3278 (unpack_value_field_as_long_1): Delete.
3279 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3280 (unpack_value_bitfield): New function.
3281 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3282 (value_fetch_lazy): Use unpack_value_bitfield.
3283 * value.h (unpack_value_bits_as_long): Delete declaration.
3285 2014-09-03 Sasha Smundak <asmundak@google.com>
3287 * python/py-frame.c (frapy_read_register): New function.
3289 2014-09-03 James Hogan <james.hogan@imgtec.com>
3291 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3292 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3294 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3297 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3299 (add_cmd): Set "completer_handle_brkchars" to NULL.
3300 * cli/cli-decode.h (struct cmd_list_element)
3301 <completer_handle_brkchars>: New field.
3302 * command.h (completer_ftype_void): New typedef.
3303 (set_cmd_completer_handle_brkchars): New prototype.
3304 * completer.c (set_gdb_completion_word_break_characters): New
3306 (complete_line_internal): Call "completer_handle_brkchars"
3307 callback from command.
3308 * completer.h: Include "command.h".
3309 (set_gdb_completion_word_break_characters): New prototype.
3310 * python/py-cmd.c (cmdpy_completer_helper): New function.
3311 (cmdpy_completer_handle_brkchars): New function.
3312 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3313 (cmdpy_init): Set completer_handle_brkchars to
3314 cmdpy_completer_handle_brkchars.
3316 2014-09-03 Gary Benson <gbenson@redhat.com>
3318 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3319 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3320 Loop conditions changed to equivalent form.
3321 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3322 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3323 ALL_DEBUG_ADDRESS_REGISTERS.
3325 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3327 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3330 2014-09-02 Doug Evans <dje@google.com>
3332 * typeprint.c (find_global_typedef): Fix comment.
3334 2014-09-02 Gary Benson <gbenson@redhat.com>
3336 * i386-nat.h: Renamed as...
3337 * x86-nat.h: New file. All type, function and variable name
3338 prefixes changed from "i386_" to "x86_". All references updated.
3339 * i386-nat.c: Renamed as...
3340 * x86-nat.c: New file. All type, function and variable name
3341 prefixes changed from "i386_" to "x86_". All references updated.
3342 * common/i386-xstate.h: Renamed as...
3343 * common/x86-xstate.h: New file. All type, function and variable
3344 name prefixes changed from "i386_" to "x86_". All references
3346 * nat/i386-cpuid.h: Renamed as...
3347 * nat/x86-cpuid.h: New file. All type, function and variable name
3348 prefixes changed from "i386_" to "x86_". All references updated.
3349 * nat/i386-gcc-cpuid.h: Renamed as...
3350 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3351 name prefixes changed from "i386_" to "x86_". All references
3353 * nat/i386-dregs.h: Renamed as...
3354 * nat/x86-dregs.h: New file. All type, function and variable name
3355 prefixes changed from "i386_" to "x86_". All references updated.
3356 * nat/i386-dregs.c: Renamed as...
3357 * nat/x86-dregs.c: New file. All type, function and variable name
3358 prefixes changed from "i386_" to "x86_". All references updated.
3360 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3362 * varobj.c (_initialize_varobj): Move to the end of file.
3364 2014-08-29 Gary Benson <gbenson@redhat.com>
3366 * common/common-exceptions.h: New file.
3367 * common/common-exceptions.c: Likewise.
3368 * Makefile.in (SFILES): Add common/common-exceptions.c.
3369 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3370 (COMMON_OBS): Add common-exceptions.o.
3371 (common-exceptions.o): New rule.
3372 * exceptions.h (common-exceptions.h): Include.
3373 (gdb_setjmp.h): Do not include.
3374 (return_reason): Moved to common-exceptions.h.
3375 (enum return_reason): Likewise.
3376 (RETURN_MASK): Likewise.
3377 (typedef return_mask): Likewise.
3378 (enum errors): Likewise.
3379 (struct gdb_exception): Likewise.
3380 (exceptions_state_mc_init): Likewise.
3381 (exceptions_state_mc_action_iter): Likewise.
3382 (exceptions_state_mc_action_iter_1): Likewise.
3383 (TRY_CATCH): Likewise.
3384 (throw_exception): Likewise.
3385 (throw_verror): Likewise.
3386 (throw_vquit): Likewise.
3387 (throw_error): Likewise.
3388 (throw_quit): Likewise.
3389 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3390 (enum catcher_action): Likewise.
3391 (struct catcher): Likewise.
3392 (current_catcher): Likewise.
3393 (catcher_list_size): Likewise.
3394 (exceptions_state_mc_init): Likewise.
3395 (catcher_pop): Likewise.
3396 (exceptions_state_mc): Likewise.
3397 (exceptions_state_mc_action_iter): Likewise.
3398 (exceptions_state_mc_action_iter_1): Likewise.
3399 (throw_exception): Likewise.
3400 (exception_messages): Likewise.
3401 (exception_messages_size): Likewise.
3402 (throw_it): Likewise.
3403 (throw_verror): Likewise.
3404 (throw_vquit): Likewise.
3405 (throw_error): Likewise.
3406 (throw_quit): Likewise.
3407 (prepare_to_throw_exception): New function.
3409 2014-08-29 Gary Benson <gbenson@redhat.com>
3411 * common/gdb_setjmp.h: New file.
3412 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3413 * configure.ac: Move sigsetjmp check...
3414 * common/common.m4: ...here.
3415 * configure: Regenerate.
3416 * cp-support.c (SIGJMP_BUF): Delete.
3417 (SIGSETJMP): Likewise.
3418 (SIGLONGJMP): Likewise.
3419 * exceptions.h (gdb_setjmp.h): Include.
3420 (setjmp.h): Do not include.
3421 (EXCEPTIONS_SIGJMP_BUF): Delete.
3422 (EXCEPTIONS_SIGSETJMP): Likewise.
3423 (EXCEPTIONS_SIGLONGJMP): Likewise.
3424 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3426 * exceptions.c: Likewise.
3428 2014-08-29 Gary Benson <gbenson@redhat.com>
3430 * cleanups.h: Moved to...
3431 * common/cleanups.h: New file.
3432 * cleanups.c: Moved to...
3433 * common/cleanups.c: New file. Include common-defs.h and
3434 cleanups.h. Do not include defs.h.
3435 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3436 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3437 (cleanups.o): New rule.
3439 2014-08-29 Gary Benson <gbenson@redhat.com>
3441 * common/errors.h (internal_warning): New declaration.
3442 (internal_vwarning): Likewise.
3443 * common/errors.c (internal_warning): New function.
3444 * utils.h (internal_warning): Don't declare.
3445 (internal_vwarning): Likewise.
3446 * utils.c (internal_warning): Removed.
3448 2014-08-29 Gary Benson <gbenson@redhat.com>
3450 * main.c (captured_main): Use warning during startup.
3451 Prefix startup warning messages with command name.
3453 2014-08-29 Gary Benson <gbenson@redhat.com>
3455 * main.c (captured_main): Handle usage errors with error.
3457 2014-08-29 Gary Benson <gbenson@redhat.com>
3459 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3460 exit pair with a call to error. Wrap the message with _().
3462 2014-08-29 Gary Benson <gbenson@redhat.com>
3464 * main.c (captured_main): Replace a fprintf/exit
3465 pair with a call to error. Wrap the message with _().
3467 2014-08-29 Gary Benson <gbenson@redhat.com>
3469 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3470 pairs with calls to error. Wrap the message with _().
3472 2014-08-29 Gary Benson <gbenson@redhat.com>
3474 * utils.c (vwarning): Protect calls to target_terminal_ours
3477 2014-08-29 Gary Benson <gbenson@redhat.com>
3479 * exceptions.c (print_flush): Protect calls to
3480 target_terminal_ours and wrap_here.
3482 2014-08-29 Gary Benson <gbenson@redhat.com>
3484 * utils.h (filtered_printing_initialized): New declaration.
3485 * utils.c (abort_with_message): New function.
3486 (internal_vproblem): Use abort_with_message for first level
3487 recursive internal problems, and if gdb_stderr is not set up.
3488 Protect calls to target_terminal_ours, begin_line and query.
3490 2014-08-28 Doug Evans <dje@google.com>
3492 * symtab.c (in_prologue): Move definition to better spot.
3493 (skip_prologue_using_sal): Ditto.
3495 2014-08-28 Doug Evans <dje@google.com>
3497 * symtab.c (find_function_start_sal): Move definition to better spot.
3499 2014-08-28 Yao Qi <yao@codesourcery.com>
3501 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3502 found_stack_adjust in forward scan. Remove condition check
3503 on found_stack_adjust which is always true. Indent the code.
3505 2014-08-28 Yao Qi <yao@codesourcery.com>
3507 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3508 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3509 (dwarf_decode_lines): Remove argument
3510 want_line_info. Remove condition check on want_line_info.
3513 2014-08-27 Doug Evans <dje@google.com>
3515 * dwarf2read.c (dwarf_record_line): Fix typo.
3517 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3519 * target.h (struct target_ops::to_terminal_save_ours): Remove
3521 (target_terminal_save_ours): Remove macro.
3522 * target-delegates.c: Regenerate.
3523 * inf-child.c (inf_child_target): Don't set the nonexistent
3524 field to_terminal_save_ours.
3525 * inferior.h (child_terminal_save_ours): Remove declaration.
3526 * terminal.h (gdb_save_tty_state): New declaration.
3527 * inflow.c (child_terminal_save_ours): Rename to ...
3528 (gdb_save_tty_state): ... this.
3529 * tui/tui.c: Include terminal.h.
3530 (tui_enable): Use gdb_save_tty_state instead of
3531 target_terminal_save_ours.
3532 (tui_disable): Likewise.
3534 2014-08-25 Doug Evans <dje@google.com>
3536 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3537 Pass NULL instead of 0 for context pointer.
3539 2014-08-25 Yao Qi <yao@codesourcery.com>
3541 * dwarf2read.c: Fix grammatical error.
3543 2014-08-24 Yao Qi <yao@codesourcery.com>
3545 * dwarf2read.c (scan_partial_symbols): Update comments.
3546 Rename argument 'need_pc' with 'set_addrmap'.
3547 (add_partial_namespace): Rename argument 'need_pc' with
3549 (add_partial_module): Likewise.
3550 (add_partial_subprogram): Likewise. Update comments.
3551 (dwarf2_name): Fix typo.
3553 2014-08-22 Doug Evans <dje@google.com>
3556 * dwarf2read.c (dwarf_record_line_p): New function.
3557 (dwarf_decode_lines_1): Ignore subsequent line number entries
3558 for the same line if any entry had a non-zero discriminator.
3560 2014-08-22 Doug Evans <dje@google.com>
3562 * buildsym.h (record_line_ftype): New typedef.
3563 (record_line): Use it.
3564 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3565 (dwarf_decode_lines_1): Call them.
3567 2014-08-22 Yao Qi <yao@codesourcery.com>
3569 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3570 (ctf_end): Remove code.
3572 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3575 (linux_make_corefile_notes): call update_thread_list, protected against
3578 2014-08-21 Pedro Alves <palves@redhat.com>
3580 * infcmd.c (attach_command): Remove comment.
3582 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3584 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3585 unsigned LONGEST to ULONGEST.
3587 2014-08-20 Pedro Alves <palves@redhat.com>
3589 * Makefile.in (check-read1): New rule.
3591 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3593 * value.c (value_from_contents_and_address): Strip resolved_type's
3594 typedef layers before checking its TYPE_DATA_LOCATION.
3596 2014-08-20 Pedro Alves <palves@redhat.com>
3598 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3600 2014-08-20 Yao Qi <yao@codesourcery.com>
3602 * amd64-tdep.c (amd64_classify): Add a blank line after the
3603 example. Move "*/" to a new line.
3604 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3605 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3606 * dwarf2read.c (psymtab_include_file_name): Likewise.
3608 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3609 Pedro Alves <palves@redhat.com>
3613 * ada-lang.c (coerce_unspec_val_to_type): Use
3614 value_contents_copy_raw.
3615 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3616 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3617 * cp-valprint.c (cp_print_value_fields): Let the common printing
3618 code handle optimized out values.
3619 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3620 * d-valprint.c (dynamic_array_type): Use
3621 value_bits_any_optimized_out.
3622 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3623 check_any_valid fields.
3624 (check_pieced_value_bits): Delete and inline ...
3625 (check_pieced_synthetic_pointer): ... here.
3626 (check_pieced_value_validity): Delete.
3627 (check_pieced_value_invalid): Delete.
3628 (pieced_value_funcs): Remove check_validity and check_any_valid
3630 (read_pieced_value): Use mark_value_bits_optimized_out.
3631 (write_pieced_value): Switch to use
3632 mark_value_bytes_optimized_out.
3633 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3634 of assuming the whole value is optimized out.
3635 * findvar.c (read_frame_register_value): Remove special handling
3636 of optimized out registers.
3637 (value_from_register): Use mark_value_bytes_optimized_out.
3638 * frame-unwind.c (frame_unwind_got_optimized): Use
3639 mark_value_bytes_optimized_out.
3640 * jv-valprint.c (java_value_print): Adjust.
3641 (java_print_value_fields): Let the common printing code handle
3642 optimized out values.
3643 * mips-tdep.c (mips_print_register): Remove special handling of
3644 optimized out registers.
3645 * opencl-lang.c (lval_func_check_validity): Delete.
3646 (lval_func_check_any_valid): Delete.
3647 (opencl_value_funcs): Remove check_validity and check_any_valid
3649 * p-valprint.c (pascal_object_print_value_fields): Let the common
3650 printing code handle optimized out values.
3651 * stack.c (read_frame_arg): Remove special handling of optimized
3652 out values. Fetch both VAL and ENTRYVAL before comparing
3653 contents. Adjust to value_available_contents_eq rename.
3654 * valprint.c (valprint_check_validity)
3655 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3656 (val_print_array_elements): Adjust.
3657 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3658 (value_bits_any_optimized_out): New function.
3659 (value_entirely_covered_by_range_vector): New function, factored
3660 out from value_entirely_unavailable.
3661 (value_entirely_unavailable): Reimplement.
3662 (value_entirely_optimized_out): New function.
3663 (insert_into_bit_range_vector): New function, factored out from
3664 mark_value_bits_unavailable.
3665 (mark_value_bits_unavailable): Reimplement.
3666 (struct ranges_and_idx): New struct.
3667 (find_first_range_overlap_and_match): New function, factored out
3668 from value_available_contents_bits_eq.
3669 (value_available_contents_bits_eq): Rename to ...
3670 (value_contents_bits_eq): ... this. Check both unavailable
3671 contents and optimized out contents.
3672 (value_available_contents_eq): Rename to ...
3673 (value_contents_eq): ... this.
3674 (allocate_value_lazy): Remove reference to the old optimized_out
3676 (allocate_optimized_out_value): Use
3677 mark_value_bytes_optimized_out.
3678 (require_not_optimized_out): Adjust to check whether the
3679 optimized_out vec is empty.
3680 (ranges_copy_adjusted): New function, factored out from
3681 value_contents_copy_raw.
3682 (value_contents_copy_raw): Also copy the optimized out ranges.
3683 Assert the destination ranges aren't optimized out.
3684 (value_contents_copy): Update comment, remove call to
3685 require_not_optimized_out.
3686 (value_contents_equal): Adjust to check whether the optimized_out
3688 (set_value_optimized_out, value_optimized_out_const): Delete.
3689 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3691 (value_entirely_optimized_out, value_bits_valid): Delete.
3692 (value_copy): Take a VEC copy of the 'optimized_out' field.
3693 (value_primitive_field): Remove special handling of optimized out.
3694 (value_fetch_lazy): Assert that lazy values have no unavailable
3695 regions. Use value_bits_any_optimized_out. Remove some special
3696 handling for optimized out values.
3697 * value.h: Add intro comment about <optimized out> and
3699 (struct lval_funcs): Remove check_validity and check_any_valid
3701 (set_value_optimized_out, value_optimized_out_const): Remove.
3702 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3704 (value_bits_any_optimized_out): New declaration.
3705 (value_bits_valid): Delete declaration.
3706 (value_available_contents_eq): Rename to ...
3707 (value_contents_eq): ... this, and extend comments.
3709 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 Fix -fsanitize=address on unreadable inferior strings.
3712 * valprint.c (val_print_string): Fix access before BUFFER.
3714 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3716 * target.c (target_struct_size): Remove.
3717 (target_struct_allocsize): Remove.
3718 (DEFAULT_ALLOCSIZE): Remove.
3719 (target_ops_p): New typedef.
3720 (DEF_VEC_P (target_ops_p)): New vector type.
3721 (target_structs): Change type to VEC (target_ops_p).
3722 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3723 (find_default_run_target): Rewrite for loop following changes to
3726 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3728 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3729 Adjust code accordingly. Adjust function description comment.
3731 2014-08-19 Yao Qi <yao@codesourcery.com>
3733 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3736 2014-08-19 Alan Modra <amodra@gmail.com>
3738 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3739 * config.in: Regenerate.
3740 * configure: Regenerate.
3742 2014-08-19 Tom Tromey <tromey@redhat.com>
3743 Gary Benson <gbenson@redhat.com>
3745 * common/common-debug.h: New file.
3746 * common/common-debug.c: Likewise.
3747 * debug.c: Likewise.
3748 * Makefile.in (SFILES): Add common/common-debug.c.
3749 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3750 (COMMON_OBS): Add common-debug.o and debug.o.
3751 (common-debug.o): New rule.
3752 * common/common-defs.h: Include common-debug.h.
3753 * common/agent.c (debug_agent_printf): New function.
3754 (DEBUG_AGENT): Redefine.
3755 * nat/i386-dregs.c (debug_printf): Undefine.
3757 2014-08-19 Gary Benson <gbenson@redhat.com>
3759 * common/common-defs.h: Include print-utils.h.
3760 * utils.h: Do not include print-utils.h.
3762 2014-08-19 Tom Tromey <tromey@redhat.com>
3763 Gary Benson <gbenson@redhat.com>
3765 * common/common-types.h: New file.
3766 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3767 * common/common-defs.h: Include common-types.h.
3768 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3771 2014-08-19 Tom Tromey <tromey@redhat.com>
3772 Gary Benson <gbenson@redhat.com>
3774 * common/errors.h: New file.
3775 * common/errors.c: Likewise.
3776 * Makefile.in (SFILES): Add common/errors.c.
3777 (HFILES_NO_SRCDIR): Add common/errors.h.
3778 (COMMON_OBS): Add errors.o.
3779 (errors.o): New rule.
3780 * common/common-defs.h: Include errors.h.
3781 * utils.h (perror_with_name, error, verror, warning, vwarning):
3783 * common/common-utils.h: (malloc_failure, internal_error):
3786 2014-08-19 Gary Benson <gbenson@redhat.com>
3788 * utils.c (internal_vproblem): Always print the message.
3790 2014-08-18 Doug Evans <dje@google.com>
3792 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3794 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3796 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3797 Return 0 if TYPE is dynamic.
3798 (print_range): Add handling of dynamic ranges.
3800 2014-08-18 Keven Boell <keven.boell@intel.com>
3801 Joel Brobecker <brobecker@adacore.com>
3803 * gdbtypes.h (struct main_type): Add field "data_location".
3804 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3805 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3806 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3807 a dynamic data location.
3808 (resolve_dynamic_type): Add DW_AT_data_location handling.
3809 (copy_recursive, copy_type): Copy the data_location information
3811 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3812 * value.c (value_from_contents_and_address): Add
3813 DW_AT_data_location handling.
3815 2014-08-18 Keven Boell <keven.boell@intel.com>
3816 Joel Brobecker <brobecker@adacore.com>
3818 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3819 field "get_object_address".
3820 * dwarf2expr.c (execute_stack_op): Add handling for
3821 DW_OP_push_object_address.
3822 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3823 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3824 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3825 (dwarf_expr_get_obj_addr): New function.
3826 (dwarf_expr_ctx_funcs): Add get_object_address field.
3827 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3828 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3829 (dwarf2_evaluate_property): Add parameter "address". Use it.
3830 (needs_get_obj_addr): New function.
3831 (needs_frame_ctx_funcs): Add get_object_address field.
3832 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3833 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3834 (resolve_dynamic_array): Likewise.
3836 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3838 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3839 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3840 fixed value for records and unions for which some GNAT encodings
3843 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3845 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3846 rewrite to avoid "else if" and "else" constructs. Should be
3847 a no-op in practice.
3849 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3851 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3854 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3857 * eval.c: Update all calls to find_overload_match.
3858 * valarith.c: Likewise.
3859 (value_user_defined_cpp_op, value_user_defined_op): New
3860 argument NOSIDE. Update all callers.
3861 * valops.c (find_overload_match): New argument NOSIDE.
3862 * value.h (find_overload_match): Update signature.
3864 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3866 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3867 'items' methods instead of 'iteritems' method on dictionaries.
3869 2014-08-15 Doug Evans <dje@google.com>
3871 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3874 2014-08-15 Doug Evans <dje@google.com>
3876 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3878 2014-08-15 Doug Evans <dje@google.com>
3880 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3882 2014-08-15 Doug Evans <dje@google.com>
3884 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3887 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3889 * dcache.h: Include target.h, to avoid compile time warnings.
3891 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3893 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3894 frame_info" partial declaration.
3895 * gdbarch.h: Regenerate.
3897 2014-08-15 Yao Qi <yao@codesourcery.com>
3899 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3900 Add parameter 'decode_for_pst_p'. Callers update.
3902 2014-08-13 Yao Qi <yao@codesourcery.com>
3905 * configure.ac: Use local variable 'pos'.
3906 * configure: Regenerated.
3908 2014-08-11 Doug Evans <dje@google.com>
3910 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3911 message, it is redundant with "Reading symbols from ..." message.
3913 2014-08-10 Doug Evans <xdje42@gmail.com>
3915 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3917 2014-08-09 Yao Qi <yao@codesourcery.com>
3920 * remote.c (remote_xfer_partial): Remove dead code.
3922 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3924 * ia64-linux-tdep.c: Include "regset.h".
3925 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3926 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3927 (ia64_linux_supply_fpregset): New function.
3928 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3929 (ia64_linux_regset_from_core_section): New function.
3930 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3933 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3935 * m68klinux-tdep.c: Include "regset.h".
3936 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3937 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3938 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3939 (m68k_linux_regset_from_core_section): New function.
3940 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3943 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3945 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3946 function. Move logic to...
3947 (tilegx_linux_regmap): ... this new register map.
3948 (tilegx_linux_regset): Refer to register map, replace supply
3949 method by regcache_supply_regset, and add collect method.
3950 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3951 TILEGX_FIRST_EASY_REGNUM.
3953 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3955 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3956 that calls regcache_supply_regset and handles the EPC register
3957 separately. Move main logic to...
3958 (score7_linux_gregmap): ... this new register map.
3959 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3960 (score7_linux_gregset): Refer to register map. Add collect method.
3961 (score7_linux_regset_from_core_section): Replace
3962 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3963 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3964 (struct regset): Delete unused forward declaraction.
3965 (struct pt_regs): Delete structure definition.
3966 (elf_gregset_t): Delete typedef.
3968 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3970 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3971 (nios2_core_regset): Add collect method.
3973 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3975 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3976 platform-independent and don't write to read-only input buffer.
3977 (m32r_linux_collect_gregset): New function.
3978 (m32r_linux_gregset): Add collect method.
3980 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3982 * hppa-linux-tdep.c (greg_map): Rename to...
3983 (hppa_linux_gregmap): ... this. Also convert to
3984 regcache_map_entry format.
3985 (hppa_linux_supply_regset): Delete function.
3986 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3987 (hppa_linux_fpregmap): ... this new register map.
3988 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3989 register map, replace supply method by regcache_supply_regset, and
3990 add collect method regcache_collect_regset.
3992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3994 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3995 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3996 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3997 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3998 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3999 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4000 (frv_linux_supply_gregset): Replace main logic by call to
4001 regcache_supply_regset, but keep clearing gr32-gr63.
4002 (frv_linux_supply_fpregset): Delete function.
4003 (frv_linux_gregset): Refer to appropriate register map and add
4004 regcache_collect_regset as the collect method.
4005 (frv_linux_fpregset): Likewise. Also exchange the supply method
4006 by regcache_supply_regset.
4008 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4010 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4011 by call to alpha_supply_int_regs.
4012 (alpha_linux_collect_gregset): New function.
4013 (alpha_linux_supply_fpregset): Replace logic by call to
4014 alpha_supply_fp_regs.
4015 (alpha_linux_collect_fpregset): New function.
4016 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4018 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4020 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4021 by call to regcache_collect_regset.
4022 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4023 instead of aarch64_linux_supply_gregset/_fpregset.
4024 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4025 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4026 header file instead.
4027 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4028 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4029 functions. Move logic to ...
4030 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4032 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4033 refer to new register maps, replace *_regset_from_core by
4034 regcache_supply_regset, and also use regcache_collect_regset.
4035 * aarch64-linux-tdep.h: Include "regset.h".
4036 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4038 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4039 macros, moved from C source file.
4040 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4041 variable declarations.
4043 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4045 * s390-linux-nat.c: Include "regset.h".
4046 (regmap_gregset): Delete macro.
4047 (s390_64_regmap_gregset): New register map for
4048 regcache_supply/_collect_regset.
4049 (s390_64_gregset): New regset.
4050 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4051 (regmap_fpregset): Delete macro.
4052 (s390_native_supply, s390_native_collect): Delete functions.
4053 (supply_gregset, fill_gregset): Replace s390-specific regmap
4054 handling by a call to regcache_supply/_collect_regset.
4055 (supply_fpregset, fill_fpregset): Call regcache_supply/
4056 _collect_regset instead of s390_native_supply/_collect.
4057 (fetch_regset, store_regset): Likewise. Also change the last
4058 parameter to a regset instead of a regmap.
4059 (s390_linux_fetch_inferior_registers)
4060 (390_linux_store_inferior_registers): Adjust last parameter in
4061 calls to fetch_regset and store_regset.
4062 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4063 (s390_gregmap): ... this. Also make static const and convert to
4064 regcache_map_entry format.
4065 (s390x_regmap_gregset): Delete.
4066 (s390_regmap_fpregset): Rename to...
4067 (s390_fpregmap): ... this. Make static const and convert to
4068 regcache_map_entry format.
4069 (s390_regmap_upper, s390_regmap_last_break)
4070 (s390x_regmap_last_break, s390_regmap_system_call)
4071 (s390_regmap_tdb): Likewise.
4072 (s390_supply_regset, s390_collect_regset): Remove functions.
4073 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4075 (s390_gregset, s390_fpregset, s390_upper_regset)
4076 (s390_last_break_regset, s390x_last_break_regset)
4077 (s390_system_call_regset, s390_tdb_regset): Make global and
4078 replace s390_supply/_collect_regset by regcache_supply/
4080 (s390x_gregset): Delete.
4081 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4082 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4083 (s390_regmap_fpregset, s390_regmap_last_break)
4084 (s390x_regmap_last_break, s390_regmap_system_call)
4085 (s390_regmap_tdb): Delete global variable declarations.
4086 (s390_gregset, s390_fpregset, s390_last_break_regset)
4087 (s390x_last_break_regset, s390_system_call_regset)
4088 (s390_tdb_regset): New global variable declarations.
4090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4092 * regcache.c: Include "regset.h".
4093 (regcache_transfer_regset): New local function.
4094 (regcache_supply_regset, regcache_collect_regset): New functions.
4095 * regcache.h (struct regcache_map_entry): New structure.
4096 (REGCACHE_MAP_SKIP): New enum value.
4097 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4099 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4101 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4102 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4103 (ppc_linux_collect_gregset ): Likewise.
4104 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4105 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4106 (ppc_collect_vrregset): Likewise.
4107 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4110 2014-08-07 Yao Qi <yao@codesourcery.com>
4112 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4113 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4114 * remote.c (remote_read_bytes): Likewise.
4116 2014-08-07 Yao Qi <yao@codesourcery.com>
4118 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4120 2014-08-07 Yao Qi <yao@codesourcery.com>
4123 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4124 TARGET_XFER_OK instead of 0.
4126 2014-08-07 Gary Benson <gbenson@redhat.com>
4128 * common/common-defs.h: Include errno.h.
4129 * defs.h: Do not include errno.h.
4130 * ada-typeprint.c: Likewise.
4131 * c-typeprint.c: Likewise.
4132 * core-regset.c: Likewise.
4133 * corefile.c: Likewise.
4134 * corelow.c: Likewise.
4135 * event-loop.c: Likewise.
4136 * f-typeprint.c: Likewise.
4137 * gnu-nat.c: Likewise.
4138 * go32-nat.c: Likewise.
4139 * i386gnu-nat.c: Likewise.
4140 * m2-typeprint.c: Likewise.
4141 * nat/linux-btrace.c: Likewise.
4142 * p-typeprint.c: Likewise.
4143 * procfs.c: Likewise.
4144 * remote-sim.c: Likewise.
4145 * rs6000-nat.c: Likewise.
4146 * target.c: Likewise.
4147 * typeprint.c: Likewise.
4148 * ui-file.c: Likewise.
4149 * valops.c: Likewise.
4150 * valprint.c: Likewise.
4152 2014-08-07 Gary Benson <gbenson@redhat.com>
4154 * common/common-defs.h: Include string.h.
4155 * aarch64-tdep.c: Do not include string.h.
4156 * ada-exp.y: Likewise.
4157 * ada-lang.c: Likewise.
4158 * ada-lex.l: Likewise.
4159 * ada-typeprint.c: Likewise.
4160 * ada-valprint.c: Likewise.
4161 * aix-thread.c: Likewise.
4162 * alpha-linux-tdep.c: Likewise.
4163 * alpha-mdebug-tdep.c: Likewise.
4164 * alpha-nat.c: Likewise.
4165 * alpha-osf1-tdep.c: Likewise.
4166 * alpha-tdep.c: Likewise.
4167 * alphanbsd-tdep.c: Likewise.
4168 * amd64-dicos-tdep.c: Likewise.
4169 * amd64-linux-tdep.c: Likewise.
4170 * amd64-nat.c: Likewise.
4171 * amd64-sol2-tdep.c: Likewise.
4172 * amd64fbsd-tdep.c: Likewise.
4173 * amd64obsd-tdep.c: Likewise.
4174 * arch-utils.c: Likewise.
4175 * arm-linux-nat.c: Likewise.
4176 * arm-linux-tdep.c: Likewise.
4177 * arm-tdep.c: Likewise.
4178 * arm-wince-tdep.c: Likewise.
4179 * armbsd-tdep.c: Likewise.
4180 * armnbsd-nat.c: Likewise.
4181 * armnbsd-tdep.c: Likewise.
4182 * armobsd-tdep.c: Likewise.
4183 * avr-tdep.c: Likewise.
4184 * ax-gdb.c: Likewise.
4185 * ax-general.c: Likewise.
4186 * bcache.c: Likewise.
4187 * bfin-tdep.c: Likewise.
4188 * breakpoint.c: Likewise.
4189 * build-id.c: Likewise.
4190 * buildsym.c: Likewise.
4191 * c-exp.y: Likewise.
4192 * c-lang.c: Likewise.
4193 * c-typeprint.c: Likewise.
4194 * c-valprint.c: Likewise.
4195 * charset.c: Likewise.
4196 * cli-out.c: Likewise.
4197 * cli/cli-cmds.c: Likewise.
4198 * cli/cli-decode.c: Likewise.
4199 * cli/cli-dump.c: Likewise.
4200 * cli/cli-interp.c: Likewise.
4201 * cli/cli-logging.c: Likewise.
4202 * cli/cli-script.c: Likewise.
4203 * cli/cli-setshow.c: Likewise.
4204 * cli/cli-utils.c: Likewise.
4205 * coffread.c: Likewise.
4206 * common/agent.c: Likewise.
4207 * common/buffer.c: Likewise.
4208 * common/buffer.h: Likewise.
4209 * common/common-utils.c: Likewise.
4210 * common/filestuff.c: Likewise.
4211 * common/filestuff.c: Likewise.
4212 * common/format.c: Likewise.
4213 * common/print-utils.c: Likewise.
4214 * common/rsp-low.c: Likewise.
4215 * common/signals.c: Likewise.
4216 * common/vec.h: Likewise.
4217 * common/xml-utils.c: Likewise.
4218 * core-regset.c: Likewise.
4219 * corefile.c: Likewise.
4220 * corelow.c: Likewise.
4221 * cp-abi.c: Likewise.
4222 * cp-name-parser.y: Likewise.
4223 * cp-support.c: Likewise.
4224 * cp-valprint.c: Likewise.
4225 * cris-tdep.c: Likewise.
4226 * d-exp.y: Likewise.
4227 * darwin-nat.c: Likewise.
4228 * dbxread.c: Likewise.
4229 * dcache.c: Likewise.
4230 * demangle.c: Likewise.
4231 * dicos-tdep.c: Likewise.
4232 * disasm.c: Likewise.
4233 * doublest.c: Likewise.
4234 * dsrec.c: Likewise.
4235 * dummy-frame.c: Likewise.
4236 * dwarf2-frame.c: Likewise.
4237 * dwarf2loc.c: Likewise.
4238 * dwarf2read.c: Likewise.
4239 * elfread.c: Likewise.
4240 * environ.c: Likewise.
4242 * event-loop.c: Likewise.
4243 * exceptions.c: Likewise.
4245 * expprint.c: Likewise.
4246 * f-exp.y: Likewise.
4247 * f-lang.c: Likewise.
4248 * f-typeprint.c: Likewise.
4249 * f-valprint.c: Likewise.
4250 * fbsd-nat.c: Likewise.
4251 * findcmd.c: Likewise.
4252 * findvar.c: Likewise.
4253 * fork-child.c: Likewise.
4254 * frame.c: Likewise.
4255 * frv-linux-tdep.c: Likewise.
4256 * frv-tdep.c: Likewise.
4258 * gdb_bfd.c: Likewise.
4259 * gdbarch.c: Likewise.
4260 * gdbarch.sh: Likewise.
4261 * gdbtypes.c: Likewise.
4262 * gnu-nat.c: Likewise.
4263 * gnu-v2-abi.c: Likewise.
4264 * gnu-v3-abi.c: Likewise.
4265 * go-exp.y: Likewise.
4266 * go-lang.c: Likewise.
4267 * go32-nat.c: Likewise.
4268 * guile/guile.c: Likewise.
4269 * guile/scm-auto-load.c: Likewise.
4270 * hppa-hpux-tdep.c: Likewise.
4271 * hppa-linux-nat.c: Likewise.
4272 * hppanbsd-tdep.c: Likewise.
4273 * hppaobsd-tdep.c: Likewise.
4274 * i386-cygwin-tdep.c: Likewise.
4275 * i386-dicos-tdep.c: Likewise.
4276 * i386-linux-tdep.c: Likewise.
4277 * i386-nto-tdep.c: Likewise.
4278 * i386-sol2-tdep.c: Likewise.
4279 * i386-tdep.c: Likewise.
4280 * i386bsd-tdep.c: Likewise.
4281 * i386gnu-nat.c: Likewise.
4282 * i386nbsd-tdep.c: Likewise.
4283 * i386obsd-tdep.c: Likewise.
4284 * i387-tdep.c: Likewise.
4285 * ia64-libunwind-tdep.c: Likewise.
4286 * ia64-linux-nat.c: Likewise.
4287 * inf-child.c: Likewise.
4288 * inf-ptrace.c: Likewise.
4289 * inf-ttrace.c: Likewise.
4290 * infcall.c: Likewise.
4291 * infcmd.c: Likewise.
4292 * inflow.c: Likewise.
4293 * infrun.c: Likewise.
4294 * interps.c: Likewise.
4295 * iq2000-tdep.c: Likewise.
4296 * irix5-nat.c: Likewise.
4297 * jv-exp.y: Likewise.
4298 * jv-lang.c: Likewise.
4299 * jv-typeprint.c: Likewise.
4300 * jv-valprint.c: Likewise.
4301 * language.c: Likewise.
4302 * linux-fork.c: Likewise.
4303 * linux-nat.c: Likewise.
4304 * lm32-tdep.c: Likewise.
4305 * m2-exp.y: Likewise.
4306 * m2-typeprint.c: Likewise.
4307 * m32c-tdep.c: Likewise.
4308 * m32r-linux-nat.c: Likewise.
4309 * m32r-linux-tdep.c: Likewise.
4310 * m32r-rom.c: Likewise.
4311 * m32r-tdep.c: Likewise.
4312 * m68hc11-tdep.c: Likewise.
4313 * m68k-tdep.c: Likewise.
4314 * m68kbsd-tdep.c: Likewise.
4315 * m68klinux-nat.c: Likewise.
4316 * m68klinux-tdep.c: Likewise.
4317 * m88k-tdep.c: Likewise.
4318 * machoread.c: Likewise.
4319 * macrocmd.c: Likewise.
4321 * mdebugread.c: Likewise.
4322 * mem-break.c: Likewise.
4323 * memattr.c: Likewise.
4324 * memory-map.c: Likewise.
4325 * mep-tdep.c: Likewise.
4326 * mi/mi-cmd-break.c: Likewise.
4327 * mi/mi-cmd-disas.c: Likewise.
4328 * mi/mi-cmd-env.c: Likewise.
4329 * mi/mi-cmd-stack.c: Likewise.
4330 * mi/mi-cmd-var.c: Likewise.
4331 * mi/mi-cmds.c: Likewise.
4332 * mi/mi-console.c: Likewise.
4333 * mi/mi-getopt.c: Likewise.
4334 * mi/mi-interp.c: Likewise.
4335 * mi/mi-main.c: Likewise.
4336 * mi/mi-parse.c: Likewise.
4337 * microblaze-rom.c: Likewise.
4338 * microblaze-tdep.c: Likewise.
4339 * mingw-hdep.c: Likewise.
4340 * minidebug.c: Likewise.
4341 * minsyms.c: Likewise.
4342 * mips-irix-tdep.c: Likewise.
4343 * mips-linux-tdep.c: Likewise.
4344 * mips-tdep.c: Likewise.
4345 * mips64obsd-tdep.c: Likewise.
4346 * mipsnbsd-tdep.c: Likewise.
4347 * mipsread.c: Likewise.
4348 * mn10300-linux-tdep.c: Likewise.
4349 * mn10300-tdep.c: Likewise.
4350 * monitor.c: Likewise.
4351 * moxie-tdep.c: Likewise.
4352 * mt-tdep.c: Likewise.
4353 * nat/linux-btrace.c: Likewise.
4354 * nat/linux-osdata.c: Likewise.
4355 * nat/linux-procfs.c: Likewise.
4356 * nat/linux-ptrace.c: Likewise.
4357 * nat/linux-waitpid.c: Likewise.
4358 * nbsd-tdep.c: Likewise.
4359 * nios2-linux-tdep.c: Likewise.
4360 * nto-procfs.c: Likewise.
4361 * nto-tdep.c: Likewise.
4362 * objc-lang.c: Likewise.
4363 * objfiles.c: Likewise.
4364 * opencl-lang.c: Likewise.
4365 * osabi.c: Likewise.
4366 * osdata.c: Likewise.
4367 * p-exp.y: Likewise.
4368 * p-lang.c: Likewise.
4369 * p-typeprint.c: Likewise.
4370 * parse.c: Likewise.
4371 * posix-hdep.c: Likewise.
4372 * ppc-linux-nat.c: Likewise.
4373 * ppc-sysv-tdep.c: Likewise.
4374 * ppcfbsd-tdep.c: Likewise.
4375 * ppcnbsd-tdep.c: Likewise.
4376 * ppcobsd-tdep.c: Likewise.
4377 * printcmd.c: Likewise.
4378 * procfs.c: Likewise.
4379 * prologue-value.c: Likewise.
4380 * python/py-auto-load.c: Likewise.
4381 * python/py-gdb-readline.c: Likewise.
4382 * ravenscar-thread.c: Likewise.
4383 * regcache.c: Likewise.
4384 * registry.c: Likewise.
4385 * remote-fileio.c: Likewise.
4386 * remote-m32r-sdi.c: Likewise.
4387 * remote-mips.c: Likewise.
4388 * remote-notif.c: Likewise.
4389 * remote-sim.c: Likewise.
4390 * remote.c: Likewise.
4391 * reverse.c: Likewise.
4392 * rs6000-aix-tdep.c: Likewise.
4393 * ser-base.c: Likewise.
4394 * ser-go32.c: Likewise.
4395 * ser-mingw.c: Likewise.
4396 * ser-pipe.c: Likewise.
4397 * ser-tcp.c: Likewise.
4398 * ser-unix.c: Likewise.
4399 * serial.c: Likewise.
4400 * sh-tdep.c: Likewise.
4401 * sh64-tdep.c: Likewise.
4402 * shnbsd-tdep.c: Likewise.
4404 * sol-thread.c: Likewise.
4405 * solib-dsbt.c: Likewise.
4406 * solib-frv.c: Likewise.
4407 * solib-osf.c: Likewise.
4408 * solib-som.c: Likewise.
4409 * solib-spu.c: Likewise.
4410 * solib-target.c: Likewise.
4411 * solib.c: Likewise.
4412 * somread.c: Likewise.
4413 * source.c: Likewise.
4414 * sparc-nat.c: Likewise.
4415 * sparc-sol2-tdep.c: Likewise.
4416 * sparc-tdep.c: Likewise.
4417 * sparc64-tdep.c: Likewise.
4418 * sparc64fbsd-tdep.c: Likewise.
4419 * sparc64nbsd-tdep.c: Likewise.
4420 * sparcnbsd-tdep.c: Likewise.
4421 * spu-linux-nat.c: Likewise.
4422 * spu-multiarch.c: Likewise.
4423 * spu-tdep.c: Likewise.
4424 * stabsread.c: Likewise.
4425 * stack.c: Likewise.
4426 * std-regs.c: Likewise.
4427 * symfile.c: Likewise.
4428 * symmisc.c: Likewise.
4429 * symtab.c: Likewise.
4430 * target.c: Likewise.
4431 * thread.c: Likewise.
4432 * tilegx-linux-nat.c: Likewise.
4433 * tilegx-tdep.c: Likewise.
4435 * tracepoint.c: Likewise.
4436 * tui/tui-command.c: Likewise.
4437 * tui/tui-data.c: Likewise.
4438 * tui/tui-disasm.c: Likewise.
4439 * tui/tui-file.c: Likewise.
4440 * tui/tui-layout.c: Likewise.
4441 * tui/tui-out.c: Likewise.
4442 * tui/tui-regs.c: Likewise.
4443 * tui/tui-source.c: Likewise.
4444 * tui/tui-stack.c: Likewise.
4445 * tui/tui-win.c: Likewise.
4446 * tui/tui-windata.c: Likewise.
4447 * tui/tui-winsource.c: Likewise.
4448 * typeprint.c: Likewise.
4449 * ui-file.c: Likewise.
4450 * ui-out.c: Likewise.
4451 * user-regs.c: Likewise.
4452 * utils.c: Likewise.
4453 * v850-tdep.c: Likewise.
4454 * valarith.c: Likewise.
4455 * valops.c: Likewise.
4456 * valprint.c: Likewise.
4457 * value.c: Likewise.
4458 * varobj.c: Likewise.
4459 * vax-tdep.c: Likewise.
4460 * vaxnbsd-tdep.c: Likewise.
4461 * vaxobsd-tdep.c: Likewise.
4462 * windows-nat.c: Likewise.
4463 * xcoffread.c: Likewise.
4464 * xml-support.c: Likewise.
4465 * xstormy16-tdep.c: Likewise.
4466 * xtensa-linux-nat.c: Likewise.
4468 2014-08-07 Gary Benson <gbenson@redhat.com>
4470 * common/common-defs.h: Include gdb_assert.h.
4471 * aarch64-tdep.c: Do not include gdb_assert.h.
4472 * addrmap.c: Likewise.
4473 * aix-thread.c: Likewise.
4474 * alpha-linux-tdep.c: Likewise.
4475 * alpha-mdebug-tdep.c: Likewise.
4476 * alphanbsd-tdep.c: Likewise.
4477 * amd64-nat.c: Likewise.
4478 * amd64-tdep.c: Likewise.
4479 * amd64bsd-nat.c: Likewise.
4480 * amd64fbsd-nat.c: Likewise.
4481 * amd64fbsd-tdep.c: Likewise.
4482 * amd64nbsd-nat.c: Likewise.
4483 * amd64nbsd-tdep.c: Likewise.
4484 * amd64obsd-nat.c: Likewise.
4485 * amd64obsd-tdep.c: Likewise.
4486 * arch-utils.c: Likewise.
4487 * arm-tdep.c: Likewise.
4488 * armbsd-tdep.c: Likewise.
4490 * bcache.c: Likewise.
4491 * bfin-tdep.c: Likewise.
4492 * blockframe.c: Likewise.
4493 * breakpoint.c: Likewise.
4494 * bsd-kvm.c: Likewise.
4495 * bsd-uthread.c: Likewise.
4496 * buildsym.c: Likewise.
4497 * c-exp.y: Likewise.
4498 * c-lang.c: Likewise.
4499 * charset.c: Likewise.
4500 * cleanups.c: Likewise.
4501 * cli-out.c: Likewise.
4502 * cli/cli-decode.c: Likewise.
4503 * cli/cli-dump.c: Likewise.
4504 * cli/cli-logging.c: Likewise.
4505 * cli/cli-script.c: Likewise.
4506 * cli/cli-utils.c: Likewise.
4507 * coffread.c: Likewise.
4508 * common/common-utils.c: Likewise.
4509 * common/queue.h: Likewise.
4510 * common/signals.c: Likewise.
4511 * common/vec.h: Likewise.
4512 * complaints.c: Likewise.
4513 * completer.c: Likewise.
4514 * corelow.c: Likewise.
4515 * cp-abi.c: Likewise.
4516 * cp-name-parser.y: Likewise.
4517 * cp-namespace.c: Likewise.
4518 * cp-support.c: Likewise.
4519 * cris-tdep.c: Likewise.
4520 * dbxread.c: Likewise.
4521 * dictionary.c: Likewise.
4522 * doublest.c: Likewise.
4523 * dsrec.c: Likewise.
4524 * dummy-frame.c: Likewise.
4525 * dwarf2-frame-tailcall.c: Likewise.
4526 * dwarf2-frame.c: Likewise.
4527 * dwarf2expr.c: Likewise.
4528 * dwarf2loc.c: Likewise.
4529 * dwarf2read.c: Likewise.
4531 * event-loop.c: Likewise.
4532 * exceptions.c: Likewise.
4533 * expprint.c: Likewise.
4534 * f-valprint.c: Likewise.
4535 * fbsd-nat.c: Likewise.
4536 * findvar.c: Likewise.
4537 * frame-unwind.c: Likewise.
4538 * frame.c: Likewise.
4539 * frv-tdep.c: Likewise.
4540 * gcore.c: Likewise.
4541 * gdb-dlfcn.c: Likewise.
4542 * gdb_bfd.c: Likewise.
4543 * gdbarch.c: Likewise.
4544 * gdbarch.sh: Likewise.
4545 * gdbtypes.c: Likewise.
4546 * gnu-nat.c: Likewise.
4547 * gnu-v3-abi.c: Likewise.
4548 * go-lang.c: Likewise.
4549 * guile/scm-exception.c: Likewise.
4550 * guile/scm-gsmob.c: Likewise.
4551 * guile/scm-lazy-string.c: Likewise.
4552 * guile/scm-math.c: Likewise.
4553 * guile/scm-pretty-print.c: Likewise.
4554 * guile/scm-safe-call.c: Likewise.
4555 * guile/scm-utils.c: Likewise.
4556 * guile/scm-value.c: Likewise.
4557 * h8300-tdep.c: Likewise.
4558 * hppa-hpux-nat.c: Likewise.
4559 * hppa-tdep.c: Likewise.
4560 * hppanbsd-tdep.c: Likewise.
4561 * hppaobsd-tdep.c: Likewise.
4562 * i386-darwin-nat.c: Likewise.
4563 * i386-darwin-tdep.c: Likewise.
4564 * i386-nto-tdep.c: Likewise.
4565 * i386-tdep.c: Likewise.
4566 * i386bsd-nat.c: Likewise.
4567 * i386fbsd-tdep.c: Likewise.
4568 * i386gnu-nat.c: Likewise.
4569 * i386nbsd-tdep.c: Likewise.
4570 * i386obsd-tdep.c: Likewise.
4571 * i387-tdep.c: Likewise.
4572 * ia64-libunwind-tdep.c: Likewise.
4573 * ia64-tdep.c: Likewise.
4574 * inf-ptrace.c: Likewise.
4575 * inf-ttrace.c: Likewise.
4576 * infcall.c: Likewise.
4577 * infcmd.c: Likewise.
4578 * infrun.c: Likewise.
4579 * inline-frame.c: Likewise.
4580 * interps.c: Likewise.
4581 * jv-lang.c: Likewise.
4582 * jv-typeprint.c: Likewise.
4583 * linux-fork.c: Likewise.
4584 * linux-nat.c: Likewise.
4585 * linux-thread-db.c: Likewise.
4586 * m32c-tdep.c: Likewise.
4587 * m32r-linux-nat.c: Likewise.
4588 * m32r-tdep.c: Likewise.
4589 * m68k-tdep.c: Likewise.
4590 * m68kbsd-nat.c: Likewise.
4591 * m68kbsd-tdep.c: Likewise.
4592 * m88k-tdep.c: Likewise.
4593 * machoread.c: Likewise.
4594 * macroexp.c: Likewise.
4595 * macrotab.c: Likewise.
4596 * maint.c: Likewise.
4597 * mdebugread.c: Likewise.
4598 * memory-map.c: Likewise.
4599 * mep-tdep.c: Likewise.
4600 * mi/mi-common.c: Likewise.
4601 * microblaze-tdep.c: Likewise.
4602 * mingw-hdep.c: Likewise.
4603 * mips-linux-nat.c: Likewise.
4604 * mips-linux-tdep.c: Likewise.
4605 * mips-tdep.c: Likewise.
4606 * mips64obsd-tdep.c: Likewise.
4607 * mipsnbsd-tdep.c: Likewise.
4608 * mn10300-linux-tdep.c: Likewise.
4609 * mn10300-tdep.c: Likewise.
4610 * moxie-tdep.c: Likewise.
4611 * mt-tdep.c: Likewise.
4612 * nat/linux-btrace.c: Likewise.
4613 * nat/linux-osdata.c: Likewise.
4614 * nat/linux-ptrace.c: Likewise.
4615 * nat/mips-linux-watch.c: Likewise.
4616 * nios2-linux-tdep.c: Likewise.
4617 * nios2-tdep.c: Likewise.
4618 * objc-lang.c: Likewise.
4619 * objfiles.c: Likewise.
4620 * obsd-nat.c: Likewise.
4621 * opencl-lang.c: Likewise.
4622 * osabi.c: Likewise.
4623 * parse.c: Likewise.
4624 * ppc-linux-nat.c: Likewise.
4625 * ppc-sysv-tdep.c: Likewise.
4626 * ppcfbsd-nat.c: Likewise.
4627 * ppcfbsd-tdep.c: Likewise.
4628 * ppcnbsd-nat.c: Likewise.
4629 * ppcnbsd-tdep.c: Likewise.
4630 * ppcobsd-nat.c: Likewise.
4631 * ppcobsd-tdep.c: Likewise.
4632 * printcmd.c: Likewise.
4633 * procfs.c: Likewise.
4634 * prologue-value.c: Likewise.
4635 * psymtab.c: Likewise.
4636 * python/py-lazy-string.c: Likewise.
4637 * python/py-value.c: Likewise.
4638 * regcache.c: Likewise.
4639 * reggroups.c: Likewise.
4640 * registry.c: Likewise.
4641 * remote-sim.c: Likewise.
4642 * remote.c: Likewise.
4643 * rs6000-aix-tdep.c: Likewise.
4644 * rs6000-tdep.c: Likewise.
4645 * s390-linux-tdep.c: Likewise.
4646 * score-tdep.c: Likewise.
4647 * ser-base.c: Likewise.
4648 * ser-mingw.c: Likewise.
4649 * sh-tdep.c: Likewise.
4650 * sh64-tdep.c: Likewise.
4651 * solib-darwin.c: Likewise.
4652 * solib-spu.c: Likewise.
4653 * solib-svr4.c: Likewise.
4654 * source.c: Likewise.
4655 * sparc-nat.c: Likewise.
4656 * sparc-sol2-tdep.c: Likewise.
4657 * sparc-tdep.c: Likewise.
4658 * sparc64-sol2-tdep.c: Likewise.
4659 * sparc64-tdep.c: Likewise.
4660 * sparc64fbsd-tdep.c: Likewise.
4661 * sparc64nbsd-tdep.c: Likewise.
4662 * sparc64obsd-tdep.c: Likewise.
4663 * sparcnbsd-tdep.c: Likewise.
4664 * sparcobsd-tdep.c: Likewise.
4665 * spu-multiarch.c: Likewise.
4666 * spu-tdep.c: Likewise.
4667 * stabsread.c: Likewise.
4668 * stack.c: Likewise.
4669 * symfile.c: Likewise.
4670 * symtab.c: Likewise.
4671 * target-descriptions.c: Likewise.
4672 * target-memory.c: Likewise.
4673 * target.c: Likewise.
4674 * tic6x-linux-tdep.c: Likewise.
4675 * tic6x-tdep.c: Likewise.
4676 * tilegx-linux-nat.c: Likewise.
4677 * tilegx-tdep.c: Likewise.
4679 * tramp-frame.c: Likewise.
4680 * tui/tui-out.c: Likewise.
4681 * tui/tui-winsource.c: Likewise.
4682 * ui-out.c: Likewise.
4683 * user-regs.c: Likewise.
4684 * utils.c: Likewise.
4685 * v850-tdep.c: Likewise.
4686 * valops.c: Likewise.
4687 * value.c: Likewise.
4688 * varobj.c: Likewise.
4689 * vax-nat.c: Likewise.
4690 * xml-syscall.c: Likewise.
4691 * xml-tdesc.c: Likewise.
4692 * xstormy16-tdep.c: Likewise.
4693 * xtensa-linux-nat.c: Likewise.
4694 * xtensa-tdep.c: Likewise.
4696 2014-08-07 Gary Benson <gbenson@redhat.com>
4698 * common/common-defs.h: Include common-utils.h.
4699 * defs.h: Do not include common-utils.h.
4700 * common/gdb_assert.h: Likewise.
4701 * darwin-nat.h: Likewise.
4702 * nat/linux-btrace.c: Likewise.
4703 * target/waitstatus.h: Likewise.
4705 2014-08-07 Gary Benson <gbenson@redhat.com>
4707 * common/common-defs.h: Include ptid.h.
4708 * defs.h: Do not include ptid.h.
4709 * inferior.h: Likewise.
4710 * infrun.h: Likewise.
4711 * nat/linux-btrace.h: Likewise.
4712 * nat/linux-osdata.h: Likewise.
4713 * target/waitstatus.h: Likewise.
4715 2014-08-07 Gary Benson <gbenson@redhat.com>
4717 * common/common-defs.h: Include gdb_locale.h.
4718 * defs.h: Do not include gdb_locale.h.
4720 2014-08-07 Gary Benson <gbenson@redhat.com>
4722 * common/common-defs.h: Include gdb/signals.h.
4723 * defs.h: Do not include gdb/signals.h.
4725 2014-08-07 Gary Benson <gbenson@redhat.com>
4727 * common/common-defs.h: Include pathmax.h.
4728 * defs.h: Do not include pathmax.h.
4730 2014-08-07 Gary Benson <gbenson@redhat.com>
4732 * common/common-defs.h: Include libiberty.h.
4733 * defs.h: Do not include libiberty.h.
4734 * common/queue.h: Likewise.
4735 * cp-name-parser.y: Likewise.
4736 * mi/mi-cmd-catch.c: Likewise.
4737 * python/python.c: Likewise.
4739 2014-08-07 Gary Benson <gbenson@redhat.com>
4741 * common/common-defs.h: Include ansidecl.h.
4742 * defs.h: Do not include ansidecl.h.
4743 * common/buffer.h: Likewise.
4744 * common/common-utils.h: Likewise.
4746 2014-08-07 Gary Benson <gbenson@redhat.com>
4748 * common/common-defs.h: Include stddef.h.
4749 * defs.h: Do not include stddef.h.
4750 * common/common-utils.h: Likewise.
4751 * amd64fbsd-nat.c: Likewise.
4752 * bcache.c: Likewise.
4753 * charset.c: Likewise.
4754 * common/buffer.h: Likewise.
4755 * common/vec.h: Likewise.
4756 * i386bsd-nat.c: Likewise.
4757 * nat/linux-btrace.h: Likewise.
4758 * ppcfbsd-nat.c: Likewise.
4759 * ppcnbsd-tdep.h: Likewise.
4760 * ppcobsd-nat.c: Likewise.
4761 * ppcobsd-tdep.h: Likewise.
4762 * python/py-gdb-readline.c: Likewise.
4764 2014-08-07 Gary Benson <gbenson@redhat.com>
4766 * common/common-defs.h: Include stdarg.h.
4767 * defs.h: Do not include stdarg.h.
4768 * ada-lang.c: Likewise.
4769 * common/common-utils.h: Likewise.
4770 * guile/scm-string.c: Likewise.
4771 * guile/scm-utils.c: Likewise.
4772 * m32c-tdep.c: Likewise.
4774 2014-08-07 Gary Benson <gbenson@redhat.com>
4776 * common/common-defs.h: Include stdlib.h.
4777 * defs.h: Do not include stdlib.h.
4778 * addrmap.c: Likewise.
4779 * bcache.c: Likewise.
4780 * common/buffer.c: Likewise.
4781 * common/common-utils.c: Likewise.
4782 * cp-name-parser.y: Likewise.
4783 * go32-nat.c: Likewise.
4784 * mn10300-linux-tdep.c: Likewise.
4785 * nat/linux-osdata.c: Likewise.
4786 * tui/tui.c: Likewise.
4787 * windows-nat.c: Likewise.
4789 2014-08-07 Gary Benson <gbenson@redhat.com>
4791 * common/common-defs.h: Include stdio.h.
4792 * defs.h: Do not include stdio.h.
4793 * ada-lang.c: Likewise.
4794 * common/buffer.c: Likewise.
4795 * common/common-utils.c: Likewise.
4796 * cp-name-parser.y: Likewise.
4797 * gnu-nat.c: Likewise.
4798 * go32-nat.c: Likewise.
4799 * i386gnu-nat.c: Likewise.
4800 * proc-api.c: Likewise.
4801 * proc-events.c: Likewise.
4802 * proc-flags.c: Likewise.
4803 * proc-why.c: Likewise.
4804 * python/python-internal.h: Likewise.
4805 * target-memory.c: Likewise.
4806 * tui/tui-io.c: Likewise.
4807 * tui/tui.c: Likewise.
4809 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4811 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4812 (scan_dyntag_auxv): Same.
4814 2014-08-06 Yao Qi <yao@codesourcery.com>
4816 * amd64-linux-nat.c: Remove duplicated include
4818 * i386-linux-nat.c: Likewise.
4820 2014-08-06 Yao Qi <yao@codesourcery.com>
4822 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4823 operand" with "Special opcode" in comments.
4825 2014-08-05 Gary Benson <gbenson@redhat.com>
4827 * interps.c (initialize_interps): Remove prototype.
4828 (interpreter_initialized): Remove static global.
4829 (interp_add): Do not call initialize_interps.
4830 (initialize_interps): Remove function.
4832 2014-08-05 Gary Benson <gbenson@redhat.com>
4834 * utils.c (vwarning): Remove spurious va_end.
4836 2014-08-05 Alan Modra <amodra@gmail.com>
4838 * charset.c (convert_between_encodings): Cast result of obstack_base.
4839 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4840 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4841 (read_unwind_info): Use size_t for some locals.
4842 * jit.c (finalize_symtab): Likewise.
4843 * utils.c (hashtab_obstack_allocate): Likewise.
4844 * symmisc.c (print_objfile_statistics): Update format strings.
4846 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4848 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4849 (Changes in GDB 7.8): ... here.
4851 2014-08-04 Tom Tromey <tromey@redhat.com>
4853 * target.c (set_targetdebug): New function.
4854 (initialize_targets): Pass set_targetdebug when creating "set
4857 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4859 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4860 if detecting a variable-sized field that is not the last field.
4861 Fix struct type length computation.
4863 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4865 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4868 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4870 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4871 Remove "+ 8" offset in computation of CHAIN_VMA.
4873 2014-07-31 Doug Evans <dje@google.com>
4875 * inflow.c (child_terminal_inferior): Add comment.
4876 (child_terminal_ours_for_output): Add comment.
4877 (child_terminal_ours): Add comment.
4878 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4879 (linux_nat_terminal_ours): Add comment.
4881 2014-07-31 Gary Benson <gbenson@redhat.com>
4883 * common/btrace-common.h: Do not include defs.h or server.h.
4884 * nat/mips-linux-watch.h: Likewise.
4885 * gdb-dlfcn.h: Do not include defs.h.
4886 * tracefile.h: Likewise.
4888 2014-07-30 Roland McGrath <mcgrathr@google.com>
4890 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4892 2014-07-30 Tom Tromey <tromey@redhat.com>
4894 * bsd-kvm.c (bsd_kvm_open): Constify.
4895 * corelow.c (core_open): Constify.
4896 * ctf.c (ctf_open): Constify.
4897 * dbug-rom.c (dbug_open): Constify.
4898 * exec.c (exec_open): Constify.
4899 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4900 * microblaze-rom.c (picobug_open): Constify.
4901 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4903 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4904 * record-btrace.c (record_btrace_open): Constify.
4905 * record-full.c (record_full_core_open_1, record_full_open_1)
4906 (record_full_open): Constify.
4907 * remote-m32r-sdi.c (m32r_open): Constify.
4908 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4909 (rockhopper_open, lsi_open): Constify.
4910 * remote-sim.c (gdbsim_open): Constify.
4911 * remote.c (remote_open, extended_remote_open, remote_open_1):
4913 * target.h (struct target_ops) <to_open>: Make "arg" const.
4914 * tracefile-tfile.c (tfile_open): Constify.
4916 2014-07-30 Tom Tromey <tromey@redhat.com>
4918 * breakpoint.c (map_breakpoint_numbers): Update.
4919 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4920 (get_number_const): New function.
4921 (get_number): Rewrite using get_number_const.
4922 (init_number_or_range): Make "string" const.
4923 (number_is_in_list): Make "list" const.
4924 * cli/cli-utils.h (get_number_const): Declare.
4925 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4926 (init_number_or_range, number_is_in_list): Update.
4927 * printcmd.c (map_display_numbers): Update.
4928 * value.c (value_from_history_ref): Constify.
4929 * value.h (value_from_history_ref): Update.
4931 2014-07-30 Tom Tromey <tromey@redhat.com>
4933 * corefile.c (hook_type, call_extra_exec_file_hooks)
4934 (specify_exec_file_hook): Constify.
4935 * exec.c (exec_file_attach): Make "filename" const.
4936 * gdbcore.h (deprecated_exec_file_display_hook)
4937 (specify_exec_file_hook, exec_file_attach): Constify.
4938 * main.c (captured_main): Use catch_command_errors_const.
4940 2014-07-30 Tom Tromey <tromey@redhat.com>
4942 * target.c (open_target): New function.
4943 (add_target_with_completer, add_deprecated_target_alias): Use
4944 set_cmd_sfunc, set_cmd_context.
4945 (debug_to_open): Remove.
4946 (setup_target_debug): Update.
4948 2014-07-30 Yao Qi <yao@codesourcery.com>
4950 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4952 * parse.c (exp_iterate): Update comments.
4954 2014-07-30 Gary Benson <gbenson@redhat.com>
4956 * common/common-defs.h: New file.
4957 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4958 * defs.h: Include common-defs.h.
4959 Do not include config.h or build-gnulib/config.h.
4961 2014-07-30 Gary Benson <gbenson@redhat.com>
4963 * common/common-utils.h: Do not include config.h.
4964 * nat/linux-btrace.h: Likewise.
4966 2014-07-30 Gary Benson <gbenson@redhat.com>
4968 * btrace.c: Include defs.h.
4969 * common/ptid.c: Include defs.h or server.h as appropriate.
4970 * nat/mips-linux-watch.c: Likewise.
4972 2014-07-29 Tom Tromey <tromey@redhat.com>
4974 * target.c (target_is_pushed): Simplify.
4976 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4980 2014-07-29 Yao Qi <yao@codesourcery.com>
4983 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4985 2014-07-28 Doug Evans <xdje42@gmail.com>
4988 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4989 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4992 2014-07-28 Will Newton <will.newton@linaro.org>
4994 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4995 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4996 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4997 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4998 (THUMB2_EABI_SYSCALL): Likewise.
4999 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5001 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5002 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5004 2014-07-27 Doug Evans <xdje42@gmail.com>
5006 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5008 2014-07-27 Doug Evans <xdje42@gmail.com>
5010 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5012 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5013 Doug Evans <xdje42@gmail.com>
5016 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5017 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5018 * configure.ac: Try to use guild to compile an scm file, if it fails
5019 then disable guile support.
5020 * configure: Regenerate.
5021 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5023 (GUILE_COMPILED_FILES): New variable.
5024 (GUILE_FILES) Update.
5025 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5026 (stamp-guile): Compile scm files.
5027 * guile/guile.c (boot_guile_support): New function.
5028 (standard_throw_args_p): New function.
5029 (print_standard_throw_error, print_throw_error): New functions.
5030 (handle_boot_error): New function.
5031 (initialize_scheme_side): Rewrite to call boot_guile_support.
5032 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5033 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5035 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5036 Doug Evans <xdje42@gmail.com>
5039 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5040 * guile/lib/gdb/support.scm: New file.
5041 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5042 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5044 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5046 (%assert-type): Ditto, and renamed to assert-type.
5047 (%exception-print-style): Delete.
5049 2014-07-26 Doug Evans <xdje42@gmail.com>
5052 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5053 * configure: Regenerate.
5054 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5056 (PYTHON_FILES): New variable.
5057 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5058 (GUILE_FILES): New variable.
5059 (stamp-python, install-python, uninstall-python): Handle empty
5061 (stamp-guile, install-guile, uninstall-guile): Ditto.
5063 2014-07-26 Doug Evans <xdje42@gmail.com>
5066 * guile/lib/gdb.scm (pretty-printers): Export.
5067 (set-pretty-printers!): Export.
5068 * guile/lib/gdb/printing.scm (gdb module): Update.
5069 (prepend-pretty-printer!, append-pretty-printer!): Update.
5070 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5071 (pretty_printer_list_var): Delete.
5072 (pretty_printer_list): New static global.
5073 (gdbscm_pretty_printers): New function.
5074 (gdbscm_set_pretty_printers_x): New function.
5075 (ppscm_find_pretty_printer_from_gdb): Update.
5076 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5077 (gdbscm_initialize_pretty_printers): Update.
5079 2014-07-26 Doug Evans <xdje42@gmail.com>
5082 * configure.ac: Add check for header gc/gc.h.
5083 Add check for function setenv.
5084 * configure: Regenerate.
5085 * config.in: Regenerate.
5086 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5088 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5090 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5091 variation in gdbarch matching.
5093 2014-07-25 Tom Tromey <tromey@redhat.com>
5095 * exec.c (using_exec_ops): Remove.
5096 (exec_close_1): Update. Remove extraneous block, reindent.
5097 (add_target_sections): Use target_is_pushed.
5099 2014-07-25 Pedro Alves <palves@redhat.com>
5101 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5102 * monitor.c (monitor_create_inferior): Likewise.
5103 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5104 * remote-sim.c (gdbsim_create_inferior): Likewise.
5105 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5106 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5107 * windows-nat.c (do_initial_windows_stuff): Likewise.
5109 2014-07-25 Pedro Alves <palves@redhat.com>
5111 * NEWS: Mention signal passing and "signal" command changes.
5112 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5114 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5116 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5117 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5118 (jump_command): Adjust clear_proceed_status call.
5119 (signal_command): Warn if other thread that are resumed have
5120 signals that will be delivered. Adjust clear_proceed_status call.
5121 (until_next_command, finish_command)
5122 (proceed_after_attach_callback, attach_command_post_wait)
5123 (attach_command): Adjust clear_proceed_status call.
5124 * infrun.c (proceed_after_vfork_done): Likewise.
5125 (proceed_after_attach_callback): Adjust comment.
5126 (clear_proceed_status_thread): Clear stop_signal if not in pass
5128 (clear_proceed_status_callback): Delete.
5129 (clear_proceed_status): New 'step' parameter. Only clear the
5130 proceed status of threads the command being prepared is about to
5132 (proceed): If passed in an explicit signal, override stop_signal
5133 with it. Don't pass the last stop signal to the thread we're
5135 (init_wait_for_inferior): Adjust clear_proceed_status call.
5136 (switch_back_to_stepped_thread): Clear the signal if it should not
5138 * infrun.h (clear_proceed_status): New 'step' parameter.
5139 (user_visible_resume_ptid): Add comment.
5140 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5141 signal is in pass state.
5142 * remote.c (append_pending_thread_resumptions): Likewise.
5143 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5145 2014-07-25 Tom Tromey <tromey@redhat.com>
5147 * target.h (target_stopped_data_address)
5148 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5151 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5153 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5155 (avr_pointer_to_address): Likewise.
5157 2014-07-24 Tom Tromey <tromey@redhat.com>
5159 * monitor.c (compile_pattern): Update.
5160 * target.h (struct target_ops) <to_shortname, to_longname,
5163 2014-07-24 Tom Tromey <tromey@redhat.com>
5165 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5166 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5167 (add_info_alias, add_com): Make "doc" const.
5168 (print_doc_line): Make "str" const.
5169 (delete_cmd): Update.
5170 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5171 (print_doc_line): Update.
5172 * cli/cli-script.c (document_command): Update.
5173 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5174 (add_com, add_info, add_info_alias): Update.
5175 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5176 * python/py-cmd.c (cmdpy_destroyer): Update.
5178 2014-07-24 Tom Tromey <tromey@redhat.com>
5180 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5181 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5182 (help_cmd_list): Constify.
5183 (lookup_cmd): Update.
5184 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5186 (help_cmd_list, apropos_cmd): Update.
5187 * cli/cli-script.c (show_user): Update.
5188 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5189 * cli/cli-setshow.h (cmd_show_list): Update.
5190 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5191 (cmd_show_list): Update.
5192 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5193 * python/py-cmd.c (cmdpy_destroyer): Update.
5195 2014-07-24 Tom Tromey <tromey@redhat.com>
5197 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5198 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5200 * command.h (deprecate_cmd): Update.
5201 * maint.c (maintenance_do_deprecate): Add casts.
5203 2014-07-24 Tom Tromey <tromey@redhat.com>
5205 * cli/cli-decode.c (help_cmd): Make parameter "const".
5206 * cli/cli-decode.h (help_cmd): Update.
5208 2014-07-24 Tom Tromey <tromey@redhat.com>
5210 * stack.c (up_silently_base, down_silently_base): Make argument
5213 2014-07-24 Tom Tromey <tromey@redhat.com>
5215 * solib.c (solib_add): Make "pattern" const.
5216 * solib.h (solib_add): Update.
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5220 * remote.c (remote_serial_open, print_packet, putpkt)
5221 (putpkt_binary): Constify.
5222 * remote.h (putpkt): Update.
5224 2014-07-24 Tom Tromey <tromey@redhat.com>
5226 * monitor.c (monitor_open): Make "args" const.
5227 * monitor.h (monitor_open): Update.
5229 2014-07-24 Tom Tromey <tromey@redhat.com>
5231 * maint.c (match_bfd_flags): Make "string" const.
5232 (print_bfd_section_info): Remove casts.
5233 (print_objfile_section_info): Make "string" const.
5235 2014-07-24 Tom Tromey <tromey@redhat.com>
5237 * inf-child.c (inf_child_open_target): Make "arg" const.
5238 * inf-child.h (inf_child_open_target): Update.
5240 2014-07-24 Tom Tromey <tromey@redhat.com>
5242 * environ.c (unset_in_environ): Make "var" const.
5243 * environ.h (unset_in_environ): Update.
5245 2014-07-24 Tom Tromey <tromey@redhat.com>
5247 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5249 (scan_filename_with_cleanup): Likewise.
5250 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5251 Make arguments const.
5252 (restore_command): Update.
5254 2014-07-24 Pedro Alves <palves@redhat.com>
5256 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5258 2014-07-24 Tom Tromey <tromey@redhat.com>
5259 Gary Benson <gbenson@redhat.com>
5261 * nat/linux-ptrace.c (additional_flags): New global.
5262 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5263 additional_flags; don't check GDBSERVER.
5264 (linux_ptrace_set_additional_flags): New function.
5265 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5267 * linux-nat.c (_initialize_linux_nat): Call
5268 linux_ptrace_set_additional_flags.
5270 2014-07-24 Tom Tromey <tromey@redhat.com>
5272 * make-target-delegates (munge_type, write_debugmethod): New
5274 (debug_names): New global.
5275 ($TARGET_DEBUG_PRINTER): New global.
5276 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5278 Write debug methods. Generate init_debug_target.
5279 * target-debug.h: New file.
5280 * target-delegates.c: Rebuild.
5281 * target.c: Include target-debug.h.
5282 (debug_target): Hoist definition.
5283 (target_kill, target_get_section_table, target_memory_map)
5284 (target_flash_erase, target_flash_done, target_detach)
5285 (target_disconnect, target_wait, target_resume)
5286 (target_pass_signals, target_program_signals, target_follow_fork)
5287 (target_mourn_inferior, target_search_memory)
5288 (target_thread_address_space, target_close)
5289 (target_find_new_threads, target_core_of_thread)
5290 (target_verify_memory, target_insert_mask_watchpoint)
5291 (target_remove_mask_watchpoint): Remove targetdebug code.
5292 (debug_to_post_attach, debug_to_prepare_to_store)
5293 (debug_to_files_info, debug_to_insert_breakpoint)
5294 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5295 (debug_to_region_ok_for_hw_watchpoint)
5296 (debug_to_can_accel_watchpoint_condition)
5297 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5298 (debug_to_watchpoint_addr_within_range)
5299 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5300 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5301 (debug_to_terminal_init, debug_to_terminal_inferior)
5302 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5303 (debug_to_terminal_save_ours, debug_to_terminal_info)
5304 (debug_to_load, debug_to_post_startup_inferior)
5305 (debug_to_insert_fork_catchpoint)
5306 (debug_to_remove_fork_catchpoint)
5307 (debug_to_insert_vfork_catchpoint)
5308 (debug_to_remove_vfork_catchpoint)
5309 (debug_to_insert_exec_catchpoint)
5310 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5311 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5312 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5313 (setup_target_debug): Call init_debug_target.
5314 * target.h (TARGET_DEBUG_PRINTER): New macro.
5315 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5316 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5318 2014-07-24 Gary Benson <gbenson@redhat.com>
5320 * exceptions.h (throw_vfatal): Renamed to...
5321 (throw_vquit): New declaration.
5322 (throw_quit): Likewise.
5323 * exceptions.c (throw_vfatal): Renamed to...
5324 (throw_vquit): New function.
5325 (throw_quit): Likewise.
5326 (throw_error): Call throw_verror rather than throw_it.
5327 * utils.h (vfatal): Removed.
5329 * utils.c (vfatal): Removed.
5331 (internal_verror): Replaced call to fatal with call to throw_quit.
5332 (quit): Replaced calls to fatal with calls to throw_quit.
5334 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5336 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5339 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5341 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5342 less than zero in conditional expression.
5344 2014-07-23 Tom Tromey <tromey@redhat.com>
5346 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5347 ($INTRO_PART): Don't match whitespace.
5348 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5350 ($METHOD): Add $METHOD_TRAILER.
5352 (scan_target_h): New sub.
5353 Change main loop not to collect state.
5354 * target-delegates.c: Rebuild.
5356 2014-07-23 Gary Benson <gbenson@redhat.com>
5358 * cp-support.c (gdb_demangle): Fix build on systems without
5361 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5363 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5364 for reference entry value target data value.
5366 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5368 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5369 value_available_contents_eq.
5371 2014-07-22 Pedro Alves <palves@redhat.com>
5373 * value.c (allocate_optimized_out_value): Don't mark value as
5376 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5378 * MAINTAINERS (Write After Approval): Update my email address.
5380 2014-07-20 Doug Evans <dje@google.com>
5383 * remote.c (putpkt_binary): Add text to error message.
5385 2014-07-20 Yao Qi <yao@codesourcery.com>
5387 * eval.c: Remove "Chill" from comments.
5388 * gdbtypes.h: Likewise.
5389 * symtab.h: Likewise.
5391 2014-07-20 Yao Qi <yao@codesourcery.com>
5393 * std-operator.def: Update comments to TERNOP_SLICE.
5395 2014-07-20 Yao Qi <yao@codesourcery.com>
5397 * std-operator.def: Remove BINOP_RANGE.
5398 * breakpoint.c (watchpoint_exp_is_const): Update.
5399 * expprint.c (dump_subexp_body_standard): Likewise.
5400 * eval.c (init_array_element): Remove dead code.
5401 (evaluate_subexp_standard): Likewise.
5403 2014-07-20 Yao Qi <yao@codesourcery.com>
5405 * std-operator.def: Remove BINOP_IN.
5406 * breakpoint.c (watchpoint_exp_is_const): Update.
5407 * eval.c (evaluate_subexp_standard): Likewise.
5408 * expprint.c (dump_subexp_body_standard): Likewise.
5410 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5412 * microblaze-tdep.c (microblaze_register_names): Add
5413 the rshr and rslr register names.
5414 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5415 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5416 Use of tdesc_numbered_register. Use of
5417 microblaze_register_g_packet_guesses. Use of
5418 tdesc_use_registers. Use of set_gdbarch_register_type.
5419 (microblaze_register_g_packet_guesses): New.
5420 * microblaze-tdep.h (microblaze_reg_num): Add
5421 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5422 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5423 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5424 * features/microblaze-core.xml: New file.
5425 * features/microblaze-stack-protect.xml: New file.
5426 * features/microblaze-with-stack-protect.c: New file.
5427 * features/microblaze-with-stack-protect.xml: New file.
5428 * features/microblaze.xml: New file.
5429 * features/microblaze.c: New file.
5430 * features/Makefile (microblaze-with-stack-protect): Add
5431 microblaze-with-stack-protect microblaze and microblaze-expedite.
5432 * regformats/microblaze-with-stack-protect.dat: New file.
5433 * regformats/microblaze.dat: New file.
5434 * doc/gdb.texinfo (MicroBlaze Features): Added.
5436 2014-07-18 Tom Tromey <tromey@redhat.com>
5438 * exec.c (exec_ops): Now static.
5439 * exec.h (exec_ops): Don't declare.
5441 2014-07-18 Tom Tromey <tromey@redhat.com>
5443 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5444 to find_target_beneath.
5445 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5446 find_target_beneath.
5447 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5449 2014-07-18 Tom Tromey <tromey@redhat.com>
5452 * utils.c (quit): Use target_supports_terminal_ours.
5453 * target.h (target_supports_terminal_ours): Declare.
5454 * target.c (target_supports_delete_record): Don't check
5455 to_delete_record against NULL.
5456 (target_supports_terminal_ours): New function.
5458 2014-07-18 Tom Tromey <tromey@redhat.com>
5461 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5462 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5463 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5464 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5465 * windows-nat.c (windows_xfer_partial): Always delegate.
5466 * record-btrace.c (record_btrace_xfer_partial): Simplify
5468 (record_btrace_fetch_registers, record_btrace_store_registers)
5469 (record_btrace_prepare_to_store, record_btrace_resume)
5470 (record_btrace_wait, record_btrace_find_new_threads)
5471 (record_btrace_thread_alive): Likewise.
5472 * procfs.c (procfs_xfer_partial): Always delegate.
5473 * corelow.c (core_xfer_partial): Always delegate.
5474 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5476 2014-07-18 Tom Tromey <tromey@redhat.com>
5478 * exec.c (exec_make_note_section): Move earlier.
5480 2014-07-17 Doug Evans <dje@google.com>
5483 * maint.c (count_symtabs_and_blocks): Handle NULL
5484 current_program_space.
5485 (report_command_stats): Check global enabled flag in addition to
5486 recorded enabled flag.
5487 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5489 2014-07-16 Pedro Alves <palves@redhat.com>
5491 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5493 2014-07-16 Tom Tromey <tromey@redhat.com>
5495 * target.h (struct target_ops) <to_delete_record>: Reformat
5498 2014-07-16 Tom Tromey <tromey@redhat.com>
5500 * target-delegates.c: Rebuild.
5502 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5504 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5505 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5506 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5507 (avr_pointer_to_address): Likewise.
5508 (avr_address_class_type_flags): New function.
5509 (avr_address_class_type_flags_to_name): Likewise.
5510 (avr_address_class_name_to_type_flags): Likewise.
5511 (avr_gdbarch_init): Set address_class_type_flags,
5512 address_class_type_flags_to_name and
5513 address_class_name_to_type_flags.
5515 2014-07-15 Pedro Alves <palves@redhat.com>
5517 * linux-nat.c (kill_callback): Save errno and work with saved
5520 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5522 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5524 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5526 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5527 breakpoint support correctly.
5529 2014-07-14 Pedro Alves <palves@redhat.com>
5531 * utils.c (prompt_for_continue): Call target_terminal_ours.
5533 2014-07-14 Pedro Alves <palves@redhat.com>
5535 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5536 catch_errors. Don't re-enable stdin or notify observers where,
5538 (fetch_inferior_event_wrapper): Delete.
5540 2014-07-14 Pedro Alves <palves@redhat.com>
5543 * top.c: Include "inf-loop.h".
5544 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5546 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5548 (gdb_readline_wrapper): Store whether the target is async, and
5551 2014-07-14 Pedro Alves <palves@redhat.com>
5554 * top.c (gdb_readline_wrapper_line): Tweak comment.
5555 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5556 the input handler callback.
5558 2014-07-14 Pedro Alves <palves@redhat.com>
5561 * main.c: Include event-top.h.
5562 (handle_command_errors): New function.
5563 (catch_command_errors, catch_command_errors_const): Use it.
5565 2014-07-14 Pedro Alves <palves@redhat.com>
5567 * exceptions.c (catch_command_errors, catch_command_errors_const):
5569 * exceptions.h (catch_command_errors_ftype)
5570 (catch_command_errors_const_ftype): Moved to main.c.
5571 (catch_command_errors, catch_command_errors_const): Delete
5573 * main.c (catch_command_errors_ftype)
5574 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5575 (catch_command_errors, catch_command_errors_const)): Moved here
5576 from exceptions.c and make static.
5578 2014-07-14 Pedro Alves <palves@redhat.com>
5580 * exceptions.c (print_any_exception): Delete.
5581 (catch_exceptions_with_msg): Use exception_print instead of
5582 print_any_exception.
5583 (catch_errors): Use exception_fprintf instead of
5584 print_any_exception.
5585 (catch_command_errors, catch_command_errors_const): Use
5586 exception_print instead of print_any_exception.
5588 2014-07-14 Pedro Alves <palves@redhat.com>
5590 * infcall.c (run_inferior_call): Set 'sync_execution' while
5591 running the inferior call.
5593 2014-07-14 Pedro Alves <palves@redhat.com>
5595 * value.c (value_contents_equal): Delete function.
5596 * value.h (value_contents_equal): Delete declaration.
5598 2014-07-14 Tom Tromey <tromey@redhat.com>
5601 * gdbtypes.c (is_dynamic_type_internal): New function, from
5603 (is_dynamic_type): Rewrite.
5604 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5605 (resolve_dynamic_struct): Likewise.
5606 (resolve_dynamic_type_internal): New function, from
5607 resolve_dynamic_type.
5608 (resolve_dynamic_type): Rewrite.
5610 2014-07-14 Tom Tromey <tromey@redhat.com>
5612 * target.c (target_require_runnable): Also check record_stratum.
5615 2014-07-11 Yao Qi <yao@codesourcery.com>
5617 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5618 thumb_instruction_restores_sp return true.
5620 2014-07-11 Yao Qi <yao@codesourcery.com>
5622 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5623 (thumb_in_function_epilogue_p): Call
5624 thumb_instruction_restores_sp.
5626 2014-07-11 Yao Qi <yao@codesourcery.com>
5628 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5630 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5632 2014-07-11 Gary Benson <gbenson@redhat.com>
5634 * amd64-linux-nat.c (gdbcore.h): Remove include.
5635 (regset.h): Likewise.
5636 (nat/linux-btrace.h): Likewise.
5637 (btrace.h): Likewise.
5638 (gdb_assert.h): Likewise.
5639 (string.h): Likewise.
5640 (sys/uio.h): Likewise.
5641 (sys/debugreg.h): Likewise.
5642 (sys/syscall.h): Likewise.
5643 (sys/procfs.h): Likewise.
5644 (sys/user.h): Likewise.
5645 (asm/ptrace.h): Likewise.
5646 (i386-nat.h): Likewise.
5647 * i386-linux-nat.c (i386-nat.h): Likewise.
5648 (regset.h): Likewise.
5649 (target.h): Likewise.
5650 (linux-nat.h): Likewise.
5651 (nat/linux-btrace.h): Likewise.
5652 (btrace.h): Likewise.
5653 (gdb_assert.h): Likewise.
5654 (string.h): Likewise.
5655 (sys/uio.h): Likewise.
5656 (sys/user.h): Likewise.
5657 (sys/procfs.h): Likewise.
5658 (sys/reg.h): Likewise.
5659 (sys/debugreg.h): Likewise.
5660 (ORIG_EAX): Remove definition.
5662 2014-07-11 Gary Benson <gbenson@redhat.com>
5664 * i386-linux-nat.h: New file.
5665 * x86-linux-nat.h: Likewise.
5666 * x86-linux-nat.c: Likewise.
5667 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5668 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5669 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5670 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5671 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5672 (PTRACE_SETREGSET): Likewise.
5673 (arch_lwp_info): Now in x86-linux-nat.c.
5674 (have_ptrace_getregset): Now in x86-linux-nat.h.
5675 (x86_linux_dr_get): Now in x86-linux-nat.c.
5676 (x86_linux_dr_set): Likewise.
5677 (x86_linux_dr_get_addr): Likewise.
5678 (x86_linux_dr_get_control): Likewise.
5679 (x86_linux_dr_get_status): Likewise.
5680 (update_debug_registers_callback): Likewise.
5681 (x86_linux_dr_set_control): Likewise.
5682 (x86_linux_dr_set_addr): Likewise.
5683 (x86_linux_prepare_to_resume): Likewise.
5684 (x86_linux_new_thread): Likewise.
5685 (x86_linux_new_fork): Likewise.
5686 (x86_linux_get_thread_area): Likewise.
5687 (super_post_startup_inferior): Likewise.
5688 (x86_linux_child_post_startup_inferior): Likewise.
5689 (AMD64_LINUX_USER64_CS): Likewise.
5690 (AMD64_LINUX_X32_DS): Likewise.
5691 (x86_linux_read_description): Likewise.
5692 (x86_linux_enable_btrace): Likewise.
5693 (x86_linux_disable_btrace): Likewise.
5694 (x86_linux_teardown_btrace): Likewise.
5695 (x86_linux_read_btrace): Likewise.
5696 (x86_linux_create_target): Likewise.
5697 (x86_linux_add_target): Likewise.
5698 * i386-linux-nat.c (x86-linux-nat.h): New include.
5699 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5700 (PTRACE_SETREGSET): Likewise.
5701 (arch_lwp_info): Now in x86-linux-nat.c.
5702 (have_ptrace_getregset): Now in x86-linux-nat.h.
5703 (x86_linux_dr_get): Now in x86-linux-nat.c.
5704 (x86_linux_dr_set): Likewise.
5705 (x86_linux_dr_get_addr): Likewise.
5706 (x86_linux_dr_get_control): Likewise.
5707 (x86_linux_dr_get_status): Likewise.
5708 (update_debug_registers_callback): Likewise.
5709 (x86_linux_dr_set_control): Likewise.
5710 (x86_linux_dr_set_addr): Likewise.
5711 (x86_linux_prepare_to_resume): Likewise.
5712 (x86_linux_new_thread): Likewise.
5713 (x86_linux_new_fork): Likewise.
5714 (x86_linux_get_thread_area): Likewise.
5715 (super_post_startup_inferior): Likewise.
5716 (x86_linux_child_post_startup_inferior): Likewise.
5717 (AMD64_LINUX_USER64_CS): Likewise.
5718 (AMD64_LINUX_X32_DS): Likewise.
5719 (x86_linux_read_description): Likewise.
5720 (x86_linux_enable_btrace): Likewise.
5721 (x86_linux_disable_btrace): Likewise.
5722 (x86_linux_teardown_btrace): Likewise.
5723 (x86_linux_read_btrace): Likewise.
5724 (x86_linux_create_target): Likewise.
5725 (x86_linux_add_target): Likewise.
5727 2014-07-11 Gary Benson <gbenson@redhat.com>
5729 * amd64-linux-nat.c: Comment and whitespace changes.
5730 * i386-linux-nat.c: Comment and whitespace changes.
5732 2014-07-11 Gary Benson <gbenson@redhat.com>
5734 * amd64-linux-nat.c (x86_linux_create_target): New function.
5735 (x86_linux_add_target): Likewise.
5736 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5737 * i386-linux-nat.c (x86_linux_create_target): New function.
5738 (x86_linux_add_target): Likewise.
5739 (_initialize_i386_linux_nat): Delegate to the above new functions.
5741 2014-07-11 Gary Benson <gbenson@redhat.com>
5743 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5744 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5745 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5746 (ps_get_thread_area): Delegate to the above.
5748 2014-07-11 Gary Benson <gbenson@redhat.com>
5750 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5751 x86_linux_read_description. All uses updated. amd64-specific
5752 code conditionalized. Conditionalized i386-specific code added.
5753 Redundant cast removed.
5754 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5755 x86_linux_read_description. All uses updated. i386-specific
5756 code conditionalized. Conditionalized amd64-specific code added.
5757 One sizeof replaced with the actual type it is describing.
5759 2014-07-11 Gary Benson <gbenson@redhat.com>
5761 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5762 x86_linux_dr_get. All uses updated.
5763 (amd64_linux_dr_set): Renamed to
5764 x86_linux_dr_set. All uses updated.
5765 (amd64_linux_dr_get_addr): Renamed to
5766 x86_linux_dr_get_addr. All uses updated.
5767 (amd64_linux_dr_get_control): Renamed to
5768 x86_linux_dr_get_control. All uses updated.
5769 (amd64_linux_dr_get_status): Renamed to
5770 x86_linux_dr_get_status. All uses updated.
5771 (amd64_linux_dr_set_control): Renamed to
5772 x86_linux_dr_set_control. All uses updated.
5773 (amd64_linux_dr_set_addr): Renamed to
5774 x86_linux_dr_set_addr. All uses updated.
5775 (amd64_linux_prepare_to_resume): Renamed to
5776 x86_linux_prepare_to_resume. All uses updated.
5777 (amd64_linux_new_thread): Renamed to
5778 x86_linux_new_thread. All uses updated.
5779 (amd64_linux_new_fork): Renamed to
5780 x86_linux_new_fork. All uses updated.
5781 (amd64_linux_child_post_startup_inferior): Renamed to
5782 x86_linux_child_post_startup_inferior. All uses updated.
5783 (amd64_linux_enable_btrace): Renamed to
5784 x86_linux_enable_btrace. All uses updated.
5785 (amd64_linux_disable_btrace): Renamed to
5786 x86_linux_disable_btrace. All uses updated.
5787 (amd64_linux_teardown_btrace): Renamed to
5788 x86_linux_teardown_btrace. All uses updated.
5789 (amd64_linux_read_btrace): Renamed to
5790 x86_linux_read_btrace. All uses updated.
5791 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5792 x86_linux_dr_get. All uses updated.
5793 (i386_linux_dr_set): Renamed to
5794 x86_linux_dr_set. All uses updated.
5795 (i386_linux_dr_get_addr): Renamed to
5796 x86_linux_dr_get_addr. All uses updated.
5797 (i386_linux_dr_get_control): Renamed to
5798 x86_linux_dr_get_control. All uses updated.
5799 (i386_linux_dr_get_status): Renamed to
5800 x86_linux_dr_get_status. All uses updated.
5801 (i386_linux_dr_set_control): Renamed to
5802 x86_linux_dr_set_control. All uses updated.
5803 (i386_linux_dr_set_addr): Renamed to
5804 x86_linux_dr_set_addr. All uses updated.
5805 (i386_linux_prepare_to_resume): Renamed to
5806 x86_linux_prepare_to_resume. All uses updated.
5807 (i386_linux_new_thread): Renamed to
5808 x86_linux_new_thread. All uses updated.
5809 (i386_linux_new_fork): Renamed to
5810 x86_linux_new_fork. All uses updated.
5811 (i386_linux_child_post_startup_inferior): Renamed to
5812 x86_linux_child_post_startup_inferior. All uses updated.
5813 (i386_linux_enable_btrace): Renamed to
5814 x86_linux_enable_btrace. All uses updated.
5815 (i386_linux_disable_btrace): Renamed to
5816 x86_linux_disable_btrace. All uses updated.
5817 (i386_linux_teardown_btrace): Renamed to
5818 x86_linux_teardown_btrace. All uses updated.
5819 (i386_linux_read_btrace): Renamed to
5820 x86_linux_read_btrace. All uses updated.
5822 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5824 * remote.c (extended_remote_post_attach): New function.
5825 (init_extended_remote_ops): Install it as to_post_attach method.
5827 2014-07-09 Pedro Alves <palves@redhat.com>
5829 * infcmd.c (attach_command_post_wait): Don't call
5830 target_terminal_inferior here.
5831 (attach_command): Call it here instead.
5833 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5835 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5837 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5838 from varobj.c, with additional checks.
5839 (c_varobj_ops): Fill in is_path_expr_parent field.
5840 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5841 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5843 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5845 (varobj_default_is_path_expr_parent): New function.
5846 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5847 (varobj_default_is_path_expr_parent): Declare new function.
5849 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5851 * infcmd.c (finish_backward): Turn internal error into normal error.
5853 2014-07-07 Pedro Alves <palves@redhat.com>
5856 * remote.c (async_handle_remote_sigint)
5857 (async_handle_remote_sigint_twice): Call
5858 gdb_call_async_signal_handler instead of
5859 mark_async_signal_handler.
5861 2014-07-07 Tom Tromey <tromey@redhat.com>
5863 * target-delegates.c: Rebuild.
5864 * target.c (target_info_record): Remove.
5865 * record.c (info_record_command): Unconditionally call
5867 * target.h (struct target_ops) <to_info_record>: Use
5868 TARGET_DEFAULT_IGNORE.
5869 (target_info_record): Remove.
5871 2014-07-07 Tom Tromey <tromey@redhat.com>
5873 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5874 TARGET_DEFAULT_NORETURN.
5875 * target.c (generic_tls_error): New function.
5876 (target_translate_tls_address): Don't search target stack.
5877 * target-delegates.c: Rebuild.
5878 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5880 * linux-thread-db.c (thread_db_get_thread_local_address):
5881 Unconditionally call beneath target.
5883 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5885 * cli/cli-logging.c (pop_output_files): Assign targerr to
5888 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5890 * MAINTAINERS (Write After Approval): Update my email address.
5892 2014-07-02 Gary Benson <gbenson@redhat.com>
5894 * proc-service.c (ps_xfer_memory): Update comment.
5895 (ps_pstop): Remove unused function.
5896 (ps_pcontinue): Likewise.
5897 (ps_lstop): Likewise.
5898 (ps_lcontinue): Likewise.
5899 (ps_lgetxregsize): Likewise.
5900 (ps_lgetxregs): Likewise.
5901 (ps_lsetxregs): Likewise.
5902 (ps_plog): Likewise.
5903 (ps_ptread): Likewise.
5904 (ps_ptwrite): Likewise.
5906 2014-07-01 Mark Wielaard <mjw@redhat.com>
5908 * dwarf2read.c (add_array_cv_type): New function.
5909 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5910 (read_tag_volatile_type): Likewise.
5912 2014-07-01 Tom Tromey <tromey@redhat.com>
5914 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5915 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5916 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5917 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5918 * command.h (cmd_cfunc_ftype): Move earlier.
5919 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5920 (add_com, add_info): Use cmd_cfunc_ftype.
5922 2014-06-30 Tom Tromey <tromey@redhat.com>
5924 * symtab.c (operator_chars): Make parameters and return type
5926 (file_matches): Make "files" const.
5927 (struct search_symbols_data) <files>: Now const.
5928 (search_symbols): Make "regexp" and "files" parameters const.
5930 (symtab_symbol_info): Remove cast.
5931 (rbreak_command): Update.
5932 * symtab.h (search_symbols): Update.
5934 2014-06-27 Yao Qi <yao@codesourcery.com>
5936 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5937 Change parameter type to 'struct thread_info *'. Caller
5939 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5941 * dummy-frame.c (struct dummy_frame_id): New.
5942 (dummy_frame_id_eq): New function.
5943 (struct dummy_frame) <id>: Change its type to 'struct
5945 (dummy_frame_push): Add parameter ptid and save it in
5947 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5949 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5951 (lookup_dummy_frame): Change parameter type to 'struct
5952 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5953 instead of frame_id_eq.
5954 (dummy_frame_pop): Add parameter ptid. Callers updated.
5955 Update comments. Compose dummy_frame_id and pass it to
5957 (dummy_frame_discard): Add parameter ptid.
5958 (dummy_frame_sniffer): Compose dummy_frame_id and call
5959 dummy_frame_id_eq instead of frame_id_eq.
5960 (fprint_dummy_frames): Print ptid.
5961 * dummy-frame.h: Remove comments.
5962 (dummy_frame_push): Add ptid in declaration.
5963 (dummy_frame_pop, dummy_frame_discard): Likewise.
5965 2014-06-26 Tom Tromey <tromey@redhat.com>
5967 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5968 * command.h (error_no_arg): Update.
5970 2014-06-26 Tom Tromey <tromey@redhat.com>
5972 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5973 (do_show_command): Make "arg" const.
5974 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5976 2014-06-26 Tom Tromey <tromey@redhat.com>
5978 * record-full.c (record_full_get_bookmark): Make "args" const.
5979 (record_full_goto_bookmark): Make "raw_bookmark" const.
5980 * record.c (record_goto): New function.
5981 (cmd_record_goto): Use it. Now static.
5982 * record.h (record_goto): Declare.
5983 (cmd_record_goto): Remove declaration.
5984 * target-delegates.c: Rebuild.
5985 * target.h (struct target_ops) <to_get_bookmark,
5986 to_goto_bookmark>: Make parameter const.
5988 2014-06-26 Tom Tromey <tromey@redhat.com>
5990 * defs.h (generic_load): Update.
5991 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5992 * monitor.c (monitor_load): Make "args" const.
5993 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5994 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5996 (mips_load): Make "file" const.
5997 * remote-sim.c (gdbsim_load): Make "args" const.
5998 * remote.c (remote_load): Make "name" const.
5999 * symfile.c (generic_load): Make "args" const.
6000 * target-delegates.c: Rebuild.
6001 * target.c (target_load): Make "arg" const.
6002 (debug_to_load): Make "args" const.
6003 * target.h (struct target_ops) <to_load>: Make parameter const.
6004 (target_load): Update.
6006 2014-06-26 Tom Tromey <tromey@redhat.com>
6009 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6010 (dwarf2_physname, read_partial_die)
6011 (guess_partial_die_structure_name, fixup_partial_die)
6012 (guess_full_die_structure_name, anonymous_struct_prefix)
6013 (dwarf2_name): Use per-BFD obstack.
6015 2014-06-26 Yao Qi <yao@codesourcery.com>
6017 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6018 dummyframe and this_id into inner block below.
6020 2014-06-26 Yao Qi <yao@codesourcery.com>
6022 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6023 with "signal_pass[0]" in the initialization of signal_pass.
6025 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6027 * record-btrace.c (record_btrace_generating_corefile)
6028 (record_btrace_prepare_to_generate_core)
6029 (record_btrace_done_generating_core): New.
6030 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6031 (record_btrace_store_registers, record_btrace_prepare_to_store):
6032 Forward request when generating a core file.
6033 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6034 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6035 to_done_generating_core.
6037 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6039 * target.h (target_ops) <to_prepare_to_generate_core>
6040 <to_done_generating_core>: New.
6041 (target_prepare_to_generate_core, target_done_generating_core): New.
6042 * target.c (target_prepare_to_generate_core)
6043 (target_done_generating_core): New.
6044 * target-delegates.c: Regenerate.
6045 * gcore.c: (write_gcore_file): Rename to ...
6046 (write_gcore_file_1): ...this.
6047 (write_gcore_file): Call target_prepare_to_generate_core
6048 and target_done_generating_core.
6050 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6052 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6053 * gcore.c (write_gcore_file): Free memory returned from
6054 make_corefile_notes.
6055 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6056 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6058 2014-06-24 Yao Qi <yao@codesourcery.com>
6060 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6061 (arm_linux_init_abi): Set skip_trampoline_code with
6062 gdbarch_skip_trampoline_code instead of
6063 find_solib_trampoline_target.
6065 2014-06-24 Yao Qi <yao@codesourcery.com>
6067 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6068 arm_skip_bx_reg returns non-zero.
6070 2014-06-24 Yao Qi <yao@codesourcery.com>
6072 * arm-tdep.c (arm_skip_bx_reg): New function.
6073 (arm_skip_stub): Call arm_skip_bx_reg.
6075 2014-06-23 Don Breazeal <donb@codesourcery.com>
6077 * MAINTAINERS: Add myself as write-after-approval maintainer.
6079 2014-06-23 Pedro Alves <palves@redhat.com>
6081 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6082 DR_CONTROL before setting DR0..DR3.
6083 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6084 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6085 bits of DR_CONTROL related to the debug register slot being
6086 disabled. If all slots are vacant, clear local slowdown as well,
6087 and assert DR_CONTROL is 0.
6089 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6091 * python/lib/gdb/command/xmethods.py
6092 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6093 current progspace only if the string "progspace" matches LOCUS_RE.
6095 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6097 Fix --with-system-readline with readline-6.3 patch 5.
6098 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6099 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6102 2014-06-20 Tom Tromey <tromey@redhat.com>
6104 * dwarf2read.c (dw2_get_real_path): Use correct type in
6106 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6108 2014-06-20 Gary Benson <gbenson@redhat.com>
6110 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6111 * common/glibc_thread_db.h: Likewise.
6112 * common/i386-cpuid.h: Likewise.
6113 * common/i386-gcc-cpuid.h: Likewise.
6114 * common/linux-btrace.h: Likewise.
6115 * common/linux-osdata.h: Likewise.
6116 * common/linux-procfs.h: Likewise.
6117 * common/linux-ptrace.h: Likewise.
6118 * common/mips-linux-watch.h: Likewise.
6119 * common/linux-btrace.c: Moved to nat.
6120 * common/linux-osdata.c: Likewise.
6121 * common/linux-procfs.c: Likewise.
6122 * common/linux-ptrace.c: Likewise.
6123 * common/mips-linux-watch.c: Likewise.
6124 * nat/gdb_thread_db.h: Moved from common.
6125 * nat/glibc_thread_db.h: Likewise.
6126 * nat/i386-cpuid.h: Likewise.
6127 * nat/i386-gcc-cpuid.h: Likewise.
6128 * nat/linux-btrace.c: Likewise.
6129 * nat/linux-btrace.h: Likewise.
6130 * nat/linux-osdata.c: Likewise.
6131 * nat/linux-osdata.h: Likewise.
6132 * nat/linux-procfs.c: Likewise.
6133 * nat/linux-procfs.h: Likewise.
6134 * nat/linux-ptrace.c: Likewise.
6135 * nat/linux-ptrace.h: Likewise.
6136 * nat/mips-linux-watch.c: Likewise.
6137 * nat/mips-linux-watch.h: Likewise.
6138 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6139 (object file files): Reordered.
6140 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6141 of glibc_thread_db.h.
6143 2014-06-20 Gary Benson <gbenson@redhat.com>
6145 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6146 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6147 (i386_dr_low): Likewise.
6148 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6149 (i386_dr_low_set_addr): Likewise.
6150 (i386_dr_low_get_addr): Likewise.
6151 (i386_dr_low_can_set_control): Likewise.
6152 (i386_dr_low_set_control): Likewise.
6153 (i386_dr_low_get_control): Likewise.
6154 (i386_dr_low_get_status): Likewise.
6155 (i386_get_debug_register_length): Likewise.
6156 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6157 (i386_dr_low): Likewise.
6158 * nat/i386-dregs.c (i386-low.h): Remove include.
6159 (i386-nat.h): Likewise.
6160 (nat/i386-dregs.h): New include.
6161 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6162 (i386_dr_low_set_addr): Likewise.
6163 (i386_dr_low_get_addr): Likewise.
6164 (i386_dr_low_can_set_control): Likewise.
6165 (i386_dr_low_set_control): Likewise.
6166 (i386_dr_low_get_control): Likewise.
6167 (i386_dr_low_get_status): Likewise.
6168 (i386_get_debug_register_length): Likewise.
6169 (debug_hw_points): Likewise.
6171 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6173 * Makefile.in (SFILES): Add d-exp.y.
6174 (YYFILES): Add d-exp.c.
6175 (YYOBJ): Add d-exp.o.
6176 (local-maintainer-clean): Delete d-exp.c.
6177 * d-exp.y: New file.
6178 * d-lang.h (d_parse): New declaration.
6179 (d_error): New declaration.
6180 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6181 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6182 PREC_ORDER operators.
6183 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6185 2014-06-19 Yao Qi <yao@codesourcery.com>
6187 * gdbthread.h (any_running): Remove the declaration.
6188 * thread.c (any_running): Remove.
6190 2014-06-19 Yao Qi <yao@codesourcery.com>
6192 * gdbthread.h (struct thread_info) <state>: Change its type to
6193 'enum thread_state'. Update comments.
6195 2014-06-19 Pedro Alves <palves@redhat.com>
6197 * gdbthread.h (ALL_THREADS): Delete.
6198 (ALL_NON_EXITED_THREADS): New macro.
6199 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6200 instead of ALL_THREADS.
6201 * infrun.c (find_thread_needs_step_over)
6202 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6203 instead of ALL_THREADS.
6204 * record-btrace.c (record_btrace_open)
6205 (record_btrace_stop_recording, record_btrace_close)
6206 (record_btrace_is_replaying, record_btrace_resume)
6207 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6208 * remote.c (append_pending_thread_resumptions): Likewise.
6209 * thread.c (thread_apply_all_command): Likewise.
6211 2014-06-19 Gary Benson <gbenson@redhat.com>
6213 * i386-nat.c (i386_stopped_by_watchpoint):
6214 Use i386_dr_stopped_by_watchpoint.
6215 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6216 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6218 2014-06-19 Gary Benson <gbenson@redhat.com>
6220 * nat/i386-dregs.c: New file.
6221 * Makefile.in (i386-dregs.o): New rule.
6222 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6223 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6224 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6225 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6226 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6227 * config/i386/go32.mh (NATDEPFILES): Likewise.
6228 * config/i386/linux.mh (NATDEPFILES): Likewise.
6229 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6230 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6231 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6232 * i386-nat.h (debug_hw_points): New declaration.
6233 * i386-nat.c (breakpoint.h): Remove include.
6234 (command.h): Likewise.
6235 (target.h): Likewise.
6236 (gdb_assert.h): Likewise.
6237 (debug_hw_points): Made nonstatic.
6238 (debug_printf): Now in i386-dregs.c.
6239 (TARGET_HAS_DR_LEN_8): Likewise.
6240 (DR_CONTROL_SHIFT): Likewise.
6241 (DR_CONTROL_SIZE): Likewise.
6242 (DR_RW_EXECUTE): Likewise.
6243 (DR_RW_WRITE): Likewise.
6244 (DR_RW_READ): Likewise.
6245 (DR_RW_IORW): Likewise.
6246 (DR_LEN_1): Likewise.
6247 (DR_LEN_2): Likewise.
6248 (DR_LEN_4): Likewise.
6249 (DR_LEN_8): Likewise.
6250 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6251 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6252 (DR_ENABLE_SIZE): Likewise.
6253 (DR_LOCAL_SLOWDOWN): Likewise.
6254 (DR_GLOBAL_SLOWDOWN): Likewise.
6255 (DR_CONTROL_RESERVED): Likewise.
6256 (I386_DR_CONTROL_MASK): Likewise.
6257 (I386_DR_VACANT): Likewise.
6258 (I386_DR_LOCAL_ENABLE): Likewise.
6259 (I386_DR_GLOBAL_ENABLE): Likewise.
6260 (I386_DR_DISABLE): Likewise.
6261 (I386_DR_SET_RW_LEN): Likewise.
6262 (I386_DR_GET_RW_LEN): Likewise.
6263 (I386_DR_WATCH_HIT): Likewise.
6264 (i386_wp_op_t): Likewise.
6265 (i386_show_dr): Likewise.
6266 (i386_length_and_rw_bits): Likewise.
6267 (i386_insert_aligned_watchpoint): Likewise.
6268 (i386_remove_aligned_watchpoint): Likewise.
6269 (i386_handle_nonaligned_watchpoint): Likewise.
6270 (i386_update_inferior_debug_regs): Likewise.
6271 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6272 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6273 (i386_region_ok_for_watchpoint):
6274 Use i386_dr_region_ok_for_watchpoint.
6275 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6277 2014-06-19 Gary Benson <gbenson@redhat.com>
6279 * i386-nat.c (i386_insert_hw_breakpoint): Use
6280 i386_insert_watchpoint.
6281 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6283 2014-06-19 Gary Benson <gbenson@redhat.com>
6285 * i386-nat.c (i386_dr_show): Renamed to
6286 i386_show_dr and made static. All uses updated.
6287 (i386_dr_length_and_rw_bits): Renamed to
6288 i386_length_and_rw_bits and made static.
6290 (i386_dr_insert_aligned_watchpoint): Renamed to
6291 i386_insert_aligned_watchpoint and made static.
6293 (i386_dr_remove_aligned_watchpoint): Renamed to
6294 i386_remove_aligned_watchpoint and made static.
6296 (i386_dr_update_inferior_debug_regs): Renamed to
6297 i386_update_inferior_debug_regs and made static.
6299 * nat/i386-dregs.h (i386_dr_show): Removed.
6300 (i386_dr_length_and_rw_bits): Likewise.
6301 (i386_dr_insert_aligned_watchpoint): Likewise.
6302 (i386_dr_remove_aligned_watchpoint): Likewise.
6303 (i386_dr_update_inferior_debug_regs): Likewise.
6305 2014-06-19 Gary Benson <gbenson@redhat.com>
6307 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6308 * configure: Regenerate.
6309 * config.in: Likewise.
6310 * main.c (signal.h): New include.
6311 (setup_alternate_signal_stack): New function.
6312 (captured_main): Call the above.
6313 * cp-support.c (signal.h): New include.
6314 (catch_demangler_crashes): New flag.
6315 (SIGJMP_BUF): New define.
6316 (SIGSETJMP): Likewise.
6317 (SIGLONGJMP): Likewise.
6318 (gdb_demangle_jmp_buf): New static global.
6319 (gdb_demangle_attempt_core_dump): Likewise.
6320 (gdb_demangle_signal_handler): New function.
6321 (gdb_demangle): If catch_demangler_crashes is set, install the
6322 above signal handler before calling bfd_demangle, and restore
6323 the original signal handler afterwards. Display the offending
6324 symbol and call demangler_warning the first time a segmentation
6326 (_initialize_cp_support): New maint set/show command.
6328 2014-06-19 Gary Benson <gbenson@redhat.com>
6330 * utils.h (resource_limit_kind): New enum.
6331 (can_dump_core): New declaration.
6332 (warn_cant_dump_core): Likewise.
6333 (dump_core): Likewise.
6334 * utils.c (dump_core): Made nonstatic. Added new
6335 parameter "limit_kind".
6336 (can_dump_core): Made nonstatic. Moved printing code to...
6337 (warn_cant_dump_core): New function.
6338 (can_dump_core_warn): Likewise.
6339 (internal_vproblem): Replace calls to can_dump_core with
6340 calls to can_dump_core_warn. Supply new argument to each.
6342 2014-06-19 Gary Benson <gbenson@redhat.com>
6344 * utils.h (demangler_vwarning): New declaration.
6345 (demangler_warning): Likewise.
6346 * utils.c (struct internal_problem)
6347 <user_settable_should_quit>: New field.
6348 <user_settable_should_dump_core>: Likewise
6349 (internal_error_problem): Add values for above new fields.
6350 (internal_warning_problem): Likewise.
6351 (demangler_warning_problem): New static global.
6352 (demangler_vwarning): New function.
6353 (demangler_warning): Likewise.
6354 (add_internal_problem_command): Selectively add commands.
6355 (_initialize_utils): New internal problem command.
6356 * maint.c (maintenance_demangler_warning): New function.
6357 (_initialize_maint_cmds): New command.
6359 2014-06-18 Tom Tromey <tromey@redhat.com>
6361 * f-valprint.c (info_common_command_for_block): Update.
6362 * symtab.h (struct general_symbol_info) <common_block>: Now
6365 2014-06-18 Tom Tromey <tromey@redhat.com>
6367 * symtab.h (struct symtab) <blockvector>: Now const.
6368 * ada-lang.c (ada_add_global_exceptions): Update.
6369 * buildsym.c (augment_type_symtab): Update.
6370 * dwarf2read.c (dw2_lookup_symbol): Update.
6371 * jit.c (finalize_symtab): Update.
6372 * jv-lang.c (add_class_symtab_symbol): Update.
6373 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6375 * objfiles.c (objfile_relocate1): Update.
6376 * psymtab.c (lookup_symbol_aux_psymtabs)
6377 (maintenance_check_psymtabs): Update.
6378 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6380 * spu-tdep.c (spu_catch_start): Update.
6381 * symmisc.c (dump_symtab_1): Update.
6382 * symtab.c (lookup_global_symbol_from_objfile)
6383 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6384 (basic_lookup_transparent_type_quick)
6385 (basic_lookup_transparent_type, find_pc_sect_symtab)
6386 (find_pc_sect_line, search_symbols): Update.
6387 * block.c (find_block_in_blockvector): Make "bl" const.
6388 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6390 (blockvector_contains_pc): Make "bv" const.
6391 (block_for_pc_sect): Update.
6392 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6393 (blockvector_contains_pc): Update.
6394 * breakpoint.c (resolve_sal_pc): Update.
6395 * inline-frame.c (block_starting_point_at): Update.
6397 2014-06-18 Tom Tromey <tromey@redhat.com>
6399 * completer.c (complete_line): Make "line_buffer" const.
6400 * completer.h (complete_line): Update.
6402 2014-06-18 Tom Tromey <tromey@redhat.com>
6404 * symtab.c (add_macro_name): Remove unneeded cast.
6406 2014-06-18 Tom Tromey <tromey@redhat.com>
6408 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6409 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6411 2014-06-18 Tom Tromey <tromey@redhat.com>
6413 * probe.c (info_probes_for_ops): Make "arg" const.
6414 * probe.h (info_probes_for_ops): Update.
6416 2014-06-18 Tom Tromey <tromey@redhat.com>
6418 * varobj.c (varobj_create): Update.
6419 * valops.c (value_of_this): Update.
6420 * tracepoint.c (add_local_symbols, scope_info): Update.
6421 * symtab.h (struct general_symbol_info) <block>: Now const.
6422 * symtab.c (skip_prologue_sal)
6423 (default_make_symbol_completion_list_break_on)
6424 (skip_prologue_using_sal): Update.
6425 * stack.h (iterate_over_block_locals)
6426 (iterate_over_block_local_vars): Update.
6427 * stack.c (print_frame_args): Update.
6428 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6430 (get_selected_block): Make return type const.
6431 * python/py-frame.c (frapy_block): Update.
6432 * python/py-block.c (gdbpy_block_for_pc): Update.
6433 * p-exp.y (%union) <bval>: Now const.
6434 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6435 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6436 * m2-exp.y (%union) <bval>: Now const.
6437 * linespec.c (get_current_search_block): Make return type const.
6438 (create_sals_line_offset, find_label_symbols): Update.
6439 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6441 (block_starting_point_at): Make "block" const.
6442 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6443 (check_exception_resume): Update.
6444 * guile/scm-frame.c (gdbscm_frame_block): Update.
6445 * guile/scm-block.c (gdbscm_lookup_block): Update.
6446 * frame.h (get_frame_block): Update.
6447 (get_selected_block): Make return type const.
6448 * frame.c (frame_id_inner): Update.
6449 * f-valprint.c (info_common_command_for_block)
6450 (info_common_command): Update.
6451 * dwarf2loc.c (dwarf2_find_location_expression)
6452 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6453 (locexpr_describe_location_piece): Update.
6454 * c-exp.y (%union) <bval>: Now const.
6455 * breakpoint.c (resolve_sal_pc): Update.
6456 * blockframe.c (get_frame_block):Make return type const.
6457 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6458 (block_innermost_frame): Update.
6459 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6460 (block_for_pc, block_for_pc_sect): Update.
6461 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6463 (block_for_pc_sect, block_for_pc): Make return type const.
6464 * ax-gdb.c (gen_expr): Update.
6465 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6466 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6467 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6468 (ada_read_var_value): Update.
6469 * ada-exp.y (struct name_info) <block>: Now const.
6471 (block_lookup): Constify.
6473 2014-06-18 Gary Benson <gbenson@redhat.com>
6475 * nat/i386-dregs.h: New file.
6476 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6477 * i386-nat.h (i386-dregs.h): New include.
6478 (DR_FIRSTADDR): Now in i386-dregs.h.
6479 (DR_LASTADDR): Likewise.
6480 (DR_NADDR): Likewise.
6481 (DR_STATUS): Likewise.
6482 (DR_CONTROL): Likewise.
6483 (i386_debug_reg_state): Likewise.
6484 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6486 2014-06-18 Don Breazeal <donb@codesourcery.com>
6488 * breakpoint.c (set_longjmp_breakpoint): Call
6489 momentary_breakpoint_from_master with additional argument.
6490 (set_longjmp_breakpoint_for_call_dummy): Call
6491 momentary_breakpoint_from_master with additional argument.
6492 (set_std_terminate_breakpoint): Call
6493 momentary_breakpoint_from_master with additional argument.
6494 (momentary_breakpoint_from_master): Add argument to function
6495 definition and use it to initialize structure member flag.
6496 (clone_momentary_breakpoint): Call
6497 momentary_breakpoint_from_master with additional argument.
6498 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6499 member flags set in momentary_breakpoint_from_master.
6501 2014-06-18 Gary Benson <gbenson@redhat.com>
6503 * i386-nat.c (i386_show_dr): Renamed to
6504 i386_dr_show and made nonstatic. All uses updated.
6505 (i386_length_and_rw_bits): Renamed to
6506 i386_dr_length_and_rw_bits and made nonstatic.
6508 (i386_insert_aligned_watchpoint): Renamed to
6509 i386_dr_insert_aligned_watchpoint and made nonstatic.
6511 (i386_remove_aligned_watchpoint): Renamed to
6512 i386_dr_remove_aligned_watchpoint and made nonstatic.
6514 (i386_update_inferior_debug_regs): Renamed to
6515 i386_dr_update_inferior_debug_regs and made nonstatic.
6518 2014-06-18 Gary Benson <gbenson@redhat.com>
6520 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6521 (i386_dr_low_can_set_control): Likewise.
6522 (i386_dr_low_set_addr): Likewise.
6523 (i386_dr_low_set_control): Likewise.
6524 (i386_dr_low_get_addr): Likewise.
6525 (i386_dr_low_get_status): Likewise.
6526 (i386_dr_low_get_control): Likewise.
6527 (i386_insert_aligned_watchpoint): Use new macros.
6528 (i386_update_inferior_debug_regs): Likewise.
6529 (i386_stopped_data_address): Likewise.
6531 2014-06-18 Gary Benson <gbenson@redhat.com>
6533 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6534 New parameter. All uses updated.
6536 2014-06-18 Gary Benson <gbenson@redhat.com>
6538 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6541 2014-06-18 Gary Benson <gbenson@redhat.com>
6543 * i386-nat.c (debug_printf): New macro.
6544 (i386_get_debug_register_length): Likewise.
6545 (TARGET_HAS_DR_LEN_8): Use above macro.
6546 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6547 and printf_unfiltered. Use phex to format values.
6549 2014-06-18 Gary Benson <gbenson@redhat.com>
6551 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6554 2014-06-18 Gary Benson <gbenson@redhat.com>
6556 * i386-nat.c: Comment changes.
6558 2014-06-18 Gary Benson <gbenson@redhat.com>
6560 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6562 2014-06-18 Gary Benson <gbenson@redhat.com>
6564 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6565 (i386_insert_aligned_watchpoint): Likewise.
6566 (i386_remove_aligned_watchpoint): Likewise.
6567 (i386_handle_nonaligned_watchpoint): Likewise.
6569 2014-06-18 Gary Benson <gbenson@redhat.com>
6571 * i386-nat.c: Whitespace changes.
6573 2014-06-17 Samuel Bronson <naesten@gmail.com>
6575 * MAINTAINERS: Update Roland McGrath's email address.
6576 Thanks to Sergio Durigan Junior for pointing out that he left
6577 Red Hat a while ago, and giving me a current address.
6579 2014-06-17 Tom Tromey <tromey@redhat.com>
6581 * utils.h (savestring): Remove declaration.
6583 2014-06-17 Tom Tromey <tromey@redhat.com>
6585 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6587 2014-06-16 Keith Seitz <keiths@redhat.com>
6590 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6591 to update the varobj if inferior_ptid is null_ptid.
6593 2014-06-16 Tom Tromey <tromey@redhat.com>
6595 * target.h (struct target_ops) <to_info_proc>: Make parameter
6597 (target_info_proc): Update.
6598 * target.c (target_info_proc): Make "args" const.
6599 * procfs.c (procfs_info_proc): Update.
6600 * linux-tdep.c (linux_info_proc): Update.
6601 (linux_core_info_proc_mappings): Make "args" const.
6602 (linux_core_info_proc): Update.
6603 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6604 * gdbarch.c: Rebuild.
6605 * gdbarch.h: Rebuild.
6606 * corelow.c (core_info_proc): Update.
6608 2014-06-16 Tom Tromey <tromey@redhat.com>
6610 * target.h (struct target_ops) <to_disconnect>: Make parameter
6612 (target_disconnect): Update.
6613 * target.c (target_disconnect): Make "args" const.
6614 * target-delegates.c: Rebuild.
6615 * remote.c (remote_disconnect): Update.
6616 * record.h (record_disconnect): Update.
6617 * record.c (record_disconnect): Update.
6618 * inf-child.c (inf_child_disconnect): Update.
6620 2014-06-16 Tom Tromey <tromey@redhat.com>
6622 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6623 * target.c (debug_to_rcmd, default_rcmd): Update.
6624 * target-delegates.c: Rebuild.
6625 * remote.c (remote_rcmd): Update.
6626 * monitor.c (monitor_rcmd): Update.
6628 2014-06-16 Pedro Alves <palves@redhat.com>
6630 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6631 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6632 have OBJF_SHARED set.
6633 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6634 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6635 instead of OBJF_USERLOADED.
6636 * objfiles.h (OBJF_SHARED): Update comment.
6637 (userloaded_objfile_contains_address_p): Rename to ...
6638 (shared_objfile_contains_address_p): ... this, and update
6640 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6642 (remove_symbol_file_command): Skip objfiles that don't have
6645 2014-06-16 Tom Tromey <tromey@redhat.com>
6647 * minsyms.h (prim_record_minimal_symbol)
6648 (prim_record_minimal_symbol_and_info): Update comments.
6650 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6652 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6653 or --without-guile, according to how GDB was built.
6655 2014-06-13 Tom Tromey <tromey@redhat.com>
6657 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6659 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6661 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6663 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6664 help_list.Pass all_commands, not -1, to help_list.
6665 * cli/cli-dump.c (dump_command, append_command)
6666 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6667 (binary_dump_command, binary_append_command): Pass all_commands,
6668 not -1, to help_list.
6669 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6671 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6673 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6675 * top.c (set_history): Pass all_commands, not -1, to help_list.
6676 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6677 all_commands, not -1, to help_list.
6678 * symfile.c (overlay_command): Pass all_commands, not -1, to
6680 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6682 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6684 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6686 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6687 not -1, to help_list.
6688 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6689 not -1, to help_list.
6690 * maint.c (maintenance_command, maintenance_info_command)
6691 (maintenance_print_command, maintenance_set_cmd): Pass
6692 all_commands, not -1, to help_list.
6693 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6695 * language.c (set_check): Pass all_commands, not -1, to help_list.
6696 * infcmd.c (unset_command): Pass all_commands, not -1, to
6698 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6700 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6702 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6704 * breakpoint.c (save_command): Pass all_commands, not -1, to
6706 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6707 all_commands, not -1, to help_list.
6709 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6711 * regcache.c (struct register_to_invalidate): New structure.
6712 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6714 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6716 2014-06-12 Yao Qi <yao@codesourcery.com>
6718 * varobj.c (varobj_get_num_children): Call
6719 varobj_is_dynamic_p.
6720 (varobj_list_children): Likewise.
6721 (varobj_update): Likewise. Update comments.
6723 2014-06-12 Yao Qi <yao@codesourcery.com>
6725 * varobj.c (varobj_pretty_printed_p): Rename to ...
6726 (varobj_is_dynamic_p): ... this. New function.
6727 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6728 (varobj_is_dynamic_p): Declare.
6729 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6730 (mi_print_value_p, varobj_update_one): Likewise.
6732 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6733 Yao Qi <yao@codesourcery.com>
6735 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6736 (varobj_get_iterator): Wrap up code for pretty-printer by
6737 "#if HAVE_PYTHON" and "#endif".
6738 (update_dynamic_varobj_children): Likewise.
6740 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6741 Yao Qi <yao@codesourcery.com>
6743 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6744 gdb_python_initialized is false. Move some code from varobj.c.
6745 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6746 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6747 (struct varobj_item): Moved to varobj-iter.h".
6748 (varobj_clear_saved_item): New function.
6749 (update_dynamic_varobj_children): Move python-related code to
6751 (free_variable): Call varobj_clear_saved_item and
6754 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6755 Yao Qi <yao@codesourcery.com>
6757 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6758 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6759 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6760 (py-varobj.o): New rule.
6761 * python/py-varobj.c: New file.
6762 * python/python-internal.h (py_varobj_get_iterator): Declare.
6763 * varobj-iter.h: New file.
6764 * varobj.c: Include "varobj-iter.h"
6765 (struct varobj) <child_iter>: Change its type from "PyObject *"
6766 to "struct varobj_iter *".
6767 <saved_item>: Likewise.
6768 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6769 [HAVE_PYTHON] (varobj_get_iterator): New function.
6770 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6771 python-specific code to python/py-varobj.c.
6772 (install_visualizer): Call varobj_iter_delete instead of
6774 * varobj.h (varobj_ensure_python_env): Declare.
6776 2014-06-12 Yao Qi <yao@codesourcery.com>
6778 * varobj.c (struct varobj_item): New structure.
6779 (create_child_with_value): Update declaration.
6780 (varobj_add_child): Replace arguments 'name' and 'value' with
6781 'item'. All callers updated.
6782 (install_dynamic_child): Likewise.
6783 (update_dynamic_varobj_children): Likewise.
6784 (varobj_add_child): Likewise.
6785 (create_child_with_value): Likewise.
6787 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6789 * NEWS: Create a new section for the next release branch.
6790 Rename the section of the current branch, now that it has
6793 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6795 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6796 * version.in: Bump version to 7.8.50.DATE-cvs.
6798 2014-06-11 Pedro Alves <palves@redhat.com>
6801 * ser-mingw.c (net_windows_socket_check_pending): New function.
6802 (net_windows_select_thread): Ignore spurious wakeups. Use
6803 net_windows_socket_check_pending.
6804 (net_windows_wait_handle): Check for pending events with
6805 ioctlsocket, through net_windows_socket_check_pending, instead of
6806 checking the socket's event.
6808 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6810 * python/python-internal.h (gdb_PyObject_GetAttrString)
6811 (gdb_PyObject_HasAttrString): New inline function definitions.
6812 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6813 char * of the second argument to PyObject_GetAttrString.
6815 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6817 * serial.c (serial_write): Fix index of character to be printed
6818 in call to serial_logchar when serial debug traces are enabled.
6820 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6822 * gdbtypes (resolve_dynamic_range): Add function description.
6824 2014-06-09 Pedro Alves <palves@redhat.com>
6826 * linux-nat.c (linux_child_follow_fork): Initialize status with
6827 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6828 inner block. Only pass the signal to PTRACE_DETACH if in pass
6831 2014-06-09 Gary Benson <gbenson@redhat.com>
6833 * common/signals.c (gdb_signal_from_host): Reorder to separate
6834 the always-available ANSI-standard signals from the signals that
6836 (do_gdb_signal_to_host): Likewise.
6837 * proc-events.c (signal_table): Likewise.
6839 2014-06-08 Hui Zhu <hui@codesourcery.com>
6841 * common/linux-ptrace.c (linux_disable_event_reporting): New
6843 * common/linux-ptrace.h (linux_disable_event_reporting): New
6845 * linux-nat.c (linux_child_follow_fork): Do a single step before
6848 2014-06-07 Keith Seitz <keiths@redhat.com>
6852 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6853 from symbol_matches_domain in symtab.c. All local callers
6854 of symbol_matches_domain updated.
6855 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6856 search STRUCT_DOMAIN.
6857 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6858 independently. standard_lookup will do that automatically.
6859 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6860 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6861 (cp_lookup_symbol_in_namespace): Likewise.
6862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6863 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6864 may return a STRUCT_DOMAIN match.
6865 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6866 * cp-support.c: Include language.h.
6867 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6869 * psymtab.c (match_partial_symbol): Compare the requested
6870 domain with the symbol's domain directly.
6871 (lookup_partial_symbol): Likewise.
6872 * symtab.c (lookup_symbol_in_language): Explain when/why
6873 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6874 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6875 appropriate languages.
6876 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6877 and moved to ada-lang.c
6878 (lookup_block_symbol): Explain that this function only returns
6879 symbol matching the requested DOMAIN.
6880 Compare the requested domain with the symbol's domain directly.
6881 (iterate_over_symbols): Compare the requested domain with the
6882 symbol's domain directly.
6883 * symtab.h (symbol_matches_domain): Remove.
6885 2014-06-06 Doug Evans <xdje42@gmail.com>
6887 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6888 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6889 (gdbscm_guile_version_is_at_least): Declare.
6890 (gdbscm_scm_string_to_int): Declare.
6891 * guile/guile.c (gdbscm_guile_major_version): New global.
6892 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6893 (guile_datadir): New static global.
6894 (gdbscm_guile_data_directory): New function.
6895 (initialize_scheme_side): Update.
6896 (misc_guile_functions): Add guile-data-directory.
6897 (initialize_gdb_module): Fetch guile version number.
6898 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6899 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6900 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6901 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6903 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6904 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6905 * guile/scm-value.c (gdbscm_value_to_string): Only call
6906 scm_port_conversion_strategy if Guile version >= 2.0.6.
6908 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6910 * main.c (print_gdb_help): Add -q and --silent.
6912 2014-06-06 Gary Benson <gbenson@redhat.com>
6914 * common/signals.c: Remove preprocessor conditionals for
6915 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6916 SIGSEGV and SIGTERM.
6917 * proc-events.c: Likewise.
6919 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6921 * symfile.c (symfile_free_objfile): Remove restriction to
6923 * symfile-mem.c (symbol_file_add_from_memory): Call
6924 add_target_sections_of_objfile.
6926 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6928 * guile/scm-value.c (gdbscm_history_append_x): Use
6929 'vlscm_get_value_smob_arg_unsafe' instead of
6930 'vlscm_scm_to_value'.
6932 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6935 * utils.c (printchar): Don't escape at all if quoter is NUL.
6936 Update function documentation to clarify effect of parameter
6938 * remote.c (escape_buffer): Pass '\\' as the quoter to
6939 fputstrn_unfiltered.
6940 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6941 generate the output.
6942 (mi_solib_unloaded): Same.
6944 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6946 * development.sh: Delete.
6947 * Makefile.in (config.status): Adjust dependency on development.sh.
6948 * configure.ac: Adjust development.sh source call.
6949 * configure: Regenerate.
6951 2014-06-04 Doug Evans <xdje42@gmail.com>
6953 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6954 is_scheme_bkpt, spec.
6955 (bpscm_make_breakpoint_smob): Initialize new members.
6956 (gdbscm_create_breakpoint_x): Split into two ...
6957 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6958 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6959 (scheme_function breakpoint_functions): Update.
6960 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6961 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6962 register-breakpoint!.
6964 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6967 * mem-break.c (z_type_supported): Return zero if
6968 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6970 2014-06-04 Tom Tromey <tromey@redhat.com>
6972 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6973 value_from_contents_and_address_unresolved.
6974 (ada_template_to_fixed_record_type_1): Likewise.
6975 (ada_which_variant_applies): Likewise.
6976 * value.h (value_from_contents_and_address_unresolved): Declare.
6977 * value.c (value_from_contents_and_address_unresolved): New
6979 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6980 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6981 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6983 2014-06-04 Tom Tromey <tromey@redhat.com>
6985 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6987 2014-06-04 Tom Tromey <tromey@redhat.com>
6989 * procfs.c (procfs_attach): Make "args" const.
6990 * windows-nat.c (windows_attach): Make "args" const.
6991 * nto-procfs.c (procfs_attach): Make "args" const.
6992 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6993 * go32-nat.c (go32_attach): Make "args" const.
6994 * gnu-nat.c (gnu_attach): Make "args" const.
6995 * darwin-nat.c (darwin_attach): Make "args" const.
6996 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6997 * linux-nat.c (linux_nat_attach): Make "args" const.
6998 * remote.c (extended_remote_attach_1, extended_remote_attach):
7000 * target.h (struct target_ops) <to_attach>: Make "args" const.
7001 (find_default_attach): Likewise.
7002 * utils.c (parse_pid_to_attach): Make "args" const.
7003 * utils.h (parse_pid_to_attach): Update.
7005 2014-06-04 Tom Tromey <tromey@redhat.com>
7007 * target-delegates.c: Rebuild.
7008 * target.c (default_thread_address_space): New function.
7009 (target_thread_address_space): Simplify.
7010 * target.h (struct target_ops) <to_thread_address_space>: Add
7011 TARGET_DEFAULT_FUNC.
7013 2014-06-04 Doug Evans <xdje42@gmail.com>
7015 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7017 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7019 * record-btrace.c: Include event-loop.h and inf-loop.h.
7020 (record_btrace_resume_exec_dir)
7021 (record_btrace_async_inferior_event_handler)
7022 (record_btrace_handle_async_inferior_event): New.
7023 (record_btrace_open): Create async event handler.
7024 (record_btrace_close): Delete async event handler.
7025 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7026 Mark async event handler.
7027 (record_btrace_execution_direction): New.
7028 (init_record_btrace_ops): Initialize to_execution_direction.
7030 2014-06-03 Doug Evans <xdje42@gmail.com>
7032 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7033 (gdbscm_make_parameter): Ditto.
7035 2014-06-03 Doug Evans <dje@google.com>
7037 * exec.c (exec_close_1): Call clear_section_table instead of
7038 resize_section_table.
7039 (clear_section_table): New function.
7040 (resize_section_table): Make static. Rename arg num_added to
7042 * exec.h (clear_section_table): Declare.
7043 (resize_section_table): Delete.
7044 * progspace.c (release_program_space): Call clear_section_table
7045 instead of resize_section_table.
7047 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7049 * NEWS (Python Scripting): Add entry about the new xmethods
7052 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7054 * python/py-xmethods.c: New file.
7055 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7056 (objfpy_dealloc): XDECREF on the new xmethods field.
7057 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7059 (objfpy_get_xmethods): New function.
7060 (objfile_getset): New entry 'xmethods'.
7061 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7062 (pspy_dealloc): XDECREF on the new xmethods field.
7063 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7065 (pspy_get_xmethods): New function.
7066 (pspace_getset): New entry 'xmethods'.
7067 * python/python-internal.h: Add declarations for new functions.
7068 * python/python.c (_initialize_python): Invoke
7069 gdbpy_initialize_xmethods.
7070 * python/lib/gdb/__init__.py (xmethods): New
7072 * python/lib/gdb/xmethod.py: New file.
7073 * python/lib/gdb/command/xmethods.py: New file.
7075 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7077 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7078 best match method returned by find_overload_match is an xmethod.
7079 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7080 the best matching operator returned by find_overload_match is an
7082 * valops.c: #include "extension.h".
7083 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7084 Return void. The list of matching source methods is returned in
7085 "fn_list" and a vector of matching debug method workers is
7086 returned in "xm_worker_vec". Update all callers.
7087 (value_find_oload_method_list): Likewise.
7088 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7089 non-NULL, then the index of the best matching method in this
7090 vector is returned. Update all callers.
7091 (find_overload_match): Include xmethods while performing overload
7094 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7096 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7097 * extension-priv.h (struct extension_language_ops): Add the
7099 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7100 get_matching_xmethod_workers, get_xmethod_argtypes,
7101 invoke_xmethod, free_xmethod_worker,
7102 free_xmethod_worker_vec): New functions.
7103 * extension.h: #include "common/vec.h".
7104 New function declarations.
7105 (struct xmethod_worker): New struct.
7106 (VEC (xmethod_worker_ptr)): New vector type.
7107 (xmethod_worker_ptr): New typedef.
7108 (xmethod_worker_vec): Likewise.
7109 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7111 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7112 (struct builtin_type): New field "xmethod".
7113 * valarith.c (value_ptradd): Assert that the value argument is not
7115 * valops.c (value_must_coerce_to_target): Return 0 for
7116 lval_xcallable values.
7117 * value.c (struct value): New field XM_WORKER in the field
7119 (value_address, value_raw_address): Return 0 for lval_xcallable
7121 (set_value_address): Assert that the value is not an
7123 (value_free): Free the associated xmethod worker when freeing
7124 lval_xcallable values.
7125 (set_value_component_location): Assert that the WHOLE value is not
7127 (value_of_xmethod, call_xmethod): New functions.
7128 * value.h: Declare "struct xmethod_worker".
7129 Declare new functions value_of_xmethod, call_xmethod.
7131 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7132 Pedro Alves <palves@redhat.com>
7134 PR breakpoints/17000
7135 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7136 New function, extracted from software_breakpoint_inserted_here_p.
7137 (software_breakpoint_inserted_here_p): Replace factored out code
7138 by call to find_non_raw_software_breakpoint_inserted_here.
7139 (bp_target_info_copy_insertion_state): New function.
7140 (bkpt_insert_location): Handle the case of a single-step
7141 breakpoint already inserted at the same address.
7142 (bkpt_remove_location): Handle the case of a single-step
7143 breakpoint still inserted at the same address.
7144 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7145 breakpoint already inserted at the same address.
7146 (deprecated_remove_raw_breakpoint): Handle the case of a
7147 non-raw breakpoint still inserted at the same address.
7148 (find_single_step_breakpoint): New function, extracted from
7149 single_step_breakpoint_inserted_here_p.
7150 (find_single_step_breakpoint): New function,
7151 factored out from single_step_breakpoint_inserted_here_p.
7152 (single_step_breakpoint_inserted_here_p): Reimplement.
7154 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7156 Pushed by Joel Brobecker <brobecker@adacore.com>
7157 * source.c (show_substitute_path_command): Fix display of matching
7160 2014-06-03 Gary Benson <gbenson@redhat.com>
7162 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7164 2014-06-02 Doug Evans <xdje42@gmail.com>
7166 Add parameter support for Guile.
7167 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7168 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7169 (scm-param.o): New rule.
7170 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7171 (gdbscm_misc_error): Declare.
7172 (gdbscm_canonicalize_command_name): Declare.
7173 (gdbscm_scm_to_host_string): Declare.
7174 (gdbscm_scm_from_host_string): Declare.
7175 (gdbscm_initialize_parameters): Declare.
7176 * guile/guile.c (initialize_gdb_module): Call
7177 gdbscm_initialize_parameters.
7178 * guile/lib/gdb.scm: Export parameter symbols.
7179 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7180 cmdscm_canonicalize_name and made public. All callers updated.
7181 * guile/scm-exception.c (gdbscm_misc_error): New function.
7182 * guile/scm-param.c: New file.
7183 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7184 (gdbscm_scm_to_host_string): New function.
7185 (gdbscm_scm_from_host_string): New function.
7186 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7188 2014-06-02 Doug Evans <xdje42@gmail.com>
7190 Add command support for Guile.
7191 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7192 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7193 (scm-cmd.o): New rule.
7194 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7195 (gdbscm_user_error_p): Declare.
7196 (gdbscm_parse_command_name): Declare.
7197 (gdbscm_valid_command_class_p): Declare.
7198 (gdbscm_initialize_commands): Declare.
7199 * guile/guile.c (initialize_gdb_module): Call
7200 gdbscm_initialize_commands.
7201 * guile/lib/gdb.scm: Export command symbols.
7202 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7203 (throw-user-error): New function.
7204 * guile/scm-cmd.c: New file.
7205 * guile/scm-exception.c (user_error_symbol): New static global.
7206 (gdbscm_user_error_p): New function.
7207 (gdbscm_initialize_exceptions): Set user_error_symbol.
7208 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7210 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7212 * top.c (command_loop): Handle comments here...
7213 (command_line_input): ... not here.
7215 2014-06-02 Doug Evans <xdje42@gmail.com>
7217 Add progspace support for Guile.
7218 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7219 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7220 (scm-progspace.o): New rule.
7221 * guile/guile-internal.h (pspace_smob): New typedef.
7222 (psscm_pspace_smob_pretty_printers): Declare.
7223 (psscm_pspace_smob_from_pspace): Declare.
7224 (psscm_scm_from_pspace): Declare.
7225 * guile/guile.c (initialize_gdb_module): Call
7226 gdbscm_initialize_pspaces.
7227 * guile/lib/gdb.scm: Export progspace symbols.
7228 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7230 (append-pretty-printer!): Ditto.
7231 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7233 * guile/scm-progspace.c: New file.
7235 2014-06-03 Alan Modra <amodra@gmail.com>
7237 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7238 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7240 2014-06-02 Doug Evans <dje@google.com>
7242 Add support for skeletonless type units.
7243 * dwarf2read.c (struct dwarf2_per_objfile): New member
7244 n_allocated_type_units.
7245 (struct dwarf2_per_objfile) <tu_stats>: New member
7246 nr_all_type_units_reallocs.
7247 (create_signatured_type_table_from_index): Initialize
7248 n_allocated_type_units
7249 (create_all_type_units): Ditto.
7250 (add_type_unit): Move up in file. New arg slot.
7251 All callers updated. Increase space for all_type_units more
7253 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7254 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7255 (lookup_dwp_signatured_type): Ditto.
7256 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7257 All callers updated.
7258 (build_type_psymtabs_1): Leave type_unit_groups as
7259 NULL if no TUs present.
7260 (print_tu_stats): New function.
7261 (process_skeletonless_type_unit): New function.
7262 (process_dwo_file_for_skeletonless_type_units): New
7264 (process_skeletonless_type_units): New function.
7265 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7266 Call print tu_stats if debugging enabled.
7268 2014-06-02 Pedro Alves <palves@redhat.com>
7270 * breakpoint.c (build_target_command_list): Don't build a command
7271 list if we have any duplicate location that isn't a dprintf.
7273 2014-06-02 Pedro Alves <palves@redhat.com>
7275 * breakpoint.c (dprintf_breakpoint_hit): New function.
7276 (initialize_breakpoint_ops): Install it as dprintf's
7277 breakpoint_hit method.
7279 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7281 * source.c (substitute_path_rule_matches): Simplify using
7282 filename_ncmp instead of FILENAME_CMP.
7284 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7286 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7288 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7290 * configure.ac: When Guile is available, check for the
7291 availability of 'scm_new_smob'.
7292 * configure, config.h.in: Regenerate.
7293 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7296 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7298 * frame.c (struct frame_info): Add stop_string field.
7299 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7300 (get_prev_frame_always): Old content moved into
7301 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7302 TRY_CATCH, handle MEMORY_ERROR exceptions.
7303 (frame_stop_reason_string): New function definition.
7304 * frame.h (unwind_stop_reason_to_string): Extend comment to
7305 mention frame_stop_reason_string.
7306 (frame_stop_reason_string): New function declaration.
7307 * stack.c (frame_info): Switch to frame_stop_reason_string.
7308 (backtrace_command_1): Switch to frame_stop_reason_string.
7309 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7310 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7311 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7313 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7315 * frame.c (frame_stop_reason_string): Rename to ...
7316 (unwind_stop_reason_to_string): this.
7317 * frame.h (frame_stop_reason_string): Rename to ...
7318 (unwind_stop_reason_to_string): this.
7319 * stack.c (frame_info): Update call to frame_stop_reason_string.
7320 (backtrace_command_1): Likewise.
7321 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7322 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7324 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7326 * frame.c (remove_prev_frame): New function.
7327 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7330 2014-05-29 Pedro Alves <palves@redhat.com>
7332 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7333 and make it const. When a single-step decays to a continue,
7334 clear 'step', not 'hw_step'. Pass whether the caller wanted
7335 to step to user_visible_resume_ptid, not what we ask the
7338 2014-05-29 Pedro Alves <palves@redhat.com>
7340 * infrun.c (process_event_stop_test, handle_step_into_function)
7341 (handle_step_into_function_backward): Adjust.
7342 Don't set the even thread's stop_step and call stop_waiting before
7343 calling end_stepping_range. Instead do that ...
7344 (end_stepping_range): ... here. Take an ecs pointer parameter.
7346 2014-05-29 Pedro Alves <palves@redhat.com>
7348 * infrun.c (stop_stepping): Rename to ...
7349 (stop_waiting): ... this.
7350 (proceed): Update comment.
7351 (process_event_stop_test, handle_inferior_event)
7352 (handle_signal_stop, handle_step_into_function)
7353 (handle_step_into_function_backward): Update.
7355 2014-05-29 Pedro Alves <palves@redhat.com>
7357 * infcall.c (run_inferior_call): Don't check whether the current
7358 thread is running after the proceed call.
7360 2014-05-29 Pedro Alves <palves@redhat.com>
7361 Tom Tromey <tromey@redhat.com>
7363 * NEWS: Mention "maint set target-async", "set mi-async", and that
7364 background execution commands are now always available.
7365 * target.h (target_async_permitted): Update comment.
7366 * target.c (target_async_permitted, target_async_permitted_1):
7368 (set_target_async_command): Rename to ...
7369 (maint_set_target_async_command): ... this.
7370 (show_target_async_command): Rename to ...
7371 (maint_show_target_async_command): ... this.
7372 (_initialize_target): Adjust.
7373 * infcmd.c (prepare_execution_command): Make extern.
7374 * inferior.h (prepare_execution_command): Declare.
7375 * infrun.c (set_observer_mode): Leave target async alone.
7376 * mi/mi-interp.c (mi_interpreter_init): Install
7377 mi_on_sync_execution_done as sync_execution_done observer.
7378 (mi_on_sync_execution_done): New function.
7379 (mi_execute_command_input_handler): Don't print the prompt if we
7380 just started a synchronous command with an async target.
7381 (mi_on_resume): Check sync_execution before printing prompt.
7382 * mi/mi-main.h (mi_async_p): Declare.
7383 * mi/mi-main.c: Include gdbcmd.h.
7384 (mi_async_p): New function.
7385 (mi_async, mi_async_1): New globals.
7386 (set_mi_async_command, show_mi_async_command, mi_async): New
7388 (exec_continue): Call prepare_execution_command.
7389 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7390 (mi_execute_async_cli_command): Use mi_async_p.
7391 (_initialize_mi_main): Install "set mi-async". Make
7392 "target-async" a deprecated alias.
7394 2014-05-29 Pedro Alves <palves@redhat.com>
7396 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7397 (_initialize_cli_interp): Adjust.
7398 * event-loop.c: Include "observer.h".
7399 (start_event_loop): Notify 'command_error' observers instead of
7400 calling display_gdb_prompt. Remove FIXME comment.
7401 * event-top.c (display_gdb_prompt): Remove call into the
7403 * inf-loop.c: Include "observer.h".
7404 (inferior_event_handler): Notify 'command_error' observers instead
7405 of calling display_gdb_prompt.
7406 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7407 observers instead of calling display_gdb_prompt.
7408 * interps.c (interp_set): Don't call display_gdb_prompt.
7409 (current_interp_display_prompt_p): Delete.
7410 * interps.h (interp_prompt_p): Delete declaration.
7411 (interp_prompt_p_ftype): Delete.
7412 (struct interp_procs) <prompt_proc_p>: Delete field.
7413 (current_interp_display_prompt_p): Delete declaration.
7414 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7415 (_initialize_mi_interp): Adjust.
7416 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7417 'command_error' observers.
7418 (tui_on_sync_execution_done, tui_on_command_error): New
7420 (tui_display_prompt_p): Delete.
7421 (_initialize_tui_interp): Adjust.
7423 2014-05-29 Pedro Alves <palves@redhat.com>
7426 * cli/cli-interp.c: Include infrun.h and observer.h.
7427 (cli_uiout, cli_interp): New globals.
7428 (cli_on_signal_received, cli_on_end_stepping_range)
7429 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7431 (cli_interpreter_init): Install them as 'end_stepping_range',
7432 'signal_received' 'signal_exited', 'exited' and 'no_history'
7434 (_initialize_cli_interp): Remove cli_interp local.
7435 * infrun.c (handle_inferior_event): Call the several stop reason
7436 observers instead of printing the stop reason directly.
7437 (end_stepping_range): New function.
7438 (print_end_stepping_range_reason, print_signal_exited_reason)
7439 (print_exited_reason, print_signal_received_reason)
7440 (print_no_history_reason): Make static, and add an uiout
7441 parameter. Print to that instead of to CURRENT_UIOUT.
7442 * infrun.h (print_end_stepping_range_reason)
7443 (print_signal_exited_reason, print_exited_reason)
7444 (print_signal_received_reason print_no_history_reason): New
7446 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7448 <cli_uiout>: New field.
7449 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7450 uiout for CLI output. Install 'signal_received',
7451 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7453 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7454 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7455 (mi_on_no_history): New functions.
7456 (ui_out_free_cleanup): Delete function.
7457 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7458 instead use the one already stored in the MI interpreter data.
7459 (mi_ui_out): Adjust.
7460 * tui/tui-interp.c: Include infrun.h and observer.h.
7461 (tui_interp): New global.
7462 (tui_on_signal_received, tui_on_end_stepping_range)
7463 (tui_on_signal_exited, tui_on_exited)
7464 (tui_on_no_history): New functions.
7465 (tui_init): Install them as 'end_stepping_range',
7466 'signal_received' 'signal_exited', 'exited' and 'no_history'
7468 (_initialize_tui_interp): Delete tui_interp local.
7470 2014-05-29 Pedro Alves <palves@redhat.com>
7473 * linux-nat.c (linux_nat_resume_callback): Rename the second
7474 parameter to 'except'. Skip LP if it points to EXCEPT.
7475 (linux_nat_resume): Don't mark the event lwp as not stopped
7476 before resuming sibling lwps. Instead ask
7477 linux_nat_resume_callback to skip the event lwp. Mark it as not
7478 stopped after actually resuming it.
7479 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7481 (wait_lwp): Mark the lwp as stopped here.
7482 (stop_wait_callback): Mark the lwp as not stopped right after
7483 resuming it. Don't mark lwps as stopped here.
7484 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7485 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7487 2014-05-29 Pedro Alves <palves@redhat.com>
7490 * infrun.c (resume): Determine how much to resume depending on
7491 whether the caller wanted a step, not whether we can hardware step
7492 the target. Mark all threads that we intend to run as running,
7493 unless we're calling an inferior function.
7494 (normal_stop): If the thread is running an infcall, don't finish
7496 * target.c (target_resume): Don't mark threads as running here.
7498 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7500 * serial.c (_initialize_serial): Remove support for
7501 the "set remotebaud" and "show remotebaud" commands.
7502 * NEWS: Add entry documenting the removal of that command.
7504 2014-05-28 Yao Qi <yao@codesourcery.com>
7506 * charset.c: Fix typo in comments.
7508 2014-05-27 Gary Benson <gbenson@redhat.com>
7510 * utils.c (internal_vproblem): Prompt for a bug report.
7512 2014-05-26 Andy Wingo <wingo@igalia.com>
7514 * guile/scm-arch.c (arscm_mark_arch_smob):
7515 * guile/scm-block.c (bkscm_mark_block_smob)
7516 (bkscm_mark_block_syms_progress_smob):
7517 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7518 * guile/scm-exception.c (exscm_mark_exception_smob):
7519 * guile/scm-frame.c (frscm_mark_frame_smob):
7520 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7521 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7522 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7523 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7524 (ppscm_mark_pretty_printer_worker_smob):
7525 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7526 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7527 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7528 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7530 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7533 2014-05-26 Andy Wingo <wingo@igalia.com>
7534 Doug Evans <xdje42@gmail.com>
7536 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7537 empty_base_class. All uses updated.
7538 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7539 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7541 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7542 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7543 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7544 (gdbscm_gsmob_has_property_p, add_property_name)
7545 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7546 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7547 (gdb-object-has-property?, gdb-object-properties): Remove.
7548 (gdb-object-kind): Renamed from gsmob-kind.
7550 2014-05-26 Andy Wingo <wingo@igalia.com>
7552 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7553 * configure: Regenerate.
7555 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7557 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7559 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7561 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7562 (replay_memory_access_read_only, replay_memory_access_read_write)
7563 (replay_memory_access_types, replay_memory_access)
7564 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7565 (cmd_set_record_btrace, cmd_show_record_btrace)
7566 (cmd_show_replay_memory_access): New.
7567 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7568 (record_btrace_remove_breakpoint): Replace
7569 record_btrace_allow_memory_access with replay_memory_access.
7570 (_initialize_record_btrace): Add commands.
7571 * NEWS: Announce it.
7573 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7575 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7577 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7579 * MAINTAINERS (Write After Approval): Move self back from
7582 2014-05-22 Pedro Alves <palves@redhat.com>
7584 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7585 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7586 (disable_randomization, enum exec_direction_kind)
7587 (execution_direction, stop_registers, start_remote)
7588 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7589 (wait_for_inferior, normal_stop, get_last_target_status)
7590 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7591 (insert_step_resume_breakpoint_at_sal)
7592 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7593 (set_step_info, print_stop_event, signal_stop_state)
7594 (signal_print_state, signal_pass_state, signal_stop_update)
7595 (signal_print_update, signal_pass_update)
7596 (update_signals_program_target, clear_exit_convenience_vars)
7597 (displaced_step_dump_bytes, update_observer_mode)
7598 (signal_catch_update, gdb_signal_from_command): Move
7600 * infrun.h: ... to this new file.
7601 * amd64-tdep.c: Include infrun.h.
7602 * annotate.c: Include infrun.h.
7603 * arch-utils.c: Include infrun.h.
7604 * arm-linux-tdep.c: Include infrun.h.
7605 * arm-tdep.c: Include infrun.h.
7606 * break-catch-sig.c: Include infrun.h.
7607 * breakpoint.c: Include infrun.h.
7608 * common/agent.c: Include infrun.h instead of inferior.h.
7609 * corelow.c: Include infrun.h.
7610 * event-top.c: Include infrun.h.
7611 * go32-nat.c: Include infrun.h.
7612 * i386-tdep.c: Include infrun.h.
7613 * inf-loop.c: Include infrun.h.
7614 * infcall.c: Include infrun.h.
7615 * infcmd.c: Include infrun.h.
7616 * infrun.c: Include infrun.h.
7617 * linux-fork.c: Include infrun.h.
7618 * linux-nat.c: Include infrun.h.
7619 * linux-thread-db.c: Include infrun.h.
7620 * monitor.c: Include infrun.h.
7621 * nto-tdep.c: Include infrun.h.
7622 * procfs.c: Include infrun.h.
7623 * record-btrace.c: Include infrun.h.
7624 * record-full.c: Include infrun.h.
7625 * remote-m32r-sdi.c: Include infrun.h.
7626 * remote-mips.c: Include infrun.h.
7627 * remote-notif.c: Include infrun.h.
7628 * remote-sim.c: Include infrun.h.
7629 * remote.c: Include infrun.h.
7630 * reverse.c: Include infrun.h.
7631 * rs6000-tdep.c: Include infrun.h.
7632 * s390-linux-tdep.c: Include infrun.h.
7633 * solib-irix.c: Include infrun.h.
7634 * solib-osf.c: Include infrun.h.
7635 * solib-svr4.c: Include infrun.h.
7636 * target.c: Include infrun.h.
7637 * top.c: Include infrun.h.
7638 * windows-nat.c: Include infrun.h.
7639 * mi/mi-interp.c: Include infrun.h.
7640 * mi/mi-main.c: Include infrun.h.
7641 * python/py-threadevent.c: Include infrun.h.
7643 2014-05-22 Pedro Alves <palves@redhat.com>
7645 * infrun.c (handle_inferior_event): Store the exit code for
7646 --return-child-result here, instead of ...
7647 (print_exited_reason): ... here.
7649 2014-05-21 Pedro Alves <palves@redhat.com>
7652 * gdbthread.h (struct thread_control_state): New field
7654 * infrun.c (follow_fork): Copy the new thread control field to the
7656 (clear_proceed_status_thread): Clear the new thread control field.
7657 (proceed): Set the new thread control field.
7658 * interps.h (command_interp): Declare.
7659 * interps.c (command_interpreter): New global.
7660 (command_interp): New function.
7661 (interp_exec): Set `command_interpreter' while here.
7662 * cli-out.c (cli_uiout_dtor): New function.
7663 (cli_ui_out_impl): Install it.
7664 * mi/mi-interp.c: Include cli-out.h.
7665 (mi_cmd_interpreter_exec): Add comment.
7666 (restore_current_uiout_cleanup): New function.
7667 (ui_out_free_cleanup): New function.
7668 (mi_on_normal_stop): If finishing an execution command started by
7669 a CLI command, or any kind of breakpoint-like event triggered,
7670 print the stop event to the output (CLI) stream.
7671 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7673 2014-05-21 Pedro Alves <palves@redhat.com>
7675 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7676 current source line having changed.
7677 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7678 * infrun.c (normal_stop): Adjust call to
7679 set_current_sal_from_frame.
7680 * source.c (clear_lines_listed_range): New function.
7681 (set_current_source_symtab_and_line, identify_source_line): Clear
7682 the lines listed range.
7683 (line_info): Handle the first "info line" after the current source
7684 line having changed.
7685 * stack.c (print_stack_frame): Remove center handling.
7686 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7689 2014-05-21 Pedro Alves <palves@redhat.com>
7691 * inf-child.c (inf_child_mourn_inferior): New function.
7692 * inf-child.h (inf_child_mourn_inferior): New declaration.
7693 * darwin-nat.c (darwin_mourn_inferior): Use
7694 inf_child_mourn_inferior.
7695 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7696 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7697 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7698 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7699 * windows-nat.c (windows_mourn_inferior): Likewise.
7701 2014-05-21 Doug Evans <xdje42@gmail.com>
7703 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7705 2014-05-21 Doug Evans <xdje42@gmail.com>
7707 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7708 (gdbscm_out_of_range_error): Ditto.
7709 (gdbscm_memory_error): Ditto.
7710 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7711 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7712 (gdbscm_out_of_range_error): Update.
7713 (gdbscm_memory_error): Update.
7714 (gdbscm_scm_to_target_string_unsafe): Delete.
7716 2014-05-21 Pedro Alves <palves@redhat.com>
7718 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7720 (inf_child_open_target): New function.
7721 (inf_child_open): Use inf_child_open_target to push the target
7722 instead of erroring out.
7723 (inf_child_disconnect, inf_child_close)
7724 (inf_child_maybe_unpush_target): New functions.
7725 (inf_child_target): Install inf_child_disconnect and
7726 inf_child_close. Store a pointer to the returned object.
7727 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7729 * target.c (auto_connect_native_target): New global.
7730 (show_default_run_target): New function.
7731 (find_default_run_target): Return NULL if automatically connecting
7732 to the native target is disabled.
7733 (_initialize_target): Install set/show auto-connect-native-target.
7734 * NEWS: Mention "set auto-connect-native-target", and "target
7736 * linux-nat.c (super_close): New global.
7737 (linux_nat_close): Call super_close.
7738 (linux_nat_add_target): Store a pointer to the base class's
7740 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7741 inf_child_maybe_unpush.
7742 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7744 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7745 the inferior. Use inf_child_maybe_unpush_target.
7746 (inf_ttrace_attach): Don't push the target if it is already
7748 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7749 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7750 after mourning the inferior. Use inf_child_maybe_unpush_target.
7751 (darwin_attach_pid): Don't push the target if it is already
7753 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7754 mourning the inferior. Use inf_child_maybe_unpush_target.
7755 (gnu_detach): Use inf_child_maybe_unpush_target.
7756 * go32-nat.c (go32_create_inferior): Don't push the target if it
7758 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7759 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7760 (procfs_open): Rename to ...
7761 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7762 comments. Can target_preopen before changing node. Call
7763 inf_child_open_target to push the target explicitly.
7764 (procfs_attach): Don't push the target if it is already pushed.
7765 (procfs_detach): Use inf_child_maybe_unpush_target.
7766 (procfs_create_inferior): Don't push the target if it is already
7768 (nto_native_ops): New global.
7769 (procfs_open): Reimplement.
7770 (procfs_native_open): New function.
7771 (init_procfs_targets): Install procfs_native_open as to_open of
7772 "target native". Store a pointer to the "native" target in
7774 * procfs.c (procfs_attach): Don't push the target if it is already
7776 (procfs_detach): Use inf_child_maybe_unpush_target.
7777 (procfs_mourn_inferior): Only unpush the target after mourning the
7778 inferior. Use inf_child_maybe_unpush_target.
7779 (procfs_init_inferior): Don't push the target if it is already
7781 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7782 if it is already pushed.
7784 2014-05-21 Pedro Alves <palves@redhat.com>
7786 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7787 and "procfs" targets are now called "native" instead.
7789 2014-05-21 Pedro Alves <palves@redhat.com>
7791 * go32-nat.c (go32_open): Delete.
7792 (go32_target): Don't override the to_open method.
7794 2014-05-21 Pedro Alves <palves@redhat.com>
7796 * nto-procfs.c (procfs_can_run): New function.
7797 (nto_procfs_ops): New global.
7798 (init_procfs_targets): New, based on procfs_target. Install
7799 "target native" in addition to "target procfs".
7800 (_initialize_procfs): Call init_procfs_targets instead of adding
7803 2014-05-21 Pedro Alves <palves@redhat.com>
7805 * windows-nat.c (windows_target): Don't override to_shortname,
7806 to_longname or to_doc.
7808 2014-05-21 Pedro Alves <palves@redhat.com>
7810 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7813 2014-05-21 Pedro Alves <palves@redhat.com>
7815 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7816 to_shortname, to_longname or to_doc.
7818 2014-05-21 Pedro Alves <palves@redhat.com>
7820 * go32-nat.c (go32_target): Don't override to_shortname,
7821 to_longname or to_doc.
7823 2014-05-21 Pedro Alves <palves@redhat.com>
7825 * inf-child.c (inf_child_open): Remove mention of "child".
7826 (inf_child_target): Rename target to "native" instead of "child".
7828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7830 * Makefile.in (SFILES): Delete "regset.c".
7831 (COMMON_OBS): Delete "regset.o".
7833 * regset.h (regset_alloc): Delete prototype.
7835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7837 * sparc-linux-tdep.c (sparc32_linux_gregset)
7838 (sparc32_linux_fpregset): New static regset structures.
7839 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7840 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7842 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7843 (sparc64_linux_fpregset): New static regset structures.
7844 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7845 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7846 New static regset structures.
7847 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7848 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7849 New static regset structures.
7850 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7851 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7852 New static regset structures.
7853 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7854 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7855 New static regset structures.
7856 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7858 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7860 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7861 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7862 register maps ("regmaps") from "*regset" to "*regmap". Do this
7863 for all regmap types and variables.
7864 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7865 (sparc32_linux_supply_core_gregset)
7866 (sparc32_linux_collect_core_gregset)
7867 (sparc32_linux_supply_core_fpregset)
7868 (sparc32_linux_collect_core_fpregset): Likewise.
7869 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7870 (sparc_gregmap, sparc_fpregmap): ... these.
7871 (sparc_supply_gregset, sparc_collect_gregset)
7872 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7873 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7874 (_initialize_sparc_nat): Rename regmaps.
7875 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7876 (sparc_gregmap, sparc_fpregmap): ... these.
7877 (sparc_supply_gregset, sparc_collect_gregset)
7878 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7879 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7881 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7882 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7884 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7886 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7887 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7888 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7890 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7891 (sparc32_bsd_fpregset): Rename to...
7892 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7893 (sparc32_bsd_fpregmap): ... these.
7894 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7895 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7896 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7897 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7898 (struct sparc_gregmap, struct sparc_fpregmap)
7899 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7900 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7901 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7902 (sparc32_supply_regset, sparc32_collect_gregset)
7903 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7905 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7906 (sparc64_linux_ptrace_gregmap): ... this.
7907 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7908 (_initialize_sparc64_linux_nat): Rename regmaps.
7909 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7910 (sparc64_linux_core_gregmap): ... this.
7911 (sparc64_linux_supply_core_gregset)
7912 (sparc64_linux_collect_core_gregset)
7913 (sparc64_linux_supply_core_fpregset)
7914 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7915 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7916 (sparc64_sol2_fpregset): Rename to...
7917 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7918 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7919 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7921 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7922 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7923 (sparc64_bsd_fpregset): Rename to...
7924 (struct sparc_gregmap, sparc64_sol2_gregmap)
7925 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7926 (sparc64_bsd_fpregmap): ... these.
7927 (sparc64_supply_gregset, sparc64_collect_gregset)
7928 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7930 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7931 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7932 (sparc64fbsd_gregmap): ... this.
7933 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7934 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7936 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7937 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7938 (sparc64nbsd_collect_fpregset): Likewise.
7939 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7940 (sparc64nbsd_gregmap): ... this.
7941 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7943 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7944 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7945 (sparc64obsd_gregmap): ... this.
7946 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7948 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7949 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7950 (sparc32nbsd_gregmap): ... this.
7951 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7954 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7956 * score-tdep.c (score7_linux_gregset): New static regset
7958 (score7_linux_regset_from_core_section): Remove dynamic regset
7960 (score_gdbarch_init): Drop allocation of tdep structure.
7961 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7963 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7965 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7967 (am33_regset_from_core_section): Remove dynamic regset
7970 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7972 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7973 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7975 (mips_linux_regset_from_core_section): Remove dynamic regset
7977 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7978 'gregset64', 'fpregset', and 'fpregset64'.
7979 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7980 deleted tdep fields.
7982 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7984 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7986 (amd64_regset_from_core_section): Remove dynamic regset
7988 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7990 (amd64obsd_regset_from_core_section): Remove dynamic regset
7992 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7994 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7995 x86-common regset supply function.
7996 * i386-tdep.c (i386_collect_gregset): Make static.
7997 (i386_gregset): New global regset structure.
7998 (i386_fpregset, i386_xstateregset): New static regset structures.
7999 (i386_regset_from_core_section): Remove dynamic regset
8001 (i386_gdbarch_init): Remove initialization of tdep fields
8002 'gregset', 'fpregset', and 'xstateregset'.
8003 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8004 'fpregset', and 'xstateregset'.
8005 (i386_collect_gregset): Remove prototype.
8006 (i386_gregset): New declaration.
8007 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8009 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8014 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8015 (arm_linux_vfpregset): New static regset structures.
8016 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8018 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8019 and 'vfpregset' fields.
8021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8023 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8024 (aarch64_linux_fpregset): New static regset structures.
8025 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8026 of regset structures.
8027 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8030 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8032 * regset.h (struct regset): Remove gdbarch field.
8033 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8034 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8035 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8037 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8038 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8039 (ppc32_linux_vsxregset): Likewise.
8040 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8041 via the regcache instead of the regset.
8042 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8043 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8044 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8045 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8048 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8050 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8051 Constify structures.
8052 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8053 (alphanbsd_aout_gregset): Likewise.
8054 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8055 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8057 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8058 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8060 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8061 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8062 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8063 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8064 * m88k-tdep.c (m88k_gregset): Likewise.
8065 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8066 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8067 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8068 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8069 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8070 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8071 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8072 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8073 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8075 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8076 * sh-tdep.h (sh_corefile_gregset): Likewise.
8077 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8078 * vax-tdep.c (vax_gregset): Likewise.
8080 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8082 Fix TLS access for -static -pthread.
8083 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8084 (try_thread_db_load_1): Initialize it.
8085 (thread_db_get_thread_local_address): Call it if LM is zero.
8086 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8087 * target.h (struct target_ops) (to_get_thread_local_address): Add
8088 load_module_addr comment.
8090 2014-05-21 Pedro Alves <palves@redhat.com>
8092 * dcache.c (dcache_read_memory_partial): If reading the cache line
8093 fails, fallback to reading just the memory the caller wanted.
8095 2014-05-20 Doug Evans <dje@google.com>
8097 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8098 instead of get_current_arch.
8100 2014-05-20 Pedro Alves <palves@redhat.com>
8102 * NEWS: Mention that compare-sections now works with all targets.
8104 * remote.c (PACKET_qCRC): New enum value.
8105 (remote_verify_memory): Don't send qCRC if the target has no
8106 execution. Use packet_support/packet_ok. If the target doesn't
8107 support the qCRC packet, fallback to a deep memory copy.
8108 (compare_sections_command): Say "target image" instead of "remote
8110 (_initialize_remote): Add PACKET_qCRC to the list of config
8111 packets that have no associated command. Extend comment.
8112 * target.c (simple_verify_memory, default_verify_memory): New
8114 * target.h (struct target_ops) <to_verify_memory>: Default to
8115 default_verify_memory.
8116 (simple_verify_memory): New declaration.
8117 * target-delegates.c: Regenerate.
8119 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8121 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8123 2014-05-20 Hui Zhu <hui@codesourcery.com>
8124 Yao Qi <yao@codesourcery.com>
8127 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8128 and change address of sp and pc.
8130 2014-05-19 Tom Tromey <tromey@redhat.com>
8132 * gdbtypes.c (rank_function): Use XNEWVEC.
8133 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8135 2014-05-19 Doug Evans <dje@google.com>
8137 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8138 build_type_unit_groups and moved closer to only caller. Remove
8139 arguments. All references updated. Remove outdated .gdb_index
8141 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8142 build_type_psymtabs_1.
8144 2014-05-19 Doug Evans <dje@google.com>
8146 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8147 n_type_unit_groups, all_type_unit_groups. All uses removed.
8148 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8149 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8150 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8151 (add_type_unit_group_to_table): Delete.
8153 2014-05-19 Doug Evans <dje@google.com>
8155 * eval.c (evaluate_subexp_standard): Add some comments.
8157 2014-05-17 Doug Evans <xdje42@gmail.com>
8159 * progspace.c (remove_program_space): Delete, unused.
8160 * progspace.h (remove_program_space): Ditto.
8162 2014-05-17 Doug Evans <xdje42@gmail.com>
8164 * inferior.c (prune_inferiors): Fix comment.
8165 (remove_inferior_command): Call prune_program_spaces.
8167 2014-05-16 Doug Evans <dje@google.com>
8169 New command line option -D.
8171 * main.c (set_gdb_data_directory): New function.
8172 (captured_main): Recognize -D. Flag error for --data-directory "".
8173 Call set_gdb_data_directory.
8174 (print_gdb_help): Print --data-directory, -D.
8175 * main.h (set_gdb_data_directory): Declare.
8176 * top.c (staged_gdb_datadir): New static global.
8177 (set_gdb_datadir): Call set_gdb_data_directory
8178 (show_gdb_datadir): New function.
8179 (init_main): Update init of data-directory parameter.
8181 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8183 Import the "dirfd" gnulib module.
8184 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8185 * gnulib/aclocal.m4: Update.
8186 * gnulib/config.in: Update.
8187 * gnulib/configure: Update.
8188 * gnulib/import/Makefile.am: Update.
8189 * gnulib/import/Makefile.in: Update.
8190 * gnulib/import/dirfd.c: New.
8191 * gnulib/import/m4/dirfd.m4: New.
8192 * gnulib/import/m4/gnulib-cache.m4: Update.
8193 * gnulib/import/m4/gnulib-comp.m4: Update.
8195 2014-05-16 Pierre Muller <muller@sourceware.org>
8196 Yao Qi <yao@codesourcery.com>
8198 * valprint.c (print_wchar): Move the code on checking whether
8199 W is a printable wide char to the default branch of switch
8200 statement below. Call wchar_printable instead of gdb_iswprint.
8202 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8204 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8205 ldr.w and ldrd instructions.
8207 2014-05-15 Doug Evans <dje@google.com>
8209 * dwarf2read.c (read_structure_type): Delete outdated comments.
8211 2014-05-14 Tom Tromey <tromey@redhat.com>
8213 * macrocmd.c (print_macro_definition): Reindent.
8215 2014-05-13 Doug Evans <xdje42@gmail.com>
8217 * python/py-cmd.c (cmdpy_completer): Add comment.
8218 (completers): Make const.
8220 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8222 * infrun.c (resume): Remove should_resume (unused). Move up
8223 declaration of resume_ptid.
8225 2014-05-13 Tom Tromey <tromey@redhat.com>
8227 * language.h (unop_type_check): Remove.
8228 (binop_type_check): Don't declare.
8230 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8232 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8233 call to regcache_raw_collect.
8235 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8237 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8238 mi_console->quote as the quoting character.
8240 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8242 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8244 2014-04-29 Tom Tromey <tromey@redhat.com>
8246 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8247 "show debug varobj".
8249 2014-05-07 Kyle McMartin <kyle@redhat.com>
8251 Pushed by Joel Brobecker <brobecker@adacore.com>.
8252 * aarch64-tdep.c (aarch64_software_single_step): New function.
8253 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8254 with aarch64_software_single_step.
8256 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8260 2014-05-05 Keith Seitz <keiths@redhat.com>
8262 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8263 variable or history value is successfully parsed.
8265 2014-05-05 Yao Qi <yao@codesourcery.com>
8266 Pedro Alves <palves@redhat.com>
8268 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8269 address of blocks that intersects the requested range. Trim
8270 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8272 * ctf.c (ctf_xfer_partial): Likewise.
8274 2014-05-05 Yao Qi <yao@codesourcery.com>
8276 * printcmd.c (display_command): Remove the check to
8277 target_has_execution.
8279 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8281 * ppcobsd-nat.c: Include "obsd-nat.h".
8282 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8284 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8286 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8288 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8289 and 16-bit signed and unsigned arguments. Update comment.
8290 (stap_parse_probe_arguments): Extend code to handle such
8291 arguments. Use warning instead of complaint to notify about
8292 unrecognized bitness.
8294 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8296 PR breakpoints/16889
8297 * stap-probe.c (stap_parse_probe_arguments): Simplify
8298 check for non-prefixed probes (i.e., probes whose
8299 arguments do not start with "N@"). Always set the
8300 argument type to a sane value.
8302 2014-05-01 David Taylor <dtaylor@emc.com>
8304 * remote.c (compare_sections_command): Add -r option to compare
8305 all loadable read-only sections.
8307 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8309 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8310 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8312 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8313 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8314 Remove unused CORE_ADDR argument. Update all callers.
8316 2014-04-29 Pedro Alves <palves@redhat.com>
8318 * remote.c (struct packet_config) <detect>: Extend comment.
8319 (add_packet_config_cmd): Don't set the config's detect or support
8321 (init_all_packet_configs): Also initialize the config's 'detect'
8323 (reset_all_packet_configs_support): New function.
8324 (remote_open_1): Call reset_all_packet_configs_support instead of
8325 init_all_packet_configs.
8326 (_initialize_remote): Initialize all packet configs. Assert that
8327 all packets have an associated command, except a few known
8330 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8332 * dwarf2read.c (read_subrange_type): Handle dynamic
8333 DW_AT_lower_bound attributes.
8335 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8337 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8338 dynamic bounds before computing its upper bound.
8339 (ada_discrete_type_low_bound): Same as above with the lower bound.
8341 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8343 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8344 range types. Adjust the array handling implementation to
8345 take advantage of this change.
8346 (resolve_dynamic_range): New function, mostly extracted from
8347 resolve_dynamic_bounds.
8348 (resolve_dynamic_array): New function, mostly extracted from
8349 resolve_dynamic_bounds.
8350 (resolve_dynamic_bounds): Delete.
8351 (resolve_dynamic_type): Reimplement. Add handling of
8352 TYPE_CODE_RANGE types.
8354 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8356 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8357 handling of parallel ___XA types.
8359 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8361 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8362 unnecessary second call to static_unwrap_type.
8364 2014-04-27 Hui Zhu <hui@codesourcery.com>
8366 * stack.c (print_frame_info): Call do_gdb_disassembly with
8367 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8369 2014-04-26 Doug Evans <xdje42@gmail.com>
8371 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8373 2014-04-25 Pedro Alves <palves@redhat.com>
8376 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8377 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8378 and newline from built string.
8379 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8380 (linux_ptrace_attach_fail_reason): ... this.
8381 * linux-nat.c (linux_nat_attach): Adjust to use
8382 linux_ptrace_attach_fail_reason.
8384 2014-04-25 Pedro Alves <palves@redhat.com>
8386 * remote.c (struct remote_state): Remove multi_process_aware,
8387 non_stop_aware, cond_tracepoints, cond_breakpoints,
8388 breakpoint_commands, fast_tracepoints, static_tracepoints,
8389 install_in_trace, disconnected_tracing,
8390 enable_disable_tracepoints, string_tracing, and
8391 augmented_libraries_svr4_read fields.
8392 (remote_multi_process_p): Move further below in the file.
8393 (struct packet_config): Add comments.
8394 (update_packet_config): Delete function.
8395 (show_packet_config_cmd): Use packet_config_support.
8396 (add_packet_config_cmd): Use NULL as set callback.
8397 (packet_ok): "set remote foo-packet"-style commands no longer
8398 change config->supported -- adjust.
8399 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8400 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8401 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8402 (PACKET_QNonStop, PACKET_multiprocess_feature)
8403 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8404 (PACKET_DisconnectedTracing_feature)
8405 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8406 (set_remote_protocol_packet_cmd): Delete function.
8407 (packet_config_support, packet_support): New functions.
8408 (set_remote_protocol_Z_packet_cmd): Don't call
8409 update_packet_config.
8410 (remote_query_attached, remote_pass_signals)
8411 (remote_program_signals, remote_threads_info)
8412 (remote_threads_extra_info, remote_start_remote): Use
8414 (remote_start_remote): Use packet_config_support and
8416 (init_all_packet_configs): Set all packets to unknown support,
8417 instead of calling update_packet_config.
8418 (remote_check_symbols): Use packet_support.
8419 (remote_supported_packet): Unconditionally set the packet config's
8421 (remote_multi_process_feature, remote_non_stop_feature)
8422 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8423 (remote_breakpoint_commands_feature)
8424 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8425 (remote_install_in_trace_feature)
8426 (remote_disconnected_tracing_feature)
8427 (remote_enable_disable_tracepoint_feature)
8428 (remote_string_tracing_feature)
8429 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8430 (remote_protocol_features): Adjust to use remote_supported_packet
8431 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8432 "ConditionalTracepoints", "ConditionalBreakpoints",
8433 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8434 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8435 "EnableDisableTracepoints", and "tracenz".
8436 (remote_query_supported): Use packet_support.
8437 (remote_open_1): Adjust.
8438 (extended_remote_attach_1): Use packet_support. Switch on the
8439 result of packet_ok instead of checking whether the packet ended
8441 (remote_vcont_resume): Use packet_support.
8442 (remote_resume, remote_stop_ns, fetch_register_using_p)
8443 (remote_prepare_to_store, store_register_using_P)
8444 (check_binary_download, remote_write_bytes): Use packet_support.
8445 (remote_vkill): Use packet_support. Switch on the result of
8446 packet_ok instead of checking whether the packet ended up
8448 (extended_remote_supports_disable_randomization): Use
8450 (extended_remote_run): Switch on the result of packet_ok instead
8451 of checking whether the packet ended up disabled.
8452 (remote_insert_breakpoint, remote_remove_breakpoint)
8453 (remote_insert_watchpoint, remote_remove_watchpoint)
8454 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8456 (remote_search_memory): Use packet_config_support.
8457 (remote_get_thread_local_address, remote_get_tib_address)
8458 (remote_hostio_send_command, remote_can_execute_reverse): Use
8460 (remote_supports_cond_tracepoints)
8461 (remote_supports_cond_breakpoints)
8462 (remote_supports_fast_tracepoints)
8463 (remote_supports_static_tracepoints)
8464 (remote_supports_install_in_trace)
8465 (remote_supports_enable_disable_tracepoint)
8466 (remote_supports_string_tracing)
8467 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8468 the packet config says the feature is enabled or disabled.
8469 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8470 (remote_get_trace_status): Use packet_support.
8471 (remote_set_disconnected_tracing): Adjust to check whether the
8472 feature is enabled with packet_support.
8473 (remote_set_trace_buffer_size, remote_use_agent)
8474 (remote_can_use_agent, remote_supports_btrace): Use
8476 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8477 Use packet_config_support.
8478 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8479 the packet config says the feature is enabled or disabled.
8480 (set_range_stepping): Use packet_support.
8482 2014-04-25 Tom Tromey <tromey@redhat.com>
8484 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8487 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8489 * NEWS: Mention support for C99 variable length arrays.
8491 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8493 * ada-lang.c (standard_exc): Expand introductory comment.
8495 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8496 Walfred Tedeschi <walfred.tedeschi@intel.com>
8498 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8500 (amd64_linux_read_description): Add code to handle AVX512 xstate
8501 mask and return respective tdesc.
8502 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8503 and features/i386/x32-avx512-linux.c.
8504 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8505 (amd64_linux_core_read_description): Add code to handle AVX512
8506 xstate mask and return respective tdesc.
8507 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8508 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8510 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8511 (tdesc_amd64_avx512_linux): New prototype.
8512 (tdesc_x32_avx512_linux): Likewise.
8513 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8514 features/i386/x32-avx512.c.
8515 (amd64_ymm_avx512_names): New register names for pseudo
8517 (amd64_ymmh_avx512_names): New register names for raw registers
8519 (amd64_k_names): New register names for K registers.
8520 (amd64_zmmh_names): New register names for ZMM raw registers.
8521 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8522 (amd64_xmm_avx512_names): New register names for XMM16-31
8524 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8526 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8527 if feature is present.
8528 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8529 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8530 (AMD64_NUM_REGS): Adjust to new number of registers.
8531 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8532 registers supplied via XSTATE by AVX512 registers.
8533 (i386_linux_read_description): Add case for AVX512.
8534 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8535 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8536 (i386_linux_core_read_description): Add case for AVX512.
8537 (i386_linux_init_abi): Install supported register note section
8539 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8541 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8542 registers to be number of zmm7h + 1.
8543 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8544 * i386-tdep.c: Include features/i386/i386-avx512.c.
8545 (i386_zmm_names): Add ZMM pseudo register names array.
8546 (i386_zmmh_names): Add ZMM raw register names array.
8547 (i386_k_names): Add K raw register names array.
8548 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8549 registers. AVX512 has 16 more ZMM registers than there are YMM
8551 (i386_zmmh_regnum_p): Add function to look up register number of
8553 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8554 (i386_k_regnum_p): Likewise for K raw registers.
8555 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8556 registers added by AVX512.
8557 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8558 registers added by AVX512.
8559 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8561 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8562 (i386_pseudo_register_name): Add ZMM pseudo registers.
8563 (i386_zmm_type): Construct and return vector registers type for ZMM
8565 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8566 ZMM0-31 pseudo registers and K registers.
8567 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8568 and YMM16-31 registers from register cache.
8569 (i386_pseudo_register_write): Add code to write K, ZMM and
8571 (i386_register_reggroup_p): Add code to include/exclude AVX512
8572 registers in/from respective register groups.
8573 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8574 registers if feature is present in xcr0.
8575 (i386_gdbarch_init): Add code to initialize AVX512 feature
8576 variables in tdep structure, wire in pseudo registers and call
8577 initialize_tdesc_i386_avx512.
8578 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8580 (i386_regnum): Add AVX512 registers.
8581 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8582 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8583 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8584 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8586 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8587 (i386_ymm_avx512_regnum_p): Likewise.
8588 (i386_k_regnum_p): Likewise.
8589 (i386_zmm_regnum_p): Likewise.
8590 (i386_zmmh_regnum_p): Likewise.
8591 * i387-tdep.c : Update year in copyright notice.
8592 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8594 (XSAVE_YMM_AVX512_ADDR): New macro.
8595 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8597 (XSAVE_XMM_AVX512_ADDR): New macro.
8598 (xsave_avx512_k_offset): New table for K register offsets in
8600 (XSAVE_AVX512_K_ADDR): New macro.
8601 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8603 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8604 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8606 (i387_collect_xsave): Add code to collect AVX512 registers from
8608 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8609 of XMM16-31 registers.
8610 (I387_NUM_K_REGS): New define for number of K registers.
8611 (I387_K0_REGNUM): New define for K0 register number.
8612 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8613 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8614 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8616 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8617 (I387_XMM16_REGNUM): New define for XMM16 register number.
8618 (I387_YMM0_REGNUM): New define for YMM0 register number.
8619 (I387_KEND_REGNUM): New define for last K register number.
8620 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8621 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8623 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8625 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8627 * features/Makefile: Add AVX512 related files.
8628 * features/i386/32bit-avx512.xml: New file.
8629 * features/i386/64bit-avx512.xml: Likewise.
8630 * features/i386/amd64-avx512-linux.c: Likewise.
8631 * features/i386/amd64-avx512-linux.xml: Likewise.
8632 * features/i386/amd64-avx512.c: Likewise.
8633 * features/i386/amd64-avx512.xml: Likewise.
8634 * features/i386/i386-avx512-linux.c: Likewise.
8635 * features/i386/i386-avx512-linux.xml: Likewise.
8636 * features/i386/i386-avx512.c: Likewise.
8637 * features/i386/i386-avx512.xml: Likewise.
8638 * features/i386/x32-avx512-linux.c: Likewise.
8639 * features/i386/x32-avx512-linux.xml: Likewise.
8640 * features/i386/x32-avx512.c: Likewise.
8641 * features/i386/x32-avx512.xml: Likewise.
8642 * regformats/i386/amd64-avx512-linux.dat: New file.
8643 * regformats/i386/amd64-avx512.dat: Likewise.
8644 * regformats/i386/i386-avx512-linux.dat: Likewise.
8645 * regformats/i386/i386-avx512.dat: Likewise.
8646 * regformats/i386/x32-avx512-linux.dat: Likewise.
8647 * regformats/i386/x32-avx512.dat: Likewise.
8648 * NEWS: Add note about new support for AVX512.
8651 2014-04-23 Pedro Alves <palves@redhat.com>
8653 * breakpoint.c (insert_bp_location): Tolerate errors if the
8654 breakpoint is set in a user-loaded objfile.
8655 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8656 location is marked shlib_disabled. If the breakpoint is set in a
8657 user-loaded objfile is a GDB-side memory breakpoint, validate it
8658 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8659 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8661 * mem-break.c (memory_validate_breakpoint): New function.
8662 * objfiles.c (userloaded_objfile_contains_address_p): New
8664 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8665 * target.h (memory_validate_breakpoint): New declaration.
8667 2014-04-23 Pedro Alves <palves@redhat.com>
8669 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8670 the breakpoint is set in a shared library, only suppress
8671 errors for software breakpoints, not hardware breakpoints.
8673 2014-04-22 Pedro Alves <palves@redhat.com>
8675 * infrun.c (schedlock_applies): New function, factored out from
8676 find_thread_needs_step_over.
8677 (find_thread_needs_step_over): Use it.
8678 (switch_back_to_stepped_thread): Always clear trap_expected if the
8679 step over is finished. Return early if scheduler locking applies.
8680 Look for the stepping thread and a potential step-over thread with
8682 (currently_stepping_or_nexting_callback): Delete.
8684 2014-04-22 Nick Clifton <nickc@redhat.com>
8686 * NEWS: Mention that ARM sim now supports tracing.
8688 2014-04-22 Yao Qi <yao@codesourcery.com>
8690 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8692 * tracefile.c (tracefile_fetch_registers): ... it. New
8694 * tracefile.h (tracefile_fetch_registers): Declare.
8695 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8696 tracefile_fetch_registers.
8698 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8701 * windows-nat.c (thread_rec): Don't display a warning when
8702 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8703 fails for any reason, set th->suspended to -1, so that we don't
8704 try to resume such a thread. Also, don't return NULL in these
8705 cases, to avoid completely ruin the session due to "PC register is
8706 not available" error.
8707 (do_windows_fetch_inferior_registers): Check errors in
8708 GetThreadContext call.
8709 (windows_continue): Accept an additional argument KILLED; if not
8710 zero, ignore errors in the SetThreadContext call, since the
8711 inferior was killed and is shutting down.
8712 (windows_resume, get_windows_debug_event)
8713 (windows_create_inferior, windows_mourn_inferior)
8714 (windows_kill_inferior): All callers of windows_continue changed
8715 to adjust to its new calling sequence.
8717 2014-04-19 Yao Qi <yao@codesourcery.com>
8719 * ctf.c (ctf_open): Call post_create_inferior.
8721 2014-04-19 Yao Qi <yao@codesourcery.com>
8723 * ctf.c (handle_id): New static variable.
8724 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8725 value. Get the declaration of event "register" and get length
8726 of field "contents".
8728 2014-04-19 Yao Qi <yao@codesourcery.com>
8730 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8732 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8734 * valops.c (oload_method_static): Remove unnecessary argument
8735 METHOD. Update all callers.
8737 2014-04-18 Pedro alves <palves@redhat.com>
8738 Tom Tromey <tromey@redhat.com>
8741 * frame.c (get_prev_frame_1): Rename to ...
8742 (get_prev_frame_always): ... this, and make extern. Adjust.
8743 (skip_artificial_frames): Use get_prev_frame_always.
8744 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8745 (get_frame_unwind_stop_reason): Adjust to rename.
8746 * frame.h (get_prev_frame_always): Declare.
8747 * inline-frame.c: Include frame.h.
8748 (inline_frame_this_id): Use get_prev_frame_always.
8750 2014-04-18 Tristan Gingold <gingold@adacore.com>
8752 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8753 code by using bfd_mach_o_get_base_address.
8755 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8757 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8758 (spu_ax_pseudo_register_collect): New function.
8759 (spu_ax_pseudo_register_push_stack): Likewise.
8760 (spu_dwarf_reg_to_regnum): Likewise.
8761 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8763 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8765 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8766 Replace FRAME argument with FRAME_ID.
8767 * gdbarch.c, gdbarch.h: Regenerate.
8768 * findvar.c (default_value_from_register): Add GDBARCH argument;
8769 replace FRAME by FRAME_ID. No longer call get_frame_id.
8770 (value_from_register): Update call to gdbarch_value_from_register.
8771 * value.h (default_value_from_register): Update prototype.
8772 * s390-linux-tdep.c (s390_value_from_register): Update interface
8773 and call to default_value_from_register.
8774 * spu-tdep.c (spu_value_from_register): Likewise.
8776 * findvar.c (address_from_register): Remove TYPE argument.
8777 Do not call value_from_register; use gdbarch_value_from_register
8778 with null_frame_id instead.
8779 * value.h (address_from_register): Update prototype.
8780 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8781 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8782 address_from_register interface change.
8784 2014-04-17 Yao Qi <yao@codesourcery.com>
8786 * gdbtypes.h: Update comments to link to types and macros'
8789 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8791 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8793 2014-04-16 Keith Seitz <keiths@redhat.com>
8796 * dwarf2read.c (skip_one_die): Check that all relative-offset
8797 sibling DIEs fall within range of the current reader's buffer.
8798 (read_partial_die): Likewise.
8800 2014-04-16 Keith Seitz <keiths@redhat.com>
8803 * cp-namespace.c (lookup_symbol_file): If the type name of
8804 `this' is NULL, return immediately.
8806 2014-04-14 Keith Seitz <keiths@redhat.com>
8809 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8810 from symbol_matches_domain in symtab.c. All local callers
8811 of symbol_matches_domain updated.
8812 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8813 search STRUCT_DOMAIN.
8814 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8815 independently. standard_lookup will do that automatically.
8816 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8817 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8818 (cp_lookup_symbol_in_namespace): Likewise.
8819 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8820 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8821 may return a STRUCT_DOMAIN match.
8822 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8823 * cp-support.c: Include language.h.
8824 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8826 * psymtab.c (match_partial_symbol): Compare the requested
8827 domain with the symbol's domain directly.
8828 (lookup_partial_symbol): Likewise.
8829 * symtab.c (lookup_symbol_in_language): Explain when/why
8830 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8831 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8832 appropriate languages.
8833 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8834 and moved to ada-lang.c
8835 (lookup_block_symbol): Explain that this function only returns
8836 symbol matching the requested DOMAIN.
8837 Compare the requested domain with the symbol's domain directly.
8838 (iterate_over_symbols): Compare the requested domain with the
8839 symbol's domain directly.
8840 * symtab.h (symbol_matches_domain): Remove.
8842 2014-04-14 Tom Tromey <tromey@redhat.com>
8845 * c-exp.y (type_aggregate_p): New function.
8846 (qualified_name, classify_inner_name): Use it.
8847 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8848 and TYPE_TARGET_TYPE of an enum type.
8849 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8851 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8852 handle TYPE_DECLARED_CLASS.
8853 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8855 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8856 * valops.c (enum_constant_from_type): New function.
8857 (value_aggregate_elt): Use it.
8858 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8861 2014-04-14 Tom Tromey <tromey@redhat.com>
8863 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8864 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8866 * value.h (value_aggregate_elt): Update.
8868 2014-04-14 Tom Tromey <tromey@redhat.com>
8870 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8872 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8874 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8875 (evaluate_subexp_standard): Pass noside argument.
8876 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8877 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8878 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8879 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8880 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8882 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8884 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8885 points to a constant blob.
8887 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8889 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8890 property and store it as the high bound and flag the range accordingly.
8891 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8892 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8893 * gdbtypes.h (enum range_flags): New enum.
8894 (struct range_bounds): Add flags member.
8896 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8898 * c-typeprint.c (c_type_print_varspec_suffix): Added
8899 check for not yet resolved high bound. If unresolved, print
8900 "variable length" string to the console instead of random
8903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8905 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8907 (ada_template_to_fixed_record_type_1): Likewise.
8908 (ada_to_fixed_type_1): Likewise.
8909 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8910 (cp_print_value): Likewise.
8911 * d-valprint.c (dynamic_array_type): Likewise.
8912 * findvar.c (address_of_variable): Likewise.
8913 * jv-valprint.c (java_value_print): Likewise.
8914 * valops.c (value_ind): Likewise.
8915 * value.c (coerce_ref): Likewise.
8917 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8919 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8920 value and retrieve the dynamic type size.
8922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8924 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8925 passed to sizeof is dynamic evaluate the argument to compute the length.
8927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8928 Joel Brobecker <brobecker@adacore.com>
8930 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8931 (dwarf2_evaluate_property): New function.
8932 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8933 * dwarf2read.c (attr_to_dynamic_prop): New function.
8934 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8936 * gdbtypes.c: Include dwarf2loc.h.
8937 (is_dynamic_type): New function.
8938 (resolve_dynamic_type): New function.
8939 (resolve_dynamic_bounds): New function.
8940 (get_type_length): New function.
8941 (check_typedef): Use get_type_length to compute type length.
8942 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8943 (TYPE_LOW_BOUND_KIND): New macro.
8944 (is_dynamic_type): New function prototype.
8945 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8946 to resolve dynamic properties of the type. Update comment.
8947 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8949 2014-04-14 Richard Henderson <rth@redhat.com>
8951 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8953 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8954 Doug Evans <xdje42@gmail.com>
8956 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8957 dereference TYPE_CODE_REF values.
8959 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8961 Revert the following changes due to regressions:
8963 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8964 (dwarf2_evaluate_property): New function.
8965 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8966 * dwarf2read.c (attr_to_dynamic_prop): New function.
8967 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8969 * gdbtypes.c: Include dwarf2loc.h.
8970 (is_dynamic_type): New function.
8971 (resolve_dynamic_type): New function.
8972 (resolve_dynamic_bounds): New function.
8973 (get_type_length): New function.
8974 (check_typedef): Use get_type_length to compute type length.
8975 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8976 (TYPE_LOW_BOUND_KIND): New macro.
8977 (is_dynamic_type): New function prototype.
8978 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8979 to resolve dynamic properties of the type. Update comment.
8980 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8982 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8983 passed to sizeof is dynamic evaluate the argument to compute the length.
8985 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8986 value and retrieve the dynamic type size.
8988 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8989 (ada_template_to_fixed_record_type_1): Likewise.
8990 (ada_to_fixed_type_1): Likewise.
8991 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8992 (cp_print_value): Likewise.
8993 * d-valprint.c (dynamic_array_type): Likewise.
8994 * eval.c (evaluate_subexp_with_coercion): Likewise.
8995 * findvar.c (address_of_variable): Likewise.
8996 * jv-valprint.c (java_value_print): Likewise.
8997 * valops.c (value_ind): Likewise.
8998 * value.c (coerce_ref): Likewise.
9000 * c-typeprint.c (c_type_print_varspec_suffix): Added
9001 check for not yet resolved high bound. If unresolved, print
9002 "variable length" string to the console instead of random
9005 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9006 property and store it as the high bound and flag the range accordingly.
9007 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9008 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9009 * gdbtypes.h (enum range_flags): New enum.
9010 (struct range_bounds): Add flags member.
9012 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9013 points to a constant blob.
9015 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9016 (evaluate_subexp_standard): Pass noside argument.
9017 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9018 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9019 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9020 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9021 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9023 2014-04-11 Keith Seitz <keiths@redhat.com>
9026 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9027 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9030 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9032 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9033 (evaluate_subexp_standard): Pass noside argument.
9034 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9035 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9036 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9037 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9038 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9040 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9042 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9043 points to a constant blob.
9045 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9047 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9048 property and store it as the high bound and flag the range accordingly.
9049 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9050 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9051 * gdbtypes.h (enum range_flags): New enum.
9052 (struct range_bounds): Add flags member.
9054 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9056 * c-typeprint.c (c_type_print_varspec_suffix): Added
9057 check for not yet resolved high bound. If unresolved, print
9058 "variable length" string to the console instead of random
9061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9063 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9064 (ada_template_to_fixed_record_type_1): Likewise.
9065 (ada_to_fixed_type_1): Likewise.
9066 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9067 (cp_print_value): Likewise.
9068 * d-valprint.c (dynamic_array_type): Likewise.
9069 * eval.c (evaluate_subexp_with_coercion): Likewise.
9070 * findvar.c (address_of_variable): Likewise.
9071 * jv-valprint.c (java_value_print): Likewise.
9072 * valops.c (value_ind): Likewise.
9073 * value.c (coerce_ref): Likewise.
9075 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9077 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9078 value and retrieve the dynamic type size.
9080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9082 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9083 passed to sizeof is dynamic evaluate the argument to compute the length.
9085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9087 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9088 (dwarf2_evaluate_property): New function.
9089 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9090 * dwarf2read.c (attr_to_dynamic_prop): New function.
9091 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9093 * gdbtypes.c: Include dwarf2loc.h.
9094 (is_dynamic_type): New function.
9095 (resolve_dynamic_type): New function.
9096 (resolve_dynamic_bounds): New function.
9097 (get_type_length): New function.
9098 (check_typedef): Use get_type_length to compute type length.
9099 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9100 (TYPE_LOW_BOUND_KIND): New macro.
9101 (is_dynamic_type): New function prototype.
9102 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9103 to resolve dynamic properties of the type. Update comment.
9104 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9108 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9109 declaring high/low bounds and change uses accordingly. Call
9110 create_range_type instead of create_static_range_type.
9111 * gdbtypes.c (create_range_type): New function.
9112 (create_range_type): Convert bounds into struct bound_prop and pass
9113 them to create_range_type.
9114 * gdbtypes.h (struct bound_prop): New struct.
9115 (create_range_type): New function prototype.
9116 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9117 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9118 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9120 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9124 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9125 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9126 * ada-lang.c: All uses of create_range_type updated.
9127 * coffread.c: All uses of create_range_type updated.
9128 * dwarf2read.c: All uses of create_range_type updated.
9129 * f-exp.y: All uses of create_range_type updated.
9130 * m2-valprint.c: All uses of create_range_type updated.
9131 * mdebugread.c: All uses of create_range_type updated.
9132 * stabsread.c: All uses of create_range_type updated.
9133 * valops.c: All uses of create_range_type updated.
9134 * valprint.c: All uses of create_range_type updated.
9136 2014-04-10 Pedro Alves <palves@redhat.com>
9138 * breakpoint.c (single_step_breakpoints)
9139 (single_step_gdbarch): Move up in the file.
9140 (one_breakpoint_xfer_memory): New function, factored out from ...
9141 (breakpoint_xfer_memory): ... here. Also process single-step
9144 2014-04-09 Tristan Gingold <gingold@adacore.com>
9146 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9148 (darwin_decode_exception_message): Free port only after use.
9150 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9152 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9153 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9154 when setting the size of call_length.
9156 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9158 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9159 dereference TYPE_CODE_REF values.
9161 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9163 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9164 end of warning message.
9166 2014-04-03 Doug Evans <dje@google.com>
9168 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9169 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9171 2014-04-02 Alan Modra <amodra@gmail.com>
9173 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9174 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9175 (struct symbol_file_add_from_memory_args): Add size field.
9176 (find_vdso_size): New function.
9177 (add_vsyscall_page): Attempt to find vdso size.
9179 2014-04-01 Doug Evans <dje@google.com>
9181 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9183 2014-04-01 Tristan Gingold <gingold@adacore.com>
9185 * darwin-nat.c (darwin_encode_reply): Add prototype.
9186 (darwin_decode_exception_message): Reply to unknown inferiors.
9187 (darwin_decode_message): Handle message by id. Ignore message
9188 to unknown inferior.
9189 (darwin_wait): Discard unknown messages, add debug trace.
9191 2014-03-31 Doug Evans <dje@google.com>
9193 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9196 2014-03-31 Doug Evans <dje@google.com>
9198 New option "set print symbol-loading".
9200 * solib.c (solib_read_symbols): Only print symbol loading messages
9202 (solib_add): If symbol loading is in "brief" mode, notify user
9203 symbols are being loaded.
9204 (reload_shared_libraries_1): Ditto.
9205 * symfile.c (print_symbol_loading_off): New static global.
9206 (print_symbol_loading_brief): New static global.
9207 (print_symbol_loading_full): New static global.
9208 (print_symbol_loading_enums): New static global.
9209 (print_symbol_loading): New static global.
9210 (print_symbol_loading_p): New function.
9211 (symbol_file_add_with_addrs): Only print symbol loading messages
9213 (_initialize_symfile): Register "print symbol-loading" set/show
9215 * symfile.h (print_symbol_loading_p): Declare.
9217 2014-03-30 Doug Evans <xdje42@gmail.com>
9219 * infrun.c (set_last_target_status): New function.
9220 (handle_inferior_event): Call it.
9222 2014-03-30 Doug Evans <xdje42@gmail.com>
9224 * inferior.h (enum stop_kind): Improve comment.
9226 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9228 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9229 a reference, strip the reference layer before calling
9230 the lang_ops value_has_mutated callback.
9232 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9234 Remove some globals from our parser.
9235 * language.c (unk_lang_parser): Add "struct parser_state"
9237 * language.h (struct language_defn) <la_parser>: Likewise.
9238 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9239 (initialize_expout): Add "struct parser_state" argument.
9240 Rewrite function to use the parser state.
9241 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9242 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9243 write_exp_elt_longcst, write_exp_elt_dblcst,
9244 write_exp_elt_decfloatcst, write_exp_elt_type,
9245 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9246 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9247 write_dollar_variable): Likewise.
9248 (parse_exp_in_context_1): Use parser state.
9249 (insert_type_address_space): Add "struct parser_state" argument.
9251 (increase_expout_size): New function.
9252 * parser-defs.h: Forward declare "struct language_defn" and
9253 "struct parser_state".
9254 (expout, expout_size, expout_ptr): Remove extern declarations.
9255 (parse_gdbarch, parse_language): Rewrite macro declarations to
9256 accept the parser state.
9257 (struct parser_state): New struct.
9258 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9259 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9260 write_exp_elt_decfloatcst, write_exp_elt_type,
9261 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9262 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9263 write_exp_msymbol, write_dollar_variable,
9264 mark_struct_expression, insert_type_address_space): Add "struct
9265 parser_state" argument.
9266 (increase_expout_size): New function.
9267 * utils.c (do_clear_parser_state): New function.
9268 (make_cleanup_clear_parser_state): Likewise.
9269 * utils.h (make_cleanup_clear_parser_state): New function
9271 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9272 Update calls to write_exp* in order to pass the parser state.
9273 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9274 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9275 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9276 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9277 * stap-probe.c (stap_parse_register_operand): Likewise.
9278 (stap_parse_single_operand): Likewise.
9279 (stap_parse_argument_1): Likewise.
9280 (stap_parse_argument): Use parser state.
9281 * stap-probe.h: Include "parser-defs.h".
9282 (struct stap_parse_info) <pstate>: New field.
9283 * c-exp.y (parse_type): Rewrite to use parser state.
9284 (yyparse): Redefine to c_parse_internal.
9285 (pstate): New global variable.
9286 (parse_number): Add "struct parser_state" argument.
9287 (write_destructor_name): Likewise.
9288 (type_exp): Update calls to write_exp* and similars in order to
9290 (exp1, exp, variable, qualified_name, space_identifier,
9291 typename, typebase): Likewise.
9292 (write_destructor_name, parse_number, lex_one_token,
9293 classify_name, classify_inner_name, c_parse): Add "struct
9294 parser_state" argument. Update function to use parser state.
9295 * c-lang.h: Forward declare "struct parser_state".
9296 (c_parse): Add "struct parser_state" argument.
9297 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9298 (yyparse): Redefine macro to ada_parse_internal.
9299 (pstate): New variable.
9300 (write_int, write_object_renaming, write_var_or_type,
9301 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9302 type_int, type_long, type_long_long, type_float, type_double,
9303 type_long_double, type_char, type_boolean, type_system_address):
9304 Add "struct parser_state" argument.
9305 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9306 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9307 var_or_type, aggregate, aggregate_component_list,
9308 positional_list, others, component_group,
9309 component_associations): Update calls to write_exp* and similar
9310 functions in order to use parser state.
9311 (ada_parse, write_var_from_sym, write_int,
9312 write_exp_op_with_string, write_object_renaming,
9313 find_primitive_type, write_selectors, write_ambiguous_var,
9314 write_var_or_type, write_name_assoc, type_int, type_long,
9315 type_long_long, type_float, type_double, type_long_double,
9316 type_char, type_boolean, type_system_address): Add "struct
9317 parser_state" argument. Adjust function to use parser state.
9318 * ada-lang.c (parse): Likewise.
9319 * ada-lang.h: Forward declare "struct parser_state".
9320 (ada_parse): Add "struct parser_state" argument.
9321 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9322 calls to both functions.
9323 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9325 (yyparse): Redefine macro to f_parse_internal.
9326 (pstate): New variable.
9327 (parse_number): Add "struct parser_state" argument.
9328 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9329 and similars in order to use parser state.
9330 (parse_number): Adjust code to use parser state.
9332 (f_parse): New function.
9333 * f-lang.h: Forward declare "struct parser_state".
9334 (f_parse): Add "struct parser_state" argument.
9335 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9337 (yyparse): Redefine macro for java_parse_internal.
9338 (pstate): New variable.
9339 (push_expression_name, push_expression_name, insert_exp): Add
9340 "struct parser_state" argument.
9341 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9342 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9343 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9344 PostIncrementExpression, PostDecrementExpression,
9345 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9346 UnaryExpressionNotPlusMinus, CastExpression,
9347 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9348 RelationalExpression, EqualityExpression, AndExpression,
9349 ExclusiveOrExpression, InclusiveOrExpression,
9350 ConditionalAndExpression, ConditionalOrExpression,
9351 ConditionalExpression, Assignment, LeftHandSide): Update
9352 calls to write_exp* and similars in order to use parser state.
9353 (parse_number): Ajust code to use parser state.
9355 (java_parse): New function.
9356 (push_variable): Add "struct parser_state" argument. Adjust
9357 code to user parser state.
9358 (push_fieldnames, push_qualified_expression_name,
9359 push_expression_name, insert_exp): Likewise.
9360 * jv-lang.h: Forward declare "struct parser_state".
9361 (java_parse): Add "struct parser_state" argument.
9362 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9364 (yyparse): Redefine macro to m2_parse_internal.
9365 (pstate): New variable.
9366 (type_exp, exp, fblock, variable, type): Update calls to
9367 write_exp* and similars to use parser state.
9369 (m2_parse): New function.
9370 * m2-lang.h: Forward declare "struct parser_state".
9371 (m2_parse): Add "struct parser_state" argument.
9372 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9373 * objc-lang.h: Forward declare "struct parser_state".
9374 (end_msglist): Add "struct parser_state" argument.
9375 * p-exp.y (parse_type): Rewrite macro to use parser state.
9376 (yyparse): Redefine macro to pascal_parse_internal.
9377 (pstate): New variable.
9378 (parse_number): Add "struct parser_state" argument.
9379 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9380 write_exp* and similars in order to use parser state.
9381 (parse_number, yylex): Adjust code to use parser state.
9382 (pascal_parse): New function.
9383 * p-lang.h: Forward declare "struct parser_state".
9384 (pascal_parse): Add "struct parser_state" argument.
9385 * go-exp.y (parse_type): Rewrite macro to use parser state.
9386 (yyparse): Redefine macro to go_parse_internal.
9387 (pstate): New variable.
9388 (parse_number): Add "struct parser_state" argument.
9389 (type_exp, exp1, exp, variable, type): Update calls to
9390 write_exp* and similars in order to use parser state.
9391 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9392 to use parser state.
9393 (go_parse): Likewise.
9394 * go-lang.h: Forward declare "struct parser_state".
9395 (go_parse): Add "struct parser_state" argument.
9397 2014-03-27 Doug Evans <dje@google.com>
9399 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9401 2014-03-27 Doug Evans <dje@google.com>
9403 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9404 Remove argument abbrev_section. All callers updated.
9406 2014-03-27 Doug Evans <dje@google.com>
9408 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9409 addr_base, ranges_base.
9411 2014-03-26 Keith Seitz <keiths@redhat.com>
9413 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9414 types, not VAR_DOMAIN.
9416 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9418 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9420 * features/nios2-linux.c: Regenerated.
9421 * features/nios2.c: Regenerated.
9423 2014-03-25 Pedro Alves <palves@redhat.com>
9425 * cli/cli-script.c (script_from_file): Force the interpreter to
9428 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9430 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9431 small stack allocation.
9433 2014-03-24 Tristan Gingold <gingold@adacore.com>
9435 * darwin-nat.c (exc_server): Remove unused prototype.
9436 (darwin_dump_message): Correctly display data on x86_64.
9437 (darwin_encode_reply): Fix style.
9438 Add comments and fix indentation.
9440 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9442 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9444 2014-03-22 Doug Evans <xdje42@gmail.com>
9446 * infcmd.c: Whitespace fixes.
9447 (interrupt_command): Merge two function comments into one.
9449 2014-03-22 Doug Evans <xdje42@gmail.com>
9451 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9454 2014-03-22 Yao Qi <yao@codesourcery.com>
9456 * remote.c (target_read_live_memory): Remove.
9457 (memory_xfer_live_readonly_partial): Rename it to
9458 remote_xfer_live_readonly_partial. Remove argument 'object'.
9459 All callers updated. Call remote_read_bytes_1
9460 instead of target_read_live_memory.
9461 * tracepoint.c (set_traceframe_number): Remove.
9462 (make_cleanup_restore_traceframe_number): Likewise .
9463 * tracepoint.h (set_traceframe_number): Remove declaration.
9464 (make_cleanup_restore_traceframe_number): Likewise.
9466 2014-03-22 Yao Qi <yao@codesourcery.com>
9468 * remote.c (remote_read_bytes): Move code on reading from the
9470 (remote_read_bytes_1): ... here. New function.
9472 2014-03-22 Yao Qi <yao@codesourcery.com>
9474 * ctf.c (ctf_xfer_partial): Check the return value of
9475 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9476 return TARGET_XFER_UNAVAILABLE.
9477 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9478 * target.c (target_read_live_memory): Move it to remote.c.
9479 (memory_xfer_live_readonly_partial): Likewise.
9480 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9481 * remote.c (target_read_live_memory): Moved from target.c.
9482 (memory_xfer_live_readonly_partial): Likewise.
9483 (remote_read_bytes): Factored out from
9484 memory_xfer_partial_1.
9486 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9488 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9491 2014-03-21 Pedro Alves <palves@redhat.com>
9493 * infrun.c (normal_stop): Extend comment.
9495 2014-03-21 Hui Zhu <hui@codesourcery.com>
9496 Pedro Alves <palves@redhat.com>
9498 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9500 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9501 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9502 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9504 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9506 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9507 `z' formatted output modifier.
9509 2014-03-20 Tom Tromey <tromey@redhat.com>
9510 Sergio Durigan Junior <sergiodj@redhat.com>
9512 * probe.c (parse_probes): Turn assert into an ordinary error.
9513 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9514 exceptions when parsing probes. Rearrange the code for clarity.
9516 2014-03-20 Tom Tromey <tromey@redhat.com>
9519 * top.c (execute_command): Only dispatch events if the command
9522 2014-03-20 Tom Tromey <tromey@redhat.com>
9525 * infcall.c: Include event-top.h.
9526 (run_inferior_call): Call async_disable_stdin if needed.
9528 2014-03-20 Pedro Alves <palves@redhat.com>
9530 * infrun.c (prepare_to_proceed): Delete.
9531 (thread_still_needs_step_over): New function.
9532 (find_thread_needs_step_over): New function.
9533 (proceed): If the current thread needs a step-over, set its
9534 steping_over_breakpoint flag. Adjust to use
9535 find_thread_needs_step_over instead of prepare_to_proceed.
9536 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9537 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9539 (switch_back_to_stepped_thread): Step over breakpoints of all
9540 threads not the stepping thread, before switching back to the
9543 2014-03-20 Pedro Alves <palves@redhat.com>
9545 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9547 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9548 * infrun.c (saved_singlestep_ptid)
9549 (stepping_past_singlestep_breakpoint): Delete.
9550 (resume): Remove stepping_past_singlestep_breakpoint handling.
9551 (proceed): Store the prev_pc of the stepping thread too.
9552 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9554 (enum infwait_states): Delete infwait_thread_hop_state.
9555 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9557 (handle_inferior_event): Adjust.
9558 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9559 handling and the thread-hop code. Before removing single-step
9560 breakpoints, check whether the thread hit a single-step breakpoint
9561 of another thread. If it did, the trap is not a random signal.
9562 (switch_back_to_stepped_thread): If the event thread hit a
9563 single-step breakpoint, unblock it before switching to the
9564 stepping thread. Handle the case of the stepped thread having
9566 (keep_going): Handle the case of the current thread moving past a
9567 single-step breakpoint.
9569 2014-03-20 Pedro Alves <palves@redhat.com>
9572 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9573 are being stepped over.
9574 (breakpoint_address_match): Make extern.
9575 * breakpoint.h (breakpoint_address_match): New declaration.
9576 * inferior.h (stepping_past_instruction_at): New declaration.
9577 * infrun.c (struct step_over_info): New type.
9578 (step_over_info): New global.
9579 (set_step_over_info, clear_step_over_info)
9580 (stepping_past_instruction_at): New functions.
9581 (handle_inferior_event): Clear the step-over info when
9582 trap_expected is cleared.
9583 (resume): Remove now stale comment.
9584 (clear_proceed_status): Clear step-over info.
9585 (proceed): Adjust step-over handling to set or clear the step-over
9586 info instead of removing all breakpoints.
9587 (handle_signal_stop): When setting up a thread-hop, don't remove
9589 (stop_stepping): Clear step-over info.
9590 (keep_going): Adjust step-over handling to set or clear step-over
9591 info and then always inserting breakpoints, instead of removing
9592 all breakpoints when stepping over one.
9594 2014-03-20 Pedro Alves <palves@redhat.com>
9596 * infrun.c (previous_inferior_ptid): Adjust comment.
9597 (deferred_step_ptid): Delete.
9598 (infrun_thread_ptid_changed, prepare_to_proceed)
9599 (init_wait_for_inferior): Adjust.
9600 (handle_signal_stop): Delete deferred_step_ptid handling.
9602 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9605 * defs.h (sync_quit_force_run): New declaration.
9606 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9607 * event-top.c (async_sigterm_handler): New declaration.
9608 (async_sigterm_token): New variable.
9609 (async_init_signals): Create also async_sigterm_token.
9610 (async_sigterm_handler): New function.
9611 (sync_quit_force_run): New variable.
9612 (handle_sigterm): Replace quit_force call by other calls.
9613 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9615 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9617 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9618 offset into SPE pseudo registers.
9620 2014-03-18 Pedro Alves <palves@redhat.com>
9623 * inferior.h (print_stop_event): Declare.
9624 * infrun.c (print_stop_event): New, factored out from ...
9625 (normal_stop): ... this.
9626 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9627 of bpstat_print/print_stack_frame.
9629 2014-03-17 Tom Tromey <tromey@redhat.com>
9631 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9633 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9635 * ada-lang.c (decode_constrained_packed_array): Perform a
9636 minimal coercion for reference with coerce_ref instead of
9639 2014-03-17 Tristan Gingold <gingold@adacore.com>
9641 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9642 (darwin_solib_create_inferior_hook): Emit a warning if version
9645 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9647 * python/py-value.c (get_field_flag): Cast flag_name argument to
9648 PyObject_GetAttrString to support Python 2.4.
9650 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9652 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9653 (Global Maintainers): Remove Jan Kratochvil.
9655 2014-03-14 Pedro Alves <palves@redhat.com>
9657 * inferior.h (terminal_ours_for_output): Rename to ...
9658 (child_terminal_ours_for_output): ... this.
9659 (terminal_save_ours): Rename to ...
9660 (child_terminal_save_ours): ... this.
9661 (terminal_ours): Rename to ...
9662 (child_terminal_ours): ... this.
9663 (terminal_inferior): Rename to ...
9664 (child_terminal_inferior): ... this.
9665 (terminal_init_inferior): Rename to ...
9666 (child_terminal_init_inferior): ... this.
9667 (terminal_init_inferior_with_pgrp): Rename to ...
9668 (child_terminal_init_inferior_with_pgrp): ... this.
9669 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9670 (child_terminal_init_with_pgrp): ... this.
9671 (terminal_save_ours): Rename to ...
9672 (child_terminal_save_ours): ... this.
9673 (terminal_init_inferior): Rename to ...
9674 (child_terminal_init): ... this. Adjust.
9675 (terminal_inferior): Rename to ...
9676 (child_terminal_inferior): ... this.
9677 (terminal_ours_for_output): Rename to ...
9678 (child_terminal_ours_for_output): ... this. Adjust.
9679 (terminal_ours): Rename to ...
9680 (child_terminal_ours): ... this.
9681 (terminal_ours_1): Rename to ...
9682 (child_terminal_ours_1): ... this. Adjust.
9683 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9684 * windows-nat.c (do_initial_windows_stuff): Adjust.
9685 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9686 (gnu_terminal_init): ... this. Adjust.
9687 (gnu_target): Adjust.
9688 * inf-child.c (inf_child_target): Adjust.
9690 2014-03-13 Doug Evans <xdje42@gmail.com>
9693 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9696 2014-03-13 Doug Evans <xdje42@gmail.com>
9698 * value.c (record_latest_value): Call release_value_or_incref
9699 instead of release_value.
9701 2014-03-13 Pedro Alves <palves@redhat.com>
9703 * procfs.c (procfs_target): Don't override to_shortname,
9704 to_longname or to_doc.
9706 2014-03-13 Pedro Alves <palves@redhat.com>
9708 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9709 Unix in user visible strings.
9711 2014-03-12 Stan Shebs <stan@codesourcery.com>
9713 * gdbtypes.h: Annotate comments for Doxygen, add a page
9714 block comment with some general info.
9716 2014-03-12 Pedro Alves <palves@redhat.com>
9718 * infcmd.c (prepare_execution_command): New function, factored out
9719 from several execution commands.
9720 (run_command_1, continue_command, step_1, jump_command)
9721 (signal_command, until_command, advance_command, finish_command)
9722 (attach_command): Use prepare_execution_command.
9724 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9726 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9729 (struct arm_linux_thread_points): Removed.
9730 (struct arm_linux_process_info): New.
9731 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9732 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9733 (arm_linux_find_breakpoints_by_tid): Removed.
9734 (struct arch_lwp_info): New.
9735 (arm_linux_find_process_pid): New functions.
9736 (arm_linux_add_process): New functions.
9737 (arm_linux_process_info_get): New functions.
9738 (arm_linux_forget_process): New function.
9739 (arm_linux_get_debug_reg_state): New function.
9740 (struct update_registers_data): New.
9741 (update_registers_callback): New function.
9742 (arm_linux_insert_hw_breakpoint1): Updated.
9743 (arm_linux_remove_hw_breakpoint1): Updated.
9744 (arm_linux_insert_hw_breakpoint): Updated.
9745 (arm_linux_remove_hw_breakpoint): Updated.
9746 (arm_linux_insert_watchpoint): Updated.
9747 (arm_linux_remove_watchpoint): Updated.
9748 (arm_linux_new_thread): Updated.
9749 (arm_linux_prepare_to_resume): New function.
9750 (arm_linux_new_fork): New function.
9751 (_initialize_arm_linux_nat): Updated.
9753 2014-03-12 Pedro Alves <palves@redhat.com>
9755 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9757 2014-03-12 Tom Tromey <tromey@redhat.com>
9759 * inf-child.c (return_zero): New function.
9760 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9761 * aix-thread.c (aix_thread_inferior_created): New function.
9762 (aix_thread_attach): Remove.
9763 (init_aix_thread_ops): Don't set to_attach.
9764 (_initialize_aix_thread): Register inferior_created observer.
9765 * corelow.c (init_core_ops): Don't set to_attach or
9767 * exec.c (init_exec_ops): Don't set to_attach or
9769 * infcmd.c (run_command_1): Use find_run_target. Make direct
9771 (attach_command): Use find_attach_target. Make direct target
9773 * record-btrace.c (init_record_btrace_ops): Don't set
9775 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9777 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9778 set to_create_inferior.
9779 * target.c (complete_target_initialization): Add assertion.
9780 (target_create_inferior): Remove.
9781 (find_default_attach, find_default_create_inferior): Remove.
9782 (find_attach_target, find_run_target): New functions.
9783 (find_default_is_async_p, find_default_can_async_p)
9784 (target_supports_non_stop, target_attach): Remove.
9785 (init_dummy_target): Don't set to_create_inferior or
9786 to_supports_non_stop.
9787 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9788 TARGET_DEFAULT_FUNC.
9789 <to_create_inferior>: Add comment.
9790 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9791 TARGET_DEFAULT_RETURN.
9792 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9793 (find_attach_target, find_run_target): Declare.
9794 (target_create_inferior): Remove.
9795 (target_has_execution_1): Update comment.
9796 (target_supports_non_stop): Remove.
9797 * target-delegates.c: Rebuild.
9799 2014-03-12 Pedro Alves <palves@redhat.com>
9801 * inf-child.h: Update comment to not mention Unix.
9803 2014-03-12 Pedro Alves <palves@redhat.com>
9805 * inf-child.c: Update top comment to not mention Unix. Add
9806 generic comment describing how this target is meant to be used.
9807 (inf_child_post_attach, inf_child_post_startup_inferior)
9808 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9811 2014-03-12 Pedro Alves <palves@redhat.com>
9813 * nto-procfs.c: Include inf-child.h.
9814 (procfs_ops): Delete global.
9815 (procfs_can_run): Delete method.
9816 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9817 target pointer instead of referencing procfs_ops.
9818 (procfs_prepare_to_store): Delete.
9819 (init_procfs_ops): Delete function.
9820 (procfs_target): New function, based on init_procfs_ops, but
9821 inherit inf_child_target.
9822 (_initialize_procfs): Use procfs_target.
9824 2014-03-12 Pedro Alves <palves@redhat.com>
9826 * windows-nat.c: Include inf-child.h.
9827 (windows_ops): Delete global.
9828 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9830 (init_windows_ops): Delete function.
9831 (windows_target): New function, based on init_windows_ops, but
9832 inherit inf_child_target.
9833 (_initialize_windows_nat): Use windows_target. Install x86
9834 specific target methods here.
9836 2014-03-10 Doug Evans <xdje42@gmail.com>
9838 * guile/guile.c (call_initialize_gdb_module): New function.
9839 (initialize_guile): Replace call to scm_init_guile with call to
9842 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9844 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9845 in call to TYPE_CODE macro.
9847 2014-03-10 Jerome Guitton <guitton@adacore.com>
9849 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9850 Resolve tagged types to full view.
9852 2014-03-10 Hui Zhu <hui@codesourcery.com>
9854 * target.h (target_insert_breakpoint): Remove "hardware" from its
9857 2014-03-07 Doug Evans <dje@google.com>
9859 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9861 2014-03-07 Doug Evans <dje@google.com>
9863 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9864 Remove unused local comp_dir_attr. Assert exactly one of
9865 stub_comp_unit_die, stub_comp_dir is non-NULL.
9867 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9869 * target.h (complete_target_initialization, add_target):
9872 2014-03-07 Pedro Alves <palves@redhat.com>
9874 * go32-nat.c: Include inf-child.h.
9875 (go32_ops): Delete global.
9876 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9878 (go32_create_inferior): Push the passed in target pointer instead
9879 of referencing go32_ops.
9880 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9881 (go32_target): New function, based on init_go32_ops, but inherit
9883 (_initialize_go32_nat): Use go32_target. Move parts of
9886 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9888 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9889 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9890 SYMBOL_VALUE_ADDRESS.
9891 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9893 2014-03-06 Yao Qi <yao@codesourcery.com>
9895 * breakpoint.c (get_tracepoint_by_number): Remove argument
9896 optional_p. All callers updated. Adjust comments. Update
9898 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9900 2014-03-06 Yao Qi <yao@codesourcery.com>
9902 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9903 early if get_number returns zero. Use 'p' instead of 'args'.
9905 2014-03-06 Yao Qi <yao@codesourcery.com>
9907 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9910 2014-03-06 Yao Qi <yao@codesourcery.com>
9912 PR breakpoints/16508
9913 * tracepoint.c (check_trace_running): New function.
9914 (trace_find_command): Move code to check_trace_running and
9915 call check_trace_running.
9916 (trace_find_pc_command): Likewise.
9917 (trace_find_tracepoint_command): Likewise.
9918 (trace_find_line_command): Likewise.
9919 (trace_find_range_command): Likewise.
9920 * tracepoint.h (check_trace_running): Likewise.
9921 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9923 2014-03-06 Yao Qi <yao@codesourcery.com>
9925 * target.h (struct target_ops) <to_traceframe_info>: Use
9926 TARGET_DEFAULT_NORETURN (tcomplain ()).
9927 * target-delegates.c: Regenerated.
9929 2014-03-05 Pedro Alves <palves@redhat.com>
9932 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9933 void. Update comment.
9934 (dcache_xfer_memory): Delete.
9935 (dcache_read_memory_partial): New, based on the read bits of
9937 (dcache_update): Add status parameter. Use ULONGEST for len, and
9938 adjust. Discard cache lines if the reason for the update was
9940 * dcache.h (dcache_xfer_memory): Delete declaration.
9941 (dcache_read_memory_partial): New declaration.
9942 (dcache_update): Update prototype.
9943 * target.c (raw_memory_xfer_partial): Update the dcache here.
9944 (memory_xfer_partial_1): Don't handle dcache writes here.
9946 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9948 * remote-sim.c (gdbsim_load): Add const to prog.
9950 2014-03-03 Tom Tromey <tromey@redhat.com>
9952 * elfread.c (probe_key): Change to bfd_data.
9953 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9954 now per-BFD, not per-objfile.
9955 * stap-probe.c (stap_probe_destroy): Update comment.
9956 (handle_stap_probe): Allocate on the per-BFD obstack.
9958 2014-03-03 Tom Tromey <tromey@redhat.com>
9960 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9961 * breakpoint.c (create_longjmp_master_breakpoint): Use
9963 (add_location_to_breakpoint, bkpt_probe_insert_location)
9964 (bkpt_probe_remove_location): Update.
9965 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9966 * elfread.c (elf_symfile_relocate_probe): Remove.
9967 (elf_probe_fns): Update.
9968 (insert_exception_resume_breakpoint): Change type of "probe"
9969 parameter to bound_probe.
9970 (check_exception_resume): Update.
9971 * objfiles.c (objfile_relocate1): Don't relocate probes.
9972 * probe.c (bound_probe_s): New typedef.
9973 (parse_probes): Use get_probe_address. Set sal's objfile.
9974 (find_probe_by_pc): Return a bound_probe.
9975 (collect_probes): Return a VEC(bound_probe_s).
9976 (compare_probes): Update.
9977 (gen_ui_out_table_header_info): Change type of "probes"
9979 (info_probes_for_ops): Update.
9980 (get_probe_address): New function.
9981 (probe_safe_evaluate_at_pc): Update.
9982 * probe.h (struct probe_ops) <get_probe_address>: New field.
9983 <set_semaphore, clear_semaphore>: Add objfile parameter.
9984 (struct probe) <objfile>: Remove field.
9986 <address>: Update comment.
9987 (struct bound_probe): New.
9988 (find_probe_by_pc): Return a bound_probe.
9989 (get_probe_address): Declare.
9990 * solib-svr4.c (struct probe_and_action) <address>: New field.
9991 (hash_probe_and_action, equal_probe_and_action): Update.
9992 (register_solib_event_probe): Add address parameter.
9993 (solib_event_probe_at): Update.
9994 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9996 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9997 (stap_get_probe_address): New function.
9998 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9999 (compile_probe_arg): Update.
10000 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10002 (handle_stap_probe): Don't relocate the probe.
10003 (stap_relocate): Remove.
10004 (stap_gen_info_probes_table_values): Update.
10005 (stap_probe_ops): Remove stap_relocate.
10006 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10007 (debug_sym_probe_fns): Update.
10008 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10009 * symtab.c (init_sal): Use memset.
10010 * symtab.h (struct symtab_and_line) <objfile>: New field.
10011 * tracepoint.c (start_tracing, stop_tracing): Update.
10013 2014-03-03 Tom Tromey <tromey@redhat.com>
10015 * probe.h (parse_probes, find_probe_by_pc)
10016 (find_probes_in_objfile): Fix comments.
10018 2014-03-02 Doug Evans <xdje42@gmail.com>
10020 * infrun.c (handle_signal_stop): Replace test for
10021 TARGET_WAITKIND_STOPPED with an assert.
10023 2014-03-02 Doug Evans <xdje42@gmail.com>
10025 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10027 2014-03-02 Doug Evans <xdje42@gmail.com>
10029 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10031 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10033 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10035 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10037 * i386obsd-nat.c: Include "obsd-nat.h".
10038 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10040 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10042 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10044 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10046 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10048 * mips64obsd-nat.c: Include "obsd-nath".
10049 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10051 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10053 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10055 * amd64obsd-nat.c: Include "obsd-nat,h.
10056 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10058 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10060 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10062 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10063 (find_overload_match): Update call to find_oload_champ.
10064 (find_oload_champ_namespace_loop): Likewise
10066 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10068 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10070 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10071 * config/sparc/obsd64.mh: New file.
10072 * sparc64obsd-nat.c: New file.
10074 * obsd-nat.h: New file.
10075 * obsd-nat.c: New file.
10076 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10077 (ALLDEPFILES): Add obsd-nat.c.
10079 2014-02-28 Tom Tromey <tromey@redhat.com>
10081 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10082 * cli-out.h (cli_ui_out_impl): Now const.
10083 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10084 * ui-out.c (struct ui_out) <impl>: Now const.
10085 (default_ui_out_impl): Now const.
10086 (ui_out_new): Make 'impl' parameter const.
10087 * ui-out.h (ui_out_new): Update.
10089 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10091 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10093 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10095 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10097 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10099 Additional PR 8882 fix.
10100 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10102 2014-02-27 Pedro Alves <palves@redhat.com>
10104 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10107 2014-02-27 Pedro Alves <palves@redhat.com>
10110 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10111 * nat/linux-waitpid.c: Include string.h.
10112 (status_to_str): Moved here and made extern.
10113 * nat/linux-waitpid.h (status_to_str): New declaration.
10115 2014-02-27 Hui Zhu <hui@codesourcery.com>
10118 * infrun.c (ptid_match): Move ...
10119 * common/ptid.c (ptid_match): ... here.
10120 * inferior.h (ptid_match): Move ...
10121 * common/ptid.h (ptid_match): ... here.
10123 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10125 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10126 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10129 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10131 * obsd-tdep.c (obsd_auxv_parse): New function.
10132 (obsd_init_abi): Set auxv_parse.
10134 * gdbarch.sh (auxv_parse): New.
10135 * gdbarch.h: Regenerated.
10136 * gdbarch.c: Regenerated.
10137 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10139 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10141 * guile/scm-value.c (gdbscm_history_append_x): New function.
10142 (value_functions): Add it.
10144 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10146 * dwarf2read.c (attr_value_as_address): New function.
10147 (dwarf2_find_base_address, read_call_site_scope): Use
10148 attr_value_as_address in place of DW_ADDR.
10149 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10150 the low and high addresses. Slight rework of the handling
10151 of the high pc being a constant form, and limit it to
10152 DWARF verson 4 or higher.
10153 (dwarf2_record_block_ranges): Likewise.
10154 (read_partial_die): Likewise.
10155 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10157 2014-02-26 Tom Tromey <tromey@redhat.com>
10159 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10161 2014-02-26 Tom Tromey <tromey@redhat.com>
10163 * elfread.c (elf_read_minimal_symbols): Return early if
10164 minimal symbols have already been read. Add "ei" parameter.
10165 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10166 * minsyms.c (prim_record_minimal_symbol_full): Update.
10167 * objfiles.h (struct objstats) <n_minsyms>: Move...
10168 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10169 * symmisc.c (print_objfile_statistics): Update.
10171 2014-02-26 Tom Tromey <tromey@redhat.com>
10173 * elfread.c (elf_read_minimal_symbols): New function, from
10175 (elf_symfile_read): Call it.
10177 2014-02-26 Tom Tromey <tromey@redhat.com>
10179 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10180 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10181 (lookup_minimal_symbol_solib_trampoline)
10182 (lookup_minimal_symbol_by_pc_section_1)
10183 (lookup_minimal_symbol_and_objfile): Update.
10184 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10185 Don't allocate a minimal symbol if minsyms have already been read.
10186 (build_minimal_symbol_hash_tables): Update.
10187 (install_minimal_symbols): Do nothing if minsyms already read.
10188 Use the per-BFD obstack.
10189 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10190 * objfiles.c (allocate_objfile): Call
10191 terminate_minimal_symbol_table later.
10192 (have_minimal_symbols): Update.
10193 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10194 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10195 Move from struct objfile.
10196 <minsyms_read>: New field.
10197 (struct objfile) <msymbols, minimal_symbol_count,
10198 msymbol_hash, msymbol_demangled_hash>: Move.
10199 (ALL_OBJFILE_MSYMBOLS): Update.
10200 * symfile.c (read_symbols): Set minsyms_read.
10201 (reread_symbols): Update.
10202 * symmisc.c (dump_objfile, dump_msymbols): Update.
10204 2014-02-26 Tom Tromey <tromey@redhat.com>
10206 * minsyms.c (msymbols_sort): Remove.
10207 * minsyms.h (msymbols_sort): Remove.
10208 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10209 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10210 * elfread.c (elf_symtab_read): Don't add section offsets.
10211 * xcoffread.c (record_minimal_symbol): Don't add section offset
10212 to minimal symbol address.
10213 * somread.c (text_offset, data_offset): Remove.
10214 (som_symtab_read): Don't add section offsets to minimal symbol
10216 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10217 Don't add section offsets to minimal symbols.
10218 * coffread.c (coff_symtab_read): Don't add section offsets
10219 to minimal symbol addresses.
10220 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10221 to minimal symbol addresses.
10222 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10223 section offset to minimal symbol addresses.
10224 * mdebugread.c (parse_partial_symbols): Don't add section
10225 offset to minimal symbol addresses.
10226 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10227 offset to minimal symbol addresses.
10229 2014-02-26 Tom Tromey <tromey@redhat.com>
10231 * ada-lang.c (ada_main_name): Update.
10232 (ada_add_standard_exceptions): Update.
10233 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10234 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10235 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10236 * auxv.c (ld_so_xfer_auxv): Update.
10237 * avr-tdep.c (avr_scan_prologue): Update.
10238 * ax-gdb.c (gen_var_ref): Update.
10239 * blockframe.c (get_pc_function_start)
10240 (find_pc_partial_function_gnu_ifunc): Update.
10241 * breakpoint.c (create_overlay_event_breakpoint)
10242 (create_longjmp_master_breakpoint)
10243 (create_std_terminate_master_breakpoint)
10244 (create_exception_master_breakpoint): Update.
10245 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10246 * c-valprint.c (c_val_print): Update.
10247 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10248 * common/agent.c (agent_look_up_symbols): Update.
10249 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10250 * dwarf2loc.c (call_site_to_target_addr): Update.
10251 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10252 * elfread.c (elf_gnu_ifunc_record_cache)
10253 (elf_gnu_ifunc_resolve_by_got): Update.
10254 * findvar.c (default_read_var_value): Update.
10255 * frame.c (inside_main_func): Update.
10256 * frv-tdep.c (frv_frame_this_id): Update.
10257 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10258 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10260 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10261 (hppa_hpux_find_dummy_bpaddr): Update.
10262 * hppa-tdep.c (hppa_symbol_address): Update.
10263 * infcmd.c (until_next_command): Update.
10264 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10266 * linespec.c (minsym_found, add_minsym): Update.
10267 * linux-nat.c (get_signo): Update.
10268 * linux-thread-db.c (inferior_has_bug): Update.
10269 * m32c-tdep.c (m32c_return_value)
10270 (m32c_m16c_address_to_pointer): Update.
10271 * m32r-tdep.c (m32r_frame_this_id): Update.
10272 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10273 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10274 * maint.c (maintenance_translate_address): Update.
10275 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10276 (frob_address): New function.
10277 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10278 frob_address. Rename parameter to "pc_in".
10279 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10281 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10283 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10284 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10285 * objc-lang.c (find_objc_msgsend): Update.
10286 * objfiles.c (objfile_relocate1): Update.
10287 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10288 * p-valprint.c (pascal_val_print): Update.
10289 * parse.c (write_exp_msymbol): Update.
10290 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10291 (ppc_elfv2_skip_entrypoint): Update.
10292 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10293 * printcmd.c (build_address_symbolic, msym_info)
10294 (address_info): Update.
10295 * proc-service.c (ps_pglobal_lookup): Update.
10296 * psymtab.c (find_pc_sect_psymtab_closer)
10297 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10298 Change msymbol parameter to bound_minimal_symbol.
10299 * ravenscar-thread.c (get_running_thread_id): Update.
10300 * remote.c (remote_check_symbols): Update.
10301 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10303 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10304 * solib-dsbt.c (lm_base): Update.
10305 * solib-frv.c (lm_base, main_got): Update.
10306 * solib-irix.c (locate_base): Update.
10307 * solib-som.c (som_solib_create_inferior_hook)
10308 (link_map_start): Update.
10309 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10310 * solib-svr4.c (elf_locate_base, enable_break): Update.
10311 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10312 (flush_ea_cache): Update.
10313 * stabsread.c (define_symbol, scan_file_globals): Update.
10314 * stack.c (find_frame_funname): Update.
10315 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10316 (debug_qf_find_pc_sect_symtab): Update.
10317 * symfile.c (simple_read_overlay_table)
10318 (simple_overlay_update): Update.
10319 * symfile.h (struct quick_symbol_functions)
10320 <find_pc_sect_symtab>: Change type of msymbol to
10321 bound_minimal_symbol.
10322 * symmisc.c (dump_msymbols): Update.
10323 * symtab.c (find_pc_sect_symtab_via_partial)
10324 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10325 (search_symbols, print_msymbol_info): Update.
10326 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10327 (MSYMBOL_VALUE_ADDRESS): Redefine.
10328 (BMSYMBOL_VALUE_ADDRESS): New macro.
10329 * tracepoint.c (scope_info): Update.
10330 * tui/tui-disasm.c (tui_find_disassembly_address)
10331 (tui_get_begin_asm_address): Update.
10332 * valops.c (find_function_in_inferior): Update.
10333 * value.c (value_static_field, value_fn_field): Update.
10335 2014-02-26 Tom Tromey <tromey@redhat.com>
10337 * ada-lang.c (ada_update_initial_language): Update.
10338 (ada_main_name, ada_has_this_exception_support): Update.
10339 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10340 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10341 * arm-tdep.c (arm_skip_stub): Update.
10342 * auxv.c (ld_so_xfer_auxv): Update.
10343 * avr-tdep.c (avr_scan_prologue): Update.
10344 * ax-gdb.c (gen_var_ref): Update.
10345 * breakpoint.c (struct breakpoint_objfile_data)
10346 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10347 type to bound_minimal_symbol.
10348 (create_overlay_event_breakpoint)
10349 (create_longjmp_master_breakpoint)
10350 (create_std_terminate_master_breakpoint)
10351 (create_exception_master_breakpoint): Update.
10352 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10353 * c-exp.y (classify_name): Update.
10354 * coffread.c (coff_symfile_read): Update.
10355 * common/agent.c (agent_look_up_symbols): Update.
10356 * d-lang.c (d_main_name): Update.
10357 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10358 * dec-thread.c (enable_dec_thread): Update.
10359 * dwarf2loc.c (call_site_to_target_addr): Update.
10360 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10361 * eval.c (evaluate_subexp_standard): Update.
10362 * findvar.c (struct minsym_lookup_data) <result>: Change type
10363 to bound_minimal_symbol.
10365 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10366 * frame.c (inside_main_func): Update.
10367 * frv-tdep.c (frv_frame_this_id): Update.
10368 * gcore.c (call_target_sbrk): Update.
10369 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10370 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10372 * go-lang.c (go_main_name): Update.
10373 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10374 (hppa_hpux_find_import_stub_for_addr): Update.
10375 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10376 Update. Change return type.
10377 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10379 * jit.c (jit_breakpoint_re_set_internal): Update.
10380 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10382 * linux-nat.c (get_signo): Update.
10383 * linux-thread-db.c (inferior_has_bug): Update
10384 * m32c-tdep.c (m32c_return_value)
10385 (m32c_m16c_address_to_pointer): Update.
10386 * m32r-tdep.c (m32r_frame_this_id): Update.
10387 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10388 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10389 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10390 lookup_minimal_symbol. Change return type.
10391 (lookup_minimal_symbol): Remove.
10392 (lookup_bound_minimal_symbol): Update.
10393 (lookup_minimal_symbol_text): Change return type.
10394 (lookup_minimal_symbol_solib_trampoline): Change return type.
10395 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10396 (lookup_minimal_symbol_solib_trampoline): Change return type.
10397 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10398 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10399 (value_nsstring, find_imps): Update.
10400 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10401 * p-lang.c (pascal_main_name): Update.
10402 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10403 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10404 * proc-service.c (ps_pglobal_lookup): Update.
10405 * ravenscar-thread.c (get_running_thread_msymbol): Change
10407 (has_ravenscar_runtime, get_running_thread_id): Update.
10408 * remote.c (remote_check_symbols): Update.
10409 * sol-thread.c (ps_pglobal_lookup): Update.
10410 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10411 * solib-dsbt.c (lm_base): Update.
10412 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10414 * solib-irix.c (locate_base): Update.
10415 * solib-som.c (som_solib_create_inferior_hook)
10416 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10418 * solib-spu.c (spu_enable_break): Update.
10419 * solib-svr4.c (elf_locate_base, enable_break): Update.
10420 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10421 (flush_ea_cache): Update.
10422 * stabsread.c (define_symbol): Update.
10423 * symfile.c (simple_read_overlay_table): Update.
10424 * symtab.c (find_pc_sect_line): Update.
10425 * tracepoint.c (scope_info): Update.
10426 * tui-disasm.c (tui_get_begin_asm_address): Update.
10427 * value.c (value_static_field): Update.
10429 2014-02-26 Tom Tromey <tromey@redhat.com>
10431 * minsyms.c (prim_record_minimal_symbol_full): Use
10432 SET_MSYMBOL_VALUE_ADDRESS.
10433 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10434 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10435 SET_MSYMBOL_VALUE_ADDRESS.
10436 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10437 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10439 2014-02-26 Tom Tromey <tromey@redhat.com>
10441 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10442 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10443 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10444 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10445 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10446 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10447 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10448 * ada-lang.c (ada_main_name): Update.
10449 (ada_lookup_simple_minsym): Update.
10450 (ada_make_symbol_completion_list): Update.
10451 (ada_add_standard_exceptions): Update.
10452 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10453 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10454 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10455 * arm-tdep.c (skip_prologue_function): Update.
10456 (arm_skip_stack_protector, arm_skip_stub): Update.
10457 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10458 (arm_wince_skip_main_prologue): Update.
10459 * auxv.c (ld_so_xfer_auxv): Update.
10460 * avr-tdep.c (avr_scan_prologue): Update.
10461 * ax-gdb.c (gen_var_ref): Update.
10462 * block.c (call_site_for_pc): Update.
10463 * blockframe.c (get_pc_function_start): Update.
10464 (find_pc_partial_function_gnu_ifunc): Update.
10465 * breakpoint.c (create_overlay_event_breakpoint): Update.
10466 (create_longjmp_master_breakpoint): Update.
10467 (create_std_terminate_master_breakpoint): Update.
10468 (create_exception_master_breakpoint): Update.
10469 (resolve_sal_pc): Update.
10470 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10471 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10473 * c-valprint.c (c_val_print): Update.
10474 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10475 * coffread.c (coff_symfile_read): Update.
10476 * common/agent.c (agent_look_up_symbols): Update.
10477 * dbxread.c (find_stab_function_addr): Update.
10478 (end_psymtab): Update.
10479 * dwarf2loc.c (call_site_to_target_addr): Update.
10480 (func_verify_no_selftailcall): Update.
10481 (tailcall_dump): Update.
10482 (call_site_find_chain_1): Update.
10483 (dwarf_expr_reg_to_entry_parameter): Update.
10484 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10485 (elf_gnu_ifunc_resolve_by_got): Update.
10486 * f-valprint.c (info_common_command): Update.
10487 * findvar.c (read_var_value): Update.
10488 * frame.c (get_prev_frame_1): Update.
10489 (inside_main_func): Update.
10490 * frv-tdep.c (frv_skip_main_prologue): Update.
10491 (frv_frame_this_id): Update.
10492 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10493 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10494 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10495 (gnuv3_skip_trampoline): Update.
10496 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10497 (hppa64_hpux_in_solib_call_trampoline): Update.
10498 (hppa_hpux_skip_trampoline_code): Update.
10499 (hppa64_hpux_search_dummy_call_sequence): Update.
10500 (hppa_hpux_find_import_stub_for_addr): Update.
10501 (hppa_hpux_find_dummy_bpaddr): Update.
10502 * hppa-tdep.c (hppa_symbol_address)
10503 (hppa_lookup_stub_minimal_symbol): Update.
10504 * i386-tdep.c (i386_skip_main_prologue): Update.
10505 (i386_pe_skip_trampoline_code): Update.
10506 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10507 * infcall.c (get_function_name): Update.
10508 * infcmd.c (until_next_command): Update.
10509 * jit.c (jit_breakpoint_re_set_internal): Update.
10510 (jit_inferior_init): Update.
10511 * linespec.c (minsym_found): Update.
10512 (add_minsym): Update.
10513 * linux-fork.c (info_checkpoints_command): Update.
10514 * linux-nat.c (get_signo): Update.
10515 * linux-thread-db.c (inferior_has_bug): Update.
10516 * m32c-tdep.c (m32c_return_value): Update.
10517 (m32c_m16c_address_to_pointer): Update.
10518 (m32c_m16c_pointer_to_address): Update.
10519 * m32r-tdep.c (m32r_frame_this_id): Update.
10520 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10521 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10522 * maint.c (maintenance_translate_address): Update.
10523 * minsyms.c (add_minsym_to_hash_table): Update.
10524 (add_minsym_to_demangled_hash_table): Update.
10525 (msymbol_objfile): Update.
10526 (lookup_minimal_symbol): Update.
10527 (iterate_over_minimal_symbols): Update.
10528 (lookup_minimal_symbol_text): Update.
10529 (lookup_minimal_symbol_by_pc_name): Update.
10530 (lookup_minimal_symbol_solib_trampoline): Update.
10531 (lookup_minimal_symbol_by_pc_section_1): Update.
10532 (lookup_minimal_symbol_and_objfile): Update.
10533 (prim_record_minimal_symbol_full): Update.
10534 (compare_minimal_symbols): Update.
10535 (compact_minimal_symbols): Update.
10536 (build_minimal_symbol_hash_tables): Update.
10537 (install_minimal_symbols): Update.
10538 (terminate_minimal_symbol_table): Update.
10539 (find_solib_trampoline_target): Update.
10540 (minimal_symbol_upper_bound): Update.
10541 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10542 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10543 (mips_skip_pic_trampoline_code): Update.
10544 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10545 * objc-lang.c (selectors_info): Update.
10546 (classes_info): Update.
10547 (find_methods): Update.
10548 (find_imps): Update.
10549 (find_objc_msgsend): Update.
10550 * objfiles.c (objfile_relocate1): Update.
10551 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10552 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10553 * p-valprint.c (pascal_val_print): Update.
10554 * parse.c (write_exp_msymbol): Update.
10555 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10556 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10557 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10558 * printcmd.c (build_address_symbolic): Update.
10559 (sym_info): Update.
10560 (address_info): Update.
10561 * proc-service.c (ps_pglobal_lookup): Update.
10562 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10563 (find_pc_sect_psymtab): Update.
10564 * python/py-framefilter.c (py_print_frame): Update.
10565 * ravenscar-thread.c (get_running_thread_id): Update.
10566 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10568 * remote.c (remote_check_symbols): Update.
10569 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10570 (rs6000_skip_trampoline_code): Update.
10571 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10572 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10573 * solib-dsbt.c (lm_base): Update.
10574 * solib-frv.c (lm_base): Update.
10575 (main_got): Update.
10576 * solib-irix.c (locate_base): Update.
10577 * solib-som.c (som_solib_create_inferior_hook): Update.
10578 (som_solib_desire_dynamic_linker_symbols): Update.
10579 (link_map_start): Update.
10580 * solib-spu.c (spu_enable_break): Update.
10581 (ocl_enable_break): Update.
10582 * solib-svr4.c (elf_locate_base): Update.
10583 (enable_break): Update.
10584 * spu-tdep.c (spu_get_overlay_table): Update.
10585 (spu_catch_start): Update.
10586 (flush_ea_cache): Update.
10587 * stabsread.c (define_symbol): Update.
10588 (scan_file_globals): Update.
10589 * stack.c (find_frame_funname): Update.
10590 (frame_info): Update.
10591 * symfile.c (simple_read_overlay_table): Update.
10592 (simple_overlay_update): Update.
10593 * symmisc.c (dump_msymbols): Update.
10594 * symtab.c (fixup_section): Update.
10595 (find_pc_sect_line): Update.
10596 (skip_prologue_sal): Update.
10597 (search_symbols): Update.
10598 (print_msymbol_info): Update.
10599 (rbreak_command): Update.
10600 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10601 (completion_list_objc_symbol): Update.
10602 (default_make_symbol_completion_list_break_on): Update.
10603 * tracepoint.c (scope_info): Update.
10604 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10605 (tui_get_begin_asm_address): Update.
10606 * valops.c (find_function_in_inferior): Update.
10607 * value.c (value_static_field): Update.
10608 (value_fn_field): Update.
10610 2014-02-26 Tom Tromey <tromey@redhat.com>
10612 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10613 bound minimal symbols. Move code that knows about minsym
10615 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10617 * minsyms.h (minimal_symbol_upper_bound): Declare.
10618 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10619 minimal_symbol_upper_bound.
10621 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10623 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10624 Use the type's name if its basic type does not have a tag.
10626 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10628 * dwarf2read.c (read_subrange_type): Add comment.
10630 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10632 * dwarf2read.c (update_enumeration_type_from_children): New
10633 function, mostly extracted from process_structure_scope.
10634 (read_enumeration_type): Call update_enumeration_type_from_children.
10635 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10636 and flag_flag_enum fields.
10638 2014-02-26 Pedro Alves <palves@redhat.com>
10640 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10641 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10642 to_xfer_partial method.
10644 2014-02-26 Pedro Alves <palves@redhat.com>
10646 * target.c (complete_target_initialization): Don't install
10647 default_xfer_partial as to_xfer_partial hook.
10648 (nomemory): Delete.
10649 (update_current_target): Don't INHERIT nor de_fault
10650 deprecated_xfer_memory. Delete de_fault macro.
10651 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10652 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10653 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10656 2014-02-26 Pedro Alves <palves@redhat.com>
10658 * go32-nat.c (my_write_child): New function.
10659 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10660 (go32_xfer_partial): New function.
10661 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10662 Instead install a to_xfer_partial hook.
10664 2014-02-26 Pedro Alves <palves@redhat.com>
10666 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10667 to_xfer_partial helper. Rewrite.
10668 (procfs_xfer_partial): New function.
10669 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10670 Install a to_xfer_partial hook.
10672 2014-02-26 Pedro Alves <palves@redhat.com>
10674 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10675 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10676 (m32r_xfer_partial): New function.
10677 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10678 Install a to_xfer_partial hook.
10680 2014-02-26 Pedro Alves <palves@redhat.com>
10682 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10684 (mips_xfer_partial): New function.
10685 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10686 hook. Install a to_xfer_partial hook.
10688 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10690 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10691 * gdbtypes.c (create_array_type_with_stride): New function,
10692 renaming create_array_type, but with an added parameter
10693 called "bit_stride".
10694 (create_array_type): Re-implement using
10695 create_array_type_with_stride.
10696 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10697 and DW_AT_bit_stride attributes.
10699 2014-02-26 Pedro Alves <palves@redhat.com>
10701 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10702 task-specific breakpoints.
10704 2014-02-25 Pedro Alves <palves@redhat.com>
10706 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10707 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10709 2014-02-25 Stan Shebs <stan@codesourcery.com>
10711 * defs.h: Annotate comments for Doxygen.
10713 2014-02-25 Tom Tromey <tromey@redhat.com>
10715 * target.h (target_ignore): Don't declare.
10716 * target.c (target_ignore): Remove.
10718 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10721 * auto-load.c (auto_load_objfile_script_1): Change filename to
10724 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10726 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10727 documentation. Adjust prototype to match the target_ops
10728 to_xfer_partial method. Adjust implementation accordingly.
10730 2014-02-25 Hui Zhu <hui@codesourcery.com>
10732 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10733 to_traceframe_info.
10735 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10737 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10738 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10739 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10740 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10741 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10742 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10743 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10744 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10746 (rl78_register_type): Use a data pointer type for SP and
10747 new pseudo registers mentioned above. Use a 16 bit integer
10748 type for all other register pairs.
10749 (rl78_register_name, rl78_g10_register_name): Update for
10750 new pseudo registers.
10751 (rl78_pseudo_register_read): Likewise.
10752 (rl78_pseudo_register_write): Likewise.
10753 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10754 to the newly added pseudo registers.
10756 2014-02-24 Doug Evans <dje@google.com>
10758 * value.c (record_latest_value): Fix comment.
10759 * printcmd.c (print_command_1): Remove code to handle -1 return from
10760 record_latest_value.
10762 2014-02-24 Pedro Alves <palves@redhat.com>
10764 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10765 deprecated_xfer_memory hook.
10766 (procfs_xfer_partial): Call procfs_xfer_memory instead
10767 of the deprecated_xfer_memory target hook.
10768 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10771 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10773 * windows-nat.c (windows_xfer_shared_libraries): Return
10774 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10775 requested object is TARGET_OBJECT_LIBRARIES.
10777 2014-02-24 Yao Qi <yao@codesourcery.com>
10779 * target.h (enum target_xfer_status)
10780 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10781 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10783 * corefile.c (memory_error_message): User updated.
10784 * exec.c (section_table_read_available_memory): Likewise.
10785 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10786 * target.c (target_xfer_status_to_string): Likewise.
10787 (raw_memory_xfer_partial): Likewise.
10788 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10789 * valops.c (read_value_memory): Likewise.
10790 * exec.h: Update comments.
10792 2014-02-24 Yao Qi <yao@codesourcery.com>
10794 * target.c (target_xfer_status_to_string): Rename argument err
10796 * target.h (target_xfer_status_to_string): Update declaration.
10797 Replace target_xfer_error_to_string with
10798 target_xfer_status_to_string in comment.
10800 2014-02-24 Yao Qi <yao@codesourcery.com>
10802 * mips-linux-nat.c (super_close): Update its type.
10803 (mips_linux_close): Pass 'self' to super_close.
10805 2014-02-24 Yao Qi <yao@codesourcery.com>
10807 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10808 * corefile.c (read_memory): Adjusted.
10809 * target.c (target_write_with_progress): Adjusted.
10811 2014-02-23 Yao Qi <yao@codesourcery.com>
10813 Revert two patches:
10815 2013-10-25 Yao Qi <yao@codesourcery.com>
10817 * remote.c (remote_traceframe_info): Return early if
10818 traceframe is not selected.
10820 2013-07-19 Yao Qi <yao@codesourcery.com>
10822 * target.c (update_current_target): Change the default action
10823 of 'to_traceframe_info' from tcomplain to return_zero.
10824 * target.h (struct target_ops) <to_traceframe_info>: Add more
10827 2014-02-23 Yao Qi <yao@codesourcery.com>
10829 * valops.c (read_value_memory): Rewrite it. Call
10830 target_xfer_partial in a loop.
10831 * exec.h (section_table_available_memory): Remove declaration.
10832 Move comments to ...
10833 * exec.c (section_table_available_memory): ... here. Make it
10836 2014-02-23 Yao Qi <yao@codesourcery.com>
10838 * exec.c (section_table_read_available_memory): New function.
10839 * exec.h (section_table_read_available_memory): Declare.
10840 * ctf.c (ctf_xfer_partial): Call
10841 section_table_read_available_memory.
10842 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10844 2014-02-23 Yao Qi <yao@codesourcery.com>
10846 * ctf.c (ctf_xfer_partial): Move code to ...
10847 * exec.c (exec_read_partial_read_only): ... it. New function.
10848 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10849 * tracefile.c: Include "exec.h".
10850 * exec.h (exec_read_partial_read_only): Declare.
10852 2014-02-23 Yao Qi <yao@codesourcery.com>
10854 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10855 (tfile_has_memory): Remove.
10856 (init_tfile_ops): Don't set fields to_has_all_memory and
10857 to_has_memory of tfile_ops.
10858 * tracefile.c (tracefile_has_all_memory): New function.
10859 (tracefile_has_memory): New function.
10860 (init_tracefile_ops): Initialize fields to_has_all_memory and
10861 to_has_memory of 'ops'.
10863 2014-02-23 Yao Qi <yao@codesourcery.com>
10865 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10866 (ctf_thread_alive, ctf_get_trace_status): Remove.
10867 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10868 init_tracefile_ops.
10869 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10870 (tfile_has_stack, tfile_has_registers): Remove.
10871 (tfile_thread_alive): Remove.
10872 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10873 init_tracefile_ops.
10874 * tracefile.c (tracefile_has_stack): New function.
10875 (tracefile_has_registers): New function.
10876 (tracefile_thread_alive): New function.
10877 (tracefile_get_trace_status): New function.
10878 (init_tracefile_ops): New function.
10879 * tracefile.h (init_tracefile_ops): Declare.
10881 2014-02-23 Yao Qi <yao@codesourcery.com>
10883 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10884 (O_LARGEFILE): Likewise.
10885 (tfile_ops): Likewise.
10886 (TRACE_HEADER_SIZE): Likewise.
10887 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10888 (cur_data_size): Likewise.
10889 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10890 (tfile_close, tfile_files_info): Likewise.
10891 (tfile_get_trace_status): Likewise.
10892 (tfile_get_tracepoint_status): Likewise.
10893 (tfile_get_traceframe_address): Likewise.
10894 (tfile_trace_find, match_blocktype): Likewise.
10895 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10896 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10897 (tfile_get_trace_state_variable_value): Likewise.
10898 (tfile_has_all_memory, tfile_has_memory): Likewise.
10899 (tfile_has_stack, tfile_has_registers): Likewise.
10900 (tfile_thread_alive, build_traceframe_info): Likewise.
10901 (tfile_traceframe_info, init_tfile_ops): Likewise.
10902 (_initialize_tracepoint): Don't call init_tfile_ops
10903 and add_target_with_completer.
10904 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10905 exec.h, completer.h and filenames.h.
10906 (_initialize_tracefile_tfile): New function.
10908 2014-02-23 Yao Qi <yao@codesourcery.com>
10910 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10912 (HFILES_NO_SRCDIR): Add tracefile.h.
10913 * ctf.c: Include "tracefile.h".
10914 * tracefile.h: New file.
10915 * tracefile.c: New file
10916 * tracefile-tfile.c: New file.
10917 * tracepoint.c: Include "tracefile.h".
10918 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10919 (stop_reason_names): Add const.
10920 (trace_file_writer_xfree): Move it to tracefile.c.
10921 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10922 (trace_save_ctf): Likewise.
10923 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10924 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10925 (tfile_write_header, tfile_write_regblock_type): Likewise.
10926 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10927 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10928 (tfile_write_raw_data, tfile_end): Likewise.
10929 (tfile_trace_file_writer_new): Likewise.
10930 (free_uploaded_tp): Make it extern.
10931 (free_uploaded_tsv): Make it extern.
10932 (_initialize_tracepoint): Move code to register command 'tsave'
10934 * tracepoint.h (stop_reason_names): Declare.
10935 (struct trace_frame_write_ops): Move it to tracefile.h.
10936 (struct trace_file_write_ops): Likewise.
10937 (struct trace_file_writer): Likewise.
10938 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10940 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10943 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10945 (get_cores_used_by_process): New parameter num_cores, use it.
10946 (linux_xfer_osdata_processes): Pass num_cores to it.
10947 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10950 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10952 * target.c (memory_xfer_partial): Fix length arg in call to
10953 breakpoint_xfer_memory.
10955 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10958 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10959 number comes after the + or - signs. Adjust length of register
10960 name to be extracted.
10962 2014-02-20 Tom Tromey <tromey@redhat.com>
10964 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10965 (ada_varobj_ops): Mark "extern".
10967 2014-02-20 Tom Tromey <tromey@redhat.com>
10969 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10971 2014-02-20 Doug Evans <xdje42@gmail.com>
10973 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10974 All callers updated.
10975 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10976 All callers updated.
10977 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10978 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10980 2014-02-20 lin zuojian <manjian2006@gmail.com>
10981 Joel Brobecker <brobecker@adacore.com>
10982 Doug Evans <xdje42@gmail.com>
10985 * dwarf2read.c (struct die_info): New member in_process.
10986 (reset_die_in_process): New function.
10987 (process_die): Set it at the start, reset when returning.
10988 (inherit_abstract_dies): Only call process_die if origin_child_die
10989 not already being processed.
10991 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10993 * windows-nat.c (handle_unload_dll): Add function documentation.
10994 (do_initial_windows_stuff): Add comment explaining why we wait
10995 until after inferior initialization has finished before
10996 processing all DLLs.
10998 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11000 * windows-nat.c (get_module_name): Delete.
11001 (windows_get_exec_module_filename): New function, mostly
11002 inspired from get_module_name.
11003 (windows_pid_to_exec_file): Replace call to get_module_name
11004 by call to windows_get_exec_module_filename.
11006 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11008 * windows-nat.c (handle_load_dll): Rewrite this function's
11009 introductory comment. Remove code using get_module_name
11010 to get the DLL's name.
11012 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11014 * windows-nat.c (get_windows_debug_event): Ignore
11015 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11016 if windows_initialization_done == 0.
11017 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11018 Adjust implementation to always load all DLLs.
11019 (do_initial_windows_stuff): Replace call to
11020 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11022 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11024 * windows-nat.c (_initialize_windows_nat): Deprecate the
11025 "dll-symbols" command. Turn the "add-shared-symbol-files"
11026 and "assf" aliases into commands, and deprecate them as well.
11027 * NEWS: Add entry explaining that "dll-symbols" and its two
11028 aliases are now deprecated.
11030 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11032 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11033 new-line in debug string. Remove trailing spaces.
11035 2014-02-19 Stan Shebs <stan@codesourcery.com>
11037 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11039 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11041 * NEWS: Add entry for the new feature
11042 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11045 2014-02-19 Stan Shebs <stan@codesourcery.com>
11047 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11049 2014-02-19 Pedro Alves <palves@redhat.com>
11051 * common/ptid.h (struct ptid): Mention that process_stratum
11052 targets should prefer ptid.lwp.
11054 2014-02-19 Pedro Alves <palves@redhat.com>
11056 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11057 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11058 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11059 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11060 store remote thread ids rather than ptid.tid.
11061 (_initialize_remote): Adjust.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.c (target_get_unwinder): Rewrite.
11066 (target_get_tailcall_unwinder): Rewrite.
11067 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11068 (record_btrace_to_get_tailcall_unwinder): New function.
11069 (init_record_btrace_ops): Update.
11070 * target.h (struct target_ops) <to_get_unwinder,
11071 to_get_tailcall_unwinder>: Now function pointers. Use
11072 TARGET_DEFAULT_RETURN.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11078 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11084 * target-delegates.c: Rebuild.
11085 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11086 TARGET_DEFAULT_FUNC.
11087 * target.c (default_target_decr_pc_after_break): Rename from
11088 forward_target_decr_pc_after_break. Simplify.
11089 (target_decr_pc_after_break): Rely on delegation.
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * target.c (update_current_target): Do not INHERIT to_doc or
11094 to_magic. Do not de_fault to_open or to_close.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * gcore.h (objfile_find_memory_regions): Declare.
11099 * gcore.c (objfile_find_memory_regions): No longer static. Add
11101 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11102 * exec.c: Include gcore.h.
11103 (exec_set_find_memory_regions): Remove.
11104 (exec_find_memory_regions): Remove.
11105 (exec_do_find_memory_regions): Remove.
11106 (init_exec_ops): Update.
11107 * defs.h (exec_set_find_memory_regions): Remove.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target-delegates.c: Rebuild.
11112 * target.h (struct target_ops) <to_extra_thread_info,
11113 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11114 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11115 not 0, in TARGET_DEFAULT_RETURN.
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11119 * target.c (complete_target_initialization): Remove casts. Use
11120 return_zero_has_execution.
11121 (return_zero): Add "ignore" argument.
11122 (return_zero_has_execution): New function.
11123 (init_dummy_target): Remove casts. Use
11124 return_zero_has_execution.
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * target.c (update_current_target): Update comments. Do not
11129 INHERIT to_stratum.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11135 * corelow.c (core_read_description): Delegate when needed.
11136 * remote.c (remote_read_description): Delegate when needed.
11137 * target-delegates.c: Rebuild.
11138 * target.c (target_read_description): Rewrite.
11139 * target.h (struct target_ops) <to_read_description>: Update
11140 comment. Use TARGET_DEFAULT_RETURN.
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11144 * target-delegates.c: Rebuild.
11145 * target.c (update_current_target): Don't inherit or default
11147 (find_default_run_target): Check against delegate_can_run.
11148 * target.h (struct target_ops) <to_can_run>: Use
11149 TARGET_DEFAULT_RETURN.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target-delegates.c: Rebuild.
11154 * target.c (target_disconnect): Unconditionally delegate.
11155 * target.h (struct target_ops) <to_disconnect>: Use
11156 TARGET_DEFAULT_NORETURN.
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * record.c (record_stop): Unconditionally delegate.
11161 * target-delegates.c: Rebuild.
11162 * target.c (target_stop_recording): Unconditionally delegate.
11163 * target.h (struct target_ops) <to_stop_recording>: Use
11164 TARGET_DEFAULT_IGNORE.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target-delegates.c: Rebuild.
11169 * target.c (target_enable_btrace): Unconditionally delegate.
11170 * target.h (struct target_ops) <to_enable_btrace>: Use
11171 TARGET_DEFAULT_NORETURN.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target-delegates.c: Rebuild.
11176 * target.c (target_read_btrace): Unconditionally delegate.
11177 * target.h (struct target_ops) <to_read_btrace>: Use
11178 TARGET_DEFAULT_NORETURN.
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11182 * target-delegates.c: Rebuild.
11183 * target.c (target_teardown_btrace): Unconditionally delegate.
11184 * target.h (struct target_ops) <to_teardown_btrace>: Use
11185 TARGET_DEFAULT_NORETURN.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target-delegates.c: Rebuild.
11190 * target.c (target_disable_btrace): Unconditionally delegate.
11191 * target.h (struct target_ops) <to_disable_btrace>: Use
11192 TARGET_DEFAULT_NORETURN.
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target-delegates.c: Rebuild.
11197 * target.c (default_search_memory): New function.
11198 (simple_search_memory): Update comment.
11199 (target_search_memory): Unconditionally delegate.
11200 * target.h (struct target_ops) <to_search_memory>: Use
11201 TARGET_DEFAULT_FUNC.
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * auxv.c (default_auxv_parse): No longer static.
11206 (target_auxv_parse): Unconditionally delegate.
11207 * auxv.h (default_auxv_parse): Declare.
11208 * target-delegates.c: Rebuild.
11209 * target.c: Include auxv.h.
11210 * target.h (struct target_ops) <to_auxv_parse>: Use
11211 TARGET_DEFAULT_FUNC.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (target_memory_map): Unconditionally delegate.
11217 * target.h (struct target_ops) <to_memory_map>: Use
11218 TARGET_DEFAULT_RETURN.
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_thread_alive): Unconditionally delegate.
11224 * target.h (struct target_ops) <to_thread_alive>: Use
11225 TARGET_DEFAULT_RETURN.
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_save_record): Unconditionally delegate.
11231 * target.h (struct target_ops) <to_save_record>: Use
11232 TARGET_DEFAULT_NORETURN.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target-delegates.c: Rebuild.
11237 * target.c (target_delete_record): Unconditionally delegate.
11238 * target.h (struct target_ops) <to_delete_record>: Use
11239 TARGET_DEFAULT_NORETURN.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target-delegates.c: Rebuild.
11244 * target.c (target_record_is_replaying): Unconditionally
11246 * target.h (struct target_ops) <to_record_is_replaying>: Use
11247 TARGET_DEFAULT_RETURN.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target-delegates.c: Rebuild.
11252 * target.c (target_goto_record_begin): Unconditionally delegate.
11253 * target.h (struct target_ops) <to_goto_record_begin>: Use
11254 TARGET_DEFAULT_NORETURN.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * target-delegates.c: Rebuild.
11259 * target.c (target_goto_record_end): Unconditionally delegate.
11260 * target.h (struct target_ops) <to_goto_record_end>: Use
11261 TARGET_DEFAULT_NORETURN.
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target-delegates.c: Rebuild.
11266 * target.c (target_goto_record): Unconditionally delegate.
11267 * target.h (struct target_ops) <to_goto_record>: Use
11268 TARGET_DEFAULT_NORETURN.
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target-delegates.c: Rebuild.
11273 * target.c (target_insn_history): Unconditionally delegate.
11274 * target.h (struct target_ops) <to_insn_history>: Use
11275 TARGET_DEFAULT_NORETURN.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target-delegates.c: Rebuild.
11280 * target.c (target_insn_history_from): Unconditionally delegate.
11281 * target.h (struct target_ops) <to_insn_history_from>: Use
11282 TARGET_DEFAULT_NORETURN.
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target-delegates.c: Rebuild.
11287 * target.c (target_insn_history_range): Unconditionally delegate.
11288 * target.h (struct target_ops) <to_insn_history_range>: Use
11289 TARGET_DEFAULT_NORETURN.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * target-delegates.c: Rebuild.
11294 * target.c (target_call_history): Unconditionally delegate.
11295 * target.h (struct target_ops) <to_call_history>: Use
11296 TARGET_DEFAULT_NORETURN.
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11300 * target-delegates.c: Rebuild.
11301 * target.c (target_call_history_from): Unconditionally delegate.
11302 * target.h (struct target_ops) <to_call_history_from>: Use
11303 TARGET_DEFAULT_NORETURN.
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target-delegates.c: Rebuild.
11308 * target.c (target_call_history_range): Unconditionally delegate.
11309 * target.h (struct target_ops) <to_call_history_range>: Use
11310 TARGET_DEFAULT_NORETURN.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target-delegates.c: Rebuild.
11315 * target.c (target_verify_memory): Unconditionally delegate.
11316 * target.h (struct target_ops) <to_verify_memory>: Use
11317 TARGET_DEFAULT_NORETURN.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target-delegates.c: Rebuild.
11322 * target.c (target_core_of_thread): Unconditionally delegate.
11323 * target.h (struct target_ops) <to_core_of_thread>: Use
11324 TARGET_DEFAULT_RETURN.
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target-delegates.c: Rebuild.
11329 * target.c (target_flash_done): Unconditionally delegate.
11330 * target.h (struct target_ops) <to_flash_done>: Use
11331 TARGET_DEFAULT_NORETURN.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (target_flash_erase): Unconditionally delegate.
11337 * target.h (struct target_ops) <to_flash_erase>: Use
11338 TARGET_DEFAULT_NORETURN.
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11342 * target-delegates.c: Rebuild.
11343 * target.c (target_get_section_table): Unconditionally delegate.
11344 * target.h (struct target_ops) <to_get_section_table>: Use
11345 TARGET_DEFAULT_RETURN.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target-delegates.c: Rebuild.
11350 * target.c (target_pid_to_str): Unconditionally delegate.
11351 (init_dummy_target): Don't initialize to_pid_to_str.
11352 (default_pid_to_str): Rename from dummy_pid_to_str.
11353 * target.h (struct target_ops) <to_pid_to_str>: Use
11354 TARGET_DEFAULT_FUNC.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target-delegates.c: Rebuild.
11359 * target.c (target_find_new_threads): Unconditionally delegate.
11360 * target.h (struct target_ops) <to_find_new_threads>: Use
11361 TARGET_DEFAULT_RETURN.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target-delegates.c: Rebuild.
11366 * target.c (target_program_signals): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_program_signals>: Use
11368 TARGET_DEFAULT_IGNORE.
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * target-delegates.c: Rebuild.
11373 * target.c (target_pass_signals): Unconditionally delegate.
11374 * target.h (struct target_ops) <to_pass_signals>: Use
11375 TARGET_DEFAULT_IGNORE.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target-delegates.c: Rebuild.
11380 * target.c (default_mourn_inferior): New function.
11381 (target_mourn_inferior): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_mourn_inferior>: Use
11383 TARGET_DEFAULT_FUNC.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (default_follow_fork): New function.
11389 (target_follow_fork): Unconditionally delegate.
11390 * target.h (struct target_ops) <to_follow_fork>: Use
11391 TARGET_DEFAULT_FUNC.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target-delegates.c: Rebuild.
11396 * target.c (target_kill): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_kill>: Use
11398 TARGET_DEFAULT_NORETURN.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target-delegates.c: Rebuild.
11403 * target.c (target_masked_watch_num_registers): Unconditionally
11405 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11406 Use TARGET_DEFAULT_RETURN.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (target_remove_mask_watchpoint): Unconditionally
11413 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11414 TARGET_DEFAULT_RETURN.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (target_insert_mask_watchpoint): Unconditionally
11421 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11422 TARGET_DEFAULT_RETURN.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (target_ranged_break_num_registers): Unconditionally
11429 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11430 Use TARGET_DEFAULT_RETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (target_fetch_registers): Unconditionally delegate.
11436 * target.h (struct target_ops) <to_fetch_registers>: Use
11437 TARGET_DEFAULT_NORETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11444 * target.h (struct target_ops) <to_stop>: Use
11445 TARGET_DEFAULT_IGNORE.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_can_run_breakpoint_commands.
11452 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11453 Use TARGET_DEFAULT_RETURN.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_supports_evaluation_of_breakpoint_conditions.
11460 * target.h (struct target_ops)
11461 <to_supports_evaluation_of_breakpoint_conditions>: Use
11462 TARGET_DEFAULT_RETURN.
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_augmented_libraries_svr4_read.
11469 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11470 Use TARGET_DEFAULT_RETURN.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11477 * target.h (struct target_ops) <to_can_use_agent>: Use
11478 TARGET_DEFAULT_RETURN.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11485 * target.h (struct target_ops) <to_use_agent>: Use
11486 TARGET_DEFAULT_NORETURN.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_traceframe_info.
11493 (return_null): Remove.
11494 * target.h (struct target_ops) <to_traceframe_info>: Use
11495 TARGET_DEFAULT_RETURN.
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11499 * target-delegates.c: Rebuild.
11500 * target.c (update_current_target): Don't inherit or default
11501 to_static_tracepoint_markers_by_strid.
11502 * target.h (struct target_ops)
11503 <to_static_tracepoint_markers_by_strid>: Use
11504 TARGET_DEFAULT_NORETURN.
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_static_tracepoint_marker_at.
11511 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11512 Use TARGET_DEFAULT_RETURN.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_set_permissions.
11519 * target.h (struct target_ops) <to_set_permissions>: Use
11520 TARGET_DEFAULT_IGNORE.
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_get_tib_address.
11527 * target.h (struct target_ops) <to_get_tib_address>: Use
11528 TARGET_DEFAULT_NORETURN.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_set_trace_notes.
11535 * target.h (struct target_ops) <to_set_trace_notes>: Use
11536 TARGET_DEFAULT_RETURN.
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't initialize
11542 to_set_trace_buffer_size.
11543 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11544 TARGET_DEFAULT_IGNORE.
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_set_circular_trace_buffer.
11551 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11552 TARGET_DEFAULT_IGNORE.
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_set_disconnected_tracing.
11559 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11560 TARGET_DEFAULT_IGNORE.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_get_min_fast_tracepoint_insn_len.
11567 (return_minus_one): Remove.
11568 * target.h (struct target_ops)
11569 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_get_raw_trace_data.
11576 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11577 TARGET_DEFAULT_NORETURN.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_upload_trace_state_variables.
11584 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11585 Use TARGET_DEFAULT_RETURN.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_upload_tracepoints.
11592 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11593 TARGET_DEFAULT_RETURN.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_save_trace_data.
11600 * target.h (struct target_ops) <to_save_trace_data>: Use
11601 TARGET_DEFAULT_NORETURN.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_get_trace_state_variable_value.
11608 * target.h (struct target_ops)
11609 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11616 * target.h (struct target_ops): Use 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
11623 * target.h (struct target_ops) <to_trace_stop>: 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_tracepoint_status.
11631 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11632 TARGET_DEFAULT_NORETURN.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_get_trace_status.
11639 * target.h (struct target_ops) <to_get_trace_status>: Use
11640 TARGET_DEFAULT_RETURN.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11647 * target.h (struct target_ops) <to_trace_start>: Use
11648 TARGET_DEFAULT_NORETURN.
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_trace_set_readonly_regions.
11655 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11656 Use TARGET_DEFAULT_NORETURN.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_disable_tracepoint.
11663 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11664 TARGET_DEFAULT_NORETURN.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target-delegates.c: Rebuild.
11669 * target.c (update_current_target): Don't inherit or default
11670 to_enable_tracepoint.
11671 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11672 TARGET_DEFAULT_NORETURN.
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target-delegates.c: Rebuild.
11677 * target.c (update_current_target): Don't inherit or default
11678 to_download_trace_state_variable.
11679 * target.h (struct target_ops) <to_download_trace_state_variable>:
11680 Use TARGET_DEFAULT_NORETURN.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_can_download_tracepoint.
11687 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11688 TARGET_DEFAULT_RETURN.
11690 2014-02-19 Tom Tromey <tromey@redhat.com>
11692 * target-delegates.c: Rebuild.
11693 * target.c (update_current_target): Don't inherit or default
11694 to_download_tracepoint.
11695 * target.h (struct target_ops) <to_download_tracepoint>: Use
11696 TARGET_DEFAULT_NORETURN.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11703 * target.h (struct target_ops) <to_trace_init>: Use
11704 TARGET_DEFAULT_RETURN.
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_supports_string_tracing.
11711 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11712 TARGET_DEFAULT_RETURN.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * target-delegates.c: Rebuild.
11717 * target.c (update_current_target): Don't inherit or default
11718 to_supports_enable_disable_tracepoint.
11719 * target.h (struct target_ops)
11720 <to_supports_enable_disable_tracepoint>: Use
11721 TARGET_DEFAULT_RETURN.
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_supports_multi_process.
11728 * target.h (struct target_ops) <to_supports_multi_process>: Use
11729 TARGET_DEFAULT_RETURN.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target-delegates.c: Rebuild.
11734 * target.c (update_current_target): Don't inherit or default
11735 to_get_ada_task_ptid.
11736 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11737 TARGET_DEFAULT_FUNC.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * target-delegates.c: Rebuild.
11742 * target.c (update_current_target): Don't inherit or default
11743 to_thread_architecture.
11744 * target.h (struct target_ops) <to_thread_architecture>: Use
11745 TARGET_DEFAULT_FUNC.
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target-delegates.c: Rebuild.
11750 * target.c (update_current_target): Don't inherit or default
11751 to_execution_direction.
11752 * target.h (struct target_ops) <to_execution_direction>: Use
11753 TARGET_DEFAULT_FUNC.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target-delegates.c: Rebuild.
11758 * target.c (update_current_target): Don't inherit or default
11759 to_can_execute_reverse.
11760 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11761 TARGET_DEFAULT_RETURN.
11762 (target_can_execute_reverse): Unconditionally delegate.
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11766 * target-delegates.c: Rebuild.
11767 * target.c (update_current_target): Don't inherit or default
11769 (dummy_goto_bookmark): Remove.
11770 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11771 * target.h (struct target_ops) <to_goto_bookmark>: Use
11772 TARGET_DEFAULT_NORETURN.
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11779 (dummy_get_bookmark): Remove.
11780 (init_dummy_target): Don't inherit or default to_get_bookmark.
11781 * target.h (struct target_ops) <to_get_bookmark>: Use
11782 TARGET_DEFAULT_NORETURN
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_make_corefile_notes.
11789 (init_dummy_target): Don't initialize to_make_corefile_notes.
11790 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11791 TARGET_DEFAULT_FUNC.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target-delegates.c: Rebuild.
11796 * target.c (update_current_target): Don't inherit or default
11797 to_find_memory_regions.
11798 (init_dummy_target): Don't initialize to_find_memory_regions.
11799 * target.h (struct target_ops) <to_find_memory_regions>: Use
11800 TARGET_DEFAULT_FUNC.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11807 * target.h (struct target_ops) <to_log_command>: Use
11808 TARGET_DEFAULT_IGNORE.
11809 (target_log_command): Unconditionally delegate.
11811 2014-02-19 Tom Tromey <tromey@redhat.com>
11813 * target-delegates.c: Rebuild.
11814 * target.c (update_current_target): Don't inherit or default
11815 to_pid_to_exec_file.
11816 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11817 TARGET_DEFAULT_RETURN.
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11824 (target_thread_name): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_thread_name>: Use
11826 TARGET_DEFAULT_RETURN.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_extra_thread_info.
11833 * target.h (struct target_ops) <to_extra_thread_info>: Use
11834 TARGET_DEFAULT_RETURN.
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11838 * target-delegates.c: Rebuild.
11839 * target.c (update_current_target): Don't inherit or default
11841 * target.h (struct target_ops) <to_has_exited>: Use
11842 TARGET_DEFAULT_RETURN..
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target-delegates.c: Rebuild.
11847 * target.c (update_current_target): Don't inherit or default
11848 to_set_syscall_catchpoint.
11849 (return_one): Remove.
11850 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11851 TARGET_DEFAULT_RETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_insert_exec_catchpoint.
11858 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11859 TARGET_DEFAULT_RETURN.
11861 2014-01-08 Tom Tromey <tromey@redhat.com>
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_insert_exec_catchpoint.
11866 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11867 TARGET_DEFAULT_RETURN.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_remove_vfork_catchpoint.
11874 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11875 TARGET_DEFAULT_RETURN.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_insert_vfork_catchpoint.
11882 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11883 TARGET_DEFAULT_RETURN.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_remove_fork_catchpoint.
11890 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11891 TARGET_DEFAULT_RETURN.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_insert_fork_catchpoint.
11898 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11899 TARGET_DEFAULT_RETURN.
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11903 * target-delegates.c: Rebuild.
11904 * target.c (update_current_target): Don't inherit or default
11905 to_post_startup_inferior.
11906 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11907 TARGET_DEFAULT_IGNORE.
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11911 * target-delegates.c: Rebuild.
11912 * target.c (update_current_target): Don't inherit or default
11914 * target.h (struct target_ops) <to_load>: Use
11915 TARGET_DEFAULT_NORETURN.
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11919 * target-delegates.c: Rebuild.
11920 * target.c (update_current_target): Don't inherit or default
11922 * target.h (struct target_ops) <to_terminal_info>: Use
11923 TARGET_DEFAULT_FUNC.
11925 2014-02-19 Tom Tromey <tromey@redhat.com>
11927 * target-delegates.c: Rebuild.
11928 * target.c (update_current_target): Don't inherit or default
11929 to_terminal_save_ours.
11930 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11931 TARGET_DEFAULT_IGNORE.
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11938 * target.h (struct target_ops) <to_terminal_ours>: Use
11939 TARGET_DEFAULT_IGNORE.
11941 2014-02-19 Tom Tromey <tromey@redhat.com>
11943 * target-delegates.c: Rebuild.
11944 * target.c (update_current_target): Don't inherit or default
11945 to_terminal_ours_for_output.
11946 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11947 TARGET_DEFAULT_IGNORE.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target-delegates.c: Rebuild.
11952 * target.c (update_current_target): Don't inherit or default
11953 to_terminal_inferior.
11954 * target.h (struct target_ops) <to_terminal_inferior>: Use
11955 TARGET_DEFAULT_IGNORE.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target-delegates.c: Rebuild.
11960 * target.c (update_current_target): Don't inherit or default
11962 * target.h (struct target_ops) <to_terminal_init>: Use
11963 TARGET_DEFAULT_IGNORE.
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_can_accel_watchpoint_condition.
11970 * target.h (struct target_ops)
11971 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11975 * target-delegates.c: Rebuild.
11976 * target.c (update_current_target): Don't inherit or default
11977 to_region_ok_for_hw_watchpoint.
11978 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11979 Use TARGET_DEFAULT_FUNC.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target-delegates.c: Rebuild.
11984 * target.c (update_current_target): Don't inherit or default
11985 to_watchpoint_addr_within_range.
11986 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11987 Use TARGET_DEFAULT_FUNC.
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11991 * target-delegates.c: Rebuild.
11992 * target.c (update_current_target): Don't inherit or default
11993 to_remove_watchpoint.
11994 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11995 TARGET_DEFAULT_NORETURN.
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11999 * target-delegates.c: Rebuild.
12000 * target.c (update_current_target): Don't inherit or default
12001 to_insert_watchpoint.
12002 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12003 TARGET_DEFAULT_RETURN.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_remove_hw_breakpoint.
12010 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12011 TARGET_DEFAULT_RETURN.
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12015 * target-delegates.c: Rebuild.
12016 * target.c (update_current_target): Don't inherit or default
12017 to_insert_hw_breakpoint.
12018 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12019 TARGET_DEFAULT_RETURN.
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target-delegates.c: Rebuild.
12024 * target.c (update_current_target): Don't inherit or default
12025 to_can_use_hw_breakpoint.
12026 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12027 TARGET_DEFAULT_RETURN.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12034 * target.h (struct target_ops) <to_files_info>: Use
12035 TARGET_DEFAULT_IGNORE.
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12042 * target.h (struct target_ops) <to_store>: Use
12043 TARGET_DEFAULT_NORETURN.
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12050 * target.h (struct target_ops) <to_post_attach>: Use
12051 TARGET_DEFAULT_IGNORE.
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12055 * target-delegates.c: Rebuild.
12056 * target.c (update_current_target): Don't inherit or default
12058 (default_rcmd): New function.
12059 (do_monitor_command): Unconditionally delegate.
12060 * target.h (struct target_ops) <to_rmcd>: Use
12061 TARGET_DEFAULT_FUNC.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target-delegates.c: Rebuild.
12066 * target.c (init_dummy_target): Don't initialize to_attach.
12067 (target_attach): Unconditionally delegate.
12068 * target.h (struct target_ops) <to_attach>: Use
12069 TARGET_DEFAULT_FUNC.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_detach): Unconditionally delegate.
12075 (init_dummy_target): Don't initialize to_detach.
12076 * target.h (struct target_ops) <to_detach>: Use
12077 TARGET_DEFAULT_IGNORE.
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12081 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12083 (target_augmented_libraries_svr4_read): Add argument.
12084 * target.c (update_current_target): Update.
12085 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target.h (struct target_ops) <to_call_history_range>: Add
12092 * target.c (target_call_history_range): Add argument.
12093 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12095 (record_btrace_call_history_from): Update.
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * target.h (struct target_ops) <to_call_history_from>: Add
12101 * target.c (target_call_history_from): Add argument.
12102 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12107 * target.h (struct target_ops) <to_call_history>: Add argument.
12108 * target.c (target_call_history): Add argument.
12109 * record-btrace.c (record_btrace_call_history): Add 'self'
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target.h (struct target_ops) <to_insn_history_range>: Add
12116 * target.c (target_insn_history_range): Add argument.
12117 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12119 (record_btrace_insn_history_from): Update.
12121 2014-02-19 Tom Tromey <tromey@redhat.com>
12123 * target.h (struct target_ops) <to_insn_history_from>: Add
12125 * target.c (target_insn_history_from): Add argument.
12126 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target.h (struct target_ops) <to_insn_history>: Add argument.
12132 * target.c (target_insn_history): Add argument.
12133 * record-btrace.c (record_btrace_insn_history): Add 'self'
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target.h (struct target_ops) <to_goto_record>: Add argument.
12139 * target.c (target_goto_record): Add argument.
12140 * record-full.c (record_full_goto): Add 'self' argument.
12141 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12146 * target.c (target_goto_record_end): Add argument.
12147 * record-full.c (record_full_goto_end): Add 'self' argument.
12148 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * target.h (struct target_ops) <to_goto_record_begin>: Add
12154 * target.c (target_goto_record_begin): Add argument.
12155 * record-full.c (record_full_goto_begin): Add 'self' argument.
12156 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target.h (struct target_ops) <to_record_is_replaying>: Add
12163 * target.c (target_record_is_replaying): Add argument.
12164 * record-full.c (record_full_is_replaying): Add 'self' argument.
12165 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12167 (record_btrace_xfer_partial, record_btrace_store_registers)
12168 (record_btrace_prepare_to_store, record_btrace_resume)
12169 (record_btrace_wait, record_btrace_decr_pc_after_break)
12170 (record_btrace_find_new_threads, record_btrace_thread_alive):
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target.h (struct target_ops) <to_delete_record>: Add argument.
12176 * target.c (target_delete_record): Add argument.
12177 * record-full.c (record_full_delete): Add 'self' argument.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * target.h (struct target_ops) <to_save_record>: Add argument.
12182 * target.c (target_save_record): Add argument.
12183 * record-full.c (record_full_save): Add 'self' argument.
12184 (record_full_save): Add 'self' argument.
12186 2014-02-19 Tom Tromey <tromey@redhat.com>
12188 * target.h (struct target_ops) <to_info_record>: Add argument.
12189 * target.c (target_info_record): Add argument.
12190 * record.c (info_record_command): Add argument.
12191 * record-full.c (record_full_info): Add 'self' argument.
12192 * record-btrace.c (record_btrace_info): Add 'self' argument.
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12197 * target.c (target_stop_recording): Add argument.
12198 * record.c (record_stop): Add argument.
12199 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12202 2014-02-19 Tom Tromey <tromey@redhat.com>
12204 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12205 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12206 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12208 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12209 (_initialize_amd64_linux_nat): Use it.
12210 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12211 (_initialize_i386_linux_nat): Use it.
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12215 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12216 * target.c (target_teardown_btrace): Add argument.
12217 * remote.c (remote_teardown_btrace): Add 'self' argument.
12218 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12220 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12226 * target.c (target_disable_btrace): Add argument.
12227 * remote.c (remote_disable_btrace): Add 'self' argument.
12228 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12230 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12236 * target.c (target_enable_btrace): Add argument.
12237 * remote.c (remote_enable_btrace): Add 'self' argument.
12238 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12240 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12246 (target_can_use_agent): Add argument.
12247 * target.c (update_current_target): Update.
12248 * remote.c (remote_can_use_agent): Add 'self' argument.
12249 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12253 * target.h (struct target_ops) <to_use_agent>: Add argument.
12254 (target_use_agent): Add argument.
12255 * target.c (update_current_target): Update.
12256 * remote.c (remote_use_agent): Add 'self' argument.
12257 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12262 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12263 (target_traceframe_info): Add argument.
12264 * target.c (update_current_target): Update.
12265 * remote.c (remote_traceframe_info): Add 'self' argument.
12266 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target.h (target_static_tracepoint_markers_by_strid): Add
12272 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12274 * target.c (update_current_target): Update.
12275 * remote.c (struct target_ops)
12276 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12277 * linux-nat.c (struct target_ops)
12278 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12284 (target_static_tracepoint_marker_at): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12291 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12292 (target_set_permissions): Add argument.
12293 * target.c (update_current_target): Update.
12294 * remote.c (remote_set_permissions): Add 'self' argument.
12295 (remote_start_remote): Update.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12300 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12301 (target_get_tib_address): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_get_tib_address): Add 'self' argument.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12308 (target_set_trace_notes): Add argument.
12309 * target.c (update_current_target): Update.
12310 * remote.c (remote_set_trace_notes): Add 'self' argument.
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12316 (target_set_trace_buffer_size): Add argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12324 (target_set_circular_trace_buffer): Add argument.
12325 * target.c (update_current_target): Update.
12326 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12333 (target_set_disconnected_tracing): Add argument.
12334 * target.c (update_current_target): Update.
12335 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12339 * target.h (struct target_ops)
12340 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12341 (target_get_min_fast_tracepoint_insn_len): Add argument.
12342 * target.c (update_current_target): Update.
12343 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12346 2014-02-19 Tom Tromey <tromey@redhat.com>
12348 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12350 (target_get_raw_trace_data): Add argument.
12351 * target.c (update_current_target): Update.
12352 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12356 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12358 (target_upload_trace_state_variables): Add argument.
12359 * target.c (update_current_target): Update.
12360 * remote.c (remote_upload_trace_state_variables): Add 'self'
12362 (remote_start_remote): Update.
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12368 (target_upload_tracepoints): Add argument.
12369 * target.c (update_current_target): Update.
12370 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12371 (remote_start_remote): Update.
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12375 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12376 (target_save_trace_data): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_save_trace_data): Add 'self' argument.
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12382 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12384 * target.h (struct target_ops)
12385 <to_get_trace_state_variable_value>: Add argument.
12386 (target_get_trace_state_variable_value): Add argument.
12387 * target.c (update_current_target): Update.
12388 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12390 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12395 * target.h (struct target_ops) <to_trace_find>: Add argument.
12396 (target_trace_find): Add argument.
12397 * target.c (update_current_target): Update.
12398 * remote.c (remote_trace_find): Add 'self' argument.
12399 * ctf.c (ctf_trace_find): Add 'self' argument.
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12403 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12404 (target_trace_stop): Add argument.
12405 * target.c (update_current_target): Update.
12406 * remote.c (remote_trace_stop): Add 'self' argument.
12408 2014-02-19 Tom Tromey <tromey@redhat.com>
12410 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12411 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12413 (target_get_tracepoint_status): Add argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12419 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12420 * target.h (struct target_ops) <to_get_trace_status>: Add
12422 (target_get_trace_status): Add argument.
12423 * target.c (update_current_target): Update.
12424 * remote.c (remote_get_trace_status): Add 'self' argument.
12425 (remote_start_remote, remote_can_download_tracepoint): Update.
12426 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12428 2014-02-19 Tom Tromey <tromey@redhat.com>
12430 * target.h (struct target_ops) <to_trace_start>: Add argument.
12431 (target_trace_start): Add argument.
12432 * target.c (update_current_target): Update.
12433 * remote.c (remote_trace_start): Add 'self' argument.
12435 2014-02-19 Tom Tromey <tromey@redhat.com>
12437 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12439 (target_trace_set_readonly_regions): Add argument.
12440 * target.c (update_current_target): Update.
12441 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12444 2014-02-19 Tom Tromey <tromey@redhat.com>
12446 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12448 (target_disable_tracepoint): Add argument.
12449 * target.c (update_current_target): Update.
12450 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12454 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12456 (target_enable_tracepoint): Add argument.
12457 * target.c (update_current_target): Update.
12458 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12462 * target.h (struct target_ops) <to_download_trace_state_variable>:
12464 (target_download_trace_state_variable): Add argument.
12465 * target.c (update_current_target): Update.
12466 * remote.c (remote_download_trace_state_variable): Add 'self'
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12471 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12473 (target_can_download_tracepoint): Add argument.
12474 * target.c (update_current_target): Update.
12475 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12479 * target.h (struct target_ops) <to_download_tracepoint>: Add
12481 (target_download_tracepoint): Add argument.
12482 * target.c (update_current_target): Update.
12483 * remote.c (remote_download_tracepoint): Add 'self' argument.
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12487 * target.h (struct target_ops) <to_trace_init>: Add argument.
12488 (target_trace_init): Add argument.
12489 * target.c (update_current_target): Update.
12490 * remote.c (remote_trace_init): Add 'self' argument.
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12495 * target.c (target_fileio_readlink): Add argument.
12496 * remote.c (remote_hostio_readlink): Add 'self' argument.
12497 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12502 * target.c (target_fileio_unlink): Add argument.
12503 * remote.c (remote_hostio_unlink): Add 'self' argument.
12504 (remote_file_delete): Update.
12505 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12510 * target.c (target_fileio_close): Add argument.
12511 * remote.c (remote_hostio_close): Add 'self' argument.
12512 (remote_hostio_close_cleanup): Update.
12513 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12515 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12517 2014-02-19 Tom Tromey <tromey@redhat.com>
12519 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12520 * target.c (target_fileio_pread): Add argument.
12521 * remote.c (remote_hostio_pread): Add 'self' argument.
12522 (remote_bfd_iovec_pread, remote_file_get): Update.
12523 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12525 2014-02-19 Tom Tromey <tromey@redhat.com>
12527 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12528 * target.c (target_fileio_pwrite): Add argument.
12529 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12530 (remote_file_put): Update.
12531 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12533 2014-02-19 Tom Tromey <tromey@redhat.com>
12535 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12536 * target.c (target_fileio_open): Add argument.
12537 * remote.c (remote_hostio_open): Add 'self' argument.
12538 (remote_bfd_iovec_open): Add 'self' argument.
12539 (remote_file_put): Add 'self' argument.
12540 (remote_file_get): Add 'self' argument.
12541 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12547 (target_can_run_breakpoint_commands): Add argument.
12548 * target.c (update_current_target): Update.
12549 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12551 (remote_insert_breakpoint): Add 'self' argument.
12552 (remote_insert_hw_breakpoint): Add 'self' argument.
12553 (remote_can_run_breakpoint_commands): Add 'self' argument.
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target.h (struct target_ops)
12558 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12559 (target_supports_evaluation_of_breakpoint_conditions): Add
12561 * target.c (update_current_target): Update.
12562 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12564 (remote_insert_breakpoint): Add 'self' argument.
12565 (remote_insert_hw_breakpoint): Add 'self' argument.
12566 (remote_supports_cond_breakpoints): Add 'self' argument.
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12570 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12572 (target_supports_string_tracing): Add argument.
12573 * target.c (update_current_target): Update.
12574 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target.h (struct target_ops)
12579 <to_supports_disable_randomization>: Add argument.
12580 * target.c (find_default_supports_disable_randomization): Add
12582 (target_supports_disable_randomization): Add argument.
12583 (find_default_supports_disable_randomization): Add 'self'
12585 * remote.c (extended_remote_supports_disable_randomization): Add
12587 (remote_supports_disable_randomization): Add 'self' argument.
12588 (extended_remote_create_inferior): Update.
12589 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12594 * target.h (struct target_ops)
12595 <to_supports_enable_disable_tracepoint>: Add argument.
12596 (target_supports_enable_disable_tracepoint): Add argument.
12597 * target.c (update_current_target): Update.
12598 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12601 2014-02-19 Tom Tromey <tromey@redhat.com>
12603 * target.h (struct target_ops) <to_supports_multi_process>: Add
12605 (target_supports_multi_process): Add argument.
12606 * target.c (update_current_target): Update.
12607 * remote.c (remote_supports_multi_process): Add 'self' argument.
12608 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12610 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12613 2014-02-19 Tom Tromey <tromey@redhat.com>
12615 * target.h (struct target_ops) <to_execution_direction>: Add
12617 (target_execution_direction): Add argument.
12618 * target.c (default_execution_direction): Add 'self' argument.
12619 * record-full.c (record_full_execution_direction): Add 'self'
12622 2014-02-19 Tom Tromey <tromey@redhat.com>
12624 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12626 (target_can_execute_reverse): Add argument.
12627 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12628 * record-full.c (record_full_can_execute_reverse): Add 'self'
12630 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12633 2014-02-19 Tom Tromey <tromey@redhat.com>
12635 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12636 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12638 (target_get_ada_task_ptid): Add argument.
12639 * target.c (update_current_target): Update.
12640 (default_get_ada_task_ptid): Add 'self' argument.
12641 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12642 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12643 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12645 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12647 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12649 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12651 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12652 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12657 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12658 (target_goto_bookmark): Add argument.
12659 * target.c (dummy_goto_bookmark): Add 'self' argument.
12660 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12662 2014-02-19 Tom Tromey <tromey@redhat.com>
12664 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12665 (target_get_bookmark): Add argument.
12666 * target.c (dummy_get_bookmark): Add 'self' argument.
12667 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12669 2014-02-19 Tom Tromey <tromey@redhat.com>
12671 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12673 (target_make_corefile_notes): Add argument.
12674 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12675 * procfs.c (procfs_make_note_section): Add 'self' argument.
12676 (procfs_make_note_section): Add 'self' argument.
12677 (procfs_make_note_section): Add 'self' argument.
12678 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12680 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12681 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12682 * exec.c (exec_make_note_section): Add 'self' argument.
12683 (exec_make_note_section): Add 'self' argument.
12685 2014-02-19 Tom Tromey <tromey@redhat.com>
12687 * target.h (struct target_ops) <to_find_memory_regions>: Add
12689 (target_find_memory_regions): Add argument.
12690 * target.c (dummy_find_memory_regions): Add 'self' argument.
12691 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12692 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12693 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12694 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12695 * exec. (exec_do_find_memory_regions): New global.
12696 (exec_set_find_memory_regions): Rewrite.
12697 (exec_find_memory_regions): New function.
12698 (init_exec_ops): Use exec_find_memory_regions.
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12702 * target.h (struct target_ops) <to_supports_non_stop>: Add
12704 * target.c (find_default_supports_non_stop): Add argument.
12705 (target_supports_non_stop): Add argument.
12706 (find_default_supports_non_stop): Add 'self' argument.
12707 * remote.c (remote_supports_non_stop): Add 'self' argument.
12708 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12710 2014-02-19 Tom Tromey <tromey@redhat.com>
12712 * target.h (struct target_ops) <to_log_command>: Add argument.
12713 (target_log_command): Add argument.
12714 * serial.h (serial_log_command): Add 'self' argument.
12715 * serial.c (serial_log_command): Add 'self' argument.
12717 2014-02-19 Tom Tromey <tromey@redhat.com>
12719 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12720 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12722 (target_pid_to_exec_file): Add argument.
12723 * target.c (debug_to_pid_to_exec_file): Add argument.
12724 (update_current_target): Update.
12725 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12726 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12727 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12728 (linux_handle_extended_wait): Update.
12729 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12730 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12731 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12732 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_rcmd>: Add argument.
12737 (target_rcmd): Add argument.
12738 * target.c (debug_to_rcmd): Add argument.
12739 (update_current_target, do_monitor_command): Update.
12740 * remote.c (remote_rcmd): Add 'self' argument.
12741 * monitor.c (monitor_rcmd): Add 'self' argument.
12743 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * windows-nat.c (windows_stop): Add 'self' argument.
12746 * target.h (struct target_ops) <to_stop>: Add argument.
12747 * target.c (target_stop): Add argument.
12748 (debug_to_stop): Add argument.
12749 (update_current_target): Update.
12750 * remote.c (remote_stop): Add 'self' argument.
12751 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12752 (gdbsim_cntrl_c): Update.
12753 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12754 * procfs.c (procfs_stop): Add 'self' argument.
12755 * nto-procfs.c (procfs_stop): Add 'self' argument.
12756 * monitor.c (monitor_stop): Add 'self' argument.
12757 (monitor_open): Update.
12758 * linux-nat.c (linux_nat_stop): Add argument.
12759 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12760 * gnu-nat.c (gnu_stop): Add 'self' argument.
12761 * darwin-nat.c (darwin_stop): Add 'self' argument.
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12765 * target.h (struct target_ops) <to_thread_name>: Add argument.
12766 * target.c (target_thread_name): Add argument.
12767 (update_current_target): Update.
12768 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12772 * target.h (struct target_ops) <to_extra_thread_info>: Add
12774 (target_extra_thread_info): Add argument.
12775 * target.c (update_current_target): Update.
12776 * remote.c (remote_threads_extra_info): Add 'self' argument.
12777 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12779 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12780 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12781 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12783 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12785 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12787 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12792 * target.h (struct target_ops) <to_program_signals>: Add argument.
12793 * target.c (target_program_signals): Add argument.
12794 * remote.c (remote_program_signals): Add 'self' argument.
12796 2014-02-19 Tom Tromey <tromey@redhat.com>
12798 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12799 * target.c (target_pass_signals): Add argument.
12800 * remote.c (remote_pass_signals): Add 'self' argument.
12801 (remote_start_remote): Update.
12802 * procfs.c (procfs_pass_signals): Add 'self' argument.
12803 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12804 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12805 (linux_nat_create_inferior, linux_nat_attach): Update.
12807 2014-02-19 Tom Tromey <tromey@redhat.com>
12809 * windows-nat.c (windows_can_run): Add 'self' argument.
12810 * target.h (struct target_ops) <to_can_run>: Add argument.
12811 (target_can_run): Add argument.
12812 * target.c (debug_to_can_run): Add argument.
12813 (update_current_target): Update.
12814 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12815 * inf-child.c (inf_child_can_run): Add 'self' argument.
12816 * go32-nat.c (go32_can_run): Add 'self' argument.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target.h (struct target_ops) <to_has_exited>: Add argument.
12821 (target_has_exited): Add argument.
12822 * target.c (debug_to_has_exited): Add argument.
12823 (update_current_target): Update.
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12829 (target_set_syscall_catchpoint): Add argument.
12830 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12832 * target.c (update_current_target): Update.
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12838 (target_remove_exec_catchpoint): Add argument.
12839 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12840 (update_current_target): Update.
12841 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12846 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12848 (target_insert_exec_catchpoint): Add argument.
12849 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12850 (update_current_target): Update.
12851 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12856 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12858 (target_remove_vfork_catchpoint): Add argument.
12859 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12860 (update_current_target): Update.
12861 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12864 2014-02-19 Tom Tromey <tromey@redhat.com>
12866 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12868 (target_insert_vfork_catchpoint): Add argument.
12869 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12870 (update_current_target): Update.
12871 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12874 2014-02-19 Tom Tromey <tromey@redhat.com>
12876 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12878 (target_remove_fork_catchpoint): Add argument.
12879 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12880 (update_current_target): Update.
12881 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12886 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12888 (target_insert_fork_catchpoint): Add argument.
12889 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12890 (update_current_target): Update.
12891 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12894 2014-02-19 Tom Tromey <tromey@redhat.com>
12896 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12898 (target_post_startup_inferior): Add argument.
12899 * target.c (debug_to_post_startup_inferior): Add argument.
12900 (update_current_target): Update.
12901 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12903 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12905 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12907 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12909 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12911 (super_post_startup_inferior): Likewise.
12912 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12914 (super_post_startup_inferior): Likewise.
12915 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12916 Add 'self' argument.
12917 (super_post_startup_inferior): Likewise.
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12921 * target.h (struct target_ops) <to_load>: Add argument.
12922 * target.c (target_load): Add argument.
12923 (debug_to_load): Add argument.
12924 (update_current_target): Update.
12925 * remote.c (remote_load): Add 'self' argument.
12926 * remote-sim.c (gdbsim_load): Add 'self' argument.
12927 * remote-mips.c (mips_load): Add 'self' argument.
12928 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12929 * monitor.c (monitor_load): Add 'self' argument.
12930 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12932 2014-02-19 Tom Tromey <tromey@redhat.com>
12934 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12935 (target_terminal_info): Add argument.
12936 * target.c (debug_to_terminal_info): Add argument.
12937 (default_terminal_info): Likewise.
12938 * inflow.c (child_terminal_info): Add 'self' argument.
12939 * inferior.h (child_terminal_info): Add 'self' argument.
12940 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12942 2014-02-19 Tom Tromey <tromey@redhat.com>
12944 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12946 (target_terminal_save_ours): Add argument.
12947 * target.c (debug_to_terminal_save_ours): Add argument.
12948 (update_current_target): Update.
12949 * inflow.c (terminal_save_ours): Add 'self' argument.
12950 * inferior.h (terminal_save_ours): Add 'self' argument.
12952 2014-02-19 Tom Tromey <tromey@redhat.com>
12954 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12955 (target_terminal_ours): Add argument.
12956 * target.c (debug_to_terminal_ours): Add argument.
12957 (update_current_target): Update.
12958 * remote.c (remote_terminal_ours): Add 'self' argument.
12959 (remote_close): Update.
12960 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12961 * inflow.c (terminal_ours): Add 'self' argument.
12962 * inferior.h (terminal_ours): Add 'self' argument.
12963 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12965 2014-02-19 Pedro Alves <palves@redhat.com>
12966 Tom Tromey <tromey@redhat.com>
12968 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12970 (target_terminal_ours_for_output): Add argument.
12971 * target.c (debug_to_terminal_ours_for_output): Add argument.
12972 (update_current_target): Update.
12973 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12974 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12975 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12977 2014-02-19 Tom Tromey <tromey@redhat.com>
12979 * target.h (struct target_ops) <to_terminal_inferior>: Add
12981 * target.c (target_terminal_inferior): Add argument.
12982 (update_current_target): Update.
12983 * remote.c (remote_terminal_inferior): Add 'self' argument.
12984 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12985 * inflow.c (terminal_inferior): Add 'self' argument.
12986 * inferior.h (terminal_inferior): Add 'self' argument.
12987 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12988 (go32_terminal_inferior): Add 'self' argument.
12990 2014-02-19 Tom Tromey <tromey@redhat.com>
12992 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12993 (target_terminal_init): Add argument.
12994 * target.c (debug_to_terminal_init): Add argument.
12995 (update_current_target): Update.
12996 * inflow.c (terminal_init_inferior): Add 'self' argument.
12997 * inferior.h (terminal_init_inferior): Add 'self' argument.
12998 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12999 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13001 2014-02-19 Tom Tromey <tromey@redhat.com>
13003 * target.h (struct target_ops)
13004 <to_can_accel_watchpoint_condition>: Add argument.
13005 (target_can_accel_watchpoint_condition): Add argument.
13006 * target.c (debug_to_can_accel_watchpoint_condition): Add
13008 (update_current_target): Update.
13009 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13012 2014-02-19 Tom Tromey <tromey@redhat.com>
13014 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13016 (target_region_ok_for_hw_watchpoint): Add argument.
13017 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13018 (default_region_ok_for_hw_watchpoint): Add argument.
13019 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13020 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13022 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13024 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13026 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13028 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13030 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13032 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13033 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13035 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13036 Add 'self' argument.
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13040 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13042 (target_insert_watchpoint): Add argument.
13043 * target.c (debug_to_insert_watchpoint): Add argument.
13044 (update_current_target): Update.
13045 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13046 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13047 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13048 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13049 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13050 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13052 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13053 (procfs_insert_hw_watchpoint): Add 'self' argument.
13054 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13056 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13058 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13060 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13061 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13063 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13068 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13070 (target_remove_watchpoint): Add argument.
13071 * target.c (debug_to_remove_watchpoint): Add argument.
13072 (update_current_target): Update.
13073 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13074 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13075 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13076 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13077 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13078 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13080 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13081 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13083 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13085 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13087 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13088 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13090 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13095 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13097 (target_remove_hw_breakpoint): Add argument.
13098 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13099 (update_current_target): Update.
13100 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13101 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13103 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13104 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13106 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13109 2014-02-19 Tom Tromey <tromey@redhat.com>
13111 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13113 (target_insert_hw_breakpoint): Add argument.
13114 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13115 (update_current_target): Update.
13116 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13117 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13119 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13120 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13121 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13123 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13126 2014-02-19 Tom Tromey <tromey@redhat.com>
13128 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13130 (target_can_use_hardware_watchpoint): Add argument.
13131 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13132 (update_current_target): Update.
13133 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13135 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13137 * remote.c (remote_check_watch_resources): Add 'self' argument.
13138 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13139 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13141 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13142 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13144 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13146 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13148 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13150 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13152 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13154 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13155 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13157 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13162 * target.h (struct target_ops) <to_post_attach>: Add argument.
13163 (target_post_attach): Add argument.
13164 * target.c (debug_to_post_attach): Add argument.
13165 (update_current_target): Update.
13166 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13167 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13168 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13169 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13170 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13172 2014-02-19 Tom Tromey <tromey@redhat.com>
13174 * windows-nat.c (windows_close): Add 'self' argument.
13175 * tracepoint.c (tfile_close): Add 'self' argument.
13176 * target.h (struct target_ops) <to_close>: Add argument.
13177 * target.c (target_close): Add argument.
13178 (update_current_target): Update.
13179 * remote.c (remote_close): Add 'self' argument.
13180 * remote-sim.c (gdbsim_close): Add 'self' argument.
13181 * remote-mips.c (mips_close): Add 'self' argument.
13182 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13183 * record-full.c (record_full_close): Add 'self' argument.
13184 * record-btrace.c (record_btrace_close): Add 'self' argument.
13185 * monitor.h (monitor_close): Add 'self' argument.
13186 * monitor.c (monitor_close): Add 'self' argument.
13187 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13188 * linux-nat.c (linux_nat_close): Add argument.
13189 * go32-nat.c (go32_close): Add 'self' argument.
13190 * exec.c (exec_close_1): Add 'self' argument.
13191 * ctf.c (ctf_close): Add 'self' argument.
13192 * corelow.c (core_close): Add 'self' argument.
13193 (core_close_cleanup): Update.
13194 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13195 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13197 2014-02-19 Tom Tromey <tromey@redhat.com>
13199 * remote.c (remote_load): New function.
13200 (init_remote_ops): Use it.
13202 2014-02-19 Tom Tromey <tromey@redhat.com>
13204 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13206 * common/linux-btrace.h (linux_supports_btrace): Update.
13207 * remote.c (remote_supports_btrace): Add "self" argument.
13208 * target-delegates.c: Rebuild.
13209 * target.c (target_supports_btrace): Remove.
13210 * target.h (struct target_ops) <to_supports_btrace>: Add
13211 target_ops argument.
13212 (target_supports_btrace): New define.
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13216 * record-full.c (record_full_beneath_to_resume_ops)
13217 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13218 (record_full_beneath_to_wait)
13219 (record_full_beneath_to_store_registers_ops)
13220 (record_full_beneath_to_store_registers)
13221 (record_full_beneath_to_xfer_partial_ops)
13222 (record_full_beneath_to_xfer_partial)
13223 (record_full_beneath_to_insert_breakpoint_ops)
13224 (record_full_beneath_to_insert_breakpoint)
13225 (record_full_beneath_to_remove_breakpoint_ops)
13226 (record_full_beneath_to_remove_breakpoint)
13227 (record_full_beneath_to_stopped_by_watchpoint)
13228 (record_full_beneath_to_stopped_data_address)
13229 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13230 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13231 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13232 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13233 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13234 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13235 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13236 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13237 (record_full_resume, record_full_wait_1)
13238 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13239 (record_full_store_registers, record_full_xfer_partial)
13240 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13241 (record_full_async, record_full_core_xfer_partial): Use target
13243 * target-delegates.c: Rebuild.
13244 * target.c (current_xfer_partial): Remove.
13245 (update_current_target): Do not INHERIT or de_fault
13246 to_insert_breakpoint, to_remove_breakpoint,
13247 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13248 to_is_async_p, to_async. Do not set to_xfer_partial field.
13249 (default_xfer_partial): Simplify.
13250 (current_xfer_partial): Remove.
13251 (target_wait, target_resume): Simplify.
13252 (find_default_can_async_p, find_default_is_async_p): Update.
13253 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13254 to_xfer_partial, to_stopped_by_watchpoint,
13255 to_stopped_data_address.
13256 (target_store_registers): Simplify.
13257 (forward_target_remove_breakpoint)
13258 (forward_target_insert_breakpoint): Remove.
13259 (target_remove_breakpoint, target_insert_breakpoint)
13260 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13261 * target.h (struct target_ops) <to_resume, to_wait,
13262 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13263 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13264 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13266 (forward_target_remove_breakpoint)
13267 (forward_target_insert_breakpoint): Remove.
13268 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13270 (record_btrace_insert_breakpoint): Delegate directly.
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13275 * target-delegates.c: New file.
13276 * target.c: Include target-delegates.c.
13277 (init_dummy_target): Call install_dummy_methods.
13278 (complete_target_initialization): Call install_delegators.
13279 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13280 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13281 * make-target-delegates: New file.
13283 2014-02-19 Tom Tromey <tromey@redhat.com>
13285 * record.c (find_record_target): Use find_target_at.
13286 * target.c (find_target_at): New function.
13287 * target.h (find_target_at): Declare.
13289 2014-02-19 Tom Tromey <tromey@redhat.com>
13291 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13292 Add 'ops' argument.
13293 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13295 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13296 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13298 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13300 * linux-nat.c (save_sigtrap): Update.
13301 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13302 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13303 (linux_nat_close): Update.
13304 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13306 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13308 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13309 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13310 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13311 (tmp_to_async): Add 'ops' argument.
13312 (record_full_stopped_by_watchpoint, record_full_async)
13313 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13315 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13316 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13317 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13318 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13319 (remote_is_async_p, remote_async): Add 'ops' argument.
13320 (remote_stopped_data_address): Update.
13321 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13322 * target.c (update_current_target)
13323 (find_default_can_async_p, find_default_is_async_p): Update.
13324 (init_dummy_target): Update.
13325 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13326 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13327 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13328 (target_can_async_p, target_is_async_p, target_async)
13329 (target_stopped_by_watchpoint): Update.
13331 2014-02-19 Yao Qi <yao@codesourcery.com>
13334 * gdbarch.sh: Remove startup_gdbarch.
13335 * gdbarch.c: Regenerated.
13336 * gdbarch.h: Likewise.
13338 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13340 * rl78-tdep.c (rl78_g10_register_name): New function.
13341 (rl78_return_value): Add g10 support.
13342 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13345 2014-02-17 Doug Evans <xdje42@gmail.com>
13347 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13348 (SUBDIR_GUILE_SRCS): Ditto.
13349 (scm-gsmob.o): Ditto.
13351 2014-02-17 Yao Qi <yao@codesourcery.com>
13353 * gnu-nat.c (ILL_RPC): Declare defined function.
13355 2014-02-17 Yao Qi <yao@codesourcery.com>
13357 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13358 mach_msg_type_number_t.
13359 (gnu_write_inferior): Likewise.
13361 2014-02-17 Yao Qi <yao@codesourcery.com>
13363 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13365 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13366 (inf_validate_procs, inf_signal): Likewise.
13367 (S_exception_raise_request): Likewise.
13368 (do_mach_notify_dead_name): Likewise.
13369 (steal_exc_port): Likewise.
13370 (gnu_read_inferior): Change 'copy_count''s type to
13371 mach_msg_type_number_t.
13372 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13375 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13377 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13378 flag. Adjust all users; in particular...
13379 (gnu_wait): ..., don't decrement its value in here...
13380 (gnu_create_inferior): ..., and instead set the flag in here,
13381 around the startup_inferior call, and call that one with
13382 START_INFERIOR_TRAPS_EXPECTED.
13384 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13385 (ILL_RPC): ... new macro.
13386 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13387 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13388 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13389 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13390 functions with ILL_RPC macro.
13391 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13392 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13393 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13394 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13395 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13396 (S_proc_getlogin_reply, S_proc_getsid_reply)
13397 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13398 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13399 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13400 (S_proc_getnports_reply, S_proc_is_important_reply)
13401 (S_proc_get_code_reply): New stub functions, generated with
13404 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13405 collected the type check structures.
13407 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13409 2014-02-14 Doug Evans <dje@google.com>
13411 * target.c (target_write_partial): Fix result type.
13413 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13415 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13416 the proper offsets to access fpregset_t.
13418 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13420 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13421 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13422 * h8300-tdep.c (setmachinelist): Remove global.
13423 * hppa-tdep.c (hppa_sigtramp): Remove global.
13424 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13425 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13426 * ravenscar-thread.c (update_target_observer): Remove global.
13427 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13429 2014-02-12 Tom Tromey <tromey@redhat.com>
13431 * common/rsp-low.c: Update comments.
13432 * common/rsp-low.h: Update comments.
13434 2014-02-12 Tom Tromey <tromey@redhat.com>
13436 * common/rsp-low.c (convert_ascii_to_int): Remove.
13437 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13439 2014-02-12 Tom Tromey <tromey@redhat.com>
13441 * common/rsp-low.h (unhexify): Don't declare.
13442 * common/rsp-low.c (unhexify): Remove.
13444 2014-02-12 Tom Tromey <tromey@redhat.com>
13446 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13447 * common/rsp-low.c (convert_int_to_ascii): Remove.
13449 2014-02-12 Tom Tromey <tromey@redhat.com>
13451 * common/rsp-low.h (hexify): Don't declare.
13452 * common/rsp-low.c (hexify): Remove.
13454 2014-02-12 Tom Tromey <tromey@redhat.com>
13456 * common/rsp-low.c (hexify): Never take strlen of argument.
13458 2014-02-12 Tom Tromey <tromey@redhat.com>
13460 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13461 * remote.c (extended_remote_run, remote_rcmd)
13462 (remote_download_trace_state_variable, remote_save_trace_data)
13463 (remote_set_trace_notes): Update.
13464 * tracepoint.c (encode_source_string, tfile_write_status)
13465 (tfile_write_uploaded_tsv): Update.
13467 2014-02-12 Tom Tromey <tromey@redhat.com>
13469 * tracepoint.c: Include rsp-low.h.
13470 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13471 * remote.c: Include rsp-low.h.
13472 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13473 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13474 (remote_unescape_input): Move to common/rsp-low.c.
13475 * common/rsp-low.h: New file.
13476 * common/rsp-low.c: New file.
13477 * Makefile.in (SFILES): Add common/rsp-low.c.
13478 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13479 (COMMON_OBS): Add rsp-low.o.
13480 (rsp-low.o): New target.
13482 2014-02-12 Tom Tromey <tromey@redhat.com>
13484 * utils.h: Include print-utils.h.
13485 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13486 (int_string, core_addr_to_string, core_addr_to_string_nz)
13487 (hex_string, hex_string_custom): Don't declare.
13488 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13489 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13490 (hex_string_custom, int_string, core_addr_to_string)
13491 (core_addr_to_string_nz, host_address_to_string): Move to
13492 common/print-utils.c.
13493 * common/print-utils.h: New file.
13494 * common/print-utils.c: New file
13495 * Makefile.in (SFILES): Add common/print-utils.c.
13496 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13497 (COMMON_OBS): Add print-utils.o.
13498 (print-utils.o): New target.
13500 2014-02-12 Tom Tromey <tromey@redhat.com>
13502 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13504 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13506 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13508 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13510 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13511 if a PT_IO ptrace request returns sucessfully but indicates that 0
13512 bytes were transferred.
13514 2014-02-12 Pedro Alves <palves@redhat.com>
13515 Kevin Buettner <kevinb@redhat.com>
13517 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13518 TYPE_INSTANCE_FLAG_CODE_SPACE.
13520 2014-02-12 Pedro Alves <palves@redhat.com>
13522 * h8300-tdep.c (pseudo_from_raw_register)
13523 (raw_from_pseudo_register): New functions.
13524 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13527 2014-02-12 Pedro Alves <palves@redhat.com>
13529 * h8300-tdep.c (h8300_register_sim_regno): New function.
13530 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13531 gdbarch_register_sim_regno hook.
13533 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13535 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13537 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13539 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13541 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13543 * obsd-tdep.h (obsd_init_abi): New prototype.
13544 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13545 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13546 (obsd_init_abi): New functions.
13547 * i386obsd-tdep.c: Include "obsd-tdep.h".
13548 (i386obsd_init_abi): Call obsd_init_abi.
13549 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13550 (amd64obsd_init_abi): Call obsd_init_abi.
13551 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13552 obsd-tdep.c to gdb_target_obs.
13554 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13556 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13557 double float arguments to 16-byte in the argument slots.
13559 2014-02-11 Doug Evans <xdje42@gmail.com>
13561 * configure.ac: Don't crash if pkg-config is not found and guile
13562 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13564 * configure: Regenerate.
13566 2014-02-11 Yao Qi <yao@codesourcery.com>
13568 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13569 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13570 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13571 * gnu-nat.c (gnu_xfer_memory): Likewise.
13572 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13573 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13574 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13575 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13577 2014-02-11 Yao Qi <yao@codesourcery.com>
13579 * target.h (enum target_xfer_error): Rename to ...
13580 (enum target_xfer_status): ... it. New. All users updated.
13581 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13583 (TARGET_XFER_STATUS_ERROR_P): New macro.
13584 (target_xfer_error_to_string): Remove declaration.
13585 (target_xfer_status_to_string): Declare.
13586 (target_xfer_partial_ftype): Adjust it.
13587 (struct target_ops) <to_xfer_partial>: Return
13588 target_xfer_status. Add argument xfered_len. Update
13590 * target.c (target_xfer_error_to_string): Rename to ...
13591 (target_xfer_status_to_string): ... it. New. All callers
13593 (target_read_live_memory): Likewise. Call target_xfer_partial
13594 instead of target_read.
13595 (memory_xfer_live_readonly_partial): Return
13596 target_xfer_status. Add argument xfered_len.
13597 (raw_memory_xfer_partial): Likewise.
13598 (memory_xfer_partial_1): Likewise.
13599 (memory_xfer_partial): Likewise.
13600 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13601 properly. Update debug message.
13602 (default_xfer_partial, current_xfer_partial): Likewise.
13603 (target_write_partial): Likewise.
13604 (target_read_partial): Likewise. All callers updated.
13605 (read_whatever_is_readable): Likewise.
13606 (target_write_with_progress): Likewise.
13607 (target_read_alloc_1): Likewise.
13609 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13610 * auxv.c (procfs_xfer_auxv): Likewise.
13611 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13612 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13613 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13614 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13615 * corefile.c (read_memory): Adjust.
13616 * corelow.c (core_xfer_partial): Likewise.
13617 * ctf.c (ctf_xfer_partial): Likewise.
13618 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13620 (darwin_xfer_partial): Likewise.
13621 * exec.c (section_table_xfer_memory_partial): Likewise. All
13623 (exec_xfer_partial): Likewise.
13624 * exec.h (section_table_xfer_memory_partial): Update
13626 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13628 (gnu_xfer_partial): Likewise.
13629 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13630 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13631 (ia64_hpux_xfer_solib_got): Likewise.
13632 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13633 type of 'partial_len' to ULONGEST.
13634 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13635 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13636 (linux_nat_xfer_partial): Likewise.
13637 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13638 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13639 * monitor.c (monitor_xfer_memory): Likewise.
13640 (monitor_xfer_partial): Likewise.
13641 * procfs.c (procfs_xfer_partial): Likewise.
13642 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13643 * record-full.c (record_full_xfer_partial): Likewise.
13644 (record_full_core_xfer_partial): Likewise.
13645 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13646 (gdbsim_xfer_partial): Likewise.
13647 * remote.c (remote_write_bytes_aux): Likewise. All callers
13649 (remote_write_bytes, remote_read_bytes): Likewise. All
13651 (remote_flash_erase): Likewise. All callers updated.
13652 (remote_write_qxfer): Likewise. All callers updated.
13653 (remote_read_qxfer): Likewise. All callers updated.
13654 (remote_xfer_partial): Likewise.
13655 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13656 (rs6000_xfer_shared_libraries): Likewise.
13657 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13658 (sol_thread_xfer_partial): Likewise.
13659 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13660 (sparc_xfer_partial): Likewise.
13661 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13663 (spu_xfer_partial): Likewise.
13664 * spu-multiarch.c (spu_xfer_partial): Likewise.
13665 * tracepoint.c (tfile_xfer_partial): Likewise.
13666 * windows-nat.c (windows_xfer_memory): Likewise.
13667 (windows_xfer_shared_libraries): Likewise.
13668 (windows_xfer_partial): Likewise.
13669 * valprint.c: Replace 'target_xfer_error' with
13670 'target_xfer_status' in comments.
13672 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13674 Checked in by Joel Brobecker <brobecker@adacore.com>.
13675 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13677 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13679 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13680 function parameters.
13682 2014-02-10 Will Newton <will.newton@linaro.org>
13684 * elfread.c (elf_rel_plt_read): Look for a .got section if
13685 looking up .got.plt fails.
13686 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13687 on address passed to elf_gnu_ifunc_record_cache.
13688 (elf_gnu_ifunc_resolve_addr): Likewise.
13689 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13691 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13693 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13694 (X_RETTURN): New macro.
13695 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13697 * sparc64-tdep.c (sparc64_init_abi): Hook
13698 sparc_in_function_epilogue_p.
13700 2014-02-10 Gary Benson <gbenson@redhat.com>
13702 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13703 Rename name_matcher to symbol_matcher.
13705 2014-02-10 Gary Benson <gbenson@redhat.com>
13707 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13708 Use expand_symtabs_file_matcher_ftype and
13709 expand_symtabs_symbol_matcher_ftype.
13711 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13713 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13714 (struct ada_symbol_cache): New.
13715 (ada_free_symbol_cache): Forward declare.
13716 (struct ada_pspace_data): New.
13717 (ada_pspace_data_handle): New static global.
13718 (get_ada_pspace_data, ada_pspace_data_cleanup)
13719 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13720 (cache_space, cache): Delete, now folded inside struct
13722 (ada_get_symbol_cache): New function.
13723 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13725 (_initialize_ada_language): Remove initialization of cache_space.
13726 Move call to observer_attach_inferior_exit up, grouping it
13727 with the other observer registrations inside this function.
13728 Rename command to be more general. Add call to
13729 register_program_space_data_with_cleanup.
13731 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13733 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13734 ada_new_objfile_observer.
13735 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13736 (_initialize_tasks): Update uses of ada_new_objfile_observer
13737 and ada_tasks_normal_stop_observer.
13739 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13741 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13742 returned by the 'Length attribute to integer.
13744 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13746 * ada-lang.c (_initialize_ada_language): Initialize
13747 cache_space obstack.
13749 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13751 * ada-lang.c (HASH_SIZE): New macro.
13752 (struct cache_entry): New type.
13753 (cache_space, cache): New static globals.
13754 (ada_clear_symbol_cache, find_entry): New functions.
13755 (lookup_cached_symbol, cache_symbol): Implement.
13756 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13757 (_initialize_ada_language): Attach ada_new_objfile_observer
13758 and ada_free_objfile_observer.
13760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13762 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13763 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13764 struct block * parameter.
13765 (ada_lookup_symbol_list_worker): Constify local variable "block".
13766 Remove cast which is no longer necessary.
13768 2014-02-10 Doug Evans <xdje42@gmail.com>
13770 Add Guile as an extension language.
13771 * NEWS: Mention Guile scripting.
13772 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13773 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13774 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13775 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13776 (CLIBS): Add GUILE_LIBS.
13777 (install-guile): New rule.
13778 (guile.o): New rule.
13779 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13780 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13781 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13782 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13783 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13784 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13785 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13786 * configure.ac: New option --with-guile.
13787 * configure: Regenerate.
13788 * config.in: Regenerate.
13789 * auto-load.c: Remove #include "python/python.h". Add #include
13790 "gdb/section-scripts.h".
13791 (source_section_scripts): Handle Guile scripts.
13792 (_initialize_auto_load): Add name of Guile objfile script to
13793 scripts-directory help text.
13794 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13795 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13796 (struct breakpoint): New member scm_bp_object.
13797 * defs.h (enum command_control_type): New value guile_control.
13798 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13800 (show_user): Update comment.
13801 (_initialize_cli_cmds): Update help text for "show user". Update help
13802 text for max-user-call-depth.
13803 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13805 (multi_line_command_p): Add guile_control.
13806 (print_command_lines): Handle guile_control.
13807 (execute_control_command, recurse_read_control_structure): Ditto.
13808 (process_next_line): Recognize "guile" commands.
13809 * disasm.c (gdb_disassemble_info): Make non-static.
13810 * disasm.h: #include "dis-asm.h".
13811 (struct gdbarch): Add forward decl.
13812 (gdb_disassemble_info): Declare.
13813 * extension.c: #include "guile/guile.h".
13814 (extension_languages): Add guile.
13815 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13816 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13817 * gdbtypes.c (get_unsigned_type_max): New function.
13818 (get_signed_type_minmax): New function.
13819 * gdbtypes.h (get_unsigned_type_max): Declare.
13820 (get_signed_type_minmax): Declare.
13821 * guile/README: New file.
13822 * guile/guile-internal.h: New file.
13823 * guile/guile.c: New file.
13824 * guile/guile.h: New file.
13825 * guile/scm-arch.c: New file.
13826 * guile/scm-auto-load.c: New file.
13827 * guile/scm-block.c: New file.
13828 * guile/scm-breakpoint.c: New file.
13829 * guile/scm-disasm.c: New file.
13830 * guile/scm-exception.c: New file.
13831 * guile/scm-frame.c: New file.
13832 * guile/scm-gsmob.c: New file.
13833 * guile/scm-iterator.c: New file.
13834 * guile/scm-lazy-string.c: New file.
13835 * guile/scm-math.c: New file.
13836 * guile/scm-objfile.c: New file.
13837 * guile/scm-ports.c: New file.
13838 * guile/scm-pretty-print.c: New file.
13839 * guile/scm-safe-call.c: New file.
13840 * guile/scm-string.c: New file.
13841 * guile/scm-symbol.c: New file.
13842 * guile/scm-symtab.c: New file.
13843 * guile/scm-type.c: New file.
13844 * guile/scm-utils.c: New file.
13845 * guile/scm-value.c: New file.
13846 * guile/lib/gdb.scm: New file.
13847 * guile/lib/gdb/boot.scm: New file.
13848 * guile/lib/gdb/experimental.scm: New file.
13849 * guile/lib/gdb/init.scm: New file.
13850 * guile/lib/gdb/iterator.scm: New file.
13851 * guile/lib/gdb/printing.scm: New file.
13852 * guile/lib/gdb/types.scm: New file.
13853 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13854 (VPATH): Add $(GUILE_SRCDIR).
13855 (GUILE_DIR): New variable.
13856 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13857 (all): Add stamp-guile dependency.
13858 (stamp-guile): New rule.
13859 (clean-guile, install-guile, uninstall-guile): New rules.
13860 (install-only): Add install-guile dependency.
13861 (uninstall): Add uninstall-guile dependency.
13862 (clean): Add clean-guile dependency.
13864 2014-02-09 Doug Evans <xdje42@gmail.com>
13866 Revert this patch (which I approved, mea culpa).
13868 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13870 * Makefile.in (all-lib): Remove.
13871 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13873 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13875 Fix Python stack corruption.
13876 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13879 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13881 * Makefile.in (all-lib): Remove.
13882 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13884 2014-02-07 Doug Evans <dje@google.com>
13886 * extension-priv.h (extension_language_script_ops): Add comment.
13887 (extension_language_ops): Add comment.
13888 (active_ext_lang_state): Fix typo in comment.
13890 2014-02-07 Pedro Alves <palves@redhat.com>
13892 PR breakpoints/16292
13893 * infrun.c (handle_signal_stop) <signal arrives while stepping
13894 over a breakpoint>: Switch back to the stepping thread.
13896 2014-02-07 Yao Qi <yao@codesourcery.com>
13898 * target.c (target_xfer_partial): Return zero if LEN is zero.
13900 2014-02-07 Yao Qi <yao@codesourcery.com>
13902 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13903 (ld_so_xfer_auxv): Likewise.
13904 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13905 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13906 * corelow.c (core_xfer_partial): Likewise.
13907 * ctf.c (ctf_xfer_partial): Likewise.
13908 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13909 (darwin_xfer_partial): Likewise.
13910 * exec.c (exec_xfer_partial): Likewise.
13911 * gnu-nat.c (gnu_xfer_partial): Likewise.
13912 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13913 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13914 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13915 * linux-nat.c (linux_xfer_siginfo): Likewise.
13916 (linux_proc_xfer_spu): Likewise.
13917 * procfs.c (procfs_xfer_partial): Likewise.
13918 * record-full.c (record_full_xfer_partial): Likewise.
13919 (record_full_core_xfer_partial): Likewise.
13920 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13921 * remote.c (remote_write_qxfer): Likewise.
13922 (remote_write_qxfer, remote_read_qxfer): Likewise.
13923 (remote_xfer_partial): Likewise.
13924 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13925 (rs6000_xfer_shared_libraries): Likewise.
13926 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13927 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13928 (spu_xfer_partial): Likewise.
13929 * target.c (memory_xfer_partial_1): Likewise.
13930 * tracepoint.c (tfile_xfer_partial): Likewise.
13931 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13932 (windows_xfer_partial): Likewise.
13934 2014-02-07 Yao Qi <yao@codesourcery.com>
13936 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13938 (core_xfer_shared_libraries_aix): Likewise.
13939 * gdbarch.c, gdbarch.h: Regenerated.
13940 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13941 ULONGEST. Change 'len_avail' type to ULONGEST.
13942 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13943 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13945 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13947 2014-02-07 Yao Qi <yao@codesourcery.com>
13949 * corefile.c (memory_error): Get 'exception' from ERR and pass
13950 'exception' to throw_error.
13952 2014-02-06 Doug Evans <xdje42@gmail.com>
13954 * configure.ac (libpython checking): Remove all but python.o from
13955 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13956 * configure: Regenerate.
13958 * Makefile.in (SFILES): Add extension.c.
13959 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13960 (COMMON_OBS): Add extension.o.
13961 * extension.h: New file.
13962 * extension-priv.h: New file.
13963 * extension.c: New file.
13965 * python/python-internal.h: #include "extension.h".
13966 (gdbpy_auto_load_enabled): Declare.
13967 (gdbpy_apply_val_pretty_printer): Declare.
13968 (gdbpy_apply_frame_filter): Declare.
13969 (gdbpy_preserve_values): Declare.
13970 (gdbpy_breakpoint_cond_says_stop): Declare.
13971 (gdbpy_breakpoint_has_cond): Declare.
13972 (void source_python_script_for_objfile): Delete.
13973 * python/python.c: #include "extension-priv.h".
13974 Delete inclusion of "observer.h".
13975 (extension_language_python): Moved here and renamed from
13976 script_language_python in py-auto-load.c.
13977 Redefined to be of type extension_language_defn.
13978 (python_extension_script_ops): New global.
13979 (python_extension_ops): New global.
13980 (struct python_env): New member previous_active.
13981 (restore_python_env): Call restore_active_ext_lang.
13982 (ensure_python_env): Call set_active_ext_lang.
13983 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13985 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13987 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13989 (gdbpy_eval_from_control_command): Renamed from
13990 eval_python_from_control_command, made static. New arg extlang.
13991 (gdbpy_source_script) Renamed from source_python_script, made static.
13993 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13994 result to int. New arg extlang.
13995 (gdbpy_source_objfile_script): Renamed from
13996 source_python_script_for_objfile, made static. New arg extlang.
13997 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13998 static. New args extlang, extlang_printers. Change result type to
14000 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14001 static. New arg extlang. Rename arg printers to extlang_printers
14002 and change type to ext_lang_type_printers *.
14003 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14004 static. Replace argument arg with extlang, extlang_printers.
14005 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14006 (!HAVE_PYTHON, source_python_script): Delete.
14007 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14008 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14009 (!HAVE_PYTHON, start_type_printers): Delete.
14010 (!HAVE_PYTHON, apply_type_printers): Delete.
14011 (!HAVE_PYTHON, free_type_printers): Delete.
14012 (_initialize_python): Delete call to observer_attach_before_prompt.
14013 (finalize_python): Set/restore active extension language.
14014 (gdbpy_finish_initialization) Renamed from
14015 finish_python_initialization, made static. New arg extlang.
14016 (gdbpy_initialized): New function.
14017 * python/python.h: #include "extension.h". Delete #include
14018 "value.h", "mi/mi-cmds.h".
14019 (extension_language_python): Declare.
14020 (GDBPY_AUTO_FILE_NAME): Delete.
14021 (enum py_bt_status): Moved to extension.h and renamed to
14022 ext_lang_bt_status.
14023 (enum frame_filter_flags): Moved to extension.h.
14024 (enum py_frame_args): Moved to extension.h and renamed to
14025 ext_lang_frame_args.
14026 (finish_python_initialization): Delete.
14027 (eval_python_from_control_command): Delete.
14028 (source_python_script): Delete.
14029 (apply_val_pretty_printer): Delete.
14030 (apply_frame_filter): Delete.
14031 (preserve_python_values): Delete.
14032 (gdbpy_script_language_defn): Delete.
14033 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14034 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14036 * auto-load.c: #include "extension.h".
14037 (GDB_AUTO_FILE_NAME): Delete.
14038 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14039 (script_language_gdb): Delete, moved to extension.c and renamed to
14040 extension_language_gdb.
14041 (source_gdb_script_for_objfile): Delete.
14042 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14043 (loaded_script): Change type of language member to
14044 struct extension_language_defn *.
14045 (init_loaded_scripts_info): Initialize
14046 unsupported_script_warning_printed.
14047 (maybe_add_script): Make static. Change type of language arg to
14048 struct extension_language_defn *.
14049 (clear_section_scripts): Reset unsupported_script_warning_printed.
14050 (auto_load_objfile_script_1): Rewrite to use extension language API.
14051 (auto_load_objfile_script): Make public. Remove support-compiled-in
14052 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14053 (source_section_scripts): Rewrite to use extension language API.
14054 (load_auto_scripts_for_objfile): Rewrite to use
14055 auto_load_scripts_for_objfile.
14056 (collect_matching_scripts_data): Change type of language member to
14057 struct extension_language_defn *.
14058 (auto_load_info_scripts): Change type of language arg to
14059 struct extension_language_defn *.
14060 (unsupported_script_warning_print): New function.
14061 (script_not_found_warning_print): Make static.
14062 (_initialize_auto_load): Rewrite construction of scripts-directory
14064 * auto-load.h (struct objfile): Add forward decl.
14065 (struct script_language): Delete.
14066 (struct auto_load_pspace_info): Add forward decl.
14067 (struct extension_language_defn): Add forward decl.
14068 (maybe_add_script): Delete.
14069 (auto_load_objfile_script): Declare.
14070 (script_not_found_warning_print): Delete.
14071 (auto_load_info_scripts): Update prototype.
14072 (auto_load_gdb_scripts_enabled): Declare.
14073 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14074 auto_load_python_scripts_enabled and made public.
14075 (script_language_python): Delete, moved to python.c.
14076 (gdbpy_script_language_defn): Delete.
14077 (info_auto_load_python_scripts): Update to use
14078 extension_language_python.
14080 * breakpoint.c (condition_command): Replace call to
14081 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14082 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14083 with call to breakpoint_ext_lang_cond_says_stop.
14084 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14085 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14086 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14087 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14089 (local_setattro): Print name of extension language with existing
14092 * valprint.c (val_print, value_print): Update to call
14093 apply_ext_lang_val_pretty_printer.
14094 * cp-valprint.c (cp_print_value): Update call to
14095 apply_ext_lang_val_pretty_printer.
14096 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14097 (gdbpy_apply_val_pretty_printer): Renamed from
14098 apply_val_pretty_printer. New arg extlang.
14099 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14101 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14102 extension language API.
14103 * cli/cli-script.c (execute_control_command): Update to call
14104 eval_ext_lang_from_control_command.
14106 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14107 enum ext_lang_bt_status values. Update call to
14108 apply_ext_lang_frame_filter.
14109 (mi_cmd_stack_list_locals): Ditto.
14110 (mi_cmd_stack_list_args): Ditto.
14111 (mi_cmd_stack_list_variables): Ditto.
14112 * mi/mi-main.c: Delete #include "python/python-internal.h".
14113 Add #include "extension.h".
14114 (mi_cmd_list_features): Replace reference to python internal variable
14115 gdb_python_initialized with call to ext_lang_initialized_p.
14117 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14118 Update to use enum ext_lang_frame_args. Update to call
14119 apply_ext_lang_frame_filter.
14120 * python/py-framefilter.c (extract_sym): Update to use enum
14121 ext_lang_bt_status.
14122 (extract_value, py_print_type, py_print_value): Ditto.
14123 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14124 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14125 (py_print_frame): Ditto.
14126 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14127 New arg extlang. Update to use enum ext_lang_bt_status.
14129 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14130 finish_python_initialization. Replace with call to
14131 finish_ext_lang_initialization.
14133 * typeprint.c (do_free_global_table): Update to call
14134 free_ext_lang_type_printers.
14135 (create_global_typedef_table): Update to call
14136 start_ext_lang_type_printers.
14137 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14138 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14139 (type_print_options): Change type of global_printers from "void *"
14140 to "struct ext_lang_type_printers *".
14142 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14143 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14144 (gdbpy_preserve_values): Renamed from preserve_python_values.
14146 (!HAVE_PYTHON, preserve_python_values): Delete.
14148 * utils.c (quit_flag): Delete, moved to extension.c.
14149 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14152 * eval.c: Delete #include "python/python.h".
14153 * main.c: Delete #include "python/python.h".
14155 * defs.h: Update comment.
14157 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14161 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14163 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14166 2014-02-05 Yao Qi <yao@codesourcery.com>
14168 * remote.c (remote_pass_signals): Remove local 'buf' and use
14170 (remote_program_signals): Likewise.
14172 2014-02-05 Yao Qi <yao@codesourcery.com>
14174 * ctf.c: Include "inferior.h" and "gdbthread.h".
14175 (CTF_PID): A new macro.
14176 (ctf_open): Call inferior_appeared and add_thread_silent.
14177 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14178 (ctf_thread_alive): New function.
14179 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14181 2014-02-05 Yao Qi <yao@codesourcery.com>
14185 2013-05-24 Yao Qi <yao@codesourcery.com>
14187 * tracepoint.c (TFILE_PID): Remove.
14188 (tfile_open): Don't add thread and inferior.
14189 (tfile_close): Don't set 'inferior_ptid'. Don't call
14190 exit_inferior_silent.
14191 (tfile_thread_alive): Remove.
14192 (init_tfile_ops): Don't set field 'to_thread_alive' of
14195 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14197 * remote.c (remote_start_remote): Call remote_check_symbols even
14198 if only symbol-file (not file) has been given.
14200 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14202 * gdbarch.sh (skip_entrypoint): New callback.
14203 * gdbarch.c, gdbarch.h: Regenerate.
14204 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14205 * infrun.c (fill_in_stop_func): Likewise.
14206 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14207 (ppc_elfv2_elf_make_msymbol_special): New function.
14208 (ppc_elfv2_skip_entrypoint): Likewise.
14209 (ppc_linux_init_abi): Install them for ELFv2.
14211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14213 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14214 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14215 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14216 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14217 structures returned in GPRs.
14219 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14221 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14222 offset to the stack parameter list for the ELFv2 ABI.
14224 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14226 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14227 set_gdbarch_convert_from_func_ptr_addr and
14228 set_gdbarch_elf_make_msymbol_special for ELFv1.
14229 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14230 function descriptors on ELFv1.
14231 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14232 set up r12 at function entry.
14234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14236 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14237 (struct gdbarch_tdep): New member elf_abi.
14239 * rs6000-tdep.c: Include "elf/ppc64.h".
14240 (rs6000_gdbarch_init): Detect ELF ABI version.
14242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14245 within a register pair holding a DFP 128-bit value on little-endian.
14246 (ppc64_sysv_abi_return_value_base): Likewise.
14247 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14248 (dfp_pseudo_register_write): Likewise.
14250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14253 offset on little-endian when passing _Decimal32.
14254 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14256 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14258 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14259 of the overlapped FP register within the VSX register on little-
14261 (efpr_pseudo_register_write): Likewise.
14263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14265 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14266 offset on little-endian when passing small structures.
14268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14270 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14271 (struct ppc64_sysv_argpos): New data structure.
14272 (ppc64_sysv_abi_push_float): Remove.
14273 (ppc64_sysv_abi_push_val): New function.
14274 (ppc64_sysv_abi_push_integer): Likewise.
14275 (ppc64_sysv_abi_push_freg): Likewise.
14276 (ppc64_sysv_abi_push_vreg): Likewise.
14277 (ppc64_sysv_abi_push_param): Likewise.
14278 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14279 (ppc64_sysv_abi_return_value_base): New function.
14280 (ppc64_sysv_abi_return_value): Refactor to use it.
14282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14284 * NEWS: Document new target powerpc64le-*-linux*.
14286 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14288 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14289 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14291 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14292 register set used in ELF core dumps. Add floating-point register set.
14294 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14296 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14297 dwarf2_to_gdb[] table using symbolic constants. Adjust
14298 penultimate entry from number representing the PC register
14299 to symbolic constant representing the MDR register. Add
14300 constant for the PC register to the end of the table.
14302 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14304 * bsd-kvm.c: Include <sys/param.h>
14306 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14308 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14310 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14312 * ada-lang.h (clear_ada_sym_cache): Delete.
14314 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14316 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14318 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14320 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14321 the sigreturn register save area only if the syscall is
14324 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14326 * valops.c (value_slice): Minor reformatting.
14328 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14330 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14332 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14334 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14335 New static globals.
14336 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14337 (ada_ignore_descriptive_types_p): New static global.
14338 (find_parallel_type_by_descriptive_type): Return immediately
14339 if ada_ignore_descriptive_types_p is set.
14340 (_initialize_ada_language): Register new commands "maintenance
14341 set ada", "maintenance show ada", "maintenance set ada
14342 ignore-descriptive-types" and "maintenance show ada
14343 ignore-descriptive-types".
14344 * NEWS: Add entry for new "maint ada set/show
14345 ignore-descriptive-types" commands.
14347 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14349 * record-btrace.c (record_btrace_close): Call btrace_teardown
14352 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14354 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14357 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14359 * ada-typeprint (type_is_full_subrange_of_target_type):
14361 (print_range): Add parameter bounds_prefered_p. If not set,
14362 try printing range types using the name of their base type.
14363 (print_range_type): Add parameter bounds_prefered_p.
14364 Use it in call to print_range.
14365 (print_array_type, ada_print_type): Update calls to print_range
14366 and print_range_type.
14368 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14370 * ada-typeprint.c (print_array_type, print_choices, print_range)
14371 (print_range_bound, print_dynamic_range_bound, print_range_type):
14372 Remove declaration.
14374 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14376 * ada-typeprint.c (print_range): Add missing empty line
14377 after local declaration.
14379 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14381 * ada-valprint.c (print_optional_low_bound): Get index_type's
14382 target type for as long as it is a TYPE_CODE_RANGE.
14384 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14386 * procfs.c (procfs_make_note_section): Remove assertion and
14387 associated comment.
14389 2014-01-24 Yao Qi <yao@codesourcery.com>
14391 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14392 * corelow.c (get_core_siginfo): Likewise.
14394 2014-01-24 Yao Qi <yao@codesourcery.com>
14396 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14397 ULONGEST. Don't check 'len' is negative.
14398 (remote_write_bytes): Change type of 'len' to ULONGEST.
14400 2014-01-23 Tom Tromey <tromey@redhat.com>
14403 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14404 Handle exception from frame.block.
14405 (FrameVars.fetch_frame_locals): Likewise.
14407 2014-01-23 Tom Tromey <tromey@redhat.com>
14410 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14411 on a NULL pointer. Move "goto error" to correct place.
14413 2014-01-23 Tom Tromey <tromey@redhat.com>
14416 * python/py-framefilter.c (apply_frame_filter): Call
14417 ensure_python_env after computing gdbarch.
14419 2014-01-23 Yao Qi <yao@codesourcery.com>
14421 * target.c (raw_memory_xfer_partial): Change argument type
14422 from void * to gdb_byte *.
14423 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14425 2014-01-22 Doug Evans <dje@google.com>
14427 New gdbserver option --debug-format=timestamp.
14428 * NEWS: Mention it.
14430 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14432 * syscalls/s390x-linux.xml: New file.
14433 * syscalls/s390-linux.xml: New file.
14434 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14435 (XML_SYSCALL_FILENAME_S390X): Likewise.
14436 (op_svc): New enum value for SVC opcode.
14437 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14438 (s390_linux_get_syscall_number): New function.
14439 (s390_gdbarch_init): Register '*get_syscall_number' and the
14440 syscall xml file name.
14441 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14442 "s390-linux.xml" and "s390x-linux.xml".
14443 * NEWS: Announce new feature.
14445 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14447 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14449 2014-01-22 Pedro Alves <palves@redhat.com>
14451 * xtensa-config.c: Include defs.h.
14453 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14455 * common/common-utils.h: Add "ARI:" comment beside __func__
14458 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14460 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14461 documentation a bit.
14463 2014-01-21 Roland McGrath <mcgrathr@google.com>
14465 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14466 * configure: Regenerate.
14467 * aclocal.m4: Regenerate.
14468 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14469 New substituted variables.
14470 (install-strip): New target.
14471 (INSTALL_SCRIPT): New substituted variable.
14472 (FLAGS_TO_PASS): Add it.
14473 (install-only): Use $(INSTALL_SCRIPT) rather than
14474 $(INSTALL_PROGRAM) for gcore.
14476 2014-01-20 Tom Tromey <tromey@redhat.com>
14478 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14481 2014-01-20 Tom Tromey <tromey@redhat.com>
14483 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14484 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14485 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14486 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14487 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14488 (struct cmd_list_element) <flags>: Remove.
14489 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14490 doc_allocated>: New fields.
14491 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14493 * maint.c (maintenance_do_deprecate): Update.
14494 * top.c (execute_command): Update.
14496 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14498 * xtensa-linux-nat.c: Include asm/ptrace.h.
14500 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14502 * Makefile.in (SFILES): Add d-support.c.
14503 (COMMON_OBS): Add d-support.o.
14504 * d-lang.h (d_parse_symbol): Add comment, now defined in
14506 * d-lang.c (parse_call_convention)
14507 (parse_attributes, parse_function_types)
14508 (parse_function_args, parse_type, parse_identifier)
14509 (call_convention_p, d_parse_symbol): Move functions to ...
14510 * d-support.c: ... New file.
14512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14514 * d-lang.h (d_parse_symbol): Add declaration.
14515 * d-lang.c (extract_identifiers)
14516 (extract_type_info): Remove functions.
14517 (parse_call_convention, parse_attributes)
14518 (parse_function_types, parse_function_args)
14519 (parse_type, parse_identifier, call_convention_p)
14520 (d_parse_symbol): New functions.
14521 (d_demangle): Use d_parse_symbol to demangle D symbols.
14523 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14525 * d-lang.h (struct builtin_d_type): New data type.
14526 (builtin_d_type): Add declaration.
14527 * d-lang.c (d_language_arch_info, build_d_types)
14528 (builtin_d_type): New functions.
14529 (enum d_primitive_types): New data type.
14530 (d_language_defn): Change c_language_arch_info to
14531 d_language_arch_info.
14532 (d_type_data): New static variable.
14533 (_initialize_d_language): Initialize d_type_data.
14535 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14537 * d-lang.h (d_main_name): Add declaration.
14538 * d-lang.c (d_main_name): New function.
14539 * symtab.c (find_main_name): Add call to d_main_name.
14541 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14543 * d-lang.c (d_language_defn): Change macro_expansion_c to
14544 macro_expansion_no.
14546 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14548 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14550 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14552 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14553 gdb_exception" declaration.
14554 * remote.c (getpkt_or_notif_sane): Likewise.
14556 2014-01-17 Doug Evans <dje@google.com>
14558 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14559 function, contents of dirnames_to_char_ptr_vec_append moved here.
14560 (delim_string_to_char_ptr_vec): New function.
14561 (dirnames_to_char_ptr_vec_append): Rewrite.
14562 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14564 2014-01-17 Doug Evans <dje@google.com>
14566 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14568 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14569 #include "common-utils.h".
14570 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14571 * common/vec.h (VEC_ASSERT_PASS): Update.
14572 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14573 (MACH_CHECK_ERROR): Update.
14575 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14577 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14579 * gdbarch.h: Regenerate.
14581 2014-01-16 Tom Tromey <tromey@redhat.com>
14583 * value.c (struct value) <regnum>: Move earlier.
14585 2014-01-16 Tom Tromey <tromey@redhat.com>
14587 * remote.c (extended_remote_create_inferior): Rename from
14588 extended_remote_create_inferior_1. Add "ops" argument. Remove
14589 old implementation.
14591 2014-01-16 Pedro Alves <palves@redhat.com>
14593 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14594 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14597 2014-01-16 Doug Evans <dje@google.com>
14599 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14603 * btrace.h (btrace_thread_flag): New.
14604 (struct btrace_thread_info) <flags>: New.
14605 * record-btrace.c (record_btrace_resume_thread)
14606 (record_btrace_find_thread_to_move, btrace_step_no_history)
14607 (btrace_step_stopped, record_btrace_start_replaying)
14608 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14609 (record_btrace_find_resume_thread): New.
14610 (record_btrace_resume, record_btrace_wait): Extend.
14611 (record_btrace_can_execute_reverse): New.
14612 (record_btrace_open): Fail in non-stop mode.
14613 (record_btrace_set_replay): Split into this, ...
14614 (record_btrace_stop_replaying): ... this, ...
14615 (record_btrace_clear_histories): ... and this.
14616 (init_record_btrace_ops): Init to_can_execute_reverse.
14617 * NEWS: Announce it.
14619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14621 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14622 (forward_target_decr_pc_after_break)
14623 (target_decr_pc_after_break): New.
14624 * target.c (forward_target_decr_pc_after_break)
14625 (target_decr_pc_after_break): New.
14626 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14627 instead of gdbarch_decr_pc_after_break.
14628 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14629 instead of gdbarch_decr_pc_after_break.
14630 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14631 instead of gdbarch_decr_pc_after_break.
14632 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14633 instead of gdbarch_decr_pc_after_break.
14634 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14635 instead of gdbarch_decr_pc_after_break.
14636 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14637 instead of gdbarch_decr_pc_after_break.
14639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14641 * btrace.c: Include regcache.h.
14642 (btrace_add_pc): New.
14643 (btrace_enable): Call btrace_add_pc.
14644 (btrace_is_empty): New.
14645 * btrace.h (btrace_is_empty): New.
14646 * record-btrace.c (require_btrace, record_btrace_info): Call
14649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14651 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14652 Support delta reads.
14653 (linux_disable_btrace): Change return type.
14654 * common/linux-btrace.h (linux_read_btrace): Change parameters
14655 and return type to allow error reporting. Update users.
14656 (linux_disable_btrace): Change return type. Update users.
14657 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14659 (btrace_error): New.
14660 (btrace_block) <begin>: Comment on BEGIN == 0.
14661 * btrace.c (btrace_compute_ftrace): Start from the end of
14663 (btrace_stitch_trace, btrace_clear_history): New.
14664 (btrace_fetch): Read delta trace, return if replaying.
14665 (btrace_clear): Move clear history code to btrace_clear_history.
14666 (parse_xml_btrace): Throw an error if parsing failed.
14667 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14668 and return type to allow error reporting.
14669 (target_read_btrace): Change parameters and return type to allow
14671 * target.c (target_read_btrace): Update.
14672 * remote.c (remote_read_btrace): Support delta reads. Pass
14674 * NEWS: Announce it.
14676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14678 * record.h (record_btrace_frame_unwind)
14679 (record_btrace_tailcall_frame_unwind): New declarations.
14680 * dwarf2-frame: Include record.h
14681 (dwarf2_frame_cfa): Throw an error for btrace frames.
14682 * record-btrace.c: Include hashtab.h.
14683 (btrace_get_bfun_name): New.
14684 (btrace_call_history): Call btrace_get_bfun_name.
14685 (struct btrace_frame_cache): New.
14687 (bfcache_hash, bfcache_eq, bfcache_new): New.
14688 (btrace_get_frame_function): New.
14689 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14690 (record_btrace_frame_this_id): Compute own id.
14691 (record_btrace_frame_prev_register): Provide PC, throw_error
14692 for all other registers.
14693 (record_btrace_frame_sniffer): Detect btrace frames.
14694 (record_btrace_tailcall_frame_sniffer): New.
14695 (record_btrace_frame_dealloc_cache): New.
14696 (record_btrace_frame_unwind): Add new functions.
14697 (record_btrace_tailcall_frame_unwind): New.
14698 (_initialize_record_btrace): Allocate cache.
14699 * btrace.c (btrace_clear): Call reinit_frame_cache.
14700 * NEWS: Announce it.
14702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14704 * record-btrace.c (record_btrace_set_replay)
14705 (record_btrace_goto_begin, record_btrace_goto_end)
14706 (record_btrace_goto): New.
14707 (init_record_btrace_ops): Initialize them.
14708 * NEWS: Announce it.
14710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14712 * record-btrace.c (record_btrace_find_new_threads)
14713 (record_btrace_thread_alive): New.
14714 (init_record_btrace_ops): Initialize to_find_new_threads and
14717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14719 * record-btrace.c (record_btrace_resume): New.
14720 (record_btrace_wait): New.
14721 (init_record_btrace_ops): Initialize to_wait and to_resume.
14723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14725 * record-btrace.c (record_btrace_xfer_partial)
14726 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14727 (record_btrace_allow_memory_access): New.
14728 (init_record_btrace_ops): Initialize new methods.
14729 * target.c (raw_memory_xfer_partial): Bail out if target reports
14730 that this memory is not available.
14732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14734 * target.h (target_ops) <to_insert_breakpoint>
14735 <to_remove_breakpoint>: Add target_ops parameter.
14736 (forward_target_insert_breakpoint): New.
14737 (forward_target_remove_breakpoint): New.
14738 (memory_remove_breakpoint, memory_insert_breakpoint):
14739 Add target_ops parameter.
14740 * target.c (target_insert_breakpoint): Split into this and ...
14741 (forward_target_insert_breakpoint): ... this.
14742 (target_remove_breakpoint): Split into this and ...
14743 (forward_target_remove_breakpoint): ... this.
14744 (debug_to_insert_breakpoint): Add target_ops parameter.
14745 Call forward_target_insert_breakpoint.
14746 (debug_to_remove_breakpoint): Add target_ops parameter.
14747 Call forward_target_remove_breakpoint.
14748 (update_current_target): Do not inherit or default to_insert_breakpoint
14749 and to_remove_breakpoint.
14750 * corelow.c (ignore): Add target_ops parameter.
14751 * exec.c (ignore): Add target_ops parameter.
14752 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14753 Add target_ops parameter.
14754 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14755 Add target_ops parameter.
14756 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14757 Add target_ops parameter.
14758 * record-full.c (record_full_beneath_to_insert_breakpoint)
14759 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14760 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14761 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14762 (record_full_core_remove_breakpoint): Add target_ops parameter.
14764 (record_full_beneath_to_insert_breakpoint_ops)
14765 (record_full_beneath_to_remove_breakpoint_ops)
14766 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14767 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14768 tmp_to_remove_breakpoint_ops,
14769 record_full_beneath_to_insert_breakpoint_ops, and
14770 record_full_beneath_to_remove_breakpoint_ops.
14771 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14772 (m32r_remove_breakpoint): Add target_ops parameter.
14773 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14774 Add target_ops parameter.
14775 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14776 Add target_ops parameter.
14778 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14779 Markus Metzger <markus.t.metzger@intel.com>
14781 * record-btrace.c: Include frame-unwind.h.
14782 (record_btrace_frame_unwind_stop_reason)
14783 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14784 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14786 (init_record_btrace_ops): Install it.
14788 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14790 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14793 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14795 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14798 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14800 * frame-unwind.c: Include target.h.
14801 (frame_unwind_try_unwinder): New function with code from ...
14802 (frame_unwind_find_by_frame): ... here. New variable
14803 unwinder_from_target, call also target_get_unwinder)
14804 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14805 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14806 * target.h (struct target_ops): New fields to_get_unwinder and
14807 to_get_tailcall_unwinder.
14808 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14812 * record-btrace.c (record_btrace_fetch_registers)
14813 (record_btrace_store_registers)
14814 (record_btrace_to_prepare_to_store): New.
14815 (init_record_btrace_ops): Add the above.
14817 2014-01-16 Tom Tromey <tromey@redhat.com>
14819 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14820 * target.h (struct target_ops) <to_prepare_to_store>: Add
14822 (target_prepare_to_store): Add argument.
14823 * target.c (debug_to_prepare_to_store): Add argument.
14824 (update_current_target): Update.
14825 * remote.c (remote_prepare_to_store): Add 'self' argument.
14826 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14827 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14828 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14829 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14831 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14832 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14833 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14834 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14835 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14839 * btrace.h (replay) <replay>: New.
14840 (btrace_is_replaying): New.
14841 * btrace.c (btrace_clear): Free replay iterator.
14842 (btrace_is_replaying): New.
14843 * record-btrace.c (record_btrace_is_replaying): New.
14844 (record_btrace_info): Print insn number if replaying.
14845 (record_btrace_insn_history): Start at replay position.
14846 (record_btrace_call_history): Start at replay position.
14847 (init_record_btrace_ops): Init to_record_is_replaying.
14849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14851 * record-btrace.c (record_btrace_insn_history_range): Include
14853 (record_btrace_insn_history_from): Adjust range.
14854 (record_btrace_call_history_range): Include
14856 (record_btrace_call_history_from): Adjust range.
14857 * NEWS: Announce changes.
14859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14861 * record.h (enum record_print_flag)
14862 <record_print_indent_calls>: New.
14863 * record.c (get_call_history_modifiers): Recognize /c modifier.
14864 (_initialize_record): Document /c modifier.
14865 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14866 Reorder fields. Optionally indent the function name. Update
14868 * NEWS: Announce changes.
14870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14872 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14876 * btrace.c (ftrace_new_function): Start counting at one.
14877 * record-btrace.c (record_btrace_info): Adjust number of calls
14879 * NEWS: Announce it.
14881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14883 * record-btrace.c (btrace_call_history_insn_range): Print
14884 insn range as [begin, end].
14886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14888 * btrace.h (struct btrace_func_link): New.
14889 (enum btrace_function_flag): New.
14890 (struct btrace_inst): Rename to ...
14891 (struct btrace_insn): ...this. Update all users.
14892 (struct btrace_func) <ibegin, iend>: Remove.
14893 (struct btrace_func_link): New.
14894 (struct btrace_func): Rename to ...
14895 (struct btrace_function): ...this. Update all users.
14896 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14897 (number, level, flags>: New.
14898 (struct btrace_insn_iterator): Rename to ...
14899 (struct btrace_insn_history): ...this.
14901 (struct btrace_insn_iterator, btrace_call_iterator): New.
14902 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14903 (struct btrace_target_info) <begin, end, level>
14904 <insn_history, call_history>: New.
14905 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14906 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14907 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14908 (btrace_call_number, btrace_call_begin, btrace_call_end)
14909 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14910 (btrace_find_function_by_number, btrace_set_insn_history)
14911 (btrace_set_call_history): New.
14912 * btrace.c (btrace_init_insn_iterator)
14913 (btrace_init_func_iterator, compute_itrace): Remove.
14914 (ftrace_print_function_name, ftrace_print_filename)
14915 (ftrace_skip_file): Change
14916 parameter to const.
14917 (ftrace_init_func): Remove.
14918 (ftrace_debug): Use new btrace_function fields.
14919 (ftrace_function_switched): Also consider gaining and
14920 losing symbol information).
14921 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14922 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14923 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14925 (ftrace_new_function): Move. Remove debug print.
14926 (ftrace_update_lines, ftrace_update_insns): New.
14927 (ftrace_update_function): Check for call, ret, and jump.
14928 (compute_ftrace): Renamed to ...
14929 (btrace_compute_ftrace): ...this. Rewritten to compute call
14931 (btrace_fetch, btrace_clear): Updated.
14932 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14933 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14934 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14935 (btrace_call_number, btrace_call_begin, btrace_call_end)
14936 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14937 (btrace_find_function_by_number, btrace_set_insn_history)
14938 (btrace_set_call_history): New.
14939 * record-btrace.c (require_btrace): Use new btrace thread
14941 (record_btrace_info, btrace_insn_history)
14942 (record_btrace_insn_history, record_btrace_insn_history_range):
14943 Use new btrace thread info fields and new iterator.
14944 (btrace_func_history_src_line): Rename to ...
14945 (btrace_call_history_src_line): ...this. Use new btrace
14946 thread info fields.
14947 (btrace_func_history): Rename to ...
14948 (btrace_call_history): ...this. Use new btrace thread info
14949 fields and new iterator.
14950 (record_btrace_call_history, record_btrace_call_history_range):
14951 Use new btrace thread info fields and new iterator.
14953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14955 * frame.h (frame_id_build_unavailable_stack_special): New.
14956 * frame.c (frame_id_build_unavailable_stack_special): New.
14958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14960 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14961 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14962 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14964 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14965 (i386_insn_is_jump, i386_jmp_p): New.
14966 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14967 insn_is_jump to gdbarch.
14968 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14969 * gdbarch.h: Regenerated.
14970 * gdbarch.c: Regenerated.
14971 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14972 (default_insn_is_jump): New.
14973 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14974 (default_insn_is_jump): New.
14976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14978 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14980 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14981 (btrace_read_type) <btrace_read_new>: Change to ...
14982 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14986 * common/linux-btrace.c (linux_read_btrace): Free trace from
14987 previous iteration.
14989 2014-01-15 Doug Evans <dje@google.com>
14991 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14994 2014-01-15 Tom Tromey <tromey@redhat.com>
14996 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14997 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14998 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14999 (set_objfile_main_name): New function.
15000 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15001 language_of_main>: New fields.
15002 (set_objfile_main_name): Declare.
15003 * symtab.c (find_main_name): Loop over objfiles to find the main
15005 (set_main_name): Now static.
15006 (get_main_info): Add comment.
15007 * symtab.h (set_main_name): Don't declare.
15009 2014-01-15 Tom Tromey <tromey@redhat.com>
15011 * symtab.c (main_progspace_key): New global.
15012 (struct main_info): New.
15013 (name_of_main, language_of_main): Remove.
15014 (get_main_info, main_info_cleanup): New function.
15015 (set_main_name, main_name, main_language): Use get_main_info.
15016 (_initialize_symtab): Initialize main_progspace_key.
15018 2014-01-15 Tom Tromey <tromey@redhat.com>
15020 * dbxread.c (process_one_symbol): Update.
15021 * dwarf2read.c (read_partial_die): Update.
15022 * symfile.c (set_initial_language): Call main_language.
15023 * symtab.c (language_of_main): Now static.
15024 (set_main_name): Add 'lang' parameter.
15025 (find_main_name): Update.
15026 (main_language): New function.
15027 (symtab_observer_executable_changed): Update.
15028 * symtab.h (set_main_name): Update.
15029 (language_of_main): Remove.
15030 (main_language): Declare.
15032 2014-01-15 Tom Tromey <tromey@redhat.com>
15034 * symfile.c (init_entry_point_info): Use new "initialized" field.
15036 * objfiles.h (struct entry_point) <initialized>: New field.
15037 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15038 (struct objfile) <ei>: ...here. Remove.
15039 * objfiles.c (entry_point_address_query): Update.
15041 2014-01-15 Tom Tromey <tromey@redhat.com>
15043 * objfiles.c (entry_point_address_query): Relocate entry point
15045 (objfile_relocate1): Do not relocate entry point address.
15046 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15047 <the_bfd_section_index>: New field.
15048 * symfile.c (init_entry_point_info): Find the entry point's
15051 2014-01-15 Tom Tromey <tromey@redhat.com>
15053 * solib-frv.c (enable_break): Use entry_point_address_query.
15055 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15057 * NEWS: Add note on improved process record-replay on
15058 arm*-linux* targets.
15060 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15062 * arm-tdep.c (enum arm_record_result): New enum.
15063 (arm_record_unsupported_insn): New function.
15064 (arm_record_coproc_data_proc): Removed.
15065 (thumb2_record_ld_st_multiple): New function.
15066 (thumb2_record_ld_st_dual_ex_tbb): New function.
15067 (thumb2_record_data_proc_sreg_mimm): New function.
15068 (thumb2_record_ps_dest_generic): New function.
15069 (thumb2_record_branch_misc_cntrl): New function.
15070 (thumb2_record_str_single_data): New function.
15071 (thumb2_record_ld_mem_hints): New function.
15072 (thumb2_record_ld_word): New function.
15073 (thumb2_record_lmul_lmla_div): New function.
15074 (thumb2_record_decode_insn_handler): New function.
15075 (decode_insn): Add thumb32 instruction handlers.
15077 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15079 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15080 (struct arm_linux_record_tdep): Declare.
15081 (arm_canonicalize_syscall): New function.
15082 (arm_all_but_pc_registers_record): New function.
15083 (arm_linux_syscall_record): New function.
15084 (arm_linux_init_abi): Add syscall recording constructs.
15085 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15086 decoding. (arm_record_coproc_data_proc): Update arm syscall
15088 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15089 <arm_syscall_record>: New field.
15090 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15093 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15095 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15096 register for push instruction recording.
15098 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15100 * arm-tdep.c (thumb_record_misc): Update to correct logical
15101 error while recording ldm, ldmia and pop instructions.
15103 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15105 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15107 2014-01-15 Pedro Alves <palves@redhat.com>
15109 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15110 (go32_resume, go32_fetch_registers, store_register)
15111 (go32_store_registers, go32_prepare_to_store)
15112 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15113 (go32_create_inferior, go32_can_run, go32_terminal_init)
15114 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15117 2014-01-15 Tom Tromey <tromey@redhat.com>
15119 * target.h (async_callback_ftype): New typedef.
15120 (struct target_ops) <to_async>: Use it.
15122 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15124 * python/py-value.c (get_field_type): Remove unnecessary curly
15125 braces for single-statement if block.
15127 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15129 * python/py-type.c (convert_field): Add missing empty line
15130 after declarations.
15132 2014-01-14 Doug Evans <dje@google.com>
15134 * symfile.h (expand_symtabs_matching): Renamed from
15135 expand_partial_symbol_names. Update prototype.
15136 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15137 * symfile.c (expand_symtabs_matching): Renamed from
15138 expand_partial_symbol_names. New args file_matcher, kind.
15139 Rename arg fun to symbol_matcher.
15140 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15141 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15142 ada_expand_partial_symbol_name.
15143 (ada_make_symbol_completion_list): Update to call
15144 expand_symtabs_matching.
15145 (ada_add_global_exceptions): Call expand_symtabs_matching.
15146 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15147 call map_symbol_filenames.
15148 * symtab.c (sources_info): Update to call map_symbol_filenames.
15149 (search_symbols): Call expand_symtabs_matching.
15150 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15151 (default_make_symbol_completion_list_break_on): Update to call
15152 expand_symtabs_matching.
15153 (make_source_files_completion_list): Update to call
15154 map_symbol_filenames.
15156 2014-01-14 Doug Evans <dje@google.com>
15158 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15159 (expand_symtabs_symbol_matcher_ftype): New typedef.
15160 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15161 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15162 * symfile.c (expand_partial_symbol_names): Update to use
15163 expand_symtabs_symbol_matcher_ftype.
15164 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15165 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15166 Arg name_matcher renamed to symbol_matcher.
15167 * psymtab.c (recursively_search_psymtabs): Update to use
15168 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15170 (expand_symtabs_matching_via_partial): Update to use
15171 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15172 Arg name_matcher renamed to symbol_matcher.
15174 2014-01-14 Doug Evans <dje@google.com>
15176 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15177 (map_partial_symbol_filenames): Ditto.
15178 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15179 (map_partial_symbol_filenames): Ditto.
15180 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15181 (map_partial_symbol_filenames): Ditto.
15182 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15183 (map_partial_symbol_filenames): Ditto.
15184 * symtab.c: Delete #include "psymtab.h".
15186 2014-01-14 Pedro Alves <palves@redhat.com>
15187 Tom Tromey <tromey@redhat.com>
15189 * infrun.c (use_displaced_stepping): Use find_record_target
15190 instead of RECORD_IS_USED.
15191 (adjust_pc_after_break): Use record_full_is_used instead of
15193 * record-btrace.c (record_btrace_open): Call record_preopen
15194 instead of checking RECORD_IS_USED.
15195 * record-full.c (record_full_shortname)
15196 (record_full_core_shortname): New globals.
15197 (record_full_is_used): New function.
15198 (find_full_open): Call record_preopen instead of checking
15200 (init_record_full_ops): Set the target's shortname to
15201 record_full_shortname.
15202 (init_record_full_core_ops): Set the target's shortname to
15203 record_full_core_shortname.
15204 * record-full.h (record_full_is_used): Declare.
15205 * record.c (find_record_target): Make extern.
15206 (record_preopen): New function.
15207 * record.h (RECORD_IS_USED): Delete macro.
15208 (find_record_target, record_preopen): Declare functions.
15210 2014-01-14 Yao Qi <yao@codesourcery.com>
15212 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15213 'len''s type to ULONGEST.
15214 (core_xfer_shared_libraries_aix): Likewise.
15215 * gdbarch.c, gdbarch.h: Regenerated.
15216 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15217 Change type of 'len' to ULONGEST.
15218 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15219 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15221 2014-01-14 Yao Qi <yao@codesourcery.com>
15223 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15224 type of 'len' to ULONGEST.
15225 (linux_xfer_osdata_processgroups): Likewise.
15226 (linux_xfer_osdata_threads): Likewise.
15227 (linux_xfer_osdata_fds): Likewise.
15228 (linux_xfer_osdata_isockets): Likewise.
15229 (linux_xfer_osdata_shm): Likewise.
15230 (linux_xfer_osdata_sem): Likewise.
15231 (linux_xfer_osdata_msg): Likewise.
15232 (linux_common_xfer_osdata): Likewise.
15233 (struct osdata_type) <getter>: Likewise.
15234 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15237 2014-01-14 Yao Qi <yao@codesourcery.com>
15239 * target.h (target_xfer_partial_ftype): Update.
15240 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15242 * aix-thread.c (aix_thread_xfer_partial): Change type of
15243 argument 'len' to ULONGEST.
15244 * auxv.c (procfs_xfer_auxv): Likewise.
15245 (ld_so_xfer_auxv): Likewise.
15246 (memory_xfer_auxv): Likewise.
15247 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15248 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15249 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15250 * corelow.c (core_xfer_partial): Likewise.
15251 * ctf.c (ctf_xfer_partial): Likewise.
15252 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15254 (darwin_read_dyld_info): Likewise.
15255 (darwin_xfer_partial): Likewise.
15256 * exec.c (section_table_xfer_memory_partial): Likewise.
15257 (exec_xfer_partial): Likewise.
15258 * exec.h (section_table_xfer_memory_partial): Update
15260 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15261 instead of plongest.
15262 (gnu_xfer_partial): Likewise.
15263 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15264 (ia64_hpux_xfer_solib_got): Likewise.
15265 (ia64_hpux_xfer_partial): Likewise.
15266 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15267 * inf-ptrace.c (inf_ptrace_xfer_partial):
15268 * inf-ttrace.c (inf_ttrace_xfer_partial):
15269 * linux-nat.c (linux_xfer_siginfo): Likewise.
15270 (linux_nat_xfer_partial): Likewise.
15271 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15272 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15273 * monitor.c (monitor_xfer_memory): Likewise.
15274 (monitor_xfer_partial): Likewise.
15275 * procfs.c (procfs_xfer_partial): Likewise.
15276 * record-full.c (record_full_xfer_partial): Likewise.
15277 (record_full_core_xfer_partial): Likewise.
15278 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15279 instead of plongest.
15280 (gdbsim_xfer_partial): Likewise.
15281 * remote.c (remote_xfer_partial): Likewise.
15282 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15283 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15285 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15286 (rs6000_xfer_shared_libraries): Likewise.
15287 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15288 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15289 (sparc_xfer_partial): Likewise.
15290 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15291 (spu_xfer_partial): Likewise.
15292 * spu-multiarch.c (spu_xfer_partial): Likewise.
15293 * target.c (target_read_live_memory): Likewise.
15294 (memory_xfer_live_readonly_partial): Likewise.
15295 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15296 (target_xfer_partial, default_xfer_partial): Likewise.
15297 (current_xfer_partial): Likewise.
15298 * tracepoint.c (tfile_xfer_partial): Likewise.
15299 * windows-nat.c (windows_xfer_memory): Likewise. Call
15300 pulongest instead of plongest.
15301 (windows_xfer_partial): Likewise.
15302 (windows_xfer_shared_libraries): Likewise.
15304 2014-01-14 Yao Qi <yao@codesourcery.com>
15306 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15307 target_xfer_partial_ftype.
15309 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15313 * valops.c (value_struct_elt_bitpos): New function
15314 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15315 object to 'None' if the field name is an empty string ("").
15316 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15317 attribute to look for a field when 'name' is 'None'.
15318 (get_field_type): New function
15320 2014-01-13 Doug Evans <dje@google.com>
15323 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15324 (try_open_dwop_file): Ditto.
15325 * gdb_bfd.c: #include "vec.h".
15326 (bfdp): New typedef.
15327 (struct gdb_bfd_data): New member included_bfds.
15328 (gdb_bfd_unref): Unref all included bfds.
15329 (gdb_bfd_record_inclusion): New function.
15330 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15332 2014-01-13 Tom Tromey <tromey@redhat.com>
15334 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15336 2014-01-13 Tom Tromey <tromey@redhat.com>
15338 * defs.h (use_windows): Remove.
15339 * gdb.c (main): Update.
15340 * main.c (captured_main, gdb_main): Update.
15341 * main.h (struct captured_main_args) <use_windows>: Remove.
15342 * top.c (use_windows): Remove.
15344 2014-01-13 Tom Tromey <tromey@redhat.com>
15346 * defs.h (deprecated_flush_hook): Remove.
15348 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15351 * linux-thread-db.c (try_thread_db_load): Add parameter
15352 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15353 (try_thread_db_load_from_pdir_1): Move it there from here.
15354 (try_thread_db_load_from_sdir): Update caller.
15355 (try_thread_db_load_from_dir): Move it there from here.
15357 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15359 * regformats/regdat.sh: Always rewrite the register file.
15361 2014-01-13 Pedro Alves <palves@redhat.com>
15363 * Makefile.in (CHECK_HEADERS): New variable.
15364 (check-headers:): New rule.
15366 2014-01-13 Tom Tromey <tromey@redhat.com>
15368 * cli/cli-setshow.c (do_set_command): Update.
15369 * defs.h (deprecated_set_hook): Remove.
15370 * top.c (deprecated_set_hook): Remove.
15372 2014-01-13 Pedro Alves <palves@redhat.com>
15374 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15375 the tracepoint if the PC is a pseudo-register.
15377 2014-01-13 Tom Tromey <tromey@redhat.com>
15379 * defs.h (XCALLOC): Remove.
15380 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15381 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15382 * dwarf2loc.c (allocate_piece_closure): Likewise.
15383 * elfread.c (elf_symfile_segments): Likewise.
15384 (elf_symfile_segments): Likewise.
15385 * gdbtypes.c (copy_type_recursive): Likewise.
15386 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15387 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15388 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15390 * mt-tdep.c (mt_gdbarch_init): Likewise.
15391 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15393 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15394 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15395 * registry.c (registry_alloc_data): Likewise.
15396 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15397 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15398 * serial.c (serial_fdopen_ops): Likewise.
15399 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15401 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15402 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15405 2014-01-13 Tom Tromey <tromey@redhat.com>
15407 * defs.h (XMALLOC): Remove.
15408 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15409 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15410 * cli-out.c (struct ui_out *): Likewise.
15411 * cli/cli-dump.c (add_dump_command): Likewise.
15412 (add_dump_command): Likewise.
15413 * complaints.c (get_complaints): Likewise.
15414 (find_complaint): Likewise.
15415 * dwarf2-frame.c (execute_cfa_program): Likewise.
15416 * dwarf2read.c (abbrev_table_read_table): Likewise.
15417 * gdbarch.sh: Likewise.
15418 * gdbarch.c: Rebuild.
15419 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15420 * interps.c (interp_new): Likewise.
15421 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15422 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15423 * mi/mi-console.c (mi_console_file_new): Likewise.
15424 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15425 * mi/mi-out.c (mi_out_new): Likewise.
15426 * mi/mi-parse.c (mi_parse): Likewise.
15427 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15428 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15429 * observer.c (xalloc_observer_list_node): Likewise.
15430 * regcache.c (regcache_xmalloc_1): Likewise.
15431 * reggroups.c (reggroup_new): Likewise.
15432 (_initialize_reggroup): Likewise.
15433 * registry.c (register_data_with_cleanup): Likewise.
15434 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15435 * ser-base.c (serial_ttystate): Likewise.
15436 * ser-mingw.c (make_pipe_state): Likewise.
15437 * ser-pipe.c (pipe_open): Likewise.
15438 * serial.c (serial_open): Likewise.
15439 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15440 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15441 (tui_alloc_win_info): Likewise.
15442 (tui_add_content_elements): Likewise.
15443 * tui/tui-file.c (tui_file_new): Likewise.
15444 * tui/tui-out.c (tui_out_new): Likewise.
15445 * ui-file.c (mem_file_new): Likewise.
15446 * ui-out.c (push_level): Likewise.
15447 (make_cleanup_ui_out_end): Likewise.
15448 (append_header_to_list): Likewise.
15449 (ui_out_new): Likewise.
15450 * user-regs.c (user_reg_add_builtin): Likewise.
15452 2014-01-13 Tom Tromey <tromey@redhat.com>
15454 * defs.h (XZALLOC): Remove.
15455 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15456 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15457 (get_ada_tasks_inferior_data): Likewise.
15458 * auto-load.c (get_auto_load_pspace_data): Likewise.
15459 * auxv.c (get_auxv_inferior_data): Likewise.
15460 * bfd-target.c (target_bfd_reopen): Likewise.
15461 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15462 (deprecated_insert_raw_breakpoint): Likewise.
15463 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15464 * corelow.c (core_open): Likewise.
15465 * darwin-nat.c (darwin_check_new_threads): Likewise.
15466 (darwin_attach_pid): Likewise.
15467 * dummy-frame.c (dummy_frame_push): Likewise.
15468 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15469 * dwarf2loc.c (allocate_piece_closure): Likewise.
15470 * elfread.c (elf_symfile_segments): Likewise.
15471 * eval.c (ptrmath_type_p): Likewise.
15472 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15473 * gdbtypes.c (alloc_type_arch): Likewise.
15474 (alloc_type_instance): Likewise.
15475 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15476 * inf-child.c (inf_child_can_use_agent): Likewise.
15477 * inflow.c (get_inflow_inferior_data): Likewise.
15478 * infrun.c (save_infcall_suspend_state): Likewise.
15479 * jit.c (jit_reader_load): Likewise.
15480 (get_jit_objfile_data): Likewise.
15481 (get_jit_program_space_data): Likewise.
15482 (jit_object_open_impl): Likewise.
15483 (jit_symtab_open_impl): Likewise.
15484 (jit_block_open_impl): Likewise.
15485 (jit_frame_sniffer): Likewise.
15486 * linux-fork.c (add_fork): Likewise.
15487 * maint.c (make_command_stats_cleanup): Likewise.
15488 * objfiles.c (get_objfile_pspace_data): Likewise.
15489 * opencl-lang.c (struct lval_closure): Likewise.
15490 * osdata.c (osdata_start_osdata): Likewise.
15491 * progspace.c (new_address_space): Likewise.
15492 (add_program_space): Likewise.
15493 * remote-sim.c (get_sim_inferior_data): Likewise.
15494 * sh-tdep.c (sh_gdbarch_init): Likewise.
15495 * skip.c (Ignore): Likewise.
15496 (skip_delete_command): Likewise.
15497 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15498 (library_list_start_library): Likewise.
15499 (solib_aix_current_sos): Likewise.
15500 * solib-darwin.c (get_darwin_info): Likewise.
15501 (darwin_current_sos): Likewise.
15502 * solib-dsbt.c (get_dsbt_info): Likewise.
15503 * solib-ia64-hpux.c (new_so_list): Likewise.
15504 (ia64_hpux_get_solib_linkage_addr): Likewise.
15505 * solib-spu.c (append_ocl_sos): Likewise.
15506 (spu_current_sos): Likewise.
15507 * solib-svr4.c (get_svr4_info): Likewise.
15508 (svr4_keep_data_in_core): Likewise.
15509 (library_list_start_library): Likewise.
15510 (svr4_default_sos): Likewise.
15511 (svr4_read_so_list): Likewise.
15512 * solib-target.c (library_list_start_library): Likewise.
15513 (solib_target_current_sos): Likewise.
15514 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15515 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15516 * symfile.c (default_symfile_segments): Likewise.
15517 * target-descriptions.c (tdesc_data_init): Likewise.
15518 (tdesc_create_reg): Likewise.
15519 (struct tdesc_type *): Likewise.
15520 (tdesc_create_vector): Likewise.
15521 (tdesc_set_struct_size): Likewise.
15522 (struct tdesc_type *): Likewise.
15523 (tdesc_free_feature): Likewise.
15524 (tdesc_create_feature): Likewise.
15525 * windows-nat.c (windows_add_thread): Likewise.
15526 (windows_make_so): Likewise.
15527 * xml-support.c (gdb_xml_body_text): Likewise.
15528 (gdb_xml_create_parser_and_cleanup): Likewise.
15529 (xml_process_xincludes): Likewise.
15530 * xml-syscall.c (allocate_syscalls_info): Likewise.
15531 (syscall_create_syscall_desc): Likewise.
15533 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15535 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15536 function, with code from i386_stap_parse_special_token.
15537 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15538 (i386_stap_parse_special_token): Move code to the two functions
15539 above; simplify it.
15541 2014-01-09 Pedro Alves <palves@redhat.com>
15542 Hui Zhu <hui@codesourcery.com>
15545 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15546 bp_err_string. Don't mark the location shlib_disabled if the
15547 error thrown wasn't a generic or memory error. Catch errors
15548 thrown while inserting breakpoints in overlayed code. Output
15549 error message of software breakpoints.
15550 * remote.c (remote_insert_breakpoint): If this breakpoint has
15551 target-side commands but this stub doesn't support Z0 packets,
15552 throw NOT_SUPPORTED_ERROR error.
15553 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15554 * target.h (target_insert_breakpoint): Extend comment.
15555 (target_insert_hw_breakpoint): Add comment.
15557 2014-01-08 Pedro Alves <palves@redhat.com>
15559 * remote.c (remote_add_thread): Add threads silently if starting
15561 (remote_notice_new_inferior): If in all-stop, and starting up,
15562 don't call notice_new_inferior.
15563 (get_current_thread): New function, factored out from ...
15564 (add_current_inferior_and_thread): ... this. Adjust.
15565 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15566 found any thread, then select the remote's current thread as GDB's
15567 current thread too.
15569 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15571 * NEWS: Create a new section for the next release branch.
15572 Rename the section of the current branch, now that it has
15575 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15577 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15578 * version.in: Bump version to 7.7.50.DATE-cvs.
15580 2014-01-08 Yao Qi <yao@codesourcery.com>
15582 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15583 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15584 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15586 2014-01-08 Yao Qi <yao@codesourcery.com>
15588 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15589 return value of bfd_get_filename to symbol_file_add_from_bfd.
15591 2014-01-08 Pierre Muller <muller@sourceware.org>
15594 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15595 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15596 to prim_record_mininal_symbol_and_info.
15597 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15598 in call to prim_record_minimal_symbol_and_info.
15599 (read_pe_exported_syms): Set index field of section_data.
15601 2014-01-07 Andrew Pinski <apinski@cavium.com>
15603 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15604 * features/aarch64.c: Regenerate.
15606 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15608 * target.c (return_null): Define.
15609 (update_current_target): Use it instead of return_zero for
15610 functions that return a pointer.
15612 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15614 * source.c (add_path): Fix check for duplicated paths in the previously
15617 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15619 * ada-lang.c: Remove duplicated include statements.
15620 * alphabsd-nat.c: Ditto.
15621 * amd64-darwin-tdep.c: Ditto.
15622 * amd64fbsd-nat.c: Ditto.
15623 * auto-load.c: Ditto.
15625 * breakpoint.c: Ditto.
15626 * dbxread.c: Ditto.
15627 * fork-child.c: Ditto.
15628 * gdb_usleep.c: Ditto.
15629 * i386-darwin-tdep.c: Ditto.
15630 * i386fbsd-nat.c: Ditto.
15632 * inferior.c: Ditto.
15633 * jv-lang.c: Ditto.
15634 * linux-nat.c: Ditto.
15635 * linux-tdep.c: Ditto.
15636 * m68kbsd-nat.c: Ditto.
15637 * m68klinux-nat.c: Ditto.
15638 * microblaze-tdep.c: Ditto.
15639 * mips-linux-tdep.c: Ditto.
15640 * mn10300-tdep.c: Ditto.
15641 * nto-tdep.c: Ditto.
15642 * opencl-lang.c: Ditto.
15644 * printcmd.c: Ditto.
15645 * regcache.c: Ditto.
15646 * remote-m32r-sdi.c: Ditto.
15648 * symfile.c: Ditto.
15650 * tilegx-linux-nat.c: Ditto.
15651 * tilegx-tdep.c: Ditto.
15652 * tracepoint.c: Ditto.
15654 * vaxbsd-nat.c: Ditto.
15655 * windows-nat.c: Ditto.
15656 * xtensa-tdep.c: Ditto.
15658 2014-01-07 Yao Qi <yao@codesourcery.com>
15660 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15662 2014-01-07 Yao Qi <yao@codesourcery.com>
15663 Joel Brobecker <brobecker@adacore.com>
15665 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15666 (pdc_write_regs): Likewise.
15667 (fetch_regs_kernel_thread): Likewise.
15668 (store_regs_kernel_thread): Likewise.
15670 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15672 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15673 tagged type objects to their actual type.
15675 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15677 * ada-valprint.c (print_field_values): Add "language" parameter.
15678 Update calls to print_field_values and print_variant_part.
15679 Pass new parameter "language" in call to val_print instead
15680 of "current_language". Replace call to ada_val_print by call
15682 (print_variant_part): Add "language" parameter.
15683 (ada_val_print_struct_union): Update call to print_field_values.
15685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15687 * ada-valprint.c (ui_memcpy): Delete.
15688 (ada_print_floating): Update documentation. Add empty line
15689 between between function documentation and implementation.
15690 Delete variable "buffer". Use ui_file_xstrdup in place of
15691 ui_file_put. Minor adjustments following this change.
15693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15695 * ada-valprint.c (ada_val_print_string): New function,
15696 extracted from ada_val_print_array.
15697 (ada_val_print_array): Replace extracted code by call
15698 to ada_val_print_string followed by a return. Move
15699 "else" branch to the function's top block.
15701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15703 * ada-valprint.c (ada_val_print_array): Move implementation
15704 down. Rename parameter "offset" and "val" into "offset_aligned"
15705 and "original_value" respectively. Add parameter "offset".
15707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15709 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15710 re-organizing the code. Change the "???" message printed
15711 when target type is a TYPE_CODE_UNDEF into
15712 "<ref to undefined type>".
15714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15716 * ada-valprint.c (print_record): Delete, implementation inlined...
15717 (ada_val_print_struct_union): ... here. Remove call to
15718 ada_check_typedef in inlined implementation.
15720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15722 * ada-valprint.c (ada_val_print_gnat_array): New function,
15723 extracted from ada_val_print_1;
15724 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15725 (ada_val_print_flt, ada_val_print_struct_union)
15726 (ada_val_print_ref): Likewise.
15727 (ada_val_print_1): Delete variables i and elttype.
15728 Replace extracted-out code by call to corresponding
15731 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15733 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15737 * ada-valprint.c (ada_val_print_1): Replace calls to
15738 ada_val_print_1 by calls to val_print.
15740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15742 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15743 Update calls to self accordingly. Replace calls to c_val_print
15744 by calls to val_print.
15746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15748 * ada-valprint.c (print_record): Delete declaration.
15749 (adjust_type_signedness, ada_val_print_1): Likewise.
15750 (ada_val_print): Move function implementation down.
15751 (print_variant_part, print_field_values, print_record):
15752 Move function implementation up.
15754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15756 * python/py-type.c (typy_get_name): New function.
15757 (type_object_getset): Add entry for attribute "name".
15758 * NEWS: Add entry mentioning this new attribute.
15760 2014-01-07 Yao Qi <yao@codesourcery.com>
15762 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15765 2014-01-07 Yao Qi <yao@codesourcery.com>
15767 * gnu-nat.c (info_port_rights): Add qualifier const to
15770 2014-01-07 Yao Qi <yao@codesourcery.com>
15772 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15774 2014-01-07 Yao Qi <yao@codesourcery.com>
15776 * gnu-nat.c (make_inf) Update declaration.
15777 (make_inf): Make it static.
15778 (inf_set_traced): Likewise.
15779 (inf_port_to_thread, inf_task_died_status): Likewise.
15781 2014-01-07 Yao Qi <yao@codesourcery.com>
15783 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15785 2014-01-07 Yao Qi <yao@codesourcery.com>
15787 * gnu-nat.c (_initialize_gnu_nat): Declare.
15789 2014-01-07 Yao Qi <yao@codesourcery.com>
15791 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15793 (struct gdbarch_info) <byte_order>: Change type to
15795 <byte_order_for_code>: Likewise.
15796 * gdbarch.c, gdbarch.h: Regenerated.
15798 2014-01-06 Sasha Smundak <asmundak@google.com>
15800 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15802 2014-01-06 Tom Tromey <tromey@redhat.com>
15804 * doublest.c (convert_doublest_to_floatformat): Use const, not
15806 * somread.c (som_symtab_read): Likewise.
15808 2014-01-07 Hui Zhu <hui@codesourcery.com>
15810 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15811 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15812 (gdb_bfd_fopen): Ditto.
15813 (gdb_bfd_openr): Ditto.
15814 (gdb_bfd_openw): Ditto.
15815 (gdb_bfd_openr_iovec): Ditto.
15816 (gdb_bfd_fdopenr): Ditto.
15817 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15818 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15820 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15822 * symfile-mem.c (symbol_file_add_from_memory): Removed
15823 gdb_bfd_stash_filename.
15825 2014-01-03 Doug Evans <dje@google.com>
15827 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15830 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15832 Update year range in copyright notice of all files.
15834 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15836 * top.c (print_gdb_version): Set copyright year to 2014.
15838 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15840 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15842 For older changes see ChangeLog-2013.
15848 version-control: never