1 2014-12-11 Doug Evans <xdje42@gmail.com>
3 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
5 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
8 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
9 it is marked as persistent.
11 2014-12-10 Doug Evans <xdje42@gmail.com>
13 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
14 closer to its subroutines.
16 2014-12-10 Doug Evans <xdje42@gmail.com>
18 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
20 2014-12-10 Doug Evans <xdje42@gmail.com>
22 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
23 * cp-support.c (cp_lookup_symbol_imports): Delete.
25 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
28 * target.c (cleanup_restore_target_terminal): New function.
29 (make_cleanup_restore_target_terminal): New function.
30 * target.h (make_cleanup_restore_target_terminal): New declaration.
31 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
33 2014-12-08 Doug Evans <dje@google.com>
35 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
37 2014-12-08 Doug Evans <dje@google.com>
39 * NEWS: Mention gdb.Objfile.owner.
40 * python/py-objfile.c (objfpy_get_owner): New function.
41 (objfile_getset): Add "owner".
43 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
45 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
46 (lookup_global_symbol_from_objfile): Call it.
48 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
50 Remove const from struct objfile *.
51 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
52 symtab.c, symtab.h: In these files.
54 2014-12-05 Andreas From <andreas.from@ericsson.com>
56 * MAINTAINERS (Write After Approval): Add "Andreas From"
58 2014-12-05 Doug Evans <xdje42@gmail.com>
62 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
64 2014-12-04 Doug Evans <dje@google.com>
66 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
67 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
68 (objfile_getset): Add "add_separate_debug_file".
70 2014-12-04 Doug Evans <dje@google.com>
72 * NEWS: Mention gdb.Objfile.build_id.
73 * build-id.c (build_id_bfd_get): Make non-static.
74 * build-id.h (build_id_bfd_get): Add declaration.
75 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
76 (OBJFPY_REQUIRE_VALID): New macro.
77 (objfpy_get_build_id): New function.
78 (objfile_getset): Add "build_id".
79 * utils.c (make_hex_string): New function.
80 * utils.h (make_hex_string): Add declaration.
82 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
84 * block.c (block_lookup_symbol_primary): New function.
85 * block.h (block_lookup_symbol_primary): New declaration.
86 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
87 Call block_lookup_symbol_primary.
89 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
91 * tramp-frame.h (tramp_frame): Add `validate' member.
92 * tramp-frame.c (tramp_frame_start): Validate trampoline before
94 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
95 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
96 (mips_linux_o32_sigframe): Initialize `validate' member.
97 (mips_linux_o32_rt_sigframe): Likewise.
98 (mips_linux_n32_rt_sigframe): Likewise.
99 (mips_linux_n64_rt_sigframe): Likewise.
100 (micromips_linux_o32_sigframe): New variable.
101 (micromips_linux_o32_rt_sigframe): Likewise.
102 (micromips_linux_n32_rt_sigframe): Likewise.
103 (micromips_linux_n64_rt_sigframe): Likewise.
104 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
105 (mips_linux_n32n64_sigframe_init): Likewise.
106 (mips_linux_sigframe_validate): New function.
107 (micromips_linux_sigframe_validate): Likewise.
108 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
110 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
112 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
113 * sparc-sol2-tdep.c: Include "regset.h".
114 (sparc32_sol2_supply_core_gregset): New function.
115 (sparc32_sol2_collect_core_gregset): Likewise.
116 (sparc32_sol2_supply_core_fpregset): Likewise.
117 (sparc32_sol2_collect_core_fpregset): Likewise.
118 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
119 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
120 tdep->fpregset/sizeof_fpregset.
121 * sparc64-sol2-tdep.c: Include "regset.h".
122 (sparc64_sol2_supply_core_gregset): New function.
123 (sparc64_sol2_collect_core_gregset): Likewise.
124 (sparc64_sol2_supply_core_fpregset): Likewise.
125 (sparc64_sol2_collect_core_fpregset): Likewise.
126 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
127 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
128 tdep->fpregset/sizeof_fpregset.
130 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
132 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
135 2014-12-02 Doug Evans <dje@google.com>
137 * symtab.c (symbol_init_cplus_specific): Delete.
138 (symbol_set_demangled_name): Remove special c++ support.
139 (symbol_get_demangled_name, symbol_set_language): Ditto.
140 * symtab.h (struct cplus_specific): Delete.
141 (struct general_symbol_info) <language_specific>: Remove
144 2014-12-02 Doug Evans <dje@google.com>
147 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
149 2014-12-02 Doug Evans <dje@google.com>
152 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
155 2014-12-02 Doug Evans <dje@google.com>
157 * dwarf2read.c (peek_die_abbrev): Improve error message text.
159 2014-12-02 Doug Evans <dje@google.com>
161 * valops.c (do_search_struct_field): Remove remnant of Chill support.
162 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
164 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
166 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
168 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
170 * NEWS: Mention new Python events.
171 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
172 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
173 (py-infevents.o): New rule.
174 * doc/observer.texi (inferior_call_pre, inferior_call_post)
175 (memory_changed, register_changed): New observers.
176 * infcall.c (call_function_by_hand): Notify observer before and
178 * python/py-event.h (inferior_call_kind): New enum.
179 (emit_inferior_call_event): New prototype.
180 (emit_register_changed_event): New prototype.
181 (emit_memory_changed_event): New prototype.
182 * python/py-events.h (events_object): New registries
183 inferior_call, memory_changed and register_changed.
184 * python/py-evts.c (gdbpy_initialize_py_events): Add the
185 inferior_call, memory_changed and register_changed registries.
186 * python/py-infevents.c: New.
187 * python/py-inferior.c (python_on_inferior_call_pre)
188 (python_on_inferior_call_post, python_on_register_change)
189 (python_on_memory_change): New functions.
190 (gdbpy_initialize_inferior): Attach python handler to new
192 * python/py-infthread.c(gdbpy_create_ptid_object): New.
193 (thpy_get_ptid) Use gdbpy_create_ptid_object.
194 * python/python-internal.h:
195 (gdbpy_create_ptid_object)
196 (gdbpy_initialize_inferior_call_pre_event)
197 (gdbpy_initialize_inferior_call_post_event)
198 (gdbpy_initialize_register_changed_event)
199 (gdbpy_initialize_memory_changed_event): New prototypes.
200 * python/python.c (_initialize_python): Initialize new events.
201 * valops.c (value_assign): Notify register_changed observer.
203 2014-12-02 Doug Evans <dje@google.com>
205 * python/py-infthread.c: Whitespace fixes.
207 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
209 * features/Makefile (s390-te-linux64-expedite): Replace
210 non-existant r14 and r15 by r14l and r15l, respectively.
211 * regformats/s390-te-linux64.dat: Regenerate.
213 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
215 * objfiles.c (allocate_objfile): Remove duplicate comment.
217 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
219 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
220 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
221 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
222 (supply_gregset, supply_fpregset): Remove.
223 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
224 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
227 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
229 Add add-auto-load-scripts-directory.
230 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
231 * auto-load.c (add_auto_load_dir): New function.
232 (_initialize_auto_load): Install it.
234 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
236 Pushed by Joel Brobecker <brobecker@adacore.com>.
237 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
239 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
241 * eval.c (evaluate_subexp): Check that the thread stack temporaries
242 are not already enabled before enabling them.
244 2014-11-29 Yao Qi <yao@codesourcery.com>
246 * arm-tdep.c (arm_analyze_prologue): Move local variables
247 'framereg' and 'framesize' to inner block. Move code to
250 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
252 * eval.c: Include gdbthread.h.
253 (evaluate_subexp): Enable thread stack temporaries before
254 evaluating a complete expression and clean them up after the
255 evaluation is complete.
256 * gdbthread.h: Include common/vec.h.
257 (value_ptr): New typedef.
258 (VEC (value_ptr)): New vector type.
259 (value_vec): New typedef.
260 (struct thread_info): Add new fields stack_temporaries_enabled
261 and stack_temporaries.
262 (enable_thread_stack_temporaries)
263 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
264 (get_last_thread_stack_temporary)
265 (value_in_thread_stack_temporaries): Declare.
266 * gdbtypes.c (class_or_union_p): New function.
267 * gdbtypes.h (class_or_union_p): Declare.
268 * infcall.c (call_function_by_hand): Store return values of class
269 type as temporaries on stack.
270 * thread.c (enable_thread_stack_temporaries): New function.
271 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
272 (get_last_thread_stack_temporary): Likewise.
273 (value_in_thread_stack_temporaries): Likewise.
274 * value.c (value_force_lval): New function.
275 * value.h (value_force_lval): Declare.
277 2014-11-28 Pierre Muller <muller@sourceware.org>
279 Pushed by Joel Brobecker <brobecker@adacore.com>.
280 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
283 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
285 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
286 * config/sparc/linux.mh (NATDEPFILES): Likewise.
287 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
288 * m68klinux-nat.c (fetch_core_registers): Remove.
289 (linux_elf_core_fns): Remove.
290 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
292 2014-11-28 Joel Brobecker <brobecker@adacore.com>
294 * utils.c (gdb_realpath): Rework comment about handling on
297 2014-11-28 Yao Qi <yao@codesourcery.com>
299 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
301 * gnulib/aclocal.m4: Re-generated.
302 * gnulib/config.in: Re-generated.
303 * gnulib/configure: Re-generated.
304 * gnulib/import/Makefile.am: Re-generated.
305 * gnulib/import/Makefile.in: Re-generated.
306 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
307 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
308 * import/basename-lgpl.c: New file.
309 * import/dirname-lgpl.c: New file.
310 * import/dirname.h: New file.
311 * import/m4/dirname.m4: New file.
312 * import/m4/malloc.m4: New file.
313 * import/m4/rename.m4: New file.
314 * import/m4/rmdir.m4: New file.
315 * import/m4/stdio_h.m4: New file.
316 * import/malloc.c: New file.
317 * import/rename.c: New file.
318 * import/rmdir.c: New file.
319 * import/same-inode.h: New file.
320 * import/stdio.c: New file.
321 * import/stdio.in.h: New file.
322 * import/stripslash.c: New file.
324 2014-11-28 Yao Qi <yao@codesourcery.com>
326 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
328 * config.in: Re-generated.
329 * configure: Re-generated.
330 * utils.c (gdb_realpath): Remove code calling realpath,
331 canonicalize_file_name and pathconf.
332 [!_WIN32]: Call canonicalize_file_name.
334 2014-11-28 Yao Qi <yao@codesourcery.com>
336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
338 * aclocal.m4: Re-generated.
339 * config.in: Re-generated.
340 * configure: Re-generated.
341 * import/Makefile.am: Re-generated.
342 * import/Makefile.in: Re-generated.
343 * import/m4/gnulib-cache.m4: Re-generated.
344 * import/m4/gnulib-comp.m4: Re-generated.
345 * import/canonicalize-lgpl.c: New file.
346 * import/extra/snippet/_Noreturn.h: New file.
347 * import/m4/canonicalize.m4: New file.
348 * import/m4/double-slash-root.m4: New file.
349 * import/m4/eealloc.m4: New file.
350 * import/m4/malloca.m4: New file.
351 * import/m4/nocrash.m4: New file.
352 * import/m4/stdlib_h.m4: New file.
353 * import/malloca.c: New file.
354 * import/malloca.h: New file.
355 * import/malloca.valgrind: New file.
357 2014-11-28 Yao Qi <yao@codesourcery.com>
359 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
360 * config.in, configure: Regenerate.
361 * symfile.c (find_separate_debug_file_by_debuglink): Remove
362 code checking HAVE_LSTAT is defined.
364 2014-11-28 Yao Qi <yao@codesourcery.com>
366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
368 * gnulib/aclocal.m4: Re-generated.
369 * gnulib/config.in: Re-generated.
370 * gnulib/configure: Re-generated.
371 * gnulib/import/Makefile.am: Re-generated.
372 * gnulib/import/Makefile.in: Re-generated.
373 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
374 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
375 * gnulib/import/lstat.c: New file.
376 * gnulib/import/m4/lstat.m4: New file.
378 2014-11-28 Yao Qi <yao@codesourcery.com>
380 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
381 * config.in, configure: Re-generate.
382 * inf-child.c (inf_child_fileio_readlink): Don't check
383 HAVE_READLINK is defined.
385 2014-11-28 Yao Qi <yao@codesourcery.com>
387 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
388 * gnulib/aclocal.m4: Re-generated.
389 * gnulib/config.in: Likewise.
390 * gnulib/configure: Likewise.
391 * gnulib/import/Makefile.am: Likewise.
392 * gnulib/import/Makefile.in: Likewise.
393 * gnulib/import/m4/gnulib-cache.m4: Likewise.
394 * gnulib/import/m4/gnulib-comp.m4: Likewise.
395 * gnulib/import/dosname.h: New file
396 * gnulib/import/m4/largefile.m4: New file.
397 * gnulib/import/m4/readlink.m4: New file.
398 * gnulib/import/m4/stat.m4: New file.
399 * gnulib/import/readlink.c: New file.
400 * gnulib/import/stat.c: New file.
402 2014-11-26 Mark Wielaard <mjw@redhat.com>
404 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
405 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
407 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
409 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
410 that there can be only one stack adjustment in the prologue
411 with tests to detect specific disallowed stack adjustments.
413 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
415 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
418 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
420 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
421 the instruction as well as reading it from memory.
422 (nios2_match_add): New.
423 (nios2_match_sub): New.
424 (nios2_match_addi): New.
425 (nios2_match_orhi): New.
426 (nios2_match_stw): New.
427 (nios2_match_ldw): New.
428 (nios2_match_rdctl): New.
429 (enum branch_condition): New.
430 (nios2_match_branch): New.
431 (nios2_match_jmpi): New.
432 (nios2_match_calli): New.
433 (nios2_match_jmpr): New.
434 (nios2_match_callr): New.
435 (nios2_match_break): New.
436 (nios2_match_trap): New.
437 (nios2_in_epilogue_p): Rewrite to use new functions.
438 (nios2_analyze_prologue): Likewise.
439 (nios2_skip_prologue): Delete unused local limit_pc.
440 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
441 (nios2_get_next_pc): Rewrite to use new functions.
443 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
445 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
447 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
449 Pushed by Joel Brobecker <brobecker@adacore.com>
450 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
451 elements pi_len by the size of the elements before calling
453 (inf_validate_task_sc): Likewise, and properly deallocate the
456 2014-11-23 Doug Evans <xdje42@gmail.com>
458 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
459 number and name if present. All callers updated.
460 (dump_fn_fieldlists): Fix indentation of args.
462 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
464 * MAINTAINERS (Write After Approval): Add myself.
466 2014-11-23 Joel Brobecker <brobecker@adacore.com>
468 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
469 to a bp_call_dummy breakpoint type.
471 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
473 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
474 registering the signal handler.
476 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
478 * event-top.h (call_stdin_event_handler_again_p): Declare.
479 * event-top.c (call_stdin_event_handler_again_p): Define.
480 (stdin_event_handler): Use it.
481 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
482 handler again if there is pending input following a
485 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
487 Pushed by Joel Brobecker <brobecker@adacore.com>
488 * linux-fork.c (checkpoint_command): Print index of new
489 checkpoint in response message.
491 2014-11-23 Yao Qi <yao@codesourcery.com>
493 * valprint.c (read_string): Move local variables 'found_nul',
494 'chunksize' and 'limit' to inner scope. Update comments.
496 2014-11-22 Doug Evans <xdje42@gmail.com>
498 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
500 (search_symbols): Fix comments and whitespace.
502 2014-11-22 Doug Evans <xdje42@gmail.com>
504 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
506 2014-11-21 Doug Evans <dje@google.com>
508 * psymtab.c (psymtab_search_name): Fix whitespace.
510 2014-11-21 Yao Qi <yao@codesourcery.com>
512 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
514 * gnulib/import/Makefile.am: Re-generated.
515 * gnulib/import/Makefile.in: Likewise.
516 * gnulib/import/m4/gnulib-cache.m4: Likewise.
518 2014-11-21 Yao Qi <yao@codesourcery.com>
520 * gdb_wchar.h: Include wchar.h and wctype.h.
521 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
522 include wchar.h and wctype.h.
523 Don't check HAVE_WCHAR_H.
525 2014-11-21 Yao Qi <yao@codesourcery.com>
527 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
529 * gnulib/import/Makefile.am: Re-generated.
530 * gnulib/import/Makefile.in: Likewise.
531 * gnulib/import/m4/gnulib-cache.m4: Likewise.
533 2014-11-21 Yao Qi <yao@codesourcery.com>
535 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
537 * gnulib/import/Makefile.am: Re-generated.
538 * gnulib/import/Makefile.in: Likewise.
539 * gnulib/import/m4/gnulib-cache.m4: Likewise.
541 2014-11-21 Yao Qi <yao@codesourcery.com>
543 * common/common-defs.h: Include alloca.h
544 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
545 * configure: Re-generated.
546 * defs.h: Remove code handling alloca.
547 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
550 2014-11-21 Yao Qi <yao@codesourcery.com>
552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
554 * gnulib/import/Makefile.am: Re-generated.
555 * gnulib/import/Makefile.in: Likewise..
556 * gnulib/import/m4/gnulib-cache.m4: Likewise.
558 2014-11-21 Yao Qi <yao@codesourcery.com>
560 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
563 2014-11-21 Joel Brobecker <brobecker@adacore.com>
565 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
566 flag_unsigned if HIGH_BOUND is constant and negative.
568 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
571 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
572 modifier from "struct gdbarch" when compiling without Expat (XML)
574 (get_syscall_by_number): Likewise.
575 (get_syscall_by_name): Likewise.
576 (get_syscall_names): Likewise.
578 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
581 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
582 set_xml_syscall_file_name to provide gdbarch.
583 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
584 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
585 * breakpoint.c (print_it_catch_syscall): Adjust call to
586 get_syscall_by_number to provide gdbarch.
587 (print_one_catch_syscall): Likewise.
588 (print_mention_catch_syscall): Likewise.
589 (print_recreate_catch_syscall): Likewise.
590 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
591 and get_syscall_by_name to provide gdbarch.
592 (catch_syscall_completer): Adjust call to get_syscall_names to
594 * gdbarch.c: Regenerate.
595 * gdbarch.h: Likewise.
596 * gdbarch.sh: Forward declare "struct syscalls_info".
597 (xml_syscall_file): New variable.
598 (syscalls_info): Likewise.
599 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
600 set_xml_syscall_file_name to provide gdbarch.
601 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
602 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
603 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
604 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
605 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
606 * xml-syscall.c: Include gdbarch.h.
607 (set_xml_syscall_file_name): Accept gdbarch parameter.
608 (get_syscall_by_number): Likewise.
609 (get_syscall_by_name): Likewise.
610 (get_syscall_names): Likewise.
611 (my_gdb_datadir): Delete global variable.
612 (struct syscalls_info) <my_gdb_datadir>: New variable.
613 (struct syscalls_info) <sysinfo>: Rename variable to
615 (sysinfo): Delete global variable.
616 (have_initialized_sysinfo): Likewise.
617 (xml_syscall_file): Likewise.
618 (sysinfo_free_syscalls_desc): Rename to...
619 (syscalls_info_free_syscalls_desc): ... this.
620 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
621 code to the new layout of "struct syscalls_info".
622 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
624 (syscall_create_syscall_desc): Likewise.
625 (syscall_start_syscall): Likewise.
626 (syscall_parse_xml): Likewise.
627 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
628 (init_sysinfo): Rename to...
629 (init_syscalls_info): ...this. Add gdbarch as a parameter.
630 Adjust function to deal with gdbarch.
631 (xml_get_syscall_number): Delete parameter sysinfo. Accept
632 gdbarch as a parameter. Adjust code.
633 (xml_get_syscall_name): Likewise.
634 (xml_list_of_syscalls): Likewise.
635 (set_xml_syscall_file_name): Accept gdbarch as parameter.
636 (get_syscall_by_number): Likewise.
637 (get_syscall_by_name): Likewise.
638 (get_syscall_names): Likewise.
639 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
640 (get_syscall_by_number): Likewise.
641 (get_syscall_by_name): Likewise.
642 (get_syscall_names): Likewise.
644 2014-11-20 Doug Evans <xdje42@gmail.com>
646 Split struct symtab into two: struct symtab and compunit_symtab.
647 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
648 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
649 to "struct compunit_symtab *". All callers updated.
650 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
651 "struct symtab *" argument to "struct compunit_symtab *".
653 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
654 result to "struct compunit_symtab *". All callers updated.
655 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
656 Change result to "struct compunit_symtab *". All callers updated.
657 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
658 hange type to "struct compunit_symtab *". All uses updated.
659 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
660 Change type to "struct compunit_symtab *". All uses updated.
661 * buildsym.c (struct buildsym_compunit): New struct.
662 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
663 (buildsym_compunit): New static global.
664 (finish_block_internal): Update to fetch objfile from
666 (make_blockvector): Delete objfile argument.
667 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
668 debugformat, producer.
669 (start_buildsym_compunit): New function.
670 (free_buildsym_compunit): Renamed from free_subfiles_list.
672 (patch_subfile_names): Rewrite to use buildsym_compunit.
673 (get_compunit_symtab): New function.
674 (get_macro_table): Delete argument comp_dir. All callers updated.
675 (start_symtab): Change result to "struct compunit_symtab *".
676 All callers updated. Create the subfile of the main source file.
677 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
678 (reset_symtab_globals): Update.
679 (end_symtab_get_static_block): Update to use buildsym_compunit.
680 (end_symtab_without_blockvector): Rewrite.
681 (end_symtab_with_blockvector): Change result to
682 "struct compunit_symtab *". All callers updated.
683 Update to use buildsym_compunit. Don't set symtab->dirname,
684 instead set it in the compunit.
685 Explicitly make sure main symtab is first in its list.
686 Set debugformat, producer, blockvector, block_line_section, and
687 macrotable in the compunit.
688 (end_symtab_from_static_block): Change result to
689 "struct compunit_symtab *". All callers updated.
690 (end_symtab, end_expandable_symtab): Ditto.
691 (set_missing_symtab): Change symtab argument to
692 "struct compunit_symtab *". All callers updated.
693 (augment_type_symtab): Ditto.
694 (record_debugformat): Update to use buildsym_compunit.
695 (record_producer): Update to use buildsym_compunit.
696 * buildsym.h (struct subfile) <dirname>: Delete.
697 <producer, debugformat>: Delete.
698 <buildsym_compunit>: New member.
699 (get_compunit_symtab): Declare.
700 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
701 from primary_symtab. Change type to "struct compunit_symtab *".
703 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
705 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
706 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
707 symtab. Change type to "struct compunit_symtab *". All uses updated.
708 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
710 (dw2_find_last_source_symtab): Ditto.
711 (dw2_lookup_symbol): Ditto.
712 (recursively_find_pc_sect_compunit_symtab): Renamed from
713 recursively_find_pc_sect_symtab. Change result to
714 "struct compunit_symtab *". All callers updated.
715 (dw2_find_pc_sect_compunit_symtab): Renamed from
716 dw2_find_pc_sect_symtab. Change result to
717 "struct compunit_symtab *". All callers updated.
718 (get_compunit_symtab): Renamed from get_symtab. Change result to
719 "struct compunit_symtab *". All callers updated.
720 (recursively_compute_inclusions): Change type of immediate_parent
721 argument to "struct compunit_symtab *". All callers updated.
722 (compute_compunit_symtab_includes): Renamed from
723 compute_symtab_includes. All callers updated. Rewrite to compute
724 includes of compunit_symtabs and not symtabs.
725 (process_full_comp_unit): Update to work with struct compunit_symtab.
726 (process_full_type_unit): Ditto.
727 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
728 (dwarf_decode_lines): Remove special case handling of main subfile.
729 (macro_start_file): Delete argument comp_dir. All callers updated.
730 (dwarf_decode_macro_bytes): Ditto.
731 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
732 use struct compunit_symtab.
733 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
734 * jit.c (finalize_symtab): Build compunit_symtab.
735 * jv-lang.c (get_java_class_symtab): Change result to
736 "struct compunit_symtab *". All callers updated.
737 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
738 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
739 comp_dir. Change type to "struct compunit_symtab *".
741 (new_macro_table): Change comp_dir argument to cust,
742 "struct compunit_symtab *". All callers updated.
743 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
744 nr_primary_symtabs. All uses updated.
745 (count_symtabs_and_blocks): Update to handle compunits.
746 (report_command_stats): Update output, "primary symtabs" renamed to
748 * mdebugread.c (new_symtab): Change result to
749 "struct compunit_symtab *". All callers updated.
750 (parse_procedure): Change type of search_symtab argument to
751 "struct compunit_symtab *". All callers updated.
752 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
754 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
755 symtabs. Change type to "struct compunit_symtab *". All uses updated.
756 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
758 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
760 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
761 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
762 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
763 symtab. Change type to "struct compunit_symtab *". All uses updated.
764 * psymtab.c (psymtab_to_symtab): Change result type to
765 "struct compunit_symtab *". All callers updated.
766 (find_pc_sect_compunit_symtab_from_partial): Renamed from
767 find_pc_sect_symtab_from_partial. Change result type to
768 "struct compunit_symtab *". All callers updated.
769 (lookup_symbol_aux_psymtabs): Change result type to
770 "struct compunit_symtab *". All callers updated.
771 (find_last_source_symtab_from_partial): Ditto.
772 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
773 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
774 and macro_table from compunit.
775 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
776 type to "struct compunit_symtab *". All callers updated.
777 (debug_qf_lookup_symbol): Ditto.
778 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
779 debug_qf_find_pc_sect_symtab, change result type to
780 "struct compunit_symtab *". All callers updated.
781 * symfile.c (allocate_symtab): Delete objfile argument.
783 (allocate_compunit_symtab): New function.
784 (add_compunit_symtab_to_objfile): New function.
785 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
786 Change result type to "struct compunit_symtab *". All uses updated.
787 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
788 Change result type to "struct compunit_symtab *". All uses updated.
789 * symmisc.c (print_objfile_statistics): Compute blockvector count in
791 (dump_symtab_1): Update test for primary source symtab.
792 (maintenance_info_symtabs): Update to handle compunit symtabs.
793 (maintenance_check_symtabs): Ditto.
794 * symtab.c (set_primary_symtab): Delete.
795 (compunit_primary_filetab): New function.
796 (compunit_language): New function.
797 (iterate_over_some_symtabs): Change type of arguments "first",
798 "after_last" to "struct compunit_symtab *". All callers updated.
799 Update to loop over symtabs in each compunit.
800 (error_in_psymtab_expansion): Rename symtab argument to cust,
801 and change type to "struct compunit_symtab *". All callers updated.
802 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
803 Change result type to "struct compunit_symtab *". All callers updated.
804 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
805 Change result type to "struct compunit_symtab *". All callers updated.
806 (find_pc_sect_line): Only loop over symtabs within selected compunit
807 instead of all symtabs in the objfile.
808 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
809 <compunit_symtab> New member.
810 <block_line_section>: Moved to compunit_symtab.
811 <locations_valid>: Ditto.
812 <epilogue_unwind_valid>: Ditto.
813 <macro_table>: Ditto.
815 <debugformat>: Ditto.
818 <call_site_htab>: Ditto.
822 (SYMTAB_COMPUNIT): New macro.
823 (SYMTAB_BLOCKVECTOR): Update definition.
824 (SYMTAB_OBJFILE): Update definition.
825 (SYMTAB_DIRNAME): Update definition.
826 (struct compunit_symtab): New type. Common members among all source
827 symtabs within a compilation unit moved here. All uses updated.
828 (COMPUNIT_OBJFILE): New macro.
829 (COMPUNIT_FILETABS): New macro.
830 (COMPUNIT_DEBUGFORMAT): New macro.
831 (COMPUNIT_PRODUCER): New macro.
832 (COMPUNIT_DIRNAME): New macro.
833 (COMPUNIT_BLOCKVECTOR): New macro.
834 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
835 (COMPUNIT_LOCATIONS_VALID): New macro.
836 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
837 (COMPUNIT_CALL_SITE_HTAB): New macro.
838 (COMPUNIT_MACRO_TABLE): New macro.
839 (ALL_COMPUNIT_FILETABS): New macro.
840 (compunit_symtab_ptr): New typedef.
841 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
843 2014-11-20 Joel Brobecker <brobecker@adacore.com>
845 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
846 if the TYPE_CODE of range_type's base type does not match
847 the TYPE_CODE of encoding_type's base type.
849 2014-11-19 Joel Brobecker <brobecker@adacore.com>
851 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
854 2014-11-19 Joel Brobecker <brobecker@adacore.com>
856 * ada-lang.c (ada_is_redundant_range_encoding): New function.
857 (ada_is_redundant_index_type_desc): New function.
858 (to_fixed_array_type): Ignore parallel XA type if redundant.
860 2014-11-19 Joel Brobecker <brobecker@adacore.com>
862 * ada-lang.c (constrained_packed_array_type): Set the length
863 of the return array as if both bounds where zero if that
864 returned array's index type is dynamic.
866 2014-11-19 Yao Qi <yao@codesourcery.com>
868 * config/i386/go32.mh (CC): Remove.
870 2014-11-18 Doug Evans <xdje42@gmail.com>
872 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
875 2014-11-18 Doug Evans <xdje42@gmail.com>
877 * buildsym.c (buildsym_objfile): New static global.
878 (buildsym_comp_dir): New static global.
879 (finish_block_internal): Delete arg objfile. All callers updated.
880 (finish_block): Delete arg objfile. All callers updated.
881 (start_subfile): Delete arg dirname. All callers updated.
882 (patch_subfile_names): Update buildsym_comp_dir.
883 (get_macro_table): Delete arg objfile. All callers updated.
884 (start_symtab): New arg objfile. All callers updated.
885 Rename arg dirname to comp_dir.
886 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
887 (end_symtab_get_static_block): Delete arg objfile. All callers
889 (end_symtab_without_blockvector): Ditto.
890 (end_symtab_with_blockvector): Ditto.
891 (end_symtab_from_static_block): Ditto.
893 (end_expandable_symtab): Ditto.
894 (augment_type_symtab): Ditto.
895 * coffread.c (coff_start_symtab): New arg objfile. All callers
898 2014-11-18 Doug Evans <xdje42@gmail.com>
900 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
903 2014-11-18 Doug Evans <xdje42@gmail.com>
905 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
906 symtab.dirname updated to use it.
908 2014-11-18 Doug Evans <xdje42@gmail.com>
910 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
911 symtab.objfile updated to use it.
913 2014-11-18 Doug Evans <xdje42@gmail.com>
915 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
917 2014-11-18 Doug Evans <xdje42@gmail.com>
919 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
921 * findvar.c (default_read_var_value): Ditto.
922 * jv-lang.c (add_class_symtab_symbol): Ditto.
923 * parse.c (operator_check_standard): Ditto.
924 * printcmd.c (address_info): Ditto.
925 * symtab.c (fixup_symbol_section): Ditto.
926 (skip_prologue_sal): Ditto.
927 * tracepoint.c (scope_info): Ditto.
928 * valops.c (find_function_in_inferior): Ditto.
929 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
930 * python/py-symbol.c (set_symbol): Ditto.
932 2014-11-18 Doug Evans <xdje42@gmail.com>
934 * buildsym.c (main_subfile): New static global.
935 (free_subfiles_list): New function.
936 (start_symtab): Set main_subfile.
937 (restart_symtab): Replace init of subfiles, current_subfile with
938 call to free_subfiles_list.
939 (watch_main_source_file_lossage): Use main_subfile.
940 (reset_symtab_globals): Replace init of current_subfile with call
941 to free_subfiles_list.
942 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
943 functions, split out from ...
944 (end_symtab_from_static_block): ... here. Rewrite to call them.
946 2014-11-18 Doug Evans <xdje42@gmail.com>
948 The result of symtab expansion is always a primary symtab.
949 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
950 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
951 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
952 (psymtab_to_symtab): Add comment and assert.
953 (map_matching_symbols_psymtab): Remove unnecessary test for
956 2014-11-15 Doug Evans <xdje42@gmail.com>
959 * symtab.c (find_pc_line_symtab): New function.
960 * symtab.h (find_pc_line_symtab): Declare.
961 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
963 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
964 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
965 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
966 * tui/tui-win.c (make_visible_with_new_height): Ditto.
967 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
968 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
970 2014-11-15 Doug Evans <xdje42@gmail.com>
972 * symtab.c (expand_symtab_containing_pc): Renamed from
973 find_pc_sect_symtab_via_partial. All callers updated.
975 2014-11-15 Yao Qi <yao@codesourcery.com>
977 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
979 2014-11-14 Joel Brobecker <brobecker@adacore.com>
981 * common/common-defs.h: Move <stdarg.h> #include ahead of
984 2014-11-14 Pedro Alves <palves@redhat.com>
986 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
987 [!PHONY_ICONV] (gdb_iconv): New function.
988 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
990 2014-11-13 Doug Evans <dje@google.com>
993 * dwarf2read.c (find_slot_in_mapped_hash): Handle
994 "(anonymous namespace)".
996 2014-11-13 Doug Evans <dje@google.com>
998 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1001 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 * NEWS (maint set target-async): Fix typo.
1005 2014-11-12 Pedro Alves <palves@redhat.com>
1007 * infrun.c (enum infwait_states, infwait_state): Delete.
1009 2014-11-12 Pedro Alves <palves@redhat.com>
1011 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1012 Rewrite stepping over a permanent breakpoint.
1013 (thread_still_needs_step_over, proceed): Don't set
1014 stepping_over_breakpoint for permanent breakpoints.
1015 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1016 single-step breakpoints out of the target on hardware step
1018 (process_event_stop_test): If stepping a permanent breakpoint
1019 doesn't hit the step-resume breakpoint, delete the step-resume
1021 (switch_back_to_stepped_thread): Also check if the stepped thread
1022 has advanced already on hardware step targets.
1023 (currently_stepping): Return true if the thread stepped a
1026 2014-11-12 Pedro Alves <palves@redhat.com>
1028 Mark locations as permanent, not the whole breakpoint.
1029 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1030 (mark_breakpoints_out): Don't mark permanent breakpoints as
1032 (breakpoint_init_inferior): Use mark_breakpoints_out.
1033 (breakpoint_here_p): Adjust.
1034 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1035 of permanent breakpoints.
1036 (make_breakpoint_permanent): Mark each location as permanent,
1037 instead of marking the breakpoint.
1038 (add_location_to_breakpoint): If the location is permanent, mark
1039 it as such, and as inserted.
1040 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1041 (bp_location_compare, update_global_location_list): Adjust.
1042 (update_breakpoint_locations): Don't make the breakpoint permanent
1044 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1046 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1047 (struct bp_location) <permanent>: New field.
1048 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1049 reference to bp_permanent.
1051 2014-11-12 Pedro Alves <palves@redhat.com>
1053 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1054 * arch-utils.h (default_skip_permanent_breakpoint): New
1056 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1057 Install default_skip_permanent_breakpoint as default method.
1058 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1059 (i386_gdbarch_init): Don't install it.
1060 * infrun.c (resume): Assume there's always a
1061 gdbarch_skip_permanent_breakpoint implementation.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1064 2014-11-11 Daniel Colascione <dancol@dancol.org>
1066 Warn about cross-PID-namespace debugging.
1067 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1068 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1069 * linux-thread-db.c (check_pid_namespace_match): New function.
1070 (thread_db_inferior_created): Call it.
1072 2014-11-10 Doug Evans <xdje42@gmail.com>
1074 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1075 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1077 2014-11-10 Doug Evans <xdje42@gmail.com>
1079 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1081 2014-11-10 Doug Evans <xdje42@gmail.com>
1084 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1085 (lookup_static_symbol): Move definition to new location and rewrite.
1086 (lookup_symbol_in_objfile): New function.
1087 (lookup_symbol_global_iterator_cb): Call it.
1089 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1091 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1093 2014-11-07 Pedro Alves <palves@redhat.com>
1095 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1096 check if we did a "nexti" inside a prologue.
1097 * symtab.c (in_prologue): Delete function.
1098 * symtab.h (in_prologue): Delete declaration.
1100 2014-11-06 Doug Evans <xdje42@gmail.com>
1102 * symtab.h (lookup_global_symbol): Improve function comment.
1104 2014-11-06 Doug Evans <xdje42@gmail.com>
1106 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1107 All callers updated.
1108 * symtab.h (lookup_global_symbol): Update decl.
1109 (lookup_static_symbol): Move decl to better location.
1111 2014-11-06 Doug Evans <xdje42@gmail.com>
1113 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1115 2014-11-06 Doug Evans <xdje42@gmail.com>
1117 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1118 All callers updated.
1119 (lookup_symbol_in_all_objfiles): Renamed from
1120 lookup_symbol_aux_symtabs. All callers updated.
1121 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1122 All callers updated.
1123 (lookup_symbol_in_objfile_symtabs): Renamed from
1124 lookup_symbol_aux_objfile. All callers updated.
1126 2014-11-06 Doug Evans <xdje42@gmail.com>
1128 * symtab.c (lookup_symbol_in_block): Renamed from
1129 lookup_symbol_aux_block. All callers updated.
1131 2014-11-06 Doug Evans <xdje42@gmail.com>
1133 * symtab.c (lookup_static_symbol): Renamed from
1134 lookup_static_symbol_aux. All callers updated.
1135 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1136 All callers updated.
1138 2014-11-06 Doug Evans <xdje42@gmail.com>
1140 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1141 * block.c (block_lookup_symbol): Use it.
1142 * cp-support.c (make_symbol_overload_list_block): Use it.
1143 * symtab.c (iterate_over_symbols): Use it.
1145 2014-11-06 Doug Evans <xdje42@gmail.com>
1147 * symtab.c (lookup_block_symbol): Moved to ...
1148 * block.c (block_lookup_symbol): ... here and renamed.
1149 All callers updated.
1150 * block.h (block_lookup_symbol): Declare.
1151 * symtab.h (lookup_block_symbol): Delete.
1153 2014-11-06 Doug Evans <xdje42@gmail.com>
1155 * ada-lang.c (ada_make_symbol_completion_list): Use
1156 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1157 * symtab.c (lookup_objfile_from_block): Ditto.
1159 2014-11-06 Doug Evans <xdje42@gmail.com>
1161 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1164 2014-11-06 Doug Evans <xdje42@gmail.com>
1166 * objfiles.c (get_objfile_arch): Constify.
1167 * objfiles.h (get_objfile_arch): Update prototype.
1168 * solib.c (solib_global_lookup): Fetch arch from objfile,
1171 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1173 * nios2-tdep.c (wild_insn): Delete.
1174 (profiler_insn, irqentry_insn): Delete.
1175 (nios2_match_sequence): Delete.
1176 (nios2_analyze_prologue): Update comments. Remove matching
1177 of obsolete profiler_insn and irqentry_insn sequences.
1179 2014-11-05 Alan Modra <amodra@gmail.com>
1181 * charset.c (convert_between_encodings): Shrink obstack using
1183 * minsyms.c (install_minimal_symbols): Likewise.
1184 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1185 to char* before doing pointer arithmetic.
1187 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1189 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1191 2014-11-04 Pedro Alves <palves@redhat.com>
1193 * breakpoint.c (breakpoint_thread_match): Delete function.
1194 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1196 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1199 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1200 the method args also under EVAL_SKIP when evaluating method
1201 calls under EVAL_SKIP.
1203 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1205 * dwarf2loc.c (read_pieced_value): Do big endian
1206 processing only if gdb_regnum is not -1.
1207 (write_pieced_value): Ditto.
1209 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1211 * arm-linux-tdep.c (arm_linux_init_abi): Use
1212 info.byte_order_for_code to choose endianity of breakpoint
1213 instructions snippets.
1215 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1217 * arm-tdep.c (extract_arm_insn): Use
1218 gdbarch_byte_order_for_code to read arm instruction.
1220 2014-11-02 Doug Evans <xdje42@gmail.com>
1222 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1224 2014-11-02 Doug Evans <xdje42@gmail.com>
1226 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1227 main_subfile before returning.
1229 2014-10-31 Doug Evans <xdje42@gmail.com>
1231 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1232 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1234 2014-10-31 Doug Evans <xdje42@gmail.com>
1236 * valops.c (value_cast_pointers): Fix whitespace.
1237 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1240 2014-10-30 Doug Evans <dje@google.com>
1242 * NEWS: Mention ability add attributes to gdb.Objfile and
1243 gdb.Progspace objects.
1244 * python/py-objfile.c (objfile_object): New member dict.
1245 (objfpy_dealloc): Py_XDECREF dict.
1246 (objfpy_initialize): Initialize dict.
1247 (objfile_getset): Add __dict__.
1248 (objfile_object_type): Set tp_dictoffset member.
1249 * python/py-progspace.c (progspace_object): New member dict.
1250 (pspy_dealloc): Py_XDECREF dict.
1251 (pspy_initialize): Initialize dict.
1252 (pspace_getset): Add __dict__.
1253 (pspace_object_type): Set tp_dictoffset member.
1255 2014-10-30 Yao Qi <yao@codesourcery.com>
1257 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1258 replace '\\' with '\\\\'.
1260 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1264 2014-10-29 Pedro Alves <palves@redhat.com>
1267 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1268 instead of assuming a thread with a stepping range is always
1271 2014-10-29 Pedro Alves <palves@redhat.com>
1274 * event-top.c (change_line_handler): Call
1275 gdb_rl_callback_handler_remove instead of
1276 rl_callback_handler_remove.
1277 (callback_handler_installed): New global.
1278 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1279 (gdb_rl_callback_handler_reinstall): New functions.
1280 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1281 gdb_rl_callback_handler_install instead of
1282 rl_callback_handler_remove and rl_callback_handler_install.
1283 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1284 instead of rl_callback_handler_remove.
1285 * event-top.h (gdb_rl_callback_handler_remove)
1286 (gdb_rl_callback_handler_install)
1287 (gdb_rl_callback_handler_reinstall): New declarations.
1288 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1290 (fetch_inferior_event): Install it.
1291 * top.c (gdb_readline_wrapper_line) Call
1292 gdb_rl_callback_handler_remove instead of
1293 rl_callback_handler_remove.
1294 (gdb_readline_wrapper_cleanup): Don't call
1295 rl_callback_handler_install.
1297 2014-10-29 Pedro Alves <palves@redhat.com>
1299 * event-top.c (command_line_handler): Clear the first byte of
1300 linebuffer, when it is first allocated.
1302 2014-10-29 Pedro Alves <palves@redhat.com>
1304 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1307 2014-10-29 Pedro Alves <palves@redhat.com>
1311 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1312 (tui_allowed_p): Delete function.
1313 * tui/tui.c: Include "interps.h".
1314 (tui_enable): Don't use tui_allowed_p. Error out here with
1315 detailed error messages if the TUI is the top level interpreter,
1316 or if output is not a terminal. Use newterm instead of initscr,
1317 and error out if initializing the terminal fails. Also error out if
1318 the terminal doesn't support cursor addressing.
1319 * tui/tui.h (tui_allowed_p): Delete declaration.
1321 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1323 * arm-tdep.c (arm_skip_stack_protector): Return early if
1324 address loaded by first "ldr" instruction does not have
1325 a corresponding minimal symbol. Update comment.
1327 2014-10-29 Yao Qi <yao@codesourcery.com>
1329 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1330 loaded address correctly of ldr instruction.
1332 2014-10-28 Pedro Alves <palves@redhat.com>
1335 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1337 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1338 thread's stepped_breakpoint field. Skip if reverse debugging.
1340 (init_thread_stepping_state, handle_signal_stop): Clear the
1341 thread's stepped_breakpoint field.
1343 2014-10-27 Pedro Alves <palves@redhat.com>
1345 * remote.c (remote_thread_alive): New, factored out from ...
1346 (remote_thread_alive): ... this.
1347 (remote_update_thread_list): Bail out before deleting threads if
1348 the target returned an empty list, and, the current thread has a
1351 2014-10-27 Pedro Alves <palves@redhat.com>
1353 * infrun.c (handle_signal_stop): Also skip handlers when a random
1354 signal arrives while handling a "stepi" or a "nexti". Set the
1355 thread's 'step_after_step_resume_breakpoint' flag.
1357 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1359 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1360 (arm_record_ld_st_imm_offset): Reimplement to cover all
1361 load/store cases for ARM opcode 010.
1362 (arm_record_ld_st_multiple): Reimplement to cover all
1363 load/store cases for ARM opcode 100.
1365 2014-10-26 Doug Evans <xdje42@gmail.com>
1367 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1369 2014-10-26 Doug Evans <xdje42@gmail.com>
1371 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1372 parameter "kind" to "block_index".
1373 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1375 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1377 2014-10-26 Doug Evans <xdje42@gmail.com>
1379 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1381 2014-10-26 Doug Evans <xdje42@gmail.com>
1383 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1386 2014-10-26 Doug Evans <xdje42@gmail.com>
1388 * parser-defs.h (block_found): Move decl from here ...
1389 * symtab.h (block_found): ... to here.
1391 2014-10-26 Doug Evans <xdje42@gmail.com>
1393 * symtab.h (struct field_of_this_result): Fix typo in comment.
1394 (lookup_symbol_in_language): Move function comment here.
1395 (lookup_symbol): Improve function comment.
1396 (basic_lookup_symbol_nonlocal): Ditto.
1397 (lookup_symbol_static, lookup_symbol_global): Ditto.
1398 (lookup_symbol_aux_block): Ditto.
1399 (lookup_language_this): Add function comment.
1400 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1402 (lookup_block_symbol): Improve function comment.
1403 (lookup_struct): Fix capitalization in function comment.
1404 (lookup_transparent_type): Add function comment.
1405 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1406 Improve function comment.
1407 (lookup_objfile_from_block): Add function comment.
1408 * symtab.c (lookup_symbol_in_language): Update function comment.
1409 (lookup_symbol, lookup_language_this): Ditto.
1410 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1411 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1412 (basic_lookup_symbol_nonlocal): Ditto.
1413 (lookup_symbol_static, lookup_symbol_global): Ditto.
1414 (lookup_transparent_type, lookup_block_symbol): Ditto.
1416 2014-10-25 Doug Evans <xdje42@gmail.com>
1418 * symtab.c (types_info): Delete forward decl.
1419 (functions_info, variables_info, sources_info): Ditto.
1420 (_initialize_symtab): Rewrite forward decl to use
1421 initialize_file_ftype.
1423 2014-10-25 Doug Evans <xdje42@gmail.com>
1425 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1427 2014-10-25 Doug Evans <xdje42@gmail.com>
1429 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1430 of local var child_die.
1432 2014-10-24 Don Breazeal <donb@codesourcery.com>
1434 * infrun.c (follow_fork_inferior): Update fork message printing
1435 to use target_terminal_ours_for_output instead of
1436 target_terminal_ours, to use _() for all format strings, to print
1437 "vfork" instead of "fork" for vforks, and to add a detach message.
1438 (handle_vfork_child_exec_or_exit): Update message printing to use
1439 target_terminal_ours_for_output instead of target_terminal_ours, to
1440 use _() for all format strings, and to fix some formatting.
1442 2014-10-24 Pedro Alves <palves@redhat.com>
1444 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1445 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1446 * config/vax/vax.mh: Delete.
1447 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1448 obsolete configurations section.
1449 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1450 * vax-nat.c: Delete file.
1452 2014-10-24 Pedro Alves <palves@redhat.com>
1454 * NEWS (Removed targets): Add OS/arch column.
1456 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1458 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1459 on the arg type of a constructor only if it is of reference type.
1461 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1463 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1464 accessors and constants from nios2 opcodes update.
1465 (nios2_get_next_pc): Likewise.
1467 2014-10-19 Doug Evans <xdje42@gmail.com>
1469 * gdbthread.h (set_running): Fix comment.
1470 (set_executing, finish_thread_state): Fix comment.
1472 2014-10-18 Doug Evans <xdje42@gmail.com>
1474 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1476 2014-10-17 Doug Evans <dje@google.com>
1478 * NEWS: Mention new event gdb.clear_objfiles.
1479 * python/py-event.h (emit_clear_objfiles_event): Clear
1480 * python/py-events.h (events_object): New member clear_objfiles.
1481 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1483 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1484 emit clear_objfiles event.
1485 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1487 (emit_clear_objfiles_event): New function.
1488 (clear_objfiles): New event.
1489 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1491 * python/python.c (_initialize_python): Call
1492 gdbpy_initialize_clear_objfiles_event.
1494 2014-10-17 Doug Evans <dje@google.com>
1496 * NEWS: Mention new gdb.Objfile.progspace attribute.
1497 * python/py-objfile.c (objfpy_get_progspace): New function.
1498 (objfile_getset): New entry for "progspace".
1500 2014-10-17 Pedro Alves <palves@redhat.com>
1503 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1504 returns a copy of the input.
1505 (run_command_1, continue_command, step_1, jump_command)
1506 (signal_command, until_command, advance_command, finish_command)
1507 (attach_command): Adjust and install a cleanup to free the
1510 2014-10-17 Pedro Alves <palves@redhat.com>
1513 * infcmd.c (continue_1): If continuing all threads in the
1514 foreground, make sure the inferior's terminal settings are put in
1517 2014-10-17 Pedro Alves <palves@redhat.com>
1520 * annotate.c (annotate_breakpoints_invalid): Use
1521 target_terminal_our_for_output instead of target_terminal_ours.
1522 Give back the terminal to the target.
1523 (annotate_frames_invalid): Likewise.
1525 2014-10-17 Pedro Alves <palves@redhat.com>
1527 * target.c (enum terminal_state): New enum.
1528 (terminal_state): New global.
1529 (target_terminal_init): New function.
1530 (target_terminal_inferior): Skip if inferior already owns the
1532 (target_terminal_ours, target_terminal_ours_for_output): New
1534 * target.h (target_terminal_init): Convert to function prototype.
1535 (target_terminal_ours_for_output): Convert to function prototype
1537 (target_terminal_ours): Convert to function prototype and tweak
1539 * windows-nat.c (do_initial_windows_stuff): Call
1540 target_terminal_init instead of child_terminal_init_with_pgrp.
1542 2014-10-17 Pedro Alves <palves@redhat.com>
1544 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1545 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1546 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1548 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1549 * ada-lang.h [__alpha__ && __osf__]
1550 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1551 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1552 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1554 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1556 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1557 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1558 * configure: Regenerate.
1559 * configure.ac: Remove references to osf.
1560 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1561 section. Remove all other references to osf.
1562 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1563 Remove all other references to osf.
1564 * dec-thread.c: Delete file.
1565 * defs.h (GDB_OSABI_OSF1): Delete.
1566 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1568 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1569 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1571 (unconditionally_kill_inferior)
1572 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1573 * solib-osf.c: Delete file.
1575 2014-10-17 Pedro Alves <palves@redhat.com>
1577 * remote.c (clear_threads_listing_context): Move higher up, out of
1578 the HAVE_LIBEXPAT guard.
1580 2014-10-16 Tristan Gingold <gingold@adacore.com>
1582 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1583 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1586 2014-10-15 Pedro Alves <palves@redhat.com>
1588 * dec-thread.c (dec_thread_count_gdb_threads)
1589 (dec_thread_add_gdb_thread): Delete.
1590 (dec_thread_update_thread_list): Delete.
1591 (dec_thread_find_new_threads): Rename to ...
1592 (dec_thread_update_thread_list): ... this. Delete GDB-size
1593 threads that are no longer found in dec_thread_list.
1594 (resync_thread_list): Delete.
1595 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1598 2014-10-15 Pedro Alves <palves@redhat.com>
1600 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1601 * remote.c (remote_update_thread_list): Skip calling prune_threads
1602 if any thread listing method is supported, and instead walk over
1603 the set of remote threads listed, deleting those that are not
1604 found in GDB's thread list.
1606 2014-10-15 Pedro Alves <palves@redhat.com>
1608 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1609 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1610 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1611 (bsd_uthread_target): Adjust.
1612 * corelow.c (core_open): Adjust.
1613 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1614 (dec_thread_update_thread_list): New function.
1615 (init_dec_thread_ops): Adjust.
1616 * gdbthread.h (prune_threads): New declaration.
1617 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1618 (thread_db_update_thread_list): ... this. Call prune_threads.
1619 (init_thread_db_ops): Adjust.
1620 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1621 (procfs_update_thread_list): ... this. Call prune_threads.
1622 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1624 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1625 (obsd_update_thread_list): ... this. Call prune_threads.
1626 (obsd_add_target): Adjust.
1627 * procfs.c (procfs_target): Adjust.
1628 (procfs_notice_thread): Update comment.
1629 (procfs_find_new_threads): Rename to ...
1630 (procfs_update_thread_list): ... this. Call prune_threads.
1631 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1633 (ravenscar_wait): Adjust.
1634 (ravenscar_find_new_threads): Rename to ...
1635 (ravenscar_update_thread_list): ... this. Call prune_threads.
1636 (init_ravenscar_thread_ops): Adjust.
1637 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1638 (record_btrace_update_thread_list): ... this. Adjust comment.
1639 (init_record_btrace_ops): Adjust.
1640 * remote.c (remote_threads_info): Rename to ...
1641 (remote_update_thread_list): ... this. Call prune_threads.
1642 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1644 * sol-thread.c (check_for_thread_db): Adjust.
1645 (sol_find_new_threads_callback): Rename to ...
1646 (sol_update_thread_list_callback): ... this.
1647 (sol_find_new_threads): Rename to ...
1648 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1649 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1650 * target-delegates.c: Regenerate.
1651 * target.c (target_find_new_threads): Rename to ...
1652 (target_update_thread_list): ... this.
1653 * target.h (struct target_ops): Rename to_find_new_threads field
1654 to to_update_thread_list.
1655 (target_find_new_threads): Rename to ...
1656 (target_update_thread_list): ... this.
1657 * thread.c (prune_threads): Make extern.
1658 (update_thread_list): Adjust.
1660 2014-10-15 Pedro Alves <palves@redhat.com>
1662 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1663 Add describing comment. Return -1 if the qL packet is not
1665 (struct thread_item, thread_item_t): Move higher up in
1666 the file. Add comments.
1667 (struct threads_parsing_context): Move higher up in
1668 the file, add comments, and remote to ...
1669 (struct threads_listing_context): ... this.
1670 (remote_newthread_step): Don't add the thread to GDB's thread
1671 database here. Instead push it to the thread_listing_context
1673 (remote_find_new_threads): Rename to ...
1674 (remote_get_threads_with_ql): ... this. Add target_ops and
1675 targets_listing_context parameters. Pass down context.
1676 (start_thread): Adjust.
1677 (clear_threads_parsing_context): Rename to ...
1678 (clear_threads_listing_context): ... this.
1679 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1680 remote_threads_info.
1681 (remote_get_threads_with_qthreadinfo): Ditto.
1682 (remote_threads_info): Reimplement.
1684 2014-10-15 Pedro Alves <palves@redhat.com>
1686 * infrun.c (resume): Don't force displaced-stepping for all
1687 single-steps on software single-stepping archs.
1689 2014-10-15 Pedro Alves <palves@redhat.com>
1691 * breakpoint.c (single_step_breakpoints): Delete global.
1692 (insert_single_step_breakpoint): Adjust to store the breakpoint
1693 pointer in the current thread.
1694 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1695 (cancel_single_step_breakpoints): Delete functions.
1696 (breakpoint_has_location_inserted_here): Make extern.
1697 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1699 * breakpoint.h (breakpoint_has_location_inserted_here): New
1701 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1702 (cancel_single_step_breakpoints): Remove declarations.
1703 * gdbthread.h (struct thread_control_state)
1704 <single_step_breakpoints>: New field.
1705 (delete_single_step_breakpoints)
1706 (thread_has_single_step_breakpoints_set)
1707 (thread_has_single_step_breakpoint_here): New declarations.
1708 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1709 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1710 (singlestep_pc): Delete globals.
1711 (infrun_thread_ptid_changed): Remove references to removed
1713 (resume_cleanups): Delete the current thread's single-step
1715 (maybe_software_singlestep): Remove references to removed globals.
1716 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1717 delete_single_step_breakpoints.
1718 (init_wait_for_inferior): Remove references to removed globals.
1719 (delete_thread_infrun_breakpoints): Delete the thread's
1720 single-step breakpoints too.
1721 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1722 single-step breakpoints here.
1723 (delete_stopped_threads_single_step_breakpoints): New function.
1724 (adjust_pc_after_break): Adjust to use
1725 thread_has_single_step_breakpoints_set.
1726 (handle_inferior_event): Remove references to removed globals.
1727 Use delete_stopped_threads_single_step_breakpoints.
1728 (handle_signal_stop): Adjust to per-thread single-step
1729 breakpoints. Swap test order to do cheaper tests first.
1730 (switch_back_to_stepped_thread): Extend debug output. Remove
1731 references to removed globals.
1732 * record-full.c (record_full_wait_1): Adjust to per-thread
1733 single-step breakpoints.
1734 * thread.c (delete_single_step_breakpoints)
1735 (thread_has_single_step_breakpoints_set)
1736 (thread_has_single_step_breakpoint_here): New functions.
1737 (clear_thread_inferior_resources): Also delete the thread's
1738 single-step breakpoints.
1740 2014-10-15 Pedro Alves <palves@redhat.com>
1742 * thread.c (delete_thread_breakpoint): New function.
1743 (delete_step_resume_breakpoint)
1744 (delete_exception_resume_breakpoint): Use it.
1745 (delete_at_next_stop): New function.
1746 (clear_thread_inferior_resources): Use delete_at_next_stop.
1748 2014-10-15 Pedro Alves <palves@redhat.com>
1750 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1751 (breakpoint_inserted_here_p): ... here. Remove special case for
1752 software single-step breakpoints.
1753 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1754 (software_breakpoint_inserted_here_p): ... here. Remove special
1755 case for software single-step breakpoints.
1756 (bp_target_info_copy_insertion_state)
1757 (deprecated_insert_raw_breakpoint)
1758 (deprecated_remove_raw_breakpoint): Delete functions.
1759 * breakpoint.h (deprecated_insert_raw_breakpoint)
1760 (deprecated_remove_raw_breakpoint): Remove declarations.
1762 2014-10-15 Pedro Alves <palves@redhat.com>
1765 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1766 Delete array globals.
1767 (single_step_breakpoints): New global.
1768 (breakpoint_xfer_memory): Remove special handling for single-step
1770 (update_breakpoints_after_exec): Delete bp_single_step
1772 (detach_breakpoints): Remove special handling for single-step
1774 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1775 (bpstat_stop_status): Add comment.
1776 (bpstat_what, bptype_string, print_one_breakpoint_location)
1777 (adjust_breakpoint_address, init_bp_location): Handle
1779 (new_single_step_breakpoint): New function.
1780 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1781 handling for single-step breakpoints.
1782 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1783 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1785 (detach_single_step_breakpoints, find_single_step_breakpoint):
1787 (breakpoint_has_location_inserted_here): New function.
1788 (single_step_breakpoint_inserted_here_p): Rewrite.
1789 * breakpoint.h: Remove FIXME.
1790 (enum bptype) <bp_single_step>: New enum value.
1791 (insert_single_step_breakpoint): Update comment.
1792 * infrun.c (resume_cleanups)
1793 (delete_step_thread_step_resume_breakpoint): Remove single-step
1795 (fetch_inferior_event): Install a cleanup that removes infrun
1797 (switch_back_to_stepped_thread) <expect thread advanced also>:
1798 Clear step-over info.
1800 2014-10-15 Pedro Alves <palves@redhat.com>
1802 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1803 (delete_thread_infrun_breakpoints): New function, with parts
1804 salvaged from delete_step_resume_breakpoint_callback.
1805 (delete_step_thread_step_resume_breakpoint): Delete.
1806 (for_each_just_stopped_thread_callback_func): New typedef.
1807 (for_each_just_stopped_thread): New function.
1808 (delete_just_stopped_threads_infrun_breakpoints): New function.
1809 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1810 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1812 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1814 2014-10-15 Pedro Alves <palves@redhat.com>
1816 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1817 trying to step past a non-steppable watchpoint.
1818 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1820 * infrun.c (struct step_over_info): Add new field
1821 'nonsteppable_watchpoint_p' and adjust comments.
1822 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1824 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1825 (stepping_past_nonsteppable_watchpoint): New function.
1826 (step_over_info_valid_p): Also return true if stepping past a
1827 nonsteppable watchpoint.
1828 (proceed): Adjust call to set_step_over_info. Remove reference to
1830 (init_wait_for_inferior): Remove reference to init_infwait_state.
1831 (waiton_ptid): Delete global.
1832 (struct execution_control_state)
1833 <stepped_after_stopped_by_watchpoint>: Delete field.
1834 (wait_for_inferior, fetch_inferior_event): Always pass
1835 minus_one_ptid to target_wait.
1836 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1838 (init_infwait_state): Delete function.
1839 (handle_inferior_event): Remove infwait_state handling.
1840 (handle_signal_stop) <watchpoints handling>: Adjust after
1841 stepped_after_stopped_by_watchpoint removal. Don't remove
1842 breakpoints here nor set infwait_state. Set the thread's
1843 stepping_over_watchpoint flag, and call keep_going instead.
1844 (keep_going): Handle stepping_over_watchpoint. Adjust
1845 set_step_over_info calls.
1846 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1849 2014-10-15 Pedro Alves <palves@redhat.com>
1851 * infrun.c (step_over_info_valid_p): New function.
1852 (resume): Use step_over_info_valid_p instead of checking the
1853 threads's trap_expected flag.
1855 2014-10-15 Doug Evans <dje@google.com>
1856 Walfred Tedeschi <walfred.tedeschi@intel.com>
1859 * python/lib/gdb/__init__.py (packages): Add "printer".
1860 * python/lib/gdb/command/bound_registers.py: Moved to ...
1861 * python/lib/gdb/printer/bound_registers.py: ... here.
1862 Add printer to global set of builtin printers. Rename printer from
1863 "bound" to "mpx_bound128".
1864 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1865 registered as global "builtin" printer.
1866 (add_builtin_pretty_printer): New function.
1867 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1868 gdb/printer/__init__.py.
1870 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1872 * Makefile.in (SFILES): Remove d-support.c.
1873 (COMMON_OBS): Remove d-support.o.
1874 * d-lang.h (d_parse_symbol): Remove declaration.
1875 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1876 * d-support.c: Remove file.
1878 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1880 * gdb/infrun.c (process_event_stop_test): Apply
1881 gdbarch_addr_bits_remove to longjmp resume address.
1883 2014-10-15 Pedro Alves <palves@redhat.com>
1885 * regformats/microblaze.dat: Delete file.
1887 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1889 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1890 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1892 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1894 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1897 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1901 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1902 with qualified args.
1904 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1906 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1907 of the case where the second operand is a pointer.
1908 <BINOP_SUB>: Likewise.
1910 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1912 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1913 only if it is not NULL.
1914 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1915 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1916 (struct probe_ops) <clear_semaphore>: Likewise.
1917 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1919 (stop_tracing): Likewise, for clear_semaphore.
1921 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1923 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1924 using language_c, instead of current_language.
1926 2014-10-13 Doug Evans <dje@google.com>
1928 * python/py-objfile.c (objfpy_initialize): New function.
1929 (objfpy_new, objfile_to_objfile_object): Call it.
1930 * python/py-progspace.c (pspy_initialize): New function.
1931 (pspy_new, pspace_to_pspace_object): Call it.
1933 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1934 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Fix "save breakpoints" for "catch" command.
1937 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1940 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1942 Fix "save breakpoints" for "disable $bpnum" command.
1943 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1945 2014-10-10 Pedro Alves <palves@redhat.com>
1947 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1948 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1949 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1950 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1952 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1953 * configure.ac: Remove references to IRIX.
1954 * configure.host: Add *-*-irix* to the obsolete hosts section.
1955 Remove all other references to irix.
1956 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1959 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1961 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1962 isn't valid, release the tdesc arch data and return NULL.
1964 2014-10-10 Pedro Alves <palves@redhat.com>
1966 * linux-tdep.c: Include observer.h.
1967 (linux_inferior_data): New global.
1968 (struct linux_info): New structure.
1969 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1970 (get_linux_inferior_data): New functions.
1971 (linux_vsyscall_range): Rename to ...
1972 (linux_vsyscall_range_raw): ... this.
1973 (linux_vsyscall_range): New function; handles caching.
1974 (_initialize_linux_tdep): Register linux_inferior_data. Install
1975 inferior_exit and inferior_appeared observers.
1977 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Pedro Alves <palves@redhat.com>
1981 * solib-svr4.c (svr4_read_so_list): Rename to ...
1982 (svr4_current_sos_1): ... this and change the function comment.
1983 (svr4_current_sos): New function.
1985 2014-10-10 Pedro Alves <palves@redhat.com>
1987 * arch-utils.c (default_vsyscall_range): New function.
1988 * arch-utils.h (default_vsyscall_range): New declaration.
1989 * gdbarch.sh (vsyscall_range): New hook.
1990 * gdbarch.h, gdbarch.c: Regenerate.
1991 * linux-tdep.c (linux_vsyscall_range): New function.
1992 (linux_init_abi): Install linux_vsyscall_range as
1993 vsyscall_range gdbarch hook.
1994 * memrange.c (address_in_mem_range): New function.
1995 * memrange.h (address_in_mem_range): New declaration.
1996 * symfile-mem.c (find_vdso_size): Delete function.
1997 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1999 2014-10-10 Pedro Alves <palves@redhat.com>
2001 * infrun.c (normal_stop): Fix typo in comment.
2003 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2006 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2007 typo when using logical AND to determine instruction type.
2009 2014-10-09 Yao Qi <yao@codesourcery.com>
2011 * infrun.c (handle_signal_stop): Remove local variable
2014 2014-10-08 Stan Shebs <stan@codesourcery.com>
2016 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2018 2014-10-08 Gary Benson <gbenson@redhat.com>
2020 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2022 2014-10-08 Gary Benson <gbenson@redhat.com>
2024 * common/common-defs.h: Include common-exceptions.h.
2025 * exceptions.h: Do not include common-exceptions.h.
2027 2014-10-08 Gary Benson <gbenson@redhat.com>
2029 * common/common-defs.h: Include cleanups.h.
2030 * common/common-exceptions.c: Do not include cleanups.h.
2031 * utils.h: Likewise.
2033 2014-10-08 Gary Benson <gbenson@redhat.com>
2035 * ada-lang.c: Do not include exceptions.h.
2036 * ada-valprint.c: Likewise.
2037 * amd64-tdep.c: Likewise.
2038 * auto-load.c: Likewise.
2039 * block.c: Likewise.
2040 * break-catch-throw.c: Likewise.
2041 * breakpoint.c: Likewise.
2042 * btrace.c: Likewise.
2043 * c-lang.c: Likewise.
2044 * cli/cli-cmds.c: Likewise.
2045 * cli/cli-interp.c: Likewise.
2046 * cli/cli-script.c: Likewise.
2047 * completer.c: Likewise.
2048 * corefile.c: Likewise.
2049 * corelow.c: Likewise.
2050 * cp-abi.c: Likewise.
2051 * cp-support.c: Likewise.
2052 * cp-valprint.c: Likewise.
2053 * darwin-nat.c: Likewise.
2054 * dwarf2-frame-tailcall.c: Likewise.
2055 * dwarf2-frame.c: Likewise.
2056 * dwarf2loc.c: Likewise.
2057 * dwarf2read.c: Likewise.
2059 * event-loop.c: Likewise.
2060 * event-top.c: Likewise.
2061 * f-valprint.c: Likewise.
2062 * frame-unwind.c: Likewise.
2063 * frame.c: Likewise.
2064 * gdbtypes.c: Likewise.
2065 * gnu-v2-abi.c: Likewise.
2066 * gnu-v3-abi.c: Likewise.
2067 * guile/scm-auto-load.c: Likewise.
2068 * guile/scm-breakpoint.c: Likewise.
2069 * guile/scm-cmd.c: Likewise.
2070 * guile/scm-frame.c: Likewise.
2071 * guile/scm-lazy-string.c: Likewise.
2072 * guile/scm-param.c: Likewise.
2073 * guile/scm-symbol.c: Likewise.
2074 * guile/scm-type.c: Likewise.
2075 * hppa-hpux-tdep.c: Likewise.
2076 * i386-tdep.c: Likewise.
2077 * inf-loop.c: Likewise.
2078 * infcall.c: Likewise.
2079 * infcmd.c: Likewise.
2080 * infrun.c: Likewise.
2081 * interps.c: Likewise.
2082 * interps.h: Likewise.
2084 * linespec.c: Likewise.
2085 * linux-nat.c: Likewise.
2086 * linux-thread-db.c: Likewise.
2087 * m32r-rom.c: Likewise.
2089 * memory-map.c: Likewise.
2090 * mi/mi-cmd-break.c: Likewise.
2091 * mi/mi-cmd-stack.c: Likewise.
2092 * mi/mi-interp.c: Likewise.
2093 * mi/mi-main.c: Likewise.
2094 * monitor.c: Likewise.
2095 * nto-procfs.c: Likewise.
2096 * objc-lang.c: Likewise.
2097 * p-valprint.c: Likewise.
2098 * parse.c: Likewise.
2099 * ppc-linux-tdep.c: Likewise.
2100 * printcmd.c: Likewise.
2101 * probe.c: Likewise.
2102 * python/py-auto-load.c: Likewise.
2103 * python/py-breakpoint.c: Likewise.
2104 * python/py-cmd.c: Likewise.
2105 * python/py-finishbreakpoint.c: Likewise.
2106 * python/py-frame.c: Likewise.
2107 * python/py-framefilter.c: Likewise.
2108 * python/py-function.c: Likewise.
2109 * python/py-gdb-readline.c: Likewise.
2110 * python/py-inferior.c: Likewise.
2111 * python/py-infthread.c: Likewise.
2112 * python/py-lazy-string.c: Likewise.
2113 * python/py-linetable.c: Likewise.
2114 * python/py-param.c: Likewise.
2115 * python/py-prettyprint.c: Likewise.
2116 * python/py-symbol.c: Likewise.
2117 * python/py-type.c: Likewise.
2118 * python/py-value.c: Likewise.
2119 * python/python-internal.h: Likewise.
2120 * python/python.c: Likewise.
2121 * record-btrace.c: Likewise.
2122 * record-full.c: Likewise.
2123 * regcache.c: Likewise.
2124 * remote-fileio.c: Likewise.
2125 * remote-mips.c: Likewise.
2126 * remote.c: Likewise.
2127 * rs6000-aix-tdep.c: Likewise.
2128 * rs6000-nat.c: Likewise.
2130 * solib-darwin.c: Likewise.
2131 * solib-dsbt.c: Likewise.
2132 * solib-frv.c: Likewise.
2133 * solib-ia64-hpux.c: Likewise.
2134 * solib-spu.c: Likewise.
2135 * solib-svr4.c: Likewise.
2136 * solib.c: Likewise.
2137 * spu-tdep.c: Likewise.
2138 * stack.c: Likewise.
2139 * stap-probe.c: Likewise.
2140 * symfile-mem.c: Likewise.
2141 * symmisc.c: Likewise.
2142 * target.c: Likewise.
2143 * thread.c: Likewise.
2145 * tracepoint.c: Likewise.
2146 * tui/tui-interp.c: Likewise.
2147 * typeprint.c: Likewise.
2148 * utils.c: Likewise.
2149 * valarith.c: Likewise.
2150 * valops.c: Likewise.
2151 * valprint.c: Likewise.
2152 * value.c: Likewise.
2153 * varobj.c: Likewise.
2154 * windows-nat.c: Likewise.
2155 * xml-support.c: Likewise.
2157 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2159 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2161 (extended_mips16_next_pc): Update accordingly.
2163 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2165 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2167 (micromips_instruction_is_compact_branch): Likewise.
2168 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2169 or a compact jump, reaching a jump delay slot, or seeing a
2170 second non-prologue instruction.
2171 (micromips_scan_prologue): Also terminate scanning upon seeing a
2172 compact branch or jump, or reaching a branch or jump delay slot.
2173 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2174 or jump delay slot, or seeing a second non-prologue instruction.
2175 (mips32_instruction_has_delay_slot): Retain instruction
2176 examination code only, update arguments accordingly and move
2177 instruction fetch pieces to...
2178 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2179 (micromips_instruction_has_delay_slot): Likewise and to...
2180 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2181 (mips16_instruction_has_delay_slot): Likewise and to...
2182 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2183 (mips_single_step_through_delay): Update accordingly.
2184 (mips_adjust_breakpoint_address): Likewise.
2186 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2188 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2189 !mustbe32 also return 1 for 32-bit instructions.
2190 (mips16_instruction_has_delay_slot): Likewise. Add an
2191 explanatory comment.
2193 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2195 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2198 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2200 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2202 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2203 for the breakpoint's address. Don't preinitialize `placed_size'.
2204 (insert_bp_location): Set `reqstd_address' rather than
2206 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2207 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2209 (bkpt_remove_location): Likewise.
2210 (deprecated_insert_raw_breakpoint): Likewise.
2211 (deprecated_remove_raw_breakpoint): Likewise.
2212 (find_single_step_breakpoint): Likewise.
2213 * mem-break.c (default_memory_insert_breakpoint): Use
2214 `reqstd_address' for the breakpoint's address. Don't set
2215 `placed_address' or `placed_size' if breakpoint contents couldn't
2216 have been determined.
2217 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2218 the breakpoint's address.
2219 (remote_insert_hw_breakpoint): Likewise. Don't set
2220 `placed_address' or `placed_size' if breakpoint couldn't have been
2222 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2223 `reqstd_address' for the breakpoint's address.
2224 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2225 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2226 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2227 * microblaze-linux-tdep.c
2228 (microblaze_linux_memory_remove_breakpoint): Likewise.
2229 * monitor.c (monitor_insert_breakpoint): Likewise.
2230 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2231 (procfs_insert_hw_breakpoint): Likewise.
2232 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2233 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2234 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2235 * remote-mips.c (mips_insert_breakpoint): Likewise.
2236 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2238 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2240 * valops.c (value_assign): Check for bit field assignments
2241 before calling architecture-specific register value
2242 conversion functions.
2244 2014-10-03 Pierre Muller <muller@sourceware.org>
2246 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2248 2014-10-02 Pedro Alves <palves@redhat.com>
2250 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2251 threads_are_executing.
2252 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2254 * gdbthread.h (threads_are_executing): Declare.
2255 (handle_signal_stop) <random signals>: Don't print about the
2256 signal here if stopping.
2257 (end_stepping_range): Don't notify observers here.
2258 (normal_stop): Update the thread list. If stopped by a random
2259 signal or a stepping range ended, notify observers.
2260 * thread.c (threads_executing): New global.
2261 (init_thread_list): Clear 'threads_executing'.
2262 (set_executing): Set or clear 'threads_executing'.
2263 (threads_are_executing): New function.
2264 (update_threads_executing): New function.
2265 (update_thread_list): Use it.
2267 2014-10-02 Pedro Alves <palves@redhat.com>
2269 PR breakpoints/17431
2270 * breakpoint.c (update_breakpoints_after_exec): Don't create
2271 overlay, longjmp, std terminate nor exception breakpoints here.
2273 2014-10-02 Pedro Alves <palves@redhat.com>
2275 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2277 * inferior.c (find_inferior_for_program_space): Give preference to
2278 the current inferior.
2279 * inferior.h (find_inferior_for_program_space): Update comment.
2280 * progspace.c (switch_to_program_space_and_thread): Prefer the
2281 current inferior if it's bound to the program space requested. If
2282 the inferior found doesn't have a PID yet, don't bother looking up
2284 * progspace.h (switch_to_program_space_and_thread): Adjust
2286 * thread.c (any_thread_of_process, any_live_thread_of_process):
2287 Give preference to the current thread.
2289 2014-10-01 Pedro Alves <palves@redhat.com>
2291 * breakpoint.c (insert_bp_location): Error out if inserting a
2292 software breakpoint at a read-only address.
2293 * target.c (memory_xfer_check_region): New function, factored out
2295 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2297 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2298 against the memory region attributes.
2300 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2302 * NEWS: Announce new exit-code field in -list-thread-groups
2304 * inferior.c (exit_inferior_1): Don't clear exit code.
2305 (inferior_appeared): Clear exit code.
2306 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2309 2014-10-01 Pedro Alves <palves@redhat.com>
2311 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2312 GENERATED" along with emacs/vi read-only markers.
2313 * regformats/aarch64.dat: Regenerate.
2314 * regformats/arm-with-iwmmxt.dat: Regenerate.
2315 * regformats/arm-with-neon.dat: Regenerate.
2316 * regformats/arm-with-vfpv2.dat: Regenerate.
2317 * regformats/arm-with-vfpv3.dat: Regenerate.
2318 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2319 * regformats/i386/amd64-avx.dat: Regenerate.
2320 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2321 * regformats/i386/amd64-avx512.dat: Regenerate.
2322 * regformats/i386/amd64-linux.dat: Regenerate.
2323 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2324 * regformats/i386/amd64-mpx.dat: Regenerate.
2325 * regformats/i386/amd64.dat: Regenerate.
2326 * regformats/i386/i386-avx-linux.dat: Regenerate.
2327 * regformats/i386/i386-avx.dat: Regenerate.
2328 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2329 * regformats/i386/i386-avx512.dat: Regenerate.
2330 * regformats/i386/i386-linux.dat: Regenerate.
2331 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2332 * regformats/i386/i386-mmx.dat: Regenerate.
2333 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2334 * regformats/i386/i386-mpx.dat: Regenerate.
2335 * regformats/i386/i386.dat: Regenerate.
2336 * regformats/i386/x32-avx-linux.dat: Regenerate.
2337 * regformats/i386/x32-avx.dat: Regenerate.
2338 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2339 * regformats/i386/x32-avx512.dat: Regenerate.
2340 * regformats/i386/x32-linux.dat: Regenerate.
2341 * regformats/i386/x32.dat: Regenerate.
2342 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2343 * regformats/mips-dsp-linux.dat: Regenerate.
2344 * regformats/mips-linux.dat: Regenerate.
2345 * regformats/mips64-dsp-linux.dat: Regenerate.
2346 * regformats/mips64-linux.dat: Regenerate.
2347 * regformats/nios2-linux.dat: Regenerate.
2348 * regformats/rs6000/powerpc-32.dat: Regenerate.
2349 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2350 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2351 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2352 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2353 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2354 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2355 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2356 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2357 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2358 * regformats/s390-linux32.dat: Regenerate.
2359 * regformats/s390-linux32v1.dat: Regenerate.
2360 * regformats/s390-linux32v2.dat: Regenerate.
2361 * regformats/s390-linux64.dat: Regenerate.
2362 * regformats/s390-linux64v1.dat: Regenerate.
2363 * regformats/s390-linux64v2.dat: Regenerate.
2364 * regformats/s390-te-linux64.dat: Regenerate.
2365 * regformats/s390x-linux64.dat: Regenerate.
2366 * regformats/s390x-linux64v1.dat: Regenerate.
2367 * regformats/s390x-linux64v2.dat: Regenerate.
2368 * regformats/s390x-te-linux64.dat: Regenerate.
2369 * regformats/tic6x-c62x-linux.dat: Regenerate.
2370 * regformats/tic6x-c62x.dat: Regenerate.
2371 * regformats/tic6x-c64x-linux.dat: Regenerate.
2372 * regformats/tic6x-c64x.dat: Regenerate.
2373 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2374 * regformats/tic6x-c64xp.dat: Regenerate.
2376 2014-10-01 Pedro Alves <palves@redhat.com>
2378 * features/Makefile: Update comments.
2379 (XMLTOC): List all xml files we build C files from.
2380 (clean-cfiles): New rule.
2382 2014-10-01 Pedro Alves <palves@redhat.com>
2384 * features/i386/amd64-avx512-linux.c: Regenerate.
2385 * features/i386/amd64-avx512.c: Regenerate.
2386 * features/i386/x32-avx512-linux.c: Regenerate.
2387 * features/i386/x32-avx512.c: Regenerate.
2389 2014-10-01 Pedro Alves <palves@redhat.com>
2391 * features/Makefile (WHICH): Remove arm-with-m,
2392 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2394 2014-10-01 Pedro Alves <palves@redhat.com>
2396 * features/Makefile (clean): New rule.
2398 2014-10-01 Pedro Alves <palves@redhat.com>
2400 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2401 (zmm14h): Add missing end quotes.
2403 2014-10-01 Pedro Alves <palves@redhat.com>
2405 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2406 * features/aarch64.c: Regenerate.
2408 2014-09-30 Don Breazeal <donb@codesourcery.com>
2410 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2411 code so as to work with follow_fork_inferior.
2412 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2413 (inf_ttrace_create_inferior): Remove reference to
2414 inf_ttrace_vfork_ppid.
2415 (inf_ttrace_attach): Ditto.
2416 (inf_ttrace_detach): Ditto.
2417 (inf_ttrace_kill): Use current_inferior instead of
2418 inf_ttrace_vfork_ppid.
2419 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2420 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2421 inferior away from the parent.
2422 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2424 (follow_fork_inferior): New function.
2425 (follow_inferior_reset_breakpoints): Make function static.
2426 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2427 * linux-nat.c (linux_child_follow_fork): Move target-independent
2428 code to infrun.c:follow_fork_inferior.
2430 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2432 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2433 * gdbarch.c: Regenerate.
2434 * gdbarch.h: Likewise.
2435 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2436 gdbarch method 'regset_from_core_section'.
2437 (get_core_register_section): Remove handling for the case that
2438 regset == NULL and regset_from_core_section is defined.
2439 (get_core_registers): Drop check for deleted method.
2440 * procfs.c (procfs_do_thread_registers): Adjust comment.
2442 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2444 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2445 (linux_nat_make_corefile_notes): Remove.
2446 (linux_target_install_ops): Do not set target method
2447 'make_corefile_notes'.
2448 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2450 (linux_corefile_thread_callback): Instead of args->collect, call
2451 linux_collect_thread_registers.
2452 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2453 NULL unless there is a regset iterator.
2454 (linux_make_corefile_notes_1): Remove.
2455 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2456 by linux_make_corefile_notes.
2457 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2461 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2462 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2464 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2466 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2468 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2469 (xtensa_iterate_over_regset_sections): New.
2470 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2472 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2474 * vax-tdep.c (vax_regset_from_core_section): Remove.
2475 (vax_iterate_over_regset_sections): New.
2476 (vax_gdbarch_init): Adjust gdbarch initialization.
2478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2480 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2481 (tilegx_regset_from_core_section): Remove.
2482 (tilegx_iterate_over_regset_sections): New.
2483 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2488 (sparc_iterate_over_regset_sections): New.
2489 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2490 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2492 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2493 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2494 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2495 target method 'make_corefile_notes'.
2497 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2499 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2500 'sizeof_gregset' and 'sizeof_fpregset'.
2501 * sh-tdep.c (sh_regset_from_core_section): Remove.
2502 (sh_iterate_over_regset_sections): New.
2503 (sh_gdbarch_init): Adjust gdbarch initialization.
2504 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2506 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2509 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2511 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2512 (score7_linux_iterate_over_regset_sections): New.
2513 (score_gdbarch_init): Adjust gdbarch initialization.
2515 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2519 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2520 method 'make_corefile_notes'.
2521 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2522 (ppcfbsd_regset_from_core_section): Remove.
2523 (ppcfbsd_iterate_over_regset_sections): New.
2524 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2526 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2527 (ppcnbsd_iterate_over_regset_sections): New.
2528 (ppcnbsd_init_abi): Adjust.
2529 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2530 (ppcobsd_iterate_over_regset_sections): New.
2531 (ppcobsd_init_abi): Adjust.
2532 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2533 (rs6000_aix_iterate_over_regset_sections): New.
2534 (rs6000_aix_init_osabi): Adjust.
2536 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2539 (nios2_regset_from_core_section): Remove.
2540 (nios2_iterate_over_regset_sections): New.
2541 (nios2_linux_init_abi): Adjust gdbarch initialization.
2543 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2546 (am33_iterate_over_regset_sections): New.
2547 (am33_linux_init_osabi): Adjust gdbarch initialization.
2549 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2551 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2552 (mips_linux_iterate_over_regset_sections): New.
2553 (mips_linux_init_abi): Adjust gdbarch initialization.
2554 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2555 (mips64obsd_iterate_over_regset_sections): New.
2556 (mips64obsd_init_abi): Adjust.
2557 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2558 (mipsnbsd_iterate_over_regset_sections): New.
2559 (mipsnbsd_init_abi): Adjust.
2561 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2563 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2564 (m88k_iterate_over_regset_sections): New.
2565 (m88k_gdbarch_init): Adjust gdbarch initialization.
2567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2569 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2570 (ia64_linux_iterate_over_regset_sections): New.
2571 (ia64_linux_init_abi): Adjust gdbarch initialization.
2573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2576 (m68kbsd_iterate_over_regset_sections): New.
2577 (m68kbsd_init_abi): Adjust gdbarch initialization.
2578 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2579 (m68k_linux_iterate_over_regset_sections): New.
2580 (m68k_linux_init_abi): Adjust gdbarch initialization.
2582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2584 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2585 (m32r_linux_regset_from_core_section): Remove.
2586 (m32r_linux_iterate_over_regset_sections): New.
2587 (m32r_linux_init_abi): Adjust gdbarch initialization.
2589 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2592 (amd64obsd_iterate_over_regset_sections): New.
2593 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2594 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2596 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2597 regset_from_core_section initialization.
2598 * i386-tdep.c (i386_regset_from_core_section): Remove.
2599 (i386_iterate_over_regset_sections): New.
2600 (i386_gdbarch_init): Adjust gdbarch initialization.
2601 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2602 (i386_iterate_over_regset_sections): New prototype.
2603 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2605 (i386obsd_aout_iterate_over_regset_sections): New.
2606 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2607 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2609 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2610 (amd64fbsd_init_abi): Call fbsd_init_abi.
2611 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2612 (i386fbsd4_init_abi): Call fbsd_init_abi.
2613 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2614 target method 'make_corefile_notes'.
2615 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2619 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2620 (hppa_hpux_iterate_over_regset_sections): New.
2621 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2622 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2623 (hppa_linux_iterate_over_regset_sections): New.
2624 (hppa_linux_init_abi): Adjust.
2625 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2626 (hppanbsd_iterate_over_regset_sections): New.
2627 (hppanbsd_init_abi): Adjust.
2628 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2629 (hppaobsd_iterate_over_regset_sections): New.
2630 (hppaobsd_init_abi): Adjust.
2632 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2634 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2635 (frv_linux_iterate_over_regset_sections): New.
2636 (frv_linux_init_abi): Adjust gdbarch initialization.
2638 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2641 (armbsd_iterate_over_regset_sections): New prototype.
2642 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2643 (armbsd_iterate_over_regset_sections): New.
2644 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2647 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2649 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2650 (alpha_linux_iterate_over_regset_sections): New.
2651 (alpha_linux_init_abi): Adjust gdbarch initialization.
2652 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2654 (alphanbsd_iterate_over_regset_sections): New prototype.
2656 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2658 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2660 (aarch64_linux_iterate_over_regset_sections): New.
2661 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665 * fbsd-tdep.c: New file.
2666 * fbsd-tdep.h: New file.
2667 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2668 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2669 (ALLDEPFILES): Add fbsd-tdep.c.
2671 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2673 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2675 * gdbarch.h: Regenerate.
2676 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2678 (get_core_register_section): Add parameter 'regset' and use it, if
2679 set. Add parameter 'min_size' and verify the bfd section size
2681 (get_core_registers_cb): Add parameter 'regset' and pass it to
2682 get_core_register section. For the "standard" register sections
2683 ".reg" and ".reg2", set an appropriate default for human_name.
2684 (get_core_registers): Don't abort when the gdbarch has an iterator
2685 but no regset_from_core_section. Add NULL/0 for parameters
2686 'regset'/'min_size' in calls to get_core_register_section.
2687 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2688 'regset' and use it instead of calling the
2689 regset_from_core_section gdbarch method.
2690 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2691 * i386-tdep.c (i386_supply_xstateregset)
2692 (i386_collect_xstateregset, i386_xstateregset): Moved to
2694 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2696 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2697 core file support only if the regset iterator hasn't been set.
2698 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2699 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2700 Moved from i386-tdep.c and renamed to *_linux*.
2701 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2702 each callback invocation. Allow any .reg-xstate size when reading
2704 * amd64-tdep.c (amd64_supply_xstateregset)
2705 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2707 (amd64_regset_from_core_section): Remove.
2708 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2709 install an amd64-specific regset_from_core_section gdbarch method.
2710 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2711 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2712 Moved from amd64-tdep.c and renamed to *_linux*.
2713 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2714 to each callback invocation. Allow any .reg-xstate size when
2715 reading from a core file.
2716 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2717 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2718 each callback invocation.
2719 (arm_linux_init_abi): No longer set the regset_from_core_section
2721 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2722 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2723 each callback invocation.
2724 (ppc_linux_init_abi): No longer set the regset_from_core_section
2726 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2727 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2728 (s390_regset_from_core_section): Remove.
2729 (s390_iterate_over_regset_sections): Add regset parameter to each
2730 callback invocation.
2731 (s390_gdbarch_init): No longer set the regset_from_core_section
2732 gdbarch method. Drop initialization of deleted tdep fields.
2734 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2736 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2737 (amd64_linux_iterate_over_regset_sections): New.
2738 (amd64_linux_init_abi_common): Don't install the regset section
2739 list, but the new iterator in gdbarch.
2740 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2741 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2742 (arm_linux_iterate_over_regset_sections): ...here. New function.
2743 (arm_linux_init_abi): Set iterator instead of section list.
2744 * corelow.c (get_core_registers_cb): New function, logic moved
2746 (get_core_registers): ...loop body here. Use new iterator method
2747 instead of walking through the regset section list.
2748 * gdbarch.sh: Remove 'core_regset_sections'. New method
2749 'iterate_over_regset_sections'. New typedef
2750 'iterate_over_regset_sections_cb'.
2751 * gdbarch.c: Regenerate.
2752 * gdbarch.h: Likewise.
2753 * i386-linux-tdep.c (i386_linux_regset_sections)
2754 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2756 (i386_linux_iterate_over_regset_sections): New.
2757 (i386_linux_init_abi): Don't choose a regset section list, but
2758 install new iterator in gdbarch.
2759 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2760 (linux_collect_regset_section_cb): New function, logic moved
2762 (linux_collect_thread_registers): ...loop body here. Use iterator
2763 method instead of walking through list.
2764 (linux_make_corefile_notes_1): Check for presence of iterator
2765 method instead of regset section list.
2766 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2767 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2768 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2769 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2770 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2771 (ppc_linux_init_abi): Don't choose from above regset section
2772 lists, but install new iterator in gdbarch.
2773 * regset.h (struct core_regset_section): Remove.
2774 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2775 have_linux_v1, have_linux_v2, and have_tdb.
2776 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2777 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2778 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2779 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2780 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2781 (s390_iterate_over_regset_sections): ...here. New function. Use
2783 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2784 regset section lists, but install new iterator.
2786 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2788 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2790 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2792 * progspace.c (print_program_space): Don't prune program spaces
2793 before printing them.
2795 2014-09-25 Pedro Alves <palves@redhat.com>
2797 * infrun.c (user_visible_resume_ptid): Don't check
2798 singlestep_breakpoints_inserted_p.
2800 2014-09-25 Pedro Alves <palves@redhat.com>
2802 * breakpoint.c (should_be_inserted): Add debug output.
2804 2014-09-25 Pedro Alves <palves@redhat.com>
2806 * infrun.c (stepping_past_instruction_at)
2807 (clear_exit_convenience_vars): Point at infrun.h instead of
2809 (handle_signal_stop): Fix typo.
2811 2014-09-24 Yao Qi <yao@codesourcery.com>
2813 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2816 2014-09-22 Gary Benson <gbenson@redhat.com>
2818 * target.c (target_stop): Updated comment.
2820 2014-09-22 Gary Benson <gbenson@redhat.com>
2822 * target/target.h (target_stop_ptid): Renamed as...
2823 (target_stop_and_wait): New function. Updated comment.
2825 (target_continue_ptid): Renamed as...
2826 (target_continue_no_signal): New function. Updated comment.
2829 2014-09-22 Pedro Alves <palves@redhat.com>
2831 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2833 * breakpoint.c (enum ugll_insert_mode): New enum.
2834 (always_inserted_mode): Now a plain boolean.
2835 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2836 (breakpoints_always_inserted_mode): Delete.
2837 (breakpoints_should_be_inserted_now): New function.
2838 (insert_breakpoints): Pass UGLL_INSERT to
2839 update_global_location_list instead of calling
2840 insert_breakpoint_locations manually.
2841 (create_solib_event_breakpoint_1): New, factored out from ...
2842 (create_solib_event_breakpoint): ... this.
2843 (create_and_insert_solib_event_breakpoint): Use
2844 create_solib_event_breakpoint_1 instead of calling
2845 insert_breakpoint_locations manually.
2846 (update_global_location_list): Change parameter type from boolean
2847 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2848 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2849 (update_global_location_list_nothrow): Change parameter type from
2850 boolean to enum ugll_insert_mode.
2851 (_initialize_breakpoint): "breakpoint always-inserted" option is
2852 now a boolean command. Update help text.
2853 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2854 (breakpoints_should_be_inserted_now): New declaration.
2855 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2856 Remove breakpoints_always_inserted_mode check.
2857 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2858 * remote.c (remote_start_remote): Likewise.
2860 2014-09-22 Pedro Alves <palves@redhat.com>
2862 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2863 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2864 Instead, pass UGLL_INSERT to update_global_location_list.
2865 (update_global_location_list): Change parameter type from boolean
2866 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2867 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2868 (create_solib_event_breakpoint_1): New, factored out from ...
2869 (create_solib_event_breakpoint): ... this.
2870 (create_and_insert_solib_event_breakpoint): Use
2871 create_solib_event_breakpoint_1 instead of calling
2872 insert_breakpoint_locations manually.
2873 (update_global_location_list): Handle UGLL_INSERT.
2875 2014-09-22 Pedro Alves <palves@redhat.com>
2877 * breakpoint.c (enum ugll_insert_mode): New enum.
2878 (update_global_location_list)
2879 (update_global_location_list_nothrow): Change parameter type from
2880 boolean to enum ugll_insert_mode. All callers adjusted.
2882 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2884 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2885 SystemTap support in GDB.
2887 2014-09-19 Don Breazeal <donb@codesourcery.com>
2889 * linux-nat.c (linux_handle_extended_wait): Call
2890 linux_ptrace_get_extended_event.
2891 (wait_lwp): Call linux_is_extended_waitstatus.
2892 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2893 and linux_is_extended_waitstatus.
2894 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2895 linux_ptrace_get_extended_event.
2896 (linux_ptrace_get_extended_event): New function.
2897 (linux_is_extended_waitstatus): New function.
2898 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2899 (linux_is_extended_waitstatus): New declarations.
2901 2014-09-19 Yao Qi <yao@codesourcery.com>
2903 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2904 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2905 comments. Callers update.
2906 (dwarf_decode_lines): Likewise.
2907 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2908 comments. Skip the line table if 'lowpc' is greater than
2909 'address'. Don't check
2910 dwarf2_per_objfile->has_section_at_zero.
2912 2014-09-18 Doug Evans <dje@google.com>
2914 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2915 * python/py-symtab.c (stpy_get_producer): New function.
2916 (symtab_object_getset): Add "producer" attribute.
2918 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2921 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2922 (do_captured_read_memory_integer): Remove.
2923 (safe_read_memory_integer): Use target_read_memory directly instead
2924 of catching errors in do_captured_read_memory_integer.
2926 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2928 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2931 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2933 * objc-lang.c (find_implementation_from_class): Remove dead code.
2935 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2938 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2939 "fprintf_unfiltered (gdb_stdlog...)".
2941 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2943 PR breakpoints/12526
2944 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2946 * breakpoint.c (watch_command_1): Use these fields to retain
2947 bitfield information.
2948 (extract_bitfield_from_watchpoint_value): New function.
2949 (watchpoint_check): Use it.
2950 (update_watchpoint): Use it. Optimize the address and length of a
2951 HW watchpoint pointing to a bitfield.
2952 * value.h (unpack_value_bitfield): New prototype.
2953 * value.c (unpack_value_bitfield): Make extern.
2955 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2957 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2959 * gnu-nat.c (inf_threads): New function.
2960 * gnu-nat.h (inf_threads_ftype): New typedef.
2961 (inf_threads): New declaration.
2962 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2963 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2964 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2965 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2966 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2967 (i386_gnu_dr_get_control): New functions.
2968 (reg_addr): New structure.
2969 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2970 i386 debugging register hooks.
2971 * NEWS: Mention this.
2973 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2975 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2976 vector data transfer instructions.
2977 (arm_record_coproc_data_proc): Updated.
2979 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2981 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2982 arm_record_exreg_ld_st_insn.
2983 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2986 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2988 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2989 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2990 processing instructions.
2992 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2994 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2995 for advance SIMD struct ld/st insn.
2996 (thumb2_record_decode_insn_handler): Replace stub handler with
2997 thumb2_record_asimd_struct_ld_st.
2999 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3001 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3002 for asimd, vfp and coprocessor insns.
3003 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3004 and coprocessor insns.
3005 (thumb2_record_coproc_insn): New function.
3006 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3008 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3011 2014-09-13 Doug Evans <xdje42@gmail.com>
3013 * NEWS: Mention new "queue-signal" command.
3014 * infcmd.c (queue_signal_command): New function.
3015 (_initialize_infcmd): Add new queue-signal command.
3017 2014-09-13 Doug Evans <xdje42@gmail.com>
3019 * linux-nat.c (wait_lwp): Add debugging printf.
3020 (linux_nat_wait_1): Ditto.
3022 2014-09-12 Pedro Alves <palves@redhat.com>
3024 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3025 (create_and_insert_solib_event_breakpoint): New functions.
3026 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3027 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3028 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3029 (remove_dbx_link_breakpoint): Delete function.
3030 (insert_dbx_link_bpt_in_file): Use
3031 create_and_insert_solib_event_breakpoint instead of
3032 deprecated_insert_raw_breakpoint.
3033 (procfs_wait): Don't check whether we hit __dbx_link here.
3034 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3036 * solib-irix.c (base_breakpoint): Delete global.
3037 (disable_break): Delete function.
3038 (enable_break): Use create_solib_event_breakpoint
3039 instead of deprecated_insert_raw_breakpoint.
3040 (irix_solib_handle_event): New function.
3041 (irix_solib_create_inferior_hook): Don't run the target or disable
3042 the mapping-complete breakpoint here.
3043 (_initialize_irix_solib): Install irix_solib_handle_event as
3044 so_ops->handle_event hook.
3046 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3047 Ulrich Weigand <uweigand@de.ibm.com>
3050 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3051 instead of read_memory_unsigned_integer.
3053 2014-09-12 Gary Benson <gbenson@redhat.com>
3055 * nat/linux-waitpid.c: Include common-defs.h.
3056 [GDBSERVER]: Add FIXME comment.
3057 [!GDBSERVER]: Don't include defs.h or signal.h.
3058 (linux_debug) [!GDBSERVER]: Remove empty block.
3060 2014-09-12 Gary Benson <gbenson@redhat.com>
3062 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3063 Don't include defs.h or server.h.
3065 2014-09-12 Gary Benson <gbenson@redhat.com>
3067 * nat/linux-btrace.c: Include common-defs.h.
3068 Don't include defs.h, server.h or gdbthread.h.
3069 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3071 2014-09-12 Gary Benson <gbenson@redhat.com>
3073 * common/agent.c: Include common-defs.h.
3074 Don't include defs.h or server.h.
3075 * common/buffer.c: Likewise.
3076 * common/common-debug.c: Likewise.
3077 * common/common-utils.c: Likewise.
3078 * common/errors.c: Likewise.
3079 * common/filestuff.c: Likewise.
3080 * common/format.c: Likewise.
3081 * common/gdb_vecs.c: Likewise.
3082 * common/print-utils.c: Likewise.
3083 * common/ptid.c: Likewise.
3084 * common/rsp-low.c: Likewise.
3085 * common/signals.c: Likewise.
3086 * common/vec.c: Likewise.
3087 * common/xml-utils.c: Likewise.
3088 * nat/linux-osdata.c: Likewise.
3089 * nat/linux-procfs.c: Likewise.
3090 * nat/linux-ptrace.c: Likewise.
3091 * nat/mips-linux-watch.c: Likewise.
3092 * target/waitstatus.c: Likewise.
3094 2014-09-12 Tom Tromey <tromey@redhat.com>
3095 Gary Benson <gbenson@redhat.com>
3097 * common/common-regcache.h: New file.
3098 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3099 * regcache.h: Include common-regcache.h.
3100 (regcache_read_pc): Don't declare.
3101 * regcache.c (get_thread_regcache_for_ptid): New function.
3102 * nat/linux-btrace.c: Don't include regcache.h.
3103 Include common-regcache.h.
3104 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3106 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3108 * regcache.h (struct regset): Declare.
3110 2014-09-11 Pedro Alves <palves@redhat.com>
3113 * main.c: Include "infrun.h".
3114 (catch_command_errors, catch_command_errors_const): Wait for the
3115 foreground command to complete.
3116 * top.c (maybe_wait_sync_command_done): New function, factored out
3118 (maybe_wait_sync_command_done): ... here.
3119 * top.h (maybe_wait_sync_command_done): New declaration.
3121 2014-09-11 Tom Tromey <tromey@redhat.com>
3122 Gary Benson <gbenson@redhat.com>
3124 * common/symbol.h: New file.
3125 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3126 * minsyms.c (find_minimal_symbol_address): New function.
3127 * common/agent.c: Include common/symbol.h.
3128 [!GDBSERVER]: Don't include objfiles.h.
3129 (agent_look_up_symbols): Use find_minimal_symbol_address.
3131 2014-09-11 Gary Benson <gbenson@redhat.com>
3133 * target/target.h (target_stop_ptid, target_continue_ptid):
3135 * target.c (target_stop_ptid, target_continue_ptid): New
3137 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3138 (agent_run_command): Always use target_stop_ptid and
3139 target_continue_ptid.
3141 2014-09-11 Tom Tromey <tromey@redhat.com>
3142 Gary Benson <gbenson@redhat.com>
3144 * target/target.h: New file.
3145 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3146 * target.h: Include target/target.h.
3147 (target_read_memory, target_write_memory): Don't declare.
3148 * target.c (target_read_uint32): New function.
3149 * common/agent.c: Include target/target.h.
3150 [!GDBSERVER]: Don't include target.h.
3151 (helper_thread_id): Type changed to uint32_t.
3152 (agent_get_helper_thread_id): Use target_read_uint32.
3153 (agent_run_command): Always use target_read_memory and
3154 target_write_memory.
3155 (agent_capability): Type changed to uint32_t.
3156 (agent_capability_check): Use target_read_uint32.
3158 2014-09-11 Gary Benson <gbenson@redhat.com>
3160 * common/common-debug.h (show_debug_regs): Declare.
3161 * common/common-debug.c (show_debug_regs): Define.
3162 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3163 all uses with show_debug_regs. Replace all uses that considered
3164 debug_hw_points as a multi-value integer with straight boolean
3166 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3167 with show_debug_regs.
3168 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3169 all uses with show_debug_regs.
3170 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3171 uses with show_debug_regs.
3173 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3175 * findvar.c (address_from_register): Handle targets requiring
3176 a special conversion routine even for plain pointer types.
3178 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3180 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3181 (store_register): Do not call exec_one_dummy_insn.
3183 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3185 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3186 dereference it first. Use value_enclosing_type instead of
3188 (ada_array_length): Likewise.
3190 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3192 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3193 Adjust function implementation and documentation accordingly.
3194 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3195 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3196 Update call to ada_value_ptr_subscript.
3198 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3200 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3201 instead of VAL's type.
3203 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3205 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3207 2014-09-09 Doug Evans <xdje42@gmail.com>
3210 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3211 last parameter to pkg-config, not first.
3212 * configure.ac: Pass --with-guile provided pkg-config path to
3213 GDB_GUILE_PROGRAM_NAMES.
3214 * configure: Regenerate.
3216 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3218 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3221 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3223 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3224 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3225 the list of sections determining GDB_OSABI_IRIX.
3227 2014-09-09 James Hogan <james.hogan@imgtec.com>
3229 * MAINTAINERS (Write After Approval): Add "James Hogan".
3231 2014-09-09 James Hogan <james.hogan@imgtec.com>
3233 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3235 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3237 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3239 2014-09-08 Doug Evans <xdje42@gmail.com>
3242 * guile.c: #include <signal.h>.
3243 (_initialize_guile): Block SIGCHLD while initializing Guile.
3245 Replaces the following, which is reverted.
3247 2014-07-26 Doug Evans <xdje42@gmail.com>
3250 * configure.ac: Add check for header gc/gc.h.
3251 Add check for function setenv.
3252 * configure: Regenerate.
3253 * config.in: Regenerate.
3254 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3256 2014-09-08 Doug Evans <xdje42@gmail.com>
3258 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3259 with named constant. Fix style of pointer comparison.
3260 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3262 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3265 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3266 decide whether we display the command on "show user".
3267 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3268 printing command name.
3269 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3270 * cli/cli-decode.c (cli_user_command_p): Create helper function
3271 to verify whether cmd_list_element is a user-defined command.
3273 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3276 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3277 Fix goto out of TRY_CATCH.
3279 2014-09-06 Doug Evans <xdje42@gmail.com>
3280 Tom Tromey <tromey@redhat.com>
3283 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3284 $_any_caller_matches.
3285 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3286 * python/lib/gdb/function/caller_is.py: New file.
3288 2014-09-06 Doug Evans <xdje42@gmail.com>
3290 * infcmd.c (program_info): Fix typo.
3292 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3295 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3296 'number'. New variable 'has_digit'. Rewrite code to deal with
3297 subexpressions on SDT probes.
3299 2014-09-04 Pedro Alves <palves@redhat.com>
3301 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3302 the input is only one character long.
3304 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3307 * f-valprint.c (f_val_print): Specify the correct print option to
3308 use when printing integer values.
3310 2014-09-04 Gary Benson <gbenson@redhat.com>
3312 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3313 Remove code to cope with LWPs wrapped as PIDs.
3314 Add assertions to ensure no wrapped LWPs are passed.
3316 2014-09-04 Pedro Alves <palves@redhat.com>
3318 * value.c (value_ranges_copy_adjusted): New function, factored out
3320 (value_contents_copy_raw): ... here.
3321 (unpack_value_bits_as_long_1): Rename back to ...
3322 (unpack_bits_as_long): ... this. Remove 'original_value' and
3323 'result' parameters. Change return type to LONGEST.
3324 (unpack_value_bits_as_long): Delete.
3325 (unpack_value_field_as_long_1): Delete.
3326 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3327 (unpack_value_bitfield): New function.
3328 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3329 (value_fetch_lazy): Use unpack_value_bitfield.
3330 * value.h (unpack_value_bits_as_long): Delete declaration.
3332 2014-09-03 Sasha Smundak <asmundak@google.com>
3334 * python/py-frame.c (frapy_read_register): New function.
3336 2014-09-03 James Hogan <james.hogan@imgtec.com>
3338 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3339 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3341 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3344 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3346 (add_cmd): Set "completer_handle_brkchars" to NULL.
3347 * cli/cli-decode.h (struct cmd_list_element)
3348 <completer_handle_brkchars>: New field.
3349 * command.h (completer_ftype_void): New typedef.
3350 (set_cmd_completer_handle_brkchars): New prototype.
3351 * completer.c (set_gdb_completion_word_break_characters): New
3353 (complete_line_internal): Call "completer_handle_brkchars"
3354 callback from command.
3355 * completer.h: Include "command.h".
3356 (set_gdb_completion_word_break_characters): New prototype.
3357 * python/py-cmd.c (cmdpy_completer_helper): New function.
3358 (cmdpy_completer_handle_brkchars): New function.
3359 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3360 (cmdpy_init): Set completer_handle_brkchars to
3361 cmdpy_completer_handle_brkchars.
3363 2014-09-03 Gary Benson <gbenson@redhat.com>
3365 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3366 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3367 Loop conditions changed to equivalent form.
3368 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3369 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3370 ALL_DEBUG_ADDRESS_REGISTERS.
3372 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3374 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3377 2014-09-02 Doug Evans <dje@google.com>
3379 * typeprint.c (find_global_typedef): Fix comment.
3381 2014-09-02 Gary Benson <gbenson@redhat.com>
3383 * i386-nat.h: Renamed as...
3384 * x86-nat.h: New file. All type, function and variable name
3385 prefixes changed from "i386_" to "x86_". All references updated.
3386 * i386-nat.c: Renamed as...
3387 * x86-nat.c: New file. All type, function and variable name
3388 prefixes changed from "i386_" to "x86_". All references updated.
3389 * common/i386-xstate.h: Renamed as...
3390 * common/x86-xstate.h: New file. All type, function and variable
3391 name prefixes changed from "i386_" to "x86_". All references
3393 * nat/i386-cpuid.h: Renamed as...
3394 * nat/x86-cpuid.h: New file. All type, function and variable name
3395 prefixes changed from "i386_" to "x86_". All references updated.
3396 * nat/i386-gcc-cpuid.h: Renamed as...
3397 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3398 name prefixes changed from "i386_" to "x86_". All references
3400 * nat/i386-dregs.h: Renamed as...
3401 * nat/x86-dregs.h: New file. All type, function and variable name
3402 prefixes changed from "i386_" to "x86_". All references updated.
3403 * nat/i386-dregs.c: Renamed as...
3404 * nat/x86-dregs.c: New file. All type, function and variable name
3405 prefixes changed from "i386_" to "x86_". All references updated.
3407 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3409 * varobj.c (_initialize_varobj): Move to the end of file.
3411 2014-08-29 Gary Benson <gbenson@redhat.com>
3413 * common/common-exceptions.h: New file.
3414 * common/common-exceptions.c: Likewise.
3415 * Makefile.in (SFILES): Add common/common-exceptions.c.
3416 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3417 (COMMON_OBS): Add common-exceptions.o.
3418 (common-exceptions.o): New rule.
3419 * exceptions.h (common-exceptions.h): Include.
3420 (gdb_setjmp.h): Do not include.
3421 (return_reason): Moved to common-exceptions.h.
3422 (enum return_reason): Likewise.
3423 (RETURN_MASK): Likewise.
3424 (typedef return_mask): Likewise.
3425 (enum errors): Likewise.
3426 (struct gdb_exception): Likewise.
3427 (exceptions_state_mc_init): Likewise.
3428 (exceptions_state_mc_action_iter): Likewise.
3429 (exceptions_state_mc_action_iter_1): Likewise.
3430 (TRY_CATCH): Likewise.
3431 (throw_exception): Likewise.
3432 (throw_verror): Likewise.
3433 (throw_vquit): Likewise.
3434 (throw_error): Likewise.
3435 (throw_quit): Likewise.
3436 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3437 (enum catcher_action): Likewise.
3438 (struct catcher): Likewise.
3439 (current_catcher): Likewise.
3440 (catcher_list_size): Likewise.
3441 (exceptions_state_mc_init): Likewise.
3442 (catcher_pop): Likewise.
3443 (exceptions_state_mc): Likewise.
3444 (exceptions_state_mc_action_iter): Likewise.
3445 (exceptions_state_mc_action_iter_1): Likewise.
3446 (throw_exception): Likewise.
3447 (exception_messages): Likewise.
3448 (exception_messages_size): Likewise.
3449 (throw_it): Likewise.
3450 (throw_verror): Likewise.
3451 (throw_vquit): Likewise.
3452 (throw_error): Likewise.
3453 (throw_quit): Likewise.
3454 (prepare_to_throw_exception): New function.
3456 2014-08-29 Gary Benson <gbenson@redhat.com>
3458 * common/gdb_setjmp.h: New file.
3459 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3460 * configure.ac: Move sigsetjmp check...
3461 * common/common.m4: ...here.
3462 * configure: Regenerate.
3463 * cp-support.c (SIGJMP_BUF): Delete.
3464 (SIGSETJMP): Likewise.
3465 (SIGLONGJMP): Likewise.
3466 * exceptions.h (gdb_setjmp.h): Include.
3467 (setjmp.h): Do not include.
3468 (EXCEPTIONS_SIGJMP_BUF): Delete.
3469 (EXCEPTIONS_SIGSETJMP): Likewise.
3470 (EXCEPTIONS_SIGLONGJMP): Likewise.
3471 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3473 * exceptions.c: Likewise.
3475 2014-08-29 Gary Benson <gbenson@redhat.com>
3477 * cleanups.h: Moved to...
3478 * common/cleanups.h: New file.
3479 * cleanups.c: Moved to...
3480 * common/cleanups.c: New file. Include common-defs.h and
3481 cleanups.h. Do not include defs.h.
3482 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3483 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3484 (cleanups.o): New rule.
3486 2014-08-29 Gary Benson <gbenson@redhat.com>
3488 * common/errors.h (internal_warning): New declaration.
3489 (internal_vwarning): Likewise.
3490 * common/errors.c (internal_warning): New function.
3491 * utils.h (internal_warning): Don't declare.
3492 (internal_vwarning): Likewise.
3493 * utils.c (internal_warning): Removed.
3495 2014-08-29 Gary Benson <gbenson@redhat.com>
3497 * main.c (captured_main): Use warning during startup.
3498 Prefix startup warning messages with command name.
3500 2014-08-29 Gary Benson <gbenson@redhat.com>
3502 * main.c (captured_main): Handle usage errors with error.
3504 2014-08-29 Gary Benson <gbenson@redhat.com>
3506 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3507 exit pair with a call to error. Wrap the message with _().
3509 2014-08-29 Gary Benson <gbenson@redhat.com>
3511 * main.c (captured_main): Replace a fprintf/exit
3512 pair with a call to error. Wrap the message with _().
3514 2014-08-29 Gary Benson <gbenson@redhat.com>
3516 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3517 pairs with calls to error. Wrap the message with _().
3519 2014-08-29 Gary Benson <gbenson@redhat.com>
3521 * utils.c (vwarning): Protect calls to target_terminal_ours
3524 2014-08-29 Gary Benson <gbenson@redhat.com>
3526 * exceptions.c (print_flush): Protect calls to
3527 target_terminal_ours and wrap_here.
3529 2014-08-29 Gary Benson <gbenson@redhat.com>
3531 * utils.h (filtered_printing_initialized): New declaration.
3532 * utils.c (abort_with_message): New function.
3533 (internal_vproblem): Use abort_with_message for first level
3534 recursive internal problems, and if gdb_stderr is not set up.
3535 Protect calls to target_terminal_ours, begin_line and query.
3537 2014-08-28 Doug Evans <dje@google.com>
3539 * symtab.c (in_prologue): Move definition to better spot.
3540 (skip_prologue_using_sal): Ditto.
3542 2014-08-28 Doug Evans <dje@google.com>
3544 * symtab.c (find_function_start_sal): Move definition to better spot.
3546 2014-08-28 Yao Qi <yao@codesourcery.com>
3548 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3549 found_stack_adjust in forward scan. Remove condition check
3550 on found_stack_adjust which is always true. Indent the code.
3552 2014-08-28 Yao Qi <yao@codesourcery.com>
3554 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3555 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3556 (dwarf_decode_lines): Remove argument
3557 want_line_info. Remove condition check on want_line_info.
3560 2014-08-27 Doug Evans <dje@google.com>
3562 * dwarf2read.c (dwarf_record_line): Fix typo.
3564 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3566 * target.h (struct target_ops::to_terminal_save_ours): Remove
3568 (target_terminal_save_ours): Remove macro.
3569 * target-delegates.c: Regenerate.
3570 * inf-child.c (inf_child_target): Don't set the nonexistent
3571 field to_terminal_save_ours.
3572 * inferior.h (child_terminal_save_ours): Remove declaration.
3573 * terminal.h (gdb_save_tty_state): New declaration.
3574 * inflow.c (child_terminal_save_ours): Rename to ...
3575 (gdb_save_tty_state): ... this.
3576 * tui/tui.c: Include terminal.h.
3577 (tui_enable): Use gdb_save_tty_state instead of
3578 target_terminal_save_ours.
3579 (tui_disable): Likewise.
3581 2014-08-25 Doug Evans <dje@google.com>
3583 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3584 Pass NULL instead of 0 for context pointer.
3586 2014-08-25 Yao Qi <yao@codesourcery.com>
3588 * dwarf2read.c: Fix grammatical error.
3590 2014-08-24 Yao Qi <yao@codesourcery.com>
3592 * dwarf2read.c (scan_partial_symbols): Update comments.
3593 Rename argument 'need_pc' with 'set_addrmap'.
3594 (add_partial_namespace): Rename argument 'need_pc' with
3596 (add_partial_module): Likewise.
3597 (add_partial_subprogram): Likewise. Update comments.
3598 (dwarf2_name): Fix typo.
3600 2014-08-22 Doug Evans <dje@google.com>
3603 * dwarf2read.c (dwarf_record_line_p): New function.
3604 (dwarf_decode_lines_1): Ignore subsequent line number entries
3605 for the same line if any entry had a non-zero discriminator.
3607 2014-08-22 Doug Evans <dje@google.com>
3609 * buildsym.h (record_line_ftype): New typedef.
3610 (record_line): Use it.
3611 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3612 (dwarf_decode_lines_1): Call them.
3614 2014-08-22 Yao Qi <yao@codesourcery.com>
3616 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3617 (ctf_end): Remove code.
3619 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3622 (linux_make_corefile_notes): call update_thread_list, protected against
3625 2014-08-21 Pedro Alves <palves@redhat.com>
3627 * infcmd.c (attach_command): Remove comment.
3629 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3631 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3632 unsigned LONGEST to ULONGEST.
3634 2014-08-20 Pedro Alves <palves@redhat.com>
3636 * Makefile.in (check-read1): New rule.
3638 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3640 * value.c (value_from_contents_and_address): Strip resolved_type's
3641 typedef layers before checking its TYPE_DATA_LOCATION.
3643 2014-08-20 Pedro Alves <palves@redhat.com>
3645 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3647 2014-08-20 Yao Qi <yao@codesourcery.com>
3649 * amd64-tdep.c (amd64_classify): Add a blank line after the
3650 example. Move "*/" to a new line.
3651 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3652 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3653 * dwarf2read.c (psymtab_include_file_name): Likewise.
3655 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3656 Pedro Alves <palves@redhat.com>
3660 * ada-lang.c (coerce_unspec_val_to_type): Use
3661 value_contents_copy_raw.
3662 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3663 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3664 * cp-valprint.c (cp_print_value_fields): Let the common printing
3665 code handle optimized out values.
3666 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3667 * d-valprint.c (dynamic_array_type): Use
3668 value_bits_any_optimized_out.
3669 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3670 check_any_valid fields.
3671 (check_pieced_value_bits): Delete and inline ...
3672 (check_pieced_synthetic_pointer): ... here.
3673 (check_pieced_value_validity): Delete.
3674 (check_pieced_value_invalid): Delete.
3675 (pieced_value_funcs): Remove check_validity and check_any_valid
3677 (read_pieced_value): Use mark_value_bits_optimized_out.
3678 (write_pieced_value): Switch to use
3679 mark_value_bytes_optimized_out.
3680 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3681 of assuming the whole value is optimized out.
3682 * findvar.c (read_frame_register_value): Remove special handling
3683 of optimized out registers.
3684 (value_from_register): Use mark_value_bytes_optimized_out.
3685 * frame-unwind.c (frame_unwind_got_optimized): Use
3686 mark_value_bytes_optimized_out.
3687 * jv-valprint.c (java_value_print): Adjust.
3688 (java_print_value_fields): Let the common printing code handle
3689 optimized out values.
3690 * mips-tdep.c (mips_print_register): Remove special handling of
3691 optimized out registers.
3692 * opencl-lang.c (lval_func_check_validity): Delete.
3693 (lval_func_check_any_valid): Delete.
3694 (opencl_value_funcs): Remove check_validity and check_any_valid
3696 * p-valprint.c (pascal_object_print_value_fields): Let the common
3697 printing code handle optimized out values.
3698 * stack.c (read_frame_arg): Remove special handling of optimized
3699 out values. Fetch both VAL and ENTRYVAL before comparing
3700 contents. Adjust to value_available_contents_eq rename.
3701 * valprint.c (valprint_check_validity)
3702 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3703 (val_print_array_elements): Adjust.
3704 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3705 (value_bits_any_optimized_out): New function.
3706 (value_entirely_covered_by_range_vector): New function, factored
3707 out from value_entirely_unavailable.
3708 (value_entirely_unavailable): Reimplement.
3709 (value_entirely_optimized_out): New function.
3710 (insert_into_bit_range_vector): New function, factored out from
3711 mark_value_bits_unavailable.
3712 (mark_value_bits_unavailable): Reimplement.
3713 (struct ranges_and_idx): New struct.
3714 (find_first_range_overlap_and_match): New function, factored out
3715 from value_available_contents_bits_eq.
3716 (value_available_contents_bits_eq): Rename to ...
3717 (value_contents_bits_eq): ... this. Check both unavailable
3718 contents and optimized out contents.
3719 (value_available_contents_eq): Rename to ...
3720 (value_contents_eq): ... this.
3721 (allocate_value_lazy): Remove reference to the old optimized_out
3723 (allocate_optimized_out_value): Use
3724 mark_value_bytes_optimized_out.
3725 (require_not_optimized_out): Adjust to check whether the
3726 optimized_out vec is empty.
3727 (ranges_copy_adjusted): New function, factored out from
3728 value_contents_copy_raw.
3729 (value_contents_copy_raw): Also copy the optimized out ranges.
3730 Assert the destination ranges aren't optimized out.
3731 (value_contents_copy): Update comment, remove call to
3732 require_not_optimized_out.
3733 (value_contents_equal): Adjust to check whether the optimized_out
3735 (set_value_optimized_out, value_optimized_out_const): Delete.
3736 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3738 (value_entirely_optimized_out, value_bits_valid): Delete.
3739 (value_copy): Take a VEC copy of the 'optimized_out' field.
3740 (value_primitive_field): Remove special handling of optimized out.
3741 (value_fetch_lazy): Assert that lazy values have no unavailable
3742 regions. Use value_bits_any_optimized_out. Remove some special
3743 handling for optimized out values.
3744 * value.h: Add intro comment about <optimized out> and
3746 (struct lval_funcs): Remove check_validity and check_any_valid
3748 (set_value_optimized_out, value_optimized_out_const): Remove.
3749 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3751 (value_bits_any_optimized_out): New declaration.
3752 (value_bits_valid): Delete declaration.
3753 (value_available_contents_eq): Rename to ...
3754 (value_contents_eq): ... this, and extend comments.
3756 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 Fix -fsanitize=address on unreadable inferior strings.
3759 * valprint.c (val_print_string): Fix access before BUFFER.
3761 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3763 * target.c (target_struct_size): Remove.
3764 (target_struct_allocsize): Remove.
3765 (DEFAULT_ALLOCSIZE): Remove.
3766 (target_ops_p): New typedef.
3767 (DEF_VEC_P (target_ops_p)): New vector type.
3768 (target_structs): Change type to VEC (target_ops_p).
3769 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3770 (find_default_run_target): Rewrite for loop following changes to
3773 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3775 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3776 Adjust code accordingly. Adjust function description comment.
3778 2014-08-19 Yao Qi <yao@codesourcery.com>
3780 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3783 2014-08-19 Alan Modra <amodra@gmail.com>
3785 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3786 * config.in: Regenerate.
3787 * configure: Regenerate.
3789 2014-08-19 Tom Tromey <tromey@redhat.com>
3790 Gary Benson <gbenson@redhat.com>
3792 * common/common-debug.h: New file.
3793 * common/common-debug.c: Likewise.
3794 * debug.c: Likewise.
3795 * Makefile.in (SFILES): Add common/common-debug.c.
3796 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3797 (COMMON_OBS): Add common-debug.o and debug.o.
3798 (common-debug.o): New rule.
3799 * common/common-defs.h: Include common-debug.h.
3800 * common/agent.c (debug_agent_printf): New function.
3801 (DEBUG_AGENT): Redefine.
3802 * nat/i386-dregs.c (debug_printf): Undefine.
3804 2014-08-19 Gary Benson <gbenson@redhat.com>
3806 * common/common-defs.h: Include print-utils.h.
3807 * utils.h: Do not include print-utils.h.
3809 2014-08-19 Tom Tromey <tromey@redhat.com>
3810 Gary Benson <gbenson@redhat.com>
3812 * common/common-types.h: New file.
3813 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3814 * common/common-defs.h: Include common-types.h.
3815 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3818 2014-08-19 Tom Tromey <tromey@redhat.com>
3819 Gary Benson <gbenson@redhat.com>
3821 * common/errors.h: New file.
3822 * common/errors.c: Likewise.
3823 * Makefile.in (SFILES): Add common/errors.c.
3824 (HFILES_NO_SRCDIR): Add common/errors.h.
3825 (COMMON_OBS): Add errors.o.
3826 (errors.o): New rule.
3827 * common/common-defs.h: Include errors.h.
3828 * utils.h (perror_with_name, error, verror, warning, vwarning):
3830 * common/common-utils.h: (malloc_failure, internal_error):
3833 2014-08-19 Gary Benson <gbenson@redhat.com>
3835 * utils.c (internal_vproblem): Always print the message.
3837 2014-08-18 Doug Evans <dje@google.com>
3839 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3841 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3843 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3844 Return 0 if TYPE is dynamic.
3845 (print_range): Add handling of dynamic ranges.
3847 2014-08-18 Keven Boell <keven.boell@intel.com>
3848 Joel Brobecker <brobecker@adacore.com>
3850 * gdbtypes.h (struct main_type): Add field "data_location".
3851 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3852 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3853 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3854 a dynamic data location.
3855 (resolve_dynamic_type): Add DW_AT_data_location handling.
3856 (copy_recursive, copy_type): Copy the data_location information
3858 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3859 * value.c (value_from_contents_and_address): Add
3860 DW_AT_data_location handling.
3862 2014-08-18 Keven Boell <keven.boell@intel.com>
3863 Joel Brobecker <brobecker@adacore.com>
3865 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3866 field "get_object_address".
3867 * dwarf2expr.c (execute_stack_op): Add handling for
3868 DW_OP_push_object_address.
3869 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3870 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3871 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3872 (dwarf_expr_get_obj_addr): New function.
3873 (dwarf_expr_ctx_funcs): Add get_object_address field.
3874 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3875 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3876 (dwarf2_evaluate_property): Add parameter "address". Use it.
3877 (needs_get_obj_addr): New function.
3878 (needs_frame_ctx_funcs): Add get_object_address field.
3879 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3880 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3881 (resolve_dynamic_array): Likewise.
3883 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3885 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3886 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3887 fixed value for records and unions for which some GNAT encodings
3890 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3892 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3893 rewrite to avoid "else if" and "else" constructs. Should be
3894 a no-op in practice.
3896 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3898 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3901 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3904 * eval.c: Update all calls to find_overload_match.
3905 * valarith.c: Likewise.
3906 (value_user_defined_cpp_op, value_user_defined_op): New
3907 argument NOSIDE. Update all callers.
3908 * valops.c (find_overload_match): New argument NOSIDE.
3909 * value.h (find_overload_match): Update signature.
3911 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3913 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3914 'items' methods instead of 'iteritems' method on dictionaries.
3916 2014-08-15 Doug Evans <dje@google.com>
3918 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3921 2014-08-15 Doug Evans <dje@google.com>
3923 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3925 2014-08-15 Doug Evans <dje@google.com>
3927 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3929 2014-08-15 Doug Evans <dje@google.com>
3931 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3934 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3936 * dcache.h: Include target.h, to avoid compile time warnings.
3938 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3940 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3941 frame_info" partial declaration.
3942 * gdbarch.h: Regenerate.
3944 2014-08-15 Yao Qi <yao@codesourcery.com>
3946 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3947 Add parameter 'decode_for_pst_p'. Callers update.
3949 2014-08-13 Yao Qi <yao@codesourcery.com>
3952 * configure.ac: Use local variable 'pos'.
3953 * configure: Regenerated.
3955 2014-08-11 Doug Evans <dje@google.com>
3957 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3958 message, it is redundant with "Reading symbols from ..." message.
3960 2014-08-10 Doug Evans <xdje42@gmail.com>
3962 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3964 2014-08-09 Yao Qi <yao@codesourcery.com>
3967 * remote.c (remote_xfer_partial): Remove dead code.
3969 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971 * ia64-linux-tdep.c: Include "regset.h".
3972 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3973 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3974 (ia64_linux_supply_fpregset): New function.
3975 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3976 (ia64_linux_regset_from_core_section): New function.
3977 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3980 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3982 * m68klinux-tdep.c: Include "regset.h".
3983 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3984 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3985 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3986 (m68k_linux_regset_from_core_section): New function.
3987 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3990 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3992 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3993 function. Move logic to...
3994 (tilegx_linux_regmap): ... this new register map.
3995 (tilegx_linux_regset): Refer to register map, replace supply
3996 method by regcache_supply_regset, and add collect method.
3997 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3998 TILEGX_FIRST_EASY_REGNUM.
4000 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4002 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4003 that calls regcache_supply_regset and handles the EPC register
4004 separately. Move main logic to...
4005 (score7_linux_gregmap): ... this new register map.
4006 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4007 (score7_linux_gregset): Refer to register map. Add collect method.
4008 (score7_linux_regset_from_core_section): Replace
4009 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4010 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4011 (struct regset): Delete unused forward declaraction.
4012 (struct pt_regs): Delete structure definition.
4013 (elf_gregset_t): Delete typedef.
4015 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4017 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4018 (nios2_core_regset): Add collect method.
4020 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4022 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4023 platform-independent and don't write to read-only input buffer.
4024 (m32r_linux_collect_gregset): New function.
4025 (m32r_linux_gregset): Add collect method.
4027 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4029 * hppa-linux-tdep.c (greg_map): Rename to...
4030 (hppa_linux_gregmap): ... this. Also convert to
4031 regcache_map_entry format.
4032 (hppa_linux_supply_regset): Delete function.
4033 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4034 (hppa_linux_fpregmap): ... this new register map.
4035 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4036 register map, replace supply method by regcache_supply_regset, and
4037 add collect method regcache_collect_regset.
4039 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4041 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4042 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4043 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4044 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4045 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4046 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4047 (frv_linux_supply_gregset): Replace main logic by call to
4048 regcache_supply_regset, but keep clearing gr32-gr63.
4049 (frv_linux_supply_fpregset): Delete function.
4050 (frv_linux_gregset): Refer to appropriate register map and add
4051 regcache_collect_regset as the collect method.
4052 (frv_linux_fpregset): Likewise. Also exchange the supply method
4053 by regcache_supply_regset.
4055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4057 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4058 by call to alpha_supply_int_regs.
4059 (alpha_linux_collect_gregset): New function.
4060 (alpha_linux_supply_fpregset): Replace logic by call to
4061 alpha_supply_fp_regs.
4062 (alpha_linux_collect_fpregset): New function.
4063 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4067 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4068 by call to regcache_collect_regset.
4069 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4070 instead of aarch64_linux_supply_gregset/_fpregset.
4071 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4072 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4073 header file instead.
4074 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4075 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4076 functions. Move logic to ...
4077 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4079 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4080 refer to new register maps, replace *_regset_from_core by
4081 regcache_supply_regset, and also use regcache_collect_regset.
4082 * aarch64-linux-tdep.h: Include "regset.h".
4083 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4085 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4086 macros, moved from C source file.
4087 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4088 variable declarations.
4090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4092 * s390-linux-nat.c: Include "regset.h".
4093 (regmap_gregset): Delete macro.
4094 (s390_64_regmap_gregset): New register map for
4095 regcache_supply/_collect_regset.
4096 (s390_64_gregset): New regset.
4097 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4098 (regmap_fpregset): Delete macro.
4099 (s390_native_supply, s390_native_collect): Delete functions.
4100 (supply_gregset, fill_gregset): Replace s390-specific regmap
4101 handling by a call to regcache_supply/_collect_regset.
4102 (supply_fpregset, fill_fpregset): Call regcache_supply/
4103 _collect_regset instead of s390_native_supply/_collect.
4104 (fetch_regset, store_regset): Likewise. Also change the last
4105 parameter to a regset instead of a regmap.
4106 (s390_linux_fetch_inferior_registers)
4107 (390_linux_store_inferior_registers): Adjust last parameter in
4108 calls to fetch_regset and store_regset.
4109 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4110 (s390_gregmap): ... this. Also make static const and convert to
4111 regcache_map_entry format.
4112 (s390x_regmap_gregset): Delete.
4113 (s390_regmap_fpregset): Rename to...
4114 (s390_fpregmap): ... this. Make static const and convert to
4115 regcache_map_entry format.
4116 (s390_regmap_upper, s390_regmap_last_break)
4117 (s390x_regmap_last_break, s390_regmap_system_call)
4118 (s390_regmap_tdb): Likewise.
4119 (s390_supply_regset, s390_collect_regset): Remove functions.
4120 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4122 (s390_gregset, s390_fpregset, s390_upper_regset)
4123 (s390_last_break_regset, s390x_last_break_regset)
4124 (s390_system_call_regset, s390_tdb_regset): Make global and
4125 replace s390_supply/_collect_regset by regcache_supply/
4127 (s390x_gregset): Delete.
4128 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4129 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4130 (s390_regmap_fpregset, s390_regmap_last_break)
4131 (s390x_regmap_last_break, s390_regmap_system_call)
4132 (s390_regmap_tdb): Delete global variable declarations.
4133 (s390_gregset, s390_fpregset, s390_last_break_regset)
4134 (s390x_last_break_regset, s390_system_call_regset)
4135 (s390_tdb_regset): New global variable declarations.
4137 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4139 * regcache.c: Include "regset.h".
4140 (regcache_transfer_regset): New local function.
4141 (regcache_supply_regset, regcache_collect_regset): New functions.
4142 * regcache.h (struct regcache_map_entry): New structure.
4143 (REGCACHE_MAP_SKIP): New enum value.
4144 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4148 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4149 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4150 (ppc_linux_collect_gregset ): Likewise.
4151 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4152 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4153 (ppc_collect_vrregset): Likewise.
4154 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4157 2014-08-07 Yao Qi <yao@codesourcery.com>
4159 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4160 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4161 * remote.c (remote_read_bytes): Likewise.
4163 2014-08-07 Yao Qi <yao@codesourcery.com>
4165 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4167 2014-08-07 Yao Qi <yao@codesourcery.com>
4170 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4171 TARGET_XFER_OK instead of 0.
4173 2014-08-07 Gary Benson <gbenson@redhat.com>
4175 * common/common-defs.h: Include errno.h.
4176 * defs.h: Do not include errno.h.
4177 * ada-typeprint.c: Likewise.
4178 * c-typeprint.c: Likewise.
4179 * core-regset.c: Likewise.
4180 * corefile.c: Likewise.
4181 * corelow.c: Likewise.
4182 * event-loop.c: Likewise.
4183 * f-typeprint.c: Likewise.
4184 * gnu-nat.c: Likewise.
4185 * go32-nat.c: Likewise.
4186 * i386gnu-nat.c: Likewise.
4187 * m2-typeprint.c: Likewise.
4188 * nat/linux-btrace.c: Likewise.
4189 * p-typeprint.c: Likewise.
4190 * procfs.c: Likewise.
4191 * remote-sim.c: Likewise.
4192 * rs6000-nat.c: Likewise.
4193 * target.c: Likewise.
4194 * typeprint.c: Likewise.
4195 * ui-file.c: Likewise.
4196 * valops.c: Likewise.
4197 * valprint.c: Likewise.
4199 2014-08-07 Gary Benson <gbenson@redhat.com>
4201 * common/common-defs.h: Include string.h.
4202 * aarch64-tdep.c: Do not include string.h.
4203 * ada-exp.y: Likewise.
4204 * ada-lang.c: Likewise.
4205 * ada-lex.l: Likewise.
4206 * ada-typeprint.c: Likewise.
4207 * ada-valprint.c: Likewise.
4208 * aix-thread.c: Likewise.
4209 * alpha-linux-tdep.c: Likewise.
4210 * alpha-mdebug-tdep.c: Likewise.
4211 * alpha-nat.c: Likewise.
4212 * alpha-osf1-tdep.c: Likewise.
4213 * alpha-tdep.c: Likewise.
4214 * alphanbsd-tdep.c: Likewise.
4215 * amd64-dicos-tdep.c: Likewise.
4216 * amd64-linux-tdep.c: Likewise.
4217 * amd64-nat.c: Likewise.
4218 * amd64-sol2-tdep.c: Likewise.
4219 * amd64fbsd-tdep.c: Likewise.
4220 * amd64obsd-tdep.c: Likewise.
4221 * arch-utils.c: Likewise.
4222 * arm-linux-nat.c: Likewise.
4223 * arm-linux-tdep.c: Likewise.
4224 * arm-tdep.c: Likewise.
4225 * arm-wince-tdep.c: Likewise.
4226 * armbsd-tdep.c: Likewise.
4227 * armnbsd-nat.c: Likewise.
4228 * armnbsd-tdep.c: Likewise.
4229 * armobsd-tdep.c: Likewise.
4230 * avr-tdep.c: Likewise.
4231 * ax-gdb.c: Likewise.
4232 * ax-general.c: Likewise.
4233 * bcache.c: Likewise.
4234 * bfin-tdep.c: Likewise.
4235 * breakpoint.c: Likewise.
4236 * build-id.c: Likewise.
4237 * buildsym.c: Likewise.
4238 * c-exp.y: Likewise.
4239 * c-lang.c: Likewise.
4240 * c-typeprint.c: Likewise.
4241 * c-valprint.c: Likewise.
4242 * charset.c: Likewise.
4243 * cli-out.c: Likewise.
4244 * cli/cli-cmds.c: Likewise.
4245 * cli/cli-decode.c: Likewise.
4246 * cli/cli-dump.c: Likewise.
4247 * cli/cli-interp.c: Likewise.
4248 * cli/cli-logging.c: Likewise.
4249 * cli/cli-script.c: Likewise.
4250 * cli/cli-setshow.c: Likewise.
4251 * cli/cli-utils.c: Likewise.
4252 * coffread.c: Likewise.
4253 * common/agent.c: Likewise.
4254 * common/buffer.c: Likewise.
4255 * common/buffer.h: Likewise.
4256 * common/common-utils.c: Likewise.
4257 * common/filestuff.c: Likewise.
4258 * common/filestuff.c: Likewise.
4259 * common/format.c: Likewise.
4260 * common/print-utils.c: Likewise.
4261 * common/rsp-low.c: Likewise.
4262 * common/signals.c: Likewise.
4263 * common/vec.h: Likewise.
4264 * common/xml-utils.c: Likewise.
4265 * core-regset.c: Likewise.
4266 * corefile.c: Likewise.
4267 * corelow.c: Likewise.
4268 * cp-abi.c: Likewise.
4269 * cp-name-parser.y: Likewise.
4270 * cp-support.c: Likewise.
4271 * cp-valprint.c: Likewise.
4272 * cris-tdep.c: Likewise.
4273 * d-exp.y: Likewise.
4274 * darwin-nat.c: Likewise.
4275 * dbxread.c: Likewise.
4276 * dcache.c: Likewise.
4277 * demangle.c: Likewise.
4278 * dicos-tdep.c: Likewise.
4279 * disasm.c: Likewise.
4280 * doublest.c: Likewise.
4281 * dsrec.c: Likewise.
4282 * dummy-frame.c: Likewise.
4283 * dwarf2-frame.c: Likewise.
4284 * dwarf2loc.c: Likewise.
4285 * dwarf2read.c: Likewise.
4286 * elfread.c: Likewise.
4287 * environ.c: Likewise.
4289 * event-loop.c: Likewise.
4290 * exceptions.c: Likewise.
4292 * expprint.c: Likewise.
4293 * f-exp.y: Likewise.
4294 * f-lang.c: Likewise.
4295 * f-typeprint.c: Likewise.
4296 * f-valprint.c: Likewise.
4297 * fbsd-nat.c: Likewise.
4298 * findcmd.c: Likewise.
4299 * findvar.c: Likewise.
4300 * fork-child.c: Likewise.
4301 * frame.c: Likewise.
4302 * frv-linux-tdep.c: Likewise.
4303 * frv-tdep.c: Likewise.
4305 * gdb_bfd.c: Likewise.
4306 * gdbarch.c: Likewise.
4307 * gdbarch.sh: Likewise.
4308 * gdbtypes.c: Likewise.
4309 * gnu-nat.c: Likewise.
4310 * gnu-v2-abi.c: Likewise.
4311 * gnu-v3-abi.c: Likewise.
4312 * go-exp.y: Likewise.
4313 * go-lang.c: Likewise.
4314 * go32-nat.c: Likewise.
4315 * guile/guile.c: Likewise.
4316 * guile/scm-auto-load.c: Likewise.
4317 * hppa-hpux-tdep.c: Likewise.
4318 * hppa-linux-nat.c: Likewise.
4319 * hppanbsd-tdep.c: Likewise.
4320 * hppaobsd-tdep.c: Likewise.
4321 * i386-cygwin-tdep.c: Likewise.
4322 * i386-dicos-tdep.c: Likewise.
4323 * i386-linux-tdep.c: Likewise.
4324 * i386-nto-tdep.c: Likewise.
4325 * i386-sol2-tdep.c: Likewise.
4326 * i386-tdep.c: Likewise.
4327 * i386bsd-tdep.c: Likewise.
4328 * i386gnu-nat.c: Likewise.
4329 * i386nbsd-tdep.c: Likewise.
4330 * i386obsd-tdep.c: Likewise.
4331 * i387-tdep.c: Likewise.
4332 * ia64-libunwind-tdep.c: Likewise.
4333 * ia64-linux-nat.c: Likewise.
4334 * inf-child.c: Likewise.
4335 * inf-ptrace.c: Likewise.
4336 * inf-ttrace.c: Likewise.
4337 * infcall.c: Likewise.
4338 * infcmd.c: Likewise.
4339 * inflow.c: Likewise.
4340 * infrun.c: Likewise.
4341 * interps.c: Likewise.
4342 * iq2000-tdep.c: Likewise.
4343 * irix5-nat.c: Likewise.
4344 * jv-exp.y: Likewise.
4345 * jv-lang.c: Likewise.
4346 * jv-typeprint.c: Likewise.
4347 * jv-valprint.c: Likewise.
4348 * language.c: Likewise.
4349 * linux-fork.c: Likewise.
4350 * linux-nat.c: Likewise.
4351 * lm32-tdep.c: Likewise.
4352 * m2-exp.y: Likewise.
4353 * m2-typeprint.c: Likewise.
4354 * m32c-tdep.c: Likewise.
4355 * m32r-linux-nat.c: Likewise.
4356 * m32r-linux-tdep.c: Likewise.
4357 * m32r-rom.c: Likewise.
4358 * m32r-tdep.c: Likewise.
4359 * m68hc11-tdep.c: Likewise.
4360 * m68k-tdep.c: Likewise.
4361 * m68kbsd-tdep.c: Likewise.
4362 * m68klinux-nat.c: Likewise.
4363 * m68klinux-tdep.c: Likewise.
4364 * m88k-tdep.c: Likewise.
4365 * machoread.c: Likewise.
4366 * macrocmd.c: Likewise.
4368 * mdebugread.c: Likewise.
4369 * mem-break.c: Likewise.
4370 * memattr.c: Likewise.
4371 * memory-map.c: Likewise.
4372 * mep-tdep.c: Likewise.
4373 * mi/mi-cmd-break.c: Likewise.
4374 * mi/mi-cmd-disas.c: Likewise.
4375 * mi/mi-cmd-env.c: Likewise.
4376 * mi/mi-cmd-stack.c: Likewise.
4377 * mi/mi-cmd-var.c: Likewise.
4378 * mi/mi-cmds.c: Likewise.
4379 * mi/mi-console.c: Likewise.
4380 * mi/mi-getopt.c: Likewise.
4381 * mi/mi-interp.c: Likewise.
4382 * mi/mi-main.c: Likewise.
4383 * mi/mi-parse.c: Likewise.
4384 * microblaze-rom.c: Likewise.
4385 * microblaze-tdep.c: Likewise.
4386 * mingw-hdep.c: Likewise.
4387 * minidebug.c: Likewise.
4388 * minsyms.c: Likewise.
4389 * mips-irix-tdep.c: Likewise.
4390 * mips-linux-tdep.c: Likewise.
4391 * mips-tdep.c: Likewise.
4392 * mips64obsd-tdep.c: Likewise.
4393 * mipsnbsd-tdep.c: Likewise.
4394 * mipsread.c: Likewise.
4395 * mn10300-linux-tdep.c: Likewise.
4396 * mn10300-tdep.c: Likewise.
4397 * monitor.c: Likewise.
4398 * moxie-tdep.c: Likewise.
4399 * mt-tdep.c: Likewise.
4400 * nat/linux-btrace.c: Likewise.
4401 * nat/linux-osdata.c: Likewise.
4402 * nat/linux-procfs.c: Likewise.
4403 * nat/linux-ptrace.c: Likewise.
4404 * nat/linux-waitpid.c: Likewise.
4405 * nbsd-tdep.c: Likewise.
4406 * nios2-linux-tdep.c: Likewise.
4407 * nto-procfs.c: Likewise.
4408 * nto-tdep.c: Likewise.
4409 * objc-lang.c: Likewise.
4410 * objfiles.c: Likewise.
4411 * opencl-lang.c: Likewise.
4412 * osabi.c: Likewise.
4413 * osdata.c: Likewise.
4414 * p-exp.y: Likewise.
4415 * p-lang.c: Likewise.
4416 * p-typeprint.c: Likewise.
4417 * parse.c: Likewise.
4418 * posix-hdep.c: Likewise.
4419 * ppc-linux-nat.c: Likewise.
4420 * ppc-sysv-tdep.c: Likewise.
4421 * ppcfbsd-tdep.c: Likewise.
4422 * ppcnbsd-tdep.c: Likewise.
4423 * ppcobsd-tdep.c: Likewise.
4424 * printcmd.c: Likewise.
4425 * procfs.c: Likewise.
4426 * prologue-value.c: Likewise.
4427 * python/py-auto-load.c: Likewise.
4428 * python/py-gdb-readline.c: Likewise.
4429 * ravenscar-thread.c: Likewise.
4430 * regcache.c: Likewise.
4431 * registry.c: Likewise.
4432 * remote-fileio.c: Likewise.
4433 * remote-m32r-sdi.c: Likewise.
4434 * remote-mips.c: Likewise.
4435 * remote-notif.c: Likewise.
4436 * remote-sim.c: Likewise.
4437 * remote.c: Likewise.
4438 * reverse.c: Likewise.
4439 * rs6000-aix-tdep.c: Likewise.
4440 * ser-base.c: Likewise.
4441 * ser-go32.c: Likewise.
4442 * ser-mingw.c: Likewise.
4443 * ser-pipe.c: Likewise.
4444 * ser-tcp.c: Likewise.
4445 * ser-unix.c: Likewise.
4446 * serial.c: Likewise.
4447 * sh-tdep.c: Likewise.
4448 * sh64-tdep.c: Likewise.
4449 * shnbsd-tdep.c: Likewise.
4451 * sol-thread.c: Likewise.
4452 * solib-dsbt.c: Likewise.
4453 * solib-frv.c: Likewise.
4454 * solib-osf.c: Likewise.
4455 * solib-som.c: Likewise.
4456 * solib-spu.c: Likewise.
4457 * solib-target.c: Likewise.
4458 * solib.c: Likewise.
4459 * somread.c: Likewise.
4460 * source.c: Likewise.
4461 * sparc-nat.c: Likewise.
4462 * sparc-sol2-tdep.c: Likewise.
4463 * sparc-tdep.c: Likewise.
4464 * sparc64-tdep.c: Likewise.
4465 * sparc64fbsd-tdep.c: Likewise.
4466 * sparc64nbsd-tdep.c: Likewise.
4467 * sparcnbsd-tdep.c: Likewise.
4468 * spu-linux-nat.c: Likewise.
4469 * spu-multiarch.c: Likewise.
4470 * spu-tdep.c: Likewise.
4471 * stabsread.c: Likewise.
4472 * stack.c: Likewise.
4473 * std-regs.c: Likewise.
4474 * symfile.c: Likewise.
4475 * symmisc.c: Likewise.
4476 * symtab.c: Likewise.
4477 * target.c: Likewise.
4478 * thread.c: Likewise.
4479 * tilegx-linux-nat.c: Likewise.
4480 * tilegx-tdep.c: Likewise.
4482 * tracepoint.c: Likewise.
4483 * tui/tui-command.c: Likewise.
4484 * tui/tui-data.c: Likewise.
4485 * tui/tui-disasm.c: Likewise.
4486 * tui/tui-file.c: Likewise.
4487 * tui/tui-layout.c: Likewise.
4488 * tui/tui-out.c: Likewise.
4489 * tui/tui-regs.c: Likewise.
4490 * tui/tui-source.c: Likewise.
4491 * tui/tui-stack.c: Likewise.
4492 * tui/tui-win.c: Likewise.
4493 * tui/tui-windata.c: Likewise.
4494 * tui/tui-winsource.c: Likewise.
4495 * typeprint.c: Likewise.
4496 * ui-file.c: Likewise.
4497 * ui-out.c: Likewise.
4498 * user-regs.c: Likewise.
4499 * utils.c: Likewise.
4500 * v850-tdep.c: Likewise.
4501 * valarith.c: Likewise.
4502 * valops.c: Likewise.
4503 * valprint.c: Likewise.
4504 * value.c: Likewise.
4505 * varobj.c: Likewise.
4506 * vax-tdep.c: Likewise.
4507 * vaxnbsd-tdep.c: Likewise.
4508 * vaxobsd-tdep.c: Likewise.
4509 * windows-nat.c: Likewise.
4510 * xcoffread.c: Likewise.
4511 * xml-support.c: Likewise.
4512 * xstormy16-tdep.c: Likewise.
4513 * xtensa-linux-nat.c: Likewise.
4515 2014-08-07 Gary Benson <gbenson@redhat.com>
4517 * common/common-defs.h: Include gdb_assert.h.
4518 * aarch64-tdep.c: Do not include gdb_assert.h.
4519 * addrmap.c: Likewise.
4520 * aix-thread.c: Likewise.
4521 * alpha-linux-tdep.c: Likewise.
4522 * alpha-mdebug-tdep.c: Likewise.
4523 * alphanbsd-tdep.c: Likewise.
4524 * amd64-nat.c: Likewise.
4525 * amd64-tdep.c: Likewise.
4526 * amd64bsd-nat.c: Likewise.
4527 * amd64fbsd-nat.c: Likewise.
4528 * amd64fbsd-tdep.c: Likewise.
4529 * amd64nbsd-nat.c: Likewise.
4530 * amd64nbsd-tdep.c: Likewise.
4531 * amd64obsd-nat.c: Likewise.
4532 * amd64obsd-tdep.c: Likewise.
4533 * arch-utils.c: Likewise.
4534 * arm-tdep.c: Likewise.
4535 * armbsd-tdep.c: Likewise.
4537 * bcache.c: Likewise.
4538 * bfin-tdep.c: Likewise.
4539 * blockframe.c: Likewise.
4540 * breakpoint.c: Likewise.
4541 * bsd-kvm.c: Likewise.
4542 * bsd-uthread.c: Likewise.
4543 * buildsym.c: Likewise.
4544 * c-exp.y: Likewise.
4545 * c-lang.c: Likewise.
4546 * charset.c: Likewise.
4547 * cleanups.c: Likewise.
4548 * cli-out.c: Likewise.
4549 * cli/cli-decode.c: Likewise.
4550 * cli/cli-dump.c: Likewise.
4551 * cli/cli-logging.c: Likewise.
4552 * cli/cli-script.c: Likewise.
4553 * cli/cli-utils.c: Likewise.
4554 * coffread.c: Likewise.
4555 * common/common-utils.c: Likewise.
4556 * common/queue.h: Likewise.
4557 * common/signals.c: Likewise.
4558 * common/vec.h: Likewise.
4559 * complaints.c: Likewise.
4560 * completer.c: Likewise.
4561 * corelow.c: Likewise.
4562 * cp-abi.c: Likewise.
4563 * cp-name-parser.y: Likewise.
4564 * cp-namespace.c: Likewise.
4565 * cp-support.c: Likewise.
4566 * cris-tdep.c: Likewise.
4567 * dbxread.c: Likewise.
4568 * dictionary.c: Likewise.
4569 * doublest.c: Likewise.
4570 * dsrec.c: Likewise.
4571 * dummy-frame.c: Likewise.
4572 * dwarf2-frame-tailcall.c: Likewise.
4573 * dwarf2-frame.c: Likewise.
4574 * dwarf2expr.c: Likewise.
4575 * dwarf2loc.c: Likewise.
4576 * dwarf2read.c: Likewise.
4578 * event-loop.c: Likewise.
4579 * exceptions.c: Likewise.
4580 * expprint.c: Likewise.
4581 * f-valprint.c: Likewise.
4582 * fbsd-nat.c: Likewise.
4583 * findvar.c: Likewise.
4584 * frame-unwind.c: Likewise.
4585 * frame.c: Likewise.
4586 * frv-tdep.c: Likewise.
4587 * gcore.c: Likewise.
4588 * gdb-dlfcn.c: Likewise.
4589 * gdb_bfd.c: Likewise.
4590 * gdbarch.c: Likewise.
4591 * gdbarch.sh: Likewise.
4592 * gdbtypes.c: Likewise.
4593 * gnu-nat.c: Likewise.
4594 * gnu-v3-abi.c: Likewise.
4595 * go-lang.c: Likewise.
4596 * guile/scm-exception.c: Likewise.
4597 * guile/scm-gsmob.c: Likewise.
4598 * guile/scm-lazy-string.c: Likewise.
4599 * guile/scm-math.c: Likewise.
4600 * guile/scm-pretty-print.c: Likewise.
4601 * guile/scm-safe-call.c: Likewise.
4602 * guile/scm-utils.c: Likewise.
4603 * guile/scm-value.c: Likewise.
4604 * h8300-tdep.c: Likewise.
4605 * hppa-hpux-nat.c: Likewise.
4606 * hppa-tdep.c: Likewise.
4607 * hppanbsd-tdep.c: Likewise.
4608 * hppaobsd-tdep.c: Likewise.
4609 * i386-darwin-nat.c: Likewise.
4610 * i386-darwin-tdep.c: Likewise.
4611 * i386-nto-tdep.c: Likewise.
4612 * i386-tdep.c: Likewise.
4613 * i386bsd-nat.c: Likewise.
4614 * i386fbsd-tdep.c: Likewise.
4615 * i386gnu-nat.c: Likewise.
4616 * i386nbsd-tdep.c: Likewise.
4617 * i386obsd-tdep.c: Likewise.
4618 * i387-tdep.c: Likewise.
4619 * ia64-libunwind-tdep.c: Likewise.
4620 * ia64-tdep.c: Likewise.
4621 * inf-ptrace.c: Likewise.
4622 * inf-ttrace.c: Likewise.
4623 * infcall.c: Likewise.
4624 * infcmd.c: Likewise.
4625 * infrun.c: Likewise.
4626 * inline-frame.c: Likewise.
4627 * interps.c: Likewise.
4628 * jv-lang.c: Likewise.
4629 * jv-typeprint.c: Likewise.
4630 * linux-fork.c: Likewise.
4631 * linux-nat.c: Likewise.
4632 * linux-thread-db.c: Likewise.
4633 * m32c-tdep.c: Likewise.
4634 * m32r-linux-nat.c: Likewise.
4635 * m32r-tdep.c: Likewise.
4636 * m68k-tdep.c: Likewise.
4637 * m68kbsd-nat.c: Likewise.
4638 * m68kbsd-tdep.c: Likewise.
4639 * m88k-tdep.c: Likewise.
4640 * machoread.c: Likewise.
4641 * macroexp.c: Likewise.
4642 * macrotab.c: Likewise.
4643 * maint.c: Likewise.
4644 * mdebugread.c: Likewise.
4645 * memory-map.c: Likewise.
4646 * mep-tdep.c: Likewise.
4647 * mi/mi-common.c: Likewise.
4648 * microblaze-tdep.c: Likewise.
4649 * mingw-hdep.c: Likewise.
4650 * mips-linux-nat.c: Likewise.
4651 * mips-linux-tdep.c: Likewise.
4652 * mips-tdep.c: Likewise.
4653 * mips64obsd-tdep.c: Likewise.
4654 * mipsnbsd-tdep.c: Likewise.
4655 * mn10300-linux-tdep.c: Likewise.
4656 * mn10300-tdep.c: Likewise.
4657 * moxie-tdep.c: Likewise.
4658 * mt-tdep.c: Likewise.
4659 * nat/linux-btrace.c: Likewise.
4660 * nat/linux-osdata.c: Likewise.
4661 * nat/linux-ptrace.c: Likewise.
4662 * nat/mips-linux-watch.c: Likewise.
4663 * nios2-linux-tdep.c: Likewise.
4664 * nios2-tdep.c: Likewise.
4665 * objc-lang.c: Likewise.
4666 * objfiles.c: Likewise.
4667 * obsd-nat.c: Likewise.
4668 * opencl-lang.c: Likewise.
4669 * osabi.c: Likewise.
4670 * parse.c: Likewise.
4671 * ppc-linux-nat.c: Likewise.
4672 * ppc-sysv-tdep.c: Likewise.
4673 * ppcfbsd-nat.c: Likewise.
4674 * ppcfbsd-tdep.c: Likewise.
4675 * ppcnbsd-nat.c: Likewise.
4676 * ppcnbsd-tdep.c: Likewise.
4677 * ppcobsd-nat.c: Likewise.
4678 * ppcobsd-tdep.c: Likewise.
4679 * printcmd.c: Likewise.
4680 * procfs.c: Likewise.
4681 * prologue-value.c: Likewise.
4682 * psymtab.c: Likewise.
4683 * python/py-lazy-string.c: Likewise.
4684 * python/py-value.c: Likewise.
4685 * regcache.c: Likewise.
4686 * reggroups.c: Likewise.
4687 * registry.c: Likewise.
4688 * remote-sim.c: Likewise.
4689 * remote.c: Likewise.
4690 * rs6000-aix-tdep.c: Likewise.
4691 * rs6000-tdep.c: Likewise.
4692 * s390-linux-tdep.c: Likewise.
4693 * score-tdep.c: Likewise.
4694 * ser-base.c: Likewise.
4695 * ser-mingw.c: Likewise.
4696 * sh-tdep.c: Likewise.
4697 * sh64-tdep.c: Likewise.
4698 * solib-darwin.c: Likewise.
4699 * solib-spu.c: Likewise.
4700 * solib-svr4.c: Likewise.
4701 * source.c: Likewise.
4702 * sparc-nat.c: Likewise.
4703 * sparc-sol2-tdep.c: Likewise.
4704 * sparc-tdep.c: Likewise.
4705 * sparc64-sol2-tdep.c: Likewise.
4706 * sparc64-tdep.c: Likewise.
4707 * sparc64fbsd-tdep.c: Likewise.
4708 * sparc64nbsd-tdep.c: Likewise.
4709 * sparc64obsd-tdep.c: Likewise.
4710 * sparcnbsd-tdep.c: Likewise.
4711 * sparcobsd-tdep.c: Likewise.
4712 * spu-multiarch.c: Likewise.
4713 * spu-tdep.c: Likewise.
4714 * stabsread.c: Likewise.
4715 * stack.c: Likewise.
4716 * symfile.c: Likewise.
4717 * symtab.c: Likewise.
4718 * target-descriptions.c: Likewise.
4719 * target-memory.c: Likewise.
4720 * target.c: Likewise.
4721 * tic6x-linux-tdep.c: Likewise.
4722 * tic6x-tdep.c: Likewise.
4723 * tilegx-linux-nat.c: Likewise.
4724 * tilegx-tdep.c: Likewise.
4726 * tramp-frame.c: Likewise.
4727 * tui/tui-out.c: Likewise.
4728 * tui/tui-winsource.c: Likewise.
4729 * ui-out.c: Likewise.
4730 * user-regs.c: Likewise.
4731 * utils.c: Likewise.
4732 * v850-tdep.c: Likewise.
4733 * valops.c: Likewise.
4734 * value.c: Likewise.
4735 * varobj.c: Likewise.
4736 * vax-nat.c: Likewise.
4737 * xml-syscall.c: Likewise.
4738 * xml-tdesc.c: Likewise.
4739 * xstormy16-tdep.c: Likewise.
4740 * xtensa-linux-nat.c: Likewise.
4741 * xtensa-tdep.c: Likewise.
4743 2014-08-07 Gary Benson <gbenson@redhat.com>
4745 * common/common-defs.h: Include common-utils.h.
4746 * defs.h: Do not include common-utils.h.
4747 * common/gdb_assert.h: Likewise.
4748 * darwin-nat.h: Likewise.
4749 * nat/linux-btrace.c: Likewise.
4750 * target/waitstatus.h: Likewise.
4752 2014-08-07 Gary Benson <gbenson@redhat.com>
4754 * common/common-defs.h: Include ptid.h.
4755 * defs.h: Do not include ptid.h.
4756 * inferior.h: Likewise.
4757 * infrun.h: Likewise.
4758 * nat/linux-btrace.h: Likewise.
4759 * nat/linux-osdata.h: Likewise.
4760 * target/waitstatus.h: Likewise.
4762 2014-08-07 Gary Benson <gbenson@redhat.com>
4764 * common/common-defs.h: Include gdb_locale.h.
4765 * defs.h: Do not include gdb_locale.h.
4767 2014-08-07 Gary Benson <gbenson@redhat.com>
4769 * common/common-defs.h: Include gdb/signals.h.
4770 * defs.h: Do not include gdb/signals.h.
4772 2014-08-07 Gary Benson <gbenson@redhat.com>
4774 * common/common-defs.h: Include pathmax.h.
4775 * defs.h: Do not include pathmax.h.
4777 2014-08-07 Gary Benson <gbenson@redhat.com>
4779 * common/common-defs.h: Include libiberty.h.
4780 * defs.h: Do not include libiberty.h.
4781 * common/queue.h: Likewise.
4782 * cp-name-parser.y: Likewise.
4783 * mi/mi-cmd-catch.c: Likewise.
4784 * python/python.c: Likewise.
4786 2014-08-07 Gary Benson <gbenson@redhat.com>
4788 * common/common-defs.h: Include ansidecl.h.
4789 * defs.h: Do not include ansidecl.h.
4790 * common/buffer.h: Likewise.
4791 * common/common-utils.h: Likewise.
4793 2014-08-07 Gary Benson <gbenson@redhat.com>
4795 * common/common-defs.h: Include stddef.h.
4796 * defs.h: Do not include stddef.h.
4797 * common/common-utils.h: Likewise.
4798 * amd64fbsd-nat.c: Likewise.
4799 * bcache.c: Likewise.
4800 * charset.c: Likewise.
4801 * common/buffer.h: Likewise.
4802 * common/vec.h: Likewise.
4803 * i386bsd-nat.c: Likewise.
4804 * nat/linux-btrace.h: Likewise.
4805 * ppcfbsd-nat.c: Likewise.
4806 * ppcnbsd-tdep.h: Likewise.
4807 * ppcobsd-nat.c: Likewise.
4808 * ppcobsd-tdep.h: Likewise.
4809 * python/py-gdb-readline.c: Likewise.
4811 2014-08-07 Gary Benson <gbenson@redhat.com>
4813 * common/common-defs.h: Include stdarg.h.
4814 * defs.h: Do not include stdarg.h.
4815 * ada-lang.c: Likewise.
4816 * common/common-utils.h: Likewise.
4817 * guile/scm-string.c: Likewise.
4818 * guile/scm-utils.c: Likewise.
4819 * m32c-tdep.c: Likewise.
4821 2014-08-07 Gary Benson <gbenson@redhat.com>
4823 * common/common-defs.h: Include stdlib.h.
4824 * defs.h: Do not include stdlib.h.
4825 * addrmap.c: Likewise.
4826 * bcache.c: Likewise.
4827 * common/buffer.c: Likewise.
4828 * common/common-utils.c: Likewise.
4829 * cp-name-parser.y: Likewise.
4830 * go32-nat.c: Likewise.
4831 * mn10300-linux-tdep.c: Likewise.
4832 * nat/linux-osdata.c: Likewise.
4833 * tui/tui.c: Likewise.
4834 * windows-nat.c: Likewise.
4836 2014-08-07 Gary Benson <gbenson@redhat.com>
4838 * common/common-defs.h: Include stdio.h.
4839 * defs.h: Do not include stdio.h.
4840 * ada-lang.c: Likewise.
4841 * common/buffer.c: Likewise.
4842 * common/common-utils.c: Likewise.
4843 * cp-name-parser.y: Likewise.
4844 * gnu-nat.c: Likewise.
4845 * go32-nat.c: Likewise.
4846 * i386gnu-nat.c: Likewise.
4847 * proc-api.c: Likewise.
4848 * proc-events.c: Likewise.
4849 * proc-flags.c: Likewise.
4850 * proc-why.c: Likewise.
4851 * python/python-internal.h: Likewise.
4852 * target-memory.c: Likewise.
4853 * tui/tui-io.c: Likewise.
4854 * tui/tui.c: Likewise.
4856 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4858 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4859 (scan_dyntag_auxv): Same.
4861 2014-08-06 Yao Qi <yao@codesourcery.com>
4863 * amd64-linux-nat.c: Remove duplicated include
4865 * i386-linux-nat.c: Likewise.
4867 2014-08-06 Yao Qi <yao@codesourcery.com>
4869 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4870 operand" with "Special opcode" in comments.
4872 2014-08-05 Gary Benson <gbenson@redhat.com>
4874 * interps.c (initialize_interps): Remove prototype.
4875 (interpreter_initialized): Remove static global.
4876 (interp_add): Do not call initialize_interps.
4877 (initialize_interps): Remove function.
4879 2014-08-05 Gary Benson <gbenson@redhat.com>
4881 * utils.c (vwarning): Remove spurious va_end.
4883 2014-08-05 Alan Modra <amodra@gmail.com>
4885 * charset.c (convert_between_encodings): Cast result of obstack_base.
4886 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4887 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4888 (read_unwind_info): Use size_t for some locals.
4889 * jit.c (finalize_symtab): Likewise.
4890 * utils.c (hashtab_obstack_allocate): Likewise.
4891 * symmisc.c (print_objfile_statistics): Update format strings.
4893 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4895 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4896 (Changes in GDB 7.8): ... here.
4898 2014-08-04 Tom Tromey <tromey@redhat.com>
4900 * target.c (set_targetdebug): New function.
4901 (initialize_targets): Pass set_targetdebug when creating "set
4904 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4906 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4907 if detecting a variable-sized field that is not the last field.
4908 Fix struct type length computation.
4910 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4912 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4915 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4917 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4918 Remove "+ 8" offset in computation of CHAIN_VMA.
4920 2014-07-31 Doug Evans <dje@google.com>
4922 * inflow.c (child_terminal_inferior): Add comment.
4923 (child_terminal_ours_for_output): Add comment.
4924 (child_terminal_ours): Add comment.
4925 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4926 (linux_nat_terminal_ours): Add comment.
4928 2014-07-31 Gary Benson <gbenson@redhat.com>
4930 * common/btrace-common.h: Do not include defs.h or server.h.
4931 * nat/mips-linux-watch.h: Likewise.
4932 * gdb-dlfcn.h: Do not include defs.h.
4933 * tracefile.h: Likewise.
4935 2014-07-30 Roland McGrath <mcgrathr@google.com>
4937 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4939 2014-07-30 Tom Tromey <tromey@redhat.com>
4941 * bsd-kvm.c (bsd_kvm_open): Constify.
4942 * corelow.c (core_open): Constify.
4943 * ctf.c (ctf_open): Constify.
4944 * dbug-rom.c (dbug_open): Constify.
4945 * exec.c (exec_open): Constify.
4946 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4947 * microblaze-rom.c (picobug_open): Constify.
4948 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4950 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4951 * record-btrace.c (record_btrace_open): Constify.
4952 * record-full.c (record_full_core_open_1, record_full_open_1)
4953 (record_full_open): Constify.
4954 * remote-m32r-sdi.c (m32r_open): Constify.
4955 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4956 (rockhopper_open, lsi_open): Constify.
4957 * remote-sim.c (gdbsim_open): Constify.
4958 * remote.c (remote_open, extended_remote_open, remote_open_1):
4960 * target.h (struct target_ops) <to_open>: Make "arg" const.
4961 * tracefile-tfile.c (tfile_open): Constify.
4963 2014-07-30 Tom Tromey <tromey@redhat.com>
4965 * breakpoint.c (map_breakpoint_numbers): Update.
4966 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4967 (get_number_const): New function.
4968 (get_number): Rewrite using get_number_const.
4969 (init_number_or_range): Make "string" const.
4970 (number_is_in_list): Make "list" const.
4971 * cli/cli-utils.h (get_number_const): Declare.
4972 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4973 (init_number_or_range, number_is_in_list): Update.
4974 * printcmd.c (map_display_numbers): Update.
4975 * value.c (value_from_history_ref): Constify.
4976 * value.h (value_from_history_ref): Update.
4978 2014-07-30 Tom Tromey <tromey@redhat.com>
4980 * corefile.c (hook_type, call_extra_exec_file_hooks)
4981 (specify_exec_file_hook): Constify.
4982 * exec.c (exec_file_attach): Make "filename" const.
4983 * gdbcore.h (deprecated_exec_file_display_hook)
4984 (specify_exec_file_hook, exec_file_attach): Constify.
4985 * main.c (captured_main): Use catch_command_errors_const.
4987 2014-07-30 Tom Tromey <tromey@redhat.com>
4989 * target.c (open_target): New function.
4990 (add_target_with_completer, add_deprecated_target_alias): Use
4991 set_cmd_sfunc, set_cmd_context.
4992 (debug_to_open): Remove.
4993 (setup_target_debug): Update.
4995 2014-07-30 Yao Qi <yao@codesourcery.com>
4997 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4999 * parse.c (exp_iterate): Update comments.
5001 2014-07-30 Gary Benson <gbenson@redhat.com>
5003 * common/common-defs.h: New file.
5004 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5005 * defs.h: Include common-defs.h.
5006 Do not include config.h or build-gnulib/config.h.
5008 2014-07-30 Gary Benson <gbenson@redhat.com>
5010 * common/common-utils.h: Do not include config.h.
5011 * nat/linux-btrace.h: Likewise.
5013 2014-07-30 Gary Benson <gbenson@redhat.com>
5015 * btrace.c: Include defs.h.
5016 * common/ptid.c: Include defs.h or server.h as appropriate.
5017 * nat/mips-linux-watch.c: Likewise.
5019 2014-07-29 Tom Tromey <tromey@redhat.com>
5021 * target.c (target_is_pushed): Simplify.
5023 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5027 2014-07-29 Yao Qi <yao@codesourcery.com>
5030 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5032 2014-07-28 Doug Evans <xdje42@gmail.com>
5035 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5036 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5039 2014-07-28 Will Newton <will.newton@linaro.org>
5041 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5042 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5043 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5044 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5045 (THUMB2_EABI_SYSCALL): Likewise.
5046 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5048 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5049 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5051 2014-07-27 Doug Evans <xdje42@gmail.com>
5053 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5055 2014-07-27 Doug Evans <xdje42@gmail.com>
5057 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5059 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5060 Doug Evans <xdje42@gmail.com>
5063 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5064 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5065 * configure.ac: Try to use guild to compile an scm file, if it fails
5066 then disable guile support.
5067 * configure: Regenerate.
5068 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5070 (GUILE_COMPILED_FILES): New variable.
5071 (GUILE_FILES) Update.
5072 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5073 (stamp-guile): Compile scm files.
5074 * guile/guile.c (boot_guile_support): New function.
5075 (standard_throw_args_p): New function.
5076 (print_standard_throw_error, print_throw_error): New functions.
5077 (handle_boot_error): New function.
5078 (initialize_scheme_side): Rewrite to call boot_guile_support.
5079 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5080 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5082 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5083 Doug Evans <xdje42@gmail.com>
5086 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5087 * guile/lib/gdb/support.scm: New file.
5088 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5089 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5091 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5093 (%assert-type): Ditto, and renamed to assert-type.
5094 (%exception-print-style): Delete.
5096 2014-07-26 Doug Evans <xdje42@gmail.com>
5099 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5100 * configure: Regenerate.
5101 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5103 (PYTHON_FILES): New variable.
5104 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5105 (GUILE_FILES): New variable.
5106 (stamp-python, install-python, uninstall-python): Handle empty
5108 (stamp-guile, install-guile, uninstall-guile): Ditto.
5110 2014-07-26 Doug Evans <xdje42@gmail.com>
5113 * guile/lib/gdb.scm (pretty-printers): Export.
5114 (set-pretty-printers!): Export.
5115 * guile/lib/gdb/printing.scm (gdb module): Update.
5116 (prepend-pretty-printer!, append-pretty-printer!): Update.
5117 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5118 (pretty_printer_list_var): Delete.
5119 (pretty_printer_list): New static global.
5120 (gdbscm_pretty_printers): New function.
5121 (gdbscm_set_pretty_printers_x): New function.
5122 (ppscm_find_pretty_printer_from_gdb): Update.
5123 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5124 (gdbscm_initialize_pretty_printers): Update.
5126 2014-07-26 Doug Evans <xdje42@gmail.com>
5129 * configure.ac: Add check for header gc/gc.h.
5130 Add check for function setenv.
5131 * configure: Regenerate.
5132 * config.in: Regenerate.
5133 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5135 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5137 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5138 variation in gdbarch matching.
5140 2014-07-25 Tom Tromey <tromey@redhat.com>
5142 * exec.c (using_exec_ops): Remove.
5143 (exec_close_1): Update. Remove extraneous block, reindent.
5144 (add_target_sections): Use target_is_pushed.
5146 2014-07-25 Pedro Alves <palves@redhat.com>
5148 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5149 * monitor.c (monitor_create_inferior): Likewise.
5150 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5151 * remote-sim.c (gdbsim_create_inferior): Likewise.
5152 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5153 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5154 * windows-nat.c (do_initial_windows_stuff): Likewise.
5156 2014-07-25 Pedro Alves <palves@redhat.com>
5158 * NEWS: Mention signal passing and "signal" command changes.
5159 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5161 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5163 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5164 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5165 (jump_command): Adjust clear_proceed_status call.
5166 (signal_command): Warn if other thread that are resumed have
5167 signals that will be delivered. Adjust clear_proceed_status call.
5168 (until_next_command, finish_command)
5169 (proceed_after_attach_callback, attach_command_post_wait)
5170 (attach_command): Adjust clear_proceed_status call.
5171 * infrun.c (proceed_after_vfork_done): Likewise.
5172 (proceed_after_attach_callback): Adjust comment.
5173 (clear_proceed_status_thread): Clear stop_signal if not in pass
5175 (clear_proceed_status_callback): Delete.
5176 (clear_proceed_status): New 'step' parameter. Only clear the
5177 proceed status of threads the command being prepared is about to
5179 (proceed): If passed in an explicit signal, override stop_signal
5180 with it. Don't pass the last stop signal to the thread we're
5182 (init_wait_for_inferior): Adjust clear_proceed_status call.
5183 (switch_back_to_stepped_thread): Clear the signal if it should not
5185 * infrun.h (clear_proceed_status): New 'step' parameter.
5186 (user_visible_resume_ptid): Add comment.
5187 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5188 signal is in pass state.
5189 * remote.c (append_pending_thread_resumptions): Likewise.
5190 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5192 2014-07-25 Tom Tromey <tromey@redhat.com>
5194 * target.h (target_stopped_data_address)
5195 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5198 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5200 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5202 (avr_pointer_to_address): Likewise.
5204 2014-07-24 Tom Tromey <tromey@redhat.com>
5206 * monitor.c (compile_pattern): Update.
5207 * target.h (struct target_ops) <to_shortname, to_longname,
5210 2014-07-24 Tom Tromey <tromey@redhat.com>
5212 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5213 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5214 (add_info_alias, add_com): Make "doc" const.
5215 (print_doc_line): Make "str" const.
5216 (delete_cmd): Update.
5217 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5218 (print_doc_line): Update.
5219 * cli/cli-script.c (document_command): Update.
5220 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5221 (add_com, add_info, add_info_alias): Update.
5222 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5223 * python/py-cmd.c (cmdpy_destroyer): Update.
5225 2014-07-24 Tom Tromey <tromey@redhat.com>
5227 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5228 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5229 (help_cmd_list): Constify.
5230 (lookup_cmd): Update.
5231 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5233 (help_cmd_list, apropos_cmd): Update.
5234 * cli/cli-script.c (show_user): Update.
5235 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5236 * cli/cli-setshow.h (cmd_show_list): Update.
5237 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5238 (cmd_show_list): Update.
5239 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5240 * python/py-cmd.c (cmdpy_destroyer): Update.
5242 2014-07-24 Tom Tromey <tromey@redhat.com>
5244 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5245 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5247 * command.h (deprecate_cmd): Update.
5248 * maint.c (maintenance_do_deprecate): Add casts.
5250 2014-07-24 Tom Tromey <tromey@redhat.com>
5252 * cli/cli-decode.c (help_cmd): Make parameter "const".
5253 * cli/cli-decode.h (help_cmd): Update.
5255 2014-07-24 Tom Tromey <tromey@redhat.com>
5257 * stack.c (up_silently_base, down_silently_base): Make argument
5260 2014-07-24 Tom Tromey <tromey@redhat.com>
5262 * solib.c (solib_add): Make "pattern" const.
5263 * solib.h (solib_add): Update.
5265 2014-07-24 Tom Tromey <tromey@redhat.com>
5267 * remote.c (remote_serial_open, print_packet, putpkt)
5268 (putpkt_binary): Constify.
5269 * remote.h (putpkt): Update.
5271 2014-07-24 Tom Tromey <tromey@redhat.com>
5273 * monitor.c (monitor_open): Make "args" const.
5274 * monitor.h (monitor_open): Update.
5276 2014-07-24 Tom Tromey <tromey@redhat.com>
5278 * maint.c (match_bfd_flags): Make "string" const.
5279 (print_bfd_section_info): Remove casts.
5280 (print_objfile_section_info): Make "string" const.
5282 2014-07-24 Tom Tromey <tromey@redhat.com>
5284 * inf-child.c (inf_child_open_target): Make "arg" const.
5285 * inf-child.h (inf_child_open_target): Update.
5287 2014-07-24 Tom Tromey <tromey@redhat.com>
5289 * environ.c (unset_in_environ): Make "var" const.
5290 * environ.h (unset_in_environ): Update.
5292 2014-07-24 Tom Tromey <tromey@redhat.com>
5294 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5296 (scan_filename_with_cleanup): Likewise.
5297 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5298 Make arguments const.
5299 (restore_command): Update.
5301 2014-07-24 Pedro Alves <palves@redhat.com>
5303 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5305 2014-07-24 Tom Tromey <tromey@redhat.com>
5306 Gary Benson <gbenson@redhat.com>
5308 * nat/linux-ptrace.c (additional_flags): New global.
5309 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5310 additional_flags; don't check GDBSERVER.
5311 (linux_ptrace_set_additional_flags): New function.
5312 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5314 * linux-nat.c (_initialize_linux_nat): Call
5315 linux_ptrace_set_additional_flags.
5317 2014-07-24 Tom Tromey <tromey@redhat.com>
5319 * make-target-delegates (munge_type, write_debugmethod): New
5321 (debug_names): New global.
5322 ($TARGET_DEBUG_PRINTER): New global.
5323 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5325 Write debug methods. Generate init_debug_target.
5326 * target-debug.h: New file.
5327 * target-delegates.c: Rebuild.
5328 * target.c: Include target-debug.h.
5329 (debug_target): Hoist definition.
5330 (target_kill, target_get_section_table, target_memory_map)
5331 (target_flash_erase, target_flash_done, target_detach)
5332 (target_disconnect, target_wait, target_resume)
5333 (target_pass_signals, target_program_signals, target_follow_fork)
5334 (target_mourn_inferior, target_search_memory)
5335 (target_thread_address_space, target_close)
5336 (target_find_new_threads, target_core_of_thread)
5337 (target_verify_memory, target_insert_mask_watchpoint)
5338 (target_remove_mask_watchpoint): Remove targetdebug code.
5339 (debug_to_post_attach, debug_to_prepare_to_store)
5340 (debug_to_files_info, debug_to_insert_breakpoint)
5341 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5342 (debug_to_region_ok_for_hw_watchpoint)
5343 (debug_to_can_accel_watchpoint_condition)
5344 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5345 (debug_to_watchpoint_addr_within_range)
5346 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5347 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5348 (debug_to_terminal_init, debug_to_terminal_inferior)
5349 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5350 (debug_to_terminal_save_ours, debug_to_terminal_info)
5351 (debug_to_load, debug_to_post_startup_inferior)
5352 (debug_to_insert_fork_catchpoint)
5353 (debug_to_remove_fork_catchpoint)
5354 (debug_to_insert_vfork_catchpoint)
5355 (debug_to_remove_vfork_catchpoint)
5356 (debug_to_insert_exec_catchpoint)
5357 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5358 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5359 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5360 (setup_target_debug): Call init_debug_target.
5361 * target.h (TARGET_DEBUG_PRINTER): New macro.
5362 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5363 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5365 2014-07-24 Gary Benson <gbenson@redhat.com>
5367 * exceptions.h (throw_vfatal): Renamed to...
5368 (throw_vquit): New declaration.
5369 (throw_quit): Likewise.
5370 * exceptions.c (throw_vfatal): Renamed to...
5371 (throw_vquit): New function.
5372 (throw_quit): Likewise.
5373 (throw_error): Call throw_verror rather than throw_it.
5374 * utils.h (vfatal): Removed.
5376 * utils.c (vfatal): Removed.
5378 (internal_verror): Replaced call to fatal with call to throw_quit.
5379 (quit): Replaced calls to fatal with calls to throw_quit.
5381 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5383 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5386 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5388 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5389 less than zero in conditional expression.
5391 2014-07-23 Tom Tromey <tromey@redhat.com>
5393 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5394 ($INTRO_PART): Don't match whitespace.
5395 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5397 ($METHOD): Add $METHOD_TRAILER.
5399 (scan_target_h): New sub.
5400 Change main loop not to collect state.
5401 * target-delegates.c: Rebuild.
5403 2014-07-23 Gary Benson <gbenson@redhat.com>
5405 * cp-support.c (gdb_demangle): Fix build on systems without
5408 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5410 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5411 for reference entry value target data value.
5413 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5415 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5416 value_available_contents_eq.
5418 2014-07-22 Pedro Alves <palves@redhat.com>
5420 * value.c (allocate_optimized_out_value): Don't mark value as
5423 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5425 * MAINTAINERS (Write After Approval): Update my email address.
5427 2014-07-20 Doug Evans <dje@google.com>
5430 * remote.c (putpkt_binary): Add text to error message.
5432 2014-07-20 Yao Qi <yao@codesourcery.com>
5434 * eval.c: Remove "Chill" from comments.
5435 * gdbtypes.h: Likewise.
5436 * symtab.h: Likewise.
5438 2014-07-20 Yao Qi <yao@codesourcery.com>
5440 * std-operator.def: Update comments to TERNOP_SLICE.
5442 2014-07-20 Yao Qi <yao@codesourcery.com>
5444 * std-operator.def: Remove BINOP_RANGE.
5445 * breakpoint.c (watchpoint_exp_is_const): Update.
5446 * expprint.c (dump_subexp_body_standard): Likewise.
5447 * eval.c (init_array_element): Remove dead code.
5448 (evaluate_subexp_standard): Likewise.
5450 2014-07-20 Yao Qi <yao@codesourcery.com>
5452 * std-operator.def: Remove BINOP_IN.
5453 * breakpoint.c (watchpoint_exp_is_const): Update.
5454 * eval.c (evaluate_subexp_standard): Likewise.
5455 * expprint.c (dump_subexp_body_standard): Likewise.
5457 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5459 * microblaze-tdep.c (microblaze_register_names): Add
5460 the rshr and rslr register names.
5461 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5462 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5463 Use of tdesc_numbered_register. Use of
5464 microblaze_register_g_packet_guesses. Use of
5465 tdesc_use_registers. Use of set_gdbarch_register_type.
5466 (microblaze_register_g_packet_guesses): New.
5467 * microblaze-tdep.h (microblaze_reg_num): Add
5468 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5469 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5470 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5471 * features/microblaze-core.xml: New file.
5472 * features/microblaze-stack-protect.xml: New file.
5473 * features/microblaze-with-stack-protect.c: New file.
5474 * features/microblaze-with-stack-protect.xml: New file.
5475 * features/microblaze.xml: New file.
5476 * features/microblaze.c: New file.
5477 * features/Makefile (microblaze-with-stack-protect): Add
5478 microblaze-with-stack-protect microblaze and microblaze-expedite.
5479 * regformats/microblaze-with-stack-protect.dat: New file.
5480 * regformats/microblaze.dat: New file.
5481 * doc/gdb.texinfo (MicroBlaze Features): Added.
5483 2014-07-18 Tom Tromey <tromey@redhat.com>
5485 * exec.c (exec_ops): Now static.
5486 * exec.h (exec_ops): Don't declare.
5488 2014-07-18 Tom Tromey <tromey@redhat.com>
5490 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5491 to find_target_beneath.
5492 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5493 find_target_beneath.
5494 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5496 2014-07-18 Tom Tromey <tromey@redhat.com>
5499 * utils.c (quit): Use target_supports_terminal_ours.
5500 * target.h (target_supports_terminal_ours): Declare.
5501 * target.c (target_supports_delete_record): Don't check
5502 to_delete_record against NULL.
5503 (target_supports_terminal_ours): New function.
5505 2014-07-18 Tom Tromey <tromey@redhat.com>
5508 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5509 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5510 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5511 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5512 * windows-nat.c (windows_xfer_partial): Always delegate.
5513 * record-btrace.c (record_btrace_xfer_partial): Simplify
5515 (record_btrace_fetch_registers, record_btrace_store_registers)
5516 (record_btrace_prepare_to_store, record_btrace_resume)
5517 (record_btrace_wait, record_btrace_find_new_threads)
5518 (record_btrace_thread_alive): Likewise.
5519 * procfs.c (procfs_xfer_partial): Always delegate.
5520 * corelow.c (core_xfer_partial): Always delegate.
5521 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5523 2014-07-18 Tom Tromey <tromey@redhat.com>
5525 * exec.c (exec_make_note_section): Move earlier.
5527 2014-07-17 Doug Evans <dje@google.com>
5530 * maint.c (count_symtabs_and_blocks): Handle NULL
5531 current_program_space.
5532 (report_command_stats): Check global enabled flag in addition to
5533 recorded enabled flag.
5534 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5536 2014-07-16 Pedro Alves <palves@redhat.com>
5538 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5540 2014-07-16 Tom Tromey <tromey@redhat.com>
5542 * target.h (struct target_ops) <to_delete_record>: Reformat
5545 2014-07-16 Tom Tromey <tromey@redhat.com>
5547 * target-delegates.c: Rebuild.
5549 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5551 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5552 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5553 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5554 (avr_pointer_to_address): Likewise.
5555 (avr_address_class_type_flags): New function.
5556 (avr_address_class_type_flags_to_name): Likewise.
5557 (avr_address_class_name_to_type_flags): Likewise.
5558 (avr_gdbarch_init): Set address_class_type_flags,
5559 address_class_type_flags_to_name and
5560 address_class_name_to_type_flags.
5562 2014-07-15 Pedro Alves <palves@redhat.com>
5564 * linux-nat.c (kill_callback): Save errno and work with saved
5567 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5569 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5571 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5573 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5574 breakpoint support correctly.
5576 2014-07-14 Pedro Alves <palves@redhat.com>
5578 * utils.c (prompt_for_continue): Call target_terminal_ours.
5580 2014-07-14 Pedro Alves <palves@redhat.com>
5582 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5583 catch_errors. Don't re-enable stdin or notify observers where,
5585 (fetch_inferior_event_wrapper): Delete.
5587 2014-07-14 Pedro Alves <palves@redhat.com>
5590 * top.c: Include "inf-loop.h".
5591 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5593 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5595 (gdb_readline_wrapper): Store whether the target is async, and
5598 2014-07-14 Pedro Alves <palves@redhat.com>
5601 * top.c (gdb_readline_wrapper_line): Tweak comment.
5602 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5603 the input handler callback.
5605 2014-07-14 Pedro Alves <palves@redhat.com>
5608 * main.c: Include event-top.h.
5609 (handle_command_errors): New function.
5610 (catch_command_errors, catch_command_errors_const): Use it.
5612 2014-07-14 Pedro Alves <palves@redhat.com>
5614 * exceptions.c (catch_command_errors, catch_command_errors_const):
5616 * exceptions.h (catch_command_errors_ftype)
5617 (catch_command_errors_const_ftype): Moved to main.c.
5618 (catch_command_errors, catch_command_errors_const): Delete
5620 * main.c (catch_command_errors_ftype)
5621 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5622 (catch_command_errors, catch_command_errors_const)): Moved here
5623 from exceptions.c and make static.
5625 2014-07-14 Pedro Alves <palves@redhat.com>
5627 * exceptions.c (print_any_exception): Delete.
5628 (catch_exceptions_with_msg): Use exception_print instead of
5629 print_any_exception.
5630 (catch_errors): Use exception_fprintf instead of
5631 print_any_exception.
5632 (catch_command_errors, catch_command_errors_const): Use
5633 exception_print instead of print_any_exception.
5635 2014-07-14 Pedro Alves <palves@redhat.com>
5637 * infcall.c (run_inferior_call): Set 'sync_execution' while
5638 running the inferior call.
5640 2014-07-14 Pedro Alves <palves@redhat.com>
5642 * value.c (value_contents_equal): Delete function.
5643 * value.h (value_contents_equal): Delete declaration.
5645 2014-07-14 Tom Tromey <tromey@redhat.com>
5648 * gdbtypes.c (is_dynamic_type_internal): New function, from
5650 (is_dynamic_type): Rewrite.
5651 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5652 (resolve_dynamic_struct): Likewise.
5653 (resolve_dynamic_type_internal): New function, from
5654 resolve_dynamic_type.
5655 (resolve_dynamic_type): Rewrite.
5657 2014-07-14 Tom Tromey <tromey@redhat.com>
5659 * target.c (target_require_runnable): Also check record_stratum.
5662 2014-07-11 Yao Qi <yao@codesourcery.com>
5664 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5665 thumb_instruction_restores_sp return true.
5667 2014-07-11 Yao Qi <yao@codesourcery.com>
5669 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5670 (thumb_in_function_epilogue_p): Call
5671 thumb_instruction_restores_sp.
5673 2014-07-11 Yao Qi <yao@codesourcery.com>
5675 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5677 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5679 2014-07-11 Gary Benson <gbenson@redhat.com>
5681 * amd64-linux-nat.c (gdbcore.h): Remove include.
5682 (regset.h): Likewise.
5683 (nat/linux-btrace.h): Likewise.
5684 (btrace.h): Likewise.
5685 (gdb_assert.h): Likewise.
5686 (string.h): Likewise.
5687 (sys/uio.h): Likewise.
5688 (sys/debugreg.h): Likewise.
5689 (sys/syscall.h): Likewise.
5690 (sys/procfs.h): Likewise.
5691 (sys/user.h): Likewise.
5692 (asm/ptrace.h): Likewise.
5693 (i386-nat.h): Likewise.
5694 * i386-linux-nat.c (i386-nat.h): Likewise.
5695 (regset.h): Likewise.
5696 (target.h): Likewise.
5697 (linux-nat.h): Likewise.
5698 (nat/linux-btrace.h): Likewise.
5699 (btrace.h): Likewise.
5700 (gdb_assert.h): Likewise.
5701 (string.h): Likewise.
5702 (sys/uio.h): Likewise.
5703 (sys/user.h): Likewise.
5704 (sys/procfs.h): Likewise.
5705 (sys/reg.h): Likewise.
5706 (sys/debugreg.h): Likewise.
5707 (ORIG_EAX): Remove definition.
5709 2014-07-11 Gary Benson <gbenson@redhat.com>
5711 * i386-linux-nat.h: New file.
5712 * x86-linux-nat.h: Likewise.
5713 * x86-linux-nat.c: Likewise.
5714 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5715 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5716 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5717 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5718 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5719 (PTRACE_SETREGSET): Likewise.
5720 (arch_lwp_info): Now in x86-linux-nat.c.
5721 (have_ptrace_getregset): Now in x86-linux-nat.h.
5722 (x86_linux_dr_get): Now in x86-linux-nat.c.
5723 (x86_linux_dr_set): Likewise.
5724 (x86_linux_dr_get_addr): Likewise.
5725 (x86_linux_dr_get_control): Likewise.
5726 (x86_linux_dr_get_status): Likewise.
5727 (update_debug_registers_callback): Likewise.
5728 (x86_linux_dr_set_control): Likewise.
5729 (x86_linux_dr_set_addr): Likewise.
5730 (x86_linux_prepare_to_resume): Likewise.
5731 (x86_linux_new_thread): Likewise.
5732 (x86_linux_new_fork): Likewise.
5733 (x86_linux_get_thread_area): Likewise.
5734 (super_post_startup_inferior): Likewise.
5735 (x86_linux_child_post_startup_inferior): Likewise.
5736 (AMD64_LINUX_USER64_CS): Likewise.
5737 (AMD64_LINUX_X32_DS): Likewise.
5738 (x86_linux_read_description): Likewise.
5739 (x86_linux_enable_btrace): Likewise.
5740 (x86_linux_disable_btrace): Likewise.
5741 (x86_linux_teardown_btrace): Likewise.
5742 (x86_linux_read_btrace): Likewise.
5743 (x86_linux_create_target): Likewise.
5744 (x86_linux_add_target): Likewise.
5745 * i386-linux-nat.c (x86-linux-nat.h): New include.
5746 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5747 (PTRACE_SETREGSET): Likewise.
5748 (arch_lwp_info): Now in x86-linux-nat.c.
5749 (have_ptrace_getregset): Now in x86-linux-nat.h.
5750 (x86_linux_dr_get): Now in x86-linux-nat.c.
5751 (x86_linux_dr_set): Likewise.
5752 (x86_linux_dr_get_addr): Likewise.
5753 (x86_linux_dr_get_control): Likewise.
5754 (x86_linux_dr_get_status): Likewise.
5755 (update_debug_registers_callback): Likewise.
5756 (x86_linux_dr_set_control): Likewise.
5757 (x86_linux_dr_set_addr): Likewise.
5758 (x86_linux_prepare_to_resume): Likewise.
5759 (x86_linux_new_thread): Likewise.
5760 (x86_linux_new_fork): Likewise.
5761 (x86_linux_get_thread_area): Likewise.
5762 (super_post_startup_inferior): Likewise.
5763 (x86_linux_child_post_startup_inferior): Likewise.
5764 (AMD64_LINUX_USER64_CS): Likewise.
5765 (AMD64_LINUX_X32_DS): Likewise.
5766 (x86_linux_read_description): Likewise.
5767 (x86_linux_enable_btrace): Likewise.
5768 (x86_linux_disable_btrace): Likewise.
5769 (x86_linux_teardown_btrace): Likewise.
5770 (x86_linux_read_btrace): Likewise.
5771 (x86_linux_create_target): Likewise.
5772 (x86_linux_add_target): Likewise.
5774 2014-07-11 Gary Benson <gbenson@redhat.com>
5776 * amd64-linux-nat.c: Comment and whitespace changes.
5777 * i386-linux-nat.c: Comment and whitespace changes.
5779 2014-07-11 Gary Benson <gbenson@redhat.com>
5781 * amd64-linux-nat.c (x86_linux_create_target): New function.
5782 (x86_linux_add_target): Likewise.
5783 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5784 * i386-linux-nat.c (x86_linux_create_target): New function.
5785 (x86_linux_add_target): Likewise.
5786 (_initialize_i386_linux_nat): Delegate to the above new functions.
5788 2014-07-11 Gary Benson <gbenson@redhat.com>
5790 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5791 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5792 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5793 (ps_get_thread_area): Delegate to the above.
5795 2014-07-11 Gary Benson <gbenson@redhat.com>
5797 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5798 x86_linux_read_description. All uses updated. amd64-specific
5799 code conditionalized. Conditionalized i386-specific code added.
5800 Redundant cast removed.
5801 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5802 x86_linux_read_description. All uses updated. i386-specific
5803 code conditionalized. Conditionalized amd64-specific code added.
5804 One sizeof replaced with the actual type it is describing.
5806 2014-07-11 Gary Benson <gbenson@redhat.com>
5808 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5809 x86_linux_dr_get. All uses updated.
5810 (amd64_linux_dr_set): Renamed to
5811 x86_linux_dr_set. All uses updated.
5812 (amd64_linux_dr_get_addr): Renamed to
5813 x86_linux_dr_get_addr. All uses updated.
5814 (amd64_linux_dr_get_control): Renamed to
5815 x86_linux_dr_get_control. All uses updated.
5816 (amd64_linux_dr_get_status): Renamed to
5817 x86_linux_dr_get_status. All uses updated.
5818 (amd64_linux_dr_set_control): Renamed to
5819 x86_linux_dr_set_control. All uses updated.
5820 (amd64_linux_dr_set_addr): Renamed to
5821 x86_linux_dr_set_addr. All uses updated.
5822 (amd64_linux_prepare_to_resume): Renamed to
5823 x86_linux_prepare_to_resume. All uses updated.
5824 (amd64_linux_new_thread): Renamed to
5825 x86_linux_new_thread. All uses updated.
5826 (amd64_linux_new_fork): Renamed to
5827 x86_linux_new_fork. All uses updated.
5828 (amd64_linux_child_post_startup_inferior): Renamed to
5829 x86_linux_child_post_startup_inferior. All uses updated.
5830 (amd64_linux_enable_btrace): Renamed to
5831 x86_linux_enable_btrace. All uses updated.
5832 (amd64_linux_disable_btrace): Renamed to
5833 x86_linux_disable_btrace. All uses updated.
5834 (amd64_linux_teardown_btrace): Renamed to
5835 x86_linux_teardown_btrace. All uses updated.
5836 (amd64_linux_read_btrace): Renamed to
5837 x86_linux_read_btrace. All uses updated.
5838 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5839 x86_linux_dr_get. All uses updated.
5840 (i386_linux_dr_set): Renamed to
5841 x86_linux_dr_set. All uses updated.
5842 (i386_linux_dr_get_addr): Renamed to
5843 x86_linux_dr_get_addr. All uses updated.
5844 (i386_linux_dr_get_control): Renamed to
5845 x86_linux_dr_get_control. All uses updated.
5846 (i386_linux_dr_get_status): Renamed to
5847 x86_linux_dr_get_status. All uses updated.
5848 (i386_linux_dr_set_control): Renamed to
5849 x86_linux_dr_set_control. All uses updated.
5850 (i386_linux_dr_set_addr): Renamed to
5851 x86_linux_dr_set_addr. All uses updated.
5852 (i386_linux_prepare_to_resume): Renamed to
5853 x86_linux_prepare_to_resume. All uses updated.
5854 (i386_linux_new_thread): Renamed to
5855 x86_linux_new_thread. All uses updated.
5856 (i386_linux_new_fork): Renamed to
5857 x86_linux_new_fork. All uses updated.
5858 (i386_linux_child_post_startup_inferior): Renamed to
5859 x86_linux_child_post_startup_inferior. All uses updated.
5860 (i386_linux_enable_btrace): Renamed to
5861 x86_linux_enable_btrace. All uses updated.
5862 (i386_linux_disable_btrace): Renamed to
5863 x86_linux_disable_btrace. All uses updated.
5864 (i386_linux_teardown_btrace): Renamed to
5865 x86_linux_teardown_btrace. All uses updated.
5866 (i386_linux_read_btrace): Renamed to
5867 x86_linux_read_btrace. All uses updated.
5869 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5871 * remote.c (extended_remote_post_attach): New function.
5872 (init_extended_remote_ops): Install it as to_post_attach method.
5874 2014-07-09 Pedro Alves <palves@redhat.com>
5876 * infcmd.c (attach_command_post_wait): Don't call
5877 target_terminal_inferior here.
5878 (attach_command): Call it here instead.
5880 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5882 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5884 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5885 from varobj.c, with additional checks.
5886 (c_varobj_ops): Fill in is_path_expr_parent field.
5887 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5888 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5890 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5892 (varobj_default_is_path_expr_parent): New function.
5893 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5894 (varobj_default_is_path_expr_parent): Declare new function.
5896 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5898 * infcmd.c (finish_backward): Turn internal error into normal error.
5900 2014-07-07 Pedro Alves <palves@redhat.com>
5903 * remote.c (async_handle_remote_sigint)
5904 (async_handle_remote_sigint_twice): Call
5905 gdb_call_async_signal_handler instead of
5906 mark_async_signal_handler.
5908 2014-07-07 Tom Tromey <tromey@redhat.com>
5910 * target-delegates.c: Rebuild.
5911 * target.c (target_info_record): Remove.
5912 * record.c (info_record_command): Unconditionally call
5914 * target.h (struct target_ops) <to_info_record>: Use
5915 TARGET_DEFAULT_IGNORE.
5916 (target_info_record): Remove.
5918 2014-07-07 Tom Tromey <tromey@redhat.com>
5920 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5921 TARGET_DEFAULT_NORETURN.
5922 * target.c (generic_tls_error): New function.
5923 (target_translate_tls_address): Don't search target stack.
5924 * target-delegates.c: Rebuild.
5925 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5927 * linux-thread-db.c (thread_db_get_thread_local_address):
5928 Unconditionally call beneath target.
5930 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5932 * cli/cli-logging.c (pop_output_files): Assign targerr to
5935 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5937 * MAINTAINERS (Write After Approval): Update my email address.
5939 2014-07-02 Gary Benson <gbenson@redhat.com>
5941 * proc-service.c (ps_xfer_memory): Update comment.
5942 (ps_pstop): Remove unused function.
5943 (ps_pcontinue): Likewise.
5944 (ps_lstop): Likewise.
5945 (ps_lcontinue): Likewise.
5946 (ps_lgetxregsize): Likewise.
5947 (ps_lgetxregs): Likewise.
5948 (ps_lsetxregs): Likewise.
5949 (ps_plog): Likewise.
5950 (ps_ptread): Likewise.
5951 (ps_ptwrite): Likewise.
5953 2014-07-01 Mark Wielaard <mjw@redhat.com>
5955 * dwarf2read.c (add_array_cv_type): New function.
5956 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5957 (read_tag_volatile_type): Likewise.
5959 2014-07-01 Tom Tromey <tromey@redhat.com>
5961 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5962 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5963 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5964 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5965 * command.h (cmd_cfunc_ftype): Move earlier.
5966 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5967 (add_com, add_info): Use cmd_cfunc_ftype.
5969 2014-06-30 Tom Tromey <tromey@redhat.com>
5971 * symtab.c (operator_chars): Make parameters and return type
5973 (file_matches): Make "files" const.
5974 (struct search_symbols_data) <files>: Now const.
5975 (search_symbols): Make "regexp" and "files" parameters const.
5977 (symtab_symbol_info): Remove cast.
5978 (rbreak_command): Update.
5979 * symtab.h (search_symbols): Update.
5981 2014-06-27 Yao Qi <yao@codesourcery.com>
5983 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5984 Change parameter type to 'struct thread_info *'. Caller
5986 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5988 * dummy-frame.c (struct dummy_frame_id): New.
5989 (dummy_frame_id_eq): New function.
5990 (struct dummy_frame) <id>: Change its type to 'struct
5992 (dummy_frame_push): Add parameter ptid and save it in
5994 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5996 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5998 (lookup_dummy_frame): Change parameter type to 'struct
5999 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6000 instead of frame_id_eq.
6001 (dummy_frame_pop): Add parameter ptid. Callers updated.
6002 Update comments. Compose dummy_frame_id and pass it to
6004 (dummy_frame_discard): Add parameter ptid.
6005 (dummy_frame_sniffer): Compose dummy_frame_id and call
6006 dummy_frame_id_eq instead of frame_id_eq.
6007 (fprint_dummy_frames): Print ptid.
6008 * dummy-frame.h: Remove comments.
6009 (dummy_frame_push): Add ptid in declaration.
6010 (dummy_frame_pop, dummy_frame_discard): Likewise.
6012 2014-06-26 Tom Tromey <tromey@redhat.com>
6014 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6015 * command.h (error_no_arg): Update.
6017 2014-06-26 Tom Tromey <tromey@redhat.com>
6019 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6020 (do_show_command): Make "arg" const.
6021 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6023 2014-06-26 Tom Tromey <tromey@redhat.com>
6025 * record-full.c (record_full_get_bookmark): Make "args" const.
6026 (record_full_goto_bookmark): Make "raw_bookmark" const.
6027 * record.c (record_goto): New function.
6028 (cmd_record_goto): Use it. Now static.
6029 * record.h (record_goto): Declare.
6030 (cmd_record_goto): Remove declaration.
6031 * target-delegates.c: Rebuild.
6032 * target.h (struct target_ops) <to_get_bookmark,
6033 to_goto_bookmark>: Make parameter const.
6035 2014-06-26 Tom Tromey <tromey@redhat.com>
6037 * defs.h (generic_load): Update.
6038 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6039 * monitor.c (monitor_load): Make "args" const.
6040 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6041 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6043 (mips_load): Make "file" const.
6044 * remote-sim.c (gdbsim_load): Make "args" const.
6045 * remote.c (remote_load): Make "name" const.
6046 * symfile.c (generic_load): Make "args" const.
6047 * target-delegates.c: Rebuild.
6048 * target.c (target_load): Make "arg" const.
6049 (debug_to_load): Make "args" const.
6050 * target.h (struct target_ops) <to_load>: Make parameter const.
6051 (target_load): Update.
6053 2014-06-26 Tom Tromey <tromey@redhat.com>
6056 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6057 (dwarf2_physname, read_partial_die)
6058 (guess_partial_die_structure_name, fixup_partial_die)
6059 (guess_full_die_structure_name, anonymous_struct_prefix)
6060 (dwarf2_name): Use per-BFD obstack.
6062 2014-06-26 Yao Qi <yao@codesourcery.com>
6064 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6065 dummyframe and this_id into inner block below.
6067 2014-06-26 Yao Qi <yao@codesourcery.com>
6069 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6070 with "signal_pass[0]" in the initialization of signal_pass.
6072 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6074 * record-btrace.c (record_btrace_generating_corefile)
6075 (record_btrace_prepare_to_generate_core)
6076 (record_btrace_done_generating_core): New.
6077 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6078 (record_btrace_store_registers, record_btrace_prepare_to_store):
6079 Forward request when generating a core file.
6080 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6081 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6082 to_done_generating_core.
6084 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6086 * target.h (target_ops) <to_prepare_to_generate_core>
6087 <to_done_generating_core>: New.
6088 (target_prepare_to_generate_core, target_done_generating_core): New.
6089 * target.c (target_prepare_to_generate_core)
6090 (target_done_generating_core): New.
6091 * target-delegates.c: Regenerate.
6092 * gcore.c: (write_gcore_file): Rename to ...
6093 (write_gcore_file_1): ...this.
6094 (write_gcore_file): Call target_prepare_to_generate_core
6095 and target_done_generating_core.
6097 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6099 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6100 * gcore.c (write_gcore_file): Free memory returned from
6101 make_corefile_notes.
6102 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6103 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6105 2014-06-24 Yao Qi <yao@codesourcery.com>
6107 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6108 (arm_linux_init_abi): Set skip_trampoline_code with
6109 gdbarch_skip_trampoline_code instead of
6110 find_solib_trampoline_target.
6112 2014-06-24 Yao Qi <yao@codesourcery.com>
6114 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6115 arm_skip_bx_reg returns non-zero.
6117 2014-06-24 Yao Qi <yao@codesourcery.com>
6119 * arm-tdep.c (arm_skip_bx_reg): New function.
6120 (arm_skip_stub): Call arm_skip_bx_reg.
6122 2014-06-23 Don Breazeal <donb@codesourcery.com>
6124 * MAINTAINERS: Add myself as write-after-approval maintainer.
6126 2014-06-23 Pedro Alves <palves@redhat.com>
6128 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6129 DR_CONTROL before setting DR0..DR3.
6130 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6131 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6132 bits of DR_CONTROL related to the debug register slot being
6133 disabled. If all slots are vacant, clear local slowdown as well,
6134 and assert DR_CONTROL is 0.
6136 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6138 * python/lib/gdb/command/xmethods.py
6139 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6140 current progspace only if the string "progspace" matches LOCUS_RE.
6142 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6144 Fix --with-system-readline with readline-6.3 patch 5.
6145 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6146 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6149 2014-06-20 Tom Tromey <tromey@redhat.com>
6151 * dwarf2read.c (dw2_get_real_path): Use correct type in
6153 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6155 2014-06-20 Gary Benson <gbenson@redhat.com>
6157 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6158 * common/glibc_thread_db.h: Likewise.
6159 * common/i386-cpuid.h: Likewise.
6160 * common/i386-gcc-cpuid.h: Likewise.
6161 * common/linux-btrace.h: Likewise.
6162 * common/linux-osdata.h: Likewise.
6163 * common/linux-procfs.h: Likewise.
6164 * common/linux-ptrace.h: Likewise.
6165 * common/mips-linux-watch.h: Likewise.
6166 * common/linux-btrace.c: Moved to nat.
6167 * common/linux-osdata.c: Likewise.
6168 * common/linux-procfs.c: Likewise.
6169 * common/linux-ptrace.c: Likewise.
6170 * common/mips-linux-watch.c: Likewise.
6171 * nat/gdb_thread_db.h: Moved from common.
6172 * nat/glibc_thread_db.h: Likewise.
6173 * nat/i386-cpuid.h: Likewise.
6174 * nat/i386-gcc-cpuid.h: Likewise.
6175 * nat/linux-btrace.c: Likewise.
6176 * nat/linux-btrace.h: Likewise.
6177 * nat/linux-osdata.c: Likewise.
6178 * nat/linux-osdata.h: Likewise.
6179 * nat/linux-procfs.c: Likewise.
6180 * nat/linux-procfs.h: Likewise.
6181 * nat/linux-ptrace.c: Likewise.
6182 * nat/linux-ptrace.h: Likewise.
6183 * nat/mips-linux-watch.c: Likewise.
6184 * nat/mips-linux-watch.h: Likewise.
6185 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6186 (object file files): Reordered.
6187 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6188 of glibc_thread_db.h.
6190 2014-06-20 Gary Benson <gbenson@redhat.com>
6192 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6193 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6194 (i386_dr_low): Likewise.
6195 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6196 (i386_dr_low_set_addr): Likewise.
6197 (i386_dr_low_get_addr): Likewise.
6198 (i386_dr_low_can_set_control): Likewise.
6199 (i386_dr_low_set_control): Likewise.
6200 (i386_dr_low_get_control): Likewise.
6201 (i386_dr_low_get_status): Likewise.
6202 (i386_get_debug_register_length): Likewise.
6203 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6204 (i386_dr_low): Likewise.
6205 * nat/i386-dregs.c (i386-low.h): Remove include.
6206 (i386-nat.h): Likewise.
6207 (nat/i386-dregs.h): New include.
6208 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6209 (i386_dr_low_set_addr): Likewise.
6210 (i386_dr_low_get_addr): Likewise.
6211 (i386_dr_low_can_set_control): Likewise.
6212 (i386_dr_low_set_control): Likewise.
6213 (i386_dr_low_get_control): Likewise.
6214 (i386_dr_low_get_status): Likewise.
6215 (i386_get_debug_register_length): Likewise.
6216 (debug_hw_points): Likewise.
6218 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6220 * Makefile.in (SFILES): Add d-exp.y.
6221 (YYFILES): Add d-exp.c.
6222 (YYOBJ): Add d-exp.o.
6223 (local-maintainer-clean): Delete d-exp.c.
6224 * d-exp.y: New file.
6225 * d-lang.h (d_parse): New declaration.
6226 (d_error): New declaration.
6227 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6228 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6229 PREC_ORDER operators.
6230 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6232 2014-06-19 Yao Qi <yao@codesourcery.com>
6234 * gdbthread.h (any_running): Remove the declaration.
6235 * thread.c (any_running): Remove.
6237 2014-06-19 Yao Qi <yao@codesourcery.com>
6239 * gdbthread.h (struct thread_info) <state>: Change its type to
6240 'enum thread_state'. Update comments.
6242 2014-06-19 Pedro Alves <palves@redhat.com>
6244 * gdbthread.h (ALL_THREADS): Delete.
6245 (ALL_NON_EXITED_THREADS): New macro.
6246 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6247 instead of ALL_THREADS.
6248 * infrun.c (find_thread_needs_step_over)
6249 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6250 instead of ALL_THREADS.
6251 * record-btrace.c (record_btrace_open)
6252 (record_btrace_stop_recording, record_btrace_close)
6253 (record_btrace_is_replaying, record_btrace_resume)
6254 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6255 * remote.c (append_pending_thread_resumptions): Likewise.
6256 * thread.c (thread_apply_all_command): Likewise.
6258 2014-06-19 Gary Benson <gbenson@redhat.com>
6260 * i386-nat.c (i386_stopped_by_watchpoint):
6261 Use i386_dr_stopped_by_watchpoint.
6262 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6263 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6265 2014-06-19 Gary Benson <gbenson@redhat.com>
6267 * nat/i386-dregs.c: New file.
6268 * Makefile.in (i386-dregs.o): New rule.
6269 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6270 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6271 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6272 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6273 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6274 * config/i386/go32.mh (NATDEPFILES): Likewise.
6275 * config/i386/linux.mh (NATDEPFILES): Likewise.
6276 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6277 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6278 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6279 * i386-nat.h (debug_hw_points): New declaration.
6280 * i386-nat.c (breakpoint.h): Remove include.
6281 (command.h): Likewise.
6282 (target.h): Likewise.
6283 (gdb_assert.h): Likewise.
6284 (debug_hw_points): Made nonstatic.
6285 (debug_printf): Now in i386-dregs.c.
6286 (TARGET_HAS_DR_LEN_8): Likewise.
6287 (DR_CONTROL_SHIFT): Likewise.
6288 (DR_CONTROL_SIZE): Likewise.
6289 (DR_RW_EXECUTE): Likewise.
6290 (DR_RW_WRITE): Likewise.
6291 (DR_RW_READ): Likewise.
6292 (DR_RW_IORW): Likewise.
6293 (DR_LEN_1): Likewise.
6294 (DR_LEN_2): Likewise.
6295 (DR_LEN_4): Likewise.
6296 (DR_LEN_8): Likewise.
6297 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6298 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6299 (DR_ENABLE_SIZE): Likewise.
6300 (DR_LOCAL_SLOWDOWN): Likewise.
6301 (DR_GLOBAL_SLOWDOWN): Likewise.
6302 (DR_CONTROL_RESERVED): Likewise.
6303 (I386_DR_CONTROL_MASK): Likewise.
6304 (I386_DR_VACANT): Likewise.
6305 (I386_DR_LOCAL_ENABLE): Likewise.
6306 (I386_DR_GLOBAL_ENABLE): Likewise.
6307 (I386_DR_DISABLE): Likewise.
6308 (I386_DR_SET_RW_LEN): Likewise.
6309 (I386_DR_GET_RW_LEN): Likewise.
6310 (I386_DR_WATCH_HIT): Likewise.
6311 (i386_wp_op_t): Likewise.
6312 (i386_show_dr): Likewise.
6313 (i386_length_and_rw_bits): Likewise.
6314 (i386_insert_aligned_watchpoint): Likewise.
6315 (i386_remove_aligned_watchpoint): Likewise.
6316 (i386_handle_nonaligned_watchpoint): Likewise.
6317 (i386_update_inferior_debug_regs): Likewise.
6318 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6319 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6320 (i386_region_ok_for_watchpoint):
6321 Use i386_dr_region_ok_for_watchpoint.
6322 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6324 2014-06-19 Gary Benson <gbenson@redhat.com>
6326 * i386-nat.c (i386_insert_hw_breakpoint): Use
6327 i386_insert_watchpoint.
6328 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6330 2014-06-19 Gary Benson <gbenson@redhat.com>
6332 * i386-nat.c (i386_dr_show): Renamed to
6333 i386_show_dr and made static. All uses updated.
6334 (i386_dr_length_and_rw_bits): Renamed to
6335 i386_length_and_rw_bits and made static.
6337 (i386_dr_insert_aligned_watchpoint): Renamed to
6338 i386_insert_aligned_watchpoint and made static.
6340 (i386_dr_remove_aligned_watchpoint): Renamed to
6341 i386_remove_aligned_watchpoint and made static.
6343 (i386_dr_update_inferior_debug_regs): Renamed to
6344 i386_update_inferior_debug_regs and made static.
6346 * nat/i386-dregs.h (i386_dr_show): Removed.
6347 (i386_dr_length_and_rw_bits): Likewise.
6348 (i386_dr_insert_aligned_watchpoint): Likewise.
6349 (i386_dr_remove_aligned_watchpoint): Likewise.
6350 (i386_dr_update_inferior_debug_regs): Likewise.
6352 2014-06-19 Gary Benson <gbenson@redhat.com>
6354 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6355 * configure: Regenerate.
6356 * config.in: Likewise.
6357 * main.c (signal.h): New include.
6358 (setup_alternate_signal_stack): New function.
6359 (captured_main): Call the above.
6360 * cp-support.c (signal.h): New include.
6361 (catch_demangler_crashes): New flag.
6362 (SIGJMP_BUF): New define.
6363 (SIGSETJMP): Likewise.
6364 (SIGLONGJMP): Likewise.
6365 (gdb_demangle_jmp_buf): New static global.
6366 (gdb_demangle_attempt_core_dump): Likewise.
6367 (gdb_demangle_signal_handler): New function.
6368 (gdb_demangle): If catch_demangler_crashes is set, install the
6369 above signal handler before calling bfd_demangle, and restore
6370 the original signal handler afterwards. Display the offending
6371 symbol and call demangler_warning the first time a segmentation
6373 (_initialize_cp_support): New maint set/show command.
6375 2014-06-19 Gary Benson <gbenson@redhat.com>
6377 * utils.h (resource_limit_kind): New enum.
6378 (can_dump_core): New declaration.
6379 (warn_cant_dump_core): Likewise.
6380 (dump_core): Likewise.
6381 * utils.c (dump_core): Made nonstatic. Added new
6382 parameter "limit_kind".
6383 (can_dump_core): Made nonstatic. Moved printing code to...
6384 (warn_cant_dump_core): New function.
6385 (can_dump_core_warn): Likewise.
6386 (internal_vproblem): Replace calls to can_dump_core with
6387 calls to can_dump_core_warn. Supply new argument to each.
6389 2014-06-19 Gary Benson <gbenson@redhat.com>
6391 * utils.h (demangler_vwarning): New declaration.
6392 (demangler_warning): Likewise.
6393 * utils.c (struct internal_problem)
6394 <user_settable_should_quit>: New field.
6395 <user_settable_should_dump_core>: Likewise
6396 (internal_error_problem): Add values for above new fields.
6397 (internal_warning_problem): Likewise.
6398 (demangler_warning_problem): New static global.
6399 (demangler_vwarning): New function.
6400 (demangler_warning): Likewise.
6401 (add_internal_problem_command): Selectively add commands.
6402 (_initialize_utils): New internal problem command.
6403 * maint.c (maintenance_demangler_warning): New function.
6404 (_initialize_maint_cmds): New command.
6406 2014-06-18 Tom Tromey <tromey@redhat.com>
6408 * f-valprint.c (info_common_command_for_block): Update.
6409 * symtab.h (struct general_symbol_info) <common_block>: Now
6412 2014-06-18 Tom Tromey <tromey@redhat.com>
6414 * symtab.h (struct symtab) <blockvector>: Now const.
6415 * ada-lang.c (ada_add_global_exceptions): Update.
6416 * buildsym.c (augment_type_symtab): Update.
6417 * dwarf2read.c (dw2_lookup_symbol): Update.
6418 * jit.c (finalize_symtab): Update.
6419 * jv-lang.c (add_class_symtab_symbol): Update.
6420 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6422 * objfiles.c (objfile_relocate1): Update.
6423 * psymtab.c (lookup_symbol_aux_psymtabs)
6424 (maintenance_check_psymtabs): Update.
6425 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6427 * spu-tdep.c (spu_catch_start): Update.
6428 * symmisc.c (dump_symtab_1): Update.
6429 * symtab.c (lookup_global_symbol_from_objfile)
6430 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6431 (basic_lookup_transparent_type_quick)
6432 (basic_lookup_transparent_type, find_pc_sect_symtab)
6433 (find_pc_sect_line, search_symbols): Update.
6434 * block.c (find_block_in_blockvector): Make "bl" const.
6435 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6437 (blockvector_contains_pc): Make "bv" const.
6438 (block_for_pc_sect): Update.
6439 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6440 (blockvector_contains_pc): Update.
6441 * breakpoint.c (resolve_sal_pc): Update.
6442 * inline-frame.c (block_starting_point_at): Update.
6444 2014-06-18 Tom Tromey <tromey@redhat.com>
6446 * completer.c (complete_line): Make "line_buffer" const.
6447 * completer.h (complete_line): Update.
6449 2014-06-18 Tom Tromey <tromey@redhat.com>
6451 * symtab.c (add_macro_name): Remove unneeded cast.
6453 2014-06-18 Tom Tromey <tromey@redhat.com>
6455 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6456 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6458 2014-06-18 Tom Tromey <tromey@redhat.com>
6460 * probe.c (info_probes_for_ops): Make "arg" const.
6461 * probe.h (info_probes_for_ops): Update.
6463 2014-06-18 Tom Tromey <tromey@redhat.com>
6465 * varobj.c (varobj_create): Update.
6466 * valops.c (value_of_this): Update.
6467 * tracepoint.c (add_local_symbols, scope_info): Update.
6468 * symtab.h (struct general_symbol_info) <block>: Now const.
6469 * symtab.c (skip_prologue_sal)
6470 (default_make_symbol_completion_list_break_on)
6471 (skip_prologue_using_sal): Update.
6472 * stack.h (iterate_over_block_locals)
6473 (iterate_over_block_local_vars): Update.
6474 * stack.c (print_frame_args): Update.
6475 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6477 (get_selected_block): Make return type const.
6478 * python/py-frame.c (frapy_block): Update.
6479 * python/py-block.c (gdbpy_block_for_pc): Update.
6480 * p-exp.y (%union) <bval>: Now const.
6481 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6482 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6483 * m2-exp.y (%union) <bval>: Now const.
6484 * linespec.c (get_current_search_block): Make return type const.
6485 (create_sals_line_offset, find_label_symbols): Update.
6486 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6488 (block_starting_point_at): Make "block" const.
6489 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6490 (check_exception_resume): Update.
6491 * guile/scm-frame.c (gdbscm_frame_block): Update.
6492 * guile/scm-block.c (gdbscm_lookup_block): Update.
6493 * frame.h (get_frame_block): Update.
6494 (get_selected_block): Make return type const.
6495 * frame.c (frame_id_inner): Update.
6496 * f-valprint.c (info_common_command_for_block)
6497 (info_common_command): Update.
6498 * dwarf2loc.c (dwarf2_find_location_expression)
6499 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6500 (locexpr_describe_location_piece): Update.
6501 * c-exp.y (%union) <bval>: Now const.
6502 * breakpoint.c (resolve_sal_pc): Update.
6503 * blockframe.c (get_frame_block):Make return type const.
6504 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6505 (block_innermost_frame): Update.
6506 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6507 (block_for_pc, block_for_pc_sect): Update.
6508 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6510 (block_for_pc_sect, block_for_pc): Make return type const.
6511 * ax-gdb.c (gen_expr): Update.
6512 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6513 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6514 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6515 (ada_read_var_value): Update.
6516 * ada-exp.y (struct name_info) <block>: Now const.
6518 (block_lookup): Constify.
6520 2014-06-18 Gary Benson <gbenson@redhat.com>
6522 * nat/i386-dregs.h: New file.
6523 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6524 * i386-nat.h (i386-dregs.h): New include.
6525 (DR_FIRSTADDR): Now in i386-dregs.h.
6526 (DR_LASTADDR): Likewise.
6527 (DR_NADDR): Likewise.
6528 (DR_STATUS): Likewise.
6529 (DR_CONTROL): Likewise.
6530 (i386_debug_reg_state): Likewise.
6531 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6533 2014-06-18 Don Breazeal <donb@codesourcery.com>
6535 * breakpoint.c (set_longjmp_breakpoint): Call
6536 momentary_breakpoint_from_master with additional argument.
6537 (set_longjmp_breakpoint_for_call_dummy): Call
6538 momentary_breakpoint_from_master with additional argument.
6539 (set_std_terminate_breakpoint): Call
6540 momentary_breakpoint_from_master with additional argument.
6541 (momentary_breakpoint_from_master): Add argument to function
6542 definition and use it to initialize structure member flag.
6543 (clone_momentary_breakpoint): Call
6544 momentary_breakpoint_from_master with additional argument.
6545 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6546 member flags set in momentary_breakpoint_from_master.
6548 2014-06-18 Gary Benson <gbenson@redhat.com>
6550 * i386-nat.c (i386_show_dr): Renamed to
6551 i386_dr_show and made nonstatic. All uses updated.
6552 (i386_length_and_rw_bits): Renamed to
6553 i386_dr_length_and_rw_bits and made nonstatic.
6555 (i386_insert_aligned_watchpoint): Renamed to
6556 i386_dr_insert_aligned_watchpoint and made nonstatic.
6558 (i386_remove_aligned_watchpoint): Renamed to
6559 i386_dr_remove_aligned_watchpoint and made nonstatic.
6561 (i386_update_inferior_debug_regs): Renamed to
6562 i386_dr_update_inferior_debug_regs and made nonstatic.
6565 2014-06-18 Gary Benson <gbenson@redhat.com>
6567 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6568 (i386_dr_low_can_set_control): Likewise.
6569 (i386_dr_low_set_addr): Likewise.
6570 (i386_dr_low_set_control): Likewise.
6571 (i386_dr_low_get_addr): Likewise.
6572 (i386_dr_low_get_status): Likewise.
6573 (i386_dr_low_get_control): Likewise.
6574 (i386_insert_aligned_watchpoint): Use new macros.
6575 (i386_update_inferior_debug_regs): Likewise.
6576 (i386_stopped_data_address): Likewise.
6578 2014-06-18 Gary Benson <gbenson@redhat.com>
6580 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6581 New parameter. All uses updated.
6583 2014-06-18 Gary Benson <gbenson@redhat.com>
6585 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6588 2014-06-18 Gary Benson <gbenson@redhat.com>
6590 * i386-nat.c (debug_printf): New macro.
6591 (i386_get_debug_register_length): Likewise.
6592 (TARGET_HAS_DR_LEN_8): Use above macro.
6593 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6594 and printf_unfiltered. Use phex to format values.
6596 2014-06-18 Gary Benson <gbenson@redhat.com>
6598 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6601 2014-06-18 Gary Benson <gbenson@redhat.com>
6603 * i386-nat.c: Comment changes.
6605 2014-06-18 Gary Benson <gbenson@redhat.com>
6607 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6609 2014-06-18 Gary Benson <gbenson@redhat.com>
6611 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6612 (i386_insert_aligned_watchpoint): Likewise.
6613 (i386_remove_aligned_watchpoint): Likewise.
6614 (i386_handle_nonaligned_watchpoint): Likewise.
6616 2014-06-18 Gary Benson <gbenson@redhat.com>
6618 * i386-nat.c: Whitespace changes.
6620 2014-06-17 Samuel Bronson <naesten@gmail.com>
6622 * MAINTAINERS: Update Roland McGrath's email address.
6623 Thanks to Sergio Durigan Junior for pointing out that he left
6624 Red Hat a while ago, and giving me a current address.
6626 2014-06-17 Tom Tromey <tromey@redhat.com>
6628 * utils.h (savestring): Remove declaration.
6630 2014-06-17 Tom Tromey <tromey@redhat.com>
6632 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6634 2014-06-16 Keith Seitz <keiths@redhat.com>
6637 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6638 to update the varobj if inferior_ptid is null_ptid.
6640 2014-06-16 Tom Tromey <tromey@redhat.com>
6642 * target.h (struct target_ops) <to_info_proc>: Make parameter
6644 (target_info_proc): Update.
6645 * target.c (target_info_proc): Make "args" const.
6646 * procfs.c (procfs_info_proc): Update.
6647 * linux-tdep.c (linux_info_proc): Update.
6648 (linux_core_info_proc_mappings): Make "args" const.
6649 (linux_core_info_proc): Update.
6650 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6651 * gdbarch.c: Rebuild.
6652 * gdbarch.h: Rebuild.
6653 * corelow.c (core_info_proc): Update.
6655 2014-06-16 Tom Tromey <tromey@redhat.com>
6657 * target.h (struct target_ops) <to_disconnect>: Make parameter
6659 (target_disconnect): Update.
6660 * target.c (target_disconnect): Make "args" const.
6661 * target-delegates.c: Rebuild.
6662 * remote.c (remote_disconnect): Update.
6663 * record.h (record_disconnect): Update.
6664 * record.c (record_disconnect): Update.
6665 * inf-child.c (inf_child_disconnect): Update.
6667 2014-06-16 Tom Tromey <tromey@redhat.com>
6669 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6670 * target.c (debug_to_rcmd, default_rcmd): Update.
6671 * target-delegates.c: Rebuild.
6672 * remote.c (remote_rcmd): Update.
6673 * monitor.c (monitor_rcmd): Update.
6675 2014-06-16 Pedro Alves <palves@redhat.com>
6677 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6678 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6679 have OBJF_SHARED set.
6680 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6681 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6682 instead of OBJF_USERLOADED.
6683 * objfiles.h (OBJF_SHARED): Update comment.
6684 (userloaded_objfile_contains_address_p): Rename to ...
6685 (shared_objfile_contains_address_p): ... this, and update
6687 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6689 (remove_symbol_file_command): Skip objfiles that don't have
6692 2014-06-16 Tom Tromey <tromey@redhat.com>
6694 * minsyms.h (prim_record_minimal_symbol)
6695 (prim_record_minimal_symbol_and_info): Update comments.
6697 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6699 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6700 or --without-guile, according to how GDB was built.
6702 2014-06-13 Tom Tromey <tromey@redhat.com>
6704 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6706 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6708 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6710 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6711 help_list.Pass all_commands, not -1, to help_list.
6712 * cli/cli-dump.c (dump_command, append_command)
6713 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6714 (binary_dump_command, binary_append_command): Pass all_commands,
6715 not -1, to help_list.
6716 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6718 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6720 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6722 * top.c (set_history): Pass all_commands, not -1, to help_list.
6723 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6724 all_commands, not -1, to help_list.
6725 * symfile.c (overlay_command): Pass all_commands, not -1, to
6727 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6729 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6731 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6733 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6734 not -1, to help_list.
6735 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6736 not -1, to help_list.
6737 * maint.c (maintenance_command, maintenance_info_command)
6738 (maintenance_print_command, maintenance_set_cmd): Pass
6739 all_commands, not -1, to help_list.
6740 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6742 * language.c (set_check): Pass all_commands, not -1, to help_list.
6743 * infcmd.c (unset_command): Pass all_commands, not -1, to
6745 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6747 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6749 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6751 * breakpoint.c (save_command): Pass all_commands, not -1, to
6753 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6754 all_commands, not -1, to help_list.
6756 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6758 * regcache.c (struct register_to_invalidate): New structure.
6759 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6761 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6763 2014-06-12 Yao Qi <yao@codesourcery.com>
6765 * varobj.c (varobj_get_num_children): Call
6766 varobj_is_dynamic_p.
6767 (varobj_list_children): Likewise.
6768 (varobj_update): Likewise. Update comments.
6770 2014-06-12 Yao Qi <yao@codesourcery.com>
6772 * varobj.c (varobj_pretty_printed_p): Rename to ...
6773 (varobj_is_dynamic_p): ... this. New function.
6774 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6775 (varobj_is_dynamic_p): Declare.
6776 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6777 (mi_print_value_p, varobj_update_one): Likewise.
6779 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6780 Yao Qi <yao@codesourcery.com>
6782 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6783 (varobj_get_iterator): Wrap up code for pretty-printer by
6784 "#if HAVE_PYTHON" and "#endif".
6785 (update_dynamic_varobj_children): Likewise.
6787 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6788 Yao Qi <yao@codesourcery.com>
6790 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6791 gdb_python_initialized is false. Move some code from varobj.c.
6792 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6793 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6794 (struct varobj_item): Moved to varobj-iter.h".
6795 (varobj_clear_saved_item): New function.
6796 (update_dynamic_varobj_children): Move python-related code to
6798 (free_variable): Call varobj_clear_saved_item and
6801 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6802 Yao Qi <yao@codesourcery.com>
6804 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6805 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6806 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6807 (py-varobj.o): New rule.
6808 * python/py-varobj.c: New file.
6809 * python/python-internal.h (py_varobj_get_iterator): Declare.
6810 * varobj-iter.h: New file.
6811 * varobj.c: Include "varobj-iter.h"
6812 (struct varobj) <child_iter>: Change its type from "PyObject *"
6813 to "struct varobj_iter *".
6814 <saved_item>: Likewise.
6815 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6816 [HAVE_PYTHON] (varobj_get_iterator): New function.
6817 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6818 python-specific code to python/py-varobj.c.
6819 (install_visualizer): Call varobj_iter_delete instead of
6821 * varobj.h (varobj_ensure_python_env): Declare.
6823 2014-06-12 Yao Qi <yao@codesourcery.com>
6825 * varobj.c (struct varobj_item): New structure.
6826 (create_child_with_value): Update declaration.
6827 (varobj_add_child): Replace arguments 'name' and 'value' with
6828 'item'. All callers updated.
6829 (install_dynamic_child): Likewise.
6830 (update_dynamic_varobj_children): Likewise.
6831 (varobj_add_child): Likewise.
6832 (create_child_with_value): Likewise.
6834 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6836 * NEWS: Create a new section for the next release branch.
6837 Rename the section of the current branch, now that it has
6840 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6842 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6843 * version.in: Bump version to 7.8.50.DATE-cvs.
6845 2014-06-11 Pedro Alves <palves@redhat.com>
6848 * ser-mingw.c (net_windows_socket_check_pending): New function.
6849 (net_windows_select_thread): Ignore spurious wakeups. Use
6850 net_windows_socket_check_pending.
6851 (net_windows_wait_handle): Check for pending events with
6852 ioctlsocket, through net_windows_socket_check_pending, instead of
6853 checking the socket's event.
6855 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6857 * python/python-internal.h (gdb_PyObject_GetAttrString)
6858 (gdb_PyObject_HasAttrString): New inline function definitions.
6859 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6860 char * of the second argument to PyObject_GetAttrString.
6862 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6864 * serial.c (serial_write): Fix index of character to be printed
6865 in call to serial_logchar when serial debug traces are enabled.
6867 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6869 * gdbtypes (resolve_dynamic_range): Add function description.
6871 2014-06-09 Pedro Alves <palves@redhat.com>
6873 * linux-nat.c (linux_child_follow_fork): Initialize status with
6874 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6875 inner block. Only pass the signal to PTRACE_DETACH if in pass
6878 2014-06-09 Gary Benson <gbenson@redhat.com>
6880 * common/signals.c (gdb_signal_from_host): Reorder to separate
6881 the always-available ANSI-standard signals from the signals that
6883 (do_gdb_signal_to_host): Likewise.
6884 * proc-events.c (signal_table): Likewise.
6886 2014-06-08 Hui Zhu <hui@codesourcery.com>
6888 * common/linux-ptrace.c (linux_disable_event_reporting): New
6890 * common/linux-ptrace.h (linux_disable_event_reporting): New
6892 * linux-nat.c (linux_child_follow_fork): Do a single step before
6895 2014-06-07 Keith Seitz <keiths@redhat.com>
6899 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6900 from symbol_matches_domain in symtab.c. All local callers
6901 of symbol_matches_domain updated.
6902 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6903 search STRUCT_DOMAIN.
6904 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6905 independently. standard_lookup will do that automatically.
6906 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6907 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6908 (cp_lookup_symbol_in_namespace): Likewise.
6909 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6910 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6911 may return a STRUCT_DOMAIN match.
6912 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6913 * cp-support.c: Include language.h.
6914 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6916 * psymtab.c (match_partial_symbol): Compare the requested
6917 domain with the symbol's domain directly.
6918 (lookup_partial_symbol): Likewise.
6919 * symtab.c (lookup_symbol_in_language): Explain when/why
6920 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6921 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6922 appropriate languages.
6923 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6924 and moved to ada-lang.c
6925 (lookup_block_symbol): Explain that this function only returns
6926 symbol matching the requested DOMAIN.
6927 Compare the requested domain with the symbol's domain directly.
6928 (iterate_over_symbols): Compare the requested domain with the
6929 symbol's domain directly.
6930 * symtab.h (symbol_matches_domain): Remove.
6932 2014-06-06 Doug Evans <xdje42@gmail.com>
6934 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6935 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6936 (gdbscm_guile_version_is_at_least): Declare.
6937 (gdbscm_scm_string_to_int): Declare.
6938 * guile/guile.c (gdbscm_guile_major_version): New global.
6939 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6940 (guile_datadir): New static global.
6941 (gdbscm_guile_data_directory): New function.
6942 (initialize_scheme_side): Update.
6943 (misc_guile_functions): Add guile-data-directory.
6944 (initialize_gdb_module): Fetch guile version number.
6945 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6946 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6947 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6948 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6950 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6951 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6952 * guile/scm-value.c (gdbscm_value_to_string): Only call
6953 scm_port_conversion_strategy if Guile version >= 2.0.6.
6955 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6957 * main.c (print_gdb_help): Add -q and --silent.
6959 2014-06-06 Gary Benson <gbenson@redhat.com>
6961 * common/signals.c: Remove preprocessor conditionals for
6962 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6963 SIGSEGV and SIGTERM.
6964 * proc-events.c: Likewise.
6966 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6968 * symfile.c (symfile_free_objfile): Remove restriction to
6970 * symfile-mem.c (symbol_file_add_from_memory): Call
6971 add_target_sections_of_objfile.
6973 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6975 * guile/scm-value.c (gdbscm_history_append_x): Use
6976 'vlscm_get_value_smob_arg_unsafe' instead of
6977 'vlscm_scm_to_value'.
6979 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6982 * utils.c (printchar): Don't escape at all if quoter is NUL.
6983 Update function documentation to clarify effect of parameter
6985 * remote.c (escape_buffer): Pass '\\' as the quoter to
6986 fputstrn_unfiltered.
6987 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6988 generate the output.
6989 (mi_solib_unloaded): Same.
6991 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6993 * development.sh: Delete.
6994 * Makefile.in (config.status): Adjust dependency on development.sh.
6995 * configure.ac: Adjust development.sh source call.
6996 * configure: Regenerate.
6998 2014-06-04 Doug Evans <xdje42@gmail.com>
7000 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7001 is_scheme_bkpt, spec.
7002 (bpscm_make_breakpoint_smob): Initialize new members.
7003 (gdbscm_create_breakpoint_x): Split into two ...
7004 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7005 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7006 (scheme_function breakpoint_functions): Update.
7007 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7008 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7009 register-breakpoint!.
7011 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7014 * mem-break.c (z_type_supported): Return zero if
7015 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7017 2014-06-04 Tom Tromey <tromey@redhat.com>
7019 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7020 value_from_contents_and_address_unresolved.
7021 (ada_template_to_fixed_record_type_1): Likewise.
7022 (ada_which_variant_applies): Likewise.
7023 * value.h (value_from_contents_and_address_unresolved): Declare.
7024 * value.c (value_from_contents_and_address_unresolved): New
7026 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7027 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7028 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7030 2014-06-04 Tom Tromey <tromey@redhat.com>
7032 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7034 2014-06-04 Tom Tromey <tromey@redhat.com>
7036 * procfs.c (procfs_attach): Make "args" const.
7037 * windows-nat.c (windows_attach): Make "args" const.
7038 * nto-procfs.c (procfs_attach): Make "args" const.
7039 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7040 * go32-nat.c (go32_attach): Make "args" const.
7041 * gnu-nat.c (gnu_attach): Make "args" const.
7042 * darwin-nat.c (darwin_attach): Make "args" const.
7043 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7044 * linux-nat.c (linux_nat_attach): Make "args" const.
7045 * remote.c (extended_remote_attach_1, extended_remote_attach):
7047 * target.h (struct target_ops) <to_attach>: Make "args" const.
7048 (find_default_attach): Likewise.
7049 * utils.c (parse_pid_to_attach): Make "args" const.
7050 * utils.h (parse_pid_to_attach): Update.
7052 2014-06-04 Tom Tromey <tromey@redhat.com>
7054 * target-delegates.c: Rebuild.
7055 * target.c (default_thread_address_space): New function.
7056 (target_thread_address_space): Simplify.
7057 * target.h (struct target_ops) <to_thread_address_space>: Add
7058 TARGET_DEFAULT_FUNC.
7060 2014-06-04 Doug Evans <xdje42@gmail.com>
7062 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7064 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7066 * record-btrace.c: Include event-loop.h and inf-loop.h.
7067 (record_btrace_resume_exec_dir)
7068 (record_btrace_async_inferior_event_handler)
7069 (record_btrace_handle_async_inferior_event): New.
7070 (record_btrace_open): Create async event handler.
7071 (record_btrace_close): Delete async event handler.
7072 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7073 Mark async event handler.
7074 (record_btrace_execution_direction): New.
7075 (init_record_btrace_ops): Initialize to_execution_direction.
7077 2014-06-03 Doug Evans <xdje42@gmail.com>
7079 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7080 (gdbscm_make_parameter): Ditto.
7082 2014-06-03 Doug Evans <dje@google.com>
7084 * exec.c (exec_close_1): Call clear_section_table instead of
7085 resize_section_table.
7086 (clear_section_table): New function.
7087 (resize_section_table): Make static. Rename arg num_added to
7089 * exec.h (clear_section_table): Declare.
7090 (resize_section_table): Delete.
7091 * progspace.c (release_program_space): Call clear_section_table
7092 instead of resize_section_table.
7094 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7096 * NEWS (Python Scripting): Add entry about the new xmethods
7099 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7101 * python/py-xmethods.c: New file.
7102 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7103 (objfpy_dealloc): XDECREF on the new xmethods field.
7104 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7106 (objfpy_get_xmethods): New function.
7107 (objfile_getset): New entry 'xmethods'.
7108 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7109 (pspy_dealloc): XDECREF on the new xmethods field.
7110 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7112 (pspy_get_xmethods): New function.
7113 (pspace_getset): New entry 'xmethods'.
7114 * python/python-internal.h: Add declarations for new functions.
7115 * python/python.c (_initialize_python): Invoke
7116 gdbpy_initialize_xmethods.
7117 * python/lib/gdb/__init__.py (xmethods): New
7119 * python/lib/gdb/xmethod.py: New file.
7120 * python/lib/gdb/command/xmethods.py: New file.
7122 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7124 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7125 best match method returned by find_overload_match is an xmethod.
7126 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7127 the best matching operator returned by find_overload_match is an
7129 * valops.c: #include "extension.h".
7130 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7131 Return void. The list of matching source methods is returned in
7132 "fn_list" and a vector of matching debug method workers is
7133 returned in "xm_worker_vec". Update all callers.
7134 (value_find_oload_method_list): Likewise.
7135 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7136 non-NULL, then the index of the best matching method in this
7137 vector is returned. Update all callers.
7138 (find_overload_match): Include xmethods while performing overload
7141 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7143 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7144 * extension-priv.h (struct extension_language_ops): Add the
7146 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7147 get_matching_xmethod_workers, get_xmethod_argtypes,
7148 invoke_xmethod, free_xmethod_worker,
7149 free_xmethod_worker_vec): New functions.
7150 * extension.h: #include "common/vec.h".
7151 New function declarations.
7152 (struct xmethod_worker): New struct.
7153 (VEC (xmethod_worker_ptr)): New vector type.
7154 (xmethod_worker_ptr): New typedef.
7155 (xmethod_worker_vec): Likewise.
7156 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7158 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7159 (struct builtin_type): New field "xmethod".
7160 * valarith.c (value_ptradd): Assert that the value argument is not
7162 * valops.c (value_must_coerce_to_target): Return 0 for
7163 lval_xcallable values.
7164 * value.c (struct value): New field XM_WORKER in the field
7166 (value_address, value_raw_address): Return 0 for lval_xcallable
7168 (set_value_address): Assert that the value is not an
7170 (value_free): Free the associated xmethod worker when freeing
7171 lval_xcallable values.
7172 (set_value_component_location): Assert that the WHOLE value is not
7174 (value_of_xmethod, call_xmethod): New functions.
7175 * value.h: Declare "struct xmethod_worker".
7176 Declare new functions value_of_xmethod, call_xmethod.
7178 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7179 Pedro Alves <palves@redhat.com>
7181 PR breakpoints/17000
7182 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7183 New function, extracted from software_breakpoint_inserted_here_p.
7184 (software_breakpoint_inserted_here_p): Replace factored out code
7185 by call to find_non_raw_software_breakpoint_inserted_here.
7186 (bp_target_info_copy_insertion_state): New function.
7187 (bkpt_insert_location): Handle the case of a single-step
7188 breakpoint already inserted at the same address.
7189 (bkpt_remove_location): Handle the case of a single-step
7190 breakpoint still inserted at the same address.
7191 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7192 breakpoint already inserted at the same address.
7193 (deprecated_remove_raw_breakpoint): Handle the case of a
7194 non-raw breakpoint still inserted at the same address.
7195 (find_single_step_breakpoint): New function, extracted from
7196 single_step_breakpoint_inserted_here_p.
7197 (find_single_step_breakpoint): New function,
7198 factored out from single_step_breakpoint_inserted_here_p.
7199 (single_step_breakpoint_inserted_here_p): Reimplement.
7201 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7203 Pushed by Joel Brobecker <brobecker@adacore.com>
7204 * source.c (show_substitute_path_command): Fix display of matching
7207 2014-06-03 Gary Benson <gbenson@redhat.com>
7209 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7211 2014-06-02 Doug Evans <xdje42@gmail.com>
7213 Add parameter support for Guile.
7214 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7215 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7216 (scm-param.o): New rule.
7217 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7218 (gdbscm_misc_error): Declare.
7219 (gdbscm_canonicalize_command_name): Declare.
7220 (gdbscm_scm_to_host_string): Declare.
7221 (gdbscm_scm_from_host_string): Declare.
7222 (gdbscm_initialize_parameters): Declare.
7223 * guile/guile.c (initialize_gdb_module): Call
7224 gdbscm_initialize_parameters.
7225 * guile/lib/gdb.scm: Export parameter symbols.
7226 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7227 cmdscm_canonicalize_name and made public. All callers updated.
7228 * guile/scm-exception.c (gdbscm_misc_error): New function.
7229 * guile/scm-param.c: New file.
7230 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7231 (gdbscm_scm_to_host_string): New function.
7232 (gdbscm_scm_from_host_string): New function.
7233 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7235 2014-06-02 Doug Evans <xdje42@gmail.com>
7237 Add command support for Guile.
7238 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7239 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7240 (scm-cmd.o): New rule.
7241 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7242 (gdbscm_user_error_p): Declare.
7243 (gdbscm_parse_command_name): Declare.
7244 (gdbscm_valid_command_class_p): Declare.
7245 (gdbscm_initialize_commands): Declare.
7246 * guile/guile.c (initialize_gdb_module): Call
7247 gdbscm_initialize_commands.
7248 * guile/lib/gdb.scm: Export command symbols.
7249 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7250 (throw-user-error): New function.
7251 * guile/scm-cmd.c: New file.
7252 * guile/scm-exception.c (user_error_symbol): New static global.
7253 (gdbscm_user_error_p): New function.
7254 (gdbscm_initialize_exceptions): Set user_error_symbol.
7255 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7257 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7259 * top.c (command_loop): Handle comments here...
7260 (command_line_input): ... not here.
7262 2014-06-02 Doug Evans <xdje42@gmail.com>
7264 Add progspace support for Guile.
7265 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7266 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7267 (scm-progspace.o): New rule.
7268 * guile/guile-internal.h (pspace_smob): New typedef.
7269 (psscm_pspace_smob_pretty_printers): Declare.
7270 (psscm_pspace_smob_from_pspace): Declare.
7271 (psscm_scm_from_pspace): Declare.
7272 * guile/guile.c (initialize_gdb_module): Call
7273 gdbscm_initialize_pspaces.
7274 * guile/lib/gdb.scm: Export progspace symbols.
7275 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7277 (append-pretty-printer!): Ditto.
7278 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7280 * guile/scm-progspace.c: New file.
7282 2014-06-03 Alan Modra <amodra@gmail.com>
7284 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7285 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7287 2014-06-02 Doug Evans <dje@google.com>
7289 Add support for skeletonless type units.
7290 * dwarf2read.c (struct dwarf2_per_objfile): New member
7291 n_allocated_type_units.
7292 (struct dwarf2_per_objfile) <tu_stats>: New member
7293 nr_all_type_units_reallocs.
7294 (create_signatured_type_table_from_index): Initialize
7295 n_allocated_type_units
7296 (create_all_type_units): Ditto.
7297 (add_type_unit): Move up in file. New arg slot.
7298 All callers updated. Increase space for all_type_units more
7300 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7301 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7302 (lookup_dwp_signatured_type): Ditto.
7303 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7304 All callers updated.
7305 (build_type_psymtabs_1): Leave type_unit_groups as
7306 NULL if no TUs present.
7307 (print_tu_stats): New function.
7308 (process_skeletonless_type_unit): New function.
7309 (process_dwo_file_for_skeletonless_type_units): New
7311 (process_skeletonless_type_units): New function.
7312 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7313 Call print tu_stats if debugging enabled.
7315 2014-06-02 Pedro Alves <palves@redhat.com>
7317 * breakpoint.c (build_target_command_list): Don't build a command
7318 list if we have any duplicate location that isn't a dprintf.
7320 2014-06-02 Pedro Alves <palves@redhat.com>
7322 * breakpoint.c (dprintf_breakpoint_hit): New function.
7323 (initialize_breakpoint_ops): Install it as dprintf's
7324 breakpoint_hit method.
7326 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7328 * source.c (substitute_path_rule_matches): Simplify using
7329 filename_ncmp instead of FILENAME_CMP.
7331 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7333 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7335 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7337 * configure.ac: When Guile is available, check for the
7338 availability of 'scm_new_smob'.
7339 * configure, config.h.in: Regenerate.
7340 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7343 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7345 * frame.c (struct frame_info): Add stop_string field.
7346 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7347 (get_prev_frame_always): Old content moved into
7348 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7349 TRY_CATCH, handle MEMORY_ERROR exceptions.
7350 (frame_stop_reason_string): New function definition.
7351 * frame.h (unwind_stop_reason_to_string): Extend comment to
7352 mention frame_stop_reason_string.
7353 (frame_stop_reason_string): New function declaration.
7354 * stack.c (frame_info): Switch to frame_stop_reason_string.
7355 (backtrace_command_1): Switch to frame_stop_reason_string.
7356 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7357 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7358 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7360 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7362 * frame.c (frame_stop_reason_string): Rename to ...
7363 (unwind_stop_reason_to_string): this.
7364 * frame.h (frame_stop_reason_string): Rename to ...
7365 (unwind_stop_reason_to_string): this.
7366 * stack.c (frame_info): Update call to frame_stop_reason_string.
7367 (backtrace_command_1): Likewise.
7368 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7369 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7371 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7373 * frame.c (remove_prev_frame): New function.
7374 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7377 2014-05-29 Pedro Alves <palves@redhat.com>
7379 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7380 and make it const. When a single-step decays to a continue,
7381 clear 'step', not 'hw_step'. Pass whether the caller wanted
7382 to step to user_visible_resume_ptid, not what we ask the
7385 2014-05-29 Pedro Alves <palves@redhat.com>
7387 * infrun.c (process_event_stop_test, handle_step_into_function)
7388 (handle_step_into_function_backward): Adjust.
7389 Don't set the even thread's stop_step and call stop_waiting before
7390 calling end_stepping_range. Instead do that ...
7391 (end_stepping_range): ... here. Take an ecs pointer parameter.
7393 2014-05-29 Pedro Alves <palves@redhat.com>
7395 * infrun.c (stop_stepping): Rename to ...
7396 (stop_waiting): ... this.
7397 (proceed): Update comment.
7398 (process_event_stop_test, handle_inferior_event)
7399 (handle_signal_stop, handle_step_into_function)
7400 (handle_step_into_function_backward): Update.
7402 2014-05-29 Pedro Alves <palves@redhat.com>
7404 * infcall.c (run_inferior_call): Don't check whether the current
7405 thread is running after the proceed call.
7407 2014-05-29 Pedro Alves <palves@redhat.com>
7408 Tom Tromey <tromey@redhat.com>
7410 * NEWS: Mention "maint set target-async", "set mi-async", and that
7411 background execution commands are now always available.
7412 * target.h (target_async_permitted): Update comment.
7413 * target.c (target_async_permitted, target_async_permitted_1):
7415 (set_target_async_command): Rename to ...
7416 (maint_set_target_async_command): ... this.
7417 (show_target_async_command): Rename to ...
7418 (maint_show_target_async_command): ... this.
7419 (_initialize_target): Adjust.
7420 * infcmd.c (prepare_execution_command): Make extern.
7421 * inferior.h (prepare_execution_command): Declare.
7422 * infrun.c (set_observer_mode): Leave target async alone.
7423 * mi/mi-interp.c (mi_interpreter_init): Install
7424 mi_on_sync_execution_done as sync_execution_done observer.
7425 (mi_on_sync_execution_done): New function.
7426 (mi_execute_command_input_handler): Don't print the prompt if we
7427 just started a synchronous command with an async target.
7428 (mi_on_resume): Check sync_execution before printing prompt.
7429 * mi/mi-main.h (mi_async_p): Declare.
7430 * mi/mi-main.c: Include gdbcmd.h.
7431 (mi_async_p): New function.
7432 (mi_async, mi_async_1): New globals.
7433 (set_mi_async_command, show_mi_async_command, mi_async): New
7435 (exec_continue): Call prepare_execution_command.
7436 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7437 (mi_execute_async_cli_command): Use mi_async_p.
7438 (_initialize_mi_main): Install "set mi-async". Make
7439 "target-async" a deprecated alias.
7441 2014-05-29 Pedro Alves <palves@redhat.com>
7443 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7444 (_initialize_cli_interp): Adjust.
7445 * event-loop.c: Include "observer.h".
7446 (start_event_loop): Notify 'command_error' observers instead of
7447 calling display_gdb_prompt. Remove FIXME comment.
7448 * event-top.c (display_gdb_prompt): Remove call into the
7450 * inf-loop.c: Include "observer.h".
7451 (inferior_event_handler): Notify 'command_error' observers instead
7452 of calling display_gdb_prompt.
7453 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7454 observers instead of calling display_gdb_prompt.
7455 * interps.c (interp_set): Don't call display_gdb_prompt.
7456 (current_interp_display_prompt_p): Delete.
7457 * interps.h (interp_prompt_p): Delete declaration.
7458 (interp_prompt_p_ftype): Delete.
7459 (struct interp_procs) <prompt_proc_p>: Delete field.
7460 (current_interp_display_prompt_p): Delete declaration.
7461 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7462 (_initialize_mi_interp): Adjust.
7463 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7464 'command_error' observers.
7465 (tui_on_sync_execution_done, tui_on_command_error): New
7467 (tui_display_prompt_p): Delete.
7468 (_initialize_tui_interp): Adjust.
7470 2014-05-29 Pedro Alves <palves@redhat.com>
7473 * cli/cli-interp.c: Include infrun.h and observer.h.
7474 (cli_uiout, cli_interp): New globals.
7475 (cli_on_signal_received, cli_on_end_stepping_range)
7476 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7478 (cli_interpreter_init): Install them as 'end_stepping_range',
7479 'signal_received' 'signal_exited', 'exited' and 'no_history'
7481 (_initialize_cli_interp): Remove cli_interp local.
7482 * infrun.c (handle_inferior_event): Call the several stop reason
7483 observers instead of printing the stop reason directly.
7484 (end_stepping_range): New function.
7485 (print_end_stepping_range_reason, print_signal_exited_reason)
7486 (print_exited_reason, print_signal_received_reason)
7487 (print_no_history_reason): Make static, and add an uiout
7488 parameter. Print to that instead of to CURRENT_UIOUT.
7489 * infrun.h (print_end_stepping_range_reason)
7490 (print_signal_exited_reason, print_exited_reason)
7491 (print_signal_received_reason print_no_history_reason): New
7493 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7495 <cli_uiout>: New field.
7496 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7497 uiout for CLI output. Install 'signal_received',
7498 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7500 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7501 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7502 (mi_on_no_history): New functions.
7503 (ui_out_free_cleanup): Delete function.
7504 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7505 instead use the one already stored in the MI interpreter data.
7506 (mi_ui_out): Adjust.
7507 * tui/tui-interp.c: Include infrun.h and observer.h.
7508 (tui_interp): New global.
7509 (tui_on_signal_received, tui_on_end_stepping_range)
7510 (tui_on_signal_exited, tui_on_exited)
7511 (tui_on_no_history): New functions.
7512 (tui_init): Install them as 'end_stepping_range',
7513 'signal_received' 'signal_exited', 'exited' and 'no_history'
7515 (_initialize_tui_interp): Delete tui_interp local.
7517 2014-05-29 Pedro Alves <palves@redhat.com>
7520 * linux-nat.c (linux_nat_resume_callback): Rename the second
7521 parameter to 'except'. Skip LP if it points to EXCEPT.
7522 (linux_nat_resume): Don't mark the event lwp as not stopped
7523 before resuming sibling lwps. Instead ask
7524 linux_nat_resume_callback to skip the event lwp. Mark it as not
7525 stopped after actually resuming it.
7526 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7528 (wait_lwp): Mark the lwp as stopped here.
7529 (stop_wait_callback): Mark the lwp as not stopped right after
7530 resuming it. Don't mark lwps as stopped here.
7531 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7532 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7534 2014-05-29 Pedro Alves <palves@redhat.com>
7537 * infrun.c (resume): Determine how much to resume depending on
7538 whether the caller wanted a step, not whether we can hardware step
7539 the target. Mark all threads that we intend to run as running,
7540 unless we're calling an inferior function.
7541 (normal_stop): If the thread is running an infcall, don't finish
7543 * target.c (target_resume): Don't mark threads as running here.
7545 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7547 * serial.c (_initialize_serial): Remove support for
7548 the "set remotebaud" and "show remotebaud" commands.
7549 * NEWS: Add entry documenting the removal of that command.
7551 2014-05-28 Yao Qi <yao@codesourcery.com>
7553 * charset.c: Fix typo in comments.
7555 2014-05-27 Gary Benson <gbenson@redhat.com>
7557 * utils.c (internal_vproblem): Prompt for a bug report.
7559 2014-05-26 Andy Wingo <wingo@igalia.com>
7561 * guile/scm-arch.c (arscm_mark_arch_smob):
7562 * guile/scm-block.c (bkscm_mark_block_smob)
7563 (bkscm_mark_block_syms_progress_smob):
7564 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7565 * guile/scm-exception.c (exscm_mark_exception_smob):
7566 * guile/scm-frame.c (frscm_mark_frame_smob):
7567 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7568 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7569 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7570 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7571 (ppscm_mark_pretty_printer_worker_smob):
7572 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7573 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7574 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7575 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7577 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7580 2014-05-26 Andy Wingo <wingo@igalia.com>
7581 Doug Evans <xdje42@gmail.com>
7583 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7584 empty_base_class. All uses updated.
7585 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7586 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7588 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7589 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7590 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7591 (gdbscm_gsmob_has_property_p, add_property_name)
7592 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7593 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7594 (gdb-object-has-property?, gdb-object-properties): Remove.
7595 (gdb-object-kind): Renamed from gsmob-kind.
7597 2014-05-26 Andy Wingo <wingo@igalia.com>
7599 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7600 * configure: Regenerate.
7602 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7604 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7606 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7608 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7609 (replay_memory_access_read_only, replay_memory_access_read_write)
7610 (replay_memory_access_types, replay_memory_access)
7611 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7612 (cmd_set_record_btrace, cmd_show_record_btrace)
7613 (cmd_show_replay_memory_access): New.
7614 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7615 (record_btrace_remove_breakpoint): Replace
7616 record_btrace_allow_memory_access with replay_memory_access.
7617 (_initialize_record_btrace): Add commands.
7618 * NEWS: Announce it.
7620 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7622 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7624 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7626 * MAINTAINERS (Write After Approval): Move self back from
7629 2014-05-22 Pedro Alves <palves@redhat.com>
7631 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7632 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7633 (disable_randomization, enum exec_direction_kind)
7634 (execution_direction, stop_registers, start_remote)
7635 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7636 (wait_for_inferior, normal_stop, get_last_target_status)
7637 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7638 (insert_step_resume_breakpoint_at_sal)
7639 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7640 (set_step_info, print_stop_event, signal_stop_state)
7641 (signal_print_state, signal_pass_state, signal_stop_update)
7642 (signal_print_update, signal_pass_update)
7643 (update_signals_program_target, clear_exit_convenience_vars)
7644 (displaced_step_dump_bytes, update_observer_mode)
7645 (signal_catch_update, gdb_signal_from_command): Move
7647 * infrun.h: ... to this new file.
7648 * amd64-tdep.c: Include infrun.h.
7649 * annotate.c: Include infrun.h.
7650 * arch-utils.c: Include infrun.h.
7651 * arm-linux-tdep.c: Include infrun.h.
7652 * arm-tdep.c: Include infrun.h.
7653 * break-catch-sig.c: Include infrun.h.
7654 * breakpoint.c: Include infrun.h.
7655 * common/agent.c: Include infrun.h instead of inferior.h.
7656 * corelow.c: Include infrun.h.
7657 * event-top.c: Include infrun.h.
7658 * go32-nat.c: Include infrun.h.
7659 * i386-tdep.c: Include infrun.h.
7660 * inf-loop.c: Include infrun.h.
7661 * infcall.c: Include infrun.h.
7662 * infcmd.c: Include infrun.h.
7663 * infrun.c: Include infrun.h.
7664 * linux-fork.c: Include infrun.h.
7665 * linux-nat.c: Include infrun.h.
7666 * linux-thread-db.c: Include infrun.h.
7667 * monitor.c: Include infrun.h.
7668 * nto-tdep.c: Include infrun.h.
7669 * procfs.c: Include infrun.h.
7670 * record-btrace.c: Include infrun.h.
7671 * record-full.c: Include infrun.h.
7672 * remote-m32r-sdi.c: Include infrun.h.
7673 * remote-mips.c: Include infrun.h.
7674 * remote-notif.c: Include infrun.h.
7675 * remote-sim.c: Include infrun.h.
7676 * remote.c: Include infrun.h.
7677 * reverse.c: Include infrun.h.
7678 * rs6000-tdep.c: Include infrun.h.
7679 * s390-linux-tdep.c: Include infrun.h.
7680 * solib-irix.c: Include infrun.h.
7681 * solib-osf.c: Include infrun.h.
7682 * solib-svr4.c: Include infrun.h.
7683 * target.c: Include infrun.h.
7684 * top.c: Include infrun.h.
7685 * windows-nat.c: Include infrun.h.
7686 * mi/mi-interp.c: Include infrun.h.
7687 * mi/mi-main.c: Include infrun.h.
7688 * python/py-threadevent.c: Include infrun.h.
7690 2014-05-22 Pedro Alves <palves@redhat.com>
7692 * infrun.c (handle_inferior_event): Store the exit code for
7693 --return-child-result here, instead of ...
7694 (print_exited_reason): ... here.
7696 2014-05-21 Pedro Alves <palves@redhat.com>
7699 * gdbthread.h (struct thread_control_state): New field
7701 * infrun.c (follow_fork): Copy the new thread control field to the
7703 (clear_proceed_status_thread): Clear the new thread control field.
7704 (proceed): Set the new thread control field.
7705 * interps.h (command_interp): Declare.
7706 * interps.c (command_interpreter): New global.
7707 (command_interp): New function.
7708 (interp_exec): Set `command_interpreter' while here.
7709 * cli-out.c (cli_uiout_dtor): New function.
7710 (cli_ui_out_impl): Install it.
7711 * mi/mi-interp.c: Include cli-out.h.
7712 (mi_cmd_interpreter_exec): Add comment.
7713 (restore_current_uiout_cleanup): New function.
7714 (ui_out_free_cleanup): New function.
7715 (mi_on_normal_stop): If finishing an execution command started by
7716 a CLI command, or any kind of breakpoint-like event triggered,
7717 print the stop event to the output (CLI) stream.
7718 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7720 2014-05-21 Pedro Alves <palves@redhat.com>
7722 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7723 current source line having changed.
7724 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7725 * infrun.c (normal_stop): Adjust call to
7726 set_current_sal_from_frame.
7727 * source.c (clear_lines_listed_range): New function.
7728 (set_current_source_symtab_and_line, identify_source_line): Clear
7729 the lines listed range.
7730 (line_info): Handle the first "info line" after the current source
7731 line having changed.
7732 * stack.c (print_stack_frame): Remove center handling.
7733 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7736 2014-05-21 Pedro Alves <palves@redhat.com>
7738 * inf-child.c (inf_child_mourn_inferior): New function.
7739 * inf-child.h (inf_child_mourn_inferior): New declaration.
7740 * darwin-nat.c (darwin_mourn_inferior): Use
7741 inf_child_mourn_inferior.
7742 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7743 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7744 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7745 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7746 * windows-nat.c (windows_mourn_inferior): Likewise.
7748 2014-05-21 Doug Evans <xdje42@gmail.com>
7750 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7752 2014-05-21 Doug Evans <xdje42@gmail.com>
7754 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7755 (gdbscm_out_of_range_error): Ditto.
7756 (gdbscm_memory_error): Ditto.
7757 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7758 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7759 (gdbscm_out_of_range_error): Update.
7760 (gdbscm_memory_error): Update.
7761 (gdbscm_scm_to_target_string_unsafe): Delete.
7763 2014-05-21 Pedro Alves <palves@redhat.com>
7765 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7767 (inf_child_open_target): New function.
7768 (inf_child_open): Use inf_child_open_target to push the target
7769 instead of erroring out.
7770 (inf_child_disconnect, inf_child_close)
7771 (inf_child_maybe_unpush_target): New functions.
7772 (inf_child_target): Install inf_child_disconnect and
7773 inf_child_close. Store a pointer to the returned object.
7774 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7776 * target.c (auto_connect_native_target): New global.
7777 (show_default_run_target): New function.
7778 (find_default_run_target): Return NULL if automatically connecting
7779 to the native target is disabled.
7780 (_initialize_target): Install set/show auto-connect-native-target.
7781 * NEWS: Mention "set auto-connect-native-target", and "target
7783 * linux-nat.c (super_close): New global.
7784 (linux_nat_close): Call super_close.
7785 (linux_nat_add_target): Store a pointer to the base class's
7787 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7788 inf_child_maybe_unpush.
7789 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7791 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7792 the inferior. Use inf_child_maybe_unpush_target.
7793 (inf_ttrace_attach): Don't push the target if it is already
7795 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7796 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7797 after mourning the inferior. Use inf_child_maybe_unpush_target.
7798 (darwin_attach_pid): Don't push the target if it is already
7800 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7801 mourning the inferior. Use inf_child_maybe_unpush_target.
7802 (gnu_detach): Use inf_child_maybe_unpush_target.
7803 * go32-nat.c (go32_create_inferior): Don't push the target if it
7805 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7806 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7807 (procfs_open): Rename to ...
7808 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7809 comments. Can target_preopen before changing node. Call
7810 inf_child_open_target to push the target explicitly.
7811 (procfs_attach): Don't push the target if it is already pushed.
7812 (procfs_detach): Use inf_child_maybe_unpush_target.
7813 (procfs_create_inferior): Don't push the target if it is already
7815 (nto_native_ops): New global.
7816 (procfs_open): Reimplement.
7817 (procfs_native_open): New function.
7818 (init_procfs_targets): Install procfs_native_open as to_open of
7819 "target native". Store a pointer to the "native" target in
7821 * procfs.c (procfs_attach): Don't push the target if it is already
7823 (procfs_detach): Use inf_child_maybe_unpush_target.
7824 (procfs_mourn_inferior): Only unpush the target after mourning the
7825 inferior. Use inf_child_maybe_unpush_target.
7826 (procfs_init_inferior): Don't push the target if it is already
7828 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7829 if it is already pushed.
7831 2014-05-21 Pedro Alves <palves@redhat.com>
7833 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7834 and "procfs" targets are now called "native" instead.
7836 2014-05-21 Pedro Alves <palves@redhat.com>
7838 * go32-nat.c (go32_open): Delete.
7839 (go32_target): Don't override the to_open method.
7841 2014-05-21 Pedro Alves <palves@redhat.com>
7843 * nto-procfs.c (procfs_can_run): New function.
7844 (nto_procfs_ops): New global.
7845 (init_procfs_targets): New, based on procfs_target. Install
7846 "target native" in addition to "target procfs".
7847 (_initialize_procfs): Call init_procfs_targets instead of adding
7850 2014-05-21 Pedro Alves <palves@redhat.com>
7852 * windows-nat.c (windows_target): Don't override to_shortname,
7853 to_longname or to_doc.
7855 2014-05-21 Pedro Alves <palves@redhat.com>
7857 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7860 2014-05-21 Pedro Alves <palves@redhat.com>
7862 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7863 to_shortname, to_longname or to_doc.
7865 2014-05-21 Pedro Alves <palves@redhat.com>
7867 * go32-nat.c (go32_target): Don't override to_shortname,
7868 to_longname or to_doc.
7870 2014-05-21 Pedro Alves <palves@redhat.com>
7872 * inf-child.c (inf_child_open): Remove mention of "child".
7873 (inf_child_target): Rename target to "native" instead of "child".
7875 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7877 * Makefile.in (SFILES): Delete "regset.c".
7878 (COMMON_OBS): Delete "regset.o".
7880 * regset.h (regset_alloc): Delete prototype.
7882 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7884 * sparc-linux-tdep.c (sparc32_linux_gregset)
7885 (sparc32_linux_fpregset): New static regset structures.
7886 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7887 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7889 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7890 (sparc64_linux_fpregset): New static regset structures.
7891 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7892 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7893 New static regset structures.
7894 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7895 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7896 New static regset structures.
7897 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7898 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7899 New static regset structures.
7900 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7901 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7902 New static regset structures.
7903 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7905 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7907 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7908 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7909 register maps ("regmaps") from "*regset" to "*regmap". Do this
7910 for all regmap types and variables.
7911 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7912 (sparc32_linux_supply_core_gregset)
7913 (sparc32_linux_collect_core_gregset)
7914 (sparc32_linux_supply_core_fpregset)
7915 (sparc32_linux_collect_core_fpregset): Likewise.
7916 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7917 (sparc_gregmap, sparc_fpregmap): ... these.
7918 (sparc_supply_gregset, sparc_collect_gregset)
7919 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7920 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7921 (_initialize_sparc_nat): Rename regmaps.
7922 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7923 (sparc_gregmap, sparc_fpregmap): ... these.
7924 (sparc_supply_gregset, sparc_collect_gregset)
7925 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7926 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7928 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7929 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7931 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7933 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7934 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7935 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7937 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7938 (sparc32_bsd_fpregset): Rename to...
7939 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7940 (sparc32_bsd_fpregmap): ... these.
7941 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7942 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7943 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7944 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7945 (struct sparc_gregmap, struct sparc_fpregmap)
7946 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7947 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7948 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7949 (sparc32_supply_regset, sparc32_collect_gregset)
7950 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7952 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7953 (sparc64_linux_ptrace_gregmap): ... this.
7954 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7955 (_initialize_sparc64_linux_nat): Rename regmaps.
7956 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7957 (sparc64_linux_core_gregmap): ... this.
7958 (sparc64_linux_supply_core_gregset)
7959 (sparc64_linux_collect_core_gregset)
7960 (sparc64_linux_supply_core_fpregset)
7961 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7962 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7963 (sparc64_sol2_fpregset): Rename to...
7964 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7965 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7966 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7968 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7969 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7970 (sparc64_bsd_fpregset): Rename to...
7971 (struct sparc_gregmap, sparc64_sol2_gregmap)
7972 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7973 (sparc64_bsd_fpregmap): ... these.
7974 (sparc64_supply_gregset, sparc64_collect_gregset)
7975 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7977 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7978 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7979 (sparc64fbsd_gregmap): ... this.
7980 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7981 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7983 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7984 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7985 (sparc64nbsd_collect_fpregset): Likewise.
7986 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7987 (sparc64nbsd_gregmap): ... this.
7988 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7990 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7991 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7992 (sparc64obsd_gregmap): ... this.
7993 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7995 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7996 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7997 (sparc32nbsd_gregmap): ... this.
7998 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8003 * score-tdep.c (score7_linux_gregset): New static regset
8005 (score7_linux_regset_from_core_section): Remove dynamic regset
8007 (score_gdbarch_init): Drop allocation of tdep structure.
8008 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8010 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8012 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8014 (am33_regset_from_core_section): Remove dynamic regset
8017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8019 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8020 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8022 (mips_linux_regset_from_core_section): Remove dynamic regset
8024 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8025 'gregset64', 'fpregset', and 'fpregset64'.
8026 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8027 deleted tdep fields.
8029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8031 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8033 (amd64_regset_from_core_section): Remove dynamic regset
8035 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8037 (amd64obsd_regset_from_core_section): Remove dynamic regset
8039 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8041 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8042 x86-common regset supply function.
8043 * i386-tdep.c (i386_collect_gregset): Make static.
8044 (i386_gregset): New global regset structure.
8045 (i386_fpregset, i386_xstateregset): New static regset structures.
8046 (i386_regset_from_core_section): Remove dynamic regset
8048 (i386_gdbarch_init): Remove initialization of tdep fields
8049 'gregset', 'fpregset', and 'xstateregset'.
8050 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8051 'fpregset', and 'xstateregset'.
8052 (i386_collect_gregset): Remove prototype.
8053 (i386_gregset): New declaration.
8054 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8056 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8061 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8062 (arm_linux_vfpregset): New static regset structures.
8063 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8065 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8066 and 'vfpregset' fields.
8068 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8070 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8071 (aarch64_linux_fpregset): New static regset structures.
8072 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8073 of regset structures.
8074 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8079 * regset.h (struct regset): Remove gdbarch field.
8080 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8081 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8082 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8084 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8085 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8086 (ppc32_linux_vsxregset): Likewise.
8087 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8088 via the regcache instead of the regset.
8089 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8090 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8091 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8092 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8095 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8097 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8098 Constify structures.
8099 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8100 (alphanbsd_aout_gregset): Likewise.
8101 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8102 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8104 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8105 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8107 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8108 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8109 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8110 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8111 * m88k-tdep.c (m88k_gregset): Likewise.
8112 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8113 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8114 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8115 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8116 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8117 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8118 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8119 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8120 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8122 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8123 * sh-tdep.h (sh_corefile_gregset): Likewise.
8124 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8125 * vax-tdep.c (vax_gregset): Likewise.
8127 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8129 Fix TLS access for -static -pthread.
8130 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8131 (try_thread_db_load_1): Initialize it.
8132 (thread_db_get_thread_local_address): Call it if LM is zero.
8133 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8134 * target.h (struct target_ops) (to_get_thread_local_address): Add
8135 load_module_addr comment.
8137 2014-05-21 Pedro Alves <palves@redhat.com>
8139 * dcache.c (dcache_read_memory_partial): If reading the cache line
8140 fails, fallback to reading just the memory the caller wanted.
8142 2014-05-20 Doug Evans <dje@google.com>
8144 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8145 instead of get_current_arch.
8147 2014-05-20 Pedro Alves <palves@redhat.com>
8149 * NEWS: Mention that compare-sections now works with all targets.
8151 * remote.c (PACKET_qCRC): New enum value.
8152 (remote_verify_memory): Don't send qCRC if the target has no
8153 execution. Use packet_support/packet_ok. If the target doesn't
8154 support the qCRC packet, fallback to a deep memory copy.
8155 (compare_sections_command): Say "target image" instead of "remote
8157 (_initialize_remote): Add PACKET_qCRC to the list of config
8158 packets that have no associated command. Extend comment.
8159 * target.c (simple_verify_memory, default_verify_memory): New
8161 * target.h (struct target_ops) <to_verify_memory>: Default to
8162 default_verify_memory.
8163 (simple_verify_memory): New declaration.
8164 * target-delegates.c: Regenerate.
8166 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8168 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8170 2014-05-20 Hui Zhu <hui@codesourcery.com>
8171 Yao Qi <yao@codesourcery.com>
8174 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8175 and change address of sp and pc.
8177 2014-05-19 Tom Tromey <tromey@redhat.com>
8179 * gdbtypes.c (rank_function): Use XNEWVEC.
8180 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8182 2014-05-19 Doug Evans <dje@google.com>
8184 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8185 build_type_unit_groups and moved closer to only caller. Remove
8186 arguments. All references updated. Remove outdated .gdb_index
8188 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8189 build_type_psymtabs_1.
8191 2014-05-19 Doug Evans <dje@google.com>
8193 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8194 n_type_unit_groups, all_type_unit_groups. All uses removed.
8195 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8196 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8197 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8198 (add_type_unit_group_to_table): Delete.
8200 2014-05-19 Doug Evans <dje@google.com>
8202 * eval.c (evaluate_subexp_standard): Add some comments.
8204 2014-05-17 Doug Evans <xdje42@gmail.com>
8206 * progspace.c (remove_program_space): Delete, unused.
8207 * progspace.h (remove_program_space): Ditto.
8209 2014-05-17 Doug Evans <xdje42@gmail.com>
8211 * inferior.c (prune_inferiors): Fix comment.
8212 (remove_inferior_command): Call prune_program_spaces.
8214 2014-05-16 Doug Evans <dje@google.com>
8216 New command line option -D.
8218 * main.c (set_gdb_data_directory): New function.
8219 (captured_main): Recognize -D. Flag error for --data-directory "".
8220 Call set_gdb_data_directory.
8221 (print_gdb_help): Print --data-directory, -D.
8222 * main.h (set_gdb_data_directory): Declare.
8223 * top.c (staged_gdb_datadir): New static global.
8224 (set_gdb_datadir): Call set_gdb_data_directory
8225 (show_gdb_datadir): New function.
8226 (init_main): Update init of data-directory parameter.
8228 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8230 Import the "dirfd" gnulib module.
8231 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8232 * gnulib/aclocal.m4: Update.
8233 * gnulib/config.in: Update.
8234 * gnulib/configure: Update.
8235 * gnulib/import/Makefile.am: Update.
8236 * gnulib/import/Makefile.in: Update.
8237 * gnulib/import/dirfd.c: New.
8238 * gnulib/import/m4/dirfd.m4: New.
8239 * gnulib/import/m4/gnulib-cache.m4: Update.
8240 * gnulib/import/m4/gnulib-comp.m4: Update.
8242 2014-05-16 Pierre Muller <muller@sourceware.org>
8243 Yao Qi <yao@codesourcery.com>
8245 * valprint.c (print_wchar): Move the code on checking whether
8246 W is a printable wide char to the default branch of switch
8247 statement below. Call wchar_printable instead of gdb_iswprint.
8249 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8251 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8252 ldr.w and ldrd instructions.
8254 2014-05-15 Doug Evans <dje@google.com>
8256 * dwarf2read.c (read_structure_type): Delete outdated comments.
8258 2014-05-14 Tom Tromey <tromey@redhat.com>
8260 * macrocmd.c (print_macro_definition): Reindent.
8262 2014-05-13 Doug Evans <xdje42@gmail.com>
8264 * python/py-cmd.c (cmdpy_completer): Add comment.
8265 (completers): Make const.
8267 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8269 * infrun.c (resume): Remove should_resume (unused). Move up
8270 declaration of resume_ptid.
8272 2014-05-13 Tom Tromey <tromey@redhat.com>
8274 * language.h (unop_type_check): Remove.
8275 (binop_type_check): Don't declare.
8277 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8279 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8280 call to regcache_raw_collect.
8282 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8284 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8285 mi_console->quote as the quoting character.
8287 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8289 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8291 2014-04-29 Tom Tromey <tromey@redhat.com>
8293 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8294 "show debug varobj".
8296 2014-05-07 Kyle McMartin <kyle@redhat.com>
8298 Pushed by Joel Brobecker <brobecker@adacore.com>.
8299 * aarch64-tdep.c (aarch64_software_single_step): New function.
8300 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8301 with aarch64_software_single_step.
8303 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8307 2014-05-05 Keith Seitz <keiths@redhat.com>
8309 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8310 variable or history value is successfully parsed.
8312 2014-05-05 Yao Qi <yao@codesourcery.com>
8313 Pedro Alves <palves@redhat.com>
8315 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8316 address of blocks that intersects the requested range. Trim
8317 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8319 * ctf.c (ctf_xfer_partial): Likewise.
8321 2014-05-05 Yao Qi <yao@codesourcery.com>
8323 * printcmd.c (display_command): Remove the check to
8324 target_has_execution.
8326 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8328 * ppcobsd-nat.c: Include "obsd-nat.h".
8329 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8331 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8333 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8335 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8336 and 16-bit signed and unsigned arguments. Update comment.
8337 (stap_parse_probe_arguments): Extend code to handle such
8338 arguments. Use warning instead of complaint to notify about
8339 unrecognized bitness.
8341 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8343 PR breakpoints/16889
8344 * stap-probe.c (stap_parse_probe_arguments): Simplify
8345 check for non-prefixed probes (i.e., probes whose
8346 arguments do not start with "N@"). Always set the
8347 argument type to a sane value.
8349 2014-05-01 David Taylor <dtaylor@emc.com>
8351 * remote.c (compare_sections_command): Add -r option to compare
8352 all loadable read-only sections.
8354 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8356 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8357 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8359 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8360 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8361 Remove unused CORE_ADDR argument. Update all callers.
8363 2014-04-29 Pedro Alves <palves@redhat.com>
8365 * remote.c (struct packet_config) <detect>: Extend comment.
8366 (add_packet_config_cmd): Don't set the config's detect or support
8368 (init_all_packet_configs): Also initialize the config's 'detect'
8370 (reset_all_packet_configs_support): New function.
8371 (remote_open_1): Call reset_all_packet_configs_support instead of
8372 init_all_packet_configs.
8373 (_initialize_remote): Initialize all packet configs. Assert that
8374 all packets have an associated command, except a few known
8377 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8379 * dwarf2read.c (read_subrange_type): Handle dynamic
8380 DW_AT_lower_bound attributes.
8382 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8384 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8385 dynamic bounds before computing its upper bound.
8386 (ada_discrete_type_low_bound): Same as above with the lower bound.
8388 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8390 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8391 range types. Adjust the array handling implementation to
8392 take advantage of this change.
8393 (resolve_dynamic_range): New function, mostly extracted from
8394 resolve_dynamic_bounds.
8395 (resolve_dynamic_array): New function, mostly extracted from
8396 resolve_dynamic_bounds.
8397 (resolve_dynamic_bounds): Delete.
8398 (resolve_dynamic_type): Reimplement. Add handling of
8399 TYPE_CODE_RANGE types.
8401 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8403 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8404 handling of parallel ___XA types.
8406 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8409 unnecessary second call to static_unwrap_type.
8411 2014-04-27 Hui Zhu <hui@codesourcery.com>
8413 * stack.c (print_frame_info): Call do_gdb_disassembly with
8414 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8416 2014-04-26 Doug Evans <xdje42@gmail.com>
8418 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8420 2014-04-25 Pedro Alves <palves@redhat.com>
8423 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8424 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8425 and newline from built string.
8426 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8427 (linux_ptrace_attach_fail_reason): ... this.
8428 * linux-nat.c (linux_nat_attach): Adjust to use
8429 linux_ptrace_attach_fail_reason.
8431 2014-04-25 Pedro Alves <palves@redhat.com>
8433 * remote.c (struct remote_state): Remove multi_process_aware,
8434 non_stop_aware, cond_tracepoints, cond_breakpoints,
8435 breakpoint_commands, fast_tracepoints, static_tracepoints,
8436 install_in_trace, disconnected_tracing,
8437 enable_disable_tracepoints, string_tracing, and
8438 augmented_libraries_svr4_read fields.
8439 (remote_multi_process_p): Move further below in the file.
8440 (struct packet_config): Add comments.
8441 (update_packet_config): Delete function.
8442 (show_packet_config_cmd): Use packet_config_support.
8443 (add_packet_config_cmd): Use NULL as set callback.
8444 (packet_ok): "set remote foo-packet"-style commands no longer
8445 change config->supported -- adjust.
8446 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8447 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8448 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8449 (PACKET_QNonStop, PACKET_multiprocess_feature)
8450 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8451 (PACKET_DisconnectedTracing_feature)
8452 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8453 (set_remote_protocol_packet_cmd): Delete function.
8454 (packet_config_support, packet_support): New functions.
8455 (set_remote_protocol_Z_packet_cmd): Don't call
8456 update_packet_config.
8457 (remote_query_attached, remote_pass_signals)
8458 (remote_program_signals, remote_threads_info)
8459 (remote_threads_extra_info, remote_start_remote): Use
8461 (remote_start_remote): Use packet_config_support and
8463 (init_all_packet_configs): Set all packets to unknown support,
8464 instead of calling update_packet_config.
8465 (remote_check_symbols): Use packet_support.
8466 (remote_supported_packet): Unconditionally set the packet config's
8468 (remote_multi_process_feature, remote_non_stop_feature)
8469 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8470 (remote_breakpoint_commands_feature)
8471 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8472 (remote_install_in_trace_feature)
8473 (remote_disconnected_tracing_feature)
8474 (remote_enable_disable_tracepoint_feature)
8475 (remote_string_tracing_feature)
8476 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8477 (remote_protocol_features): Adjust to use remote_supported_packet
8478 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8479 "ConditionalTracepoints", "ConditionalBreakpoints",
8480 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8481 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8482 "EnableDisableTracepoints", and "tracenz".
8483 (remote_query_supported): Use packet_support.
8484 (remote_open_1): Adjust.
8485 (extended_remote_attach_1): Use packet_support. Switch on the
8486 result of packet_ok instead of checking whether the packet ended
8488 (remote_vcont_resume): Use packet_support.
8489 (remote_resume, remote_stop_ns, fetch_register_using_p)
8490 (remote_prepare_to_store, store_register_using_P)
8491 (check_binary_download, remote_write_bytes): Use packet_support.
8492 (remote_vkill): Use packet_support. Switch on the result of
8493 packet_ok instead of checking whether the packet ended up
8495 (extended_remote_supports_disable_randomization): Use
8497 (extended_remote_run): Switch on the result of packet_ok instead
8498 of checking whether the packet ended up disabled.
8499 (remote_insert_breakpoint, remote_remove_breakpoint)
8500 (remote_insert_watchpoint, remote_remove_watchpoint)
8501 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8503 (remote_search_memory): Use packet_config_support.
8504 (remote_get_thread_local_address, remote_get_tib_address)
8505 (remote_hostio_send_command, remote_can_execute_reverse): Use
8507 (remote_supports_cond_tracepoints)
8508 (remote_supports_cond_breakpoints)
8509 (remote_supports_fast_tracepoints)
8510 (remote_supports_static_tracepoints)
8511 (remote_supports_install_in_trace)
8512 (remote_supports_enable_disable_tracepoint)
8513 (remote_supports_string_tracing)
8514 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8515 the packet config says the feature is enabled or disabled.
8516 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8517 (remote_get_trace_status): Use packet_support.
8518 (remote_set_disconnected_tracing): Adjust to check whether the
8519 feature is enabled with packet_support.
8520 (remote_set_trace_buffer_size, remote_use_agent)
8521 (remote_can_use_agent, remote_supports_btrace): Use
8523 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8524 Use packet_config_support.
8525 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8526 the packet config says the feature is enabled or disabled.
8527 (set_range_stepping): Use packet_support.
8529 2014-04-25 Tom Tromey <tromey@redhat.com>
8531 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8534 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8536 * NEWS: Mention support for C99 variable length arrays.
8538 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8540 * ada-lang.c (standard_exc): Expand introductory comment.
8542 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8543 Walfred Tedeschi <walfred.tedeschi@intel.com>
8545 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8547 (amd64_linux_read_description): Add code to handle AVX512 xstate
8548 mask and return respective tdesc.
8549 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8550 and features/i386/x32-avx512-linux.c.
8551 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8552 (amd64_linux_core_read_description): Add code to handle AVX512
8553 xstate mask and return respective tdesc.
8554 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8555 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8557 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8558 (tdesc_amd64_avx512_linux): New prototype.
8559 (tdesc_x32_avx512_linux): Likewise.
8560 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8561 features/i386/x32-avx512.c.
8562 (amd64_ymm_avx512_names): New register names for pseudo
8564 (amd64_ymmh_avx512_names): New register names for raw registers
8566 (amd64_k_names): New register names for K registers.
8567 (amd64_zmmh_names): New register names for ZMM raw registers.
8568 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8569 (amd64_xmm_avx512_names): New register names for XMM16-31
8571 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8573 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8574 if feature is present.
8575 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8576 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8577 (AMD64_NUM_REGS): Adjust to new number of registers.
8578 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8579 registers supplied via XSTATE by AVX512 registers.
8580 (i386_linux_read_description): Add case for AVX512.
8581 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8582 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8583 (i386_linux_core_read_description): Add case for AVX512.
8584 (i386_linux_init_abi): Install supported register note section
8586 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8588 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8589 registers to be number of zmm7h + 1.
8590 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8591 * i386-tdep.c: Include features/i386/i386-avx512.c.
8592 (i386_zmm_names): Add ZMM pseudo register names array.
8593 (i386_zmmh_names): Add ZMM raw register names array.
8594 (i386_k_names): Add K raw register names array.
8595 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8596 registers. AVX512 has 16 more ZMM registers than there are YMM
8598 (i386_zmmh_regnum_p): Add function to look up register number of
8600 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8601 (i386_k_regnum_p): Likewise for K raw registers.
8602 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8603 registers added by AVX512.
8604 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8605 registers added by AVX512.
8606 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8608 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8609 (i386_pseudo_register_name): Add ZMM pseudo registers.
8610 (i386_zmm_type): Construct and return vector registers type for ZMM
8612 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8613 ZMM0-31 pseudo registers and K registers.
8614 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8615 and YMM16-31 registers from register cache.
8616 (i386_pseudo_register_write): Add code to write K, ZMM and
8618 (i386_register_reggroup_p): Add code to include/exclude AVX512
8619 registers in/from respective register groups.
8620 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8621 registers if feature is present in xcr0.
8622 (i386_gdbarch_init): Add code to initialize AVX512 feature
8623 variables in tdep structure, wire in pseudo registers and call
8624 initialize_tdesc_i386_avx512.
8625 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8627 (i386_regnum): Add AVX512 registers.
8628 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8629 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8630 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8631 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8633 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8634 (i386_ymm_avx512_regnum_p): Likewise.
8635 (i386_k_regnum_p): Likewise.
8636 (i386_zmm_regnum_p): Likewise.
8637 (i386_zmmh_regnum_p): Likewise.
8638 * i387-tdep.c : Update year in copyright notice.
8639 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8641 (XSAVE_YMM_AVX512_ADDR): New macro.
8642 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8644 (XSAVE_XMM_AVX512_ADDR): New macro.
8645 (xsave_avx512_k_offset): New table for K register offsets in
8647 (XSAVE_AVX512_K_ADDR): New macro.
8648 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8650 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8651 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8653 (i387_collect_xsave): Add code to collect AVX512 registers from
8655 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8656 of XMM16-31 registers.
8657 (I387_NUM_K_REGS): New define for number of K registers.
8658 (I387_K0_REGNUM): New define for K0 register number.
8659 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8660 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8661 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8663 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8664 (I387_XMM16_REGNUM): New define for XMM16 register number.
8665 (I387_YMM0_REGNUM): New define for YMM0 register number.
8666 (I387_KEND_REGNUM): New define for last K register number.
8667 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8668 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8670 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8672 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8674 * features/Makefile: Add AVX512 related files.
8675 * features/i386/32bit-avx512.xml: New file.
8676 * features/i386/64bit-avx512.xml: Likewise.
8677 * features/i386/amd64-avx512-linux.c: Likewise.
8678 * features/i386/amd64-avx512-linux.xml: Likewise.
8679 * features/i386/amd64-avx512.c: Likewise.
8680 * features/i386/amd64-avx512.xml: Likewise.
8681 * features/i386/i386-avx512-linux.c: Likewise.
8682 * features/i386/i386-avx512-linux.xml: Likewise.
8683 * features/i386/i386-avx512.c: Likewise.
8684 * features/i386/i386-avx512.xml: Likewise.
8685 * features/i386/x32-avx512-linux.c: Likewise.
8686 * features/i386/x32-avx512-linux.xml: Likewise.
8687 * features/i386/x32-avx512.c: Likewise.
8688 * features/i386/x32-avx512.xml: Likewise.
8689 * regformats/i386/amd64-avx512-linux.dat: New file.
8690 * regformats/i386/amd64-avx512.dat: Likewise.
8691 * regformats/i386/i386-avx512-linux.dat: Likewise.
8692 * regformats/i386/i386-avx512.dat: Likewise.
8693 * regformats/i386/x32-avx512-linux.dat: Likewise.
8694 * regformats/i386/x32-avx512.dat: Likewise.
8695 * NEWS: Add note about new support for AVX512.
8698 2014-04-23 Pedro Alves <palves@redhat.com>
8700 * breakpoint.c (insert_bp_location): Tolerate errors if the
8701 breakpoint is set in a user-loaded objfile.
8702 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8703 location is marked shlib_disabled. If the breakpoint is set in a
8704 user-loaded objfile is a GDB-side memory breakpoint, validate it
8705 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8706 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8708 * mem-break.c (memory_validate_breakpoint): New function.
8709 * objfiles.c (userloaded_objfile_contains_address_p): New
8711 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8712 * target.h (memory_validate_breakpoint): New declaration.
8714 2014-04-23 Pedro Alves <palves@redhat.com>
8716 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8717 the breakpoint is set in a shared library, only suppress
8718 errors for software breakpoints, not hardware breakpoints.
8720 2014-04-22 Pedro Alves <palves@redhat.com>
8722 * infrun.c (schedlock_applies): New function, factored out from
8723 find_thread_needs_step_over.
8724 (find_thread_needs_step_over): Use it.
8725 (switch_back_to_stepped_thread): Always clear trap_expected if the
8726 step over is finished. Return early if scheduler locking applies.
8727 Look for the stepping thread and a potential step-over thread with
8729 (currently_stepping_or_nexting_callback): Delete.
8731 2014-04-22 Nick Clifton <nickc@redhat.com>
8733 * NEWS: Mention that ARM sim now supports tracing.
8735 2014-04-22 Yao Qi <yao@codesourcery.com>
8737 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8739 * tracefile.c (tracefile_fetch_registers): ... it. New
8741 * tracefile.h (tracefile_fetch_registers): Declare.
8742 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8743 tracefile_fetch_registers.
8745 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8748 * windows-nat.c (thread_rec): Don't display a warning when
8749 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8750 fails for any reason, set th->suspended to -1, so that we don't
8751 try to resume such a thread. Also, don't return NULL in these
8752 cases, to avoid completely ruin the session due to "PC register is
8753 not available" error.
8754 (do_windows_fetch_inferior_registers): Check errors in
8755 GetThreadContext call.
8756 (windows_continue): Accept an additional argument KILLED; if not
8757 zero, ignore errors in the SetThreadContext call, since the
8758 inferior was killed and is shutting down.
8759 (windows_resume, get_windows_debug_event)
8760 (windows_create_inferior, windows_mourn_inferior)
8761 (windows_kill_inferior): All callers of windows_continue changed
8762 to adjust to its new calling sequence.
8764 2014-04-19 Yao Qi <yao@codesourcery.com>
8766 * ctf.c (ctf_open): Call post_create_inferior.
8768 2014-04-19 Yao Qi <yao@codesourcery.com>
8770 * ctf.c (handle_id): New static variable.
8771 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8772 value. Get the declaration of event "register" and get length
8773 of field "contents".
8775 2014-04-19 Yao Qi <yao@codesourcery.com>
8777 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8779 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8781 * valops.c (oload_method_static): Remove unnecessary argument
8782 METHOD. Update all callers.
8784 2014-04-18 Pedro alves <palves@redhat.com>
8785 Tom Tromey <tromey@redhat.com>
8788 * frame.c (get_prev_frame_1): Rename to ...
8789 (get_prev_frame_always): ... this, and make extern. Adjust.
8790 (skip_artificial_frames): Use get_prev_frame_always.
8791 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8792 (get_frame_unwind_stop_reason): Adjust to rename.
8793 * frame.h (get_prev_frame_always): Declare.
8794 * inline-frame.c: Include frame.h.
8795 (inline_frame_this_id): Use get_prev_frame_always.
8797 2014-04-18 Tristan Gingold <gingold@adacore.com>
8799 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8800 code by using bfd_mach_o_get_base_address.
8802 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8804 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8805 (spu_ax_pseudo_register_collect): New function.
8806 (spu_ax_pseudo_register_push_stack): Likewise.
8807 (spu_dwarf_reg_to_regnum): Likewise.
8808 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8810 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8812 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8813 Replace FRAME argument with FRAME_ID.
8814 * gdbarch.c, gdbarch.h: Regenerate.
8815 * findvar.c (default_value_from_register): Add GDBARCH argument;
8816 replace FRAME by FRAME_ID. No longer call get_frame_id.
8817 (value_from_register): Update call to gdbarch_value_from_register.
8818 * value.h (default_value_from_register): Update prototype.
8819 * s390-linux-tdep.c (s390_value_from_register): Update interface
8820 and call to default_value_from_register.
8821 * spu-tdep.c (spu_value_from_register): Likewise.
8823 * findvar.c (address_from_register): Remove TYPE argument.
8824 Do not call value_from_register; use gdbarch_value_from_register
8825 with null_frame_id instead.
8826 * value.h (address_from_register): Update prototype.
8827 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8828 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8829 address_from_register interface change.
8831 2014-04-17 Yao Qi <yao@codesourcery.com>
8833 * gdbtypes.h: Update comments to link to types and macros'
8836 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8838 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8840 2014-04-16 Keith Seitz <keiths@redhat.com>
8843 * dwarf2read.c (skip_one_die): Check that all relative-offset
8844 sibling DIEs fall within range of the current reader's buffer.
8845 (read_partial_die): Likewise.
8847 2014-04-16 Keith Seitz <keiths@redhat.com>
8850 * cp-namespace.c (lookup_symbol_file): If the type name of
8851 `this' is NULL, return immediately.
8853 2014-04-14 Keith Seitz <keiths@redhat.com>
8856 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8857 from symbol_matches_domain in symtab.c. All local callers
8858 of symbol_matches_domain updated.
8859 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8860 search STRUCT_DOMAIN.
8861 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8862 independently. standard_lookup will do that automatically.
8863 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8864 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8865 (cp_lookup_symbol_in_namespace): Likewise.
8866 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8867 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8868 may return a STRUCT_DOMAIN match.
8869 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8870 * cp-support.c: Include language.h.
8871 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8873 * psymtab.c (match_partial_symbol): Compare the requested
8874 domain with the symbol's domain directly.
8875 (lookup_partial_symbol): Likewise.
8876 * symtab.c (lookup_symbol_in_language): Explain when/why
8877 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8878 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8879 appropriate languages.
8880 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8881 and moved to ada-lang.c
8882 (lookup_block_symbol): Explain that this function only returns
8883 symbol matching the requested DOMAIN.
8884 Compare the requested domain with the symbol's domain directly.
8885 (iterate_over_symbols): Compare the requested domain with the
8886 symbol's domain directly.
8887 * symtab.h (symbol_matches_domain): Remove.
8889 2014-04-14 Tom Tromey <tromey@redhat.com>
8892 * c-exp.y (type_aggregate_p): New function.
8893 (qualified_name, classify_inner_name): Use it.
8894 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8895 and TYPE_TARGET_TYPE of an enum type.
8896 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8898 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8899 handle TYPE_DECLARED_CLASS.
8900 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8902 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8903 * valops.c (enum_constant_from_type): New function.
8904 (value_aggregate_elt): Use it.
8905 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8908 2014-04-14 Tom Tromey <tromey@redhat.com>
8910 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8911 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8913 * value.h (value_aggregate_elt): Update.
8915 2014-04-14 Tom Tromey <tromey@redhat.com>
8917 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8921 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8922 (evaluate_subexp_standard): Pass noside argument.
8923 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8924 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8925 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8926 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8927 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8931 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8932 points to a constant blob.
8934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8936 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8937 property and store it as the high bound and flag the range accordingly.
8938 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8939 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8940 * gdbtypes.h (enum range_flags): New enum.
8941 (struct range_bounds): Add flags member.
8943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8945 * c-typeprint.c (c_type_print_varspec_suffix): Added
8946 check for not yet resolved high bound. If unresolved, print
8947 "variable length" string to the console instead of random
8950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8952 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8954 (ada_template_to_fixed_record_type_1): Likewise.
8955 (ada_to_fixed_type_1): Likewise.
8956 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8957 (cp_print_value): Likewise.
8958 * d-valprint.c (dynamic_array_type): Likewise.
8959 * findvar.c (address_of_variable): Likewise.
8960 * jv-valprint.c (java_value_print): Likewise.
8961 * valops.c (value_ind): Likewise.
8962 * value.c (coerce_ref): Likewise.
8964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8966 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8967 value and retrieve the dynamic type size.
8969 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8971 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8972 passed to sizeof is dynamic evaluate the argument to compute the length.
8974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8975 Joel Brobecker <brobecker@adacore.com>
8977 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8978 (dwarf2_evaluate_property): New function.
8979 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8980 * dwarf2read.c (attr_to_dynamic_prop): New function.
8981 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8983 * gdbtypes.c: Include dwarf2loc.h.
8984 (is_dynamic_type): New function.
8985 (resolve_dynamic_type): New function.
8986 (resolve_dynamic_bounds): New function.
8987 (get_type_length): New function.
8988 (check_typedef): Use get_type_length to compute type length.
8989 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8990 (TYPE_LOW_BOUND_KIND): New macro.
8991 (is_dynamic_type): New function prototype.
8992 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8993 to resolve dynamic properties of the type. Update comment.
8994 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8996 2014-04-14 Richard Henderson <rth@redhat.com>
8998 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9000 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9001 Doug Evans <xdje42@gmail.com>
9003 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9004 dereference TYPE_CODE_REF values.
9006 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9008 Revert the following changes due to regressions:
9010 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9011 (dwarf2_evaluate_property): New function.
9012 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9013 * dwarf2read.c (attr_to_dynamic_prop): New function.
9014 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9016 * gdbtypes.c: Include dwarf2loc.h.
9017 (is_dynamic_type): New function.
9018 (resolve_dynamic_type): New function.
9019 (resolve_dynamic_bounds): New function.
9020 (get_type_length): New function.
9021 (check_typedef): Use get_type_length to compute type length.
9022 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9023 (TYPE_LOW_BOUND_KIND): New macro.
9024 (is_dynamic_type): New function prototype.
9025 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9026 to resolve dynamic properties of the type. Update comment.
9027 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9029 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9030 passed to sizeof is dynamic evaluate the argument to compute the length.
9032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9033 value and retrieve the dynamic type size.
9035 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9036 (ada_template_to_fixed_record_type_1): Likewise.
9037 (ada_to_fixed_type_1): Likewise.
9038 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9039 (cp_print_value): Likewise.
9040 * d-valprint.c (dynamic_array_type): Likewise.
9041 * eval.c (evaluate_subexp_with_coercion): Likewise.
9042 * findvar.c (address_of_variable): Likewise.
9043 * jv-valprint.c (java_value_print): Likewise.
9044 * valops.c (value_ind): Likewise.
9045 * value.c (coerce_ref): Likewise.
9047 * c-typeprint.c (c_type_print_varspec_suffix): Added
9048 check for not yet resolved high bound. If unresolved, print
9049 "variable length" string to the console instead of random
9052 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9053 property and store it as the high bound and flag the range accordingly.
9054 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9055 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9056 * gdbtypes.h (enum range_flags): New enum.
9057 (struct range_bounds): Add flags member.
9059 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9060 points to a constant blob.
9062 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9063 (evaluate_subexp_standard): Pass noside argument.
9064 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9065 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9066 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9067 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9068 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9070 2014-04-11 Keith Seitz <keiths@redhat.com>
9073 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9074 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9079 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9080 (evaluate_subexp_standard): Pass noside argument.
9081 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9082 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9083 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9084 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9085 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9089 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9090 points to a constant blob.
9092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9095 property and store it as the high bound and flag the range accordingly.
9096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9098 * gdbtypes.h (enum range_flags): New enum.
9099 (struct range_bounds): Add flags member.
9101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9103 * c-typeprint.c (c_type_print_varspec_suffix): Added
9104 check for not yet resolved high bound. If unresolved, print
9105 "variable length" string to the console instead of random
9108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9110 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9111 (ada_template_to_fixed_record_type_1): Likewise.
9112 (ada_to_fixed_type_1): Likewise.
9113 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9114 (cp_print_value): Likewise.
9115 * d-valprint.c (dynamic_array_type): Likewise.
9116 * eval.c (evaluate_subexp_with_coercion): Likewise.
9117 * findvar.c (address_of_variable): Likewise.
9118 * jv-valprint.c (java_value_print): Likewise.
9119 * valops.c (value_ind): Likewise.
9120 * value.c (coerce_ref): Likewise.
9122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9124 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9125 value and retrieve the dynamic type size.
9127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9129 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9130 passed to sizeof is dynamic evaluate the argument to compute the length.
9132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9134 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9135 (dwarf2_evaluate_property): New function.
9136 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9137 * dwarf2read.c (attr_to_dynamic_prop): New function.
9138 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9140 * gdbtypes.c: Include dwarf2loc.h.
9141 (is_dynamic_type): New function.
9142 (resolve_dynamic_type): New function.
9143 (resolve_dynamic_bounds): New function.
9144 (get_type_length): New function.
9145 (check_typedef): Use get_type_length to compute type length.
9146 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9147 (TYPE_LOW_BOUND_KIND): New macro.
9148 (is_dynamic_type): New function prototype.
9149 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9150 to resolve dynamic properties of the type. Update comment.
9151 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9155 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9156 declaring high/low bounds and change uses accordingly. Call
9157 create_range_type instead of create_static_range_type.
9158 * gdbtypes.c (create_range_type): New function.
9159 (create_range_type): Convert bounds into struct bound_prop and pass
9160 them to create_range_type.
9161 * gdbtypes.h (struct bound_prop): New struct.
9162 (create_range_type): New function prototype.
9163 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9164 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9165 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9167 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9171 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9172 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9173 * ada-lang.c: All uses of create_range_type updated.
9174 * coffread.c: All uses of create_range_type updated.
9175 * dwarf2read.c: All uses of create_range_type updated.
9176 * f-exp.y: All uses of create_range_type updated.
9177 * m2-valprint.c: All uses of create_range_type updated.
9178 * mdebugread.c: All uses of create_range_type updated.
9179 * stabsread.c: All uses of create_range_type updated.
9180 * valops.c: All uses of create_range_type updated.
9181 * valprint.c: All uses of create_range_type updated.
9183 2014-04-10 Pedro Alves <palves@redhat.com>
9185 * breakpoint.c (single_step_breakpoints)
9186 (single_step_gdbarch): Move up in the file.
9187 (one_breakpoint_xfer_memory): New function, factored out from ...
9188 (breakpoint_xfer_memory): ... here. Also process single-step
9191 2014-04-09 Tristan Gingold <gingold@adacore.com>
9193 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9195 (darwin_decode_exception_message): Free port only after use.
9197 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9199 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9200 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9201 when setting the size of call_length.
9203 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9205 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9206 dereference TYPE_CODE_REF values.
9208 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9210 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9211 end of warning message.
9213 2014-04-03 Doug Evans <dje@google.com>
9215 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9216 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9218 2014-04-02 Alan Modra <amodra@gmail.com>
9220 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9221 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9222 (struct symbol_file_add_from_memory_args): Add size field.
9223 (find_vdso_size): New function.
9224 (add_vsyscall_page): Attempt to find vdso size.
9226 2014-04-01 Doug Evans <dje@google.com>
9228 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9230 2014-04-01 Tristan Gingold <gingold@adacore.com>
9232 * darwin-nat.c (darwin_encode_reply): Add prototype.
9233 (darwin_decode_exception_message): Reply to unknown inferiors.
9234 (darwin_decode_message): Handle message by id. Ignore message
9235 to unknown inferior.
9236 (darwin_wait): Discard unknown messages, add debug trace.
9238 2014-03-31 Doug Evans <dje@google.com>
9240 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9243 2014-03-31 Doug Evans <dje@google.com>
9245 New option "set print symbol-loading".
9247 * solib.c (solib_read_symbols): Only print symbol loading messages
9249 (solib_add): If symbol loading is in "brief" mode, notify user
9250 symbols are being loaded.
9251 (reload_shared_libraries_1): Ditto.
9252 * symfile.c (print_symbol_loading_off): New static global.
9253 (print_symbol_loading_brief): New static global.
9254 (print_symbol_loading_full): New static global.
9255 (print_symbol_loading_enums): New static global.
9256 (print_symbol_loading): New static global.
9257 (print_symbol_loading_p): New function.
9258 (symbol_file_add_with_addrs): Only print symbol loading messages
9260 (_initialize_symfile): Register "print symbol-loading" set/show
9262 * symfile.h (print_symbol_loading_p): Declare.
9264 2014-03-30 Doug Evans <xdje42@gmail.com>
9266 * infrun.c (set_last_target_status): New function.
9267 (handle_inferior_event): Call it.
9269 2014-03-30 Doug Evans <xdje42@gmail.com>
9271 * inferior.h (enum stop_kind): Improve comment.
9273 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9275 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9276 a reference, strip the reference layer before calling
9277 the lang_ops value_has_mutated callback.
9279 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9281 Remove some globals from our parser.
9282 * language.c (unk_lang_parser): Add "struct parser_state"
9284 * language.h (struct language_defn) <la_parser>: Likewise.
9285 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9286 (initialize_expout): Add "struct parser_state" argument.
9287 Rewrite function to use the parser state.
9288 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9289 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9290 write_exp_elt_longcst, write_exp_elt_dblcst,
9291 write_exp_elt_decfloatcst, write_exp_elt_type,
9292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9293 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9294 write_dollar_variable): Likewise.
9295 (parse_exp_in_context_1): Use parser state.
9296 (insert_type_address_space): Add "struct parser_state" argument.
9298 (increase_expout_size): New function.
9299 * parser-defs.h: Forward declare "struct language_defn" and
9300 "struct parser_state".
9301 (expout, expout_size, expout_ptr): Remove extern declarations.
9302 (parse_gdbarch, parse_language): Rewrite macro declarations to
9303 accept the parser state.
9304 (struct parser_state): New struct.
9305 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9306 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9307 write_exp_elt_decfloatcst, write_exp_elt_type,
9308 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9309 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9310 write_exp_msymbol, write_dollar_variable,
9311 mark_struct_expression, insert_type_address_space): Add "struct
9312 parser_state" argument.
9313 (increase_expout_size): New function.
9314 * utils.c (do_clear_parser_state): New function.
9315 (make_cleanup_clear_parser_state): Likewise.
9316 * utils.h (make_cleanup_clear_parser_state): New function
9318 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9319 Update calls to write_exp* in order to pass the parser state.
9320 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9321 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9322 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9323 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9324 * stap-probe.c (stap_parse_register_operand): Likewise.
9325 (stap_parse_single_operand): Likewise.
9326 (stap_parse_argument_1): Likewise.
9327 (stap_parse_argument): Use parser state.
9328 * stap-probe.h: Include "parser-defs.h".
9329 (struct stap_parse_info) <pstate>: New field.
9330 * c-exp.y (parse_type): Rewrite to use parser state.
9331 (yyparse): Redefine to c_parse_internal.
9332 (pstate): New global variable.
9333 (parse_number): Add "struct parser_state" argument.
9334 (write_destructor_name): Likewise.
9335 (type_exp): Update calls to write_exp* and similars in order to
9337 (exp1, exp, variable, qualified_name, space_identifier,
9338 typename, typebase): Likewise.
9339 (write_destructor_name, parse_number, lex_one_token,
9340 classify_name, classify_inner_name, c_parse): Add "struct
9341 parser_state" argument. Update function to use parser state.
9342 * c-lang.h: Forward declare "struct parser_state".
9343 (c_parse): Add "struct parser_state" argument.
9344 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9345 (yyparse): Redefine macro to ada_parse_internal.
9346 (pstate): New variable.
9347 (write_int, write_object_renaming, write_var_or_type,
9348 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9349 type_int, type_long, type_long_long, type_float, type_double,
9350 type_long_double, type_char, type_boolean, type_system_address):
9351 Add "struct parser_state" argument.
9352 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9353 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9354 var_or_type, aggregate, aggregate_component_list,
9355 positional_list, others, component_group,
9356 component_associations): Update calls to write_exp* and similar
9357 functions in order to use parser state.
9358 (ada_parse, write_var_from_sym, write_int,
9359 write_exp_op_with_string, write_object_renaming,
9360 find_primitive_type, write_selectors, write_ambiguous_var,
9361 write_var_or_type, write_name_assoc, type_int, type_long,
9362 type_long_long, type_float, type_double, type_long_double,
9363 type_char, type_boolean, type_system_address): Add "struct
9364 parser_state" argument. Adjust function to use parser state.
9365 * ada-lang.c (parse): Likewise.
9366 * ada-lang.h: Forward declare "struct parser_state".
9367 (ada_parse): Add "struct parser_state" argument.
9368 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9369 calls to both functions.
9370 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9372 (yyparse): Redefine macro to f_parse_internal.
9373 (pstate): New variable.
9374 (parse_number): Add "struct parser_state" argument.
9375 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9376 and similars in order to use parser state.
9377 (parse_number): Adjust code to use parser state.
9379 (f_parse): New function.
9380 * f-lang.h: Forward declare "struct parser_state".
9381 (f_parse): Add "struct parser_state" argument.
9382 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9384 (yyparse): Redefine macro for java_parse_internal.
9385 (pstate): New variable.
9386 (push_expression_name, push_expression_name, insert_exp): Add
9387 "struct parser_state" argument.
9388 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9389 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9390 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9391 PostIncrementExpression, PostDecrementExpression,
9392 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9393 UnaryExpressionNotPlusMinus, CastExpression,
9394 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9395 RelationalExpression, EqualityExpression, AndExpression,
9396 ExclusiveOrExpression, InclusiveOrExpression,
9397 ConditionalAndExpression, ConditionalOrExpression,
9398 ConditionalExpression, Assignment, LeftHandSide): Update
9399 calls to write_exp* and similars in order to use parser state.
9400 (parse_number): Ajust code to use parser state.
9402 (java_parse): New function.
9403 (push_variable): Add "struct parser_state" argument. Adjust
9404 code to user parser state.
9405 (push_fieldnames, push_qualified_expression_name,
9406 push_expression_name, insert_exp): Likewise.
9407 * jv-lang.h: Forward declare "struct parser_state".
9408 (java_parse): Add "struct parser_state" argument.
9409 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9411 (yyparse): Redefine macro to m2_parse_internal.
9412 (pstate): New variable.
9413 (type_exp, exp, fblock, variable, type): Update calls to
9414 write_exp* and similars to use parser state.
9416 (m2_parse): New function.
9417 * m2-lang.h: Forward declare "struct parser_state".
9418 (m2_parse): Add "struct parser_state" argument.
9419 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9420 * objc-lang.h: Forward declare "struct parser_state".
9421 (end_msglist): Add "struct parser_state" argument.
9422 * p-exp.y (parse_type): Rewrite macro to use parser state.
9423 (yyparse): Redefine macro to pascal_parse_internal.
9424 (pstate): New variable.
9425 (parse_number): Add "struct parser_state" argument.
9426 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9427 write_exp* and similars in order to use parser state.
9428 (parse_number, yylex): Adjust code to use parser state.
9429 (pascal_parse): New function.
9430 * p-lang.h: Forward declare "struct parser_state".
9431 (pascal_parse): Add "struct parser_state" argument.
9432 * go-exp.y (parse_type): Rewrite macro to use parser state.
9433 (yyparse): Redefine macro to go_parse_internal.
9434 (pstate): New variable.
9435 (parse_number): Add "struct parser_state" argument.
9436 (type_exp, exp1, exp, variable, type): Update calls to
9437 write_exp* and similars in order to use parser state.
9438 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9439 to use parser state.
9440 (go_parse): Likewise.
9441 * go-lang.h: Forward declare "struct parser_state".
9442 (go_parse): Add "struct parser_state" argument.
9444 2014-03-27 Doug Evans <dje@google.com>
9446 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9448 2014-03-27 Doug Evans <dje@google.com>
9450 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9451 Remove argument abbrev_section. All callers updated.
9453 2014-03-27 Doug Evans <dje@google.com>
9455 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9456 addr_base, ranges_base.
9458 2014-03-26 Keith Seitz <keiths@redhat.com>
9460 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9461 types, not VAR_DOMAIN.
9463 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9465 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9467 * features/nios2-linux.c: Regenerated.
9468 * features/nios2.c: Regenerated.
9470 2014-03-25 Pedro Alves <palves@redhat.com>
9472 * cli/cli-script.c (script_from_file): Force the interpreter to
9475 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9477 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9478 small stack allocation.
9480 2014-03-24 Tristan Gingold <gingold@adacore.com>
9482 * darwin-nat.c (exc_server): Remove unused prototype.
9483 (darwin_dump_message): Correctly display data on x86_64.
9484 (darwin_encode_reply): Fix style.
9485 Add comments and fix indentation.
9487 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9489 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9491 2014-03-22 Doug Evans <xdje42@gmail.com>
9493 * infcmd.c: Whitespace fixes.
9494 (interrupt_command): Merge two function comments into one.
9496 2014-03-22 Doug Evans <xdje42@gmail.com>
9498 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9501 2014-03-22 Yao Qi <yao@codesourcery.com>
9503 * remote.c (target_read_live_memory): Remove.
9504 (memory_xfer_live_readonly_partial): Rename it to
9505 remote_xfer_live_readonly_partial. Remove argument 'object'.
9506 All callers updated. Call remote_read_bytes_1
9507 instead of target_read_live_memory.
9508 * tracepoint.c (set_traceframe_number): Remove.
9509 (make_cleanup_restore_traceframe_number): Likewise .
9510 * tracepoint.h (set_traceframe_number): Remove declaration.
9511 (make_cleanup_restore_traceframe_number): Likewise.
9513 2014-03-22 Yao Qi <yao@codesourcery.com>
9515 * remote.c (remote_read_bytes): Move code on reading from the
9517 (remote_read_bytes_1): ... here. New function.
9519 2014-03-22 Yao Qi <yao@codesourcery.com>
9521 * ctf.c (ctf_xfer_partial): Check the return value of
9522 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9523 return TARGET_XFER_UNAVAILABLE.
9524 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9525 * target.c (target_read_live_memory): Move it to remote.c.
9526 (memory_xfer_live_readonly_partial): Likewise.
9527 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9528 * remote.c (target_read_live_memory): Moved from target.c.
9529 (memory_xfer_live_readonly_partial): Likewise.
9530 (remote_read_bytes): Factored out from
9531 memory_xfer_partial_1.
9533 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9535 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9538 2014-03-21 Pedro Alves <palves@redhat.com>
9540 * infrun.c (normal_stop): Extend comment.
9542 2014-03-21 Hui Zhu <hui@codesourcery.com>
9543 Pedro Alves <palves@redhat.com>
9545 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9547 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9548 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9549 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9551 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9553 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9554 `z' formatted output modifier.
9556 2014-03-20 Tom Tromey <tromey@redhat.com>
9557 Sergio Durigan Junior <sergiodj@redhat.com>
9559 * probe.c (parse_probes): Turn assert into an ordinary error.
9560 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9561 exceptions when parsing probes. Rearrange the code for clarity.
9563 2014-03-20 Tom Tromey <tromey@redhat.com>
9566 * top.c (execute_command): Only dispatch events if the command
9569 2014-03-20 Tom Tromey <tromey@redhat.com>
9572 * infcall.c: Include event-top.h.
9573 (run_inferior_call): Call async_disable_stdin if needed.
9575 2014-03-20 Pedro Alves <palves@redhat.com>
9577 * infrun.c (prepare_to_proceed): Delete.
9578 (thread_still_needs_step_over): New function.
9579 (find_thread_needs_step_over): New function.
9580 (proceed): If the current thread needs a step-over, set its
9581 steping_over_breakpoint flag. Adjust to use
9582 find_thread_needs_step_over instead of prepare_to_proceed.
9583 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9584 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9586 (switch_back_to_stepped_thread): Step over breakpoints of all
9587 threads not the stepping thread, before switching back to the
9590 2014-03-20 Pedro Alves <palves@redhat.com>
9592 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9594 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9595 * infrun.c (saved_singlestep_ptid)
9596 (stepping_past_singlestep_breakpoint): Delete.
9597 (resume): Remove stepping_past_singlestep_breakpoint handling.
9598 (proceed): Store the prev_pc of the stepping thread too.
9599 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9601 (enum infwait_states): Delete infwait_thread_hop_state.
9602 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9604 (handle_inferior_event): Adjust.
9605 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9606 handling and the thread-hop code. Before removing single-step
9607 breakpoints, check whether the thread hit a single-step breakpoint
9608 of another thread. If it did, the trap is not a random signal.
9609 (switch_back_to_stepped_thread): If the event thread hit a
9610 single-step breakpoint, unblock it before switching to the
9611 stepping thread. Handle the case of the stepped thread having
9613 (keep_going): Handle the case of the current thread moving past a
9614 single-step breakpoint.
9616 2014-03-20 Pedro Alves <palves@redhat.com>
9619 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9620 are being stepped over.
9621 (breakpoint_address_match): Make extern.
9622 * breakpoint.h (breakpoint_address_match): New declaration.
9623 * inferior.h (stepping_past_instruction_at): New declaration.
9624 * infrun.c (struct step_over_info): New type.
9625 (step_over_info): New global.
9626 (set_step_over_info, clear_step_over_info)
9627 (stepping_past_instruction_at): New functions.
9628 (handle_inferior_event): Clear the step-over info when
9629 trap_expected is cleared.
9630 (resume): Remove now stale comment.
9631 (clear_proceed_status): Clear step-over info.
9632 (proceed): Adjust step-over handling to set or clear the step-over
9633 info instead of removing all breakpoints.
9634 (handle_signal_stop): When setting up a thread-hop, don't remove
9636 (stop_stepping): Clear step-over info.
9637 (keep_going): Adjust step-over handling to set or clear step-over
9638 info and then always inserting breakpoints, instead of removing
9639 all breakpoints when stepping over one.
9641 2014-03-20 Pedro Alves <palves@redhat.com>
9643 * infrun.c (previous_inferior_ptid): Adjust comment.
9644 (deferred_step_ptid): Delete.
9645 (infrun_thread_ptid_changed, prepare_to_proceed)
9646 (init_wait_for_inferior): Adjust.
9647 (handle_signal_stop): Delete deferred_step_ptid handling.
9649 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9652 * defs.h (sync_quit_force_run): New declaration.
9653 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9654 * event-top.c (async_sigterm_handler): New declaration.
9655 (async_sigterm_token): New variable.
9656 (async_init_signals): Create also async_sigterm_token.
9657 (async_sigterm_handler): New function.
9658 (sync_quit_force_run): New variable.
9659 (handle_sigterm): Replace quit_force call by other calls.
9660 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9662 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9664 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9665 offset into SPE pseudo registers.
9667 2014-03-18 Pedro Alves <palves@redhat.com>
9670 * inferior.h (print_stop_event): Declare.
9671 * infrun.c (print_stop_event): New, factored out from ...
9672 (normal_stop): ... this.
9673 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9674 of bpstat_print/print_stack_frame.
9676 2014-03-17 Tom Tromey <tromey@redhat.com>
9678 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9680 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9682 * ada-lang.c (decode_constrained_packed_array): Perform a
9683 minimal coercion for reference with coerce_ref instead of
9686 2014-03-17 Tristan Gingold <gingold@adacore.com>
9688 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9689 (darwin_solib_create_inferior_hook): Emit a warning if version
9692 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9694 * python/py-value.c (get_field_flag): Cast flag_name argument to
9695 PyObject_GetAttrString to support Python 2.4.
9697 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9699 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9700 (Global Maintainers): Remove Jan Kratochvil.
9702 2014-03-14 Pedro Alves <palves@redhat.com>
9704 * inferior.h (terminal_ours_for_output): Rename to ...
9705 (child_terminal_ours_for_output): ... this.
9706 (terminal_save_ours): Rename to ...
9707 (child_terminal_save_ours): ... this.
9708 (terminal_ours): Rename to ...
9709 (child_terminal_ours): ... this.
9710 (terminal_inferior): Rename to ...
9711 (child_terminal_inferior): ... this.
9712 (terminal_init_inferior): Rename to ...
9713 (child_terminal_init_inferior): ... this.
9714 (terminal_init_inferior_with_pgrp): Rename to ...
9715 (child_terminal_init_inferior_with_pgrp): ... this.
9716 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9717 (child_terminal_init_with_pgrp): ... this.
9718 (terminal_save_ours): Rename to ...
9719 (child_terminal_save_ours): ... this.
9720 (terminal_init_inferior): Rename to ...
9721 (child_terminal_init): ... this. Adjust.
9722 (terminal_inferior): Rename to ...
9723 (child_terminal_inferior): ... this.
9724 (terminal_ours_for_output): Rename to ...
9725 (child_terminal_ours_for_output): ... this. Adjust.
9726 (terminal_ours): Rename to ...
9727 (child_terminal_ours): ... this.
9728 (terminal_ours_1): Rename to ...
9729 (child_terminal_ours_1): ... this. Adjust.
9730 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9731 * windows-nat.c (do_initial_windows_stuff): Adjust.
9732 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9733 (gnu_terminal_init): ... this. Adjust.
9734 (gnu_target): Adjust.
9735 * inf-child.c (inf_child_target): Adjust.
9737 2014-03-13 Doug Evans <xdje42@gmail.com>
9740 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9743 2014-03-13 Doug Evans <xdje42@gmail.com>
9745 * value.c (record_latest_value): Call release_value_or_incref
9746 instead of release_value.
9748 2014-03-13 Pedro Alves <palves@redhat.com>
9750 * procfs.c (procfs_target): Don't override to_shortname,
9751 to_longname or to_doc.
9753 2014-03-13 Pedro Alves <palves@redhat.com>
9755 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9756 Unix in user visible strings.
9758 2014-03-12 Stan Shebs <stan@codesourcery.com>
9760 * gdbtypes.h: Annotate comments for Doxygen, add a page
9761 block comment with some general info.
9763 2014-03-12 Pedro Alves <palves@redhat.com>
9765 * infcmd.c (prepare_execution_command): New function, factored out
9766 from several execution commands.
9767 (run_command_1, continue_command, step_1, jump_command)
9768 (signal_command, until_command, advance_command, finish_command)
9769 (attach_command): Use prepare_execution_command.
9771 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9773 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9776 (struct arm_linux_thread_points): Removed.
9777 (struct arm_linux_process_info): New.
9778 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9779 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9780 (arm_linux_find_breakpoints_by_tid): Removed.
9781 (struct arch_lwp_info): New.
9782 (arm_linux_find_process_pid): New functions.
9783 (arm_linux_add_process): New functions.
9784 (arm_linux_process_info_get): New functions.
9785 (arm_linux_forget_process): New function.
9786 (arm_linux_get_debug_reg_state): New function.
9787 (struct update_registers_data): New.
9788 (update_registers_callback): New function.
9789 (arm_linux_insert_hw_breakpoint1): Updated.
9790 (arm_linux_remove_hw_breakpoint1): Updated.
9791 (arm_linux_insert_hw_breakpoint): Updated.
9792 (arm_linux_remove_hw_breakpoint): Updated.
9793 (arm_linux_insert_watchpoint): Updated.
9794 (arm_linux_remove_watchpoint): Updated.
9795 (arm_linux_new_thread): Updated.
9796 (arm_linux_prepare_to_resume): New function.
9797 (arm_linux_new_fork): New function.
9798 (_initialize_arm_linux_nat): Updated.
9800 2014-03-12 Pedro Alves <palves@redhat.com>
9802 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9804 2014-03-12 Tom Tromey <tromey@redhat.com>
9806 * inf-child.c (return_zero): New function.
9807 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9808 * aix-thread.c (aix_thread_inferior_created): New function.
9809 (aix_thread_attach): Remove.
9810 (init_aix_thread_ops): Don't set to_attach.
9811 (_initialize_aix_thread): Register inferior_created observer.
9812 * corelow.c (init_core_ops): Don't set to_attach or
9814 * exec.c (init_exec_ops): Don't set to_attach or
9816 * infcmd.c (run_command_1): Use find_run_target. Make direct
9818 (attach_command): Use find_attach_target. Make direct target
9820 * record-btrace.c (init_record_btrace_ops): Don't set
9822 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9824 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9825 set to_create_inferior.
9826 * target.c (complete_target_initialization): Add assertion.
9827 (target_create_inferior): Remove.
9828 (find_default_attach, find_default_create_inferior): Remove.
9829 (find_attach_target, find_run_target): New functions.
9830 (find_default_is_async_p, find_default_can_async_p)
9831 (target_supports_non_stop, target_attach): Remove.
9832 (init_dummy_target): Don't set to_create_inferior or
9833 to_supports_non_stop.
9834 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9835 TARGET_DEFAULT_FUNC.
9836 <to_create_inferior>: Add comment.
9837 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9838 TARGET_DEFAULT_RETURN.
9839 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9840 (find_attach_target, find_run_target): Declare.
9841 (target_create_inferior): Remove.
9842 (target_has_execution_1): Update comment.
9843 (target_supports_non_stop): Remove.
9844 * target-delegates.c: Rebuild.
9846 2014-03-12 Pedro Alves <palves@redhat.com>
9848 * inf-child.h: Update comment to not mention Unix.
9850 2014-03-12 Pedro Alves <palves@redhat.com>
9852 * inf-child.c: Update top comment to not mention Unix. Add
9853 generic comment describing how this target is meant to be used.
9854 (inf_child_post_attach, inf_child_post_startup_inferior)
9855 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9858 2014-03-12 Pedro Alves <palves@redhat.com>
9860 * nto-procfs.c: Include inf-child.h.
9861 (procfs_ops): Delete global.
9862 (procfs_can_run): Delete method.
9863 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9864 target pointer instead of referencing procfs_ops.
9865 (procfs_prepare_to_store): Delete.
9866 (init_procfs_ops): Delete function.
9867 (procfs_target): New function, based on init_procfs_ops, but
9868 inherit inf_child_target.
9869 (_initialize_procfs): Use procfs_target.
9871 2014-03-12 Pedro Alves <palves@redhat.com>
9873 * windows-nat.c: Include inf-child.h.
9874 (windows_ops): Delete global.
9875 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9877 (init_windows_ops): Delete function.
9878 (windows_target): New function, based on init_windows_ops, but
9879 inherit inf_child_target.
9880 (_initialize_windows_nat): Use windows_target. Install x86
9881 specific target methods here.
9883 2014-03-10 Doug Evans <xdje42@gmail.com>
9885 * guile/guile.c (call_initialize_gdb_module): New function.
9886 (initialize_guile): Replace call to scm_init_guile with call to
9889 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9891 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9892 in call to TYPE_CODE macro.
9894 2014-03-10 Jerome Guitton <guitton@adacore.com>
9896 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9897 Resolve tagged types to full view.
9899 2014-03-10 Hui Zhu <hui@codesourcery.com>
9901 * target.h (target_insert_breakpoint): Remove "hardware" from its
9904 2014-03-07 Doug Evans <dje@google.com>
9906 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9908 2014-03-07 Doug Evans <dje@google.com>
9910 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9911 Remove unused local comp_dir_attr. Assert exactly one of
9912 stub_comp_unit_die, stub_comp_dir is non-NULL.
9914 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9916 * target.h (complete_target_initialization, add_target):
9919 2014-03-07 Pedro Alves <palves@redhat.com>
9921 * go32-nat.c: Include inf-child.h.
9922 (go32_ops): Delete global.
9923 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9925 (go32_create_inferior): Push the passed in target pointer instead
9926 of referencing go32_ops.
9927 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9928 (go32_target): New function, based on init_go32_ops, but inherit
9930 (_initialize_go32_nat): Use go32_target. Move parts of
9933 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9935 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9936 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9937 SYMBOL_VALUE_ADDRESS.
9938 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9940 2014-03-06 Yao Qi <yao@codesourcery.com>
9942 * breakpoint.c (get_tracepoint_by_number): Remove argument
9943 optional_p. All callers updated. Adjust comments. Update
9945 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9947 2014-03-06 Yao Qi <yao@codesourcery.com>
9949 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9950 early if get_number returns zero. Use 'p' instead of 'args'.
9952 2014-03-06 Yao Qi <yao@codesourcery.com>
9954 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9957 2014-03-06 Yao Qi <yao@codesourcery.com>
9959 PR breakpoints/16508
9960 * tracepoint.c (check_trace_running): New function.
9961 (trace_find_command): Move code to check_trace_running and
9962 call check_trace_running.
9963 (trace_find_pc_command): Likewise.
9964 (trace_find_tracepoint_command): Likewise.
9965 (trace_find_line_command): Likewise.
9966 (trace_find_range_command): Likewise.
9967 * tracepoint.h (check_trace_running): Likewise.
9968 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9970 2014-03-06 Yao Qi <yao@codesourcery.com>
9972 * target.h (struct target_ops) <to_traceframe_info>: Use
9973 TARGET_DEFAULT_NORETURN (tcomplain ()).
9974 * target-delegates.c: Regenerated.
9976 2014-03-05 Pedro Alves <palves@redhat.com>
9979 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9980 void. Update comment.
9981 (dcache_xfer_memory): Delete.
9982 (dcache_read_memory_partial): New, based on the read bits of
9984 (dcache_update): Add status parameter. Use ULONGEST for len, and
9985 adjust. Discard cache lines if the reason for the update was
9987 * dcache.h (dcache_xfer_memory): Delete declaration.
9988 (dcache_read_memory_partial): New declaration.
9989 (dcache_update): Update prototype.
9990 * target.c (raw_memory_xfer_partial): Update the dcache here.
9991 (memory_xfer_partial_1): Don't handle dcache writes here.
9993 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9995 * remote-sim.c (gdbsim_load): Add const to prog.
9997 2014-03-03 Tom Tromey <tromey@redhat.com>
9999 * elfread.c (probe_key): Change to bfd_data.
10000 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10001 now per-BFD, not per-objfile.
10002 * stap-probe.c (stap_probe_destroy): Update comment.
10003 (handle_stap_probe): Allocate on the per-BFD obstack.
10005 2014-03-03 Tom Tromey <tromey@redhat.com>
10007 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10008 * breakpoint.c (create_longjmp_master_breakpoint): Use
10010 (add_location_to_breakpoint, bkpt_probe_insert_location)
10011 (bkpt_probe_remove_location): Update.
10012 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10013 * elfread.c (elf_symfile_relocate_probe): Remove.
10014 (elf_probe_fns): Update.
10015 (insert_exception_resume_breakpoint): Change type of "probe"
10016 parameter to bound_probe.
10017 (check_exception_resume): Update.
10018 * objfiles.c (objfile_relocate1): Don't relocate probes.
10019 * probe.c (bound_probe_s): New typedef.
10020 (parse_probes): Use get_probe_address. Set sal's objfile.
10021 (find_probe_by_pc): Return a bound_probe.
10022 (collect_probes): Return a VEC(bound_probe_s).
10023 (compare_probes): Update.
10024 (gen_ui_out_table_header_info): Change type of "probes"
10026 (info_probes_for_ops): Update.
10027 (get_probe_address): New function.
10028 (probe_safe_evaluate_at_pc): Update.
10029 * probe.h (struct probe_ops) <get_probe_address>: New field.
10030 <set_semaphore, clear_semaphore>: Add objfile parameter.
10031 (struct probe) <objfile>: Remove field.
10033 <address>: Update comment.
10034 (struct bound_probe): New.
10035 (find_probe_by_pc): Return a bound_probe.
10036 (get_probe_address): Declare.
10037 * solib-svr4.c (struct probe_and_action) <address>: New field.
10038 (hash_probe_and_action, equal_probe_and_action): Update.
10039 (register_solib_event_probe): Add address parameter.
10040 (solib_event_probe_at): Update.
10041 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10043 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10044 (stap_get_probe_address): New function.
10045 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10046 (compile_probe_arg): Update.
10047 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10049 (handle_stap_probe): Don't relocate the probe.
10050 (stap_relocate): Remove.
10051 (stap_gen_info_probes_table_values): Update.
10052 (stap_probe_ops): Remove stap_relocate.
10053 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10054 (debug_sym_probe_fns): Update.
10055 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10056 * symtab.c (init_sal): Use memset.
10057 * symtab.h (struct symtab_and_line) <objfile>: New field.
10058 * tracepoint.c (start_tracing, stop_tracing): Update.
10060 2014-03-03 Tom Tromey <tromey@redhat.com>
10062 * probe.h (parse_probes, find_probe_by_pc)
10063 (find_probes_in_objfile): Fix comments.
10065 2014-03-02 Doug Evans <xdje42@gmail.com>
10067 * infrun.c (handle_signal_stop): Replace test for
10068 TARGET_WAITKIND_STOPPED with an assert.
10070 2014-03-02 Doug Evans <xdje42@gmail.com>
10072 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10074 2014-03-02 Doug Evans <xdje42@gmail.com>
10076 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10078 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10080 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10082 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10084 * i386obsd-nat.c: Include "obsd-nat.h".
10085 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10087 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10089 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10091 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10093 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10095 * mips64obsd-nat.c: Include "obsd-nath".
10096 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10098 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10100 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10102 * amd64obsd-nat.c: Include "obsd-nat,h.
10103 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10105 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10107 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10109 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10110 (find_overload_match): Update call to find_oload_champ.
10111 (find_oload_champ_namespace_loop): Likewise
10113 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10115 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10117 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10118 * config/sparc/obsd64.mh: New file.
10119 * sparc64obsd-nat.c: New file.
10121 * obsd-nat.h: New file.
10122 * obsd-nat.c: New file.
10123 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10124 (ALLDEPFILES): Add obsd-nat.c.
10126 2014-02-28 Tom Tromey <tromey@redhat.com>
10128 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10129 * cli-out.h (cli_ui_out_impl): Now const.
10130 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10131 * ui-out.c (struct ui_out) <impl>: Now const.
10132 (default_ui_out_impl): Now const.
10133 (ui_out_new): Make 'impl' parameter const.
10134 * ui-out.h (ui_out_new): Update.
10136 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10138 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10140 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10142 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10144 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10146 Additional PR 8882 fix.
10147 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10149 2014-02-27 Pedro Alves <palves@redhat.com>
10151 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10154 2014-02-27 Pedro Alves <palves@redhat.com>
10157 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10158 * nat/linux-waitpid.c: Include string.h.
10159 (status_to_str): Moved here and made extern.
10160 * nat/linux-waitpid.h (status_to_str): New declaration.
10162 2014-02-27 Hui Zhu <hui@codesourcery.com>
10165 * infrun.c (ptid_match): Move ...
10166 * common/ptid.c (ptid_match): ... here.
10167 * inferior.h (ptid_match): Move ...
10168 * common/ptid.h (ptid_match): ... here.
10170 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10172 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10173 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10176 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10178 * obsd-tdep.c (obsd_auxv_parse): New function.
10179 (obsd_init_abi): Set auxv_parse.
10181 * gdbarch.sh (auxv_parse): New.
10182 * gdbarch.h: Regenerated.
10183 * gdbarch.c: Regenerated.
10184 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10186 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10188 * guile/scm-value.c (gdbscm_history_append_x): New function.
10189 (value_functions): Add it.
10191 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10193 * dwarf2read.c (attr_value_as_address): New function.
10194 (dwarf2_find_base_address, read_call_site_scope): Use
10195 attr_value_as_address in place of DW_ADDR.
10196 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10197 the low and high addresses. Slight rework of the handling
10198 of the high pc being a constant form, and limit it to
10199 DWARF verson 4 or higher.
10200 (dwarf2_record_block_ranges): Likewise.
10201 (read_partial_die): Likewise.
10202 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10204 2014-02-26 Tom Tromey <tromey@redhat.com>
10206 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10208 2014-02-26 Tom Tromey <tromey@redhat.com>
10210 * elfread.c (elf_read_minimal_symbols): Return early if
10211 minimal symbols have already been read. Add "ei" parameter.
10212 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10213 * minsyms.c (prim_record_minimal_symbol_full): Update.
10214 * objfiles.h (struct objstats) <n_minsyms>: Move...
10215 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10216 * symmisc.c (print_objfile_statistics): Update.
10218 2014-02-26 Tom Tromey <tromey@redhat.com>
10220 * elfread.c (elf_read_minimal_symbols): New function, from
10222 (elf_symfile_read): Call it.
10224 2014-02-26 Tom Tromey <tromey@redhat.com>
10226 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10227 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10228 (lookup_minimal_symbol_solib_trampoline)
10229 (lookup_minimal_symbol_by_pc_section_1)
10230 (lookup_minimal_symbol_and_objfile): Update.
10231 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10232 Don't allocate a minimal symbol if minsyms have already been read.
10233 (build_minimal_symbol_hash_tables): Update.
10234 (install_minimal_symbols): Do nothing if minsyms already read.
10235 Use the per-BFD obstack.
10236 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10237 * objfiles.c (allocate_objfile): Call
10238 terminate_minimal_symbol_table later.
10239 (have_minimal_symbols): Update.
10240 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10241 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10242 Move from struct objfile.
10243 <minsyms_read>: New field.
10244 (struct objfile) <msymbols, minimal_symbol_count,
10245 msymbol_hash, msymbol_demangled_hash>: Move.
10246 (ALL_OBJFILE_MSYMBOLS): Update.
10247 * symfile.c (read_symbols): Set minsyms_read.
10248 (reread_symbols): Update.
10249 * symmisc.c (dump_objfile, dump_msymbols): Update.
10251 2014-02-26 Tom Tromey <tromey@redhat.com>
10253 * minsyms.c (msymbols_sort): Remove.
10254 * minsyms.h (msymbols_sort): Remove.
10255 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10256 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10257 * elfread.c (elf_symtab_read): Don't add section offsets.
10258 * xcoffread.c (record_minimal_symbol): Don't add section offset
10259 to minimal symbol address.
10260 * somread.c (text_offset, data_offset): Remove.
10261 (som_symtab_read): Don't add section offsets to minimal symbol
10263 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10264 Don't add section offsets to minimal symbols.
10265 * coffread.c (coff_symtab_read): Don't add section offsets
10266 to minimal symbol addresses.
10267 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10268 to minimal symbol addresses.
10269 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10270 section offset to minimal symbol addresses.
10271 * mdebugread.c (parse_partial_symbols): Don't add section
10272 offset to minimal symbol addresses.
10273 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10274 offset to minimal symbol addresses.
10276 2014-02-26 Tom Tromey <tromey@redhat.com>
10278 * ada-lang.c (ada_main_name): Update.
10279 (ada_add_standard_exceptions): Update.
10280 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10281 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10282 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10283 * auxv.c (ld_so_xfer_auxv): Update.
10284 * avr-tdep.c (avr_scan_prologue): Update.
10285 * ax-gdb.c (gen_var_ref): Update.
10286 * blockframe.c (get_pc_function_start)
10287 (find_pc_partial_function_gnu_ifunc): Update.
10288 * breakpoint.c (create_overlay_event_breakpoint)
10289 (create_longjmp_master_breakpoint)
10290 (create_std_terminate_master_breakpoint)
10291 (create_exception_master_breakpoint): Update.
10292 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10293 * c-valprint.c (c_val_print): Update.
10294 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10295 * common/agent.c (agent_look_up_symbols): Update.
10296 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10297 * dwarf2loc.c (call_site_to_target_addr): Update.
10298 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10299 * elfread.c (elf_gnu_ifunc_record_cache)
10300 (elf_gnu_ifunc_resolve_by_got): Update.
10301 * findvar.c (default_read_var_value): Update.
10302 * frame.c (inside_main_func): Update.
10303 * frv-tdep.c (frv_frame_this_id): Update.
10304 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10305 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10307 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10308 (hppa_hpux_find_dummy_bpaddr): Update.
10309 * hppa-tdep.c (hppa_symbol_address): Update.
10310 * infcmd.c (until_next_command): Update.
10311 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10313 * linespec.c (minsym_found, add_minsym): Update.
10314 * linux-nat.c (get_signo): Update.
10315 * linux-thread-db.c (inferior_has_bug): Update.
10316 * m32c-tdep.c (m32c_return_value)
10317 (m32c_m16c_address_to_pointer): Update.
10318 * m32r-tdep.c (m32r_frame_this_id): Update.
10319 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10320 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10321 * maint.c (maintenance_translate_address): Update.
10322 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10323 (frob_address): New function.
10324 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10325 frob_address. Rename parameter to "pc_in".
10326 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10328 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10330 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10331 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10332 * objc-lang.c (find_objc_msgsend): Update.
10333 * objfiles.c (objfile_relocate1): Update.
10334 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10335 * p-valprint.c (pascal_val_print): Update.
10336 * parse.c (write_exp_msymbol): Update.
10337 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10338 (ppc_elfv2_skip_entrypoint): Update.
10339 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10340 * printcmd.c (build_address_symbolic, msym_info)
10341 (address_info): Update.
10342 * proc-service.c (ps_pglobal_lookup): Update.
10343 * psymtab.c (find_pc_sect_psymtab_closer)
10344 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10345 Change msymbol parameter to bound_minimal_symbol.
10346 * ravenscar-thread.c (get_running_thread_id): Update.
10347 * remote.c (remote_check_symbols): Update.
10348 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10350 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10351 * solib-dsbt.c (lm_base): Update.
10352 * solib-frv.c (lm_base, main_got): Update.
10353 * solib-irix.c (locate_base): Update.
10354 * solib-som.c (som_solib_create_inferior_hook)
10355 (link_map_start): Update.
10356 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10357 * solib-svr4.c (elf_locate_base, enable_break): Update.
10358 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10359 (flush_ea_cache): Update.
10360 * stabsread.c (define_symbol, scan_file_globals): Update.
10361 * stack.c (find_frame_funname): Update.
10362 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10363 (debug_qf_find_pc_sect_symtab): Update.
10364 * symfile.c (simple_read_overlay_table)
10365 (simple_overlay_update): Update.
10366 * symfile.h (struct quick_symbol_functions)
10367 <find_pc_sect_symtab>: Change type of msymbol to
10368 bound_minimal_symbol.
10369 * symmisc.c (dump_msymbols): Update.
10370 * symtab.c (find_pc_sect_symtab_via_partial)
10371 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10372 (search_symbols, print_msymbol_info): Update.
10373 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10374 (MSYMBOL_VALUE_ADDRESS): Redefine.
10375 (BMSYMBOL_VALUE_ADDRESS): New macro.
10376 * tracepoint.c (scope_info): Update.
10377 * tui/tui-disasm.c (tui_find_disassembly_address)
10378 (tui_get_begin_asm_address): Update.
10379 * valops.c (find_function_in_inferior): Update.
10380 * value.c (value_static_field, value_fn_field): Update.
10382 2014-02-26 Tom Tromey <tromey@redhat.com>
10384 * ada-lang.c (ada_update_initial_language): Update.
10385 (ada_main_name, ada_has_this_exception_support): Update.
10386 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10387 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10388 * arm-tdep.c (arm_skip_stub): Update.
10389 * auxv.c (ld_so_xfer_auxv): Update.
10390 * avr-tdep.c (avr_scan_prologue): Update.
10391 * ax-gdb.c (gen_var_ref): Update.
10392 * breakpoint.c (struct breakpoint_objfile_data)
10393 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10394 type to bound_minimal_symbol.
10395 (create_overlay_event_breakpoint)
10396 (create_longjmp_master_breakpoint)
10397 (create_std_terminate_master_breakpoint)
10398 (create_exception_master_breakpoint): Update.
10399 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10400 * c-exp.y (classify_name): Update.
10401 * coffread.c (coff_symfile_read): Update.
10402 * common/agent.c (agent_look_up_symbols): Update.
10403 * d-lang.c (d_main_name): Update.
10404 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10405 * dec-thread.c (enable_dec_thread): Update.
10406 * dwarf2loc.c (call_site_to_target_addr): Update.
10407 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10408 * eval.c (evaluate_subexp_standard): Update.
10409 * findvar.c (struct minsym_lookup_data) <result>: Change type
10410 to bound_minimal_symbol.
10412 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10413 * frame.c (inside_main_func): Update.
10414 * frv-tdep.c (frv_frame_this_id): Update.
10415 * gcore.c (call_target_sbrk): Update.
10416 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10417 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10419 * go-lang.c (go_main_name): Update.
10420 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10421 (hppa_hpux_find_import_stub_for_addr): Update.
10422 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10423 Update. Change return type.
10424 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10426 * jit.c (jit_breakpoint_re_set_internal): Update.
10427 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10429 * linux-nat.c (get_signo): Update.
10430 * linux-thread-db.c (inferior_has_bug): Update
10431 * m32c-tdep.c (m32c_return_value)
10432 (m32c_m16c_address_to_pointer): Update.
10433 * m32r-tdep.c (m32r_frame_this_id): Update.
10434 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10435 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10436 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10437 lookup_minimal_symbol. Change return type.
10438 (lookup_minimal_symbol): Remove.
10439 (lookup_bound_minimal_symbol): Update.
10440 (lookup_minimal_symbol_text): Change return type.
10441 (lookup_minimal_symbol_solib_trampoline): Change return type.
10442 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10443 (lookup_minimal_symbol_solib_trampoline): Change return type.
10444 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10445 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10446 (value_nsstring, find_imps): Update.
10447 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10448 * p-lang.c (pascal_main_name): Update.
10449 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10450 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10451 * proc-service.c (ps_pglobal_lookup): Update.
10452 * ravenscar-thread.c (get_running_thread_msymbol): Change
10454 (has_ravenscar_runtime, get_running_thread_id): Update.
10455 * remote.c (remote_check_symbols): Update.
10456 * sol-thread.c (ps_pglobal_lookup): Update.
10457 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10458 * solib-dsbt.c (lm_base): Update.
10459 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10461 * solib-irix.c (locate_base): Update.
10462 * solib-som.c (som_solib_create_inferior_hook)
10463 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10465 * solib-spu.c (spu_enable_break): Update.
10466 * solib-svr4.c (elf_locate_base, enable_break): Update.
10467 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10468 (flush_ea_cache): Update.
10469 * stabsread.c (define_symbol): Update.
10470 * symfile.c (simple_read_overlay_table): Update.
10471 * symtab.c (find_pc_sect_line): Update.
10472 * tracepoint.c (scope_info): Update.
10473 * tui-disasm.c (tui_get_begin_asm_address): Update.
10474 * value.c (value_static_field): Update.
10476 2014-02-26 Tom Tromey <tromey@redhat.com>
10478 * minsyms.c (prim_record_minimal_symbol_full): Use
10479 SET_MSYMBOL_VALUE_ADDRESS.
10480 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10481 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10482 SET_MSYMBOL_VALUE_ADDRESS.
10483 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10484 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10486 2014-02-26 Tom Tromey <tromey@redhat.com>
10488 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10489 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10490 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10491 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10492 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10493 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10494 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10495 * ada-lang.c (ada_main_name): Update.
10496 (ada_lookup_simple_minsym): Update.
10497 (ada_make_symbol_completion_list): Update.
10498 (ada_add_standard_exceptions): Update.
10499 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10500 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10501 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10502 * arm-tdep.c (skip_prologue_function): Update.
10503 (arm_skip_stack_protector, arm_skip_stub): Update.
10504 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10505 (arm_wince_skip_main_prologue): Update.
10506 * auxv.c (ld_so_xfer_auxv): Update.
10507 * avr-tdep.c (avr_scan_prologue): Update.
10508 * ax-gdb.c (gen_var_ref): Update.
10509 * block.c (call_site_for_pc): Update.
10510 * blockframe.c (get_pc_function_start): Update.
10511 (find_pc_partial_function_gnu_ifunc): Update.
10512 * breakpoint.c (create_overlay_event_breakpoint): Update.
10513 (create_longjmp_master_breakpoint): Update.
10514 (create_std_terminate_master_breakpoint): Update.
10515 (create_exception_master_breakpoint): Update.
10516 (resolve_sal_pc): Update.
10517 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10518 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10520 * c-valprint.c (c_val_print): Update.
10521 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10522 * coffread.c (coff_symfile_read): Update.
10523 * common/agent.c (agent_look_up_symbols): Update.
10524 * dbxread.c (find_stab_function_addr): Update.
10525 (end_psymtab): Update.
10526 * dwarf2loc.c (call_site_to_target_addr): Update.
10527 (func_verify_no_selftailcall): Update.
10528 (tailcall_dump): Update.
10529 (call_site_find_chain_1): Update.
10530 (dwarf_expr_reg_to_entry_parameter): Update.
10531 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10532 (elf_gnu_ifunc_resolve_by_got): Update.
10533 * f-valprint.c (info_common_command): Update.
10534 * findvar.c (read_var_value): Update.
10535 * frame.c (get_prev_frame_1): Update.
10536 (inside_main_func): Update.
10537 * frv-tdep.c (frv_skip_main_prologue): Update.
10538 (frv_frame_this_id): Update.
10539 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10540 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10541 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10542 (gnuv3_skip_trampoline): Update.
10543 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10544 (hppa64_hpux_in_solib_call_trampoline): Update.
10545 (hppa_hpux_skip_trampoline_code): Update.
10546 (hppa64_hpux_search_dummy_call_sequence): Update.
10547 (hppa_hpux_find_import_stub_for_addr): Update.
10548 (hppa_hpux_find_dummy_bpaddr): Update.
10549 * hppa-tdep.c (hppa_symbol_address)
10550 (hppa_lookup_stub_minimal_symbol): Update.
10551 * i386-tdep.c (i386_skip_main_prologue): Update.
10552 (i386_pe_skip_trampoline_code): Update.
10553 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10554 * infcall.c (get_function_name): Update.
10555 * infcmd.c (until_next_command): Update.
10556 * jit.c (jit_breakpoint_re_set_internal): Update.
10557 (jit_inferior_init): Update.
10558 * linespec.c (minsym_found): Update.
10559 (add_minsym): Update.
10560 * linux-fork.c (info_checkpoints_command): Update.
10561 * linux-nat.c (get_signo): Update.
10562 * linux-thread-db.c (inferior_has_bug): Update.
10563 * m32c-tdep.c (m32c_return_value): Update.
10564 (m32c_m16c_address_to_pointer): Update.
10565 (m32c_m16c_pointer_to_address): Update.
10566 * m32r-tdep.c (m32r_frame_this_id): Update.
10567 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10568 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10569 * maint.c (maintenance_translate_address): Update.
10570 * minsyms.c (add_minsym_to_hash_table): Update.
10571 (add_minsym_to_demangled_hash_table): Update.
10572 (msymbol_objfile): Update.
10573 (lookup_minimal_symbol): Update.
10574 (iterate_over_minimal_symbols): Update.
10575 (lookup_minimal_symbol_text): Update.
10576 (lookup_minimal_symbol_by_pc_name): Update.
10577 (lookup_minimal_symbol_solib_trampoline): Update.
10578 (lookup_minimal_symbol_by_pc_section_1): Update.
10579 (lookup_minimal_symbol_and_objfile): Update.
10580 (prim_record_minimal_symbol_full): Update.
10581 (compare_minimal_symbols): Update.
10582 (compact_minimal_symbols): Update.
10583 (build_minimal_symbol_hash_tables): Update.
10584 (install_minimal_symbols): Update.
10585 (terminate_minimal_symbol_table): Update.
10586 (find_solib_trampoline_target): Update.
10587 (minimal_symbol_upper_bound): Update.
10588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10589 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10590 (mips_skip_pic_trampoline_code): Update.
10591 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10592 * objc-lang.c (selectors_info): Update.
10593 (classes_info): Update.
10594 (find_methods): Update.
10595 (find_imps): Update.
10596 (find_objc_msgsend): Update.
10597 * objfiles.c (objfile_relocate1): Update.
10598 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10599 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10600 * p-valprint.c (pascal_val_print): Update.
10601 * parse.c (write_exp_msymbol): Update.
10602 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10603 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10605 * printcmd.c (build_address_symbolic): Update.
10606 (sym_info): Update.
10607 (address_info): Update.
10608 * proc-service.c (ps_pglobal_lookup): Update.
10609 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10610 (find_pc_sect_psymtab): Update.
10611 * python/py-framefilter.c (py_print_frame): Update.
10612 * ravenscar-thread.c (get_running_thread_id): Update.
10613 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10615 * remote.c (remote_check_symbols): Update.
10616 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10617 (rs6000_skip_trampoline_code): Update.
10618 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10619 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10620 * solib-dsbt.c (lm_base): Update.
10621 * solib-frv.c (lm_base): Update.
10622 (main_got): Update.
10623 * solib-irix.c (locate_base): Update.
10624 * solib-som.c (som_solib_create_inferior_hook): Update.
10625 (som_solib_desire_dynamic_linker_symbols): Update.
10626 (link_map_start): Update.
10627 * solib-spu.c (spu_enable_break): Update.
10628 (ocl_enable_break): Update.
10629 * solib-svr4.c (elf_locate_base): Update.
10630 (enable_break): Update.
10631 * spu-tdep.c (spu_get_overlay_table): Update.
10632 (spu_catch_start): Update.
10633 (flush_ea_cache): Update.
10634 * stabsread.c (define_symbol): Update.
10635 (scan_file_globals): Update.
10636 * stack.c (find_frame_funname): Update.
10637 (frame_info): Update.
10638 * symfile.c (simple_read_overlay_table): Update.
10639 (simple_overlay_update): Update.
10640 * symmisc.c (dump_msymbols): Update.
10641 * symtab.c (fixup_section): Update.
10642 (find_pc_sect_line): Update.
10643 (skip_prologue_sal): Update.
10644 (search_symbols): Update.
10645 (print_msymbol_info): Update.
10646 (rbreak_command): Update.
10647 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10648 (completion_list_objc_symbol): Update.
10649 (default_make_symbol_completion_list_break_on): Update.
10650 * tracepoint.c (scope_info): Update.
10651 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10652 (tui_get_begin_asm_address): Update.
10653 * valops.c (find_function_in_inferior): Update.
10654 * value.c (value_static_field): Update.
10655 (value_fn_field): Update.
10657 2014-02-26 Tom Tromey <tromey@redhat.com>
10659 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10660 bound minimal symbols. Move code that knows about minsym
10662 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10664 * minsyms.h (minimal_symbol_upper_bound): Declare.
10665 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10666 minimal_symbol_upper_bound.
10668 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10670 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10671 Use the type's name if its basic type does not have a tag.
10673 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10675 * dwarf2read.c (read_subrange_type): Add comment.
10677 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10679 * dwarf2read.c (update_enumeration_type_from_children): New
10680 function, mostly extracted from process_structure_scope.
10681 (read_enumeration_type): Call update_enumeration_type_from_children.
10682 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10683 and flag_flag_enum fields.
10685 2014-02-26 Pedro Alves <palves@redhat.com>
10687 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10688 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10689 to_xfer_partial method.
10691 2014-02-26 Pedro Alves <palves@redhat.com>
10693 * target.c (complete_target_initialization): Don't install
10694 default_xfer_partial as to_xfer_partial hook.
10695 (nomemory): Delete.
10696 (update_current_target): Don't INHERIT nor de_fault
10697 deprecated_xfer_memory. Delete de_fault macro.
10698 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10699 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10700 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10703 2014-02-26 Pedro Alves <palves@redhat.com>
10705 * go32-nat.c (my_write_child): New function.
10706 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10707 (go32_xfer_partial): New function.
10708 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10709 Instead install a to_xfer_partial hook.
10711 2014-02-26 Pedro Alves <palves@redhat.com>
10713 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10714 to_xfer_partial helper. Rewrite.
10715 (procfs_xfer_partial): New function.
10716 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10717 Install a to_xfer_partial hook.
10719 2014-02-26 Pedro Alves <palves@redhat.com>
10721 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10722 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10723 (m32r_xfer_partial): New function.
10724 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10725 Install a to_xfer_partial hook.
10727 2014-02-26 Pedro Alves <palves@redhat.com>
10729 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10731 (mips_xfer_partial): New function.
10732 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10733 hook. Install a to_xfer_partial hook.
10735 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10737 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10738 * gdbtypes.c (create_array_type_with_stride): New function,
10739 renaming create_array_type, but with an added parameter
10740 called "bit_stride".
10741 (create_array_type): Re-implement using
10742 create_array_type_with_stride.
10743 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10744 and DW_AT_bit_stride attributes.
10746 2014-02-26 Pedro Alves <palves@redhat.com>
10748 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10749 task-specific breakpoints.
10751 2014-02-25 Pedro Alves <palves@redhat.com>
10753 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10754 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10756 2014-02-25 Stan Shebs <stan@codesourcery.com>
10758 * defs.h: Annotate comments for Doxygen.
10760 2014-02-25 Tom Tromey <tromey@redhat.com>
10762 * target.h (target_ignore): Don't declare.
10763 * target.c (target_ignore): Remove.
10765 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10768 * auto-load.c (auto_load_objfile_script_1): Change filename to
10771 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10773 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10774 documentation. Adjust prototype to match the target_ops
10775 to_xfer_partial method. Adjust implementation accordingly.
10777 2014-02-25 Hui Zhu <hui@codesourcery.com>
10779 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10780 to_traceframe_info.
10782 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10784 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10785 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10786 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10787 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10788 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10789 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10790 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10791 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10793 (rl78_register_type): Use a data pointer type for SP and
10794 new pseudo registers mentioned above. Use a 16 bit integer
10795 type for all other register pairs.
10796 (rl78_register_name, rl78_g10_register_name): Update for
10797 new pseudo registers.
10798 (rl78_pseudo_register_read): Likewise.
10799 (rl78_pseudo_register_write): Likewise.
10800 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10801 to the newly added pseudo registers.
10803 2014-02-24 Doug Evans <dje@google.com>
10805 * value.c (record_latest_value): Fix comment.
10806 * printcmd.c (print_command_1): Remove code to handle -1 return from
10807 record_latest_value.
10809 2014-02-24 Pedro Alves <palves@redhat.com>
10811 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10812 deprecated_xfer_memory hook.
10813 (procfs_xfer_partial): Call procfs_xfer_memory instead
10814 of the deprecated_xfer_memory target hook.
10815 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10818 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10820 * windows-nat.c (windows_xfer_shared_libraries): Return
10821 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10822 requested object is TARGET_OBJECT_LIBRARIES.
10824 2014-02-24 Yao Qi <yao@codesourcery.com>
10826 * target.h (enum target_xfer_status)
10827 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10828 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10830 * corefile.c (memory_error_message): User updated.
10831 * exec.c (section_table_read_available_memory): Likewise.
10832 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10833 * target.c (target_xfer_status_to_string): Likewise.
10834 (raw_memory_xfer_partial): Likewise.
10835 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10836 * valops.c (read_value_memory): Likewise.
10837 * exec.h: Update comments.
10839 2014-02-24 Yao Qi <yao@codesourcery.com>
10841 * target.c (target_xfer_status_to_string): Rename argument err
10843 * target.h (target_xfer_status_to_string): Update declaration.
10844 Replace target_xfer_error_to_string with
10845 target_xfer_status_to_string in comment.
10847 2014-02-24 Yao Qi <yao@codesourcery.com>
10849 * mips-linux-nat.c (super_close): Update its type.
10850 (mips_linux_close): Pass 'self' to super_close.
10852 2014-02-24 Yao Qi <yao@codesourcery.com>
10854 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10855 * corefile.c (read_memory): Adjusted.
10856 * target.c (target_write_with_progress): Adjusted.
10858 2014-02-23 Yao Qi <yao@codesourcery.com>
10860 Revert two patches:
10862 2013-10-25 Yao Qi <yao@codesourcery.com>
10864 * remote.c (remote_traceframe_info): Return early if
10865 traceframe is not selected.
10867 2013-07-19 Yao Qi <yao@codesourcery.com>
10869 * target.c (update_current_target): Change the default action
10870 of 'to_traceframe_info' from tcomplain to return_zero.
10871 * target.h (struct target_ops) <to_traceframe_info>: Add more
10874 2014-02-23 Yao Qi <yao@codesourcery.com>
10876 * valops.c (read_value_memory): Rewrite it. Call
10877 target_xfer_partial in a loop.
10878 * exec.h (section_table_available_memory): Remove declaration.
10879 Move comments to ...
10880 * exec.c (section_table_available_memory): ... here. Make it
10883 2014-02-23 Yao Qi <yao@codesourcery.com>
10885 * exec.c (section_table_read_available_memory): New function.
10886 * exec.h (section_table_read_available_memory): Declare.
10887 * ctf.c (ctf_xfer_partial): Call
10888 section_table_read_available_memory.
10889 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10891 2014-02-23 Yao Qi <yao@codesourcery.com>
10893 * ctf.c (ctf_xfer_partial): Move code to ...
10894 * exec.c (exec_read_partial_read_only): ... it. New function.
10895 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10896 * tracefile.c: Include "exec.h".
10897 * exec.h (exec_read_partial_read_only): Declare.
10899 2014-02-23 Yao Qi <yao@codesourcery.com>
10901 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10902 (tfile_has_memory): Remove.
10903 (init_tfile_ops): Don't set fields to_has_all_memory and
10904 to_has_memory of tfile_ops.
10905 * tracefile.c (tracefile_has_all_memory): New function.
10906 (tracefile_has_memory): New function.
10907 (init_tracefile_ops): Initialize fields to_has_all_memory and
10908 to_has_memory of 'ops'.
10910 2014-02-23 Yao Qi <yao@codesourcery.com>
10912 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10913 (ctf_thread_alive, ctf_get_trace_status): Remove.
10914 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10915 init_tracefile_ops.
10916 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10917 (tfile_has_stack, tfile_has_registers): Remove.
10918 (tfile_thread_alive): Remove.
10919 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10920 init_tracefile_ops.
10921 * tracefile.c (tracefile_has_stack): New function.
10922 (tracefile_has_registers): New function.
10923 (tracefile_thread_alive): New function.
10924 (tracefile_get_trace_status): New function.
10925 (init_tracefile_ops): New function.
10926 * tracefile.h (init_tracefile_ops): Declare.
10928 2014-02-23 Yao Qi <yao@codesourcery.com>
10930 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10931 (O_LARGEFILE): Likewise.
10932 (tfile_ops): Likewise.
10933 (TRACE_HEADER_SIZE): Likewise.
10934 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10935 (cur_data_size): Likewise.
10936 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10937 (tfile_close, tfile_files_info): Likewise.
10938 (tfile_get_trace_status): Likewise.
10939 (tfile_get_tracepoint_status): Likewise.
10940 (tfile_get_traceframe_address): Likewise.
10941 (tfile_trace_find, match_blocktype): Likewise.
10942 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10943 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10944 (tfile_get_trace_state_variable_value): Likewise.
10945 (tfile_has_all_memory, tfile_has_memory): Likewise.
10946 (tfile_has_stack, tfile_has_registers): Likewise.
10947 (tfile_thread_alive, build_traceframe_info): Likewise.
10948 (tfile_traceframe_info, init_tfile_ops): Likewise.
10949 (_initialize_tracepoint): Don't call init_tfile_ops
10950 and add_target_with_completer.
10951 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10952 exec.h, completer.h and filenames.h.
10953 (_initialize_tracefile_tfile): New function.
10955 2014-02-23 Yao Qi <yao@codesourcery.com>
10957 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10959 (HFILES_NO_SRCDIR): Add tracefile.h.
10960 * ctf.c: Include "tracefile.h".
10961 * tracefile.h: New file.
10962 * tracefile.c: New file
10963 * tracefile-tfile.c: New file.
10964 * tracepoint.c: Include "tracefile.h".
10965 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10966 (stop_reason_names): Add const.
10967 (trace_file_writer_xfree): Move it to tracefile.c.
10968 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10969 (trace_save_ctf): Likewise.
10970 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10971 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10972 (tfile_write_header, tfile_write_regblock_type): Likewise.
10973 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10974 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10975 (tfile_write_raw_data, tfile_end): Likewise.
10976 (tfile_trace_file_writer_new): Likewise.
10977 (free_uploaded_tp): Make it extern.
10978 (free_uploaded_tsv): Make it extern.
10979 (_initialize_tracepoint): Move code to register command 'tsave'
10981 * tracepoint.h (stop_reason_names): Declare.
10982 (struct trace_frame_write_ops): Move it to tracefile.h.
10983 (struct trace_file_write_ops): Likewise.
10984 (struct trace_file_writer): Likewise.
10985 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10987 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10990 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10992 (get_cores_used_by_process): New parameter num_cores, use it.
10993 (linux_xfer_osdata_processes): Pass num_cores to it.
10994 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10997 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10999 * target.c (memory_xfer_partial): Fix length arg in call to
11000 breakpoint_xfer_memory.
11002 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11005 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11006 number comes after the + or - signs. Adjust length of register
11007 name to be extracted.
11009 2014-02-20 Tom Tromey <tromey@redhat.com>
11011 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11012 (ada_varobj_ops): Mark "extern".
11014 2014-02-20 Tom Tromey <tromey@redhat.com>
11016 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11018 2014-02-20 Doug Evans <xdje42@gmail.com>
11020 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11021 All callers updated.
11022 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11023 All callers updated.
11024 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11025 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11027 2014-02-20 lin zuojian <manjian2006@gmail.com>
11028 Joel Brobecker <brobecker@adacore.com>
11029 Doug Evans <xdje42@gmail.com>
11032 * dwarf2read.c (struct die_info): New member in_process.
11033 (reset_die_in_process): New function.
11034 (process_die): Set it at the start, reset when returning.
11035 (inherit_abstract_dies): Only call process_die if origin_child_die
11036 not already being processed.
11038 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11040 * windows-nat.c (handle_unload_dll): Add function documentation.
11041 (do_initial_windows_stuff): Add comment explaining why we wait
11042 until after inferior initialization has finished before
11043 processing all DLLs.
11045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11047 * windows-nat.c (get_module_name): Delete.
11048 (windows_get_exec_module_filename): New function, mostly
11049 inspired from get_module_name.
11050 (windows_pid_to_exec_file): Replace call to get_module_name
11051 by call to windows_get_exec_module_filename.
11053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11055 * windows-nat.c (handle_load_dll): Rewrite this function's
11056 introductory comment. Remove code using get_module_name
11057 to get the DLL's name.
11059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11061 * windows-nat.c (get_windows_debug_event): Ignore
11062 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11063 if windows_initialization_done == 0.
11064 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11065 Adjust implementation to always load all DLLs.
11066 (do_initial_windows_stuff): Replace call to
11067 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11071 * windows-nat.c (_initialize_windows_nat): Deprecate the
11072 "dll-symbols" command. Turn the "add-shared-symbol-files"
11073 and "assf" aliases into commands, and deprecate them as well.
11074 * NEWS: Add entry explaining that "dll-symbols" and its two
11075 aliases are now deprecated.
11077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11079 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11080 new-line in debug string. Remove trailing spaces.
11082 2014-02-19 Stan Shebs <stan@codesourcery.com>
11084 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11086 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11088 * NEWS: Add entry for the new feature
11089 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11092 2014-02-19 Stan Shebs <stan@codesourcery.com>
11094 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11096 2014-02-19 Pedro Alves <palves@redhat.com>
11098 * common/ptid.h (struct ptid): Mention that process_stratum
11099 targets should prefer ptid.lwp.
11101 2014-02-19 Pedro Alves <palves@redhat.com>
11103 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11104 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11105 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11106 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11107 store remote thread ids rather than ptid.tid.
11108 (_initialize_remote): Adjust.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target.c (target_get_unwinder): Rewrite.
11113 (target_get_tailcall_unwinder): Rewrite.
11114 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11115 (record_btrace_to_get_tailcall_unwinder): New function.
11116 (init_record_btrace_ops): Update.
11117 * target.h (struct target_ops) <to_get_unwinder,
11118 to_get_tailcall_unwinder>: Now function pointers. Use
11119 TARGET_DEFAULT_RETURN.
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11125 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11131 * target-delegates.c: Rebuild.
11132 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11133 TARGET_DEFAULT_FUNC.
11134 * target.c (default_target_decr_pc_after_break): Rename from
11135 forward_target_decr_pc_after_break. Simplify.
11136 (target_decr_pc_after_break): Rely on delegation.
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * target.c (update_current_target): Do not INHERIT to_doc or
11141 to_magic. Do not de_fault to_open or to_close.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * gcore.h (objfile_find_memory_regions): Declare.
11146 * gcore.c (objfile_find_memory_regions): No longer static. Add
11148 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11149 * exec.c: Include gcore.h.
11150 (exec_set_find_memory_regions): Remove.
11151 (exec_find_memory_regions): Remove.
11152 (exec_do_find_memory_regions): Remove.
11153 (init_exec_ops): Update.
11154 * defs.h (exec_set_find_memory_regions): Remove.
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11158 * target-delegates.c: Rebuild.
11159 * target.h (struct target_ops) <to_extra_thread_info,
11160 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11161 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11162 not 0, in TARGET_DEFAULT_RETURN.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.c (complete_target_initialization): Remove casts. Use
11167 return_zero_has_execution.
11168 (return_zero): Add "ignore" argument.
11169 (return_zero_has_execution): New function.
11170 (init_dummy_target): Remove casts. Use
11171 return_zero_has_execution.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target.c (update_current_target): Update comments. Do not
11176 INHERIT to_stratum.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11182 * corelow.c (core_read_description): Delegate when needed.
11183 * remote.c (remote_read_description): Delegate when needed.
11184 * target-delegates.c: Rebuild.
11185 * target.c (target_read_description): Rewrite.
11186 * target.h (struct target_ops) <to_read_description>: Update
11187 comment. Use TARGET_DEFAULT_RETURN.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11194 (find_default_run_target): Check against delegate_can_run.
11195 * target.h (struct target_ops) <to_can_run>: Use
11196 TARGET_DEFAULT_RETURN.
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target-delegates.c: Rebuild.
11201 * target.c (target_disconnect): Unconditionally delegate.
11202 * target.h (struct target_ops) <to_disconnect>: Use
11203 TARGET_DEFAULT_NORETURN.
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * record.c (record_stop): Unconditionally delegate.
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_stop_recording): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_stop_recording>: Use
11211 TARGET_DEFAULT_IGNORE.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (target_enable_btrace): Unconditionally delegate.
11217 * target.h (struct target_ops) <to_enable_btrace>: Use
11218 TARGET_DEFAULT_NORETURN.
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_read_btrace): Unconditionally delegate.
11224 * target.h (struct target_ops) <to_read_btrace>: Use
11225 TARGET_DEFAULT_NORETURN.
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_teardown_btrace): Unconditionally delegate.
11231 * target.h (struct target_ops) <to_teardown_btrace>: Use
11232 TARGET_DEFAULT_NORETURN.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target-delegates.c: Rebuild.
11237 * target.c (target_disable_btrace): Unconditionally delegate.
11238 * target.h (struct target_ops) <to_disable_btrace>: Use
11239 TARGET_DEFAULT_NORETURN.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target-delegates.c: Rebuild.
11244 * target.c (default_search_memory): New function.
11245 (simple_search_memory): Update comment.
11246 (target_search_memory): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_search_memory>: Use
11248 TARGET_DEFAULT_FUNC.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * auxv.c (default_auxv_parse): No longer static.
11253 (target_auxv_parse): Unconditionally delegate.
11254 * auxv.h (default_auxv_parse): Declare.
11255 * target-delegates.c: Rebuild.
11256 * target.c: Include auxv.h.
11257 * target.h (struct target_ops) <to_auxv_parse>: Use
11258 TARGET_DEFAULT_FUNC.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target-delegates.c: Rebuild.
11263 * target.c (target_memory_map): Unconditionally delegate.
11264 * target.h (struct target_ops) <to_memory_map>: Use
11265 TARGET_DEFAULT_RETURN.
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11269 * target-delegates.c: Rebuild.
11270 * target.c (target_thread_alive): Unconditionally delegate.
11271 * target.h (struct target_ops) <to_thread_alive>: Use
11272 TARGET_DEFAULT_RETURN.
11274 2014-02-19 Tom Tromey <tromey@redhat.com>
11276 * target-delegates.c: Rebuild.
11277 * target.c (target_save_record): Unconditionally delegate.
11278 * target.h (struct target_ops) <to_save_record>: Use
11279 TARGET_DEFAULT_NORETURN.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * target-delegates.c: Rebuild.
11284 * target.c (target_delete_record): Unconditionally delegate.
11285 * target.h (struct target_ops) <to_delete_record>: Use
11286 TARGET_DEFAULT_NORETURN.
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_record_is_replaying): Unconditionally
11293 * target.h (struct target_ops) <to_record_is_replaying>: Use
11294 TARGET_DEFAULT_RETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_goto_record_begin): Unconditionally delegate.
11300 * target.h (struct target_ops) <to_goto_record_begin>: Use
11301 TARGET_DEFAULT_NORETURN.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * target-delegates.c: Rebuild.
11306 * target.c (target_goto_record_end): Unconditionally delegate.
11307 * target.h (struct target_ops) <to_goto_record_end>: Use
11308 TARGET_DEFAULT_NORETURN.
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11312 * target-delegates.c: Rebuild.
11313 * target.c (target_goto_record): Unconditionally delegate.
11314 * target.h (struct target_ops) <to_goto_record>: Use
11315 TARGET_DEFAULT_NORETURN.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target-delegates.c: Rebuild.
11320 * target.c (target_insn_history): Unconditionally delegate.
11321 * target.h (struct target_ops) <to_insn_history>: Use
11322 TARGET_DEFAULT_NORETURN.
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11326 * target-delegates.c: Rebuild.
11327 * target.c (target_insn_history_from): Unconditionally delegate.
11328 * target.h (struct target_ops) <to_insn_history_from>: Use
11329 TARGET_DEFAULT_NORETURN.
11331 2014-02-19 Tom Tromey <tromey@redhat.com>
11333 * target-delegates.c: Rebuild.
11334 * target.c (target_insn_history_range): Unconditionally delegate.
11335 * target.h (struct target_ops) <to_insn_history_range>: Use
11336 TARGET_DEFAULT_NORETURN.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target-delegates.c: Rebuild.
11341 * target.c (target_call_history): Unconditionally delegate.
11342 * target.h (struct target_ops) <to_call_history>: Use
11343 TARGET_DEFAULT_NORETURN.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target-delegates.c: Rebuild.
11348 * target.c (target_call_history_from): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_call_history_from>: Use
11350 TARGET_DEFAULT_NORETURN.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_call_history_range): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_call_history_range>: Use
11357 TARGET_DEFAULT_NORETURN.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target-delegates.c: Rebuild.
11362 * target.c (target_verify_memory): Unconditionally delegate.
11363 * target.h (struct target_ops) <to_verify_memory>: Use
11364 TARGET_DEFAULT_NORETURN.
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11368 * target-delegates.c: Rebuild.
11369 * target.c (target_core_of_thread): Unconditionally delegate.
11370 * target.h (struct target_ops) <to_core_of_thread>: Use
11371 TARGET_DEFAULT_RETURN.
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11375 * target-delegates.c: Rebuild.
11376 * target.c (target_flash_done): Unconditionally delegate.
11377 * target.h (struct target_ops) <to_flash_done>: Use
11378 TARGET_DEFAULT_NORETURN.
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11382 * target-delegates.c: Rebuild.
11383 * target.c (target_flash_erase): Unconditionally delegate.
11384 * target.h (struct target_ops) <to_flash_erase>: Use
11385 TARGET_DEFAULT_NORETURN.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11389 * target-delegates.c: Rebuild.
11390 * target.c (target_get_section_table): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_get_section_table>: Use
11392 TARGET_DEFAULT_RETURN.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target-delegates.c: Rebuild.
11397 * target.c (target_pid_to_str): Unconditionally delegate.
11398 (init_dummy_target): Don't initialize to_pid_to_str.
11399 (default_pid_to_str): Rename from dummy_pid_to_str.
11400 * target.h (struct target_ops) <to_pid_to_str>: Use
11401 TARGET_DEFAULT_FUNC.
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11405 * target-delegates.c: Rebuild.
11406 * target.c (target_find_new_threads): Unconditionally delegate.
11407 * target.h (struct target_ops) <to_find_new_threads>: Use
11408 TARGET_DEFAULT_RETURN.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_program_signals): Unconditionally delegate.
11414 * target.h (struct target_ops) <to_program_signals>: Use
11415 TARGET_DEFAULT_IGNORE.
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_pass_signals): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_pass_signals>: Use
11422 TARGET_DEFAULT_IGNORE.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (default_mourn_inferior): New function.
11428 (target_mourn_inferior): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_mourn_inferior>: Use
11430 TARGET_DEFAULT_FUNC.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (default_follow_fork): New function.
11436 (target_follow_fork): Unconditionally delegate.
11437 * target.h (struct target_ops) <to_follow_fork>: Use
11438 TARGET_DEFAULT_FUNC.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (target_kill): Unconditionally delegate.
11444 * target.h (struct target_ops) <to_kill>: Use
11445 TARGET_DEFAULT_NORETURN.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (target_masked_watch_num_registers): Unconditionally
11452 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11453 Use TARGET_DEFAULT_RETURN.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (target_remove_mask_watchpoint): Unconditionally
11460 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11461 TARGET_DEFAULT_RETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (target_insert_mask_watchpoint): Unconditionally
11468 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11469 TARGET_DEFAULT_RETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_ranged_break_num_registers): Unconditionally
11476 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11477 Use TARGET_DEFAULT_RETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_fetch_registers): Unconditionally delegate.
11483 * target.h (struct target_ops) <to_fetch_registers>: Use
11484 TARGET_DEFAULT_NORETURN.
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11491 * target.h (struct target_ops) <to_stop>: Use
11492 TARGET_DEFAULT_IGNORE.
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_can_run_breakpoint_commands.
11499 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11500 Use TARGET_DEFAULT_RETURN.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_supports_evaluation_of_breakpoint_conditions.
11507 * target.h (struct target_ops)
11508 <to_supports_evaluation_of_breakpoint_conditions>: Use
11509 TARGET_DEFAULT_RETURN.
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_augmented_libraries_svr4_read.
11516 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11517 Use TARGET_DEFAULT_RETURN.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11524 * target.h (struct target_ops) <to_can_use_agent>: Use
11525 TARGET_DEFAULT_RETURN.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11532 * target.h (struct target_ops) <to_use_agent>: Use
11533 TARGET_DEFAULT_NORETURN.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_traceframe_info.
11540 (return_null): Remove.
11541 * target.h (struct target_ops) <to_traceframe_info>: Use
11542 TARGET_DEFAULT_RETURN.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_static_tracepoint_markers_by_strid.
11549 * target.h (struct target_ops)
11550 <to_static_tracepoint_markers_by_strid>: Use
11551 TARGET_DEFAULT_NORETURN.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_static_tracepoint_marker_at.
11558 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11559 Use TARGET_DEFAULT_RETURN.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_set_permissions.
11566 * target.h (struct target_ops) <to_set_permissions>: Use
11567 TARGET_DEFAULT_IGNORE.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_get_tib_address.
11574 * target.h (struct target_ops) <to_get_tib_address>: Use
11575 TARGET_DEFAULT_NORETURN.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_set_trace_notes.
11582 * target.h (struct target_ops) <to_set_trace_notes>: Use
11583 TARGET_DEFAULT_RETURN.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't initialize
11589 to_set_trace_buffer_size.
11590 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11591 TARGET_DEFAULT_IGNORE.
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_set_circular_trace_buffer.
11598 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11599 TARGET_DEFAULT_IGNORE.
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_set_disconnected_tracing.
11606 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11607 TARGET_DEFAULT_IGNORE.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_get_min_fast_tracepoint_insn_len.
11614 (return_minus_one): Remove.
11615 * target.h (struct target_ops)
11616 <to_get_min_fast_tracepoint_insn_len>: 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
11622 to_get_raw_trace_data.
11623 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11624 TARGET_DEFAULT_NORETURN.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_upload_trace_state_variables.
11631 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11632 Use TARGET_DEFAULT_RETURN.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_upload_tracepoints.
11639 * target.h (struct target_ops) <to_upload_tracepoints>: 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
11646 to_save_trace_data.
11647 * target.h (struct target_ops) <to_save_trace_data>: 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_get_trace_state_variable_value.
11655 * target.h (struct target_ops)
11656 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
11663 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11670 * target.h (struct target_ops) <to_trace_stop>: Use
11671 TARGET_DEFAULT_NORETURN.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_get_tracepoint_status.
11678 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11679 TARGET_DEFAULT_NORETURN.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_get_trace_status.
11686 * target.h (struct target_ops) <to_get_trace_status>: Use
11687 TARGET_DEFAULT_RETURN.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11694 * target.h (struct target_ops) <to_trace_start>: Use
11695 TARGET_DEFAULT_NORETURN.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_trace_set_readonly_regions.
11702 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11703 Use TARGET_DEFAULT_NORETURN.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_disable_tracepoint.
11710 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11711 TARGET_DEFAULT_NORETURN.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_enable_tracepoint.
11718 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_download_trace_state_variable.
11726 * target.h (struct target_ops) <to_download_trace_state_variable>:
11727 Use TARGET_DEFAULT_NORETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_can_download_tracepoint.
11734 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11735 TARGET_DEFAULT_RETURN.
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_download_tracepoint.
11742 * target.h (struct target_ops) <to_download_tracepoint>: Use
11743 TARGET_DEFAULT_NORETURN.
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11750 * target.h (struct target_ops) <to_trace_init>: Use
11751 TARGET_DEFAULT_RETURN.
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_supports_string_tracing.
11758 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11759 TARGET_DEFAULT_RETURN.
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_supports_enable_disable_tracepoint.
11766 * target.h (struct target_ops)
11767 <to_supports_enable_disable_tracepoint>: Use
11768 TARGET_DEFAULT_RETURN.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_supports_multi_process.
11775 * target.h (struct target_ops) <to_supports_multi_process>: Use
11776 TARGET_DEFAULT_RETURN.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_get_ada_task_ptid.
11783 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11784 TARGET_DEFAULT_FUNC.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_thread_architecture.
11791 * target.h (struct target_ops) <to_thread_architecture>: Use
11792 TARGET_DEFAULT_FUNC.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_execution_direction.
11799 * target.h (struct target_ops) <to_execution_direction>: Use
11800 TARGET_DEFAULT_FUNC.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_can_execute_reverse.
11807 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11808 TARGET_DEFAULT_RETURN.
11809 (target_can_execute_reverse): 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
11816 (dummy_goto_bookmark): Remove.
11817 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11818 * target.h (struct target_ops) <to_goto_bookmark>: Use
11819 TARGET_DEFAULT_NORETURN.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11826 (dummy_get_bookmark): Remove.
11827 (init_dummy_target): Don't inherit or default to_get_bookmark.
11828 * target.h (struct target_ops) <to_get_bookmark>: Use
11829 TARGET_DEFAULT_NORETURN
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * target-delegates.c: Rebuild.
11834 * target.c (update_current_target): Don't inherit or default
11835 to_make_corefile_notes.
11836 (init_dummy_target): Don't initialize to_make_corefile_notes.
11837 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11838 TARGET_DEFAULT_FUNC.
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11842 * target-delegates.c: Rebuild.
11843 * target.c (update_current_target): Don't inherit or default
11844 to_find_memory_regions.
11845 (init_dummy_target): Don't initialize to_find_memory_regions.
11846 * target.h (struct target_ops) <to_find_memory_regions>: Use
11847 TARGET_DEFAULT_FUNC.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11854 * target.h (struct target_ops) <to_log_command>: Use
11855 TARGET_DEFAULT_IGNORE.
11856 (target_log_command): Unconditionally delegate.
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_pid_to_exec_file.
11863 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11864 TARGET_DEFAULT_RETURN.
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11871 (target_thread_name): Unconditionally delegate.
11872 * target.h (struct target_ops) <to_thread_name>: Use
11873 TARGET_DEFAULT_RETURN.
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11877 * target-delegates.c: Rebuild.
11878 * target.c (update_current_target): Don't inherit or default
11879 to_extra_thread_info.
11880 * target.h (struct target_ops) <to_extra_thread_info>: Use
11881 TARGET_DEFAULT_RETURN.
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * target-delegates.c: Rebuild.
11886 * target.c (update_current_target): Don't inherit or default
11888 * target.h (struct target_ops) <to_has_exited>: Use
11889 TARGET_DEFAULT_RETURN..
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_set_syscall_catchpoint.
11896 (return_one): Remove.
11897 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11898 TARGET_DEFAULT_RETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_insert_exec_catchpoint.
11905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11906 TARGET_DEFAULT_RETURN.
11908 2014-01-08 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_insert_exec_catchpoint.
11913 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11914 TARGET_DEFAULT_RETURN.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_remove_vfork_catchpoint.
11921 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11922 TARGET_DEFAULT_RETURN.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_insert_vfork_catchpoint.
11929 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11930 TARGET_DEFAULT_RETURN.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_remove_fork_catchpoint.
11937 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11938 TARGET_DEFAULT_RETURN.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_insert_fork_catchpoint.
11945 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11946 TARGET_DEFAULT_RETURN.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_post_startup_inferior.
11953 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11954 TARGET_DEFAULT_IGNORE.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11961 * target.h (struct target_ops) <to_load>: Use
11962 TARGET_DEFAULT_NORETURN.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11969 * target.h (struct target_ops) <to_terminal_info>: Use
11970 TARGET_DEFAULT_FUNC.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_terminal_save_ours.
11977 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11978 TARGET_DEFAULT_IGNORE.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11985 * target.h (struct target_ops) <to_terminal_ours>: Use
11986 TARGET_DEFAULT_IGNORE.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11992 to_terminal_ours_for_output.
11993 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11994 TARGET_DEFAULT_IGNORE.
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_terminal_inferior.
12001 * target.h (struct target_ops) <to_terminal_inferior>: Use
12002 TARGET_DEFAULT_IGNORE.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12009 * target.h (struct target_ops) <to_terminal_init>: Use
12010 TARGET_DEFAULT_IGNORE.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_can_accel_watchpoint_condition.
12017 * target.h (struct target_ops)
12018 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_region_ok_for_hw_watchpoint.
12025 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12026 Use TARGET_DEFAULT_FUNC.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_watchpoint_addr_within_range.
12033 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12034 Use TARGET_DEFAULT_FUNC.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_remove_watchpoint.
12041 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12042 TARGET_DEFAULT_NORETURN.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_insert_watchpoint.
12049 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_remove_hw_breakpoint.
12057 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_insert_hw_breakpoint.
12065 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_can_use_hw_breakpoint.
12073 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12074 TARGET_DEFAULT_RETURN.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12081 * target.h (struct target_ops) <to_files_info>: Use
12082 TARGET_DEFAULT_IGNORE.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12089 * target.h (struct target_ops) <to_store>: Use
12090 TARGET_DEFAULT_NORETURN.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12097 * target.h (struct target_ops) <to_post_attach>: Use
12098 TARGET_DEFAULT_IGNORE.
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12105 (default_rcmd): New function.
12106 (do_monitor_command): Unconditionally delegate.
12107 * target.h (struct target_ops) <to_rmcd>: Use
12108 TARGET_DEFAULT_FUNC.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (init_dummy_target): Don't initialize to_attach.
12114 (target_attach): Unconditionally delegate.
12115 * target.h (struct target_ops) <to_attach>: Use
12116 TARGET_DEFAULT_FUNC.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target-delegates.c: Rebuild.
12121 * target.c (target_detach): Unconditionally delegate.
12122 (init_dummy_target): Don't initialize to_detach.
12123 * target.h (struct target_ops) <to_detach>: Use
12124 TARGET_DEFAULT_IGNORE.
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12130 (target_augmented_libraries_svr4_read): Add argument.
12131 * target.c (update_current_target): Update.
12132 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target.h (struct target_ops) <to_call_history_range>: Add
12139 * target.c (target_call_history_range): Add argument.
12140 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12142 (record_btrace_call_history_from): Update.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops) <to_call_history_from>: Add
12148 * target.c (target_call_history_from): Add argument.
12149 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target.h (struct target_ops) <to_call_history>: Add argument.
12155 * target.c (target_call_history): Add argument.
12156 * record-btrace.c (record_btrace_call_history): Add 'self'
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target.h (struct target_ops) <to_insn_history_range>: Add
12163 * target.c (target_insn_history_range): Add argument.
12164 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12166 (record_btrace_insn_history_from): Update.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target.h (struct target_ops) <to_insn_history_from>: Add
12172 * target.c (target_insn_history_from): Add argument.
12173 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target.h (struct target_ops) <to_insn_history>: Add argument.
12179 * target.c (target_insn_history): Add argument.
12180 * record-btrace.c (record_btrace_insn_history): Add 'self'
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12185 * target.h (struct target_ops) <to_goto_record>: Add argument.
12186 * target.c (target_goto_record): Add argument.
12187 * record-full.c (record_full_goto): Add 'self' argument.
12188 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12192 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12193 * target.c (target_goto_record_end): Add argument.
12194 * record-full.c (record_full_goto_end): Add 'self' argument.
12195 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * target.h (struct target_ops) <to_goto_record_begin>: Add
12201 * target.c (target_goto_record_begin): Add argument.
12202 * record-full.c (record_full_goto_begin): Add 'self' argument.
12203 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12208 * target.h (struct target_ops) <to_record_is_replaying>: Add
12210 * target.c (target_record_is_replaying): Add argument.
12211 * record-full.c (record_full_is_replaying): Add 'self' argument.
12212 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12214 (record_btrace_xfer_partial, record_btrace_store_registers)
12215 (record_btrace_prepare_to_store, record_btrace_resume)
12216 (record_btrace_wait, record_btrace_decr_pc_after_break)
12217 (record_btrace_find_new_threads, record_btrace_thread_alive):
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12222 * target.h (struct target_ops) <to_delete_record>: Add argument.
12223 * target.c (target_delete_record): Add argument.
12224 * record-full.c (record_full_delete): Add 'self' argument.
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12228 * target.h (struct target_ops) <to_save_record>: Add argument.
12229 * target.c (target_save_record): Add argument.
12230 * record-full.c (record_full_save): Add 'self' argument.
12231 (record_full_save): Add 'self' argument.
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target.h (struct target_ops) <to_info_record>: Add argument.
12236 * target.c (target_info_record): Add argument.
12237 * record.c (info_record_command): Add argument.
12238 * record-full.c (record_full_info): Add 'self' argument.
12239 * record-btrace.c (record_btrace_info): Add 'self' argument.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12244 * target.c (target_stop_recording): Add argument.
12245 * record.c (record_stop): Add argument.
12246 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12251 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12252 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12253 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12255 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12256 (_initialize_amd64_linux_nat): Use it.
12257 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12258 (_initialize_i386_linux_nat): Use it.
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12263 * target.c (target_teardown_btrace): Add argument.
12264 * remote.c (remote_teardown_btrace): Add 'self' argument.
12265 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12267 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12273 * target.c (target_disable_btrace): Add argument.
12274 * remote.c (remote_disable_btrace): Add 'self' argument.
12275 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12277 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12283 * target.c (target_enable_btrace): Add argument.
12284 * remote.c (remote_enable_btrace): Add 'self' argument.
12285 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12287 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12292 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12293 (target_can_use_agent): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_can_use_agent): Add 'self' argument.
12296 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12300 * target.h (struct target_ops) <to_use_agent>: Add argument.
12301 (target_use_agent): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_use_agent): Add 'self' argument.
12304 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12308 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12309 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12310 (target_traceframe_info): Add argument.
12311 * target.c (update_current_target): Update.
12312 * remote.c (remote_traceframe_info): Add 'self' argument.
12313 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (target_static_tracepoint_markers_by_strid): Add
12319 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12321 * target.c (update_current_target): Update.
12322 * remote.c (struct target_ops)
12323 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12324 * linux-nat.c (struct target_ops)
12325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12331 (target_static_tracepoint_marker_at): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12336 2014-02-19 Tom Tromey <tromey@redhat.com>
12338 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12339 (target_set_permissions): Add argument.
12340 * target.c (update_current_target): Update.
12341 * remote.c (remote_set_permissions): Add 'self' argument.
12342 (remote_start_remote): Update.
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12347 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12348 (target_get_tib_address): Add argument.
12349 * target.c (update_current_target): Update.
12350 * remote.c (remote_get_tib_address): Add 'self' argument.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12355 (target_set_trace_notes): Add argument.
12356 * target.c (update_current_target): Update.
12357 * remote.c (remote_set_trace_notes): Add 'self' argument.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12363 (target_set_trace_buffer_size): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12371 (target_set_circular_trace_buffer): Add argument.
12372 * target.c (update_current_target): Update.
12373 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12380 (target_set_disconnected_tracing): Add argument.
12381 * target.c (update_current_target): Update.
12382 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12386 * target.h (struct target_ops)
12387 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12388 (target_get_min_fast_tracepoint_insn_len): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12395 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12397 (target_get_raw_trace_data): Add argument.
12398 * target.c (update_current_target): Update.
12399 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12403 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12405 (target_upload_trace_state_variables): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_upload_trace_state_variables): Add 'self'
12409 (remote_start_remote): Update.
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12413 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12415 (target_upload_tracepoints): Add argument.
12416 * target.c (update_current_target): Update.
12417 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12418 (remote_start_remote): Update.
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12422 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12423 (target_save_trace_data): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_save_trace_data): Add 'self' argument.
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12429 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12431 * target.h (struct target_ops)
12432 <to_get_trace_state_variable_value>: Add argument.
12433 (target_get_trace_state_variable_value): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12437 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12442 * target.h (struct target_ops) <to_trace_find>: Add argument.
12443 (target_trace_find): Add argument.
12444 * target.c (update_current_target): Update.
12445 * remote.c (remote_trace_find): Add 'self' argument.
12446 * ctf.c (ctf_trace_find): Add 'self' argument.
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12450 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12451 (target_trace_stop): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_trace_stop): Add 'self' argument.
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12457 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12458 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12460 (target_get_tracepoint_status): Add argument.
12461 * target.c (update_current_target): Update.
12462 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12466 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12467 * target.h (struct target_ops) <to_get_trace_status>: Add
12469 (target_get_trace_status): Add argument.
12470 * target.c (update_current_target): Update.
12471 * remote.c (remote_get_trace_status): Add 'self' argument.
12472 (remote_start_remote, remote_can_download_tracepoint): Update.
12473 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12477 * target.h (struct target_ops) <to_trace_start>: Add argument.
12478 (target_trace_start): Add argument.
12479 * target.c (update_current_target): Update.
12480 * remote.c (remote_trace_start): Add 'self' argument.
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12484 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12486 (target_trace_set_readonly_regions): Add argument.
12487 * target.c (update_current_target): Update.
12488 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12493 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12495 (target_disable_tracepoint): Add argument.
12496 * target.c (update_current_target): Update.
12497 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12503 (target_enable_tracepoint): Add argument.
12504 * target.c (update_current_target): Update.
12505 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target.h (struct target_ops) <to_download_trace_state_variable>:
12511 (target_download_trace_state_variable): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_download_trace_state_variable): Add 'self'
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12518 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12520 (target_can_download_tracepoint): Add argument.
12521 * target.c (update_current_target): Update.
12522 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target.h (struct target_ops) <to_download_tracepoint>: Add
12528 (target_download_tracepoint): Add argument.
12529 * target.c (update_current_target): Update.
12530 * remote.c (remote_download_tracepoint): Add 'self' argument.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target.h (struct target_ops) <to_trace_init>: Add argument.
12535 (target_trace_init): Add argument.
12536 * target.c (update_current_target): Update.
12537 * remote.c (remote_trace_init): Add 'self' argument.
12539 2014-02-19 Tom Tromey <tromey@redhat.com>
12541 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12542 * target.c (target_fileio_readlink): Add argument.
12543 * remote.c (remote_hostio_readlink): Add 'self' argument.
12544 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12548 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12549 * target.c (target_fileio_unlink): Add argument.
12550 * remote.c (remote_hostio_unlink): Add 'self' argument.
12551 (remote_file_delete): Update.
12552 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12556 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12557 * target.c (target_fileio_close): Add argument.
12558 * remote.c (remote_hostio_close): Add 'self' argument.
12559 (remote_hostio_close_cleanup): Update.
12560 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12562 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12567 * target.c (target_fileio_pread): Add argument.
12568 * remote.c (remote_hostio_pread): Add 'self' argument.
12569 (remote_bfd_iovec_pread, remote_file_get): Update.
12570 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12575 * target.c (target_fileio_pwrite): Add argument.
12576 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12577 (remote_file_put): Update.
12578 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12583 * target.c (target_fileio_open): Add argument.
12584 * remote.c (remote_hostio_open): Add 'self' argument.
12585 (remote_bfd_iovec_open): Add 'self' argument.
12586 (remote_file_put): Add 'self' argument.
12587 (remote_file_get): Add 'self' argument.
12588 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12592 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12594 (target_can_run_breakpoint_commands): Add argument.
12595 * target.c (update_current_target): Update.
12596 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12598 (remote_insert_breakpoint): Add 'self' argument.
12599 (remote_insert_hw_breakpoint): Add 'self' argument.
12600 (remote_can_run_breakpoint_commands): Add 'self' argument.
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12604 * target.h (struct target_ops)
12605 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12606 (target_supports_evaluation_of_breakpoint_conditions): Add
12608 * target.c (update_current_target): Update.
12609 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12611 (remote_insert_breakpoint): Add 'self' argument.
12612 (remote_insert_hw_breakpoint): Add 'self' argument.
12613 (remote_supports_cond_breakpoints): Add 'self' argument.
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12619 (target_supports_string_tracing): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target.h (struct target_ops)
12626 <to_supports_disable_randomization>: Add argument.
12627 * target.c (find_default_supports_disable_randomization): Add
12629 (target_supports_disable_randomization): Add argument.
12630 (find_default_supports_disable_randomization): Add 'self'
12632 * remote.c (extended_remote_supports_disable_randomization): Add
12634 (remote_supports_disable_randomization): Add 'self' argument.
12635 (extended_remote_create_inferior): Update.
12636 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12641 * target.h (struct target_ops)
12642 <to_supports_enable_disable_tracepoint>: Add argument.
12643 (target_supports_enable_disable_tracepoint): Add argument.
12644 * target.c (update_current_target): Update.
12645 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12650 * target.h (struct target_ops) <to_supports_multi_process>: Add
12652 (target_supports_multi_process): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_supports_multi_process): Add 'self' argument.
12655 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12657 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12662 * target.h (struct target_ops) <to_execution_direction>: Add
12664 (target_execution_direction): Add argument.
12665 * target.c (default_execution_direction): Add 'self' argument.
12666 * record-full.c (record_full_execution_direction): Add 'self'
12669 2014-02-19 Tom Tromey <tromey@redhat.com>
12671 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12673 (target_can_execute_reverse): Add argument.
12674 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12675 * record-full.c (record_full_can_execute_reverse): Add 'self'
12677 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12680 2014-02-19 Tom Tromey <tromey@redhat.com>
12682 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12683 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12685 (target_get_ada_task_ptid): Add argument.
12686 * target.c (update_current_target): Update.
12687 (default_get_ada_task_ptid): Add 'self' argument.
12688 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12689 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12690 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12692 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12694 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12696 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12698 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12699 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12704 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12705 (target_goto_bookmark): Add argument.
12706 * target.c (dummy_goto_bookmark): Add 'self' argument.
12707 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12711 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12712 (target_get_bookmark): Add argument.
12713 * target.c (dummy_get_bookmark): Add 'self' argument.
12714 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12718 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12720 (target_make_corefile_notes): Add argument.
12721 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12722 * procfs.c (procfs_make_note_section): Add 'self' argument.
12723 (procfs_make_note_section): Add 'self' argument.
12724 (procfs_make_note_section): Add 'self' argument.
12725 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12727 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12728 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12729 * exec.c (exec_make_note_section): Add 'self' argument.
12730 (exec_make_note_section): Add 'self' argument.
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12734 * target.h (struct target_ops) <to_find_memory_regions>: Add
12736 (target_find_memory_regions): Add argument.
12737 * target.c (dummy_find_memory_regions): Add 'self' argument.
12738 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12739 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12740 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12741 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12742 * exec. (exec_do_find_memory_regions): New global.
12743 (exec_set_find_memory_regions): Rewrite.
12744 (exec_find_memory_regions): New function.
12745 (init_exec_ops): Use exec_find_memory_regions.
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12749 * target.h (struct target_ops) <to_supports_non_stop>: Add
12751 * target.c (find_default_supports_non_stop): Add argument.
12752 (target_supports_non_stop): Add argument.
12753 (find_default_supports_non_stop): Add 'self' argument.
12754 * remote.c (remote_supports_non_stop): Add 'self' argument.
12755 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12759 * target.h (struct target_ops) <to_log_command>: Add argument.
12760 (target_log_command): Add argument.
12761 * serial.h (serial_log_command): Add 'self' argument.
12762 * serial.c (serial_log_command): Add 'self' argument.
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12767 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12769 (target_pid_to_exec_file): Add argument.
12770 * target.c (debug_to_pid_to_exec_file): Add argument.
12771 (update_current_target): Update.
12772 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12773 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12774 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12775 (linux_handle_extended_wait): Update.
12776 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12777 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12778 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12779 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12781 2014-02-19 Tom Tromey <tromey@redhat.com>
12783 * target.h (struct target_ops) <to_rcmd>: Add argument.
12784 (target_rcmd): Add argument.
12785 * target.c (debug_to_rcmd): Add argument.
12786 (update_current_target, do_monitor_command): Update.
12787 * remote.c (remote_rcmd): Add 'self' argument.
12788 * monitor.c (monitor_rcmd): Add 'self' argument.
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12792 * windows-nat.c (windows_stop): Add 'self' argument.
12793 * target.h (struct target_ops) <to_stop>: Add argument.
12794 * target.c (target_stop): Add argument.
12795 (debug_to_stop): Add argument.
12796 (update_current_target): Update.
12797 * remote.c (remote_stop): Add 'self' argument.
12798 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12799 (gdbsim_cntrl_c): Update.
12800 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12801 * procfs.c (procfs_stop): Add 'self' argument.
12802 * nto-procfs.c (procfs_stop): Add 'self' argument.
12803 * monitor.c (monitor_stop): Add 'self' argument.
12804 (monitor_open): Update.
12805 * linux-nat.c (linux_nat_stop): Add argument.
12806 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12807 * gnu-nat.c (gnu_stop): Add 'self' argument.
12808 * darwin-nat.c (darwin_stop): Add 'self' argument.
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12812 * target.h (struct target_ops) <to_thread_name>: Add argument.
12813 * target.c (target_thread_name): Add argument.
12814 (update_current_target): Update.
12815 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12819 * target.h (struct target_ops) <to_extra_thread_info>: Add
12821 (target_extra_thread_info): Add argument.
12822 * target.c (update_current_target): Update.
12823 * remote.c (remote_threads_extra_info): Add 'self' argument.
12824 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12826 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12827 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12828 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12830 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12832 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12834 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12837 2014-02-19 Tom Tromey <tromey@redhat.com>
12839 * target.h (struct target_ops) <to_program_signals>: Add argument.
12840 * target.c (target_program_signals): Add argument.
12841 * remote.c (remote_program_signals): Add 'self' argument.
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12846 * target.c (target_pass_signals): Add argument.
12847 * remote.c (remote_pass_signals): Add 'self' argument.
12848 (remote_start_remote): Update.
12849 * procfs.c (procfs_pass_signals): Add 'self' argument.
12850 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12851 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12852 (linux_nat_create_inferior, linux_nat_attach): Update.
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12856 * windows-nat.c (windows_can_run): Add 'self' argument.
12857 * target.h (struct target_ops) <to_can_run>: Add argument.
12858 (target_can_run): Add argument.
12859 * target.c (debug_to_can_run): Add argument.
12860 (update_current_target): Update.
12861 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12862 * inf-child.c (inf_child_can_run): Add 'self' argument.
12863 * go32-nat.c (go32_can_run): Add 'self' argument.
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12867 * target.h (struct target_ops) <to_has_exited>: Add argument.
12868 (target_has_exited): Add argument.
12869 * target.c (debug_to_has_exited): Add argument.
12870 (update_current_target): Update.
12872 2014-02-19 Tom Tromey <tromey@redhat.com>
12874 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12876 (target_set_syscall_catchpoint): Add argument.
12877 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12879 * target.c (update_current_target): Update.
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12883 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12885 (target_remove_exec_catchpoint): Add argument.
12886 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12887 (update_current_target): Update.
12888 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12893 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12895 (target_insert_exec_catchpoint): Add argument.
12896 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12897 (update_current_target): Update.
12898 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12903 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12905 (target_remove_vfork_catchpoint): Add argument.
12906 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12907 (update_current_target): Update.
12908 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12911 2014-02-19 Tom Tromey <tromey@redhat.com>
12913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12915 (target_insert_vfork_catchpoint): Add argument.
12916 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12917 (update_current_target): Update.
12918 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12921 2014-02-19 Tom Tromey <tromey@redhat.com>
12923 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12925 (target_remove_fork_catchpoint): Add argument.
12926 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12927 (update_current_target): Update.
12928 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12933 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12935 (target_insert_fork_catchpoint): Add argument.
12936 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12937 (update_current_target): Update.
12938 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12943 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12945 (target_post_startup_inferior): Add argument.
12946 * target.c (debug_to_post_startup_inferior): Add argument.
12947 (update_current_target): Update.
12948 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12950 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12952 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12954 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12956 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12958 (super_post_startup_inferior): Likewise.
12959 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12961 (super_post_startup_inferior): Likewise.
12962 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12963 Add 'self' argument.
12964 (super_post_startup_inferior): Likewise.
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12968 * target.h (struct target_ops) <to_load>: Add argument.
12969 * target.c (target_load): Add argument.
12970 (debug_to_load): Add argument.
12971 (update_current_target): Update.
12972 * remote.c (remote_load): Add 'self' argument.
12973 * remote-sim.c (gdbsim_load): Add 'self' argument.
12974 * remote-mips.c (mips_load): Add 'self' argument.
12975 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12976 * monitor.c (monitor_load): Add 'self' argument.
12977 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12981 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12982 (target_terminal_info): Add argument.
12983 * target.c (debug_to_terminal_info): Add argument.
12984 (default_terminal_info): Likewise.
12985 * inflow.c (child_terminal_info): Add 'self' argument.
12986 * inferior.h (child_terminal_info): Add 'self' argument.
12987 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12989 2014-02-19 Tom Tromey <tromey@redhat.com>
12991 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12993 (target_terminal_save_ours): Add argument.
12994 * target.c (debug_to_terminal_save_ours): Add argument.
12995 (update_current_target): Update.
12996 * inflow.c (terminal_save_ours): Add 'self' argument.
12997 * inferior.h (terminal_save_ours): Add 'self' argument.
12999 2014-02-19 Tom Tromey <tromey@redhat.com>
13001 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13002 (target_terminal_ours): Add argument.
13003 * target.c (debug_to_terminal_ours): Add argument.
13004 (update_current_target): Update.
13005 * remote.c (remote_terminal_ours): Add 'self' argument.
13006 (remote_close): Update.
13007 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13008 * inflow.c (terminal_ours): Add 'self' argument.
13009 * inferior.h (terminal_ours): Add 'self' argument.
13010 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13012 2014-02-19 Pedro Alves <palves@redhat.com>
13013 Tom Tromey <tromey@redhat.com>
13015 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13017 (target_terminal_ours_for_output): Add argument.
13018 * target.c (debug_to_terminal_ours_for_output): Add argument.
13019 (update_current_target): Update.
13020 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13021 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13022 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13026 * target.h (struct target_ops) <to_terminal_inferior>: Add
13028 * target.c (target_terminal_inferior): Add argument.
13029 (update_current_target): Update.
13030 * remote.c (remote_terminal_inferior): Add 'self' argument.
13031 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13032 * inflow.c (terminal_inferior): Add 'self' argument.
13033 * inferior.h (terminal_inferior): Add 'self' argument.
13034 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13035 (go32_terminal_inferior): Add 'self' argument.
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13039 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13040 (target_terminal_init): Add argument.
13041 * target.c (debug_to_terminal_init): Add argument.
13042 (update_current_target): Update.
13043 * inflow.c (terminal_init_inferior): Add 'self' argument.
13044 * inferior.h (terminal_init_inferior): Add 'self' argument.
13045 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13046 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13048 2014-02-19 Tom Tromey <tromey@redhat.com>
13050 * target.h (struct target_ops)
13051 <to_can_accel_watchpoint_condition>: Add argument.
13052 (target_can_accel_watchpoint_condition): Add argument.
13053 * target.c (debug_to_can_accel_watchpoint_condition): Add
13055 (update_current_target): Update.
13056 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13061 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13063 (target_region_ok_for_hw_watchpoint): Add argument.
13064 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13065 (default_region_ok_for_hw_watchpoint): Add argument.
13066 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13067 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13069 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13071 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13073 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13075 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13077 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13079 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13080 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13082 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13083 Add 'self' argument.
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13089 (target_insert_watchpoint): Add argument.
13090 * target.c (debug_to_insert_watchpoint): Add argument.
13091 (update_current_target): Update.
13092 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13093 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13094 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13095 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13096 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13097 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13099 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13100 (procfs_insert_hw_watchpoint): Add 'self' argument.
13101 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13103 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13105 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13107 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13108 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13110 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13113 2014-02-19 Tom Tromey <tromey@redhat.com>
13115 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13117 (target_remove_watchpoint): Add argument.
13118 * target.c (debug_to_remove_watchpoint): Add argument.
13119 (update_current_target): Update.
13120 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13121 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13122 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13123 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13124 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13125 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13127 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13128 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13130 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13132 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13134 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13135 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13137 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13140 2014-02-19 Tom Tromey <tromey@redhat.com>
13142 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13144 (target_remove_hw_breakpoint): Add argument.
13145 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13146 (update_current_target): Update.
13147 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13148 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13150 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13151 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13153 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13158 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13160 (target_insert_hw_breakpoint): Add argument.
13161 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13162 (update_current_target): Update.
13163 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13164 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13166 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13167 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13168 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13170 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13175 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13177 (target_can_use_hardware_watchpoint): Add argument.
13178 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13179 (update_current_target): Update.
13180 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13182 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13184 * remote.c (remote_check_watch_resources): Add 'self' argument.
13185 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13186 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13188 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13189 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13191 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13193 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13195 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13197 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13199 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13201 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13202 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13204 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13209 * target.h (struct target_ops) <to_post_attach>: Add argument.
13210 (target_post_attach): Add argument.
13211 * target.c (debug_to_post_attach): Add argument.
13212 (update_current_target): Update.
13213 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13214 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13215 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13216 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13217 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13219 2014-02-19 Tom Tromey <tromey@redhat.com>
13221 * windows-nat.c (windows_close): Add 'self' argument.
13222 * tracepoint.c (tfile_close): Add 'self' argument.
13223 * target.h (struct target_ops) <to_close>: Add argument.
13224 * target.c (target_close): Add argument.
13225 (update_current_target): Update.
13226 * remote.c (remote_close): Add 'self' argument.
13227 * remote-sim.c (gdbsim_close): Add 'self' argument.
13228 * remote-mips.c (mips_close): Add 'self' argument.
13229 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13230 * record-full.c (record_full_close): Add 'self' argument.
13231 * record-btrace.c (record_btrace_close): Add 'self' argument.
13232 * monitor.h (monitor_close): Add 'self' argument.
13233 * monitor.c (monitor_close): Add 'self' argument.
13234 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13235 * linux-nat.c (linux_nat_close): Add argument.
13236 * go32-nat.c (go32_close): Add 'self' argument.
13237 * exec.c (exec_close_1): Add 'self' argument.
13238 * ctf.c (ctf_close): Add 'self' argument.
13239 * corelow.c (core_close): Add 'self' argument.
13240 (core_close_cleanup): Update.
13241 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13242 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13244 2014-02-19 Tom Tromey <tromey@redhat.com>
13246 * remote.c (remote_load): New function.
13247 (init_remote_ops): Use it.
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13251 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13253 * common/linux-btrace.h (linux_supports_btrace): Update.
13254 * remote.c (remote_supports_btrace): Add "self" argument.
13255 * target-delegates.c: Rebuild.
13256 * target.c (target_supports_btrace): Remove.
13257 * target.h (struct target_ops) <to_supports_btrace>: Add
13258 target_ops argument.
13259 (target_supports_btrace): New define.
13261 2014-02-19 Tom Tromey <tromey@redhat.com>
13263 * record-full.c (record_full_beneath_to_resume_ops)
13264 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13265 (record_full_beneath_to_wait)
13266 (record_full_beneath_to_store_registers_ops)
13267 (record_full_beneath_to_store_registers)
13268 (record_full_beneath_to_xfer_partial_ops)
13269 (record_full_beneath_to_xfer_partial)
13270 (record_full_beneath_to_insert_breakpoint_ops)
13271 (record_full_beneath_to_insert_breakpoint)
13272 (record_full_beneath_to_remove_breakpoint_ops)
13273 (record_full_beneath_to_remove_breakpoint)
13274 (record_full_beneath_to_stopped_by_watchpoint)
13275 (record_full_beneath_to_stopped_data_address)
13276 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13277 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13278 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13279 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13280 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13281 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13282 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13283 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13284 (record_full_resume, record_full_wait_1)
13285 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13286 (record_full_store_registers, record_full_xfer_partial)
13287 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13288 (record_full_async, record_full_core_xfer_partial): Use target
13290 * target-delegates.c: Rebuild.
13291 * target.c (current_xfer_partial): Remove.
13292 (update_current_target): Do not INHERIT or de_fault
13293 to_insert_breakpoint, to_remove_breakpoint,
13294 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13295 to_is_async_p, to_async. Do not set to_xfer_partial field.
13296 (default_xfer_partial): Simplify.
13297 (current_xfer_partial): Remove.
13298 (target_wait, target_resume): Simplify.
13299 (find_default_can_async_p, find_default_is_async_p): Update.
13300 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13301 to_xfer_partial, to_stopped_by_watchpoint,
13302 to_stopped_data_address.
13303 (target_store_registers): Simplify.
13304 (forward_target_remove_breakpoint)
13305 (forward_target_insert_breakpoint): Remove.
13306 (target_remove_breakpoint, target_insert_breakpoint)
13307 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13308 * target.h (struct target_ops) <to_resume, to_wait,
13309 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13310 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13311 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13313 (forward_target_remove_breakpoint)
13314 (forward_target_insert_breakpoint): Remove.
13315 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13317 (record_btrace_insert_breakpoint): Delegate directly.
13319 2014-02-19 Tom Tromey <tromey@redhat.com>
13322 * target-delegates.c: New file.
13323 * target.c: Include target-delegates.c.
13324 (init_dummy_target): Call install_dummy_methods.
13325 (complete_target_initialization): Call install_delegators.
13326 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13327 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13328 * make-target-delegates: New file.
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13332 * record.c (find_record_target): Use find_target_at.
13333 * target.c (find_target_at): New function.
13334 * target.h (find_target_at): Declare.
13336 2014-02-19 Tom Tromey <tromey@redhat.com>
13338 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13339 Add 'ops' argument.
13340 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13342 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13343 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13345 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13347 * linux-nat.c (save_sigtrap): Update.
13348 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13349 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13350 (linux_nat_close): Update.
13351 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13353 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13355 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13356 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13357 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13358 (tmp_to_async): Add 'ops' argument.
13359 (record_full_stopped_by_watchpoint, record_full_async)
13360 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13362 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13363 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13364 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13365 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13366 (remote_is_async_p, remote_async): Add 'ops' argument.
13367 (remote_stopped_data_address): Update.
13368 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13369 * target.c (update_current_target)
13370 (find_default_can_async_p, find_default_is_async_p): Update.
13371 (init_dummy_target): Update.
13372 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13373 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13374 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13375 (target_can_async_p, target_is_async_p, target_async)
13376 (target_stopped_by_watchpoint): Update.
13378 2014-02-19 Yao Qi <yao@codesourcery.com>
13381 * gdbarch.sh: Remove startup_gdbarch.
13382 * gdbarch.c: Regenerated.
13383 * gdbarch.h: Likewise.
13385 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13387 * rl78-tdep.c (rl78_g10_register_name): New function.
13388 (rl78_return_value): Add g10 support.
13389 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13392 2014-02-17 Doug Evans <xdje42@gmail.com>
13394 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13395 (SUBDIR_GUILE_SRCS): Ditto.
13396 (scm-gsmob.o): Ditto.
13398 2014-02-17 Yao Qi <yao@codesourcery.com>
13400 * gnu-nat.c (ILL_RPC): Declare defined function.
13402 2014-02-17 Yao Qi <yao@codesourcery.com>
13404 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13405 mach_msg_type_number_t.
13406 (gnu_write_inferior): Likewise.
13408 2014-02-17 Yao Qi <yao@codesourcery.com>
13410 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13412 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13413 (inf_validate_procs, inf_signal): Likewise.
13414 (S_exception_raise_request): Likewise.
13415 (do_mach_notify_dead_name): Likewise.
13416 (steal_exc_port): Likewise.
13417 (gnu_read_inferior): Change 'copy_count''s type to
13418 mach_msg_type_number_t.
13419 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13422 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13424 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13425 flag. Adjust all users; in particular...
13426 (gnu_wait): ..., don't decrement its value in here...
13427 (gnu_create_inferior): ..., and instead set the flag in here,
13428 around the startup_inferior call, and call that one with
13429 START_INFERIOR_TRAPS_EXPECTED.
13431 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13432 (ILL_RPC): ... new macro.
13433 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13434 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13435 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13436 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13437 functions with ILL_RPC macro.
13438 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13439 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13440 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13441 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13442 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13443 (S_proc_getlogin_reply, S_proc_getsid_reply)
13444 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13445 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13446 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13447 (S_proc_getnports_reply, S_proc_is_important_reply)
13448 (S_proc_get_code_reply): New stub functions, generated with
13451 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13452 collected the type check structures.
13454 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13456 2014-02-14 Doug Evans <dje@google.com>
13458 * target.c (target_write_partial): Fix result type.
13460 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13462 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13463 the proper offsets to access fpregset_t.
13465 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13467 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13468 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13469 * h8300-tdep.c (setmachinelist): Remove global.
13470 * hppa-tdep.c (hppa_sigtramp): Remove global.
13471 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13472 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13473 * ravenscar-thread.c (update_target_observer): Remove global.
13474 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13476 2014-02-12 Tom Tromey <tromey@redhat.com>
13478 * common/rsp-low.c: Update comments.
13479 * common/rsp-low.h: Update comments.
13481 2014-02-12 Tom Tromey <tromey@redhat.com>
13483 * common/rsp-low.c (convert_ascii_to_int): Remove.
13484 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13486 2014-02-12 Tom Tromey <tromey@redhat.com>
13488 * common/rsp-low.h (unhexify): Don't declare.
13489 * common/rsp-low.c (unhexify): Remove.
13491 2014-02-12 Tom Tromey <tromey@redhat.com>
13493 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13494 * common/rsp-low.c (convert_int_to_ascii): Remove.
13496 2014-02-12 Tom Tromey <tromey@redhat.com>
13498 * common/rsp-low.h (hexify): Don't declare.
13499 * common/rsp-low.c (hexify): Remove.
13501 2014-02-12 Tom Tromey <tromey@redhat.com>
13503 * common/rsp-low.c (hexify): Never take strlen of argument.
13505 2014-02-12 Tom Tromey <tromey@redhat.com>
13507 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13508 * remote.c (extended_remote_run, remote_rcmd)
13509 (remote_download_trace_state_variable, remote_save_trace_data)
13510 (remote_set_trace_notes): Update.
13511 * tracepoint.c (encode_source_string, tfile_write_status)
13512 (tfile_write_uploaded_tsv): Update.
13514 2014-02-12 Tom Tromey <tromey@redhat.com>
13516 * tracepoint.c: Include rsp-low.h.
13517 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13518 * remote.c: Include rsp-low.h.
13519 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13520 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13521 (remote_unescape_input): Move to common/rsp-low.c.
13522 * common/rsp-low.h: New file.
13523 * common/rsp-low.c: New file.
13524 * Makefile.in (SFILES): Add common/rsp-low.c.
13525 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13526 (COMMON_OBS): Add rsp-low.o.
13527 (rsp-low.o): New target.
13529 2014-02-12 Tom Tromey <tromey@redhat.com>
13531 * utils.h: Include print-utils.h.
13532 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13533 (int_string, core_addr_to_string, core_addr_to_string_nz)
13534 (hex_string, hex_string_custom): Don't declare.
13535 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13536 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13537 (hex_string_custom, int_string, core_addr_to_string)
13538 (core_addr_to_string_nz, host_address_to_string): Move to
13539 common/print-utils.c.
13540 * common/print-utils.h: New file.
13541 * common/print-utils.c: New file
13542 * Makefile.in (SFILES): Add common/print-utils.c.
13543 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13544 (COMMON_OBS): Add print-utils.o.
13545 (print-utils.o): New target.
13547 2014-02-12 Tom Tromey <tromey@redhat.com>
13549 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13551 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13553 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13555 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13557 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13558 if a PT_IO ptrace request returns sucessfully but indicates that 0
13559 bytes were transferred.
13561 2014-02-12 Pedro Alves <palves@redhat.com>
13562 Kevin Buettner <kevinb@redhat.com>
13564 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13565 TYPE_INSTANCE_FLAG_CODE_SPACE.
13567 2014-02-12 Pedro Alves <palves@redhat.com>
13569 * h8300-tdep.c (pseudo_from_raw_register)
13570 (raw_from_pseudo_register): New functions.
13571 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13574 2014-02-12 Pedro Alves <palves@redhat.com>
13576 * h8300-tdep.c (h8300_register_sim_regno): New function.
13577 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13578 gdbarch_register_sim_regno hook.
13580 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13582 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13584 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13586 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13588 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13590 * obsd-tdep.h (obsd_init_abi): New prototype.
13591 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13592 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13593 (obsd_init_abi): New functions.
13594 * i386obsd-tdep.c: Include "obsd-tdep.h".
13595 (i386obsd_init_abi): Call obsd_init_abi.
13596 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13597 (amd64obsd_init_abi): Call obsd_init_abi.
13598 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13599 obsd-tdep.c to gdb_target_obs.
13601 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13603 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13604 double float arguments to 16-byte in the argument slots.
13606 2014-02-11 Doug Evans <xdje42@gmail.com>
13608 * configure.ac: Don't crash if pkg-config is not found and guile
13609 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13611 * configure: Regenerate.
13613 2014-02-11 Yao Qi <yao@codesourcery.com>
13615 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13616 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13617 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13618 * gnu-nat.c (gnu_xfer_memory): Likewise.
13619 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13620 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13621 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13622 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13624 2014-02-11 Yao Qi <yao@codesourcery.com>
13626 * target.h (enum target_xfer_error): Rename to ...
13627 (enum target_xfer_status): ... it. New. All users updated.
13628 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13630 (TARGET_XFER_STATUS_ERROR_P): New macro.
13631 (target_xfer_error_to_string): Remove declaration.
13632 (target_xfer_status_to_string): Declare.
13633 (target_xfer_partial_ftype): Adjust it.
13634 (struct target_ops) <to_xfer_partial>: Return
13635 target_xfer_status. Add argument xfered_len. Update
13637 * target.c (target_xfer_error_to_string): Rename to ...
13638 (target_xfer_status_to_string): ... it. New. All callers
13640 (target_read_live_memory): Likewise. Call target_xfer_partial
13641 instead of target_read.
13642 (memory_xfer_live_readonly_partial): Return
13643 target_xfer_status. Add argument xfered_len.
13644 (raw_memory_xfer_partial): Likewise.
13645 (memory_xfer_partial_1): Likewise.
13646 (memory_xfer_partial): Likewise.
13647 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13648 properly. Update debug message.
13649 (default_xfer_partial, current_xfer_partial): Likewise.
13650 (target_write_partial): Likewise.
13651 (target_read_partial): Likewise. All callers updated.
13652 (read_whatever_is_readable): Likewise.
13653 (target_write_with_progress): Likewise.
13654 (target_read_alloc_1): Likewise.
13656 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13657 * auxv.c (procfs_xfer_auxv): Likewise.
13658 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13659 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13660 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13661 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13662 * corefile.c (read_memory): Adjust.
13663 * corelow.c (core_xfer_partial): Likewise.
13664 * ctf.c (ctf_xfer_partial): Likewise.
13665 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13667 (darwin_xfer_partial): Likewise.
13668 * exec.c (section_table_xfer_memory_partial): Likewise. All
13670 (exec_xfer_partial): Likewise.
13671 * exec.h (section_table_xfer_memory_partial): Update
13673 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13675 (gnu_xfer_partial): Likewise.
13676 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13677 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13678 (ia64_hpux_xfer_solib_got): Likewise.
13679 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13680 type of 'partial_len' to ULONGEST.
13681 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13682 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13683 (linux_nat_xfer_partial): Likewise.
13684 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13685 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13686 * monitor.c (monitor_xfer_memory): Likewise.
13687 (monitor_xfer_partial): Likewise.
13688 * procfs.c (procfs_xfer_partial): Likewise.
13689 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13690 * record-full.c (record_full_xfer_partial): Likewise.
13691 (record_full_core_xfer_partial): Likewise.
13692 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13693 (gdbsim_xfer_partial): Likewise.
13694 * remote.c (remote_write_bytes_aux): Likewise. All callers
13696 (remote_write_bytes, remote_read_bytes): Likewise. All
13698 (remote_flash_erase): Likewise. All callers updated.
13699 (remote_write_qxfer): Likewise. All callers updated.
13700 (remote_read_qxfer): Likewise. All callers updated.
13701 (remote_xfer_partial): Likewise.
13702 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13703 (rs6000_xfer_shared_libraries): Likewise.
13704 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13705 (sol_thread_xfer_partial): Likewise.
13706 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13707 (sparc_xfer_partial): Likewise.
13708 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13710 (spu_xfer_partial): Likewise.
13711 * spu-multiarch.c (spu_xfer_partial): Likewise.
13712 * tracepoint.c (tfile_xfer_partial): Likewise.
13713 * windows-nat.c (windows_xfer_memory): Likewise.
13714 (windows_xfer_shared_libraries): Likewise.
13715 (windows_xfer_partial): Likewise.
13716 * valprint.c: Replace 'target_xfer_error' with
13717 'target_xfer_status' in comments.
13719 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13721 Checked in by Joel Brobecker <brobecker@adacore.com>.
13722 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13724 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13726 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13727 function parameters.
13729 2014-02-10 Will Newton <will.newton@linaro.org>
13731 * elfread.c (elf_rel_plt_read): Look for a .got section if
13732 looking up .got.plt fails.
13733 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13734 on address passed to elf_gnu_ifunc_record_cache.
13735 (elf_gnu_ifunc_resolve_addr): Likewise.
13736 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13738 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13740 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13741 (X_RETTURN): New macro.
13742 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13744 * sparc64-tdep.c (sparc64_init_abi): Hook
13745 sparc_in_function_epilogue_p.
13747 2014-02-10 Gary Benson <gbenson@redhat.com>
13749 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13750 Rename name_matcher to symbol_matcher.
13752 2014-02-10 Gary Benson <gbenson@redhat.com>
13754 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13755 Use expand_symtabs_file_matcher_ftype and
13756 expand_symtabs_symbol_matcher_ftype.
13758 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13760 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13761 (struct ada_symbol_cache): New.
13762 (ada_free_symbol_cache): Forward declare.
13763 (struct ada_pspace_data): New.
13764 (ada_pspace_data_handle): New static global.
13765 (get_ada_pspace_data, ada_pspace_data_cleanup)
13766 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13767 (cache_space, cache): Delete, now folded inside struct
13769 (ada_get_symbol_cache): New function.
13770 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13772 (_initialize_ada_language): Remove initialization of cache_space.
13773 Move call to observer_attach_inferior_exit up, grouping it
13774 with the other observer registrations inside this function.
13775 Rename command to be more general. Add call to
13776 register_program_space_data_with_cleanup.
13778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13780 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13781 ada_new_objfile_observer.
13782 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13783 (_initialize_tasks): Update uses of ada_new_objfile_observer
13784 and ada_tasks_normal_stop_observer.
13786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13788 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13789 returned by the 'Length attribute to integer.
13791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13793 * ada-lang.c (_initialize_ada_language): Initialize
13794 cache_space obstack.
13796 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13798 * ada-lang.c (HASH_SIZE): New macro.
13799 (struct cache_entry): New type.
13800 (cache_space, cache): New static globals.
13801 (ada_clear_symbol_cache, find_entry): New functions.
13802 (lookup_cached_symbol, cache_symbol): Implement.
13803 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13804 (_initialize_ada_language): Attach ada_new_objfile_observer
13805 and ada_free_objfile_observer.
13807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13809 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13810 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13811 struct block * parameter.
13812 (ada_lookup_symbol_list_worker): Constify local variable "block".
13813 Remove cast which is no longer necessary.
13815 2014-02-10 Doug Evans <xdje42@gmail.com>
13817 Add Guile as an extension language.
13818 * NEWS: Mention Guile scripting.
13819 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13820 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13821 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13822 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13823 (CLIBS): Add GUILE_LIBS.
13824 (install-guile): New rule.
13825 (guile.o): New rule.
13826 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13827 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13828 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13829 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13830 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13831 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13832 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13833 * configure.ac: New option --with-guile.
13834 * configure: Regenerate.
13835 * config.in: Regenerate.
13836 * auto-load.c: Remove #include "python/python.h". Add #include
13837 "gdb/section-scripts.h".
13838 (source_section_scripts): Handle Guile scripts.
13839 (_initialize_auto_load): Add name of Guile objfile script to
13840 scripts-directory help text.
13841 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13842 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13843 (struct breakpoint): New member scm_bp_object.
13844 * defs.h (enum command_control_type): New value guile_control.
13845 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13847 (show_user): Update comment.
13848 (_initialize_cli_cmds): Update help text for "show user". Update help
13849 text for max-user-call-depth.
13850 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13852 (multi_line_command_p): Add guile_control.
13853 (print_command_lines): Handle guile_control.
13854 (execute_control_command, recurse_read_control_structure): Ditto.
13855 (process_next_line): Recognize "guile" commands.
13856 * disasm.c (gdb_disassemble_info): Make non-static.
13857 * disasm.h: #include "dis-asm.h".
13858 (struct gdbarch): Add forward decl.
13859 (gdb_disassemble_info): Declare.
13860 * extension.c: #include "guile/guile.h".
13861 (extension_languages): Add guile.
13862 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13863 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13864 * gdbtypes.c (get_unsigned_type_max): New function.
13865 (get_signed_type_minmax): New function.
13866 * gdbtypes.h (get_unsigned_type_max): Declare.
13867 (get_signed_type_minmax): Declare.
13868 * guile/README: New file.
13869 * guile/guile-internal.h: New file.
13870 * guile/guile.c: New file.
13871 * guile/guile.h: New file.
13872 * guile/scm-arch.c: New file.
13873 * guile/scm-auto-load.c: New file.
13874 * guile/scm-block.c: New file.
13875 * guile/scm-breakpoint.c: New file.
13876 * guile/scm-disasm.c: New file.
13877 * guile/scm-exception.c: New file.
13878 * guile/scm-frame.c: New file.
13879 * guile/scm-gsmob.c: New file.
13880 * guile/scm-iterator.c: New file.
13881 * guile/scm-lazy-string.c: New file.
13882 * guile/scm-math.c: New file.
13883 * guile/scm-objfile.c: New file.
13884 * guile/scm-ports.c: New file.
13885 * guile/scm-pretty-print.c: New file.
13886 * guile/scm-safe-call.c: New file.
13887 * guile/scm-string.c: New file.
13888 * guile/scm-symbol.c: New file.
13889 * guile/scm-symtab.c: New file.
13890 * guile/scm-type.c: New file.
13891 * guile/scm-utils.c: New file.
13892 * guile/scm-value.c: New file.
13893 * guile/lib/gdb.scm: New file.
13894 * guile/lib/gdb/boot.scm: New file.
13895 * guile/lib/gdb/experimental.scm: New file.
13896 * guile/lib/gdb/init.scm: New file.
13897 * guile/lib/gdb/iterator.scm: New file.
13898 * guile/lib/gdb/printing.scm: New file.
13899 * guile/lib/gdb/types.scm: New file.
13900 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13901 (VPATH): Add $(GUILE_SRCDIR).
13902 (GUILE_DIR): New variable.
13903 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13904 (all): Add stamp-guile dependency.
13905 (stamp-guile): New rule.
13906 (clean-guile, install-guile, uninstall-guile): New rules.
13907 (install-only): Add install-guile dependency.
13908 (uninstall): Add uninstall-guile dependency.
13909 (clean): Add clean-guile dependency.
13911 2014-02-09 Doug Evans <xdje42@gmail.com>
13913 Revert this patch (which I approved, mea culpa).
13915 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13917 * Makefile.in (all-lib): Remove.
13918 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13920 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13922 Fix Python stack corruption.
13923 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13926 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13928 * Makefile.in (all-lib): Remove.
13929 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13931 2014-02-07 Doug Evans <dje@google.com>
13933 * extension-priv.h (extension_language_script_ops): Add comment.
13934 (extension_language_ops): Add comment.
13935 (active_ext_lang_state): Fix typo in comment.
13937 2014-02-07 Pedro Alves <palves@redhat.com>
13939 PR breakpoints/16292
13940 * infrun.c (handle_signal_stop) <signal arrives while stepping
13941 over a breakpoint>: Switch back to the stepping thread.
13943 2014-02-07 Yao Qi <yao@codesourcery.com>
13945 * target.c (target_xfer_partial): Return zero if LEN is zero.
13947 2014-02-07 Yao Qi <yao@codesourcery.com>
13949 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13950 (ld_so_xfer_auxv): Likewise.
13951 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13952 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13953 * corelow.c (core_xfer_partial): Likewise.
13954 * ctf.c (ctf_xfer_partial): Likewise.
13955 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13956 (darwin_xfer_partial): Likewise.
13957 * exec.c (exec_xfer_partial): Likewise.
13958 * gnu-nat.c (gnu_xfer_partial): Likewise.
13959 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13960 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13961 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13962 * linux-nat.c (linux_xfer_siginfo): Likewise.
13963 (linux_proc_xfer_spu): Likewise.
13964 * procfs.c (procfs_xfer_partial): Likewise.
13965 * record-full.c (record_full_xfer_partial): Likewise.
13966 (record_full_core_xfer_partial): Likewise.
13967 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13968 * remote.c (remote_write_qxfer): Likewise.
13969 (remote_write_qxfer, remote_read_qxfer): Likewise.
13970 (remote_xfer_partial): Likewise.
13971 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13972 (rs6000_xfer_shared_libraries): Likewise.
13973 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13974 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13975 (spu_xfer_partial): Likewise.
13976 * target.c (memory_xfer_partial_1): Likewise.
13977 * tracepoint.c (tfile_xfer_partial): Likewise.
13978 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13979 (windows_xfer_partial): Likewise.
13981 2014-02-07 Yao Qi <yao@codesourcery.com>
13983 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13985 (core_xfer_shared_libraries_aix): Likewise.
13986 * gdbarch.c, gdbarch.h: Regenerated.
13987 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13988 ULONGEST. Change 'len_avail' type to ULONGEST.
13989 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13990 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13992 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13994 2014-02-07 Yao Qi <yao@codesourcery.com>
13996 * corefile.c (memory_error): Get 'exception' from ERR and pass
13997 'exception' to throw_error.
13999 2014-02-06 Doug Evans <xdje42@gmail.com>
14001 * configure.ac (libpython checking): Remove all but python.o from
14002 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14003 * configure: Regenerate.
14005 * Makefile.in (SFILES): Add extension.c.
14006 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14007 (COMMON_OBS): Add extension.o.
14008 * extension.h: New file.
14009 * extension-priv.h: New file.
14010 * extension.c: New file.
14012 * python/python-internal.h: #include "extension.h".
14013 (gdbpy_auto_load_enabled): Declare.
14014 (gdbpy_apply_val_pretty_printer): Declare.
14015 (gdbpy_apply_frame_filter): Declare.
14016 (gdbpy_preserve_values): Declare.
14017 (gdbpy_breakpoint_cond_says_stop): Declare.
14018 (gdbpy_breakpoint_has_cond): Declare.
14019 (void source_python_script_for_objfile): Delete.
14020 * python/python.c: #include "extension-priv.h".
14021 Delete inclusion of "observer.h".
14022 (extension_language_python): Moved here and renamed from
14023 script_language_python in py-auto-load.c.
14024 Redefined to be of type extension_language_defn.
14025 (python_extension_script_ops): New global.
14026 (python_extension_ops): New global.
14027 (struct python_env): New member previous_active.
14028 (restore_python_env): Call restore_active_ext_lang.
14029 (ensure_python_env): Call set_active_ext_lang.
14030 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14032 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14034 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14036 (gdbpy_eval_from_control_command): Renamed from
14037 eval_python_from_control_command, made static. New arg extlang.
14038 (gdbpy_source_script) Renamed from source_python_script, made static.
14040 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14041 result to int. New arg extlang.
14042 (gdbpy_source_objfile_script): Renamed from
14043 source_python_script_for_objfile, made static. New arg extlang.
14044 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14045 static. New args extlang, extlang_printers. Change result type to
14047 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14048 static. New arg extlang. Rename arg printers to extlang_printers
14049 and change type to ext_lang_type_printers *.
14050 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14051 static. Replace argument arg with extlang, extlang_printers.
14052 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14053 (!HAVE_PYTHON, source_python_script): Delete.
14054 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14055 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14056 (!HAVE_PYTHON, start_type_printers): Delete.
14057 (!HAVE_PYTHON, apply_type_printers): Delete.
14058 (!HAVE_PYTHON, free_type_printers): Delete.
14059 (_initialize_python): Delete call to observer_attach_before_prompt.
14060 (finalize_python): Set/restore active extension language.
14061 (gdbpy_finish_initialization) Renamed from
14062 finish_python_initialization, made static. New arg extlang.
14063 (gdbpy_initialized): New function.
14064 * python/python.h: #include "extension.h". Delete #include
14065 "value.h", "mi/mi-cmds.h".
14066 (extension_language_python): Declare.
14067 (GDBPY_AUTO_FILE_NAME): Delete.
14068 (enum py_bt_status): Moved to extension.h and renamed to
14069 ext_lang_bt_status.
14070 (enum frame_filter_flags): Moved to extension.h.
14071 (enum py_frame_args): Moved to extension.h and renamed to
14072 ext_lang_frame_args.
14073 (finish_python_initialization): Delete.
14074 (eval_python_from_control_command): Delete.
14075 (source_python_script): Delete.
14076 (apply_val_pretty_printer): Delete.
14077 (apply_frame_filter): Delete.
14078 (preserve_python_values): Delete.
14079 (gdbpy_script_language_defn): Delete.
14080 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14081 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14083 * auto-load.c: #include "extension.h".
14084 (GDB_AUTO_FILE_NAME): Delete.
14085 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14086 (script_language_gdb): Delete, moved to extension.c and renamed to
14087 extension_language_gdb.
14088 (source_gdb_script_for_objfile): Delete.
14089 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14090 (loaded_script): Change type of language member to
14091 struct extension_language_defn *.
14092 (init_loaded_scripts_info): Initialize
14093 unsupported_script_warning_printed.
14094 (maybe_add_script): Make static. Change type of language arg to
14095 struct extension_language_defn *.
14096 (clear_section_scripts): Reset unsupported_script_warning_printed.
14097 (auto_load_objfile_script_1): Rewrite to use extension language API.
14098 (auto_load_objfile_script): Make public. Remove support-compiled-in
14099 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14100 (source_section_scripts): Rewrite to use extension language API.
14101 (load_auto_scripts_for_objfile): Rewrite to use
14102 auto_load_scripts_for_objfile.
14103 (collect_matching_scripts_data): Change type of language member to
14104 struct extension_language_defn *.
14105 (auto_load_info_scripts): Change type of language arg to
14106 struct extension_language_defn *.
14107 (unsupported_script_warning_print): New function.
14108 (script_not_found_warning_print): Make static.
14109 (_initialize_auto_load): Rewrite construction of scripts-directory
14111 * auto-load.h (struct objfile): Add forward decl.
14112 (struct script_language): Delete.
14113 (struct auto_load_pspace_info): Add forward decl.
14114 (struct extension_language_defn): Add forward decl.
14115 (maybe_add_script): Delete.
14116 (auto_load_objfile_script): Declare.
14117 (script_not_found_warning_print): Delete.
14118 (auto_load_info_scripts): Update prototype.
14119 (auto_load_gdb_scripts_enabled): Declare.
14120 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14121 auto_load_python_scripts_enabled and made public.
14122 (script_language_python): Delete, moved to python.c.
14123 (gdbpy_script_language_defn): Delete.
14124 (info_auto_load_python_scripts): Update to use
14125 extension_language_python.
14127 * breakpoint.c (condition_command): Replace call to
14128 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14129 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14130 with call to breakpoint_ext_lang_cond_says_stop.
14131 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14132 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14133 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14134 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14136 (local_setattro): Print name of extension language with existing
14139 * valprint.c (val_print, value_print): Update to call
14140 apply_ext_lang_val_pretty_printer.
14141 * cp-valprint.c (cp_print_value): Update call to
14142 apply_ext_lang_val_pretty_printer.
14143 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14144 (gdbpy_apply_val_pretty_printer): Renamed from
14145 apply_val_pretty_printer. New arg extlang.
14146 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14148 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14149 extension language API.
14150 * cli/cli-script.c (execute_control_command): Update to call
14151 eval_ext_lang_from_control_command.
14153 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14154 enum ext_lang_bt_status values. Update call to
14155 apply_ext_lang_frame_filter.
14156 (mi_cmd_stack_list_locals): Ditto.
14157 (mi_cmd_stack_list_args): Ditto.
14158 (mi_cmd_stack_list_variables): Ditto.
14159 * mi/mi-main.c: Delete #include "python/python-internal.h".
14160 Add #include "extension.h".
14161 (mi_cmd_list_features): Replace reference to python internal variable
14162 gdb_python_initialized with call to ext_lang_initialized_p.
14164 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14165 Update to use enum ext_lang_frame_args. Update to call
14166 apply_ext_lang_frame_filter.
14167 * python/py-framefilter.c (extract_sym): Update to use enum
14168 ext_lang_bt_status.
14169 (extract_value, py_print_type, py_print_value): Ditto.
14170 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14171 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14172 (py_print_frame): Ditto.
14173 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14174 New arg extlang. Update to use enum ext_lang_bt_status.
14176 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14177 finish_python_initialization. Replace with call to
14178 finish_ext_lang_initialization.
14180 * typeprint.c (do_free_global_table): Update to call
14181 free_ext_lang_type_printers.
14182 (create_global_typedef_table): Update to call
14183 start_ext_lang_type_printers.
14184 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14185 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14186 (type_print_options): Change type of global_printers from "void *"
14187 to "struct ext_lang_type_printers *".
14189 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14190 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14191 (gdbpy_preserve_values): Renamed from preserve_python_values.
14193 (!HAVE_PYTHON, preserve_python_values): Delete.
14195 * utils.c (quit_flag): Delete, moved to extension.c.
14196 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14199 * eval.c: Delete #include "python/python.h".
14200 * main.c: Delete #include "python/python.h".
14202 * defs.h: Update comment.
14204 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14208 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14210 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14213 2014-02-05 Yao Qi <yao@codesourcery.com>
14215 * remote.c (remote_pass_signals): Remove local 'buf' and use
14217 (remote_program_signals): Likewise.
14219 2014-02-05 Yao Qi <yao@codesourcery.com>
14221 * ctf.c: Include "inferior.h" and "gdbthread.h".
14222 (CTF_PID): A new macro.
14223 (ctf_open): Call inferior_appeared and add_thread_silent.
14224 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14225 (ctf_thread_alive): New function.
14226 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14228 2014-02-05 Yao Qi <yao@codesourcery.com>
14232 2013-05-24 Yao Qi <yao@codesourcery.com>
14234 * tracepoint.c (TFILE_PID): Remove.
14235 (tfile_open): Don't add thread and inferior.
14236 (tfile_close): Don't set 'inferior_ptid'. Don't call
14237 exit_inferior_silent.
14238 (tfile_thread_alive): Remove.
14239 (init_tfile_ops): Don't set field 'to_thread_alive' of
14242 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14244 * remote.c (remote_start_remote): Call remote_check_symbols even
14245 if only symbol-file (not file) has been given.
14247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14249 * gdbarch.sh (skip_entrypoint): New callback.
14250 * gdbarch.c, gdbarch.h: Regenerate.
14251 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14252 * infrun.c (fill_in_stop_func): Likewise.
14253 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14254 (ppc_elfv2_elf_make_msymbol_special): New function.
14255 (ppc_elfv2_skip_entrypoint): Likewise.
14256 (ppc_linux_init_abi): Install them for ELFv2.
14258 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14260 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14261 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14262 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14263 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14264 structures returned in GPRs.
14266 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14269 offset to the stack parameter list for the ELFv2 ABI.
14271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14273 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14274 set_gdbarch_convert_from_func_ptr_addr and
14275 set_gdbarch_elf_make_msymbol_special for ELFv1.
14276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14277 function descriptors on ELFv1.
14278 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14279 set up r12 at function entry.
14281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14283 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14284 (struct gdbarch_tdep): New member elf_abi.
14286 * rs6000-tdep.c: Include "elf/ppc64.h".
14287 (rs6000_gdbarch_init): Detect ELF ABI version.
14289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14292 within a register pair holding a DFP 128-bit value on little-endian.
14293 (ppc64_sysv_abi_return_value_base): Likewise.
14294 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14295 (dfp_pseudo_register_write): Likewise.
14297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14300 offset on little-endian when passing _Decimal32.
14301 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14305 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14306 of the overlapped FP register within the VSX register on little-
14308 (efpr_pseudo_register_write): Likewise.
14310 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14312 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14313 offset on little-endian when passing small structures.
14315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14317 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14318 (struct ppc64_sysv_argpos): New data structure.
14319 (ppc64_sysv_abi_push_float): Remove.
14320 (ppc64_sysv_abi_push_val): New function.
14321 (ppc64_sysv_abi_push_integer): Likewise.
14322 (ppc64_sysv_abi_push_freg): Likewise.
14323 (ppc64_sysv_abi_push_vreg): Likewise.
14324 (ppc64_sysv_abi_push_param): Likewise.
14325 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14326 (ppc64_sysv_abi_return_value_base): New function.
14327 (ppc64_sysv_abi_return_value): Refactor to use it.
14329 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14331 * NEWS: Document new target powerpc64le-*-linux*.
14333 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14335 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14336 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14338 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14339 register set used in ELF core dumps. Add floating-point register set.
14341 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14343 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14344 dwarf2_to_gdb[] table using symbolic constants. Adjust
14345 penultimate entry from number representing the PC register
14346 to symbolic constant representing the MDR register. Add
14347 constant for the PC register to the end of the table.
14349 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14351 * bsd-kvm.c: Include <sys/param.h>
14353 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14355 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14357 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14359 * ada-lang.h (clear_ada_sym_cache): Delete.
14361 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14363 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14365 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14367 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14368 the sigreturn register save area only if the syscall is
14371 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14373 * valops.c (value_slice): Minor reformatting.
14375 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14377 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14379 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14381 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14382 New static globals.
14383 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14384 (ada_ignore_descriptive_types_p): New static global.
14385 (find_parallel_type_by_descriptive_type): Return immediately
14386 if ada_ignore_descriptive_types_p is set.
14387 (_initialize_ada_language): Register new commands "maintenance
14388 set ada", "maintenance show ada", "maintenance set ada
14389 ignore-descriptive-types" and "maintenance show ada
14390 ignore-descriptive-types".
14391 * NEWS: Add entry for new "maint ada set/show
14392 ignore-descriptive-types" commands.
14394 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14396 * record-btrace.c (record_btrace_close): Call btrace_teardown
14399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14401 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14404 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14406 * ada-typeprint (type_is_full_subrange_of_target_type):
14408 (print_range): Add parameter bounds_prefered_p. If not set,
14409 try printing range types using the name of their base type.
14410 (print_range_type): Add parameter bounds_prefered_p.
14411 Use it in call to print_range.
14412 (print_array_type, ada_print_type): Update calls to print_range
14413 and print_range_type.
14415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14417 * ada-typeprint.c (print_array_type, print_choices, print_range)
14418 (print_range_bound, print_dynamic_range_bound, print_range_type):
14419 Remove declaration.
14421 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14423 * ada-typeprint.c (print_range): Add missing empty line
14424 after local declaration.
14426 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14428 * ada-valprint.c (print_optional_low_bound): Get index_type's
14429 target type for as long as it is a TYPE_CODE_RANGE.
14431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14433 * procfs.c (procfs_make_note_section): Remove assertion and
14434 associated comment.
14436 2014-01-24 Yao Qi <yao@codesourcery.com>
14438 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14439 * corelow.c (get_core_siginfo): Likewise.
14441 2014-01-24 Yao Qi <yao@codesourcery.com>
14443 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14444 ULONGEST. Don't check 'len' is negative.
14445 (remote_write_bytes): Change type of 'len' to ULONGEST.
14447 2014-01-23 Tom Tromey <tromey@redhat.com>
14450 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14451 Handle exception from frame.block.
14452 (FrameVars.fetch_frame_locals): Likewise.
14454 2014-01-23 Tom Tromey <tromey@redhat.com>
14457 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14458 on a NULL pointer. Move "goto error" to correct place.
14460 2014-01-23 Tom Tromey <tromey@redhat.com>
14463 * python/py-framefilter.c (apply_frame_filter): Call
14464 ensure_python_env after computing gdbarch.
14466 2014-01-23 Yao Qi <yao@codesourcery.com>
14468 * target.c (raw_memory_xfer_partial): Change argument type
14469 from void * to gdb_byte *.
14470 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14472 2014-01-22 Doug Evans <dje@google.com>
14474 New gdbserver option --debug-format=timestamp.
14475 * NEWS: Mention it.
14477 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14479 * syscalls/s390x-linux.xml: New file.
14480 * syscalls/s390-linux.xml: New file.
14481 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14482 (XML_SYSCALL_FILENAME_S390X): Likewise.
14483 (op_svc): New enum value for SVC opcode.
14484 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14485 (s390_linux_get_syscall_number): New function.
14486 (s390_gdbarch_init): Register '*get_syscall_number' and the
14487 syscall xml file name.
14488 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14489 "s390-linux.xml" and "s390x-linux.xml".
14490 * NEWS: Announce new feature.
14492 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14494 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14496 2014-01-22 Pedro Alves <palves@redhat.com>
14498 * xtensa-config.c: Include defs.h.
14500 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14502 * common/common-utils.h: Add "ARI:" comment beside __func__
14505 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14507 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14508 documentation a bit.
14510 2014-01-21 Roland McGrath <mcgrathr@google.com>
14512 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14513 * configure: Regenerate.
14514 * aclocal.m4: Regenerate.
14515 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14516 New substituted variables.
14517 (install-strip): New target.
14518 (INSTALL_SCRIPT): New substituted variable.
14519 (FLAGS_TO_PASS): Add it.
14520 (install-only): Use $(INSTALL_SCRIPT) rather than
14521 $(INSTALL_PROGRAM) for gcore.
14523 2014-01-20 Tom Tromey <tromey@redhat.com>
14525 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14528 2014-01-20 Tom Tromey <tromey@redhat.com>
14530 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14531 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14532 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14533 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14534 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14535 (struct cmd_list_element) <flags>: Remove.
14536 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14537 doc_allocated>: New fields.
14538 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14540 * maint.c (maintenance_do_deprecate): Update.
14541 * top.c (execute_command): Update.
14543 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14545 * xtensa-linux-nat.c: Include asm/ptrace.h.
14547 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14549 * Makefile.in (SFILES): Add d-support.c.
14550 (COMMON_OBS): Add d-support.o.
14551 * d-lang.h (d_parse_symbol): Add comment, now defined in
14553 * d-lang.c (parse_call_convention)
14554 (parse_attributes, parse_function_types)
14555 (parse_function_args, parse_type, parse_identifier)
14556 (call_convention_p, d_parse_symbol): Move functions to ...
14557 * d-support.c: ... New file.
14559 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14561 * d-lang.h (d_parse_symbol): Add declaration.
14562 * d-lang.c (extract_identifiers)
14563 (extract_type_info): Remove functions.
14564 (parse_call_convention, parse_attributes)
14565 (parse_function_types, parse_function_args)
14566 (parse_type, parse_identifier, call_convention_p)
14567 (d_parse_symbol): New functions.
14568 (d_demangle): Use d_parse_symbol to demangle D symbols.
14570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14572 * d-lang.h (struct builtin_d_type): New data type.
14573 (builtin_d_type): Add declaration.
14574 * d-lang.c (d_language_arch_info, build_d_types)
14575 (builtin_d_type): New functions.
14576 (enum d_primitive_types): New data type.
14577 (d_language_defn): Change c_language_arch_info to
14578 d_language_arch_info.
14579 (d_type_data): New static variable.
14580 (_initialize_d_language): Initialize d_type_data.
14582 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14584 * d-lang.h (d_main_name): Add declaration.
14585 * d-lang.c (d_main_name): New function.
14586 * symtab.c (find_main_name): Add call to d_main_name.
14588 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14590 * d-lang.c (d_language_defn): Change macro_expansion_c to
14591 macro_expansion_no.
14593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14595 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14597 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14599 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14600 gdb_exception" declaration.
14601 * remote.c (getpkt_or_notif_sane): Likewise.
14603 2014-01-17 Doug Evans <dje@google.com>
14605 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14606 function, contents of dirnames_to_char_ptr_vec_append moved here.
14607 (delim_string_to_char_ptr_vec): New function.
14608 (dirnames_to_char_ptr_vec_append): Rewrite.
14609 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14611 2014-01-17 Doug Evans <dje@google.com>
14613 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14615 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14616 #include "common-utils.h".
14617 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14618 * common/vec.h (VEC_ASSERT_PASS): Update.
14619 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14620 (MACH_CHECK_ERROR): Update.
14622 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14624 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14626 * gdbarch.h: Regenerate.
14628 2014-01-16 Tom Tromey <tromey@redhat.com>
14630 * value.c (struct value) <regnum>: Move earlier.
14632 2014-01-16 Tom Tromey <tromey@redhat.com>
14634 * remote.c (extended_remote_create_inferior): Rename from
14635 extended_remote_create_inferior_1. Add "ops" argument. Remove
14636 old implementation.
14638 2014-01-16 Pedro Alves <palves@redhat.com>
14640 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14641 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14644 2014-01-16 Doug Evans <dje@google.com>
14646 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14650 * btrace.h (btrace_thread_flag): New.
14651 (struct btrace_thread_info) <flags>: New.
14652 * record-btrace.c (record_btrace_resume_thread)
14653 (record_btrace_find_thread_to_move, btrace_step_no_history)
14654 (btrace_step_stopped, record_btrace_start_replaying)
14655 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14656 (record_btrace_find_resume_thread): New.
14657 (record_btrace_resume, record_btrace_wait): Extend.
14658 (record_btrace_can_execute_reverse): New.
14659 (record_btrace_open): Fail in non-stop mode.
14660 (record_btrace_set_replay): Split into this, ...
14661 (record_btrace_stop_replaying): ... this, ...
14662 (record_btrace_clear_histories): ... and this.
14663 (init_record_btrace_ops): Init to_can_execute_reverse.
14664 * NEWS: Announce it.
14666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14668 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14669 (forward_target_decr_pc_after_break)
14670 (target_decr_pc_after_break): New.
14671 * target.c (forward_target_decr_pc_after_break)
14672 (target_decr_pc_after_break): New.
14673 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14674 instead of gdbarch_decr_pc_after_break.
14675 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14676 instead of gdbarch_decr_pc_after_break.
14677 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14678 instead of gdbarch_decr_pc_after_break.
14679 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14680 instead of gdbarch_decr_pc_after_break.
14681 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14682 instead of gdbarch_decr_pc_after_break.
14683 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14684 instead of gdbarch_decr_pc_after_break.
14686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14688 * btrace.c: Include regcache.h.
14689 (btrace_add_pc): New.
14690 (btrace_enable): Call btrace_add_pc.
14691 (btrace_is_empty): New.
14692 * btrace.h (btrace_is_empty): New.
14693 * record-btrace.c (require_btrace, record_btrace_info): Call
14696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14698 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14699 Support delta reads.
14700 (linux_disable_btrace): Change return type.
14701 * common/linux-btrace.h (linux_read_btrace): Change parameters
14702 and return type to allow error reporting. Update users.
14703 (linux_disable_btrace): Change return type. Update users.
14704 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14706 (btrace_error): New.
14707 (btrace_block) <begin>: Comment on BEGIN == 0.
14708 * btrace.c (btrace_compute_ftrace): Start from the end of
14710 (btrace_stitch_trace, btrace_clear_history): New.
14711 (btrace_fetch): Read delta trace, return if replaying.
14712 (btrace_clear): Move clear history code to btrace_clear_history.
14713 (parse_xml_btrace): Throw an error if parsing failed.
14714 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14715 and return type to allow error reporting.
14716 (target_read_btrace): Change parameters and return type to allow
14718 * target.c (target_read_btrace): Update.
14719 * remote.c (remote_read_btrace): Support delta reads. Pass
14721 * NEWS: Announce it.
14723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14725 * record.h (record_btrace_frame_unwind)
14726 (record_btrace_tailcall_frame_unwind): New declarations.
14727 * dwarf2-frame: Include record.h
14728 (dwarf2_frame_cfa): Throw an error for btrace frames.
14729 * record-btrace.c: Include hashtab.h.
14730 (btrace_get_bfun_name): New.
14731 (btrace_call_history): Call btrace_get_bfun_name.
14732 (struct btrace_frame_cache): New.
14734 (bfcache_hash, bfcache_eq, bfcache_new): New.
14735 (btrace_get_frame_function): New.
14736 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14737 (record_btrace_frame_this_id): Compute own id.
14738 (record_btrace_frame_prev_register): Provide PC, throw_error
14739 for all other registers.
14740 (record_btrace_frame_sniffer): Detect btrace frames.
14741 (record_btrace_tailcall_frame_sniffer): New.
14742 (record_btrace_frame_dealloc_cache): New.
14743 (record_btrace_frame_unwind): Add new functions.
14744 (record_btrace_tailcall_frame_unwind): New.
14745 (_initialize_record_btrace): Allocate cache.
14746 * btrace.c (btrace_clear): Call reinit_frame_cache.
14747 * NEWS: Announce it.
14749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14751 * record-btrace.c (record_btrace_set_replay)
14752 (record_btrace_goto_begin, record_btrace_goto_end)
14753 (record_btrace_goto): New.
14754 (init_record_btrace_ops): Initialize them.
14755 * NEWS: Announce it.
14757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14759 * record-btrace.c (record_btrace_find_new_threads)
14760 (record_btrace_thread_alive): New.
14761 (init_record_btrace_ops): Initialize to_find_new_threads and
14764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14766 * record-btrace.c (record_btrace_resume): New.
14767 (record_btrace_wait): New.
14768 (init_record_btrace_ops): Initialize to_wait and to_resume.
14770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14772 * record-btrace.c (record_btrace_xfer_partial)
14773 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14774 (record_btrace_allow_memory_access): New.
14775 (init_record_btrace_ops): Initialize new methods.
14776 * target.c (raw_memory_xfer_partial): Bail out if target reports
14777 that this memory is not available.
14779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14781 * target.h (target_ops) <to_insert_breakpoint>
14782 <to_remove_breakpoint>: Add target_ops parameter.
14783 (forward_target_insert_breakpoint): New.
14784 (forward_target_remove_breakpoint): New.
14785 (memory_remove_breakpoint, memory_insert_breakpoint):
14786 Add target_ops parameter.
14787 * target.c (target_insert_breakpoint): Split into this and ...
14788 (forward_target_insert_breakpoint): ... this.
14789 (target_remove_breakpoint): Split into this and ...
14790 (forward_target_remove_breakpoint): ... this.
14791 (debug_to_insert_breakpoint): Add target_ops parameter.
14792 Call forward_target_insert_breakpoint.
14793 (debug_to_remove_breakpoint): Add target_ops parameter.
14794 Call forward_target_remove_breakpoint.
14795 (update_current_target): Do not inherit or default to_insert_breakpoint
14796 and to_remove_breakpoint.
14797 * corelow.c (ignore): Add target_ops parameter.
14798 * exec.c (ignore): Add target_ops parameter.
14799 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14800 Add target_ops parameter.
14801 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14802 Add target_ops parameter.
14803 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14804 Add target_ops parameter.
14805 * record-full.c (record_full_beneath_to_insert_breakpoint)
14806 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14807 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14808 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14809 (record_full_core_remove_breakpoint): Add target_ops parameter.
14811 (record_full_beneath_to_insert_breakpoint_ops)
14812 (record_full_beneath_to_remove_breakpoint_ops)
14813 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14814 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14815 tmp_to_remove_breakpoint_ops,
14816 record_full_beneath_to_insert_breakpoint_ops, and
14817 record_full_beneath_to_remove_breakpoint_ops.
14818 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14819 (m32r_remove_breakpoint): Add target_ops parameter.
14820 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14821 Add target_ops parameter.
14822 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14823 Add target_ops parameter.
14825 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14826 Markus Metzger <markus.t.metzger@intel.com>
14828 * record-btrace.c: Include frame-unwind.h.
14829 (record_btrace_frame_unwind_stop_reason)
14830 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14831 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14833 (init_record_btrace_ops): Install it.
14835 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14837 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14840 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14842 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14845 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14847 * frame-unwind.c: Include target.h.
14848 (frame_unwind_try_unwinder): New function with code from ...
14849 (frame_unwind_find_by_frame): ... here. New variable
14850 unwinder_from_target, call also target_get_unwinder)
14851 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14852 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14853 * target.h (struct target_ops): New fields to_get_unwinder and
14854 to_get_tailcall_unwinder.
14855 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14859 * record-btrace.c (record_btrace_fetch_registers)
14860 (record_btrace_store_registers)
14861 (record_btrace_to_prepare_to_store): New.
14862 (init_record_btrace_ops): Add the above.
14864 2014-01-16 Tom Tromey <tromey@redhat.com>
14866 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14867 * target.h (struct target_ops) <to_prepare_to_store>: Add
14869 (target_prepare_to_store): Add argument.
14870 * target.c (debug_to_prepare_to_store): Add argument.
14871 (update_current_target): Update.
14872 * remote.c (remote_prepare_to_store): Add 'self' argument.
14873 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14874 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14875 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14876 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14878 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14879 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14880 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14881 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14882 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14886 * btrace.h (replay) <replay>: New.
14887 (btrace_is_replaying): New.
14888 * btrace.c (btrace_clear): Free replay iterator.
14889 (btrace_is_replaying): New.
14890 * record-btrace.c (record_btrace_is_replaying): New.
14891 (record_btrace_info): Print insn number if replaying.
14892 (record_btrace_insn_history): Start at replay position.
14893 (record_btrace_call_history): Start at replay position.
14894 (init_record_btrace_ops): Init to_record_is_replaying.
14896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898 * record-btrace.c (record_btrace_insn_history_range): Include
14900 (record_btrace_insn_history_from): Adjust range.
14901 (record_btrace_call_history_range): Include
14903 (record_btrace_call_history_from): Adjust range.
14904 * NEWS: Announce changes.
14906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14908 * record.h (enum record_print_flag)
14909 <record_print_indent_calls>: New.
14910 * record.c (get_call_history_modifiers): Recognize /c modifier.
14911 (_initialize_record): Document /c modifier.
14912 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14913 Reorder fields. Optionally indent the function name. Update
14915 * NEWS: Announce changes.
14917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14919 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14923 * btrace.c (ftrace_new_function): Start counting at one.
14924 * record-btrace.c (record_btrace_info): Adjust number of calls
14926 * NEWS: Announce it.
14928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14930 * record-btrace.c (btrace_call_history_insn_range): Print
14931 insn range as [begin, end].
14933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14935 * btrace.h (struct btrace_func_link): New.
14936 (enum btrace_function_flag): New.
14937 (struct btrace_inst): Rename to ...
14938 (struct btrace_insn): ...this. Update all users.
14939 (struct btrace_func) <ibegin, iend>: Remove.
14940 (struct btrace_func_link): New.
14941 (struct btrace_func): Rename to ...
14942 (struct btrace_function): ...this. Update all users.
14943 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14944 (number, level, flags>: New.
14945 (struct btrace_insn_iterator): Rename to ...
14946 (struct btrace_insn_history): ...this.
14948 (struct btrace_insn_iterator, btrace_call_iterator): New.
14949 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14950 (struct btrace_target_info) <begin, end, level>
14951 <insn_history, call_history>: New.
14952 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14953 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14954 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14955 (btrace_call_number, btrace_call_begin, btrace_call_end)
14956 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14957 (btrace_find_function_by_number, btrace_set_insn_history)
14958 (btrace_set_call_history): New.
14959 * btrace.c (btrace_init_insn_iterator)
14960 (btrace_init_func_iterator, compute_itrace): Remove.
14961 (ftrace_print_function_name, ftrace_print_filename)
14962 (ftrace_skip_file): Change
14963 parameter to const.
14964 (ftrace_init_func): Remove.
14965 (ftrace_debug): Use new btrace_function fields.
14966 (ftrace_function_switched): Also consider gaining and
14967 losing symbol information).
14968 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14969 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14970 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14972 (ftrace_new_function): Move. Remove debug print.
14973 (ftrace_update_lines, ftrace_update_insns): New.
14974 (ftrace_update_function): Check for call, ret, and jump.
14975 (compute_ftrace): Renamed to ...
14976 (btrace_compute_ftrace): ...this. Rewritten to compute call
14978 (btrace_fetch, btrace_clear): Updated.
14979 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14980 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14981 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14982 (btrace_call_number, btrace_call_begin, btrace_call_end)
14983 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14984 (btrace_find_function_by_number, btrace_set_insn_history)
14985 (btrace_set_call_history): New.
14986 * record-btrace.c (require_btrace): Use new btrace thread
14988 (record_btrace_info, btrace_insn_history)
14989 (record_btrace_insn_history, record_btrace_insn_history_range):
14990 Use new btrace thread info fields and new iterator.
14991 (btrace_func_history_src_line): Rename to ...
14992 (btrace_call_history_src_line): ...this. Use new btrace
14993 thread info fields.
14994 (btrace_func_history): Rename to ...
14995 (btrace_call_history): ...this. Use new btrace thread info
14996 fields and new iterator.
14997 (record_btrace_call_history, record_btrace_call_history_range):
14998 Use new btrace thread info fields and new iterator.
15000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15002 * frame.h (frame_id_build_unavailable_stack_special): New.
15003 * frame.c (frame_id_build_unavailable_stack_special): New.
15005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15007 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15008 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15009 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15011 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15012 (i386_insn_is_jump, i386_jmp_p): New.
15013 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15014 insn_is_jump to gdbarch.
15015 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15016 * gdbarch.h: Regenerated.
15017 * gdbarch.c: Regenerated.
15018 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15019 (default_insn_is_jump): New.
15020 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15021 (default_insn_is_jump): New.
15023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15025 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15027 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15028 (btrace_read_type) <btrace_read_new>: Change to ...
15029 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15033 * common/linux-btrace.c (linux_read_btrace): Free trace from
15034 previous iteration.
15036 2014-01-15 Doug Evans <dje@google.com>
15038 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15041 2014-01-15 Tom Tromey <tromey@redhat.com>
15043 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15044 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15045 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15046 (set_objfile_main_name): New function.
15047 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15048 language_of_main>: New fields.
15049 (set_objfile_main_name): Declare.
15050 * symtab.c (find_main_name): Loop over objfiles to find the main
15052 (set_main_name): Now static.
15053 (get_main_info): Add comment.
15054 * symtab.h (set_main_name): Don't declare.
15056 2014-01-15 Tom Tromey <tromey@redhat.com>
15058 * symtab.c (main_progspace_key): New global.
15059 (struct main_info): New.
15060 (name_of_main, language_of_main): Remove.
15061 (get_main_info, main_info_cleanup): New function.
15062 (set_main_name, main_name, main_language): Use get_main_info.
15063 (_initialize_symtab): Initialize main_progspace_key.
15065 2014-01-15 Tom Tromey <tromey@redhat.com>
15067 * dbxread.c (process_one_symbol): Update.
15068 * dwarf2read.c (read_partial_die): Update.
15069 * symfile.c (set_initial_language): Call main_language.
15070 * symtab.c (language_of_main): Now static.
15071 (set_main_name): Add 'lang' parameter.
15072 (find_main_name): Update.
15073 (main_language): New function.
15074 (symtab_observer_executable_changed): Update.
15075 * symtab.h (set_main_name): Update.
15076 (language_of_main): Remove.
15077 (main_language): Declare.
15079 2014-01-15 Tom Tromey <tromey@redhat.com>
15081 * symfile.c (init_entry_point_info): Use new "initialized" field.
15083 * objfiles.h (struct entry_point) <initialized>: New field.
15084 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15085 (struct objfile) <ei>: ...here. Remove.
15086 * objfiles.c (entry_point_address_query): Update.
15088 2014-01-15 Tom Tromey <tromey@redhat.com>
15090 * objfiles.c (entry_point_address_query): Relocate entry point
15092 (objfile_relocate1): Do not relocate entry point address.
15093 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15094 <the_bfd_section_index>: New field.
15095 * symfile.c (init_entry_point_info): Find the entry point's
15098 2014-01-15 Tom Tromey <tromey@redhat.com>
15100 * solib-frv.c (enable_break): Use entry_point_address_query.
15102 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15104 * NEWS: Add note on improved process record-replay on
15105 arm*-linux* targets.
15107 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15109 * arm-tdep.c (enum arm_record_result): New enum.
15110 (arm_record_unsupported_insn): New function.
15111 (arm_record_coproc_data_proc): Removed.
15112 (thumb2_record_ld_st_multiple): New function.
15113 (thumb2_record_ld_st_dual_ex_tbb): New function.
15114 (thumb2_record_data_proc_sreg_mimm): New function.
15115 (thumb2_record_ps_dest_generic): New function.
15116 (thumb2_record_branch_misc_cntrl): New function.
15117 (thumb2_record_str_single_data): New function.
15118 (thumb2_record_ld_mem_hints): New function.
15119 (thumb2_record_ld_word): New function.
15120 (thumb2_record_lmul_lmla_div): New function.
15121 (thumb2_record_decode_insn_handler): New function.
15122 (decode_insn): Add thumb32 instruction handlers.
15124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15126 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15127 (struct arm_linux_record_tdep): Declare.
15128 (arm_canonicalize_syscall): New function.
15129 (arm_all_but_pc_registers_record): New function.
15130 (arm_linux_syscall_record): New function.
15131 (arm_linux_init_abi): Add syscall recording constructs.
15132 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15133 decoding. (arm_record_coproc_data_proc): Update arm syscall
15135 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15136 <arm_syscall_record>: New field.
15137 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15140 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15142 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15143 register for push instruction recording.
15145 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15147 * arm-tdep.c (thumb_record_misc): Update to correct logical
15148 error while recording ldm, ldmia and pop instructions.
15150 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15152 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15154 2014-01-15 Pedro Alves <palves@redhat.com>
15156 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15157 (go32_resume, go32_fetch_registers, store_register)
15158 (go32_store_registers, go32_prepare_to_store)
15159 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15160 (go32_create_inferior, go32_can_run, go32_terminal_init)
15161 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15164 2014-01-15 Tom Tromey <tromey@redhat.com>
15166 * target.h (async_callback_ftype): New typedef.
15167 (struct target_ops) <to_async>: Use it.
15169 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15171 * python/py-value.c (get_field_type): Remove unnecessary curly
15172 braces for single-statement if block.
15174 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15176 * python/py-type.c (convert_field): Add missing empty line
15177 after declarations.
15179 2014-01-14 Doug Evans <dje@google.com>
15181 * symfile.h (expand_symtabs_matching): Renamed from
15182 expand_partial_symbol_names. Update prototype.
15183 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15184 * symfile.c (expand_symtabs_matching): Renamed from
15185 expand_partial_symbol_names. New args file_matcher, kind.
15186 Rename arg fun to symbol_matcher.
15187 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15188 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15189 ada_expand_partial_symbol_name.
15190 (ada_make_symbol_completion_list): Update to call
15191 expand_symtabs_matching.
15192 (ada_add_global_exceptions): Call expand_symtabs_matching.
15193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15194 call map_symbol_filenames.
15195 * symtab.c (sources_info): Update to call map_symbol_filenames.
15196 (search_symbols): Call expand_symtabs_matching.
15197 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15198 (default_make_symbol_completion_list_break_on): Update to call
15199 expand_symtabs_matching.
15200 (make_source_files_completion_list): Update to call
15201 map_symbol_filenames.
15203 2014-01-14 Doug Evans <dje@google.com>
15205 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15206 (expand_symtabs_symbol_matcher_ftype): New typedef.
15207 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15209 * symfile.c (expand_partial_symbol_names): Update to use
15210 expand_symtabs_symbol_matcher_ftype.
15211 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15212 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15213 Arg name_matcher renamed to symbol_matcher.
15214 * psymtab.c (recursively_search_psymtabs): Update to use
15215 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15217 (expand_symtabs_matching_via_partial): Update to use
15218 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15219 Arg name_matcher renamed to symbol_matcher.
15221 2014-01-14 Doug Evans <dje@google.com>
15223 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15224 (map_partial_symbol_filenames): Ditto.
15225 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15226 (map_partial_symbol_filenames): Ditto.
15227 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15228 (map_partial_symbol_filenames): Ditto.
15229 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15230 (map_partial_symbol_filenames): Ditto.
15231 * symtab.c: Delete #include "psymtab.h".
15233 2014-01-14 Pedro Alves <palves@redhat.com>
15234 Tom Tromey <tromey@redhat.com>
15236 * infrun.c (use_displaced_stepping): Use find_record_target
15237 instead of RECORD_IS_USED.
15238 (adjust_pc_after_break): Use record_full_is_used instead of
15240 * record-btrace.c (record_btrace_open): Call record_preopen
15241 instead of checking RECORD_IS_USED.
15242 * record-full.c (record_full_shortname)
15243 (record_full_core_shortname): New globals.
15244 (record_full_is_used): New function.
15245 (find_full_open): Call record_preopen instead of checking
15247 (init_record_full_ops): Set the target's shortname to
15248 record_full_shortname.
15249 (init_record_full_core_ops): Set the target's shortname to
15250 record_full_core_shortname.
15251 * record-full.h (record_full_is_used): Declare.
15252 * record.c (find_record_target): Make extern.
15253 (record_preopen): New function.
15254 * record.h (RECORD_IS_USED): Delete macro.
15255 (find_record_target, record_preopen): Declare functions.
15257 2014-01-14 Yao Qi <yao@codesourcery.com>
15259 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15260 'len''s type to ULONGEST.
15261 (core_xfer_shared_libraries_aix): Likewise.
15262 * gdbarch.c, gdbarch.h: Regenerated.
15263 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15264 Change type of 'len' to ULONGEST.
15265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15266 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15268 2014-01-14 Yao Qi <yao@codesourcery.com>
15270 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15271 type of 'len' to ULONGEST.
15272 (linux_xfer_osdata_processgroups): Likewise.
15273 (linux_xfer_osdata_threads): Likewise.
15274 (linux_xfer_osdata_fds): Likewise.
15275 (linux_xfer_osdata_isockets): Likewise.
15276 (linux_xfer_osdata_shm): Likewise.
15277 (linux_xfer_osdata_sem): Likewise.
15278 (linux_xfer_osdata_msg): Likewise.
15279 (linux_common_xfer_osdata): Likewise.
15280 (struct osdata_type) <getter>: Likewise.
15281 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15284 2014-01-14 Yao Qi <yao@codesourcery.com>
15286 * target.h (target_xfer_partial_ftype): Update.
15287 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15289 * aix-thread.c (aix_thread_xfer_partial): Change type of
15290 argument 'len' to ULONGEST.
15291 * auxv.c (procfs_xfer_auxv): Likewise.
15292 (ld_so_xfer_auxv): Likewise.
15293 (memory_xfer_auxv): Likewise.
15294 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15295 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15296 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15297 * corelow.c (core_xfer_partial): Likewise.
15298 * ctf.c (ctf_xfer_partial): Likewise.
15299 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15301 (darwin_read_dyld_info): Likewise.
15302 (darwin_xfer_partial): Likewise.
15303 * exec.c (section_table_xfer_memory_partial): Likewise.
15304 (exec_xfer_partial): Likewise.
15305 * exec.h (section_table_xfer_memory_partial): Update
15307 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15308 instead of plongest.
15309 (gnu_xfer_partial): Likewise.
15310 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15311 (ia64_hpux_xfer_solib_got): Likewise.
15312 (ia64_hpux_xfer_partial): Likewise.
15313 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15314 * inf-ptrace.c (inf_ptrace_xfer_partial):
15315 * inf-ttrace.c (inf_ttrace_xfer_partial):
15316 * linux-nat.c (linux_xfer_siginfo): Likewise.
15317 (linux_nat_xfer_partial): Likewise.
15318 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15319 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15320 * monitor.c (monitor_xfer_memory): Likewise.
15321 (monitor_xfer_partial): Likewise.
15322 * procfs.c (procfs_xfer_partial): Likewise.
15323 * record-full.c (record_full_xfer_partial): Likewise.
15324 (record_full_core_xfer_partial): Likewise.
15325 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15326 instead of plongest.
15327 (gdbsim_xfer_partial): Likewise.
15328 * remote.c (remote_xfer_partial): Likewise.
15329 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15330 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15332 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15333 (rs6000_xfer_shared_libraries): Likewise.
15334 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15335 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15336 (sparc_xfer_partial): Likewise.
15337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15338 (spu_xfer_partial): Likewise.
15339 * spu-multiarch.c (spu_xfer_partial): Likewise.
15340 * target.c (target_read_live_memory): Likewise.
15341 (memory_xfer_live_readonly_partial): Likewise.
15342 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15343 (target_xfer_partial, default_xfer_partial): Likewise.
15344 (current_xfer_partial): Likewise.
15345 * tracepoint.c (tfile_xfer_partial): Likewise.
15346 * windows-nat.c (windows_xfer_memory): Likewise. Call
15347 pulongest instead of plongest.
15348 (windows_xfer_partial): Likewise.
15349 (windows_xfer_shared_libraries): Likewise.
15351 2014-01-14 Yao Qi <yao@codesourcery.com>
15353 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15354 target_xfer_partial_ftype.
15356 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15360 * valops.c (value_struct_elt_bitpos): New function
15361 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15362 object to 'None' if the field name is an empty string ("").
15363 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15364 attribute to look for a field when 'name' is 'None'.
15365 (get_field_type): New function
15367 2014-01-13 Doug Evans <dje@google.com>
15370 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15371 (try_open_dwop_file): Ditto.
15372 * gdb_bfd.c: #include "vec.h".
15373 (bfdp): New typedef.
15374 (struct gdb_bfd_data): New member included_bfds.
15375 (gdb_bfd_unref): Unref all included bfds.
15376 (gdb_bfd_record_inclusion): New function.
15377 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15379 2014-01-13 Tom Tromey <tromey@redhat.com>
15381 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15383 2014-01-13 Tom Tromey <tromey@redhat.com>
15385 * defs.h (use_windows): Remove.
15386 * gdb.c (main): Update.
15387 * main.c (captured_main, gdb_main): Update.
15388 * main.h (struct captured_main_args) <use_windows>: Remove.
15389 * top.c (use_windows): Remove.
15391 2014-01-13 Tom Tromey <tromey@redhat.com>
15393 * defs.h (deprecated_flush_hook): Remove.
15395 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15398 * linux-thread-db.c (try_thread_db_load): Add parameter
15399 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15400 (try_thread_db_load_from_pdir_1): Move it there from here.
15401 (try_thread_db_load_from_sdir): Update caller.
15402 (try_thread_db_load_from_dir): Move it there from here.
15404 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15406 * regformats/regdat.sh: Always rewrite the register file.
15408 2014-01-13 Pedro Alves <palves@redhat.com>
15410 * Makefile.in (CHECK_HEADERS): New variable.
15411 (check-headers:): New rule.
15413 2014-01-13 Tom Tromey <tromey@redhat.com>
15415 * cli/cli-setshow.c (do_set_command): Update.
15416 * defs.h (deprecated_set_hook): Remove.
15417 * top.c (deprecated_set_hook): Remove.
15419 2014-01-13 Pedro Alves <palves@redhat.com>
15421 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15422 the tracepoint if the PC is a pseudo-register.
15424 2014-01-13 Tom Tromey <tromey@redhat.com>
15426 * defs.h (XCALLOC): Remove.
15427 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15428 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15429 * dwarf2loc.c (allocate_piece_closure): Likewise.
15430 * elfread.c (elf_symfile_segments): Likewise.
15431 (elf_symfile_segments): Likewise.
15432 * gdbtypes.c (copy_type_recursive): Likewise.
15433 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15434 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15435 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15437 * mt-tdep.c (mt_gdbarch_init): Likewise.
15438 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15440 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15441 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15442 * registry.c (registry_alloc_data): Likewise.
15443 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15444 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15445 * serial.c (serial_fdopen_ops): Likewise.
15446 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15448 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15449 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15452 2014-01-13 Tom Tromey <tromey@redhat.com>
15454 * defs.h (XMALLOC): Remove.
15455 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15456 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15457 * cli-out.c (struct ui_out *): Likewise.
15458 * cli/cli-dump.c (add_dump_command): Likewise.
15459 (add_dump_command): Likewise.
15460 * complaints.c (get_complaints): Likewise.
15461 (find_complaint): Likewise.
15462 * dwarf2-frame.c (execute_cfa_program): Likewise.
15463 * dwarf2read.c (abbrev_table_read_table): Likewise.
15464 * gdbarch.sh: Likewise.
15465 * gdbarch.c: Rebuild.
15466 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15467 * interps.c (interp_new): Likewise.
15468 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15469 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15470 * mi/mi-console.c (mi_console_file_new): Likewise.
15471 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15472 * mi/mi-out.c (mi_out_new): Likewise.
15473 * mi/mi-parse.c (mi_parse): Likewise.
15474 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15475 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15476 * observer.c (xalloc_observer_list_node): Likewise.
15477 * regcache.c (regcache_xmalloc_1): Likewise.
15478 * reggroups.c (reggroup_new): Likewise.
15479 (_initialize_reggroup): Likewise.
15480 * registry.c (register_data_with_cleanup): Likewise.
15481 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15482 * ser-base.c (serial_ttystate): Likewise.
15483 * ser-mingw.c (make_pipe_state): Likewise.
15484 * ser-pipe.c (pipe_open): Likewise.
15485 * serial.c (serial_open): Likewise.
15486 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15487 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15488 (tui_alloc_win_info): Likewise.
15489 (tui_add_content_elements): Likewise.
15490 * tui/tui-file.c (tui_file_new): Likewise.
15491 * tui/tui-out.c (tui_out_new): Likewise.
15492 * ui-file.c (mem_file_new): Likewise.
15493 * ui-out.c (push_level): Likewise.
15494 (make_cleanup_ui_out_end): Likewise.
15495 (append_header_to_list): Likewise.
15496 (ui_out_new): Likewise.
15497 * user-regs.c (user_reg_add_builtin): Likewise.
15499 2014-01-13 Tom Tromey <tromey@redhat.com>
15501 * defs.h (XZALLOC): Remove.
15502 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15503 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15504 (get_ada_tasks_inferior_data): Likewise.
15505 * auto-load.c (get_auto_load_pspace_data): Likewise.
15506 * auxv.c (get_auxv_inferior_data): Likewise.
15507 * bfd-target.c (target_bfd_reopen): Likewise.
15508 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15509 (deprecated_insert_raw_breakpoint): Likewise.
15510 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15511 * corelow.c (core_open): Likewise.
15512 * darwin-nat.c (darwin_check_new_threads): Likewise.
15513 (darwin_attach_pid): Likewise.
15514 * dummy-frame.c (dummy_frame_push): Likewise.
15515 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15516 * dwarf2loc.c (allocate_piece_closure): Likewise.
15517 * elfread.c (elf_symfile_segments): Likewise.
15518 * eval.c (ptrmath_type_p): Likewise.
15519 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15520 * gdbtypes.c (alloc_type_arch): Likewise.
15521 (alloc_type_instance): Likewise.
15522 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15523 * inf-child.c (inf_child_can_use_agent): Likewise.
15524 * inflow.c (get_inflow_inferior_data): Likewise.
15525 * infrun.c (save_infcall_suspend_state): Likewise.
15526 * jit.c (jit_reader_load): Likewise.
15527 (get_jit_objfile_data): Likewise.
15528 (get_jit_program_space_data): Likewise.
15529 (jit_object_open_impl): Likewise.
15530 (jit_symtab_open_impl): Likewise.
15531 (jit_block_open_impl): Likewise.
15532 (jit_frame_sniffer): Likewise.
15533 * linux-fork.c (add_fork): Likewise.
15534 * maint.c (make_command_stats_cleanup): Likewise.
15535 * objfiles.c (get_objfile_pspace_data): Likewise.
15536 * opencl-lang.c (struct lval_closure): Likewise.
15537 * osdata.c (osdata_start_osdata): Likewise.
15538 * progspace.c (new_address_space): Likewise.
15539 (add_program_space): Likewise.
15540 * remote-sim.c (get_sim_inferior_data): Likewise.
15541 * sh-tdep.c (sh_gdbarch_init): Likewise.
15542 * skip.c (Ignore): Likewise.
15543 (skip_delete_command): Likewise.
15544 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15545 (library_list_start_library): Likewise.
15546 (solib_aix_current_sos): Likewise.
15547 * solib-darwin.c (get_darwin_info): Likewise.
15548 (darwin_current_sos): Likewise.
15549 * solib-dsbt.c (get_dsbt_info): Likewise.
15550 * solib-ia64-hpux.c (new_so_list): Likewise.
15551 (ia64_hpux_get_solib_linkage_addr): Likewise.
15552 * solib-spu.c (append_ocl_sos): Likewise.
15553 (spu_current_sos): Likewise.
15554 * solib-svr4.c (get_svr4_info): Likewise.
15555 (svr4_keep_data_in_core): Likewise.
15556 (library_list_start_library): Likewise.
15557 (svr4_default_sos): Likewise.
15558 (svr4_read_so_list): Likewise.
15559 * solib-target.c (library_list_start_library): Likewise.
15560 (solib_target_current_sos): Likewise.
15561 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15562 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15563 * symfile.c (default_symfile_segments): Likewise.
15564 * target-descriptions.c (tdesc_data_init): Likewise.
15565 (tdesc_create_reg): Likewise.
15566 (struct tdesc_type *): Likewise.
15567 (tdesc_create_vector): Likewise.
15568 (tdesc_set_struct_size): Likewise.
15569 (struct tdesc_type *): Likewise.
15570 (tdesc_free_feature): Likewise.
15571 (tdesc_create_feature): Likewise.
15572 * windows-nat.c (windows_add_thread): Likewise.
15573 (windows_make_so): Likewise.
15574 * xml-support.c (gdb_xml_body_text): Likewise.
15575 (gdb_xml_create_parser_and_cleanup): Likewise.
15576 (xml_process_xincludes): Likewise.
15577 * xml-syscall.c (allocate_syscalls_info): Likewise.
15578 (syscall_create_syscall_desc): Likewise.
15580 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15582 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15583 function, with code from i386_stap_parse_special_token.
15584 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15585 (i386_stap_parse_special_token): Move code to the two functions
15586 above; simplify it.
15588 2014-01-09 Pedro Alves <palves@redhat.com>
15589 Hui Zhu <hui@codesourcery.com>
15592 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15593 bp_err_string. Don't mark the location shlib_disabled if the
15594 error thrown wasn't a generic or memory error. Catch errors
15595 thrown while inserting breakpoints in overlayed code. Output
15596 error message of software breakpoints.
15597 * remote.c (remote_insert_breakpoint): If this breakpoint has
15598 target-side commands but this stub doesn't support Z0 packets,
15599 throw NOT_SUPPORTED_ERROR error.
15600 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15601 * target.h (target_insert_breakpoint): Extend comment.
15602 (target_insert_hw_breakpoint): Add comment.
15604 2014-01-08 Pedro Alves <palves@redhat.com>
15606 * remote.c (remote_add_thread): Add threads silently if starting
15608 (remote_notice_new_inferior): If in all-stop, and starting up,
15609 don't call notice_new_inferior.
15610 (get_current_thread): New function, factored out from ...
15611 (add_current_inferior_and_thread): ... this. Adjust.
15612 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15613 found any thread, then select the remote's current thread as GDB's
15614 current thread too.
15616 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15618 * NEWS: Create a new section for the next release branch.
15619 Rename the section of the current branch, now that it has
15622 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15624 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15625 * version.in: Bump version to 7.7.50.DATE-cvs.
15627 2014-01-08 Yao Qi <yao@codesourcery.com>
15629 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15630 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15631 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15633 2014-01-08 Yao Qi <yao@codesourcery.com>
15635 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15636 return value of bfd_get_filename to symbol_file_add_from_bfd.
15638 2014-01-08 Pierre Muller <muller@sourceware.org>
15641 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15642 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15643 to prim_record_mininal_symbol_and_info.
15644 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15645 in call to prim_record_minimal_symbol_and_info.
15646 (read_pe_exported_syms): Set index field of section_data.
15648 2014-01-07 Andrew Pinski <apinski@cavium.com>
15650 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15651 * features/aarch64.c: Regenerate.
15653 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15655 * target.c (return_null): Define.
15656 (update_current_target): Use it instead of return_zero for
15657 functions that return a pointer.
15659 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15661 * source.c (add_path): Fix check for duplicated paths in the previously
15664 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15666 * ada-lang.c: Remove duplicated include statements.
15667 * alphabsd-nat.c: Ditto.
15668 * amd64-darwin-tdep.c: Ditto.
15669 * amd64fbsd-nat.c: Ditto.
15670 * auto-load.c: Ditto.
15672 * breakpoint.c: Ditto.
15673 * dbxread.c: Ditto.
15674 * fork-child.c: Ditto.
15675 * gdb_usleep.c: Ditto.
15676 * i386-darwin-tdep.c: Ditto.
15677 * i386fbsd-nat.c: Ditto.
15679 * inferior.c: Ditto.
15680 * jv-lang.c: Ditto.
15681 * linux-nat.c: Ditto.
15682 * linux-tdep.c: Ditto.
15683 * m68kbsd-nat.c: Ditto.
15684 * m68klinux-nat.c: Ditto.
15685 * microblaze-tdep.c: Ditto.
15686 * mips-linux-tdep.c: Ditto.
15687 * mn10300-tdep.c: Ditto.
15688 * nto-tdep.c: Ditto.
15689 * opencl-lang.c: Ditto.
15691 * printcmd.c: Ditto.
15692 * regcache.c: Ditto.
15693 * remote-m32r-sdi.c: Ditto.
15695 * symfile.c: Ditto.
15697 * tilegx-linux-nat.c: Ditto.
15698 * tilegx-tdep.c: Ditto.
15699 * tracepoint.c: Ditto.
15701 * vaxbsd-nat.c: Ditto.
15702 * windows-nat.c: Ditto.
15703 * xtensa-tdep.c: Ditto.
15705 2014-01-07 Yao Qi <yao@codesourcery.com>
15707 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15709 2014-01-07 Yao Qi <yao@codesourcery.com>
15710 Joel Brobecker <brobecker@adacore.com>
15712 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15713 (pdc_write_regs): Likewise.
15714 (fetch_regs_kernel_thread): Likewise.
15715 (store_regs_kernel_thread): Likewise.
15717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15719 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15720 tagged type objects to their actual type.
15722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15724 * ada-valprint.c (print_field_values): Add "language" parameter.
15725 Update calls to print_field_values and print_variant_part.
15726 Pass new parameter "language" in call to val_print instead
15727 of "current_language". Replace call to ada_val_print by call
15729 (print_variant_part): Add "language" parameter.
15730 (ada_val_print_struct_union): Update call to print_field_values.
15732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15734 * ada-valprint.c (ui_memcpy): Delete.
15735 (ada_print_floating): Update documentation. Add empty line
15736 between between function documentation and implementation.
15737 Delete variable "buffer". Use ui_file_xstrdup in place of
15738 ui_file_put. Minor adjustments following this change.
15740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15742 * ada-valprint.c (ada_val_print_string): New function,
15743 extracted from ada_val_print_array.
15744 (ada_val_print_array): Replace extracted code by call
15745 to ada_val_print_string followed by a return. Move
15746 "else" branch to the function's top block.
15748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15750 * ada-valprint.c (ada_val_print_array): Move implementation
15751 down. Rename parameter "offset" and "val" into "offset_aligned"
15752 and "original_value" respectively. Add parameter "offset".
15754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15756 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15757 re-organizing the code. Change the "???" message printed
15758 when target type is a TYPE_CODE_UNDEF into
15759 "<ref to undefined type>".
15761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15763 * ada-valprint.c (print_record): Delete, implementation inlined...
15764 (ada_val_print_struct_union): ... here. Remove call to
15765 ada_check_typedef in inlined implementation.
15767 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15769 * ada-valprint.c (ada_val_print_gnat_array): New function,
15770 extracted from ada_val_print_1;
15771 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15772 (ada_val_print_flt, ada_val_print_struct_union)
15773 (ada_val_print_ref): Likewise.
15774 (ada_val_print_1): Delete variables i and elttype.
15775 Replace extracted-out code by call to corresponding
15778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15780 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15784 * ada-valprint.c (ada_val_print_1): Replace calls to
15785 ada_val_print_1 by calls to val_print.
15787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15789 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15790 Update calls to self accordingly. Replace calls to c_val_print
15791 by calls to val_print.
15793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15795 * ada-valprint.c (print_record): Delete declaration.
15796 (adjust_type_signedness, ada_val_print_1): Likewise.
15797 (ada_val_print): Move function implementation down.
15798 (print_variant_part, print_field_values, print_record):
15799 Move function implementation up.
15801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15803 * python/py-type.c (typy_get_name): New function.
15804 (type_object_getset): Add entry for attribute "name".
15805 * NEWS: Add entry mentioning this new attribute.
15807 2014-01-07 Yao Qi <yao@codesourcery.com>
15809 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15812 2014-01-07 Yao Qi <yao@codesourcery.com>
15814 * gnu-nat.c (info_port_rights): Add qualifier const to
15817 2014-01-07 Yao Qi <yao@codesourcery.com>
15819 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15821 2014-01-07 Yao Qi <yao@codesourcery.com>
15823 * gnu-nat.c (make_inf) Update declaration.
15824 (make_inf): Make it static.
15825 (inf_set_traced): Likewise.
15826 (inf_port_to_thread, inf_task_died_status): Likewise.
15828 2014-01-07 Yao Qi <yao@codesourcery.com>
15830 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15832 2014-01-07 Yao Qi <yao@codesourcery.com>
15834 * gnu-nat.c (_initialize_gnu_nat): Declare.
15836 2014-01-07 Yao Qi <yao@codesourcery.com>
15838 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15840 (struct gdbarch_info) <byte_order>: Change type to
15842 <byte_order_for_code>: Likewise.
15843 * gdbarch.c, gdbarch.h: Regenerated.
15845 2014-01-06 Sasha Smundak <asmundak@google.com>
15847 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15849 2014-01-06 Tom Tromey <tromey@redhat.com>
15851 * doublest.c (convert_doublest_to_floatformat): Use const, not
15853 * somread.c (som_symtab_read): Likewise.
15855 2014-01-07 Hui Zhu <hui@codesourcery.com>
15857 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15858 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15859 (gdb_bfd_fopen): Ditto.
15860 (gdb_bfd_openr): Ditto.
15861 (gdb_bfd_openw): Ditto.
15862 (gdb_bfd_openr_iovec): Ditto.
15863 (gdb_bfd_fdopenr): Ditto.
15864 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15865 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15867 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15869 * symfile-mem.c (symbol_file_add_from_memory): Removed
15870 gdb_bfd_stash_filename.
15872 2014-01-03 Doug Evans <dje@google.com>
15874 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15879 Update year range in copyright notice of all files.
15881 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15883 * top.c (print_gdb_version): Set copyright year to 2014.
15885 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15887 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15889 For older changes see ChangeLog-2013.
15895 version-control: never