Provide completer for "info registers"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * completer.c: Include "target.h", "reggroups.h", and
4 "user-regs.h".
5 (reg_or_group_completer): New.
6 * completer.h (reg_or_group_completer): Declare.
7 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
8 the "info registers" and "info all-registers" commands and the
9 dbx-mode "lr" command.
10
11 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12
13 * user-regs.c: Include "arch-utils.h", "command.h", and
14 "cli/cli-cmds.h".
15 (maintenance_print_user_registers): New.
16 (_initialize_user_regs): Register new "maint print user-registers"
17 subcommand.
18 * NEWS: Mention new GDB command "maint print user-registers".
19
20 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
21 Maciej W. Rozycki <macro@mips.com>
22 Pedro Alves <pedro@codesourcery.com>
23
24 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
25 remove `predefault' and `invalid_p' initializers.
26 (make_symbol_special): New architecture method.
27 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
28 (objfile, symbol): New declarations.
29 * arch-utils.h (default_elf_make_msymbol_special): Remove
30 prototype.
31 (default_make_symbol_special): New prototype.
32 (default_adjust_dwarf2_addr): Likewise.
33 (default_adjust_dwarf2_line): Likewise.
34 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
35 * arch-utils.c (default_elf_make_msymbol_special): Remove
36 function.
37 (default_make_symbol_special): New function.
38 (default_adjust_dwarf2_addr): Likewise.
39 (default_adjust_dwarf2_line): Likewise.
40 * dwarf2-frame.c (decode_frame_entry_1): Call
41 `gdbarch_adjust_dwarf2_addr'.
42 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
43 * dwarf2read.c (create_addrmap_from_index): Likewise.
44 (process_psymtab_comp_unit_reader): Likewise.
45 (add_partial_symbol): Likewise.
46 (add_partial_subprogram): Likewise.
47 (process_full_comp_unit): Likewise.
48 (read_file_scope): Likewise.
49 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
50 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
51 (read_call_site_scope): Likewise.
52 (dwarf2_ranges_read): Likewise.
53 (dwarf2_record_block_ranges): Likewise.
54 (read_attribute_value): Likewise.
55 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
56 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
57 * elfread.c (elf_symtab_read): Don't call
58 `gdbarch_elf_make_msymbol_special' if unset.
59 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
60 the ISA bit from the PC.
61 * mips-tdep.c (mips_unmake_compact_addr): New function.
62 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
63 address appropriately.
64 (mips_make_symbol_special): New function.
65 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
66 (mips_pc_is_mips16): Likewise.
67 (mips_pc_is_micromips): Likewise.
68 (mips_pc_isa): Likewise.
69 (mips_adjust_dwarf2_addr): New function.
70 (mips_adjust_dwarf2_line): Likewise.
71 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
72 (mips_addr_bits_remove): Likewise.
73 (mips_skip_trampoline_code): Likewise.
74 (mips_write_pc): Don't set the ISA bit.
75 (mips_eabi_push_dummy_call): Likewise.
76 (mips_o64_push_dummy_call): Likewise.
77 (mips_gdbarch_init): Install `mips_make_symbol_special',
78 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
79 handlers.
80 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
81 target-specific symbol address adjustments.
82 * gdbarch.h: Regenerate.
83 * gdbarch.c: Regenerate.
84
85 2014-12-12 Yao Qi <yao@codesourcery.com>
86
87 PR tdep/14261
88 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
89 'skip_pc'. Remove code skipping prologue instructions, use
90 arm_analyze_prologue instead.
91 (arm_analyze_prologue): Stop the scanning for unrecognized
92 instruction when skipping prologue.
93
94 2014-12-12 Yao Qi <yao@codesourcery.com>
95
96 * arm-tdep.c (arm_instruction_restores_sp): New function.
97 (arm_analyze_prologue): Call arm_instruction_restores_sp.
98 (arm_in_function_epilogue_p): Move code to
99 arm_instruction_restores_sp.
100
101 2014-12-11 Doug Evans <xdje42@gmail.com>
102
103 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
104
105 2014-12-11 Doug Evans <xdje42@gmail.com>
106
107 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
108 (symbol *lookup_symbol_via_quick_fns): Ditto.
109 (lookup_symbol_in_objfile): Add forward decl.
110 (lookup_global_symbol_from_objfile): Simplify, call
111 lookup_symbol_in_objfile.
112
113 2014-12-11 Doug Evans <xdje42@gmail.com>
114
115 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
116
117 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
118
119 PR breakpoints/17012
120 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
121 it is marked as persistent.
122
123 2014-12-10 Doug Evans <xdje42@gmail.com>
124
125 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
126 closer to its subroutines.
127
128 2014-12-10 Doug Evans <xdje42@gmail.com>
129
130 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
131
132 2014-12-10 Doug Evans <xdje42@gmail.com>
133
134 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
135 * cp-support.c (cp_lookup_symbol_imports): Delete.
136
137 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
138
139 PR gdb/17627
140 * target.c (cleanup_restore_target_terminal): New function.
141 (make_cleanup_restore_target_terminal): New function.
142 * target.h (make_cleanup_restore_target_terminal): New declaration.
143 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
144
145 2014-12-08 Doug Evans <dje@google.com>
146
147 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
148
149 2014-12-08 Doug Evans <dje@google.com>
150
151 * NEWS: Mention gdb.Objfile.owner.
152 * python/py-objfile.c (objfpy_get_owner): New function.
153 (objfile_getset): Add "owner".
154
155 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
156
157 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
158 (lookup_global_symbol_from_objfile): Call it.
159
160 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 Remove const from struct objfile *.
163 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
164 symtab.c, symtab.h: In these files.
165
166 2014-12-05 Andreas From <andreas.from@ericsson.com>
167
168 * MAINTAINERS (Write After Approval): Add "Andreas From"
169
170 2014-12-05 Doug Evans <xdje42@gmail.com>
171
172 Revert:
173 PR symtab/17602
174 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
175
176 2014-12-04 Doug Evans <dje@google.com>
177
178 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
179 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
180 (objfile_getset): Add "add_separate_debug_file".
181
182 2014-12-04 Doug Evans <dje@google.com>
183
184 * NEWS: Mention gdb.Objfile.build_id.
185 * build-id.c (build_id_bfd_get): Make non-static.
186 * build-id.h (build_id_bfd_get): Add declaration.
187 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
188 (OBJFPY_REQUIRE_VALID): New macro.
189 (objfpy_get_build_id): New function.
190 (objfile_getset): Add "build_id".
191 * utils.c (make_hex_string): New function.
192 * utils.h (make_hex_string): Add declaration.
193
194 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 * block.c (block_lookup_symbol_primary): New function.
197 * block.h (block_lookup_symbol_primary): New declaration.
198 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
199 Call block_lookup_symbol_primary.
200
201 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
202
203 * tramp-frame.h (tramp_frame): Add `validate' member.
204 * tramp-frame.c (tramp_frame_start): Validate trampoline before
205 scanning.
206 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
207 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
208 (mips_linux_o32_sigframe): Initialize `validate' member.
209 (mips_linux_o32_rt_sigframe): Likewise.
210 (mips_linux_n32_rt_sigframe): Likewise.
211 (mips_linux_n64_rt_sigframe): Likewise.
212 (micromips_linux_o32_sigframe): New variable.
213 (micromips_linux_o32_rt_sigframe): Likewise.
214 (micromips_linux_n32_rt_sigframe): Likewise.
215 (micromips_linux_n64_rt_sigframe): Likewise.
216 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
217 (mips_linux_n32n64_sigframe_init): Likewise.
218 (mips_linux_sigframe_validate): New function.
219 (micromips_linux_sigframe_validate): Likewise.
220 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
221
222 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
223
224 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
225 * sparc-sol2-tdep.c: Include "regset.h".
226 (sparc32_sol2_supply_core_gregset): New function.
227 (sparc32_sol2_collect_core_gregset): Likewise.
228 (sparc32_sol2_supply_core_fpregset): Likewise.
229 (sparc32_sol2_collect_core_fpregset): Likewise.
230 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
231 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
232 tdep->fpregset/sizeof_fpregset.
233 * sparc64-sol2-tdep.c: Include "regset.h".
234 (sparc64_sol2_supply_core_gregset): New function.
235 (sparc64_sol2_collect_core_gregset): Likewise.
236 (sparc64_sol2_supply_core_fpregset): Likewise.
237 (sparc64_sol2_collect_core_fpregset): Likewise.
238 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
239 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
240 tdep->fpregset/sizeof_fpregset.
241
242 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
243
244 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
245 type.
246
247 2014-12-02 Doug Evans <dje@google.com>
248
249 * symtab.c (symbol_init_cplus_specific): Delete.
250 (symbol_set_demangled_name): Remove special c++ support.
251 (symbol_get_demangled_name, symbol_set_language): Ditto.
252 * symtab.h (struct cplus_specific): Delete.
253 (struct general_symbol_info) <language_specific>: Remove
254 cplus_specific.
255
256 2014-12-02 Doug Evans <dje@google.com>
257
258 PR symtab/17602
259 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
260
261 2014-12-02 Doug Evans <dje@google.com>
262
263 PR symtab/17591
264 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
265 to strip parameters.
266
267 2014-12-02 Doug Evans <dje@google.com>
268
269 * dwarf2read.c (peek_die_abbrev): Improve error message text.
270
271 2014-12-02 Doug Evans <dje@google.com>
272
273 * valops.c (do_search_struct_field): Remove remnant of Chill support.
274 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
275
276 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
277
278 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
279
280 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
281
282 * NEWS: Mention new Python events.
283 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
284 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
285 (py-infevents.o): New rule.
286 * doc/observer.texi (inferior_call_pre, inferior_call_post)
287 (memory_changed, register_changed): New observers.
288 * infcall.c (call_function_by_hand): Notify observer before and
289 after inferior call.
290 * python/py-event.h (inferior_call_kind): New enum.
291 (emit_inferior_call_event): New prototype.
292 (emit_register_changed_event): New prototype.
293 (emit_memory_changed_event): New prototype.
294 * python/py-events.h (events_object): New registries
295 inferior_call, memory_changed and register_changed.
296 * python/py-evts.c (gdbpy_initialize_py_events): Add the
297 inferior_call, memory_changed and register_changed registries.
298 * python/py-infevents.c: New.
299 * python/py-inferior.c (python_on_inferior_call_pre)
300 (python_on_inferior_call_post, python_on_register_change)
301 (python_on_memory_change): New functions.
302 (gdbpy_initialize_inferior): Attach python handler to new
303 observers.
304 * python/py-infthread.c(gdbpy_create_ptid_object): New.
305 (thpy_get_ptid) Use gdbpy_create_ptid_object.
306 * python/python-internal.h:
307 (gdbpy_create_ptid_object)
308 (gdbpy_initialize_inferior_call_pre_event)
309 (gdbpy_initialize_inferior_call_post_event)
310 (gdbpy_initialize_register_changed_event)
311 (gdbpy_initialize_memory_changed_event): New prototypes.
312 * python/python.c (_initialize_python): Initialize new events.
313 * valops.c (value_assign): Notify register_changed observer.
314
315 2014-12-02 Doug Evans <dje@google.com>
316
317 * python/py-infthread.c: Whitespace fixes.
318
319 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
320
321 * features/Makefile (s390-te-linux64-expedite): Replace
322 non-existant r14 and r15 by r14l and r15l, respectively.
323 * regformats/s390-te-linux64.dat: Regenerate.
324
325 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
326
327 * objfiles.c (allocate_objfile): Remove duplicate comment.
328
329 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
330
331 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
332 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
333 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
334 (supply_gregset, supply_fpregset): Remove.
335 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
336 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
337 and sizeof_gregset.
338
339 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 Add add-auto-load-scripts-directory.
342 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
343 * auto-load.c (add_auto_load_dir): New function.
344 (_initialize_auto_load): Install it.
345
346 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
347
348 Pushed by Joel Brobecker <brobecker@adacore.com>.
349 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
350
351 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
352
353 * eval.c (evaluate_subexp): Check that the thread stack temporaries
354 are not already enabled before enabling them.
355
356 2014-11-29 Yao Qi <yao@codesourcery.com>
357
358 * arm-tdep.c (arm_analyze_prologue): Move local variables
359 'framereg' and 'framesize' to inner block. Move code to
360 inner block too.
361
362 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
363
364 * eval.c: Include gdbthread.h.
365 (evaluate_subexp): Enable thread stack temporaries before
366 evaluating a complete expression and clean them up after the
367 evaluation is complete.
368 * gdbthread.h: Include common/vec.h.
369 (value_ptr): New typedef.
370 (VEC (value_ptr)): New vector type.
371 (value_vec): New typedef.
372 (struct thread_info): Add new fields stack_temporaries_enabled
373 and stack_temporaries.
374 (enable_thread_stack_temporaries)
375 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
376 (get_last_thread_stack_temporary)
377 (value_in_thread_stack_temporaries): Declare.
378 * gdbtypes.c (class_or_union_p): New function.
379 * gdbtypes.h (class_or_union_p): Declare.
380 * infcall.c (call_function_by_hand): Store return values of class
381 type as temporaries on stack.
382 * thread.c (enable_thread_stack_temporaries): New function.
383 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
384 (get_last_thread_stack_temporary): Likewise.
385 (value_in_thread_stack_temporaries): Likewise.
386 * value.c (value_force_lval): New function.
387 * value.h (value_force_lval): Declare.
388
389 2014-11-28 Pierre Muller <muller@sourceware.org>
390
391 Pushed by Joel Brobecker <brobecker@adacore.com>.
392 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
393 registers.
394
395 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
396
397 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
398 * config/sparc/linux.mh (NATDEPFILES): Likewise.
399 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
400 * m68klinux-nat.c (fetch_core_registers): Remove.
401 (linux_elf_core_fns): Remove.
402 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
403
404 2014-11-28 Joel Brobecker <brobecker@adacore.com>
405
406 * utils.c (gdb_realpath): Rework comment about handling on
407 Windows.
408
409 2014-11-28 Yao Qi <yao@codesourcery.com>
410
411 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
412 rename.
413 * gnulib/aclocal.m4: Re-generated.
414 * gnulib/config.in: Re-generated.
415 * gnulib/configure: Re-generated.
416 * gnulib/import/Makefile.am: Re-generated.
417 * gnulib/import/Makefile.in: Re-generated.
418 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
419 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
420 * import/basename-lgpl.c: New file.
421 * import/dirname-lgpl.c: New file.
422 * import/dirname.h: New file.
423 * import/m4/dirname.m4: New file.
424 * import/m4/malloc.m4: New file.
425 * import/m4/rename.m4: New file.
426 * import/m4/rmdir.m4: New file.
427 * import/m4/stdio_h.m4: New file.
428 * import/malloc.c: New file.
429 * import/rename.c: New file.
430 * import/rmdir.c: New file.
431 * import/same-inode.h: New file.
432 * import/stdio.c: New file.
433 * import/stdio.in.h: New file.
434 * import/stripslash.c: New file.
435
436 2014-11-28 Yao Qi <yao@codesourcery.com>
437
438 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
439 and realpath.
440 * config.in: Re-generated.
441 * configure: Re-generated.
442 * utils.c (gdb_realpath): Remove code calling realpath,
443 canonicalize_file_name and pathconf.
444 [!_WIN32]: Call canonicalize_file_name.
445
446 2014-11-28 Yao Qi <yao@codesourcery.com>
447
448 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
449 canonicalize-lgpl.
450 * aclocal.m4: Re-generated.
451 * config.in: Re-generated.
452 * configure: Re-generated.
453 * import/Makefile.am: Re-generated.
454 * import/Makefile.in: Re-generated.
455 * import/m4/gnulib-cache.m4: Re-generated.
456 * import/m4/gnulib-comp.m4: Re-generated.
457 * import/canonicalize-lgpl.c: New file.
458 * import/extra/snippet/_Noreturn.h: New file.
459 * import/m4/canonicalize.m4: New file.
460 * import/m4/double-slash-root.m4: New file.
461 * import/m4/eealloc.m4: New file.
462 * import/m4/malloca.m4: New file.
463 * import/m4/nocrash.m4: New file.
464 * import/m4/stdlib_h.m4: New file.
465 * import/malloca.c: New file.
466 * import/malloca.h: New file.
467 * import/malloca.valgrind: New file.
468
469 2014-11-28 Yao Qi <yao@codesourcery.com>
470
471 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
472 * config.in, configure: Regenerate.
473 * symfile.c (find_separate_debug_file_by_debuglink): Remove
474 code checking HAVE_LSTAT is defined.
475
476 2014-11-28 Yao Qi <yao@codesourcery.com>
477
478 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
479 lstat.
480 * gnulib/aclocal.m4: Re-generated.
481 * gnulib/config.in: Re-generated.
482 * gnulib/configure: Re-generated.
483 * gnulib/import/Makefile.am: Re-generated.
484 * gnulib/import/Makefile.in: Re-generated.
485 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
486 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
487 * gnulib/import/lstat.c: New file.
488 * gnulib/import/m4/lstat.m4: New file.
489
490 2014-11-28 Yao Qi <yao@codesourcery.com>
491
492 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
493 * config.in, configure: Re-generate.
494 * inf-child.c (inf_child_fileio_readlink): Don't check
495 HAVE_READLINK is defined.
496
497 2014-11-28 Yao Qi <yao@codesourcery.com>
498
499 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
500 * gnulib/aclocal.m4: Re-generated.
501 * gnulib/config.in: Likewise.
502 * gnulib/configure: Likewise.
503 * gnulib/import/Makefile.am: Likewise.
504 * gnulib/import/Makefile.in: Likewise.
505 * gnulib/import/m4/gnulib-cache.m4: Likewise.
506 * gnulib/import/m4/gnulib-comp.m4: Likewise.
507 * gnulib/import/dosname.h: New file
508 * gnulib/import/m4/largefile.m4: New file.
509 * gnulib/import/m4/readlink.m4: New file.
510 * gnulib/import/m4/stat.m4: New file.
511 * gnulib/import/readlink.c: New file.
512 * gnulib/import/stat.c: New file.
513
514 2014-11-26 Mark Wielaard <mjw@redhat.com>
515
516 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
517 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
518
519 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
520
521 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
522 that there can be only one stack adjustment in the prologue
523 with tests to detect specific disallowed stack adjustments.
524
525 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
526
527 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
528 adjustments.
529
530 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
531
532 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
533 the instruction as well as reading it from memory.
534 (nios2_match_add): New.
535 (nios2_match_sub): New.
536 (nios2_match_addi): New.
537 (nios2_match_orhi): New.
538 (nios2_match_stw): New.
539 (nios2_match_ldw): New.
540 (nios2_match_rdctl): New.
541 (enum branch_condition): New.
542 (nios2_match_branch): New.
543 (nios2_match_jmpi): New.
544 (nios2_match_calli): New.
545 (nios2_match_jmpr): New.
546 (nios2_match_callr): New.
547 (nios2_match_break): New.
548 (nios2_match_trap): New.
549 (nios2_in_epilogue_p): Rewrite to use new functions.
550 (nios2_analyze_prologue): Likewise.
551 (nios2_skip_prologue): Delete unused local limit_pc.
552 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
553 (nios2_get_next_pc): Rewrite to use new functions.
554
555 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
558
559 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
560
561 Pushed by Joel Brobecker <brobecker@adacore.com>
562 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
563 elements pi_len by the size of the elements before calling
564 vm_deallocate.
565 (inf_validate_task_sc): Likewise, and properly deallocate the
566 noise array.
567
568 2014-11-23 Doug Evans <xdje42@gmail.com>
569
570 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
571 number and name if present. All callers updated.
572 (dump_fn_fieldlists): Fix indentation of args.
573
574 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
575
576 * MAINTAINERS (Write After Approval): Add myself.
577
578 2014-11-23 Joel Brobecker <brobecker@adacore.com>
579
580 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
581 to a bp_call_dummy breakpoint type.
582
583 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
584
585 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
586 registering the signal handler.
587
588 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
589
590 * event-top.h (call_stdin_event_handler_again_p): Declare.
591 * event-top.c (call_stdin_event_handler_again_p): Define.
592 (stdin_event_handler): Use it.
593 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
594 handler again if there is pending input following a
595 start sequence.
596
597 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
598
599 Pushed by Joel Brobecker <brobecker@adacore.com>
600 * linux-fork.c (checkpoint_command): Print index of new
601 checkpoint in response message.
602
603 2014-11-23 Yao Qi <yao@codesourcery.com>
604
605 * valprint.c (read_string): Move local variables 'found_nul',
606 'chunksize' and 'limit' to inner scope. Update comments.
607
608 2014-11-22 Doug Evans <xdje42@gmail.com>
609
610 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
611 function comment.
612 (search_symbols): Fix comments and whitespace.
613
614 2014-11-22 Doug Evans <xdje42@gmail.com>
615
616 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
617
618 2014-11-21 Doug Evans <dje@google.com>
619
620 * psymtab.c (psymtab_search_name): Fix whitespace.
621
622 2014-11-21 Yao Qi <yao@codesourcery.com>
623
624 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
625 errno.
626 * gnulib/import/Makefile.am: Re-generated.
627 * gnulib/import/Makefile.in: Likewise.
628 * gnulib/import/m4/gnulib-cache.m4: Likewise.
629
630 2014-11-21 Yao Qi <yao@codesourcery.com>
631
632 * gdb_wchar.h: Include wchar.h and wctype.h.
633 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
634 include wchar.h and wctype.h.
635 Don't check HAVE_WCHAR_H.
636
637 2014-11-21 Yao Qi <yao@codesourcery.com>
638
639 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
640 and wctype-h.
641 * gnulib/import/Makefile.am: Re-generated.
642 * gnulib/import/Makefile.in: Likewise.
643 * gnulib/import/m4/gnulib-cache.m4: Likewise.
644
645 2014-11-21 Yao Qi <yao@codesourcery.com>
646
647 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
648 memchr.
649 * gnulib/import/Makefile.am: Re-generated.
650 * gnulib/import/Makefile.in: Likewise.
651 * gnulib/import/m4/gnulib-cache.m4: Likewise.
652
653 2014-11-21 Yao Qi <yao@codesourcery.com>
654
655 * common/common-defs.h: Include alloca.h
656 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
657 * configure: Re-generated.
658 * defs.h: Remove code handling alloca.
659 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
660 or not.
661
662 2014-11-21 Yao Qi <yao@codesourcery.com>
663
664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
665 alloca.
666 * gnulib/import/Makefile.am: Re-generated.
667 * gnulib/import/Makefile.in: Likewise..
668 * gnulib/import/m4/gnulib-cache.m4: Likewise.
669
670 2014-11-21 Yao Qi <yao@codesourcery.com>
671
672 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
673 alphabetical order.
674
675 2014-11-21 Joel Brobecker <brobecker@adacore.com>
676
677 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
678 flag_unsigned if HIGH_BOUND is constant and negative.
679
680 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
681
682 PR breakpoints/10737
683 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
684 modifier from "struct gdbarch" when compiling without Expat (XML)
685 support.
686 (get_syscall_by_number): Likewise.
687 (get_syscall_by_name): Likewise.
688 (get_syscall_names): Likewise.
689
690 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
691
692 PR breakpoints/10737
693 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
694 set_xml_syscall_file_name to provide gdbarch.
695 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
696 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
697 * breakpoint.c (print_it_catch_syscall): Adjust call to
698 get_syscall_by_number to provide gdbarch.
699 (print_one_catch_syscall): Likewise.
700 (print_mention_catch_syscall): Likewise.
701 (print_recreate_catch_syscall): Likewise.
702 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
703 and get_syscall_by_name to provide gdbarch.
704 (catch_syscall_completer): Adjust call to get_syscall_names to
705 provide gdbarch.
706 * gdbarch.c: Regenerate.
707 * gdbarch.h: Likewise.
708 * gdbarch.sh: Forward declare "struct syscalls_info".
709 (xml_syscall_file): New variable.
710 (syscalls_info): Likewise.
711 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
712 set_xml_syscall_file_name to provide gdbarch.
713 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
714 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
715 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
716 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
717 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
718 * xml-syscall.c: Include gdbarch.h.
719 (set_xml_syscall_file_name): Accept gdbarch parameter.
720 (get_syscall_by_number): Likewise.
721 (get_syscall_by_name): Likewise.
722 (get_syscall_names): Likewise.
723 (my_gdb_datadir): Delete global variable.
724 (struct syscalls_info) <my_gdb_datadir>: New variable.
725 (struct syscalls_info) <sysinfo>: Rename variable to
726 "syscalls_info".
727 (sysinfo): Delete global variable.
728 (have_initialized_sysinfo): Likewise.
729 (xml_syscall_file): Likewise.
730 (sysinfo_free_syscalls_desc): Rename to...
731 (syscalls_info_free_syscalls_desc): ... this.
732 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
733 code to the new layout of "struct syscalls_info".
734 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
735 "syscalls_info".
736 (syscall_create_syscall_desc): Likewise.
737 (syscall_start_syscall): Likewise.
738 (syscall_parse_xml): Likewise.
739 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
740 (init_sysinfo): Rename to...
741 (init_syscalls_info): ...this. Add gdbarch as a parameter.
742 Adjust function to deal with gdbarch.
743 (xml_get_syscall_number): Delete parameter sysinfo. Accept
744 gdbarch as a parameter. Adjust code.
745 (xml_get_syscall_name): Likewise.
746 (xml_list_of_syscalls): Likewise.
747 (set_xml_syscall_file_name): Accept gdbarch as parameter.
748 (get_syscall_by_number): Likewise.
749 (get_syscall_by_name): Likewise.
750 (get_syscall_names): Likewise.
751 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
752 (get_syscall_by_number): Likewise.
753 (get_syscall_by_name): Likewise.
754 (get_syscall_names): Likewise.
755
756 2014-11-20 Doug Evans <xdje42@gmail.com>
757
758 Split struct symtab into two: struct symtab and compunit_symtab.
759 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
760 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
761 to "struct compunit_symtab *". All callers updated.
762 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
763 "struct symtab *" argument to "struct compunit_symtab *".
764 All callers updated.
765 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
766 result to "struct compunit_symtab *". All callers updated.
767 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
768 Change result to "struct compunit_symtab *". All callers updated.
769 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
770 hange type to "struct compunit_symtab *". All uses updated.
771 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
772 Change type to "struct compunit_symtab *". All uses updated.
773 * buildsym.c (struct buildsym_compunit): New struct.
774 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
775 (buildsym_compunit): New static global.
776 (finish_block_internal): Update to fetch objfile from
777 buildsym_compunit.
778 (make_blockvector): Delete objfile argument.
779 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
780 debugformat, producer.
781 (start_buildsym_compunit): New function.
782 (free_buildsym_compunit): Renamed from free_subfiles_list.
783 All callers updated.
784 (patch_subfile_names): Rewrite to use buildsym_compunit.
785 (get_compunit_symtab): New function.
786 (get_macro_table): Delete argument comp_dir. All callers updated.
787 (start_symtab): Change result to "struct compunit_symtab *".
788 All callers updated. Create the subfile of the main source file.
789 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
790 (reset_symtab_globals): Update.
791 (end_symtab_get_static_block): Update to use buildsym_compunit.
792 (end_symtab_without_blockvector): Rewrite.
793 (end_symtab_with_blockvector): Change result to
794 "struct compunit_symtab *". All callers updated.
795 Update to use buildsym_compunit. Don't set symtab->dirname,
796 instead set it in the compunit.
797 Explicitly make sure main symtab is first in its list.
798 Set debugformat, producer, blockvector, block_line_section, and
799 macrotable in the compunit.
800 (end_symtab_from_static_block): Change result to
801 "struct compunit_symtab *". All callers updated.
802 (end_symtab, end_expandable_symtab): Ditto.
803 (set_missing_symtab): Change symtab argument to
804 "struct compunit_symtab *". All callers updated.
805 (augment_type_symtab): Ditto.
806 (record_debugformat): Update to use buildsym_compunit.
807 (record_producer): Update to use buildsym_compunit.
808 * buildsym.h (struct subfile) <dirname>: Delete.
809 <producer, debugformat>: Delete.
810 <buildsym_compunit>: New member.
811 (get_compunit_symtab): Declare.
812 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
813 from primary_symtab. Change type to "struct compunit_symtab *".
814 All uses updated.
815 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
816 All callers updated.
817 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
818 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
819 symtab. Change type to "struct compunit_symtab *". All uses updated.
820 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
821 All callers updated.
822 (dw2_find_last_source_symtab): Ditto.
823 (dw2_lookup_symbol): Ditto.
824 (recursively_find_pc_sect_compunit_symtab): Renamed from
825 recursively_find_pc_sect_symtab. Change result to
826 "struct compunit_symtab *". All callers updated.
827 (dw2_find_pc_sect_compunit_symtab): Renamed from
828 dw2_find_pc_sect_symtab. Change result to
829 "struct compunit_symtab *". All callers updated.
830 (get_compunit_symtab): Renamed from get_symtab. Change result to
831 "struct compunit_symtab *". All callers updated.
832 (recursively_compute_inclusions): Change type of immediate_parent
833 argument to "struct compunit_symtab *". All callers updated.
834 (compute_compunit_symtab_includes): Renamed from
835 compute_symtab_includes. All callers updated. Rewrite to compute
836 includes of compunit_symtabs and not symtabs.
837 (process_full_comp_unit): Update to work with struct compunit_symtab.
838 (process_full_type_unit): Ditto.
839 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
840 (dwarf_decode_lines): Remove special case handling of main subfile.
841 (macro_start_file): Delete argument comp_dir. All callers updated.
842 (dwarf_decode_macro_bytes): Ditto.
843 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
844 use struct compunit_symtab.
845 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
846 * jit.c (finalize_symtab): Build compunit_symtab.
847 * jv-lang.c (get_java_class_symtab): Change result to
848 "struct compunit_symtab *". All callers updated.
849 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
850 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
851 comp_dir. Change type to "struct compunit_symtab *".
852 All uses updated.
853 (new_macro_table): Change comp_dir argument to cust,
854 "struct compunit_symtab *". All callers updated.
855 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
856 nr_primary_symtabs. All uses updated.
857 (count_symtabs_and_blocks): Update to handle compunits.
858 (report_command_stats): Update output, "primary symtabs" renamed to
859 "compunits".
860 * mdebugread.c (new_symtab): Change result to
861 "struct compunit_symtab *". All callers updated.
862 (parse_procedure): Change type of search_symtab argument to
863 "struct compunit_symtab *". All callers updated.
864 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
865 separate loop.
866 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
867 symtabs. Change type to "struct compunit_symtab *". All uses updated.
868 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
869 All uses updated.
870 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
871 All uses updated.
872 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
873 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
874 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
875 symtab. Change type to "struct compunit_symtab *". All uses updated.
876 * psymtab.c (psymtab_to_symtab): Change result type to
877 "struct compunit_symtab *". All callers updated.
878 (find_pc_sect_compunit_symtab_from_partial): Renamed from
879 find_pc_sect_symtab_from_partial. Change result type to
880 "struct compunit_symtab *". All callers updated.
881 (lookup_symbol_aux_psymtabs): Change result type to
882 "struct compunit_symtab *". All callers updated.
883 (find_last_source_symtab_from_partial): Ditto.
884 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
885 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
886 and macro_table from compunit.
887 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
888 type to "struct compunit_symtab *". All callers updated.
889 (debug_qf_lookup_symbol): Ditto.
890 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
891 debug_qf_find_pc_sect_symtab, change result type to
892 "struct compunit_symtab *". All callers updated.
893 * symfile.c (allocate_symtab): Delete objfile argument.
894 New argument cust.
895 (allocate_compunit_symtab): New function.
896 (add_compunit_symtab_to_objfile): New function.
897 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
898 Change result type to "struct compunit_symtab *". All uses updated.
899 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
900 Change result type to "struct compunit_symtab *". All uses updated.
901 * symmisc.c (print_objfile_statistics): Compute blockvector count in
902 separate loop.
903 (dump_symtab_1): Update test for primary source symtab.
904 (maintenance_info_symtabs): Update to handle compunit symtabs.
905 (maintenance_check_symtabs): Ditto.
906 * symtab.c (set_primary_symtab): Delete.
907 (compunit_primary_filetab): New function.
908 (compunit_language): New function.
909 (iterate_over_some_symtabs): Change type of arguments "first",
910 "after_last" to "struct compunit_symtab *". All callers updated.
911 Update to loop over symtabs in each compunit.
912 (error_in_psymtab_expansion): Rename symtab argument to cust,
913 and change type to "struct compunit_symtab *". All callers updated.
914 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
915 Change result type to "struct compunit_symtab *". All callers updated.
916 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
917 Change result type to "struct compunit_symtab *". All callers updated.
918 (find_pc_sect_line): Only loop over symtabs within selected compunit
919 instead of all symtabs in the objfile.
920 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
921 <compunit_symtab> New member.
922 <block_line_section>: Moved to compunit_symtab.
923 <locations_valid>: Ditto.
924 <epilogue_unwind_valid>: Ditto.
925 <macro_table>: Ditto.
926 <dirname>: Ditto.
927 <debugformat>: Ditto.
928 <producer>: Ditto.
929 <objfile>: Ditto.
930 <call_site_htab>: Ditto.
931 <includes>: Ditto.
932 <user>: Ditto.
933 <primary>: Delete
934 (SYMTAB_COMPUNIT): New macro.
935 (SYMTAB_BLOCKVECTOR): Update definition.
936 (SYMTAB_OBJFILE): Update definition.
937 (SYMTAB_DIRNAME): Update definition.
938 (struct compunit_symtab): New type. Common members among all source
939 symtabs within a compilation unit moved here. All uses updated.
940 (COMPUNIT_OBJFILE): New macro.
941 (COMPUNIT_FILETABS): New macro.
942 (COMPUNIT_DEBUGFORMAT): New macro.
943 (COMPUNIT_PRODUCER): New macro.
944 (COMPUNIT_DIRNAME): New macro.
945 (COMPUNIT_BLOCKVECTOR): New macro.
946 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
947 (COMPUNIT_LOCATIONS_VALID): New macro.
948 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
949 (COMPUNIT_CALL_SITE_HTAB): New macro.
950 (COMPUNIT_MACRO_TABLE): New macro.
951 (ALL_COMPUNIT_FILETABS): New macro.
952 (compunit_symtab_ptr): New typedef.
953 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
954
955 2014-11-20 Joel Brobecker <brobecker@adacore.com>
956
957 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
958 if the TYPE_CODE of range_type's base type does not match
959 the TYPE_CODE of encoding_type's base type.
960
961 2014-11-19 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
964 it starts with '<'.
965
966 2014-11-19 Joel Brobecker <brobecker@adacore.com>
967
968 * ada-lang.c (ada_is_redundant_range_encoding): New function.
969 (ada_is_redundant_index_type_desc): New function.
970 (to_fixed_array_type): Ignore parallel XA type if redundant.
971
972 2014-11-19 Joel Brobecker <brobecker@adacore.com>
973
974 * ada-lang.c (constrained_packed_array_type): Set the length
975 of the return array as if both bounds where zero if that
976 returned array's index type is dynamic.
977
978 2014-11-19 Yao Qi <yao@codesourcery.com>
979
980 * config/i386/go32.mh (CC): Remove.
981
982 2014-11-18 Doug Evans <xdje42@gmail.com>
983
984 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
985 updated.
986
987 2014-11-18 Doug Evans <xdje42@gmail.com>
988
989 * buildsym.c (buildsym_objfile): New static global.
990 (buildsym_comp_dir): New static global.
991 (finish_block_internal): Delete arg objfile. All callers updated.
992 (finish_block): Delete arg objfile. All callers updated.
993 (start_subfile): Delete arg dirname. All callers updated.
994 (patch_subfile_names): Update buildsym_comp_dir.
995 (get_macro_table): Delete arg objfile. All callers updated.
996 (start_symtab): New arg objfile. All callers updated.
997 Rename arg dirname to comp_dir.
998 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
999 (end_symtab_get_static_block): Delete arg objfile. All callers
1000 updated.
1001 (end_symtab_without_blockvector): Ditto.
1002 (end_symtab_with_blockvector): Ditto.
1003 (end_symtab_from_static_block): Ditto.
1004 (end_symtab): Ditto.
1005 (end_expandable_symtab): Ditto.
1006 (augment_type_symtab): Ditto.
1007 * coffread.c (coff_start_symtab): New arg objfile. All callers
1008 updated.
1009
1010 2014-11-18 Doug Evans <xdje42@gmail.com>
1011
1012 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1013 updated.
1014
1015 2014-11-18 Doug Evans <xdje42@gmail.com>
1016
1017 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1018 symtab.dirname updated to use it.
1019
1020 2014-11-18 Doug Evans <xdje42@gmail.com>
1021
1022 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1023 symtab.objfile updated to use it.
1024
1025 2014-11-18 Doug Evans <xdje42@gmail.com>
1026
1027 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1028
1029 2014-11-18 Doug Evans <xdje42@gmail.com>
1030
1031 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1032 SYMBOL_OBJFILE.
1033 * findvar.c (default_read_var_value): Ditto.
1034 * jv-lang.c (add_class_symtab_symbol): Ditto.
1035 * parse.c (operator_check_standard): Ditto.
1036 * printcmd.c (address_info): Ditto.
1037 * symtab.c (fixup_symbol_section): Ditto.
1038 (skip_prologue_sal): Ditto.
1039 * tracepoint.c (scope_info): Ditto.
1040 * valops.c (find_function_in_inferior): Ditto.
1041 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1042 * python/py-symbol.c (set_symbol): Ditto.
1043
1044 2014-11-18 Doug Evans <xdje42@gmail.com>
1045
1046 * buildsym.c (main_subfile): New static global.
1047 (free_subfiles_list): New function.
1048 (start_symtab): Set main_subfile.
1049 (restart_symtab): Replace init of subfiles, current_subfile with
1050 call to free_subfiles_list.
1051 (watch_main_source_file_lossage): Use main_subfile.
1052 (reset_symtab_globals): Replace init of current_subfile with call
1053 to free_subfiles_list.
1054 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1055 functions, split out from ...
1056 (end_symtab_from_static_block): ... here. Rewrite to call them.
1057
1058 2014-11-18 Doug Evans <xdje42@gmail.com>
1059
1060 The result of symtab expansion is always a primary symtab.
1061 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1062 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1063 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1064 (psymtab_to_symtab): Add comment and assert.
1065 (map_matching_symbols_psymtab): Remove unnecessary test for
1066 non-primary symtab.
1067
1068 2014-11-15 Doug Evans <xdje42@gmail.com>
1069
1070 PR symtab/17559
1071 * symtab.c (find_pc_line_symtab): New function.
1072 * symtab.h (find_pc_line_symtab): Declare.
1073 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1074 find_pc_symtab.
1075 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1076 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1077 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1078 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1079 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1080 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1081
1082 2014-11-15 Doug Evans <xdje42@gmail.com>
1083
1084 * symtab.c (expand_symtab_containing_pc): Renamed from
1085 find_pc_sect_symtab_via_partial. All callers updated.
1086
1087 2014-11-15 Yao Qi <yao@codesourcery.com>
1088
1089 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1090
1091 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1092
1093 * common/common-defs.h: Move <stdarg.h> #include ahead of
1094 <stdio.h> #include.
1095
1096 2014-11-14 Pedro Alves <palves@redhat.com>
1097
1098 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1099 [!PHONY_ICONV] (gdb_iconv): New function.
1100 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1101
1102 2014-11-13 Doug Evans <dje@google.com>
1103
1104 PR symtab/17591
1105 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1106 "(anonymous namespace)".
1107
1108 2014-11-13 Doug Evans <dje@google.com>
1109
1110 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1111 infinite loop.
1112
1113 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * NEWS (maint set target-async): Fix typo.
1116
1117 2014-11-12 Pedro Alves <palves@redhat.com>
1118
1119 * infrun.c (enum infwait_states, infwait_state): Delete.
1120
1121 2014-11-12 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1124 Rewrite stepping over a permanent breakpoint.
1125 (thread_still_needs_step_over, proceed): Don't set
1126 stepping_over_breakpoint for permanent breakpoints.
1127 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1128 single-step breakpoints out of the target on hardware step
1129 targets.
1130 (process_event_stop_test): If stepping a permanent breakpoint
1131 doesn't hit the step-resume breakpoint, delete the step-resume
1132 breakpoint.
1133 (switch_back_to_stepped_thread): Also check if the stepped thread
1134 has advanced already on hardware step targets.
1135 (currently_stepping): Return true if the thread stepped a
1136 breakpoint.
1137
1138 2014-11-12 Pedro Alves <palves@redhat.com>
1139
1140 Mark locations as permanent, not the whole breakpoint.
1141 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1142 (mark_breakpoints_out): Don't mark permanent breakpoints as
1143 uninserted.
1144 (breakpoint_init_inferior): Use mark_breakpoints_out.
1145 (breakpoint_here_p): Adjust.
1146 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1147 of permanent breakpoints.
1148 (make_breakpoint_permanent): Mark each location as permanent,
1149 instead of marking the breakpoint.
1150 (add_location_to_breakpoint): If the location is permanent, mark
1151 it as such, and as inserted.
1152 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1153 (bp_location_compare, update_global_location_list): Adjust.
1154 (update_breakpoint_locations): Don't make the breakpoint permanent
1155 here.
1156 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1157 breakpoints.
1158 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1159 (struct bp_location) <permanent>: New field.
1160 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1161 reference to bp_permanent.
1162
1163 2014-11-12 Pedro Alves <palves@redhat.com>
1164
1165 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1166 * arch-utils.h (default_skip_permanent_breakpoint): New
1167 declaration.
1168 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1169 Install default_skip_permanent_breakpoint as default method.
1170 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1171 (i386_gdbarch_init): Don't install it.
1172 * infrun.c (resume): Assume there's always a
1173 gdbarch_skip_permanent_breakpoint implementation.
1174 * gdbarch.h, gdbarch.c: Regenerate.
1175
1176 2014-11-11 Daniel Colascione <dancol@dancol.org>
1177
1178 Warn about cross-PID-namespace debugging.
1179 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1180 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1181 * linux-thread-db.c (check_pid_namespace_match): New function.
1182 (thread_db_inferior_created): Call it.
1183
1184 2014-11-10 Doug Evans <xdje42@gmail.com>
1185
1186 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1187 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1188
1189 2014-11-10 Doug Evans <xdje42@gmail.com>
1190
1191 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1192
1193 2014-11-10 Doug Evans <xdje42@gmail.com>
1194
1195 PR symtab/17564
1196 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1197 (lookup_static_symbol): Move definition to new location and rewrite.
1198 (lookup_symbol_in_objfile): New function.
1199 (lookup_symbol_global_iterator_cb): Call it.
1200
1201 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1202
1203 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1204
1205 2014-11-07 Pedro Alves <palves@redhat.com>
1206
1207 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1208 check if we did a "nexti" inside a prologue.
1209 * symtab.c (in_prologue): Delete function.
1210 * symtab.h (in_prologue): Delete declaration.
1211
1212 2014-11-06 Doug Evans <xdje42@gmail.com>
1213
1214 * symtab.h (lookup_global_symbol): Improve function comment.
1215
1216 2014-11-06 Doug Evans <xdje42@gmail.com>
1217
1218 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1219 All callers updated.
1220 * symtab.h (lookup_global_symbol): Update decl.
1221 (lookup_static_symbol): Move decl to better location.
1222
1223 2014-11-06 Doug Evans <xdje42@gmail.com>
1224
1225 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1226
1227 2014-11-06 Doug Evans <xdje42@gmail.com>
1228
1229 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1230 All callers updated.
1231 (lookup_symbol_in_all_objfiles): Renamed from
1232 lookup_symbol_aux_symtabs. All callers updated.
1233 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1234 All callers updated.
1235 (lookup_symbol_in_objfile_symtabs): Renamed from
1236 lookup_symbol_aux_objfile. All callers updated.
1237
1238 2014-11-06 Doug Evans <xdje42@gmail.com>
1239
1240 * symtab.c (lookup_symbol_in_block): Renamed from
1241 lookup_symbol_aux_block. All callers updated.
1242
1243 2014-11-06 Doug Evans <xdje42@gmail.com>
1244
1245 * symtab.c (lookup_static_symbol): Renamed from
1246 lookup_static_symbol_aux. All callers updated.
1247 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1248 All callers updated.
1249
1250 2014-11-06 Doug Evans <xdje42@gmail.com>
1251
1252 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1253 * block.c (block_lookup_symbol): Use it.
1254 * cp-support.c (make_symbol_overload_list_block): Use it.
1255 * symtab.c (iterate_over_symbols): Use it.
1256
1257 2014-11-06 Doug Evans <xdje42@gmail.com>
1258
1259 * symtab.c (lookup_block_symbol): Moved to ...
1260 * block.c (block_lookup_symbol): ... here and renamed.
1261 All callers updated.
1262 * block.h (block_lookup_symbol): Declare.
1263 * symtab.h (lookup_block_symbol): Delete.
1264
1265 2014-11-06 Doug Evans <xdje42@gmail.com>
1266
1267 * ada-lang.c (ada_make_symbol_completion_list): Use
1268 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1269 * symtab.c (lookup_objfile_from_block): Ditto.
1270
1271 2014-11-06 Doug Evans <xdje42@gmail.com>
1272
1273 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1274 TYPE_CODE_STRUCT.
1275
1276 2014-11-06 Doug Evans <xdje42@gmail.com>
1277
1278 * objfiles.c (get_objfile_arch): Constify.
1279 * objfiles.h (get_objfile_arch): Update prototype.
1280 * solib.c (solib_global_lookup): Fetch arch from objfile,
1281 not target_gdbarch.
1282
1283 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1284
1285 * nios2-tdep.c (wild_insn): Delete.
1286 (profiler_insn, irqentry_insn): Delete.
1287 (nios2_match_sequence): Delete.
1288 (nios2_analyze_prologue): Update comments. Remove matching
1289 of obsolete profiler_insn and irqentry_insn sequences.
1290
1291 2014-11-05 Alan Modra <amodra@gmail.com>
1292
1293 * charset.c (convert_between_encodings): Shrink obstack using
1294 obstack_blank_fast.
1295 * minsyms.c (install_minimal_symbols): Likewise.
1296 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1297 to char* before doing pointer arithmetic.
1298
1299 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1300
1301 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1302
1303 2014-11-04 Pedro Alves <palves@redhat.com>
1304
1305 * breakpoint.c (breakpoint_thread_match): Delete function.
1306 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1307
1308 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1309
1310 PR c++/17494
1311 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1312 the method args also under EVAL_SKIP when evaluating method
1313 calls under EVAL_SKIP.
1314
1315 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1316
1317 * dwarf2loc.c (read_pieced_value): Do big endian
1318 processing only if gdb_regnum is not -1.
1319 (write_pieced_value): Ditto.
1320
1321 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1322
1323 * arm-linux-tdep.c (arm_linux_init_abi): Use
1324 info.byte_order_for_code to choose endianity of breakpoint
1325 instructions snippets.
1326
1327 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1328
1329 * arm-tdep.c (extract_arm_insn): Use
1330 gdbarch_byte_order_for_code to read arm instruction.
1331
1332 2014-11-02 Doug Evans <xdje42@gmail.com>
1333
1334 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1335
1336 2014-11-02 Doug Evans <xdje42@gmail.com>
1337
1338 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1339 main_subfile before returning.
1340
1341 2014-10-31 Doug Evans <xdje42@gmail.com>
1342
1343 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1344 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1345
1346 2014-10-31 Doug Evans <xdje42@gmail.com>
1347
1348 * valops.c (value_cast_pointers): Fix whitespace.
1349 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1350 Ditto.
1351
1352 2014-10-30 Doug Evans <dje@google.com>
1353
1354 * NEWS: Mention ability add attributes to gdb.Objfile and
1355 gdb.Progspace objects.
1356 * python/py-objfile.c (objfile_object): New member dict.
1357 (objfpy_dealloc): Py_XDECREF dict.
1358 (objfpy_initialize): Initialize dict.
1359 (objfile_getset): Add __dict__.
1360 (objfile_object_type): Set tp_dictoffset member.
1361 * python/py-progspace.c (progspace_object): New member dict.
1362 (pspy_dealloc): Py_XDECREF dict.
1363 (pspy_initialize): Initialize dict.
1364 (pspace_getset): Add __dict__.
1365 (pspace_object_type): Set tp_dictoffset member.
1366
1367 2014-10-30 Yao Qi <yao@codesourcery.com>
1368
1369 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1370 replace '\\' with '\\\\'.
1371
1372 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1373
1374 GDB 7.8.1 released.
1375
1376 2014-10-29 Pedro Alves <palves@redhat.com>
1377
1378 PR gdb/17408
1379 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1380 instead of assuming a thread with a stepping range is always
1381 stepping.
1382
1383 2014-10-29 Pedro Alves <palves@redhat.com>
1384
1385 PR python/17372
1386 * event-top.c (change_line_handler): Call
1387 gdb_rl_callback_handler_remove instead of
1388 rl_callback_handler_remove.
1389 (callback_handler_installed): New global.
1390 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1391 (gdb_rl_callback_handler_reinstall): New functions.
1392 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1393 gdb_rl_callback_handler_install instead of
1394 rl_callback_handler_remove and rl_callback_handler_install.
1395 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1396 instead of rl_callback_handler_remove.
1397 * event-top.h (gdb_rl_callback_handler_remove)
1398 (gdb_rl_callback_handler_install)
1399 (gdb_rl_callback_handler_reinstall): New declarations.
1400 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1401 cleanup function.
1402 (fetch_inferior_event): Install it.
1403 * top.c (gdb_readline_wrapper_line) Call
1404 gdb_rl_callback_handler_remove instead of
1405 rl_callback_handler_remove.
1406 (gdb_readline_wrapper_cleanup): Don't call
1407 rl_callback_handler_install.
1408
1409 2014-10-29 Pedro Alves <palves@redhat.com>
1410
1411 * event-top.c (command_line_handler): Clear the first byte of
1412 linebuffer, when it is first allocated.
1413
1414 2014-10-29 Pedro Alves <palves@redhat.com>
1415
1416 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1417 TRY_CATCH.
1418
1419 2014-10-29 Pedro Alves <palves@redhat.com>
1420
1421 PR tui/16138
1422 PR tui/17519
1423 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1424 (tui_allowed_p): Delete function.
1425 * tui/tui.c: Include "interps.h".
1426 (tui_enable): Don't use tui_allowed_p. Error out here with
1427 detailed error messages if the TUI is the top level interpreter,
1428 or if output is not a terminal. Use newterm instead of initscr,
1429 and error out if initializing the terminal fails. Also error out if
1430 the terminal doesn't support cursor addressing.
1431 * tui/tui.h (tui_allowed_p): Delete declaration.
1432
1433 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1434
1435 * arm-tdep.c (arm_skip_stack_protector): Return early if
1436 address loaded by first "ldr" instruction does not have
1437 a corresponding minimal symbol. Update comment.
1438
1439 2014-10-29 Yao Qi <yao@codesourcery.com>
1440
1441 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1442 loaded address correctly of ldr instruction.
1443
1444 2014-10-28 Pedro Alves <palves@redhat.com>
1445
1446 PR gdb/12623
1447 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1448 field.
1449 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1450 thread's stepped_breakpoint field. Skip if reverse debugging.
1451 Add comment.
1452 (init_thread_stepping_state, handle_signal_stop): Clear the
1453 thread's stepped_breakpoint field.
1454
1455 2014-10-27 Pedro Alves <palves@redhat.com>
1456
1457 * remote.c (remote_thread_alive): New, factored out from ...
1458 (remote_thread_alive): ... this.
1459 (remote_update_thread_list): Bail out before deleting threads if
1460 the target returned an empty list, and, the current thread has a
1461 magic/fake ptid.
1462
1463 2014-10-27 Pedro Alves <palves@redhat.com>
1464
1465 * infrun.c (handle_signal_stop): Also skip handlers when a random
1466 signal arrives while handling a "stepi" or a "nexti". Set the
1467 thread's 'step_after_step_resume_breakpoint' flag.
1468
1469 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1470
1471 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1472 (arm_record_ld_st_imm_offset): Reimplement to cover all
1473 load/store cases for ARM opcode 010.
1474 (arm_record_ld_st_multiple): Reimplement to cover all
1475 load/store cases for ARM opcode 100.
1476
1477 2014-10-26 Doug Evans <xdje42@gmail.com>
1478
1479 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1480
1481 2014-10-26 Doug Evans <xdje42@gmail.com>
1482
1483 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1484 parameter "kind" to "block_index".
1485 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1486 "block_index".
1487 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1488
1489 2014-10-26 Doug Evans <xdje42@gmail.com>
1490
1491 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1492
1493 2014-10-26 Doug Evans <xdje42@gmail.com>
1494
1495 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1496 obstack_alloc.
1497
1498 2014-10-26 Doug Evans <xdje42@gmail.com>
1499
1500 * parser-defs.h (block_found): Move decl from here ...
1501 * symtab.h (block_found): ... to here.
1502
1503 2014-10-26 Doug Evans <xdje42@gmail.com>
1504
1505 * symtab.h (struct field_of_this_result): Fix typo in comment.
1506 (lookup_symbol_in_language): Move function comment here.
1507 (lookup_symbol): Improve function comment.
1508 (basic_lookup_symbol_nonlocal): Ditto.
1509 (lookup_symbol_static, lookup_symbol_global): Ditto.
1510 (lookup_symbol_aux_block): Ditto.
1511 (lookup_language_this): Add function comment.
1512 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1513 function comment.
1514 (lookup_block_symbol): Improve function comment.
1515 (lookup_struct): Fix capitalization in function comment.
1516 (lookup_transparent_type): Add function comment.
1517 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1518 Improve function comment.
1519 (lookup_objfile_from_block): Add function comment.
1520 * symtab.c (lookup_symbol_in_language): Update function comment.
1521 (lookup_symbol, lookup_language_this): Ditto.
1522 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1523 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1524 (basic_lookup_symbol_nonlocal): Ditto.
1525 (lookup_symbol_static, lookup_symbol_global): Ditto.
1526 (lookup_transparent_type, lookup_block_symbol): Ditto.
1527
1528 2014-10-25 Doug Evans <xdje42@gmail.com>
1529
1530 * symtab.c (types_info): Delete forward decl.
1531 (functions_info, variables_info, sources_info): Ditto.
1532 (_initialize_symtab): Rewrite forward decl to use
1533 initialize_file_ftype.
1534
1535 2014-10-25 Doug Evans <xdje42@gmail.com>
1536
1537 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1538
1539 2014-10-25 Doug Evans <xdje42@gmail.com>
1540
1541 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1542 of local var child_die.
1543
1544 2014-10-24 Don Breazeal <donb@codesourcery.com>
1545
1546 * infrun.c (follow_fork_inferior): Update fork message printing
1547 to use target_terminal_ours_for_output instead of
1548 target_terminal_ours, to use _() for all format strings, to print
1549 "vfork" instead of "fork" for vforks, and to add a detach message.
1550 (handle_vfork_child_exec_or_exit): Update message printing to use
1551 target_terminal_ours_for_output instead of target_terminal_ours, to
1552 use _() for all format strings, and to fix some formatting.
1553
1554 2014-10-24 Pedro Alves <palves@redhat.com>
1555
1556 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1557 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1558 * config/vax/vax.mh: Delete.
1559 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1560 obsolete configurations section.
1561 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1562 * vax-nat.c: Delete file.
1563
1564 2014-10-24 Pedro Alves <palves@redhat.com>
1565
1566 * NEWS (Removed targets): Add OS/arch column.
1567
1568 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1569
1570 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1571 on the arg type of a constructor only if it is of reference type.
1572
1573 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1574
1575 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1576 accessors and constants from nios2 opcodes update.
1577 (nios2_get_next_pc): Likewise.
1578
1579 2014-10-19 Doug Evans <xdje42@gmail.com>
1580
1581 * gdbthread.h (set_running): Fix comment.
1582 (set_executing, finish_thread_state): Fix comment.
1583
1584 2014-10-18 Doug Evans <xdje42@gmail.com>
1585
1586 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1587
1588 2014-10-17 Doug Evans <dje@google.com>
1589
1590 * NEWS: Mention new event gdb.clear_objfiles.
1591 * python/py-event.h (emit_clear_objfiles_event): Clear
1592 * python/py-events.h (events_object): New member clear_objfiles.
1593 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1594 event.
1595 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1596 emit clear_objfiles event.
1597 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1598 function.
1599 (emit_clear_objfiles_event): New function.
1600 (clear_objfiles): New event.
1601 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1602 Declare.
1603 * python/python.c (_initialize_python): Call
1604 gdbpy_initialize_clear_objfiles_event.
1605
1606 2014-10-17 Doug Evans <dje@google.com>
1607
1608 * NEWS: Mention new gdb.Objfile.progspace attribute.
1609 * python/py-objfile.c (objfpy_get_progspace): New function.
1610 (objfile_getset): New entry for "progspace".
1611
1612 2014-10-17 Pedro Alves <palves@redhat.com>
1613
1614 PR gdb/17471
1615 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1616 returns a copy of the input.
1617 (run_command_1, continue_command, step_1, jump_command)
1618 (signal_command, until_command, advance_command, finish_command)
1619 (attach_command): Adjust and install a cleanup to free the
1620 stripped args.
1621
1622 2014-10-17 Pedro Alves <palves@redhat.com>
1623
1624 PR gdb/17300
1625 * infcmd.c (continue_1): If continuing all threads in the
1626 foreground, make sure the inferior's terminal settings are put in
1627 effect.
1628
1629 2014-10-17 Pedro Alves <palves@redhat.com>
1630
1631 PR gdb/17472
1632 * annotate.c (annotate_breakpoints_invalid): Use
1633 target_terminal_our_for_output instead of target_terminal_ours.
1634 Give back the terminal to the target.
1635 (annotate_frames_invalid): Likewise.
1636
1637 2014-10-17 Pedro Alves <palves@redhat.com>
1638
1639 * target.c (enum terminal_state): New enum.
1640 (terminal_state): New global.
1641 (target_terminal_init): New function.
1642 (target_terminal_inferior): Skip if inferior already owns the
1643 terminal.
1644 (target_terminal_ours, target_terminal_ours_for_output): New
1645 functions.
1646 * target.h (target_terminal_init): Convert to function prototype.
1647 (target_terminal_ours_for_output): Convert to function prototype
1648 and tweak comment.
1649 (target_terminal_ours): Convert to function prototype and tweak
1650 comment.
1651 * windows-nat.c (do_initial_windows_stuff): Call
1652 target_terminal_init instead of child_terminal_init_with_pgrp.
1653
1654 2014-10-17 Pedro Alves <palves@redhat.com>
1655
1656 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1657 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1658 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1659 solib-osf.c.
1660 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1661 * ada-lang.h [__alpha__ && __osf__]
1662 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1663 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1664 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1665 GDB_OSABI_OSF1.
1666 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1667 files.
1668 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1669 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1670 * configure: Regenerate.
1671 * configure.ac: Remove references to osf.
1672 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1673 section. Remove all other references to osf.
1674 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1675 Remove all other references to osf.
1676 * dec-thread.c: Delete file.
1677 * defs.h (GDB_OSABI_OSF1): Delete.
1678 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1679 defined.
1680 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1681 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1682 Delete code.
1683 (unconditionally_kill_inferior)
1684 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1685 * solib-osf.c: Delete file.
1686
1687 2014-10-17 Pedro Alves <palves@redhat.com>
1688
1689 * remote.c (clear_threads_listing_context): Move higher up, out of
1690 the HAVE_LIBEXPAT guard.
1691
1692 2014-10-16 Tristan Gingold <gingold@adacore.com>
1693
1694 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1695 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1696 on amd64.
1697
1698 2014-10-15 Pedro Alves <palves@redhat.com>
1699
1700 * dec-thread.c (dec_thread_count_gdb_threads)
1701 (dec_thread_add_gdb_thread): Delete.
1702 (dec_thread_update_thread_list): Delete.
1703 (dec_thread_find_new_threads): Rename to ...
1704 (dec_thread_update_thread_list): ... this. Delete GDB-size
1705 threads that are no longer found in dec_thread_list.
1706 (resync_thread_list): Delete.
1707 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1708 resync_thread_list.
1709
1710 2014-10-15 Pedro Alves <palves@redhat.com>
1711
1712 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1713 * remote.c (remote_update_thread_list): Skip calling prune_threads
1714 if any thread listing method is supported, and instead walk over
1715 the set of remote threads listed, deleting those that are not
1716 found in GDB's thread list.
1717
1718 2014-10-15 Pedro Alves <palves@redhat.com>
1719
1720 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1721 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1722 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1723 (bsd_uthread_target): Adjust.
1724 * corelow.c (core_open): Adjust.
1725 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1726 (dec_thread_update_thread_list): New function.
1727 (init_dec_thread_ops): Adjust.
1728 * gdbthread.h (prune_threads): New declaration.
1729 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1730 (thread_db_update_thread_list): ... this. Call prune_threads.
1731 (init_thread_db_ops): Adjust.
1732 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1733 (procfs_update_thread_list): ... this. Call prune_threads.
1734 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1735 Adjust.
1736 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1737 (obsd_update_thread_list): ... this. Call prune_threads.
1738 (obsd_add_target): Adjust.
1739 * procfs.c (procfs_target): Adjust.
1740 (procfs_notice_thread): Update comment.
1741 (procfs_find_new_threads): Rename to ...
1742 (procfs_update_thread_list): ... this. Call prune_threads.
1743 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1744 comment.
1745 (ravenscar_wait): Adjust.
1746 (ravenscar_find_new_threads): Rename to ...
1747 (ravenscar_update_thread_list): ... this. Call prune_threads.
1748 (init_ravenscar_thread_ops): Adjust.
1749 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1750 (record_btrace_update_thread_list): ... this. Adjust comment.
1751 (init_record_btrace_ops): Adjust.
1752 * remote.c (remote_threads_info): Rename to ...
1753 (remote_update_thread_list): ... this. Call prune_threads.
1754 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1755 Adjust.
1756 * sol-thread.c (check_for_thread_db): Adjust.
1757 (sol_find_new_threads_callback): Rename to ...
1758 (sol_update_thread_list_callback): ... this.
1759 (sol_find_new_threads): Rename to ...
1760 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1761 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1762 * target-delegates.c: Regenerate.
1763 * target.c (target_find_new_threads): Rename to ...
1764 (target_update_thread_list): ... this.
1765 * target.h (struct target_ops): Rename to_find_new_threads field
1766 to to_update_thread_list.
1767 (target_find_new_threads): Rename to ...
1768 (target_update_thread_list): ... this.
1769 * thread.c (prune_threads): Make extern.
1770 (update_thread_list): Adjust.
1771
1772 2014-10-15 Pedro Alves <palves@redhat.com>
1773
1774 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1775 Add describing comment. Return -1 if the qL packet is not
1776 supported.
1777 (struct thread_item, thread_item_t): Move higher up in
1778 the file. Add comments.
1779 (struct threads_parsing_context): Move higher up in
1780 the file, add comments, and remote to ...
1781 (struct threads_listing_context): ... this.
1782 (remote_newthread_step): Don't add the thread to GDB's thread
1783 database here. Instead push it to the thread_listing_context
1784 list.
1785 (remote_find_new_threads): Rename to ...
1786 (remote_get_threads_with_ql): ... this. Add target_ops and
1787 targets_listing_context parameters. Pass down context.
1788 (start_thread): Adjust.
1789 (clear_threads_parsing_context): Rename to ...
1790 (clear_threads_listing_context): ... this.
1791 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1792 remote_threads_info.
1793 (remote_get_threads_with_qthreadinfo): Ditto.
1794 (remote_threads_info): Reimplement.
1795
1796 2014-10-15 Pedro Alves <palves@redhat.com>
1797
1798 * infrun.c (resume): Don't force displaced-stepping for all
1799 single-steps on software single-stepping archs.
1800
1801 2014-10-15 Pedro Alves <palves@redhat.com>
1802
1803 * breakpoint.c (single_step_breakpoints): Delete global.
1804 (insert_single_step_breakpoint): Adjust to store the breakpoint
1805 pointer in the current thread.
1806 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1807 (cancel_single_step_breakpoints): Delete functions.
1808 (breakpoint_has_location_inserted_here): Make extern.
1809 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1810 breakpoint list.
1811 * breakpoint.h (breakpoint_has_location_inserted_here): New
1812 declaration.
1813 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1814 (cancel_single_step_breakpoints): Remove declarations.
1815 * gdbthread.h (struct thread_control_state)
1816 <single_step_breakpoints>: New field.
1817 (delete_single_step_breakpoints)
1818 (thread_has_single_step_breakpoints_set)
1819 (thread_has_single_step_breakpoint_here): New declarations.
1820 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1821 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1822 (singlestep_pc): Delete globals.
1823 (infrun_thread_ptid_changed): Remove references to removed
1824 globals.
1825 (resume_cleanups): Delete the current thread's single-step
1826 breakpoints.
1827 (maybe_software_singlestep): Remove references to removed globals.
1828 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1829 delete_single_step_breakpoints.
1830 (init_wait_for_inferior): Remove references to removed globals.
1831 (delete_thread_infrun_breakpoints): Delete the thread's
1832 single-step breakpoints too.
1833 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1834 single-step breakpoints here.
1835 (delete_stopped_threads_single_step_breakpoints): New function.
1836 (adjust_pc_after_break): Adjust to use
1837 thread_has_single_step_breakpoints_set.
1838 (handle_inferior_event): Remove references to removed globals.
1839 Use delete_stopped_threads_single_step_breakpoints.
1840 (handle_signal_stop): Adjust to per-thread single-step
1841 breakpoints. Swap test order to do cheaper tests first.
1842 (switch_back_to_stepped_thread): Extend debug output. Remove
1843 references to removed globals.
1844 * record-full.c (record_full_wait_1): Adjust to per-thread
1845 single-step breakpoints.
1846 * thread.c (delete_single_step_breakpoints)
1847 (thread_has_single_step_breakpoints_set)
1848 (thread_has_single_step_breakpoint_here): New functions.
1849 (clear_thread_inferior_resources): Also delete the thread's
1850 single-step breakpoints.
1851
1852 2014-10-15 Pedro Alves <palves@redhat.com>
1853
1854 * thread.c (delete_thread_breakpoint): New function.
1855 (delete_step_resume_breakpoint)
1856 (delete_exception_resume_breakpoint): Use it.
1857 (delete_at_next_stop): New function.
1858 (clear_thread_inferior_resources): Use delete_at_next_stop.
1859
1860 2014-10-15 Pedro Alves <palves@redhat.com>
1861
1862 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1863 (breakpoint_inserted_here_p): ... here. Remove special case for
1864 software single-step breakpoints.
1865 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1866 (software_breakpoint_inserted_here_p): ... here. Remove special
1867 case for software single-step breakpoints.
1868 (bp_target_info_copy_insertion_state)
1869 (deprecated_insert_raw_breakpoint)
1870 (deprecated_remove_raw_breakpoint): Delete functions.
1871 * breakpoint.h (deprecated_insert_raw_breakpoint)
1872 (deprecated_remove_raw_breakpoint): Remove declarations.
1873
1874 2014-10-15 Pedro Alves <palves@redhat.com>
1875
1876 PR breakpoints/9649
1877 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1878 Delete array globals.
1879 (single_step_breakpoints): New global.
1880 (breakpoint_xfer_memory): Remove special handling for single-step
1881 breakpoints.
1882 (update_breakpoints_after_exec): Delete bp_single_step
1883 breakpoints.
1884 (detach_breakpoints): Remove special handling for single-step
1885 breakpoints.
1886 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1887 (bpstat_stop_status): Add comment.
1888 (bpstat_what, bptype_string, print_one_breakpoint_location)
1889 (adjust_breakpoint_address, init_bp_location): Handle
1890 bp_single_step.
1891 (new_single_step_breakpoint): New function.
1892 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1893 handling for single-step breakpoints.
1894 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1895 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1896 Rewrite.
1897 (detach_single_step_breakpoints, find_single_step_breakpoint):
1898 Delete functions.
1899 (breakpoint_has_location_inserted_here): New function.
1900 (single_step_breakpoint_inserted_here_p): Rewrite.
1901 * breakpoint.h: Remove FIXME.
1902 (enum bptype) <bp_single_step>: New enum value.
1903 (insert_single_step_breakpoint): Update comment.
1904 * infrun.c (resume_cleanups)
1905 (delete_step_thread_step_resume_breakpoint): Remove single-step
1906 breakpoints.
1907 (fetch_inferior_event): Install a cleanup that removes infrun
1908 breakpoints.
1909 (switch_back_to_stepped_thread) <expect thread advanced also>:
1910 Clear step-over info.
1911
1912 2014-10-15 Pedro Alves <palves@redhat.com>
1913
1914 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1915 (delete_thread_infrun_breakpoints): New function, with parts
1916 salvaged from delete_step_resume_breakpoint_callback.
1917 (delete_step_thread_step_resume_breakpoint): Delete.
1918 (for_each_just_stopped_thread_callback_func): New typedef.
1919 (for_each_just_stopped_thread): New function.
1920 (delete_just_stopped_threads_infrun_breakpoints): New function.
1921 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1922 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1923 ... this. Adjust.
1924 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1925
1926 2014-10-15 Pedro Alves <palves@redhat.com>
1927
1928 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1929 trying to step past a non-steppable watchpoint.
1930 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1931 field.
1932 * infrun.c (struct step_over_info): Add new field
1933 'nonsteppable_watchpoint_p' and adjust comments.
1934 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1935 Adjust.
1936 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1937 (stepping_past_nonsteppable_watchpoint): New function.
1938 (step_over_info_valid_p): Also return true if stepping past a
1939 nonsteppable watchpoint.
1940 (proceed): Adjust call to set_step_over_info. Remove reference to
1941 init_infwait_state.
1942 (init_wait_for_inferior): Remove reference to init_infwait_state.
1943 (waiton_ptid): Delete global.
1944 (struct execution_control_state)
1945 <stepped_after_stopped_by_watchpoint>: Delete field.
1946 (wait_for_inferior, fetch_inferior_event): Always pass
1947 minus_one_ptid to target_wait.
1948 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1949 field.
1950 (init_infwait_state): Delete function.
1951 (handle_inferior_event): Remove infwait_state handling.
1952 (handle_signal_stop) <watchpoints handling>: Adjust after
1953 stepped_after_stopped_by_watchpoint removal. Don't remove
1954 breakpoints here nor set infwait_state. Set the thread's
1955 stepping_over_watchpoint flag, and call keep_going instead.
1956 (keep_going): Handle stepping_over_watchpoint. Adjust
1957 set_step_over_info calls.
1958 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1959 function.
1960
1961 2014-10-15 Pedro Alves <palves@redhat.com>
1962
1963 * infrun.c (step_over_info_valid_p): New function.
1964 (resume): Use step_over_info_valid_p instead of checking the
1965 threads's trap_expected flag.
1966
1967 2014-10-15 Doug Evans <dje@google.com>
1968 Walfred Tedeschi <walfred.tedeschi@intel.com>
1969
1970 PR python/17364
1971 * python/lib/gdb/__init__.py (packages): Add "printer".
1972 * python/lib/gdb/command/bound_registers.py: Moved to ...
1973 * python/lib/gdb/printer/bound_registers.py: ... here.
1974 Add printer to global set of builtin printers. Rename printer from
1975 "bound" to "mpx_bound128".
1976 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1977 registered as global "builtin" printer.
1978 (add_builtin_pretty_printer): New function.
1979 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1980 gdb/printer/__init__.py.
1981
1982 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1983
1984 * Makefile.in (SFILES): Remove d-support.c.
1985 (COMMON_OBS): Remove d-support.o.
1986 * d-lang.h (d_parse_symbol): Remove declaration.
1987 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1988 * d-support.c: Remove file.
1989
1990 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1991
1992 * gdb/infrun.c (process_event_stop_test): Apply
1993 gdbarch_addr_bits_remove to longjmp resume address.
1994
1995 2014-10-15 Pedro Alves <palves@redhat.com>
1996
1997 * regformats/microblaze.dat: Delete file.
1998
1999 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2000
2001 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2002 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2003
2004 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2005
2006 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2007 as non-trivial.
2008
2009 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2010
2011 PR c++/13403
2012 PR c++/15154
2013 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2014 with qualified args.
2015
2016 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2017
2018 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2019 of the case where the second operand is a pointer.
2020 <BINOP_SUB>: Likewise.
2021
2022 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2023
2024 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2025 only if it is not NULL.
2026 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2027 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2028 (struct probe_ops) <clear_semaphore>: Likewise.
2029 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2030 not NULL.
2031 (stop_tracing): Likewise, for clear_semaphore.
2032
2033 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2034
2035 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2036 using language_c, instead of current_language.
2037
2038 2014-10-13 Doug Evans <dje@google.com>
2039
2040 * python/py-objfile.c (objfpy_initialize): New function.
2041 (objfpy_new, objfile_to_objfile_object): Call it.
2042 * python/py-progspace.c (pspy_initialize): New function.
2043 (pspy_new, pspace_to_pspace_object): Call it.
2044
2045 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2046 Jan Kratochvil <jan.kratochvil@redhat.com>
2047
2048 Fix "save breakpoints" for "catch" command.
2049 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2050 newline.
2051
2052 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2053
2054 Fix "save breakpoints" for "disable $bpnum" command.
2055 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2056
2057 2014-10-10 Pedro Alves <palves@redhat.com>
2058
2059 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2060 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2061 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2062 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2063 and been removed.
2064 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2065 * configure.ac: Remove references to IRIX.
2066 * configure.host: Add *-*-irix* to the obsolete hosts section.
2067 Remove all other references to irix.
2068 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2069 Delete files.
2070
2071 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2072
2073 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2074 isn't valid, release the tdesc arch data and return NULL.
2075
2076 2014-10-10 Pedro Alves <palves@redhat.com>
2077
2078 * linux-tdep.c: Include observer.h.
2079 (linux_inferior_data): New global.
2080 (struct linux_info): New structure.
2081 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2082 (get_linux_inferior_data): New functions.
2083 (linux_vsyscall_range): Rename to ...
2084 (linux_vsyscall_range_raw): ... this.
2085 (linux_vsyscall_range): New function; handles caching.
2086 (_initialize_linux_tdep): Register linux_inferior_data. Install
2087 inferior_exit and inferior_appeared observers.
2088
2089 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 Pedro Alves <palves@redhat.com>
2091
2092 PR symtab/14466
2093 * solib-svr4.c (svr4_read_so_list): Rename to ...
2094 (svr4_current_sos_1): ... this and change the function comment.
2095 (svr4_current_sos): New function.
2096
2097 2014-10-10 Pedro Alves <palves@redhat.com>
2098
2099 * arch-utils.c (default_vsyscall_range): New function.
2100 * arch-utils.h (default_vsyscall_range): New declaration.
2101 * gdbarch.sh (vsyscall_range): New hook.
2102 * gdbarch.h, gdbarch.c: Regenerate.
2103 * linux-tdep.c (linux_vsyscall_range): New function.
2104 (linux_init_abi): Install linux_vsyscall_range as
2105 vsyscall_range gdbarch hook.
2106 * memrange.c (address_in_mem_range): New function.
2107 * memrange.h (address_in_mem_range): New declaration.
2108 * symfile-mem.c (find_vdso_size): Delete function.
2109 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2110
2111 2014-10-10 Pedro Alves <palves@redhat.com>
2112
2113 * infrun.c (normal_stop): Fix typo in comment.
2114
2115 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2116
2117 PR tdep/9390
2118 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2119 typo when using logical AND to determine instruction type.
2120
2121 2014-10-09 Yao Qi <yao@codesourcery.com>
2122
2123 * infrun.c (handle_signal_stop): Remove local variable
2124 'printed'.
2125
2126 2014-10-08 Stan Shebs <stan@codesourcery.com>
2127
2128 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2129
2130 2014-10-08 Gary Benson <gbenson@redhat.com>
2131
2132 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2133
2134 2014-10-08 Gary Benson <gbenson@redhat.com>
2135
2136 * common/common-defs.h: Include common-exceptions.h.
2137 * exceptions.h: Do not include common-exceptions.h.
2138
2139 2014-10-08 Gary Benson <gbenson@redhat.com>
2140
2141 * common/common-defs.h: Include cleanups.h.
2142 * common/common-exceptions.c: Do not include cleanups.h.
2143 * utils.h: Likewise.
2144
2145 2014-10-08 Gary Benson <gbenson@redhat.com>
2146
2147 * ada-lang.c: Do not include exceptions.h.
2148 * ada-valprint.c: Likewise.
2149 * amd64-tdep.c: Likewise.
2150 * auto-load.c: Likewise.
2151 * block.c: Likewise.
2152 * break-catch-throw.c: Likewise.
2153 * breakpoint.c: Likewise.
2154 * btrace.c: Likewise.
2155 * c-lang.c: Likewise.
2156 * cli/cli-cmds.c: Likewise.
2157 * cli/cli-interp.c: Likewise.
2158 * cli/cli-script.c: Likewise.
2159 * completer.c: Likewise.
2160 * corefile.c: Likewise.
2161 * corelow.c: Likewise.
2162 * cp-abi.c: Likewise.
2163 * cp-support.c: Likewise.
2164 * cp-valprint.c: Likewise.
2165 * darwin-nat.c: Likewise.
2166 * dwarf2-frame-tailcall.c: Likewise.
2167 * dwarf2-frame.c: Likewise.
2168 * dwarf2loc.c: Likewise.
2169 * dwarf2read.c: Likewise.
2170 * eval.c: Likewise.
2171 * event-loop.c: Likewise.
2172 * event-top.c: Likewise.
2173 * f-valprint.c: Likewise.
2174 * frame-unwind.c: Likewise.
2175 * frame.c: Likewise.
2176 * gdbtypes.c: Likewise.
2177 * gnu-v2-abi.c: Likewise.
2178 * gnu-v3-abi.c: Likewise.
2179 * guile/scm-auto-load.c: Likewise.
2180 * guile/scm-breakpoint.c: Likewise.
2181 * guile/scm-cmd.c: Likewise.
2182 * guile/scm-frame.c: Likewise.
2183 * guile/scm-lazy-string.c: Likewise.
2184 * guile/scm-param.c: Likewise.
2185 * guile/scm-symbol.c: Likewise.
2186 * guile/scm-type.c: Likewise.
2187 * hppa-hpux-tdep.c: Likewise.
2188 * i386-tdep.c: Likewise.
2189 * inf-loop.c: Likewise.
2190 * infcall.c: Likewise.
2191 * infcmd.c: Likewise.
2192 * infrun.c: Likewise.
2193 * interps.c: Likewise.
2194 * interps.h: Likewise.
2195 * jit.c: Likewise.
2196 * linespec.c: Likewise.
2197 * linux-nat.c: Likewise.
2198 * linux-thread-db.c: Likewise.
2199 * m32r-rom.c: Likewise.
2200 * main.c: Likewise.
2201 * memory-map.c: Likewise.
2202 * mi/mi-cmd-break.c: Likewise.
2203 * mi/mi-cmd-stack.c: Likewise.
2204 * mi/mi-interp.c: Likewise.
2205 * mi/mi-main.c: Likewise.
2206 * monitor.c: Likewise.
2207 * nto-procfs.c: Likewise.
2208 * objc-lang.c: Likewise.
2209 * p-valprint.c: Likewise.
2210 * parse.c: Likewise.
2211 * ppc-linux-tdep.c: Likewise.
2212 * printcmd.c: Likewise.
2213 * probe.c: Likewise.
2214 * python/py-auto-load.c: Likewise.
2215 * python/py-breakpoint.c: Likewise.
2216 * python/py-cmd.c: Likewise.
2217 * python/py-finishbreakpoint.c: Likewise.
2218 * python/py-frame.c: Likewise.
2219 * python/py-framefilter.c: Likewise.
2220 * python/py-function.c: Likewise.
2221 * python/py-gdb-readline.c: Likewise.
2222 * python/py-inferior.c: Likewise.
2223 * python/py-infthread.c: Likewise.
2224 * python/py-lazy-string.c: Likewise.
2225 * python/py-linetable.c: Likewise.
2226 * python/py-param.c: Likewise.
2227 * python/py-prettyprint.c: Likewise.
2228 * python/py-symbol.c: Likewise.
2229 * python/py-type.c: Likewise.
2230 * python/py-value.c: Likewise.
2231 * python/python-internal.h: Likewise.
2232 * python/python.c: Likewise.
2233 * record-btrace.c: Likewise.
2234 * record-full.c: Likewise.
2235 * regcache.c: Likewise.
2236 * remote-fileio.c: Likewise.
2237 * remote-mips.c: Likewise.
2238 * remote.c: Likewise.
2239 * rs6000-aix-tdep.c: Likewise.
2240 * rs6000-nat.c: Likewise.
2241 * skip.c: Likewise.
2242 * solib-darwin.c: Likewise.
2243 * solib-dsbt.c: Likewise.
2244 * solib-frv.c: Likewise.
2245 * solib-ia64-hpux.c: Likewise.
2246 * solib-spu.c: Likewise.
2247 * solib-svr4.c: Likewise.
2248 * solib.c: Likewise.
2249 * spu-tdep.c: Likewise.
2250 * stack.c: Likewise.
2251 * stap-probe.c: Likewise.
2252 * symfile-mem.c: Likewise.
2253 * symmisc.c: Likewise.
2254 * target.c: Likewise.
2255 * thread.c: Likewise.
2256 * top.c: Likewise.
2257 * tracepoint.c: Likewise.
2258 * tui/tui-interp.c: Likewise.
2259 * typeprint.c: Likewise.
2260 * utils.c: Likewise.
2261 * valarith.c: Likewise.
2262 * valops.c: Likewise.
2263 * valprint.c: Likewise.
2264 * value.c: Likewise.
2265 * varobj.c: Likewise.
2266 * windows-nat.c: Likewise.
2267 * xml-support.c: Likewise.
2268
2269 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2270
2271 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2272 name implies.
2273 (extended_mips16_next_pc): Update accordingly.
2274
2275 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2276
2277 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2278 function.
2279 (micromips_instruction_is_compact_branch): Likewise.
2280 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2281 or a compact jump, reaching a jump delay slot, or seeing a
2282 second non-prologue instruction.
2283 (micromips_scan_prologue): Also terminate scanning upon seeing a
2284 compact branch or jump, or reaching a branch or jump delay slot.
2285 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2286 or jump delay slot, or seeing a second non-prologue instruction.
2287 (mips32_instruction_has_delay_slot): Retain instruction
2288 examination code only, update arguments accordingly and move
2289 instruction fetch pieces to...
2290 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2291 (micromips_instruction_has_delay_slot): Likewise and to...
2292 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2293 (mips16_instruction_has_delay_slot): Likewise and to...
2294 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2295 (mips_single_step_through_delay): Update accordingly.
2296 (mips_adjust_breakpoint_address): Likewise.
2297
2298 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2299
2300 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2301 !mustbe32 also return 1 for 32-bit instructions.
2302 (mips16_instruction_has_delay_slot): Likewise. Add an
2303 explanatory comment.
2304
2305 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2306
2307 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2308 symbols special.
2309
2310 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2311
2312 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2313 update comments.
2314 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2315 for the breakpoint's address. Don't preinitialize `placed_size'.
2316 (insert_bp_location): Set `reqstd_address' rather than
2317 `placed_address'.
2318 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2319 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2320 address.
2321 (bkpt_remove_location): Likewise.
2322 (deprecated_insert_raw_breakpoint): Likewise.
2323 (deprecated_remove_raw_breakpoint): Likewise.
2324 (find_single_step_breakpoint): Likewise.
2325 * mem-break.c (default_memory_insert_breakpoint): Use
2326 `reqstd_address' for the breakpoint's address. Don't set
2327 `placed_address' or `placed_size' if breakpoint contents couldn't
2328 have been determined.
2329 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2330 the breakpoint's address.
2331 (remote_insert_hw_breakpoint): Likewise. Don't set
2332 `placed_address' or `placed_size' if breakpoint couldn't have been
2333 set.
2334 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2335 `reqstd_address' for the breakpoint's address.
2336 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2337 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2338 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2339 * microblaze-linux-tdep.c
2340 (microblaze_linux_memory_remove_breakpoint): Likewise.
2341 * monitor.c (monitor_insert_breakpoint): Likewise.
2342 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2343 (procfs_insert_hw_breakpoint): Likewise.
2344 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2345 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2346 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2347 * remote-mips.c (mips_insert_breakpoint): Likewise.
2348 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2349
2350 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2351
2352 * valops.c (value_assign): Check for bit field assignments
2353 before calling architecture-specific register value
2354 conversion functions.
2355
2356 2014-10-03 Pierre Muller <muller@sourceware.org>
2357
2358 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2359
2360 2014-10-02 Pedro Alves <palves@redhat.com>
2361
2362 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2363 threads_are_executing.
2364 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2365 describing comment.
2366 * gdbthread.h (threads_are_executing): Declare.
2367 (handle_signal_stop) <random signals>: Don't print about the
2368 signal here if stopping.
2369 (end_stepping_range): Don't notify observers here.
2370 (normal_stop): Update the thread list. If stopped by a random
2371 signal or a stepping range ended, notify observers.
2372 * thread.c (threads_executing): New global.
2373 (init_thread_list): Clear 'threads_executing'.
2374 (set_executing): Set or clear 'threads_executing'.
2375 (threads_are_executing): New function.
2376 (update_threads_executing): New function.
2377 (update_thread_list): Use it.
2378
2379 2014-10-02 Pedro Alves <palves@redhat.com>
2380
2381 PR breakpoints/17431
2382 * breakpoint.c (update_breakpoints_after_exec): Don't create
2383 overlay, longjmp, std terminate nor exception breakpoints here.
2384
2385 2014-10-02 Pedro Alves <palves@redhat.com>
2386
2387 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2388 Adjust comments.
2389 * inferior.c (find_inferior_for_program_space): Give preference to
2390 the current inferior.
2391 * inferior.h (find_inferior_for_program_space): Update comment.
2392 * progspace.c (switch_to_program_space_and_thread): Prefer the
2393 current inferior if it's bound to the program space requested. If
2394 the inferior found doesn't have a PID yet, don't bother looking up
2395 a thread.
2396 * progspace.h (switch_to_program_space_and_thread): Adjust
2397 comment.
2398 * thread.c (any_thread_of_process, any_live_thread_of_process):
2399 Give preference to the current thread.
2400
2401 2014-10-01 Pedro Alves <palves@redhat.com>
2402
2403 * breakpoint.c (insert_bp_location): Error out if inserting a
2404 software breakpoint at a read-only address.
2405 * target.c (memory_xfer_check_region): New function, factored out
2406 from ...
2407 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2408 ULONGEST.
2409 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2410 against the memory region attributes.
2411
2412 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2413
2414 * NEWS: Announce new exit-code field in -list-thread-groups
2415 output.
2416 * inferior.c (exit_inferior_1): Don't clear exit code.
2417 (inferior_appeared): Clear exit code.
2418 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2419 code.
2420
2421 2014-10-01 Pedro Alves <palves@redhat.com>
2422
2423 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2424 GENERATED" along with emacs/vi read-only markers.
2425 * regformats/aarch64.dat: Regenerate.
2426 * regformats/arm-with-iwmmxt.dat: Regenerate.
2427 * regformats/arm-with-neon.dat: Regenerate.
2428 * regformats/arm-with-vfpv2.dat: Regenerate.
2429 * regformats/arm-with-vfpv3.dat: Regenerate.
2430 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2431 * regformats/i386/amd64-avx.dat: Regenerate.
2432 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2433 * regformats/i386/amd64-avx512.dat: Regenerate.
2434 * regformats/i386/amd64-linux.dat: Regenerate.
2435 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2436 * regformats/i386/amd64-mpx.dat: Regenerate.
2437 * regformats/i386/amd64.dat: Regenerate.
2438 * regformats/i386/i386-avx-linux.dat: Regenerate.
2439 * regformats/i386/i386-avx.dat: Regenerate.
2440 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2441 * regformats/i386/i386-avx512.dat: Regenerate.
2442 * regformats/i386/i386-linux.dat: Regenerate.
2443 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2444 * regformats/i386/i386-mmx.dat: Regenerate.
2445 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2446 * regformats/i386/i386-mpx.dat: Regenerate.
2447 * regformats/i386/i386.dat: Regenerate.
2448 * regformats/i386/x32-avx-linux.dat: Regenerate.
2449 * regformats/i386/x32-avx.dat: Regenerate.
2450 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2451 * regformats/i386/x32-avx512.dat: Regenerate.
2452 * regformats/i386/x32-linux.dat: Regenerate.
2453 * regformats/i386/x32.dat: Regenerate.
2454 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2455 * regformats/mips-dsp-linux.dat: Regenerate.
2456 * regformats/mips-linux.dat: Regenerate.
2457 * regformats/mips64-dsp-linux.dat: Regenerate.
2458 * regformats/mips64-linux.dat: Regenerate.
2459 * regformats/nios2-linux.dat: Regenerate.
2460 * regformats/rs6000/powerpc-32.dat: Regenerate.
2461 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2462 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2463 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2464 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2465 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2466 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2467 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2468 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2469 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2470 * regformats/s390-linux32.dat: Regenerate.
2471 * regformats/s390-linux32v1.dat: Regenerate.
2472 * regformats/s390-linux32v2.dat: Regenerate.
2473 * regformats/s390-linux64.dat: Regenerate.
2474 * regformats/s390-linux64v1.dat: Regenerate.
2475 * regformats/s390-linux64v2.dat: Regenerate.
2476 * regformats/s390-te-linux64.dat: Regenerate.
2477 * regformats/s390x-linux64.dat: Regenerate.
2478 * regformats/s390x-linux64v1.dat: Regenerate.
2479 * regformats/s390x-linux64v2.dat: Regenerate.
2480 * regformats/s390x-te-linux64.dat: Regenerate.
2481 * regformats/tic6x-c62x-linux.dat: Regenerate.
2482 * regformats/tic6x-c62x.dat: Regenerate.
2483 * regformats/tic6x-c64x-linux.dat: Regenerate.
2484 * regformats/tic6x-c64x.dat: Regenerate.
2485 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2486 * regformats/tic6x-c64xp.dat: Regenerate.
2487
2488 2014-10-01 Pedro Alves <palves@redhat.com>
2489
2490 * features/Makefile: Update comments.
2491 (XMLTOC): List all xml files we build C files from.
2492 (clean-cfiles): New rule.
2493
2494 2014-10-01 Pedro Alves <palves@redhat.com>
2495
2496 * features/i386/amd64-avx512-linux.c: Regenerate.
2497 * features/i386/amd64-avx512.c: Regenerate.
2498 * features/i386/x32-avx512-linux.c: Regenerate.
2499 * features/i386/x32-avx512.c: Regenerate.
2500
2501 2014-10-01 Pedro Alves <palves@redhat.com>
2502
2503 * features/Makefile (WHICH): Remove arm-with-m,
2504 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2505
2506 2014-10-01 Pedro Alves <palves@redhat.com>
2507
2508 * features/Makefile (clean): New rule.
2509
2510 2014-10-01 Pedro Alves <palves@redhat.com>
2511
2512 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2513 (zmm14h): Add missing end quotes.
2514
2515 2014-10-01 Pedro Alves <palves@redhat.com>
2516
2517 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2518 * features/aarch64.c: Regenerate.
2519
2520 2014-09-30 Don Breazeal <donb@codesourcery.com>
2521
2522 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2523 code so as to work with follow_fork_inferior.
2524 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2525 (inf_ttrace_create_inferior): Remove reference to
2526 inf_ttrace_vfork_ppid.
2527 (inf_ttrace_attach): Ditto.
2528 (inf_ttrace_detach): Ditto.
2529 (inf_ttrace_kill): Use current_inferior instead of
2530 inf_ttrace_vfork_ppid.
2531 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2532 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2533 inferior away from the parent.
2534 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2535 target_follow_fork.
2536 (follow_fork_inferior): New function.
2537 (follow_inferior_reset_breakpoints): Make function static.
2538 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2539 * linux-nat.c (linux_child_follow_fork): Move target-independent
2540 code to infrun.c:follow_fork_inferior.
2541
2542 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2543
2544 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2545 * gdbarch.c: Regenerate.
2546 * gdbarch.h: Likewise.
2547 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2548 gdbarch method 'regset_from_core_section'.
2549 (get_core_register_section): Remove handling for the case that
2550 regset == NULL and regset_from_core_section is defined.
2551 (get_core_registers): Drop check for deleted method.
2552 * procfs.c (procfs_do_thread_registers): Adjust comment.
2553
2554 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2555
2556 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2557 (linux_nat_make_corefile_notes): Remove.
2558 (linux_target_install_ops): Do not set target method
2559 'make_corefile_notes'.
2560 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2561 Remove field.
2562 (linux_corefile_thread_callback): Instead of args->collect, call
2563 linux_collect_thread_registers.
2564 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2565 NULL unless there is a regset iterator.
2566 (linux_make_corefile_notes_1): Remove.
2567 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2568 by linux_make_corefile_notes.
2569 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2570
2571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2572
2573 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2574 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2575 Remove.
2576 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2577
2578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2579
2580 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2581 (xtensa_iterate_over_regset_sections): New.
2582 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2583
2584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2585
2586 * vax-tdep.c (vax_regset_from_core_section): Remove.
2587 (vax_iterate_over_regset_sections): New.
2588 (vax_gdbarch_init): Adjust gdbarch initialization.
2589
2590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591
2592 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2593 (tilegx_regset_from_core_section): Remove.
2594 (tilegx_iterate_over_regset_sections): New.
2595 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2596
2597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2598
2599 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2600 (sparc_iterate_over_regset_sections): New.
2601 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2602 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2603 targets.
2604 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2605 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2606 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2607 target method 'make_corefile_notes'.
2608
2609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2610
2611 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2612 'sizeof_gregset' and 'sizeof_fpregset'.
2613 * sh-tdep.c (sh_regset_from_core_section): Remove.
2614 (sh_iterate_over_regset_sections): New.
2615 (sh_gdbarch_init): Adjust gdbarch initialization.
2616 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2617 sizeof_fpregset.
2618 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2619 'sizeof_gregset'.
2620
2621 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2622
2623 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2624 (score7_linux_iterate_over_regset_sections): New.
2625 (score_gdbarch_init): Adjust gdbarch initialization.
2626
2627 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2628
2629 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2630 FreeBSD targets.
2631 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2632 method 'make_corefile_notes'.
2633 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2634 (ppcfbsd_regset_from_core_section): Remove.
2635 (ppcfbsd_iterate_over_regset_sections): New.
2636 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2637 initialization.
2638 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2639 (ppcnbsd_iterate_over_regset_sections): New.
2640 (ppcnbsd_init_abi): Adjust.
2641 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2642 (ppcobsd_iterate_over_regset_sections): New.
2643 (ppcobsd_init_abi): Adjust.
2644 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2645 (rs6000_aix_iterate_over_regset_sections): New.
2646 (rs6000_aix_init_osabi): Adjust.
2647
2648 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2649
2650 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2651 (nios2_regset_from_core_section): Remove.
2652 (nios2_iterate_over_regset_sections): New.
2653 (nios2_linux_init_abi): Adjust gdbarch initialization.
2654
2655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2656
2657 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2658 (am33_iterate_over_regset_sections): New.
2659 (am33_linux_init_osabi): Adjust gdbarch initialization.
2660
2661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2662
2663 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2664 (mips_linux_iterate_over_regset_sections): New.
2665 (mips_linux_init_abi): Adjust gdbarch initialization.
2666 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2667 (mips64obsd_iterate_over_regset_sections): New.
2668 (mips64obsd_init_abi): Adjust.
2669 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2670 (mipsnbsd_iterate_over_regset_sections): New.
2671 (mipsnbsd_init_abi): Adjust.
2672
2673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2674
2675 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2676 (m88k_iterate_over_regset_sections): New.
2677 (m88k_gdbarch_init): Adjust gdbarch initialization.
2678
2679 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680
2681 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2682 (ia64_linux_iterate_over_regset_sections): New.
2683 (ia64_linux_init_abi): Adjust gdbarch initialization.
2684
2685 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2686
2687 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2688 (m68kbsd_iterate_over_regset_sections): New.
2689 (m68kbsd_init_abi): Adjust gdbarch initialization.
2690 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2691 (m68k_linux_iterate_over_regset_sections): New.
2692 (m68k_linux_init_abi): Adjust gdbarch initialization.
2693
2694 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695
2696 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2697 (m32r_linux_regset_from_core_section): Remove.
2698 (m32r_linux_iterate_over_regset_sections): New.
2699 (m32r_linux_init_abi): Adjust gdbarch initialization.
2700
2701 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2702
2703 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2704 (amd64obsd_iterate_over_regset_sections): New.
2705 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2706 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2707 Remove.
2708 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2709 regset_from_core_section initialization.
2710 * i386-tdep.c (i386_regset_from_core_section): Remove.
2711 (i386_iterate_over_regset_sections): New.
2712 (i386_gdbarch_init): Adjust gdbarch initialization.
2713 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2714 (i386_iterate_over_regset_sections): New prototype.
2715 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2716 Remove.
2717 (i386obsd_aout_iterate_over_regset_sections): New.
2718 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2719 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2720 targets.
2721 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2722 (amd64fbsd_init_abi): Call fbsd_init_abi.
2723 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2724 (i386fbsd4_init_abi): Call fbsd_init_abi.
2725 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2726 target method 'make_corefile_notes'.
2727 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2728
2729 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2730
2731 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2732 (hppa_hpux_iterate_over_regset_sections): New.
2733 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2734 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2735 (hppa_linux_iterate_over_regset_sections): New.
2736 (hppa_linux_init_abi): Adjust.
2737 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2738 (hppanbsd_iterate_over_regset_sections): New.
2739 (hppanbsd_init_abi): Adjust.
2740 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2741 (hppaobsd_iterate_over_regset_sections): New.
2742 (hppaobsd_init_abi): Adjust.
2743
2744 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2745
2746 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2747 (frv_linux_iterate_over_regset_sections): New.
2748 (frv_linux_init_abi): Adjust gdbarch initialization.
2749
2750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2753 (armbsd_iterate_over_regset_sections): New prototype.
2754 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2755 (armbsd_iterate_over_regset_sections): New.
2756 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2757 initialization.
2758
2759 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2760
2761 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2762 (alpha_linux_iterate_over_regset_sections): New.
2763 (alpha_linux_init_abi): Adjust gdbarch initialization.
2764 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2765 prototype.
2766 (alphanbsd_iterate_over_regset_sections): New prototype.
2767
2768 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2769
2770 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2771 Remove.
2772 (aarch64_linux_iterate_over_regset_sections): New.
2773 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2774
2775 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2776
2777 * fbsd-tdep.c: New file.
2778 * fbsd-tdep.h: New file.
2779 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2780 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2781 (ALLDEPFILES): Add fbsd-tdep.c.
2782
2783 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784
2785 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2786 parameter.
2787 * gdbarch.h: Regenerate.
2788 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2789 iterator.
2790 (get_core_register_section): Add parameter 'regset' and use it, if
2791 set. Add parameter 'min_size' and verify the bfd section size
2792 against it.
2793 (get_core_registers_cb): Add parameter 'regset' and pass it to
2794 get_core_register section. For the "standard" register sections
2795 ".reg" and ".reg2", set an appropriate default for human_name.
2796 (get_core_registers): Don't abort when the gdbarch has an iterator
2797 but no regset_from_core_section. Add NULL/0 for parameters
2798 'regset'/'min_size' in calls to get_core_register_section.
2799 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2800 'regset' and use it instead of calling the
2801 regset_from_core_section gdbarch method.
2802 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2803 * i386-tdep.c (i386_supply_xstateregset)
2804 (i386_collect_xstateregset, i386_xstateregset): Moved to
2805 i386-linux-tdep.c.
2806 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2807 .reg-xstate.
2808 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2809 core file support only if the regset iterator hasn't been set.
2810 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2811 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2812 Moved from i386-tdep.c and renamed to *_linux*.
2813 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2814 each callback invocation. Allow any .reg-xstate size when reading
2815 from a core file.
2816 * amd64-tdep.c (amd64_supply_xstateregset)
2817 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2818 amd64-linux-tdep.c.
2819 (amd64_regset_from_core_section): Remove.
2820 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2821 install an amd64-specific regset_from_core_section gdbarch method.
2822 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2823 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2824 Moved from amd64-tdep.c and renamed to *_linux*.
2825 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2826 to each callback invocation. Allow any .reg-xstate size when
2827 reading from a core file.
2828 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2829 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2830 each callback invocation.
2831 (arm_linux_init_abi): No longer set the regset_from_core_section
2832 gdbarch method.
2833 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2834 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2835 each callback invocation.
2836 (ppc_linux_init_abi): No longer set the regset_from_core_section
2837 gdbarch method.
2838 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2839 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2840 (s390_regset_from_core_section): Remove.
2841 (s390_iterate_over_regset_sections): Add regset parameter to each
2842 callback invocation.
2843 (s390_gdbarch_init): No longer set the regset_from_core_section
2844 gdbarch method. Drop initialization of deleted tdep fields.
2845
2846 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847
2848 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2849 (amd64_linux_iterate_over_regset_sections): New.
2850 (amd64_linux_init_abi_common): Don't install the regset section
2851 list, but the new iterator in gdbarch.
2852 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2853 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2854 (arm_linux_iterate_over_regset_sections): ...here. New function.
2855 (arm_linux_init_abi): Set iterator instead of section list.
2856 * corelow.c (get_core_registers_cb): New function, logic moved
2857 from...
2858 (get_core_registers): ...loop body here. Use new iterator method
2859 instead of walking through the regset section list.
2860 * gdbarch.sh: Remove 'core_regset_sections'. New method
2861 'iterate_over_regset_sections'. New typedef
2862 'iterate_over_regset_sections_cb'.
2863 * gdbarch.c: Regenerate.
2864 * gdbarch.h: Likewise.
2865 * i386-linux-tdep.c (i386_linux_regset_sections)
2866 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2867 Remove.
2868 (i386_linux_iterate_over_regset_sections): New.
2869 (i386_linux_init_abi): Don't choose a regset section list, but
2870 install new iterator in gdbarch.
2871 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2872 (linux_collect_regset_section_cb): New function, logic moved
2873 from...
2874 (linux_collect_thread_registers): ...loop body here. Use iterator
2875 method instead of walking through list.
2876 (linux_make_corefile_notes_1): Check for presence of iterator
2877 method instead of regset section list.
2878 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2879 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2880 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2881 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2882 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2883 (ppc_linux_init_abi): Don't choose from above regset section
2884 lists, but install new iterator in gdbarch.
2885 * regset.h (struct core_regset_section): Remove.
2886 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2887 have_linux_v1, have_linux_v2, and have_tdb.
2888 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2889 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2890 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2891 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2892 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2893 (s390_iterate_over_regset_sections): ...here. New function. Use
2894 new tdep fields.
2895 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2896 regset section lists, but install new iterator.
2897
2898 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2899
2900 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2901
2902 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2903
2904 * progspace.c (print_program_space): Don't prune program spaces
2905 before printing them.
2906
2907 2014-09-25 Pedro Alves <palves@redhat.com>
2908
2909 * infrun.c (user_visible_resume_ptid): Don't check
2910 singlestep_breakpoints_inserted_p.
2911
2912 2014-09-25 Pedro Alves <palves@redhat.com>
2913
2914 * breakpoint.c (should_be_inserted): Add debug output.
2915
2916 2014-09-25 Pedro Alves <palves@redhat.com>
2917
2918 * infrun.c (stepping_past_instruction_at)
2919 (clear_exit_convenience_vars): Point at infrun.h instead of
2920 inferior.h.
2921 (handle_signal_stop): Fix typo.
2922
2923 2014-09-24 Yao Qi <yao@codesourcery.com>
2924
2925 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2926 bitmask.
2927
2928 2014-09-22 Gary Benson <gbenson@redhat.com>
2929
2930 * target.c (target_stop): Updated comment.
2931
2932 2014-09-22 Gary Benson <gbenson@redhat.com>
2933
2934 * target/target.h (target_stop_ptid): Renamed as...
2935 (target_stop_and_wait): New function. Updated comment.
2936 All uses updated.
2937 (target_continue_ptid): Renamed as...
2938 (target_continue_no_signal): New function. Updated comment.
2939 All uses updated.
2940
2941 2014-09-22 Pedro Alves <palves@redhat.com>
2942
2943 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2944 and "auto" merged.
2945 * breakpoint.c (enum ugll_insert_mode): New enum.
2946 (always_inserted_mode): Now a plain boolean.
2947 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2948 (breakpoints_always_inserted_mode): Delete.
2949 (breakpoints_should_be_inserted_now): New function.
2950 (insert_breakpoints): Pass UGLL_INSERT to
2951 update_global_location_list instead of calling
2952 insert_breakpoint_locations manually.
2953 (create_solib_event_breakpoint_1): New, factored out from ...
2954 (create_solib_event_breakpoint): ... this.
2955 (create_and_insert_solib_event_breakpoint): Use
2956 create_solib_event_breakpoint_1 instead of calling
2957 insert_breakpoint_locations manually.
2958 (update_global_location_list): Change parameter type from boolean
2959 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2960 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2961 (update_global_location_list_nothrow): Change parameter type from
2962 boolean to enum ugll_insert_mode.
2963 (_initialize_breakpoint): "breakpoint always-inserted" option is
2964 now a boolean command. Update help text.
2965 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2966 (breakpoints_should_be_inserted_now): New declaration.
2967 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2968 Remove breakpoints_always_inserted_mode check.
2969 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2970 * remote.c (remote_start_remote): Likewise.
2971
2972 2014-09-22 Pedro Alves <palves@redhat.com>
2973
2974 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2975 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2976 Instead, pass UGLL_INSERT to update_global_location_list.
2977 (update_global_location_list): Change parameter type from boolean
2978 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2979 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2980 (create_solib_event_breakpoint_1): New, factored out from ...
2981 (create_solib_event_breakpoint): ... this.
2982 (create_and_insert_solib_event_breakpoint): Use
2983 create_solib_event_breakpoint_1 instead of calling
2984 insert_breakpoint_locations manually.
2985 (update_global_location_list): Handle UGLL_INSERT.
2986
2987 2014-09-22 Pedro Alves <palves@redhat.com>
2988
2989 * breakpoint.c (enum ugll_insert_mode): New enum.
2990 (update_global_location_list)
2991 (update_global_location_list_nothrow): Change parameter type from
2992 boolean to enum ugll_insert_mode. All callers adjusted.
2993
2994 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2995
2996 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2997 SystemTap support in GDB.
2998
2999 2014-09-19 Don Breazeal <donb@codesourcery.com>
3000
3001 * linux-nat.c (linux_handle_extended_wait): Call
3002 linux_ptrace_get_extended_event.
3003 (wait_lwp): Call linux_is_extended_waitstatus.
3004 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3005 and linux_is_extended_waitstatus.
3006 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3007 linux_ptrace_get_extended_event.
3008 (linux_ptrace_get_extended_event): New function.
3009 (linux_is_extended_waitstatus): New function.
3010 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3011 (linux_is_extended_waitstatus): New declarations.
3012
3013 2014-09-19 Yao Qi <yao@codesourcery.com>
3014
3015 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3016 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3017 comments. Callers update.
3018 (dwarf_decode_lines): Likewise.
3019 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3020 comments. Skip the line table if 'lowpc' is greater than
3021 'address'. Don't check
3022 dwarf2_per_objfile->has_section_at_zero.
3023
3024 2014-09-18 Doug Evans <dje@google.com>
3025
3026 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3027 * python/py-symtab.c (stpy_get_producer): New function.
3028 (symtab_object_getset): Add "producer" attribute.
3029
3030 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3031
3032 PR gdb/17384
3033 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3034 (do_captured_read_memory_integer): Remove.
3035 (safe_read_memory_integer): Use target_read_memory directly instead
3036 of catching errors in do_captured_read_memory_integer.
3037
3038 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3039
3040 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3041 not gdb/doc.
3042
3043 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3044
3045 * objc-lang.c (find_implementation_from_class): Remove dead code.
3046
3047 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3048
3049 PR cli/7233
3050 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3051 "fprintf_unfiltered (gdb_stdlog...)".
3052
3053 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3054
3055 PR breakpoints/12526
3056 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3057 val_bitsize.
3058 * breakpoint.c (watch_command_1): Use these fields to retain
3059 bitfield information.
3060 (extract_bitfield_from_watchpoint_value): New function.
3061 (watchpoint_check): Use it.
3062 (update_watchpoint): Use it. Optimize the address and length of a
3063 HW watchpoint pointing to a bitfield.
3064 * value.h (unpack_value_bitfield): New prototype.
3065 * value.c (unpack_value_bitfield): Make extern.
3066
3067 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3068
3069 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3070 x86-dregs.o.
3071 * gnu-nat.c (inf_threads): New function.
3072 * gnu-nat.h (inf_threads_ftype): New typedef.
3073 (inf_threads): New declaration.
3074 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3075 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3076 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3077 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3078 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3079 (i386_gnu_dr_get_control): New functions.
3080 (reg_addr): New structure.
3081 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3082 i386 debugging register hooks.
3083 * NEWS: Mention this.
3084
3085 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3086
3087 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3088 vector data transfer instructions.
3089 (arm_record_coproc_data_proc): Updated.
3090
3091 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3092
3093 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3094 arm_record_exreg_ld_st_insn.
3095 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3096 load/store insns.
3097
3098 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3099
3100 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3101 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3102 processing instructions.
3103
3104 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3105
3106 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3107 for advance SIMD struct ld/st insn.
3108 (thumb2_record_decode_insn_handler): Replace stub handler with
3109 thumb2_record_asimd_struct_ld_st.
3110
3111 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3112
3113 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3114 for asimd, vfp and coprocessor insns.
3115 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3116 and coprocessor insns.
3117 (thumb2_record_coproc_insn): New function.
3118 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3119 handlers.
3120 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3121 opcode 110 insns.
3122
3123 2014-09-13 Doug Evans <xdje42@gmail.com>
3124
3125 * NEWS: Mention new "queue-signal" command.
3126 * infcmd.c (queue_signal_command): New function.
3127 (_initialize_infcmd): Add new queue-signal command.
3128
3129 2014-09-13 Doug Evans <xdje42@gmail.com>
3130
3131 * linux-nat.c (wait_lwp): Add debugging printf.
3132 (linux_nat_wait_1): Ditto.
3133
3134 2014-09-12 Pedro Alves <palves@redhat.com>
3135
3136 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3137 (create_and_insert_solib_event_breakpoint): New functions.
3138 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3139 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3140 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3141 (remove_dbx_link_breakpoint): Delete function.
3142 (insert_dbx_link_bpt_in_file): Use
3143 create_and_insert_solib_event_breakpoint instead of
3144 deprecated_insert_raw_breakpoint.
3145 (procfs_wait): Don't check whether we hit __dbx_link here.
3146 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3147 here.
3148 * solib-irix.c (base_breakpoint): Delete global.
3149 (disable_break): Delete function.
3150 (enable_break): Use create_solib_event_breakpoint
3151 instead of deprecated_insert_raw_breakpoint.
3152 (irix_solib_handle_event): New function.
3153 (irix_solib_create_inferior_hook): Don't run the target or disable
3154 the mapping-complete breakpoint here.
3155 (_initialize_irix_solib): Install irix_solib_handle_event as
3156 so_ops->handle_event hook.
3157
3158 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3159 Ulrich Weigand  <uweigand@de.ibm.com>
3160
3161 PR tdep/17379
3162 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3163 instead of read_memory_unsigned_integer.
3164
3165 2014-09-12 Gary Benson <gbenson@redhat.com>
3166
3167 * nat/linux-waitpid.c: Include common-defs.h.
3168 [GDBSERVER]: Add FIXME comment.
3169 [!GDBSERVER]: Don't include defs.h or signal.h.
3170 (linux_debug) [!GDBSERVER]: Remove empty block.
3171
3172 2014-09-12 Gary Benson <gbenson@redhat.com>
3173
3174 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3175 Don't include defs.h or server.h.
3176
3177 2014-09-12 Gary Benson <gbenson@redhat.com>
3178
3179 * nat/linux-btrace.c: Include common-defs.h.
3180 Don't include defs.h, server.h or gdbthread.h.
3181 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3182
3183 2014-09-12 Gary Benson <gbenson@redhat.com>
3184
3185 * common/agent.c: Include common-defs.h.
3186 Don't include defs.h or server.h.
3187 * common/buffer.c: Likewise.
3188 * common/common-debug.c: Likewise.
3189 * common/common-utils.c: Likewise.
3190 * common/errors.c: Likewise.
3191 * common/filestuff.c: Likewise.
3192 * common/format.c: Likewise.
3193 * common/gdb_vecs.c: Likewise.
3194 * common/print-utils.c: Likewise.
3195 * common/ptid.c: Likewise.
3196 * common/rsp-low.c: Likewise.
3197 * common/signals.c: Likewise.
3198 * common/vec.c: Likewise.
3199 * common/xml-utils.c: Likewise.
3200 * nat/linux-osdata.c: Likewise.
3201 * nat/linux-procfs.c: Likewise.
3202 * nat/linux-ptrace.c: Likewise.
3203 * nat/mips-linux-watch.c: Likewise.
3204 * target/waitstatus.c: Likewise.
3205
3206 2014-09-12 Tom Tromey <tromey@redhat.com>
3207 Gary Benson <gbenson@redhat.com>
3208
3209 * common/common-regcache.h: New file.
3210 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3211 * regcache.h: Include common-regcache.h.
3212 (regcache_read_pc): Don't declare.
3213 * regcache.c (get_thread_regcache_for_ptid): New function.
3214 * nat/linux-btrace.c: Don't include regcache.h.
3215 Include common-regcache.h.
3216 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3217
3218 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3219
3220 * regcache.h (struct regset): Declare.
3221
3222 2014-09-11 Pedro Alves <palves@redhat.com>
3223
3224 PR gdb/17347
3225 * main.c: Include "infrun.h".
3226 (catch_command_errors, catch_command_errors_const): Wait for the
3227 foreground command to complete.
3228 * top.c (maybe_wait_sync_command_done): New function, factored out
3229 from ...
3230 (maybe_wait_sync_command_done): ... here.
3231 * top.h (maybe_wait_sync_command_done): New declaration.
3232
3233 2014-09-11 Tom Tromey <tromey@redhat.com>
3234 Gary Benson <gbenson@redhat.com>
3235
3236 * common/symbol.h: New file.
3237 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3238 * minsyms.c (find_minimal_symbol_address): New function.
3239 * common/agent.c: Include common/symbol.h.
3240 [!GDBSERVER]: Don't include objfiles.h.
3241 (agent_look_up_symbols): Use find_minimal_symbol_address.
3242
3243 2014-09-11 Gary Benson <gbenson@redhat.com>
3244
3245 * target/target.h (target_stop_ptid, target_continue_ptid):
3246 Declare.
3247 * target.c (target_stop_ptid, target_continue_ptid): New
3248 functions.
3249 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3250 (agent_run_command): Always use target_stop_ptid and
3251 target_continue_ptid.
3252
3253 2014-09-11 Tom Tromey <tromey@redhat.com>
3254 Gary Benson <gbenson@redhat.com>
3255
3256 * target/target.h: New file.
3257 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3258 * target.h: Include target/target.h.
3259 (target_read_memory, target_write_memory): Don't declare.
3260 * target.c (target_read_uint32): New function.
3261 * common/agent.c: Include target/target.h.
3262 [!GDBSERVER]: Don't include target.h.
3263 (helper_thread_id): Type changed to uint32_t.
3264 (agent_get_helper_thread_id): Use target_read_uint32.
3265 (agent_run_command): Always use target_read_memory and
3266 target_write_memory.
3267 (agent_capability): Type changed to uint32_t.
3268 (agent_capability_check): Use target_read_uint32.
3269
3270 2014-09-11 Gary Benson <gbenson@redhat.com>
3271
3272 * common/common-debug.h (show_debug_regs): Declare.
3273 * common/common-debug.c (show_debug_regs): Define.
3274 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3275 all uses with show_debug_regs. Replace all uses that considered
3276 debug_hw_points as a multi-value integer with straight boolean
3277 uses.
3278 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3279 with show_debug_regs.
3280 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3281 all uses with show_debug_regs.
3282 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3283 uses with show_debug_regs.
3284
3285 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3286
3287 * findvar.c (address_from_register): Handle targets requiring
3288 a special conversion routine even for plain pointer types.
3289
3290 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3291
3292 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3293 (store_register): Do not call exec_one_dummy_insn.
3294
3295 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3296
3297 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3298 dereference it first. Use value_enclosing_type instead of
3299 value_type.
3300 (ada_array_length): Likewise.
3301
3302 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3303
3304 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3305 Adjust function implementation and documentation accordingly.
3306 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3307 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3308 Update call to ada_value_ptr_subscript.
3309
3310 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3311
3312 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3313 instead of VAL's type.
3314
3315 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3316
3317 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3318
3319 2014-09-09 Doug Evans <xdje42@gmail.com>
3320
3321 PR guile/17367
3322 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3323 last parameter to pkg-config, not first.
3324 * configure.ac: Pass --with-guile provided pkg-config path to
3325 GDB_GUILE_PROGRAM_NAMES.
3326 * configure: Regenerate.
3327
3328 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3329
3330 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3331 Bertazi".
3332
3333 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3334
3335 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3336 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3337 the list of sections determining GDB_OSABI_IRIX.
3338
3339 2014-09-09 James Hogan <james.hogan@imgtec.com>
3340
3341 * MAINTAINERS (Write After Approval): Add "James Hogan".
3342
3343 2014-09-09 James Hogan <james.hogan@imgtec.com>
3344
3345 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3346
3347 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3348
3349 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3350
3351 2014-09-08 Doug Evans <xdje42@gmail.com>
3352
3353 PR 17247
3354 * guile.c: #include <signal.h>.
3355 (_initialize_guile): Block SIGCHLD while initializing Guile.
3356
3357 Replaces the following, which is reverted.
3358
3359 2014-07-26 Doug Evans <xdje42@gmail.com>
3360
3361 PR 17185
3362 * configure.ac: Add check for header gc/gc.h.
3363 Add check for function setenv.
3364 * configure: Regenerate.
3365 * config.in: Regenerate.
3366 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3367
3368 2014-09-08 Doug Evans <xdje42@gmail.com>
3369
3370 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3371 with named constant. Fix style of pointer comparison.
3372 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3373
3374 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3375
3376 PR gdb/17035
3377 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3378 decide whether we display the command on "show user".
3379 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3380 printing command name.
3381 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3382 * cli/cli-decode.c (cli_user_command_p): Create helper function
3383 to verify whether cmd_list_element is a user-defined command.
3384
3385 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3386
3387 PR python/17355
3388 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3389 Fix goto out of TRY_CATCH.
3390
3391 2014-09-06 Doug Evans <xdje42@gmail.com>
3392 Tom Tromey <tromey@redhat.com>
3393
3394 PR 15276
3395 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3396 $_any_caller_matches.
3397 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3398 * python/lib/gdb/function/caller_is.py: New file.
3399
3400 2014-09-06 Doug Evans <xdje42@gmail.com>
3401
3402 * infcmd.c (program_info): Fix typo.
3403
3404 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3405
3406 PR gdb/17235
3407 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3408 'number'. New variable 'has_digit'. Rewrite code to deal with
3409 subexpressions on SDT probes.
3410
3411 2014-09-04 Pedro Alves <palves@redhat.com>
3412
3413 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3414 the input is only one character long.
3415
3416 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3417
3418 PR fortran/17237
3419 * f-valprint.c (f_val_print): Specify the correct print option to
3420 use when printing integer values.
3421
3422 2014-09-04 Gary Benson <gbenson@redhat.com>
3423
3424 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3425 Remove code to cope with LWPs wrapped as PIDs.
3426 Add assertions to ensure no wrapped LWPs are passed.
3427
3428 2014-09-04 Pedro Alves <palves@redhat.com>
3429
3430 * value.c (value_ranges_copy_adjusted): New function, factored out
3431 from ...
3432 (value_contents_copy_raw): ... here.
3433 (unpack_value_bits_as_long_1): Rename back to ...
3434 (unpack_bits_as_long): ... this. Remove 'original_value' and
3435 'result' parameters. Change return type to LONGEST.
3436 (unpack_value_bits_as_long): Delete.
3437 (unpack_value_field_as_long_1): Delete.
3438 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3439 (unpack_value_bitfield): New function.
3440 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3441 (value_fetch_lazy): Use unpack_value_bitfield.
3442 * value.h (unpack_value_bits_as_long): Delete declaration.
3443
3444 2014-09-03 Sasha Smundak <asmundak@google.com>
3445
3446 * python/py-frame.c (frapy_read_register): New function.
3447
3448 2014-09-03 James Hogan <james.hogan@imgtec.com>
3449
3450 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3451 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3452
3453 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3454
3455 PR python/16699
3456 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3457 function.
3458 (add_cmd): Set "completer_handle_brkchars" to NULL.
3459 * cli/cli-decode.h (struct cmd_list_element)
3460 <completer_handle_brkchars>: New field.
3461 * command.h (completer_ftype_void): New typedef.
3462 (set_cmd_completer_handle_brkchars): New prototype.
3463 * completer.c (set_gdb_completion_word_break_characters): New
3464 function.
3465 (complete_line_internal): Call "completer_handle_brkchars"
3466 callback from command.
3467 * completer.h: Include "command.h".
3468 (set_gdb_completion_word_break_characters): New prototype.
3469 * python/py-cmd.c (cmdpy_completer_helper): New function.
3470 (cmdpy_completer_handle_brkchars): New function.
3471 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3472 (cmdpy_init): Set completer_handle_brkchars to
3473 cmdpy_completer_handle_brkchars.
3474
3475 2014-09-03 Gary Benson <gbenson@redhat.com>
3476
3477 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3478 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3479 Loop conditions changed to equivalent form.
3480 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3481 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3482 ALL_DEBUG_ADDRESS_REGISTERS.
3483
3484 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3485
3486 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3487 description fix.
3488
3489 2014-09-02 Doug Evans <dje@google.com>
3490
3491 * typeprint.c (find_global_typedef): Fix comment.
3492
3493 2014-09-02 Gary Benson <gbenson@redhat.com>
3494
3495 * i386-nat.h: Renamed as...
3496 * x86-nat.h: New file. All type, function and variable name
3497 prefixes changed from "i386_" to "x86_". All references updated.
3498 * i386-nat.c: Renamed as...
3499 * x86-nat.c: New file. All type, function and variable name
3500 prefixes changed from "i386_" to "x86_". All references updated.
3501 * common/i386-xstate.h: Renamed as...
3502 * common/x86-xstate.h: New file. All type, function and variable
3503 name prefixes changed from "i386_" to "x86_". All references
3504 updated.
3505 * nat/i386-cpuid.h: Renamed as...
3506 * nat/x86-cpuid.h: New file. All type, function and variable name
3507 prefixes changed from "i386_" to "x86_". All references updated.
3508 * nat/i386-gcc-cpuid.h: Renamed as...
3509 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3510 name prefixes changed from "i386_" to "x86_". All references
3511 updated.
3512 * nat/i386-dregs.h: Renamed as...
3513 * nat/x86-dregs.h: New file. All type, function and variable name
3514 prefixes changed from "i386_" to "x86_". All references updated.
3515 * nat/i386-dregs.c: Renamed as...
3516 * nat/x86-dregs.c: New file. All type, function and variable name
3517 prefixes changed from "i386_" to "x86_". All references updated.
3518
3519 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3520
3521 * varobj.c (_initialize_varobj): Move to the end of file.
3522
3523 2014-08-29 Gary Benson <gbenson@redhat.com>
3524
3525 * common/common-exceptions.h: New file.
3526 * common/common-exceptions.c: Likewise.
3527 * Makefile.in (SFILES): Add common/common-exceptions.c.
3528 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3529 (COMMON_OBS): Add common-exceptions.o.
3530 (common-exceptions.o): New rule.
3531 * exceptions.h (common-exceptions.h): Include.
3532 (gdb_setjmp.h): Do not include.
3533 (return_reason): Moved to common-exceptions.h.
3534 (enum return_reason): Likewise.
3535 (RETURN_MASK): Likewise.
3536 (typedef return_mask): Likewise.
3537 (enum errors): Likewise.
3538 (struct gdb_exception): Likewise.
3539 (exceptions_state_mc_init): Likewise.
3540 (exceptions_state_mc_action_iter): Likewise.
3541 (exceptions_state_mc_action_iter_1): Likewise.
3542 (TRY_CATCH): Likewise.
3543 (throw_exception): Likewise.
3544 (throw_verror): Likewise.
3545 (throw_vquit): Likewise.
3546 (throw_error): Likewise.
3547 (throw_quit): Likewise.
3548 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3549 (enum catcher_action): Likewise.
3550 (struct catcher): Likewise.
3551 (current_catcher): Likewise.
3552 (catcher_list_size): Likewise.
3553 (exceptions_state_mc_init): Likewise.
3554 (catcher_pop): Likewise.
3555 (exceptions_state_mc): Likewise.
3556 (exceptions_state_mc_action_iter): Likewise.
3557 (exceptions_state_mc_action_iter_1): Likewise.
3558 (throw_exception): Likewise.
3559 (exception_messages): Likewise.
3560 (exception_messages_size): Likewise.
3561 (throw_it): Likewise.
3562 (throw_verror): Likewise.
3563 (throw_vquit): Likewise.
3564 (throw_error): Likewise.
3565 (throw_quit): Likewise.
3566 (prepare_to_throw_exception): New function.
3567
3568 2014-08-29 Gary Benson <gbenson@redhat.com>
3569
3570 * common/gdb_setjmp.h: New file.
3571 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3572 * configure.ac: Move sigsetjmp check...
3573 * common/common.m4: ...here.
3574 * configure: Regenerate.
3575 * cp-support.c (SIGJMP_BUF): Delete.
3576 (SIGSETJMP): Likewise.
3577 (SIGLONGJMP): Likewise.
3578 * exceptions.h (gdb_setjmp.h): Include.
3579 (setjmp.h): Do not include.
3580 (EXCEPTIONS_SIGJMP_BUF): Delete.
3581 (EXCEPTIONS_SIGSETJMP): Likewise.
3582 (EXCEPTIONS_SIGLONGJMP): Likewise.
3583 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3584 from gdb_setjmp.h.
3585 * exceptions.c: Likewise.
3586
3587 2014-08-29 Gary Benson <gbenson@redhat.com>
3588
3589 * cleanups.h: Moved to...
3590 * common/cleanups.h: New file.
3591 * cleanups.c: Moved to...
3592 * common/cleanups.c: New file. Include common-defs.h and
3593 cleanups.h. Do not include defs.h.
3594 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3595 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3596 (cleanups.o): New rule.
3597
3598 2014-08-29 Gary Benson <gbenson@redhat.com>
3599
3600 * common/errors.h (internal_warning): New declaration.
3601 (internal_vwarning): Likewise.
3602 * common/errors.c (internal_warning): New function.
3603 * utils.h (internal_warning): Don't declare.
3604 (internal_vwarning): Likewise.
3605 * utils.c (internal_warning): Removed.
3606
3607 2014-08-29 Gary Benson <gbenson@redhat.com>
3608
3609 * main.c (captured_main): Use warning during startup.
3610 Prefix startup warning messages with command name.
3611
3612 2014-08-29 Gary Benson <gbenson@redhat.com>
3613
3614 * main.c (captured_main): Handle usage errors with error.
3615
3616 2014-08-29 Gary Benson <gbenson@redhat.com>
3617
3618 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3619 exit pair with a call to error. Wrap the message with _().
3620
3621 2014-08-29 Gary Benson <gbenson@redhat.com>
3622
3623 * main.c (captured_main): Replace a fprintf/exit
3624 pair with a call to error. Wrap the message with _().
3625
3626 2014-08-29 Gary Benson <gbenson@redhat.com>
3627
3628 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3629 pairs with calls to error. Wrap the message with _().
3630
3631 2014-08-29 Gary Benson <gbenson@redhat.com>
3632
3633 * utils.c (vwarning): Protect calls to target_terminal_ours
3634 and wrap_here.
3635
3636 2014-08-29 Gary Benson <gbenson@redhat.com>
3637
3638 * exceptions.c (print_flush): Protect calls to
3639 target_terminal_ours and wrap_here.
3640
3641 2014-08-29 Gary Benson <gbenson@redhat.com>
3642
3643 * utils.h (filtered_printing_initialized): New declaration.
3644 * utils.c (abort_with_message): New function.
3645 (internal_vproblem): Use abort_with_message for first level
3646 recursive internal problems, and if gdb_stderr is not set up.
3647 Protect calls to target_terminal_ours, begin_line and query.
3648
3649 2014-08-28 Doug Evans <dje@google.com>
3650
3651 * symtab.c (in_prologue): Move definition to better spot.
3652 (skip_prologue_using_sal): Ditto.
3653
3654 2014-08-28 Doug Evans <dje@google.com>
3655
3656 * symtab.c (find_function_start_sal): Move definition to better spot.
3657
3658 2014-08-28 Yao Qi <yao@codesourcery.com>
3659
3660 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3661 found_stack_adjust in forward scan. Remove condition check
3662 on found_stack_adjust which is always true. Indent the code.
3663
3664 2014-08-28 Yao Qi <yao@codesourcery.com>
3665
3666 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3667 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3668 (dwarf_decode_lines): Remove argument
3669 want_line_info. Remove condition check on want_line_info.
3670 Callers update.
3671
3672 2014-08-27 Doug Evans <dje@google.com>
3673
3674 * dwarf2read.c (dwarf_record_line): Fix typo.
3675
3676 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3677
3678 * target.h (struct target_ops::to_terminal_save_ours): Remove
3679 declaration.
3680 (target_terminal_save_ours): Remove macro.
3681 * target-delegates.c: Regenerate.
3682 * inf-child.c (inf_child_target): Don't set the nonexistent
3683 field to_terminal_save_ours.
3684 * inferior.h (child_terminal_save_ours): Remove declaration.
3685 * terminal.h (gdb_save_tty_state): New declaration.
3686 * inflow.c (child_terminal_save_ours): Rename to ...
3687 (gdb_save_tty_state): ... this.
3688 * tui/tui.c: Include terminal.h.
3689 (tui_enable): Use gdb_save_tty_state instead of
3690 target_terminal_save_ours.
3691 (tui_disable): Likewise.
3692
3693 2014-08-25 Doug Evans <dje@google.com>
3694
3695 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3696 Pass NULL instead of 0 for context pointer.
3697
3698 2014-08-25 Yao Qi <yao@codesourcery.com>
3699
3700 * dwarf2read.c: Fix grammatical error.
3701
3702 2014-08-24 Yao Qi <yao@codesourcery.com>
3703
3704 * dwarf2read.c (scan_partial_symbols): Update comments.
3705 Rename argument 'need_pc' with 'set_addrmap'.
3706 (add_partial_namespace): Rename argument 'need_pc' with
3707 'set_addrmap'.
3708 (add_partial_module): Likewise.
3709 (add_partial_subprogram): Likewise. Update comments.
3710 (dwarf2_name): Fix typo.
3711
3712 2014-08-22 Doug Evans <dje@google.com>
3713
3714 PR 17276
3715 * dwarf2read.c (dwarf_record_line_p): New function.
3716 (dwarf_decode_lines_1): Ignore subsequent line number entries
3717 for the same line if any entry had a non-zero discriminator.
3718
3719 2014-08-22 Doug Evans <dje@google.com>
3720
3721 * buildsym.h (record_line_ftype): New typedef.
3722 (record_line): Use it.
3723 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3724 (dwarf_decode_lines_1): Call them.
3725
3726 2014-08-22 Yao Qi <yao@codesourcery.com>
3727
3728 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3729 (ctf_end): Remove code.
3730
3731 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3732
3733 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3734 (linux_make_corefile_notes): call update_thread_list, protected against
3735 exceptions.
3736
3737 2014-08-21 Pedro Alves <palves@redhat.com>
3738
3739 * infcmd.c (attach_command): Remove comment.
3740
3741 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3742
3743 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3744 unsigned LONGEST to ULONGEST.
3745
3746 2014-08-20 Pedro Alves <palves@redhat.com>
3747
3748 * Makefile.in (check-read1): New rule.
3749
3750 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3751
3752 * value.c (value_from_contents_and_address): Strip resolved_type's
3753 typedef layers before checking its TYPE_DATA_LOCATION.
3754
3755 2014-08-20 Pedro Alves <palves@redhat.com>
3756
3757 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3758
3759 2014-08-20 Yao Qi <yao@codesourcery.com>
3760
3761 * amd64-tdep.c (amd64_classify): Add a blank line after the
3762 example. Move "*/" to a new line.
3763 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3764 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3765 * dwarf2read.c (psymtab_include_file_name): Likewise.
3766
3767 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3768 Pedro Alves <palves@redhat.com>
3769
3770 PR symtab/14604
3771 PR symtab/14605
3772 * ada-lang.c (coerce_unspec_val_to_type): Use
3773 value_contents_copy_raw.
3774 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3775 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3776 * cp-valprint.c (cp_print_value_fields): Let the common printing
3777 code handle optimized out values.
3778 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3779 * d-valprint.c (dynamic_array_type): Use
3780 value_bits_any_optimized_out.
3781 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3782 check_any_valid fields.
3783 (check_pieced_value_bits): Delete and inline ...
3784 (check_pieced_synthetic_pointer): ... here.
3785 (check_pieced_value_validity): Delete.
3786 (check_pieced_value_invalid): Delete.
3787 (pieced_value_funcs): Remove check_validity and check_any_valid
3788 fields.
3789 (read_pieced_value): Use mark_value_bits_optimized_out.
3790 (write_pieced_value): Switch to use
3791 mark_value_bytes_optimized_out.
3792 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3793 of assuming the whole value is optimized out.
3794 * findvar.c (read_frame_register_value): Remove special handling
3795 of optimized out registers.
3796 (value_from_register): Use mark_value_bytes_optimized_out.
3797 * frame-unwind.c (frame_unwind_got_optimized): Use
3798 mark_value_bytes_optimized_out.
3799 * jv-valprint.c (java_value_print): Adjust.
3800 (java_print_value_fields): Let the common printing code handle
3801 optimized out values.
3802 * mips-tdep.c (mips_print_register): Remove special handling of
3803 optimized out registers.
3804 * opencl-lang.c (lval_func_check_validity): Delete.
3805 (lval_func_check_any_valid): Delete.
3806 (opencl_value_funcs): Remove check_validity and check_any_valid
3807 fields.
3808 * p-valprint.c (pascal_object_print_value_fields): Let the common
3809 printing code handle optimized out values.
3810 * stack.c (read_frame_arg): Remove special handling of optimized
3811 out values. Fetch both VAL and ENTRYVAL before comparing
3812 contents. Adjust to value_available_contents_eq rename.
3813 * valprint.c (valprint_check_validity)
3814 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3815 (val_print_array_elements): Adjust.
3816 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3817 (value_bits_any_optimized_out): New function.
3818 (value_entirely_covered_by_range_vector): New function, factored
3819 out from value_entirely_unavailable.
3820 (value_entirely_unavailable): Reimplement.
3821 (value_entirely_optimized_out): New function.
3822 (insert_into_bit_range_vector): New function, factored out from
3823 mark_value_bits_unavailable.
3824 (mark_value_bits_unavailable): Reimplement.
3825 (struct ranges_and_idx): New struct.
3826 (find_first_range_overlap_and_match): New function, factored out
3827 from value_available_contents_bits_eq.
3828 (value_available_contents_bits_eq): Rename to ...
3829 (value_contents_bits_eq): ... this. Check both unavailable
3830 contents and optimized out contents.
3831 (value_available_contents_eq): Rename to ...
3832 (value_contents_eq): ... this.
3833 (allocate_value_lazy): Remove reference to the old optimized_out
3834 boolean.
3835 (allocate_optimized_out_value): Use
3836 mark_value_bytes_optimized_out.
3837 (require_not_optimized_out): Adjust to check whether the
3838 optimized_out vec is empty.
3839 (ranges_copy_adjusted): New function, factored out from
3840 value_contents_copy_raw.
3841 (value_contents_copy_raw): Also copy the optimized out ranges.
3842 Assert the destination ranges aren't optimized out.
3843 (value_contents_copy): Update comment, remove call to
3844 require_not_optimized_out.
3845 (value_contents_equal): Adjust to check whether the optimized_out
3846 vec is empty.
3847 (set_value_optimized_out, value_optimized_out_const): Delete.
3848 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3849 New functions.
3850 (value_entirely_optimized_out, value_bits_valid): Delete.
3851 (value_copy): Take a VEC copy of the 'optimized_out' field.
3852 (value_primitive_field): Remove special handling of optimized out.
3853 (value_fetch_lazy): Assert that lazy values have no unavailable
3854 regions. Use value_bits_any_optimized_out. Remove some special
3855 handling for optimized out values.
3856 * value.h: Add intro comment about <optimized out> and
3857 <unavailable>.
3858 (struct lval_funcs): Remove check_validity and check_any_valid
3859 fields.
3860 (set_value_optimized_out, value_optimized_out_const): Remove.
3861 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3862 New declarations.
3863 (value_bits_any_optimized_out): New declaration.
3864 (value_bits_valid): Delete declaration.
3865 (value_available_contents_eq): Rename to ...
3866 (value_contents_eq): ... this, and extend comments.
3867
3868 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3869
3870 Fix -fsanitize=address on unreadable inferior strings.
3871 * valprint.c (val_print_string): Fix access before BUFFER.
3872
3873 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3874
3875 * target.c (target_struct_size): Remove.
3876 (target_struct_allocsize): Remove.
3877 (DEFAULT_ALLOCSIZE): Remove.
3878 (target_ops_p): New typedef.
3879 (DEF_VEC_P (target_ops_p)): New vector type.
3880 (target_structs): Change type to VEC (target_ops_p).
3881 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3882 (find_default_run_target): Rewrite for loop following changes to
3883 target_structs.
3884
3885 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3886
3887 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3888 Adjust code accordingly. Adjust function description comment.
3889
3890 2014-08-19 Yao Qi <yao@codesourcery.com>
3891
3892 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3893 types.
3894
3895 2014-08-19 Alan Modra <amodra@gmail.com>
3896
3897 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3898 * config.in: Regenerate.
3899 * configure: Regenerate.
3900
3901 2014-08-19 Tom Tromey <tromey@redhat.com>
3902 Gary Benson <gbenson@redhat.com>
3903
3904 * common/common-debug.h: New file.
3905 * common/common-debug.c: Likewise.
3906 * debug.c: Likewise.
3907 * Makefile.in (SFILES): Add common/common-debug.c.
3908 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3909 (COMMON_OBS): Add common-debug.o and debug.o.
3910 (common-debug.o): New rule.
3911 * common/common-defs.h: Include common-debug.h.
3912 * common/agent.c (debug_agent_printf): New function.
3913 (DEBUG_AGENT): Redefine.
3914 * nat/i386-dregs.c (debug_printf): Undefine.
3915
3916 2014-08-19 Gary Benson <gbenson@redhat.com>
3917
3918 * common/common-defs.h: Include print-utils.h.
3919 * utils.h: Do not include print-utils.h.
3920
3921 2014-08-19 Tom Tromey <tromey@redhat.com>
3922 Gary Benson <gbenson@redhat.com>
3923
3924 * common/common-types.h: New file.
3925 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3926 * common/common-defs.h: Include common-types.h.
3927 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3928 (ULONGEST): Remove.
3929
3930 2014-08-19 Tom Tromey <tromey@redhat.com>
3931 Gary Benson <gbenson@redhat.com>
3932
3933 * common/errors.h: New file.
3934 * common/errors.c: Likewise.
3935 * Makefile.in (SFILES): Add common/errors.c.
3936 (HFILES_NO_SRCDIR): Add common/errors.h.
3937 (COMMON_OBS): Add errors.o.
3938 (errors.o): New rule.
3939 * common/common-defs.h: Include errors.h.
3940 * utils.h (perror_with_name, error, verror, warning, vwarning):
3941 Don't declare.
3942 * common/common-utils.h: (malloc_failure, internal_error):
3943 Likewise.
3944
3945 2014-08-19 Gary Benson <gbenson@redhat.com>
3946
3947 * utils.c (internal_vproblem): Always print the message.
3948
3949 2014-08-18 Doug Evans <dje@google.com>
3950
3951 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3952
3953 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3954
3955 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3956 Return 0 if TYPE is dynamic.
3957 (print_range): Add handling of dynamic ranges.
3958
3959 2014-08-18 Keven Boell <keven.boell@intel.com>
3960 Joel Brobecker <brobecker@adacore.com>
3961
3962 * gdbtypes.h (struct main_type): Add field "data_location".
3963 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3964 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3965 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3966 a dynamic data location.
3967 (resolve_dynamic_type): Add DW_AT_data_location handling.
3968 (copy_recursive, copy_type): Copy the data_location information
3969 when present.
3970 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3971 * value.c (value_from_contents_and_address): Add
3972 DW_AT_data_location handling.
3973
3974 2014-08-18 Keven Boell <keven.boell@intel.com>
3975 Joel Brobecker <brobecker@adacore.com>
3976
3977 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3978 field "get_object_address".
3979 * dwarf2expr.c (execute_stack_op): Add handling for
3980 DW_OP_push_object_address.
3981 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3982 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3983 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3984 (dwarf_expr_get_obj_addr): New function.
3985 (dwarf_expr_ctx_funcs): Add get_object_address field.
3986 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3987 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3988 (dwarf2_evaluate_property): Add parameter "address". Use it.
3989 (needs_get_obj_addr): New function.
3990 (needs_frame_ctx_funcs): Add get_object_address field.
3991 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3992 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3993 (resolve_dynamic_array): Likewise.
3994
3995 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3996
3997 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3998 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3999 fixed value for records and unions for which some GNAT encodings
4000 are present.
4001
4002 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4003
4004 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4005 rewrite to avoid "else if" and "else" constructs. Should be
4006 a no-op in practice.
4007
4008 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4009
4010 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4011 of lexical block.
4012
4013 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4014
4015 PR c++/17132
4016 * eval.c: Update all calls to find_overload_match.
4017 * valarith.c: Likewise.
4018 (value_user_defined_cpp_op, value_user_defined_op): New
4019 argument NOSIDE. Update all callers.
4020 * valops.c (find_overload_match): New argument NOSIDE.
4021 * value.h (find_overload_match): Update signature.
4022
4023 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4024
4025 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4026 'items' methods instead of 'iteritems' method on dictionaries.
4027
4028 2014-08-15 Doug Evans <dje@google.com>
4029
4030 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4031 closer to use.
4032
4033 2014-08-15 Doug Evans <dje@google.com>
4034
4035 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4036
4037 2014-08-15 Doug Evans <dje@google.com>
4038
4039 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4040
4041 2014-08-15 Doug Evans <dje@google.com>
4042
4043 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4044 unused.
4045
4046 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4047
4048 * dcache.h: Include target.h, to avoid compile time warnings.
4049
4050 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4051
4052 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4053 frame_info" partial declaration.
4054 * gdbarch.h: Regenerate.
4055
4056 2014-08-15 Yao Qi <yao@codesourcery.com>
4057
4058 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4059 Add parameter 'decode_for_pst_p'. Callers update.
4060
4061 2014-08-13 Yao Qi <yao@codesourcery.com>
4062
4063 PR build/17104
4064 * configure.ac: Use local variable 'pos'.
4065 * configure: Regenerated.
4066
4067 2014-08-11 Doug Evans <dje@google.com>
4068
4069 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4070 message, it is redundant with "Reading symbols from ..." message.
4071
4072 2014-08-10 Doug Evans <xdje42@gmail.com>
4073
4074 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4075
4076 2014-08-09 Yao Qi <yao@codesourcery.com>
4077
4078 PR remote/9053
4079 * remote.c (remote_xfer_partial): Remove dead code.
4080
4081 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4082
4083 * ia64-linux-tdep.c: Include "regset.h".
4084 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4085 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4086 (ia64_linux_supply_fpregset): New function.
4087 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4088 (ia64_linux_regset_from_core_section): New function.
4089 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4090 method.
4091
4092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4093
4094 * m68klinux-tdep.c: Include "regset.h".
4095 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4096 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4097 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4098 (m68k_linux_regset_from_core_section): New function.
4099 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4100 method.
4101
4102 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103
4104 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4105 function. Move logic to...
4106 (tilegx_linux_regmap): ... this new register map.
4107 (tilegx_linux_regset): Refer to register map, replace supply
4108 method by regcache_supply_regset, and add collect method.
4109 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4110 TILEGX_FIRST_EASY_REGNUM.
4111
4112 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4113
4114 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4115 that calls regcache_supply_regset and handles the EPC register
4116 separately. Move main logic to...
4117 (score7_linux_gregmap): ... this new register map.
4118 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4119 (score7_linux_gregset): Refer to register map. Add collect method.
4120 (score7_linux_regset_from_core_section): Replace
4121 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4122 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4123 (struct regset): Delete unused forward declaraction.
4124 (struct pt_regs): Delete structure definition.
4125 (elf_gregset_t): Delete typedef.
4126
4127 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4128
4129 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4130 (nios2_core_regset): Add collect method.
4131
4132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4133
4134 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4135 platform-independent and don't write to read-only input buffer.
4136 (m32r_linux_collect_gregset): New function.
4137 (m32r_linux_gregset): Add collect method.
4138
4139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4140
4141 * hppa-linux-tdep.c (greg_map): Rename to...
4142 (hppa_linux_gregmap): ... this. Also convert to
4143 regcache_map_entry format.
4144 (hppa_linux_supply_regset): Delete function.
4145 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4146 (hppa_linux_fpregmap): ... this new register map.
4147 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4148 register map, replace supply method by regcache_supply_regset, and
4149 add collect method regcache_collect_regset.
4150
4151 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4152
4153 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4154 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4155 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4156 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4157 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4158 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4159 (frv_linux_supply_gregset): Replace main logic by call to
4160 regcache_supply_regset, but keep clearing gr32-gr63.
4161 (frv_linux_supply_fpregset): Delete function.
4162 (frv_linux_gregset): Refer to appropriate register map and add
4163 regcache_collect_regset as the collect method.
4164 (frv_linux_fpregset): Likewise. Also exchange the supply method
4165 by regcache_supply_regset.
4166
4167 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4168
4169 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4170 by call to alpha_supply_int_regs.
4171 (alpha_linux_collect_gregset): New function.
4172 (alpha_linux_supply_fpregset): Replace logic by call to
4173 alpha_supply_fp_regs.
4174 (alpha_linux_collect_fpregset): New function.
4175 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4176
4177 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4178
4179 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4180 by call to regcache_collect_regset.
4181 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4182 instead of aarch64_linux_supply_gregset/_fpregset.
4183 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4184 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4185 header file instead.
4186 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4187 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4188 functions. Move logic to ...
4189 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4190 register maps.
4191 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4192 refer to new register maps, replace *_regset_from_core by
4193 regcache_supply_regset, and also use regcache_collect_regset.
4194 * aarch64-linux-tdep.h: Include "regset.h".
4195 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4196 Delete prototypes.
4197 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4198 macros, moved from C source file.
4199 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4200 variable declarations.
4201
4202 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4203
4204 * s390-linux-nat.c: Include "regset.h".
4205 (regmap_gregset): Delete macro.
4206 (s390_64_regmap_gregset): New register map for
4207 regcache_supply/_collect_regset.
4208 (s390_64_gregset): New regset.
4209 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4210 (regmap_fpregset): Delete macro.
4211 (s390_native_supply, s390_native_collect): Delete functions.
4212 (supply_gregset, fill_gregset): Replace s390-specific regmap
4213 handling by a call to regcache_supply/_collect_regset.
4214 (supply_fpregset, fill_fpregset): Call regcache_supply/
4215 _collect_regset instead of s390_native_supply/_collect.
4216 (fetch_regset, store_regset): Likewise. Also change the last
4217 parameter to a regset instead of a regmap.
4218 (s390_linux_fetch_inferior_registers)
4219 (390_linux_store_inferior_registers): Adjust last parameter in
4220 calls to fetch_regset and store_regset.
4221 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4222 (s390_gregmap): ... this. Also make static const and convert to
4223 regcache_map_entry format.
4224 (s390x_regmap_gregset): Delete.
4225 (s390_regmap_fpregset): Rename to...
4226 (s390_fpregmap): ... this. Make static const and convert to
4227 regcache_map_entry format.
4228 (s390_regmap_upper, s390_regmap_last_break)
4229 (s390x_regmap_last_break, s390_regmap_system_call)
4230 (s390_regmap_tdb): Likewise.
4231 (s390_supply_regset, s390_collect_regset): Remove functions.
4232 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4233 s390_supply_regset.
4234 (s390_gregset, s390_fpregset, s390_upper_regset)
4235 (s390_last_break_regset, s390x_last_break_regset)
4236 (s390_system_call_regset, s390_tdb_regset): Make global and
4237 replace s390_supply/_collect_regset by regcache_supply/
4238 _collect_regset.
4239 (s390x_gregset): Delete.
4240 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4241 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4242 (s390_regmap_fpregset, s390_regmap_last_break)
4243 (s390x_regmap_last_break, s390_regmap_system_call)
4244 (s390_regmap_tdb): Delete global variable declarations.
4245 (s390_gregset, s390_fpregset, s390_last_break_regset)
4246 (s390x_last_break_regset, s390_system_call_regset)
4247 (s390_tdb_regset): New global variable declarations.
4248
4249 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4250
4251 * regcache.c: Include "regset.h".
4252 (regcache_transfer_regset): New local function.
4253 (regcache_supply_regset, regcache_collect_regset): New functions.
4254 * regcache.h (struct regcache_map_entry): New structure.
4255 (REGCACHE_MAP_SKIP): New enum value.
4256 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4257
4258 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4261 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4262 (ppc_linux_collect_gregset ): Likewise.
4263 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4264 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4265 (ppc_collect_vrregset): Likewise.
4266 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4267 Likewise.
4268
4269 2014-08-07 Yao Qi <yao@codesourcery.com>
4270
4271 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4272 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4273 * remote.c (remote_read_bytes): Likewise.
4274
4275 2014-08-07 Yao Qi <yao@codesourcery.com>
4276
4277 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4278
4279 2014-08-07 Yao Qi <yao@codesourcery.com>
4280
4281 PR remote/17230
4282 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4283 TARGET_XFER_OK instead of 0.
4284
4285 2014-08-07 Gary Benson <gbenson@redhat.com>
4286
4287 * common/common-defs.h: Include errno.h.
4288 * defs.h: Do not include errno.h.
4289 * ada-typeprint.c: Likewise.
4290 * c-typeprint.c: Likewise.
4291 * core-regset.c: Likewise.
4292 * corefile.c: Likewise.
4293 * corelow.c: Likewise.
4294 * event-loop.c: Likewise.
4295 * f-typeprint.c: Likewise.
4296 * gnu-nat.c: Likewise.
4297 * go32-nat.c: Likewise.
4298 * i386gnu-nat.c: Likewise.
4299 * m2-typeprint.c: Likewise.
4300 * nat/linux-btrace.c: Likewise.
4301 * p-typeprint.c: Likewise.
4302 * procfs.c: Likewise.
4303 * remote-sim.c: Likewise.
4304 * rs6000-nat.c: Likewise.
4305 * target.c: Likewise.
4306 * typeprint.c: Likewise.
4307 * ui-file.c: Likewise.
4308 * valops.c: Likewise.
4309 * valprint.c: Likewise.
4310
4311 2014-08-07 Gary Benson <gbenson@redhat.com>
4312
4313 * common/common-defs.h: Include string.h.
4314 * aarch64-tdep.c: Do not include string.h.
4315 * ada-exp.y: Likewise.
4316 * ada-lang.c: Likewise.
4317 * ada-lex.l: Likewise.
4318 * ada-typeprint.c: Likewise.
4319 * ada-valprint.c: Likewise.
4320 * aix-thread.c: Likewise.
4321 * alpha-linux-tdep.c: Likewise.
4322 * alpha-mdebug-tdep.c: Likewise.
4323 * alpha-nat.c: Likewise.
4324 * alpha-osf1-tdep.c: Likewise.
4325 * alpha-tdep.c: Likewise.
4326 * alphanbsd-tdep.c: Likewise.
4327 * amd64-dicos-tdep.c: Likewise.
4328 * amd64-linux-tdep.c: Likewise.
4329 * amd64-nat.c: Likewise.
4330 * amd64-sol2-tdep.c: Likewise.
4331 * amd64fbsd-tdep.c: Likewise.
4332 * amd64obsd-tdep.c: Likewise.
4333 * arch-utils.c: Likewise.
4334 * arm-linux-nat.c: Likewise.
4335 * arm-linux-tdep.c: Likewise.
4336 * arm-tdep.c: Likewise.
4337 * arm-wince-tdep.c: Likewise.
4338 * armbsd-tdep.c: Likewise.
4339 * armnbsd-nat.c: Likewise.
4340 * armnbsd-tdep.c: Likewise.
4341 * armobsd-tdep.c: Likewise.
4342 * avr-tdep.c: Likewise.
4343 * ax-gdb.c: Likewise.
4344 * ax-general.c: Likewise.
4345 * bcache.c: Likewise.
4346 * bfin-tdep.c: Likewise.
4347 * breakpoint.c: Likewise.
4348 * build-id.c: Likewise.
4349 * buildsym.c: Likewise.
4350 * c-exp.y: Likewise.
4351 * c-lang.c: Likewise.
4352 * c-typeprint.c: Likewise.
4353 * c-valprint.c: Likewise.
4354 * charset.c: Likewise.
4355 * cli-out.c: Likewise.
4356 * cli/cli-cmds.c: Likewise.
4357 * cli/cli-decode.c: Likewise.
4358 * cli/cli-dump.c: Likewise.
4359 * cli/cli-interp.c: Likewise.
4360 * cli/cli-logging.c: Likewise.
4361 * cli/cli-script.c: Likewise.
4362 * cli/cli-setshow.c: Likewise.
4363 * cli/cli-utils.c: Likewise.
4364 * coffread.c: Likewise.
4365 * common/agent.c: Likewise.
4366 * common/buffer.c: Likewise.
4367 * common/buffer.h: Likewise.
4368 * common/common-utils.c: Likewise.
4369 * common/filestuff.c: Likewise.
4370 * common/filestuff.c: Likewise.
4371 * common/format.c: Likewise.
4372 * common/print-utils.c: Likewise.
4373 * common/rsp-low.c: Likewise.
4374 * common/signals.c: Likewise.
4375 * common/vec.h: Likewise.
4376 * common/xml-utils.c: Likewise.
4377 * core-regset.c: Likewise.
4378 * corefile.c: Likewise.
4379 * corelow.c: Likewise.
4380 * cp-abi.c: Likewise.
4381 * cp-name-parser.y: Likewise.
4382 * cp-support.c: Likewise.
4383 * cp-valprint.c: Likewise.
4384 * cris-tdep.c: Likewise.
4385 * d-exp.y: Likewise.
4386 * darwin-nat.c: Likewise.
4387 * dbxread.c: Likewise.
4388 * dcache.c: Likewise.
4389 * demangle.c: Likewise.
4390 * dicos-tdep.c: Likewise.
4391 * disasm.c: Likewise.
4392 * doublest.c: Likewise.
4393 * dsrec.c: Likewise.
4394 * dummy-frame.c: Likewise.
4395 * dwarf2-frame.c: Likewise.
4396 * dwarf2loc.c: Likewise.
4397 * dwarf2read.c: Likewise.
4398 * elfread.c: Likewise.
4399 * environ.c: Likewise.
4400 * eval.c: Likewise.
4401 * event-loop.c: Likewise.
4402 * exceptions.c: Likewise.
4403 * exec.c: Likewise.
4404 * expprint.c: Likewise.
4405 * f-exp.y: Likewise.
4406 * f-lang.c: Likewise.
4407 * f-typeprint.c: Likewise.
4408 * f-valprint.c: Likewise.
4409 * fbsd-nat.c: Likewise.
4410 * findcmd.c: Likewise.
4411 * findvar.c: Likewise.
4412 * fork-child.c: Likewise.
4413 * frame.c: Likewise.
4414 * frv-linux-tdep.c: Likewise.
4415 * frv-tdep.c: Likewise.
4416 * gdb.c: Likewise.
4417 * gdb_bfd.c: Likewise.
4418 * gdbarch.c: Likewise.
4419 * gdbarch.sh: Likewise.
4420 * gdbtypes.c: Likewise.
4421 * gnu-nat.c: Likewise.
4422 * gnu-v2-abi.c: Likewise.
4423 * gnu-v3-abi.c: Likewise.
4424 * go-exp.y: Likewise.
4425 * go-lang.c: Likewise.
4426 * go32-nat.c: Likewise.
4427 * guile/guile.c: Likewise.
4428 * guile/scm-auto-load.c: Likewise.
4429 * hppa-hpux-tdep.c: Likewise.
4430 * hppa-linux-nat.c: Likewise.
4431 * hppanbsd-tdep.c: Likewise.
4432 * hppaobsd-tdep.c: Likewise.
4433 * i386-cygwin-tdep.c: Likewise.
4434 * i386-dicos-tdep.c: Likewise.
4435 * i386-linux-tdep.c: Likewise.
4436 * i386-nto-tdep.c: Likewise.
4437 * i386-sol2-tdep.c: Likewise.
4438 * i386-tdep.c: Likewise.
4439 * i386bsd-tdep.c: Likewise.
4440 * i386gnu-nat.c: Likewise.
4441 * i386nbsd-tdep.c: Likewise.
4442 * i386obsd-tdep.c: Likewise.
4443 * i387-tdep.c: Likewise.
4444 * ia64-libunwind-tdep.c: Likewise.
4445 * ia64-linux-nat.c: Likewise.
4446 * inf-child.c: Likewise.
4447 * inf-ptrace.c: Likewise.
4448 * inf-ttrace.c: Likewise.
4449 * infcall.c: Likewise.
4450 * infcmd.c: Likewise.
4451 * inflow.c: Likewise.
4452 * infrun.c: Likewise.
4453 * interps.c: Likewise.
4454 * iq2000-tdep.c: Likewise.
4455 * irix5-nat.c: Likewise.
4456 * jv-exp.y: Likewise.
4457 * jv-lang.c: Likewise.
4458 * jv-typeprint.c: Likewise.
4459 * jv-valprint.c: Likewise.
4460 * language.c: Likewise.
4461 * linux-fork.c: Likewise.
4462 * linux-nat.c: Likewise.
4463 * lm32-tdep.c: Likewise.
4464 * m2-exp.y: Likewise.
4465 * m2-typeprint.c: Likewise.
4466 * m32c-tdep.c: Likewise.
4467 * m32r-linux-nat.c: Likewise.
4468 * m32r-linux-tdep.c: Likewise.
4469 * m32r-rom.c: Likewise.
4470 * m32r-tdep.c: Likewise.
4471 * m68hc11-tdep.c: Likewise.
4472 * m68k-tdep.c: Likewise.
4473 * m68kbsd-tdep.c: Likewise.
4474 * m68klinux-nat.c: Likewise.
4475 * m68klinux-tdep.c: Likewise.
4476 * m88k-tdep.c: Likewise.
4477 * machoread.c: Likewise.
4478 * macrocmd.c: Likewise.
4479 * main.c: Likewise.
4480 * mdebugread.c: Likewise.
4481 * mem-break.c: Likewise.
4482 * memattr.c: Likewise.
4483 * memory-map.c: Likewise.
4484 * mep-tdep.c: Likewise.
4485 * mi/mi-cmd-break.c: Likewise.
4486 * mi/mi-cmd-disas.c: Likewise.
4487 * mi/mi-cmd-env.c: Likewise.
4488 * mi/mi-cmd-stack.c: Likewise.
4489 * mi/mi-cmd-var.c: Likewise.
4490 * mi/mi-cmds.c: Likewise.
4491 * mi/mi-console.c: Likewise.
4492 * mi/mi-getopt.c: Likewise.
4493 * mi/mi-interp.c: Likewise.
4494 * mi/mi-main.c: Likewise.
4495 * mi/mi-parse.c: Likewise.
4496 * microblaze-rom.c: Likewise.
4497 * microblaze-tdep.c: Likewise.
4498 * mingw-hdep.c: Likewise.
4499 * minidebug.c: Likewise.
4500 * minsyms.c: Likewise.
4501 * mips-irix-tdep.c: Likewise.
4502 * mips-linux-tdep.c: Likewise.
4503 * mips-tdep.c: Likewise.
4504 * mips64obsd-tdep.c: Likewise.
4505 * mipsnbsd-tdep.c: Likewise.
4506 * mipsread.c: Likewise.
4507 * mn10300-linux-tdep.c: Likewise.
4508 * mn10300-tdep.c: Likewise.
4509 * monitor.c: Likewise.
4510 * moxie-tdep.c: Likewise.
4511 * mt-tdep.c: Likewise.
4512 * nat/linux-btrace.c: Likewise.
4513 * nat/linux-osdata.c: Likewise.
4514 * nat/linux-procfs.c: Likewise.
4515 * nat/linux-ptrace.c: Likewise.
4516 * nat/linux-waitpid.c: Likewise.
4517 * nbsd-tdep.c: Likewise.
4518 * nios2-linux-tdep.c: Likewise.
4519 * nto-procfs.c: Likewise.
4520 * nto-tdep.c: Likewise.
4521 * objc-lang.c: Likewise.
4522 * objfiles.c: Likewise.
4523 * opencl-lang.c: Likewise.
4524 * osabi.c: Likewise.
4525 * osdata.c: Likewise.
4526 * p-exp.y: Likewise.
4527 * p-lang.c: Likewise.
4528 * p-typeprint.c: Likewise.
4529 * parse.c: Likewise.
4530 * posix-hdep.c: Likewise.
4531 * ppc-linux-nat.c: Likewise.
4532 * ppc-sysv-tdep.c: Likewise.
4533 * ppcfbsd-tdep.c: Likewise.
4534 * ppcnbsd-tdep.c: Likewise.
4535 * ppcobsd-tdep.c: Likewise.
4536 * printcmd.c: Likewise.
4537 * procfs.c: Likewise.
4538 * prologue-value.c: Likewise.
4539 * python/py-auto-load.c: Likewise.
4540 * python/py-gdb-readline.c: Likewise.
4541 * ravenscar-thread.c: Likewise.
4542 * regcache.c: Likewise.
4543 * registry.c: Likewise.
4544 * remote-fileio.c: Likewise.
4545 * remote-m32r-sdi.c: Likewise.
4546 * remote-mips.c: Likewise.
4547 * remote-notif.c: Likewise.
4548 * remote-sim.c: Likewise.
4549 * remote.c: Likewise.
4550 * reverse.c: Likewise.
4551 * rs6000-aix-tdep.c: Likewise.
4552 * ser-base.c: Likewise.
4553 * ser-go32.c: Likewise.
4554 * ser-mingw.c: Likewise.
4555 * ser-pipe.c: Likewise.
4556 * ser-tcp.c: Likewise.
4557 * ser-unix.c: Likewise.
4558 * serial.c: Likewise.
4559 * sh-tdep.c: Likewise.
4560 * sh64-tdep.c: Likewise.
4561 * shnbsd-tdep.c: Likewise.
4562 * skip.c: Likewise.
4563 * sol-thread.c: Likewise.
4564 * solib-dsbt.c: Likewise.
4565 * solib-frv.c: Likewise.
4566 * solib-osf.c: Likewise.
4567 * solib-som.c: Likewise.
4568 * solib-spu.c: Likewise.
4569 * solib-target.c: Likewise.
4570 * solib.c: Likewise.
4571 * somread.c: Likewise.
4572 * source.c: Likewise.
4573 * sparc-nat.c: Likewise.
4574 * sparc-sol2-tdep.c: Likewise.
4575 * sparc-tdep.c: Likewise.
4576 * sparc64-tdep.c: Likewise.
4577 * sparc64fbsd-tdep.c: Likewise.
4578 * sparc64nbsd-tdep.c: Likewise.
4579 * sparcnbsd-tdep.c: Likewise.
4580 * spu-linux-nat.c: Likewise.
4581 * spu-multiarch.c: Likewise.
4582 * spu-tdep.c: Likewise.
4583 * stabsread.c: Likewise.
4584 * stack.c: Likewise.
4585 * std-regs.c: Likewise.
4586 * symfile.c: Likewise.
4587 * symmisc.c: Likewise.
4588 * symtab.c: Likewise.
4589 * target.c: Likewise.
4590 * thread.c: Likewise.
4591 * tilegx-linux-nat.c: Likewise.
4592 * tilegx-tdep.c: Likewise.
4593 * top.c: Likewise.
4594 * tracepoint.c: Likewise.
4595 * tui/tui-command.c: Likewise.
4596 * tui/tui-data.c: Likewise.
4597 * tui/tui-disasm.c: Likewise.
4598 * tui/tui-file.c: Likewise.
4599 * tui/tui-layout.c: Likewise.
4600 * tui/tui-out.c: Likewise.
4601 * tui/tui-regs.c: Likewise.
4602 * tui/tui-source.c: Likewise.
4603 * tui/tui-stack.c: Likewise.
4604 * tui/tui-win.c: Likewise.
4605 * tui/tui-windata.c: Likewise.
4606 * tui/tui-winsource.c: Likewise.
4607 * typeprint.c: Likewise.
4608 * ui-file.c: Likewise.
4609 * ui-out.c: Likewise.
4610 * user-regs.c: Likewise.
4611 * utils.c: Likewise.
4612 * v850-tdep.c: Likewise.
4613 * valarith.c: Likewise.
4614 * valops.c: Likewise.
4615 * valprint.c: Likewise.
4616 * value.c: Likewise.
4617 * varobj.c: Likewise.
4618 * vax-tdep.c: Likewise.
4619 * vaxnbsd-tdep.c: Likewise.
4620 * vaxobsd-tdep.c: Likewise.
4621 * windows-nat.c: Likewise.
4622 * xcoffread.c: Likewise.
4623 * xml-support.c: Likewise.
4624 * xstormy16-tdep.c: Likewise.
4625 * xtensa-linux-nat.c: Likewise.
4626
4627 2014-08-07 Gary Benson <gbenson@redhat.com>
4628
4629 * common/common-defs.h: Include gdb_assert.h.
4630 * aarch64-tdep.c: Do not include gdb_assert.h.
4631 * addrmap.c: Likewise.
4632 * aix-thread.c: Likewise.
4633 * alpha-linux-tdep.c: Likewise.
4634 * alpha-mdebug-tdep.c: Likewise.
4635 * alphanbsd-tdep.c: Likewise.
4636 * amd64-nat.c: Likewise.
4637 * amd64-tdep.c: Likewise.
4638 * amd64bsd-nat.c: Likewise.
4639 * amd64fbsd-nat.c: Likewise.
4640 * amd64fbsd-tdep.c: Likewise.
4641 * amd64nbsd-nat.c: Likewise.
4642 * amd64nbsd-tdep.c: Likewise.
4643 * amd64obsd-nat.c: Likewise.
4644 * amd64obsd-tdep.c: Likewise.
4645 * arch-utils.c: Likewise.
4646 * arm-tdep.c: Likewise.
4647 * armbsd-tdep.c: Likewise.
4648 * auxv.c: Likewise.
4649 * bcache.c: Likewise.
4650 * bfin-tdep.c: Likewise.
4651 * blockframe.c: Likewise.
4652 * breakpoint.c: Likewise.
4653 * bsd-kvm.c: Likewise.
4654 * bsd-uthread.c: Likewise.
4655 * buildsym.c: Likewise.
4656 * c-exp.y: Likewise.
4657 * c-lang.c: Likewise.
4658 * charset.c: Likewise.
4659 * cleanups.c: Likewise.
4660 * cli-out.c: Likewise.
4661 * cli/cli-decode.c: Likewise.
4662 * cli/cli-dump.c: Likewise.
4663 * cli/cli-logging.c: Likewise.
4664 * cli/cli-script.c: Likewise.
4665 * cli/cli-utils.c: Likewise.
4666 * coffread.c: Likewise.
4667 * common/common-utils.c: Likewise.
4668 * common/queue.h: Likewise.
4669 * common/signals.c: Likewise.
4670 * common/vec.h: Likewise.
4671 * complaints.c: Likewise.
4672 * completer.c: Likewise.
4673 * corelow.c: Likewise.
4674 * cp-abi.c: Likewise.
4675 * cp-name-parser.y: Likewise.
4676 * cp-namespace.c: Likewise.
4677 * cp-support.c: Likewise.
4678 * cris-tdep.c: Likewise.
4679 * dbxread.c: Likewise.
4680 * dictionary.c: Likewise.
4681 * doublest.c: Likewise.
4682 * dsrec.c: Likewise.
4683 * dummy-frame.c: Likewise.
4684 * dwarf2-frame-tailcall.c: Likewise.
4685 * dwarf2-frame.c: Likewise.
4686 * dwarf2expr.c: Likewise.
4687 * dwarf2loc.c: Likewise.
4688 * dwarf2read.c: Likewise.
4689 * eval.c: Likewise.
4690 * event-loop.c: Likewise.
4691 * exceptions.c: Likewise.
4692 * expprint.c: Likewise.
4693 * f-valprint.c: Likewise.
4694 * fbsd-nat.c: Likewise.
4695 * findvar.c: Likewise.
4696 * frame-unwind.c: Likewise.
4697 * frame.c: Likewise.
4698 * frv-tdep.c: Likewise.
4699 * gcore.c: Likewise.
4700 * gdb-dlfcn.c: Likewise.
4701 * gdb_bfd.c: Likewise.
4702 * gdbarch.c: Likewise.
4703 * gdbarch.sh: Likewise.
4704 * gdbtypes.c: Likewise.
4705 * gnu-nat.c: Likewise.
4706 * gnu-v3-abi.c: Likewise.
4707 * go-lang.c: Likewise.
4708 * guile/scm-exception.c: Likewise.
4709 * guile/scm-gsmob.c: Likewise.
4710 * guile/scm-lazy-string.c: Likewise.
4711 * guile/scm-math.c: Likewise.
4712 * guile/scm-pretty-print.c: Likewise.
4713 * guile/scm-safe-call.c: Likewise.
4714 * guile/scm-utils.c: Likewise.
4715 * guile/scm-value.c: Likewise.
4716 * h8300-tdep.c: Likewise.
4717 * hppa-hpux-nat.c: Likewise.
4718 * hppa-tdep.c: Likewise.
4719 * hppanbsd-tdep.c: Likewise.
4720 * hppaobsd-tdep.c: Likewise.
4721 * i386-darwin-nat.c: Likewise.
4722 * i386-darwin-tdep.c: Likewise.
4723 * i386-nto-tdep.c: Likewise.
4724 * i386-tdep.c: Likewise.
4725 * i386bsd-nat.c: Likewise.
4726 * i386fbsd-tdep.c: Likewise.
4727 * i386gnu-nat.c: Likewise.
4728 * i386nbsd-tdep.c: Likewise.
4729 * i386obsd-tdep.c: Likewise.
4730 * i387-tdep.c: Likewise.
4731 * ia64-libunwind-tdep.c: Likewise.
4732 * ia64-tdep.c: Likewise.
4733 * inf-ptrace.c: Likewise.
4734 * inf-ttrace.c: Likewise.
4735 * infcall.c: Likewise.
4736 * infcmd.c: Likewise.
4737 * infrun.c: Likewise.
4738 * inline-frame.c: Likewise.
4739 * interps.c: Likewise.
4740 * jv-lang.c: Likewise.
4741 * jv-typeprint.c: Likewise.
4742 * linux-fork.c: Likewise.
4743 * linux-nat.c: Likewise.
4744 * linux-thread-db.c: Likewise.
4745 * m32c-tdep.c: Likewise.
4746 * m32r-linux-nat.c: Likewise.
4747 * m32r-tdep.c: Likewise.
4748 * m68k-tdep.c: Likewise.
4749 * m68kbsd-nat.c: Likewise.
4750 * m68kbsd-tdep.c: Likewise.
4751 * m88k-tdep.c: Likewise.
4752 * machoread.c: Likewise.
4753 * macroexp.c: Likewise.
4754 * macrotab.c: Likewise.
4755 * maint.c: Likewise.
4756 * mdebugread.c: Likewise.
4757 * memory-map.c: Likewise.
4758 * mep-tdep.c: Likewise.
4759 * mi/mi-common.c: Likewise.
4760 * microblaze-tdep.c: Likewise.
4761 * mingw-hdep.c: Likewise.
4762 * mips-linux-nat.c: Likewise.
4763 * mips-linux-tdep.c: Likewise.
4764 * mips-tdep.c: Likewise.
4765 * mips64obsd-tdep.c: Likewise.
4766 * mipsnbsd-tdep.c: Likewise.
4767 * mn10300-linux-tdep.c: Likewise.
4768 * mn10300-tdep.c: Likewise.
4769 * moxie-tdep.c: Likewise.
4770 * mt-tdep.c: Likewise.
4771 * nat/linux-btrace.c: Likewise.
4772 * nat/linux-osdata.c: Likewise.
4773 * nat/linux-ptrace.c: Likewise.
4774 * nat/mips-linux-watch.c: Likewise.
4775 * nios2-linux-tdep.c: Likewise.
4776 * nios2-tdep.c: Likewise.
4777 * objc-lang.c: Likewise.
4778 * objfiles.c: Likewise.
4779 * obsd-nat.c: Likewise.
4780 * opencl-lang.c: Likewise.
4781 * osabi.c: Likewise.
4782 * parse.c: Likewise.
4783 * ppc-linux-nat.c: Likewise.
4784 * ppc-sysv-tdep.c: Likewise.
4785 * ppcfbsd-nat.c: Likewise.
4786 * ppcfbsd-tdep.c: Likewise.
4787 * ppcnbsd-nat.c: Likewise.
4788 * ppcnbsd-tdep.c: Likewise.
4789 * ppcobsd-nat.c: Likewise.
4790 * ppcobsd-tdep.c: Likewise.
4791 * printcmd.c: Likewise.
4792 * procfs.c: Likewise.
4793 * prologue-value.c: Likewise.
4794 * psymtab.c: Likewise.
4795 * python/py-lazy-string.c: Likewise.
4796 * python/py-value.c: Likewise.
4797 * regcache.c: Likewise.
4798 * reggroups.c: Likewise.
4799 * registry.c: Likewise.
4800 * remote-sim.c: Likewise.
4801 * remote.c: Likewise.
4802 * rs6000-aix-tdep.c: Likewise.
4803 * rs6000-tdep.c: Likewise.
4804 * s390-linux-tdep.c: Likewise.
4805 * score-tdep.c: Likewise.
4806 * ser-base.c: Likewise.
4807 * ser-mingw.c: Likewise.
4808 * sh-tdep.c: Likewise.
4809 * sh64-tdep.c: Likewise.
4810 * solib-darwin.c: Likewise.
4811 * solib-spu.c: Likewise.
4812 * solib-svr4.c: Likewise.
4813 * source.c: Likewise.
4814 * sparc-nat.c: Likewise.
4815 * sparc-sol2-tdep.c: Likewise.
4816 * sparc-tdep.c: Likewise.
4817 * sparc64-sol2-tdep.c: Likewise.
4818 * sparc64-tdep.c: Likewise.
4819 * sparc64fbsd-tdep.c: Likewise.
4820 * sparc64nbsd-tdep.c: Likewise.
4821 * sparc64obsd-tdep.c: Likewise.
4822 * sparcnbsd-tdep.c: Likewise.
4823 * sparcobsd-tdep.c: Likewise.
4824 * spu-multiarch.c: Likewise.
4825 * spu-tdep.c: Likewise.
4826 * stabsread.c: Likewise.
4827 * stack.c: Likewise.
4828 * symfile.c: Likewise.
4829 * symtab.c: Likewise.
4830 * target-descriptions.c: Likewise.
4831 * target-memory.c: Likewise.
4832 * target.c: Likewise.
4833 * tic6x-linux-tdep.c: Likewise.
4834 * tic6x-tdep.c: Likewise.
4835 * tilegx-linux-nat.c: Likewise.
4836 * tilegx-tdep.c: Likewise.
4837 * top.c: Likewise.
4838 * tramp-frame.c: Likewise.
4839 * tui/tui-out.c: Likewise.
4840 * tui/tui-winsource.c: Likewise.
4841 * ui-out.c: Likewise.
4842 * user-regs.c: Likewise.
4843 * utils.c: Likewise.
4844 * v850-tdep.c: Likewise.
4845 * valops.c: Likewise.
4846 * value.c: Likewise.
4847 * varobj.c: Likewise.
4848 * vax-nat.c: Likewise.
4849 * xml-syscall.c: Likewise.
4850 * xml-tdesc.c: Likewise.
4851 * xstormy16-tdep.c: Likewise.
4852 * xtensa-linux-nat.c: Likewise.
4853 * xtensa-tdep.c: Likewise.
4854
4855 2014-08-07 Gary Benson <gbenson@redhat.com>
4856
4857 * common/common-defs.h: Include common-utils.h.
4858 * defs.h: Do not include common-utils.h.
4859 * common/gdb_assert.h: Likewise.
4860 * darwin-nat.h: Likewise.
4861 * nat/linux-btrace.c: Likewise.
4862 * target/waitstatus.h: Likewise.
4863
4864 2014-08-07 Gary Benson <gbenson@redhat.com>
4865
4866 * common/common-defs.h: Include ptid.h.
4867 * defs.h: Do not include ptid.h.
4868 * inferior.h: Likewise.
4869 * infrun.h: Likewise.
4870 * nat/linux-btrace.h: Likewise.
4871 * nat/linux-osdata.h: Likewise.
4872 * target/waitstatus.h: Likewise.
4873
4874 2014-08-07 Gary Benson <gbenson@redhat.com>
4875
4876 * common/common-defs.h: Include gdb_locale.h.
4877 * defs.h: Do not include gdb_locale.h.
4878
4879 2014-08-07 Gary Benson <gbenson@redhat.com>
4880
4881 * common/common-defs.h: Include gdb/signals.h.
4882 * defs.h: Do not include gdb/signals.h.
4883
4884 2014-08-07 Gary Benson <gbenson@redhat.com>
4885
4886 * common/common-defs.h: Include pathmax.h.
4887 * defs.h: Do not include pathmax.h.
4888
4889 2014-08-07 Gary Benson <gbenson@redhat.com>
4890
4891 * common/common-defs.h: Include libiberty.h.
4892 * defs.h: Do not include libiberty.h.
4893 * common/queue.h: Likewise.
4894 * cp-name-parser.y: Likewise.
4895 * mi/mi-cmd-catch.c: Likewise.
4896 * python/python.c: Likewise.
4897
4898 2014-08-07 Gary Benson <gbenson@redhat.com>
4899
4900 * common/common-defs.h: Include ansidecl.h.
4901 * defs.h: Do not include ansidecl.h.
4902 * common/buffer.h: Likewise.
4903 * common/common-utils.h: Likewise.
4904
4905 2014-08-07 Gary Benson <gbenson@redhat.com>
4906
4907 * common/common-defs.h: Include stddef.h.
4908 * defs.h: Do not include stddef.h.
4909 * common/common-utils.h: Likewise.
4910 * amd64fbsd-nat.c: Likewise.
4911 * bcache.c: Likewise.
4912 * charset.c: Likewise.
4913 * common/buffer.h: Likewise.
4914 * common/vec.h: Likewise.
4915 * i386bsd-nat.c: Likewise.
4916 * nat/linux-btrace.h: Likewise.
4917 * ppcfbsd-nat.c: Likewise.
4918 * ppcnbsd-tdep.h: Likewise.
4919 * ppcobsd-nat.c: Likewise.
4920 * ppcobsd-tdep.h: Likewise.
4921 * python/py-gdb-readline.c: Likewise.
4922
4923 2014-08-07 Gary Benson <gbenson@redhat.com>
4924
4925 * common/common-defs.h: Include stdarg.h.
4926 * defs.h: Do not include stdarg.h.
4927 * ada-lang.c: Likewise.
4928 * common/common-utils.h: Likewise.
4929 * guile/scm-string.c: Likewise.
4930 * guile/scm-utils.c: Likewise.
4931 * m32c-tdep.c: Likewise.
4932
4933 2014-08-07 Gary Benson <gbenson@redhat.com>
4934
4935 * common/common-defs.h: Include stdlib.h.
4936 * defs.h: Do not include stdlib.h.
4937 * addrmap.c: Likewise.
4938 * bcache.c: Likewise.
4939 * common/buffer.c: Likewise.
4940 * common/common-utils.c: Likewise.
4941 * cp-name-parser.y: Likewise.
4942 * go32-nat.c: Likewise.
4943 * mn10300-linux-tdep.c: Likewise.
4944 * nat/linux-osdata.c: Likewise.
4945 * tui/tui.c: Likewise.
4946 * windows-nat.c: Likewise.
4947
4948 2014-08-07 Gary Benson <gbenson@redhat.com>
4949
4950 * common/common-defs.h: Include stdio.h.
4951 * defs.h: Do not include stdio.h.
4952 * ada-lang.c: Likewise.
4953 * common/buffer.c: Likewise.
4954 * common/common-utils.c: Likewise.
4955 * cp-name-parser.y: Likewise.
4956 * gnu-nat.c: Likewise.
4957 * go32-nat.c: Likewise.
4958 * i386gnu-nat.c: Likewise.
4959 * proc-api.c: Likewise.
4960 * proc-events.c: Likewise.
4961 * proc-flags.c: Likewise.
4962 * proc-why.c: Likewise.
4963 * python/python-internal.h: Likewise.
4964 * target-memory.c: Likewise.
4965 * tui/tui-io.c: Likewise.
4966 * tui/tui.c: Likewise.
4967
4968 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4969
4970 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4971 (scan_dyntag_auxv): Same.
4972
4973 2014-08-06 Yao Qi <yao@codesourcery.com>
4974
4975 * amd64-linux-nat.c: Remove duplicated include
4976 "x86-linux-nat.h".
4977 * i386-linux-nat.c: Likewise.
4978
4979 2014-08-06 Yao Qi <yao@codesourcery.com>
4980
4981 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4982 operand" with "Special opcode" in comments.
4983
4984 2014-08-05 Gary Benson <gbenson@redhat.com>
4985
4986 * interps.c (initialize_interps): Remove prototype.
4987 (interpreter_initialized): Remove static global.
4988 (interp_add): Do not call initialize_interps.
4989 (initialize_interps): Remove function.
4990
4991 2014-08-05 Gary Benson <gbenson@redhat.com>
4992
4993 * utils.c (vwarning): Remove spurious va_end.
4994
4995 2014-08-05 Alan Modra <amodra@gmail.com>
4996
4997 * charset.c (convert_between_encodings): Cast result of obstack_base.
4998 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4999 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5000 (read_unwind_info): Use size_t for some locals.
5001 * jit.c (finalize_symtab): Likewise.
5002 * utils.c (hashtab_obstack_allocate): Likewise.
5003 * symmisc.c (print_objfile_statistics): Update format strings.
5004
5005 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5006
5007 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5008 (Changes in GDB 7.8): ... here.
5009
5010 2014-08-04 Tom Tromey <tromey@redhat.com>
5011
5012 * target.c (set_targetdebug): New function.
5013 (initialize_targets): Pass set_targetdebug when creating "set
5014 debug target".
5015
5016 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5017
5018 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5019 if detecting a variable-sized field that is not the last field.
5020 Fix struct type length computation.
5021
5022 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5023
5024 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5025 Add debug trace.
5026
5027 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5028
5029 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5030 Remove "+ 8" offset in computation of CHAIN_VMA.
5031
5032 2014-07-31 Doug Evans <dje@google.com>
5033
5034 * inflow.c (child_terminal_inferior): Add comment.
5035 (child_terminal_ours_for_output): Add comment.
5036 (child_terminal_ours): Add comment.
5037 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5038 (linux_nat_terminal_ours): Add comment.
5039
5040 2014-07-31 Gary Benson <gbenson@redhat.com>
5041
5042 * common/btrace-common.h: Do not include defs.h or server.h.
5043 * nat/mips-linux-watch.h: Likewise.
5044 * gdb-dlfcn.h: Do not include defs.h.
5045 * tracefile.h: Likewise.
5046
5047 2014-07-30 Roland McGrath <mcgrathr@google.com>
5048
5049 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5050
5051 2014-07-30 Tom Tromey <tromey@redhat.com>
5052
5053 * bsd-kvm.c (bsd_kvm_open): Constify.
5054 * corelow.c (core_open): Constify.
5055 * ctf.c (ctf_open): Constify.
5056 * dbug-rom.c (dbug_open): Constify.
5057 * exec.c (exec_open): Constify.
5058 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5059 * microblaze-rom.c (picobug_open): Constify.
5060 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5061 Constify.
5062 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5063 * record-btrace.c (record_btrace_open): Constify.
5064 * record-full.c (record_full_core_open_1, record_full_open_1)
5065 (record_full_open): Constify.
5066 * remote-m32r-sdi.c (m32r_open): Constify.
5067 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5068 (rockhopper_open, lsi_open): Constify.
5069 * remote-sim.c (gdbsim_open): Constify.
5070 * remote.c (remote_open, extended_remote_open, remote_open_1):
5071 Constify.
5072 * target.h (struct target_ops) <to_open>: Make "arg" const.
5073 * tracefile-tfile.c (tfile_open): Constify.
5074
5075 2014-07-30 Tom Tromey <tromey@redhat.com>
5076
5077 * breakpoint.c (map_breakpoint_numbers): Update.
5078 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5079 (get_number_const): New function.
5080 (get_number): Rewrite using get_number_const.
5081 (init_number_or_range): Make "string" const.
5082 (number_is_in_list): Make "list" const.
5083 * cli/cli-utils.h (get_number_const): Declare.
5084 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5085 (init_number_or_range, number_is_in_list): Update.
5086 * printcmd.c (map_display_numbers): Update.
5087 * value.c (value_from_history_ref): Constify.
5088 * value.h (value_from_history_ref): Update.
5089
5090 2014-07-30 Tom Tromey <tromey@redhat.com>
5091
5092 * corefile.c (hook_type, call_extra_exec_file_hooks)
5093 (specify_exec_file_hook): Constify.
5094 * exec.c (exec_file_attach): Make "filename" const.
5095 * gdbcore.h (deprecated_exec_file_display_hook)
5096 (specify_exec_file_hook, exec_file_attach): Constify.
5097 * main.c (captured_main): Use catch_command_errors_const.
5098
5099 2014-07-30 Tom Tromey <tromey@redhat.com>
5100
5101 * target.c (open_target): New function.
5102 (add_target_with_completer, add_deprecated_target_alias): Use
5103 set_cmd_sfunc, set_cmd_context.
5104 (debug_to_open): Remove.
5105 (setup_target_debug): Update.
5106
5107 2014-07-30 Yao Qi <yao@codesourcery.com>
5108
5109 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5110 comments.
5111 * parse.c (exp_iterate): Update comments.
5112
5113 2014-07-30 Gary Benson <gbenson@redhat.com>
5114
5115 * common/common-defs.h: New file.
5116 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5117 * defs.h: Include common-defs.h.
5118 Do not include config.h or build-gnulib/config.h.
5119
5120 2014-07-30 Gary Benson <gbenson@redhat.com>
5121
5122 * common/common-utils.h: Do not include config.h.
5123 * nat/linux-btrace.h: Likewise.
5124
5125 2014-07-30 Gary Benson <gbenson@redhat.com>
5126
5127 * btrace.c: Include defs.h.
5128 * common/ptid.c: Include defs.h or server.h as appropriate.
5129 * nat/mips-linux-watch.c: Likewise.
5130
5131 2014-07-29 Tom Tromey <tromey@redhat.com>
5132
5133 * target.c (target_is_pushed): Simplify.
5134
5135 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5136
5137 GDB 7.8 released.
5138
5139 2014-07-29 Yao Qi <yao@codesourcery.com>
5140
5141 PR gdb/17206
5142 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5143
5144 2014-07-28 Doug Evans <xdje42@gmail.com>
5145
5146 PR guile/17203
5147 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5148 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5149 parameters.
5150
5151 2014-07-28 Will Newton <will.newton@linaro.org>
5152
5153 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5154 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5155 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5156 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5157 (THUMB2_EABI_SYSCALL): Likewise.
5158 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5159 struct tramp_frame.
5160 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5161 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5162
5163 2014-07-27 Doug Evans <xdje42@gmail.com>
5164
5165 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5166
5167 2014-07-27 Doug Evans <xdje42@gmail.com>
5168
5169 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5170
5171 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5172 Doug Evans <xdje42@gmail.com>
5173
5174 PR guile/17146
5175 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5176 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5177 * configure.ac: Try to use guild to compile an scm file, if it fails
5178 then disable guile support.
5179 * configure: Regenerate.
5180 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5181 GUILE_FILE_LIST.
5182 (GUILE_COMPILED_FILES): New variable.
5183 (GUILE_FILES) Update.
5184 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5185 (stamp-guile): Compile scm files.
5186 * guile/guile.c (boot_guile_support): New function.
5187 (standard_throw_args_p): New function.
5188 (print_standard_throw_error, print_throw_error): New functions.
5189 (handle_boot_error): New function.
5190 (initialize_scheme_side): Rewrite to call boot_guile_support.
5191 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5192 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5193
5194 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5195 Doug Evans <xdje42@gmail.com>
5196
5197 PR guile/17146
5198 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5199 * guile/lib/gdb/support.scm: New file.
5200 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5201 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5202 All uses updated.
5203 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5204 All uses updated.
5205 (%assert-type): Ditto, and renamed to assert-type.
5206 (%exception-print-style): Delete.
5207
5208 2014-07-26 Doug Evans <xdje42@gmail.com>
5209
5210 PR build/17105
5211 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5212 * configure: Regenerate.
5213 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5214 PYTHON_FILES.
5215 (PYTHON_FILES): New variable.
5216 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5217 (GUILE_FILES): New variable.
5218 (stamp-python, install-python, uninstall-python): Handle empty
5219 file list.
5220 (stamp-guile, install-guile, uninstall-guile): Ditto.
5221
5222 2014-07-26 Doug Evans <xdje42@gmail.com>
5223
5224 PR guile/17177
5225 * guile/lib/gdb.scm (pretty-printers): Export.
5226 (set-pretty-printers!): Export.
5227 * guile/lib/gdb/printing.scm (gdb module): Update.
5228 (prepend-pretty-printer!, append-pretty-printer!): Update.
5229 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5230 (pretty_printer_list_var): Delete.
5231 (pretty_printer_list): New static global.
5232 (gdbscm_pretty_printers): New function.
5233 (gdbscm_set_pretty_printers_x): New function.
5234 (ppscm_find_pretty_printer_from_gdb): Update.
5235 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5236 (gdbscm_initialize_pretty_printers): Update.
5237
5238 2014-07-26 Doug Evans <xdje42@gmail.com>
5239
5240 PR 17185
5241 * configure.ac: Add check for header gc/gc.h.
5242 Add check for function setenv.
5243 * configure: Regenerate.
5244 * config.in: Regenerate.
5245 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5246
5247 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5248
5249 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5250 variation in gdbarch matching.
5251
5252 2014-07-25 Tom Tromey <tromey@redhat.com>
5253
5254 * exec.c (using_exec_ops): Remove.
5255 (exec_close_1): Update. Remove extraneous block, reindent.
5256 (add_target_sections): Use target_is_pushed.
5257
5258 2014-07-25 Pedro Alves <palves@redhat.com>
5259
5260 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5261 * monitor.c (monitor_create_inferior): Likewise.
5262 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5263 * remote-sim.c (gdbsim_create_inferior): Likewise.
5264 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5265 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5266 * windows-nat.c (do_initial_windows_stuff): Likewise.
5267
5268 2014-07-25 Pedro Alves <palves@redhat.com>
5269
5270 * NEWS: Mention signal passing and "signal" command changes.
5271 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5272 comment.
5273 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5274 call.
5275 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5276 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5277 (jump_command): Adjust clear_proceed_status call.
5278 (signal_command): Warn if other thread that are resumed have
5279 signals that will be delivered. Adjust clear_proceed_status call.
5280 (until_next_command, finish_command)
5281 (proceed_after_attach_callback, attach_command_post_wait)
5282 (attach_command): Adjust clear_proceed_status call.
5283 * infrun.c (proceed_after_vfork_done): Likewise.
5284 (proceed_after_attach_callback): Adjust comment.
5285 (clear_proceed_status_thread): Clear stop_signal if not in pass
5286 state.
5287 (clear_proceed_status_callback): Delete.
5288 (clear_proceed_status): New 'step' parameter. Only clear the
5289 proceed status of threads the command being prepared is about to
5290 resume.
5291 (proceed): If passed in an explicit signal, override stop_signal
5292 with it. Don't pass the last stop signal to the thread we're
5293 resuming.
5294 (init_wait_for_inferior): Adjust clear_proceed_status call.
5295 (switch_back_to_stepped_thread): Clear the signal if it should not
5296 be passed.
5297 * infrun.h (clear_proceed_status): New 'step' parameter.
5298 (user_visible_resume_ptid): Add comment.
5299 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5300 signal is in pass state.
5301 * remote.c (append_pending_thread_resumptions): Likewise.
5302 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5303
5304 2014-07-25 Tom Tromey <tromey@redhat.com>
5305
5306 * target.h (target_stopped_data_address)
5307 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5308 parentheses.
5309
5310 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5311
5312 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5313 comments.
5314 (avr_pointer_to_address): Likewise.
5315
5316 2014-07-24 Tom Tromey <tromey@redhat.com>
5317
5318 * monitor.c (compile_pattern): Update.
5319 * target.h (struct target_ops) <to_shortname, to_longname,
5320 to_doc>: Now const.
5321
5322 2014-07-24 Tom Tromey <tromey@redhat.com>
5323
5324 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5325 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5326 (add_info_alias, add_com): Make "doc" const.
5327 (print_doc_line): Make "str" const.
5328 (delete_cmd): Update.
5329 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5330 (print_doc_line): Update.
5331 * cli/cli-script.c (document_command): Update.
5332 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5333 (add_com, add_info, add_info_alias): Update.
5334 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5335 * python/py-cmd.c (cmdpy_destroyer): Update.
5336
5337 2014-07-24 Tom Tromey <tromey@redhat.com>
5338
5339 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5340 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5341 (help_cmd_list): Constify.
5342 (lookup_cmd): Update.
5343 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5344 const.
5345 (help_cmd_list, apropos_cmd): Update.
5346 * cli/cli-script.c (show_user): Update.
5347 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5348 * cli/cli-setshow.h (cmd_show_list): Update.
5349 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5350 (cmd_show_list): Update.
5351 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5352 * python/py-cmd.c (cmdpy_destroyer): Update.
5353
5354 2014-07-24 Tom Tromey <tromey@redhat.com>
5355
5356 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5357 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5358 const.
5359 * command.h (deprecate_cmd): Update.
5360 * maint.c (maintenance_do_deprecate): Add casts.
5361
5362 2014-07-24 Tom Tromey <tromey@redhat.com>
5363
5364 * cli/cli-decode.c (help_cmd): Make parameter "const".
5365 * cli/cli-decode.h (help_cmd): Update.
5366
5367 2014-07-24 Tom Tromey <tromey@redhat.com>
5368
5369 * stack.c (up_silently_base, down_silently_base): Make argument
5370 const.
5371
5372 2014-07-24 Tom Tromey <tromey@redhat.com>
5373
5374 * solib.c (solib_add): Make "pattern" const.
5375 * solib.h (solib_add): Update.
5376
5377 2014-07-24 Tom Tromey <tromey@redhat.com>
5378
5379 * remote.c (remote_serial_open, print_packet, putpkt)
5380 (putpkt_binary): Constify.
5381 * remote.h (putpkt): Update.
5382
5383 2014-07-24 Tom Tromey <tromey@redhat.com>
5384
5385 * monitor.c (monitor_open): Make "args" const.
5386 * monitor.h (monitor_open): Update.
5387
5388 2014-07-24 Tom Tromey <tromey@redhat.com>
5389
5390 * maint.c (match_bfd_flags): Make "string" const.
5391 (print_bfd_section_info): Remove casts.
5392 (print_objfile_section_info): Make "string" const.
5393
5394 2014-07-24 Tom Tromey <tromey@redhat.com>
5395
5396 * inf-child.c (inf_child_open_target): Make "arg" const.
5397 * inf-child.h (inf_child_open_target): Update.
5398
5399 2014-07-24 Tom Tromey <tromey@redhat.com>
5400
5401 * environ.c (unset_in_environ): Make "var" const.
5402 * environ.h (unset_in_environ): Update.
5403
5404 2014-07-24 Tom Tromey <tromey@redhat.com>
5405
5406 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5407 Make "cmd" const.
5408 (scan_filename_with_cleanup): Likewise.
5409 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5410 Make arguments const.
5411 (restore_command): Update.
5412
5413 2014-07-24 Pedro Alves <palves@redhat.com>
5414
5415 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5416
5417 2014-07-24 Tom Tromey <tromey@redhat.com>
5418 Gary Benson <gbenson@redhat.com>
5419
5420 * nat/linux-ptrace.c (additional_flags): New global.
5421 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5422 additional_flags; don't check GDBSERVER.
5423 (linux_ptrace_set_additional_flags): New function.
5424 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5425 Declare.
5426 * linux-nat.c (_initialize_linux_nat): Call
5427 linux_ptrace_set_additional_flags.
5428
5429 2014-07-24 Tom Tromey <tromey@redhat.com>
5430
5431 * make-target-delegates (munge_type, write_debugmethod): New
5432 functions.
5433 (debug_names): New global.
5434 ($TARGET_DEBUG_PRINTER): New global.
5435 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5436 name.
5437 Write debug methods. Generate init_debug_target.
5438 * target-debug.h: New file.
5439 * target-delegates.c: Rebuild.
5440 * target.c: Include target-debug.h.
5441 (debug_target): Hoist definition.
5442 (target_kill, target_get_section_table, target_memory_map)
5443 (target_flash_erase, target_flash_done, target_detach)
5444 (target_disconnect, target_wait, target_resume)
5445 (target_pass_signals, target_program_signals, target_follow_fork)
5446 (target_mourn_inferior, target_search_memory)
5447 (target_thread_address_space, target_close)
5448 (target_find_new_threads, target_core_of_thread)
5449 (target_verify_memory, target_insert_mask_watchpoint)
5450 (target_remove_mask_watchpoint): Remove targetdebug code.
5451 (debug_to_post_attach, debug_to_prepare_to_store)
5452 (debug_to_files_info, debug_to_insert_breakpoint)
5453 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5454 (debug_to_region_ok_for_hw_watchpoint)
5455 (debug_to_can_accel_watchpoint_condition)
5456 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5457 (debug_to_watchpoint_addr_within_range)
5458 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5459 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5460 (debug_to_terminal_init, debug_to_terminal_inferior)
5461 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5462 (debug_to_terminal_save_ours, debug_to_terminal_info)
5463 (debug_to_load, debug_to_post_startup_inferior)
5464 (debug_to_insert_fork_catchpoint)
5465 (debug_to_remove_fork_catchpoint)
5466 (debug_to_insert_vfork_catchpoint)
5467 (debug_to_remove_vfork_catchpoint)
5468 (debug_to_insert_exec_catchpoint)
5469 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5470 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5471 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5472 (setup_target_debug): Call init_debug_target.
5473 * target.h (TARGET_DEBUG_PRINTER): New macro.
5474 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5475 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5476
5477 2014-07-24 Gary Benson <gbenson@redhat.com>
5478
5479 * exceptions.h (throw_vfatal): Renamed to...
5480 (throw_vquit): New declaration.
5481 (throw_quit): Likewise.
5482 * exceptions.c (throw_vfatal): Renamed to...
5483 (throw_vquit): New function.
5484 (throw_quit): Likewise.
5485 (throw_error): Call throw_verror rather than throw_it.
5486 * utils.h (vfatal): Removed.
5487 (fatal): Likewise.
5488 * utils.c (vfatal): Removed.
5489 (fatal): Likewise.
5490 (internal_verror): Replaced call to fatal with call to throw_quit.
5491 (quit): Replaced calls to fatal with calls to throw_quit.
5492
5493 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5494
5495 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5496 target_read_code.
5497
5498 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5499
5500 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5501 less than zero in conditional expression.
5502
5503 2014-07-23 Tom Tromey <tromey@redhat.com>
5504
5505 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5506 ($INTRO_PART): Don't match whitespace.
5507 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5508 argument matching.
5509 ($METHOD): Add $METHOD_TRAILER.
5510 (trim): Rewrite.
5511 (scan_target_h): New sub.
5512 Change main loop not to collect state.
5513 * target-delegates.c: Rebuild.
5514
5515 2014-07-23 Gary Benson <gbenson@redhat.com>
5516
5517 * cp-support.c (gdb_demangle): Fix build on systems without
5518 sigaltstack.
5519
5520 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5521
5522 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5523 for reference entry value target data value.
5524
5525 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5528 value_available_contents_eq.
5529
5530 2014-07-22 Pedro Alves <palves@redhat.com>
5531
5532 * value.c (allocate_optimized_out_value): Don't mark value as
5533 non-lazy.
5534
5535 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5536
5537 * MAINTAINERS (Write After Approval): Update my email address.
5538
5539 2014-07-20 Doug Evans <dje@google.com>
5540
5541 PR server/17147
5542 * remote.c (putpkt_binary): Add text to error message.
5543
5544 2014-07-20 Yao Qi <yao@codesourcery.com>
5545
5546 * eval.c: Remove "Chill" from comments.
5547 * gdbtypes.h: Likewise.
5548 * symtab.h: Likewise.
5549
5550 2014-07-20 Yao Qi <yao@codesourcery.com>
5551
5552 * std-operator.def: Update comments to TERNOP_SLICE.
5553
5554 2014-07-20 Yao Qi <yao@codesourcery.com>
5555
5556 * std-operator.def: Remove BINOP_RANGE.
5557 * breakpoint.c (watchpoint_exp_is_const): Update.
5558 * expprint.c (dump_subexp_body_standard): Likewise.
5559 * eval.c (init_array_element): Remove dead code.
5560 (evaluate_subexp_standard): Likewise.
5561
5562 2014-07-20 Yao Qi <yao@codesourcery.com>
5563
5564 * std-operator.def: Remove BINOP_IN.
5565 * breakpoint.c (watchpoint_exp_is_const): Update.
5566 * eval.c (evaluate_subexp_standard): Likewise.
5567 * expprint.c (dump_subexp_body_standard): Likewise.
5568
5569 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5570
5571 * microblaze-tdep.c (microblaze_register_names): Add
5572 the rshr and rslr register names.
5573 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5574 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5575 Use of tdesc_numbered_register. Use of
5576 microblaze_register_g_packet_guesses. Use of
5577 tdesc_use_registers. Use of set_gdbarch_register_type.
5578 (microblaze_register_g_packet_guesses): New.
5579 * microblaze-tdep.h (microblaze_reg_num): Add
5580 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5581 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5582 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5583 * features/microblaze-core.xml: New file.
5584 * features/microblaze-stack-protect.xml: New file.
5585 * features/microblaze-with-stack-protect.c: New file.
5586 * features/microblaze-with-stack-protect.xml: New file.
5587 * features/microblaze.xml: New file.
5588 * features/microblaze.c: New file.
5589 * features/Makefile (microblaze-with-stack-protect): Add
5590 microblaze-with-stack-protect microblaze and microblaze-expedite.
5591 * regformats/microblaze-with-stack-protect.dat: New file.
5592 * regformats/microblaze.dat: New file.
5593 * doc/gdb.texinfo (MicroBlaze Features): Added.
5594
5595 2014-07-18 Tom Tromey <tromey@redhat.com>
5596
5597 * exec.c (exec_ops): Now static.
5598 * exec.h (exec_ops): Don't declare.
5599
5600 2014-07-18 Tom Tromey <tromey@redhat.com>
5601
5602 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5603 to find_target_beneath.
5604 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5605 find_target_beneath.
5606 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5607
5608 2014-07-18 Tom Tromey <tromey@redhat.com>
5609
5610 PR gdb/17130:
5611 * utils.c (quit): Use target_supports_terminal_ours.
5612 * target.h (target_supports_terminal_ours): Declare.
5613 * target.c (target_supports_delete_record): Don't check
5614 to_delete_record against NULL.
5615 (target_supports_terminal_ours): New function.
5616
5617 2014-07-18 Tom Tromey <tromey@redhat.com>
5618
5619 PR gdb/17130:
5620 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5621 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5622 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5623 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5624 * windows-nat.c (windows_xfer_partial): Always delegate.
5625 * record-btrace.c (record_btrace_xfer_partial): Simplify
5626 delegation.
5627 (record_btrace_fetch_registers, record_btrace_store_registers)
5628 (record_btrace_prepare_to_store, record_btrace_resume)
5629 (record_btrace_wait, record_btrace_find_new_threads)
5630 (record_btrace_thread_alive): Likewise.
5631 * procfs.c (procfs_xfer_partial): Always delegate.
5632 * corelow.c (core_xfer_partial): Always delegate.
5633 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5634
5635 2014-07-18 Tom Tromey <tromey@redhat.com>
5636
5637 * exec.c (exec_make_note_section): Move earlier.
5638
5639 2014-07-17 Doug Evans <dje@google.com>
5640
5641 PR gdb/17170
5642 * maint.c (count_symtabs_and_blocks): Handle NULL
5643 current_program_space.
5644 (report_command_stats): Check global enabled flag in addition to
5645 recorded enabled flag.
5646 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5647
5648 2014-07-16 Pedro Alves <palves@redhat.com>
5649
5650 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5651
5652 2014-07-16 Tom Tromey <tromey@redhat.com>
5653
5654 * target.h (struct target_ops) <to_delete_record>: Reformat
5655 comment.
5656
5657 2014-07-16 Tom Tromey <tromey@redhat.com>
5658
5659 * target-delegates.c: Rebuild.
5660
5661 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5662
5663 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5664 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5665 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5666 (avr_pointer_to_address): Likewise.
5667 (avr_address_class_type_flags): New function.
5668 (avr_address_class_type_flags_to_name): Likewise.
5669 (avr_address_class_name_to_type_flags): Likewise.
5670 (avr_gdbarch_init): Set address_class_type_flags,
5671 address_class_type_flags_to_name and
5672 address_class_name_to_type_flags.
5673
5674 2014-07-15 Pedro Alves <palves@redhat.com>
5675
5676 * linux-nat.c (kill_callback): Save errno and work with saved
5677 copy.
5678
5679 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5680
5681 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5682
5683 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5684
5685 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5686 breakpoint support correctly.
5687
5688 2014-07-14 Pedro Alves <palves@redhat.com>
5689
5690 * utils.c (prompt_for_continue): Call target_terminal_ours.
5691
5692 2014-07-14 Pedro Alves <palves@redhat.com>
5693
5694 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5695 catch_errors. Don't re-enable stdin or notify observers where,
5696 and rethrow error.
5697 (fetch_inferior_event_wrapper): Delete.
5698
5699 2014-07-14 Pedro Alves <palves@redhat.com>
5700
5701 PR gdb/17072
5702 * top.c: Include "inf-loop.h".
5703 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5704 field.
5705 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5706 was async before.
5707 (gdb_readline_wrapper): Store whether the target is async, and
5708 make it sync.
5709
5710 2014-07-14 Pedro Alves <palves@redhat.com>
5711
5712 PR gdb/17072
5713 * top.c (gdb_readline_wrapper_line): Tweak comment.
5714 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5715 the input handler callback.
5716
5717 2014-07-14 Pedro Alves <palves@redhat.com>
5718
5719 PR gdb/17072
5720 * main.c: Include event-top.h.
5721 (handle_command_errors): New function.
5722 (catch_command_errors, catch_command_errors_const): Use it.
5723
5724 2014-07-14 Pedro Alves <palves@redhat.com>
5725
5726 * exceptions.c (catch_command_errors, catch_command_errors_const):
5727 Moved to main.c.
5728 * exceptions.h (catch_command_errors_ftype)
5729 (catch_command_errors_const_ftype): Moved to main.c.
5730 (catch_command_errors, catch_command_errors_const): Delete
5731 declarations.
5732 * main.c (catch_command_errors_ftype)
5733 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5734 (catch_command_errors, catch_command_errors_const)): Moved here
5735 from exceptions.c and make static.
5736
5737 2014-07-14 Pedro Alves <palves@redhat.com>
5738
5739 * exceptions.c (print_any_exception): Delete.
5740 (catch_exceptions_with_msg): Use exception_print instead of
5741 print_any_exception.
5742 (catch_errors): Use exception_fprintf instead of
5743 print_any_exception.
5744 (catch_command_errors, catch_command_errors_const): Use
5745 exception_print instead of print_any_exception.
5746
5747 2014-07-14 Pedro Alves <palves@redhat.com>
5748
5749 * infcall.c (run_inferior_call): Set 'sync_execution' while
5750 running the inferior call.
5751
5752 2014-07-14 Pedro Alves <palves@redhat.com>
5753
5754 * value.c (value_contents_equal): Delete function.
5755 * value.h (value_contents_equal): Delete declaration.
5756
5757 2014-07-14 Tom Tromey <tromey@redhat.com>
5758
5759 PR exp/17106:
5760 * gdbtypes.c (is_dynamic_type_internal): New function, from
5761 is_dynamic_type.
5762 (is_dynamic_type): Rewrite.
5763 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5764 (resolve_dynamic_struct): Likewise.
5765 (resolve_dynamic_type_internal): New function, from
5766 resolve_dynamic_type.
5767 (resolve_dynamic_type): Rewrite.
5768
5769 2014-07-14 Tom Tromey <tromey@redhat.com>
5770
5771 * target.c (target_require_runnable): Also check record_stratum.
5772 Update comment.
5773
5774 2014-07-11 Yao Qi <yao@codesourcery.com>
5775
5776 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5777 thumb_instruction_restores_sp return true.
5778
5779 2014-07-11 Yao Qi <yao@codesourcery.com>
5780
5781 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5782 (thumb_in_function_epilogue_p): Call
5783 thumb_instruction_restores_sp.
5784
5785 2014-07-11 Yao Qi <yao@codesourcery.com>
5786
5787 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5788 'add sp, #imm'.
5789 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5790
5791 2014-07-11 Gary Benson <gbenson@redhat.com>
5792
5793 * amd64-linux-nat.c (gdbcore.h): Remove include.
5794 (regset.h): Likewise.
5795 (nat/linux-btrace.h): Likewise.
5796 (btrace.h): Likewise.
5797 (gdb_assert.h): Likewise.
5798 (string.h): Likewise.
5799 (sys/uio.h): Likewise.
5800 (sys/debugreg.h): Likewise.
5801 (sys/syscall.h): Likewise.
5802 (sys/procfs.h): Likewise.
5803 (sys/user.h): Likewise.
5804 (asm/ptrace.h): Likewise.
5805 (i386-nat.h): Likewise.
5806 * i386-linux-nat.c (i386-nat.h): Likewise.
5807 (regset.h): Likewise.
5808 (target.h): Likewise.
5809 (linux-nat.h): Likewise.
5810 (nat/linux-btrace.h): Likewise.
5811 (btrace.h): Likewise.
5812 (gdb_assert.h): Likewise.
5813 (string.h): Likewise.
5814 (sys/uio.h): Likewise.
5815 (sys/user.h): Likewise.
5816 (sys/procfs.h): Likewise.
5817 (sys/reg.h): Likewise.
5818 (sys/debugreg.h): Likewise.
5819 (ORIG_EAX): Remove definition.
5820
5821 2014-07-11 Gary Benson <gbenson@redhat.com>
5822
5823 * i386-linux-nat.h: New file.
5824 * x86-linux-nat.h: Likewise.
5825 * x86-linux-nat.c: Likewise.
5826 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5827 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5828 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5829 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5830 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5831 (PTRACE_SETREGSET): Likewise.
5832 (arch_lwp_info): Now in x86-linux-nat.c.
5833 (have_ptrace_getregset): Now in x86-linux-nat.h.
5834 (x86_linux_dr_get): Now in x86-linux-nat.c.
5835 (x86_linux_dr_set): Likewise.
5836 (x86_linux_dr_get_addr): Likewise.
5837 (x86_linux_dr_get_control): Likewise.
5838 (x86_linux_dr_get_status): Likewise.
5839 (update_debug_registers_callback): Likewise.
5840 (x86_linux_dr_set_control): Likewise.
5841 (x86_linux_dr_set_addr): Likewise.
5842 (x86_linux_prepare_to_resume): Likewise.
5843 (x86_linux_new_thread): Likewise.
5844 (x86_linux_new_fork): Likewise.
5845 (x86_linux_get_thread_area): Likewise.
5846 (super_post_startup_inferior): Likewise.
5847 (x86_linux_child_post_startup_inferior): Likewise.
5848 (AMD64_LINUX_USER64_CS): Likewise.
5849 (AMD64_LINUX_X32_DS): Likewise.
5850 (x86_linux_read_description): Likewise.
5851 (x86_linux_enable_btrace): Likewise.
5852 (x86_linux_disable_btrace): Likewise.
5853 (x86_linux_teardown_btrace): Likewise.
5854 (x86_linux_read_btrace): Likewise.
5855 (x86_linux_create_target): Likewise.
5856 (x86_linux_add_target): Likewise.
5857 * i386-linux-nat.c (x86-linux-nat.h): New include.
5858 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5859 (PTRACE_SETREGSET): Likewise.
5860 (arch_lwp_info): Now in x86-linux-nat.c.
5861 (have_ptrace_getregset): Now in x86-linux-nat.h.
5862 (x86_linux_dr_get): Now in x86-linux-nat.c.
5863 (x86_linux_dr_set): Likewise.
5864 (x86_linux_dr_get_addr): Likewise.
5865 (x86_linux_dr_get_control): Likewise.
5866 (x86_linux_dr_get_status): Likewise.
5867 (update_debug_registers_callback): Likewise.
5868 (x86_linux_dr_set_control): Likewise.
5869 (x86_linux_dr_set_addr): Likewise.
5870 (x86_linux_prepare_to_resume): Likewise.
5871 (x86_linux_new_thread): Likewise.
5872 (x86_linux_new_fork): Likewise.
5873 (x86_linux_get_thread_area): Likewise.
5874 (super_post_startup_inferior): Likewise.
5875 (x86_linux_child_post_startup_inferior): Likewise.
5876 (AMD64_LINUX_USER64_CS): Likewise.
5877 (AMD64_LINUX_X32_DS): Likewise.
5878 (x86_linux_read_description): Likewise.
5879 (x86_linux_enable_btrace): Likewise.
5880 (x86_linux_disable_btrace): Likewise.
5881 (x86_linux_teardown_btrace): Likewise.
5882 (x86_linux_read_btrace): Likewise.
5883 (x86_linux_create_target): Likewise.
5884 (x86_linux_add_target): Likewise.
5885
5886 2014-07-11 Gary Benson <gbenson@redhat.com>
5887
5888 * amd64-linux-nat.c: Comment and whitespace changes.
5889 * i386-linux-nat.c: Comment and whitespace changes.
5890
5891 2014-07-11 Gary Benson <gbenson@redhat.com>
5892
5893 * amd64-linux-nat.c (x86_linux_create_target): New function.
5894 (x86_linux_add_target): Likewise.
5895 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5896 * i386-linux-nat.c (x86_linux_create_target): New function.
5897 (x86_linux_add_target): Likewise.
5898 (_initialize_i386_linux_nat): Delegate to the above new functions.
5899
5900 2014-07-11 Gary Benson <gbenson@redhat.com>
5901
5902 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5903 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5904 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5905 (ps_get_thread_area): Delegate to the above.
5906
5907 2014-07-11 Gary Benson <gbenson@redhat.com>
5908
5909 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5910 x86_linux_read_description. All uses updated. amd64-specific
5911 code conditionalized. Conditionalized i386-specific code added.
5912 Redundant cast removed.
5913 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5914 x86_linux_read_description. All uses updated. i386-specific
5915 code conditionalized. Conditionalized amd64-specific code added.
5916 One sizeof replaced with the actual type it is describing.
5917
5918 2014-07-11 Gary Benson <gbenson@redhat.com>
5919
5920 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5921 x86_linux_dr_get. All uses updated.
5922 (amd64_linux_dr_set): Renamed to
5923 x86_linux_dr_set. All uses updated.
5924 (amd64_linux_dr_get_addr): Renamed to
5925 x86_linux_dr_get_addr. All uses updated.
5926 (amd64_linux_dr_get_control): Renamed to
5927 x86_linux_dr_get_control. All uses updated.
5928 (amd64_linux_dr_get_status): Renamed to
5929 x86_linux_dr_get_status. All uses updated.
5930 (amd64_linux_dr_set_control): Renamed to
5931 x86_linux_dr_set_control. All uses updated.
5932 (amd64_linux_dr_set_addr): Renamed to
5933 x86_linux_dr_set_addr. All uses updated.
5934 (amd64_linux_prepare_to_resume): Renamed to
5935 x86_linux_prepare_to_resume. All uses updated.
5936 (amd64_linux_new_thread): Renamed to
5937 x86_linux_new_thread. All uses updated.
5938 (amd64_linux_new_fork): Renamed to
5939 x86_linux_new_fork. All uses updated.
5940 (amd64_linux_child_post_startup_inferior): Renamed to
5941 x86_linux_child_post_startup_inferior. All uses updated.
5942 (amd64_linux_enable_btrace): Renamed to
5943 x86_linux_enable_btrace. All uses updated.
5944 (amd64_linux_disable_btrace): Renamed to
5945 x86_linux_disable_btrace. All uses updated.
5946 (amd64_linux_teardown_btrace): Renamed to
5947 x86_linux_teardown_btrace. All uses updated.
5948 (amd64_linux_read_btrace): Renamed to
5949 x86_linux_read_btrace. All uses updated.
5950 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5951 x86_linux_dr_get. All uses updated.
5952 (i386_linux_dr_set): Renamed to
5953 x86_linux_dr_set. All uses updated.
5954 (i386_linux_dr_get_addr): Renamed to
5955 x86_linux_dr_get_addr. All uses updated.
5956 (i386_linux_dr_get_control): Renamed to
5957 x86_linux_dr_get_control. All uses updated.
5958 (i386_linux_dr_get_status): Renamed to
5959 x86_linux_dr_get_status. All uses updated.
5960 (i386_linux_dr_set_control): Renamed to
5961 x86_linux_dr_set_control. All uses updated.
5962 (i386_linux_dr_set_addr): Renamed to
5963 x86_linux_dr_set_addr. All uses updated.
5964 (i386_linux_prepare_to_resume): Renamed to
5965 x86_linux_prepare_to_resume. All uses updated.
5966 (i386_linux_new_thread): Renamed to
5967 x86_linux_new_thread. All uses updated.
5968 (i386_linux_new_fork): Renamed to
5969 x86_linux_new_fork. All uses updated.
5970 (i386_linux_child_post_startup_inferior): Renamed to
5971 x86_linux_child_post_startup_inferior. All uses updated.
5972 (i386_linux_enable_btrace): Renamed to
5973 x86_linux_enable_btrace. All uses updated.
5974 (i386_linux_disable_btrace): Renamed to
5975 x86_linux_disable_btrace. All uses updated.
5976 (i386_linux_teardown_btrace): Renamed to
5977 x86_linux_teardown_btrace. All uses updated.
5978 (i386_linux_read_btrace): Renamed to
5979 x86_linux_read_btrace. All uses updated.
5980
5981 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5982
5983 * remote.c (extended_remote_post_attach): New function.
5984 (init_extended_remote_ops): Install it as to_post_attach method.
5985
5986 2014-07-09 Pedro Alves <palves@redhat.com>
5987
5988 * infcmd.c (attach_command_post_wait): Don't call
5989 target_terminal_inferior here.
5990 (attach_command): Call it here instead.
5991
5992 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5993
5994 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5995 field.
5996 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5997 from varobj.c, with additional checks.
5998 (c_varobj_ops): Fill in is_path_expr_parent field.
5999 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6000 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6001 field.
6002 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6003 ops method.
6004 (varobj_default_is_path_expr_parent): New function.
6005 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6006 (varobj_default_is_path_expr_parent): Declare new function.
6007
6008 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6009
6010 * infcmd.c (finish_backward): Turn internal error into normal error.
6011
6012 2014-07-07 Pedro Alves <palves@redhat.com>
6013
6014 PR gdb/17096
6015 * remote.c (async_handle_remote_sigint)
6016 (async_handle_remote_sigint_twice): Call
6017 gdb_call_async_signal_handler instead of
6018 mark_async_signal_handler.
6019
6020 2014-07-07 Tom Tromey <tromey@redhat.com>
6021
6022 * target-delegates.c: Rebuild.
6023 * target.c (target_info_record): Remove.
6024 * record.c (info_record_command): Unconditionally call
6025 to_info_record.
6026 * target.h (struct target_ops) <to_info_record>: Use
6027 TARGET_DEFAULT_IGNORE.
6028 (target_info_record): Remove.
6029
6030 2014-07-07 Tom Tromey <tromey@redhat.com>
6031
6032 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6033 TARGET_DEFAULT_NORETURN.
6034 * target.c (generic_tls_error): New function.
6035 (target_translate_tls_address): Don't search target stack.
6036 * target-delegates.c: Rebuild.
6037 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6038 stack.
6039 * linux-thread-db.c (thread_db_get_thread_local_address):
6040 Unconditionally call beneath target.
6041
6042 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6043
6044 * cli/cli-logging.c (pop_output_files): Assign targerr to
6045 gdb_stdtargerr.
6046
6047 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * MAINTAINERS (Write After Approval): Update my email address.
6050
6051 2014-07-02 Gary Benson <gbenson@redhat.com>
6052
6053 * proc-service.c (ps_xfer_memory): Update comment.
6054 (ps_pstop): Remove unused function.
6055 (ps_pcontinue): Likewise.
6056 (ps_lstop): Likewise.
6057 (ps_lcontinue): Likewise.
6058 (ps_lgetxregsize): Likewise.
6059 (ps_lgetxregs): Likewise.
6060 (ps_lsetxregs): Likewise.
6061 (ps_plog): Likewise.
6062 (ps_ptread): Likewise.
6063 (ps_ptwrite): Likewise.
6064
6065 2014-07-01 Mark Wielaard <mjw@redhat.com>
6066
6067 * dwarf2read.c (add_array_cv_type): New function.
6068 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6069 (read_tag_volatile_type): Likewise.
6070
6071 2014-07-01 Tom Tromey <tromey@redhat.com>
6072
6073 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6074 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6075 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6076 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6077 * command.h (cmd_cfunc_ftype): Move earlier.
6078 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6079 (add_com, add_info): Use cmd_cfunc_ftype.
6080
6081 2014-06-30 Tom Tromey <tromey@redhat.com>
6082
6083 * symtab.c (operator_chars): Make parameters and return type
6084 const.
6085 (file_matches): Make "files" const.
6086 (struct search_symbols_data) <files>: Now const.
6087 (search_symbols): Make "regexp" and "files" parameters const.
6088 Update.
6089 (symtab_symbol_info): Remove cast.
6090 (rbreak_command): Update.
6091 * symtab.h (search_symbols): Update.
6092
6093 2014-06-27 Yao Qi <yao@codesourcery.com>
6094
6095 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6096 Change parameter type to 'struct thread_info *'. Caller
6097 updated.
6098 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6099 Update declaration.
6100 * dummy-frame.c (struct dummy_frame_id): New.
6101 (dummy_frame_id_eq): New function.
6102 (struct dummy_frame) <id>: Change its type to 'struct
6103 dummy_frame_id'.
6104 (dummy_frame_push): Add parameter ptid and save it in
6105 dummy_frame_id.
6106 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6107 inferior_ptid.
6108 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6109 to inferior_ptid.
6110 (lookup_dummy_frame): Change parameter type to 'struct
6111 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6112 instead of frame_id_eq.
6113 (dummy_frame_pop): Add parameter ptid. Callers updated.
6114 Update comments. Compose dummy_frame_id and pass it to
6115 lookup_dummy_frame.
6116 (dummy_frame_discard): Add parameter ptid.
6117 (dummy_frame_sniffer): Compose dummy_frame_id and call
6118 dummy_frame_id_eq instead of frame_id_eq.
6119 (fprint_dummy_frames): Print ptid.
6120 * dummy-frame.h: Remove comments.
6121 (dummy_frame_push): Add ptid in declaration.
6122 (dummy_frame_pop, dummy_frame_discard): Likewise.
6123
6124 2014-06-26 Tom Tromey <tromey@redhat.com>
6125
6126 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6127 * command.h (error_no_arg): Update.
6128
6129 2014-06-26 Tom Tromey <tromey@redhat.com>
6130
6131 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6132 (do_show_command): Make "arg" const.
6133 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6134
6135 2014-06-26 Tom Tromey <tromey@redhat.com>
6136
6137 * record-full.c (record_full_get_bookmark): Make "args" const.
6138 (record_full_goto_bookmark): Make "raw_bookmark" const.
6139 * record.c (record_goto): New function.
6140 (cmd_record_goto): Use it. Now static.
6141 * record.h (record_goto): Declare.
6142 (cmd_record_goto): Remove declaration.
6143 * target-delegates.c: Rebuild.
6144 * target.h (struct target_ops) <to_get_bookmark,
6145 to_goto_bookmark>: Make parameter const.
6146
6147 2014-06-26 Tom Tromey <tromey@redhat.com>
6148
6149 * defs.h (generic_load): Update.
6150 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6151 * monitor.c (monitor_load): Make "args" const.
6152 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6153 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6154 const.
6155 (mips_load): Make "file" const.
6156 * remote-sim.c (gdbsim_load): Make "args" const.
6157 * remote.c (remote_load): Make "name" const.
6158 * symfile.c (generic_load): Make "args" const.
6159 * target-delegates.c: Rebuild.
6160 * target.c (target_load): Make "arg" const.
6161 (debug_to_load): Make "args" const.
6162 * target.h (struct target_ops) <to_load>: Make parameter const.
6163 (target_load): Update.
6164
6165 2014-06-26 Tom Tromey <tromey@redhat.com>
6166
6167 PR symtab/16902:
6168 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6169 (dwarf2_physname, read_partial_die)
6170 (guess_partial_die_structure_name, fixup_partial_die)
6171 (guess_full_die_structure_name, anonymous_struct_prefix)
6172 (dwarf2_name): Use per-BFD obstack.
6173
6174 2014-06-26 Yao Qi <yao@codesourcery.com>
6175
6176 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6177 dummyframe and this_id into inner block below.
6178
6179 2014-06-26 Yao Qi <yao@codesourcery.com>
6180
6181 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6182 with "signal_pass[0]" in the initialization of signal_pass.
6183
6184 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6185
6186 * record-btrace.c (record_btrace_generating_corefile)
6187 (record_btrace_prepare_to_generate_core)
6188 (record_btrace_done_generating_core): New.
6189 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6190 (record_btrace_store_registers, record_btrace_prepare_to_store):
6191 Forward request when generating a core file.
6192 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6193 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6194 to_done_generating_core.
6195
6196 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6197
6198 * target.h (target_ops) <to_prepare_to_generate_core>
6199 <to_done_generating_core>: New.
6200 (target_prepare_to_generate_core, target_done_generating_core): New.
6201 * target.c (target_prepare_to_generate_core)
6202 (target_done_generating_core): New.
6203 * target-delegates.c: Regenerate.
6204 * gcore.c: (write_gcore_file): Rename to ...
6205 (write_gcore_file_1): ...this.
6206 (write_gcore_file): Call target_prepare_to_generate_core
6207 and target_done_generating_core.
6208
6209 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6210
6211 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6212 * gcore.c (write_gcore_file): Free memory returned from
6213 make_corefile_notes.
6214 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6215 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6216
6217 2014-06-24 Yao Qi <yao@codesourcery.com>
6218
6219 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6220 (arm_linux_init_abi): Set skip_trampoline_code with
6221 gdbarch_skip_trampoline_code instead of
6222 find_solib_trampoline_target.
6223
6224 2014-06-24 Yao Qi <yao@codesourcery.com>
6225
6226 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6227 arm_skip_bx_reg returns non-zero.
6228
6229 2014-06-24 Yao Qi <yao@codesourcery.com>
6230
6231 * arm-tdep.c (arm_skip_bx_reg): New function.
6232 (arm_skip_stub): Call arm_skip_bx_reg.
6233
6234 2014-06-23 Don Breazeal <donb@codesourcery.com>
6235
6236 * MAINTAINERS: Add myself as write-after-approval maintainer.
6237
6238 2014-06-23 Pedro Alves <palves@redhat.com>
6239
6240 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6241 DR_CONTROL before setting DR0..DR3.
6242 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6243 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6244 bits of DR_CONTROL related to the debug register slot being
6245 disabled. If all slots are vacant, clear local slowdown as well,
6246 and assert DR_CONTROL is 0.
6247
6248 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6249
6250 * python/lib/gdb/command/xmethods.py
6251 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6252 current progspace only if the string "progspace" matches LOCUS_RE.
6253
6254 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6255
6256 Fix --with-system-readline with readline-6.3 patch 5.
6257 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6258 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6259 types.
6260
6261 2014-06-20 Tom Tromey <tromey@redhat.com>
6262
6263 * dwarf2read.c (dw2_get_real_path): Use correct type in
6264 OBSTACK_CALLOC.
6265 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6266
6267 2014-06-20 Gary Benson <gbenson@redhat.com>
6268
6269 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6270 * common/glibc_thread_db.h: Likewise.
6271 * common/i386-cpuid.h: Likewise.
6272 * common/i386-gcc-cpuid.h: Likewise.
6273 * common/linux-btrace.h: Likewise.
6274 * common/linux-osdata.h: Likewise.
6275 * common/linux-procfs.h: Likewise.
6276 * common/linux-ptrace.h: Likewise.
6277 * common/mips-linux-watch.h: Likewise.
6278 * common/linux-btrace.c: Moved to nat.
6279 * common/linux-osdata.c: Likewise.
6280 * common/linux-procfs.c: Likewise.
6281 * common/linux-ptrace.c: Likewise.
6282 * common/mips-linux-watch.c: Likewise.
6283 * nat/gdb_thread_db.h: Moved from common.
6284 * nat/glibc_thread_db.h: Likewise.
6285 * nat/i386-cpuid.h: Likewise.
6286 * nat/i386-gcc-cpuid.h: Likewise.
6287 * nat/linux-btrace.c: Likewise.
6288 * nat/linux-btrace.h: Likewise.
6289 * nat/linux-osdata.c: Likewise.
6290 * nat/linux-osdata.h: Likewise.
6291 * nat/linux-procfs.c: Likewise.
6292 * nat/linux-procfs.h: Likewise.
6293 * nat/linux-ptrace.c: Likewise.
6294 * nat/linux-ptrace.h: Likewise.
6295 * nat/mips-linux-watch.c: Likewise.
6296 * nat/mips-linux-watch.h: Likewise.
6297 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6298 (object file files): Reordered.
6299 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6300 of glibc_thread_db.h.
6301
6302 2014-06-20 Gary Benson <gbenson@redhat.com>
6303
6304 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6305 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6306 (i386_dr_low): Likewise.
6307 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6308 (i386_dr_low_set_addr): Likewise.
6309 (i386_dr_low_get_addr): Likewise.
6310 (i386_dr_low_can_set_control): Likewise.
6311 (i386_dr_low_set_control): Likewise.
6312 (i386_dr_low_get_control): Likewise.
6313 (i386_dr_low_get_status): Likewise.
6314 (i386_get_debug_register_length): Likewise.
6315 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6316 (i386_dr_low): Likewise.
6317 * nat/i386-dregs.c (i386-low.h): Remove include.
6318 (i386-nat.h): Likewise.
6319 (nat/i386-dregs.h): New include.
6320 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6321 (i386_dr_low_set_addr): Likewise.
6322 (i386_dr_low_get_addr): Likewise.
6323 (i386_dr_low_can_set_control): Likewise.
6324 (i386_dr_low_set_control): Likewise.
6325 (i386_dr_low_get_control): Likewise.
6326 (i386_dr_low_get_status): Likewise.
6327 (i386_get_debug_register_length): Likewise.
6328 (debug_hw_points): Likewise.
6329
6330 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6331
6332 * Makefile.in (SFILES): Add d-exp.y.
6333 (YYFILES): Add d-exp.c.
6334 (YYOBJ): Add d-exp.o.
6335 (local-maintainer-clean): Delete d-exp.c.
6336 * d-exp.y: New file.
6337 * d-lang.h (d_parse): New declaration.
6338 (d_error): New declaration.
6339 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6340 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6341 PREC_ORDER operators.
6342 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6343
6344 2014-06-19 Yao Qi <yao@codesourcery.com>
6345
6346 * gdbthread.h (any_running): Remove the declaration.
6347 * thread.c (any_running): Remove.
6348
6349 2014-06-19 Yao Qi <yao@codesourcery.com>
6350
6351 * gdbthread.h (struct thread_info) <state>: Change its type to
6352 'enum thread_state'. Update comments.
6353
6354 2014-06-19 Pedro Alves <palves@redhat.com>
6355
6356 * gdbthread.h (ALL_THREADS): Delete.
6357 (ALL_NON_EXITED_THREADS): New macro.
6358 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6359 instead of ALL_THREADS.
6360 * infrun.c (find_thread_needs_step_over)
6361 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6362 instead of ALL_THREADS.
6363 * record-btrace.c (record_btrace_open)
6364 (record_btrace_stop_recording, record_btrace_close)
6365 (record_btrace_is_replaying, record_btrace_resume)
6366 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6367 * remote.c (append_pending_thread_resumptions): Likewise.
6368 * thread.c (thread_apply_all_command): Likewise.
6369
6370 2014-06-19 Gary Benson <gbenson@redhat.com>
6371
6372 * i386-nat.c (i386_stopped_by_watchpoint):
6373 Use i386_dr_stopped_by_watchpoint.
6374 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6375 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6376
6377 2014-06-19 Gary Benson <gbenson@redhat.com>
6378
6379 * nat/i386-dregs.c: New file.
6380 * Makefile.in (i386-dregs.o): New rule.
6381 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6382 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6383 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6384 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6385 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6386 * config/i386/go32.mh (NATDEPFILES): Likewise.
6387 * config/i386/linux.mh (NATDEPFILES): Likewise.
6388 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6389 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6390 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6391 * i386-nat.h (debug_hw_points): New declaration.
6392 * i386-nat.c (breakpoint.h): Remove include.
6393 (command.h): Likewise.
6394 (target.h): Likewise.
6395 (gdb_assert.h): Likewise.
6396 (debug_hw_points): Made nonstatic.
6397 (debug_printf): Now in i386-dregs.c.
6398 (TARGET_HAS_DR_LEN_8): Likewise.
6399 (DR_CONTROL_SHIFT): Likewise.
6400 (DR_CONTROL_SIZE): Likewise.
6401 (DR_RW_EXECUTE): Likewise.
6402 (DR_RW_WRITE): Likewise.
6403 (DR_RW_READ): Likewise.
6404 (DR_RW_IORW): Likewise.
6405 (DR_LEN_1): Likewise.
6406 (DR_LEN_2): Likewise.
6407 (DR_LEN_4): Likewise.
6408 (DR_LEN_8): Likewise.
6409 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6410 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6411 (DR_ENABLE_SIZE): Likewise.
6412 (DR_LOCAL_SLOWDOWN): Likewise.
6413 (DR_GLOBAL_SLOWDOWN): Likewise.
6414 (DR_CONTROL_RESERVED): Likewise.
6415 (I386_DR_CONTROL_MASK): Likewise.
6416 (I386_DR_VACANT): Likewise.
6417 (I386_DR_LOCAL_ENABLE): Likewise.
6418 (I386_DR_GLOBAL_ENABLE): Likewise.
6419 (I386_DR_DISABLE): Likewise.
6420 (I386_DR_SET_RW_LEN): Likewise.
6421 (I386_DR_GET_RW_LEN): Likewise.
6422 (I386_DR_WATCH_HIT): Likewise.
6423 (i386_wp_op_t): Likewise.
6424 (i386_show_dr): Likewise.
6425 (i386_length_and_rw_bits): Likewise.
6426 (i386_insert_aligned_watchpoint): Likewise.
6427 (i386_remove_aligned_watchpoint): Likewise.
6428 (i386_handle_nonaligned_watchpoint): Likewise.
6429 (i386_update_inferior_debug_regs): Likewise.
6430 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6431 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6432 (i386_region_ok_for_watchpoint):
6433 Use i386_dr_region_ok_for_watchpoint.
6434 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6435
6436 2014-06-19 Gary Benson <gbenson@redhat.com>
6437
6438 * i386-nat.c (i386_insert_hw_breakpoint): Use
6439 i386_insert_watchpoint.
6440 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6441
6442 2014-06-19 Gary Benson <gbenson@redhat.com>
6443
6444 * i386-nat.c (i386_dr_show): Renamed to
6445 i386_show_dr and made static. All uses updated.
6446 (i386_dr_length_and_rw_bits): Renamed to
6447 i386_length_and_rw_bits and made static.
6448 All uses updated.
6449 (i386_dr_insert_aligned_watchpoint): Renamed to
6450 i386_insert_aligned_watchpoint and made static.
6451 All uses updated.
6452 (i386_dr_remove_aligned_watchpoint): Renamed to
6453 i386_remove_aligned_watchpoint and made static.
6454 All uses updated.
6455 (i386_dr_update_inferior_debug_regs): Renamed to
6456 i386_update_inferior_debug_regs and made static.
6457 All uses updated.
6458 * nat/i386-dregs.h (i386_dr_show): Removed.
6459 (i386_dr_length_and_rw_bits): Likewise.
6460 (i386_dr_insert_aligned_watchpoint): Likewise.
6461 (i386_dr_remove_aligned_watchpoint): Likewise.
6462 (i386_dr_update_inferior_debug_regs): Likewise.
6463
6464 2014-06-19 Gary Benson <gbenson@redhat.com>
6465
6466 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6467 * configure: Regenerate.
6468 * config.in: Likewise.
6469 * main.c (signal.h): New include.
6470 (setup_alternate_signal_stack): New function.
6471 (captured_main): Call the above.
6472 * cp-support.c (signal.h): New include.
6473 (catch_demangler_crashes): New flag.
6474 (SIGJMP_BUF): New define.
6475 (SIGSETJMP): Likewise.
6476 (SIGLONGJMP): Likewise.
6477 (gdb_demangle_jmp_buf): New static global.
6478 (gdb_demangle_attempt_core_dump): Likewise.
6479 (gdb_demangle_signal_handler): New function.
6480 (gdb_demangle): If catch_demangler_crashes is set, install the
6481 above signal handler before calling bfd_demangle, and restore
6482 the original signal handler afterwards. Display the offending
6483 symbol and call demangler_warning the first time a segmentation
6484 fault is caught.
6485 (_initialize_cp_support): New maint set/show command.
6486
6487 2014-06-19 Gary Benson <gbenson@redhat.com>
6488
6489 * utils.h (resource_limit_kind): New enum.
6490 (can_dump_core): New declaration.
6491 (warn_cant_dump_core): Likewise.
6492 (dump_core): Likewise.
6493 * utils.c (dump_core): Made nonstatic. Added new
6494 parameter "limit_kind".
6495 (can_dump_core): Made nonstatic. Moved printing code to...
6496 (warn_cant_dump_core): New function.
6497 (can_dump_core_warn): Likewise.
6498 (internal_vproblem): Replace calls to can_dump_core with
6499 calls to can_dump_core_warn. Supply new argument to each.
6500
6501 2014-06-19 Gary Benson <gbenson@redhat.com>
6502
6503 * utils.h (demangler_vwarning): New declaration.
6504 (demangler_warning): Likewise.
6505 * utils.c (struct internal_problem)
6506 <user_settable_should_quit>: New field.
6507 <user_settable_should_dump_core>: Likewise
6508 (internal_error_problem): Add values for above new fields.
6509 (internal_warning_problem): Likewise.
6510 (demangler_warning_problem): New static global.
6511 (demangler_vwarning): New function.
6512 (demangler_warning): Likewise.
6513 (add_internal_problem_command): Selectively add commands.
6514 (_initialize_utils): New internal problem command.
6515 * maint.c (maintenance_demangler_warning): New function.
6516 (_initialize_maint_cmds): New command.
6517
6518 2014-06-18 Tom Tromey <tromey@redhat.com>
6519
6520 * f-valprint.c (info_common_command_for_block): Update.
6521 * symtab.h (struct general_symbol_info) <common_block>: Now
6522 const.
6523
6524 2014-06-18 Tom Tromey <tromey@redhat.com>
6525
6526 * symtab.h (struct symtab) <blockvector>: Now const.
6527 * ada-lang.c (ada_add_global_exceptions): Update.
6528 * buildsym.c (augment_type_symtab): Update.
6529 * dwarf2read.c (dw2_lookup_symbol): Update.
6530 * jit.c (finalize_symtab): Update.
6531 * jv-lang.c (add_class_symtab_symbol): Update.
6532 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6533 Update.
6534 * objfiles.c (objfile_relocate1): Update.
6535 * psymtab.c (lookup_symbol_aux_psymtabs)
6536 (maintenance_check_psymtabs): Update.
6537 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6538 Update.
6539 * spu-tdep.c (spu_catch_start): Update.
6540 * symmisc.c (dump_symtab_1): Update.
6541 * symtab.c (lookup_global_symbol_from_objfile)
6542 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6543 (basic_lookup_transparent_type_quick)
6544 (basic_lookup_transparent_type, find_pc_sect_symtab)
6545 (find_pc_sect_line, search_symbols): Update.
6546 * block.c (find_block_in_blockvector): Make "bl" const.
6547 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6548 const.
6549 (blockvector_contains_pc): Make "bv" const.
6550 (block_for_pc_sect): Update.
6551 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6552 (blockvector_contains_pc): Update.
6553 * breakpoint.c (resolve_sal_pc): Update.
6554 * inline-frame.c (block_starting_point_at): Update.
6555
6556 2014-06-18 Tom Tromey <tromey@redhat.com>
6557
6558 * completer.c (complete_line): Make "line_buffer" const.
6559 * completer.h (complete_line): Update.
6560
6561 2014-06-18 Tom Tromey <tromey@redhat.com>
6562
6563 * symtab.c (add_macro_name): Remove unneeded cast.
6564
6565 2014-06-18 Tom Tromey <tromey@redhat.com>
6566
6567 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6568 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6569
6570 2014-06-18 Tom Tromey <tromey@redhat.com>
6571
6572 * probe.c (info_probes_for_ops): Make "arg" const.
6573 * probe.h (info_probes_for_ops): Update.
6574
6575 2014-06-18 Tom Tromey <tromey@redhat.com>
6576
6577 * varobj.c (varobj_create): Update.
6578 * valops.c (value_of_this): Update.
6579 * tracepoint.c (add_local_symbols, scope_info): Update.
6580 * symtab.h (struct general_symbol_info) <block>: Now const.
6581 * symtab.c (skip_prologue_sal)
6582 (default_make_symbol_completion_list_break_on)
6583 (skip_prologue_using_sal): Update.
6584 * stack.h (iterate_over_block_locals)
6585 (iterate_over_block_local_vars): Update.
6586 * stack.c (print_frame_args): Update.
6587 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6588 parameter const.
6589 (get_selected_block): Make return type const.
6590 * python/py-frame.c (frapy_block): Update.
6591 * python/py-block.c (gdbpy_block_for_pc): Update.
6592 * p-exp.y (%union) <bval>: Now const.
6593 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6594 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6595 * m2-exp.y (%union) <bval>: Now const.
6596 * linespec.c (get_current_search_block): Make return type const.
6597 (create_sals_line_offset, find_label_symbols): Update.
6598 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6599 Update.
6600 (block_starting_point_at): Make "block" const.
6601 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6602 (check_exception_resume): Update.
6603 * guile/scm-frame.c (gdbscm_frame_block): Update.
6604 * guile/scm-block.c (gdbscm_lookup_block): Update.
6605 * frame.h (get_frame_block): Update.
6606 (get_selected_block): Make return type const.
6607 * frame.c (frame_id_inner): Update.
6608 * f-valprint.c (info_common_command_for_block)
6609 (info_common_command): Update.
6610 * dwarf2loc.c (dwarf2_find_location_expression)
6611 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6612 (locexpr_describe_location_piece): Update.
6613 * c-exp.y (%union) <bval>: Now const.
6614 * breakpoint.c (resolve_sal_pc): Update.
6615 * blockframe.c (get_frame_block):Make return type const.
6616 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6617 (block_innermost_frame): Update.
6618 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6619 (block_for_pc, block_for_pc_sect): Update.
6620 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6621 'pblock' const.
6622 (block_for_pc_sect, block_for_pc): Make return type const.
6623 * ax-gdb.c (gen_expr): Update.
6624 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6625 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6626 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6627 (ada_read_var_value): Update.
6628 * ada-exp.y (struct name_info) <block>: Now const.
6629 (%union): Likewise.
6630 (block_lookup): Constify.
6631
6632 2014-06-18 Gary Benson <gbenson@redhat.com>
6633
6634 * nat/i386-dregs.h: New file.
6635 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6636 * i386-nat.h (i386-dregs.h): New include.
6637 (DR_FIRSTADDR): Now in i386-dregs.h.
6638 (DR_LASTADDR): Likewise.
6639 (DR_NADDR): Likewise.
6640 (DR_STATUS): Likewise.
6641 (DR_CONTROL): Likewise.
6642 (i386_debug_reg_state): Likewise.
6643 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6644
6645 2014-06-18 Don Breazeal <donb@codesourcery.com>
6646
6647 * breakpoint.c (set_longjmp_breakpoint): Call
6648 momentary_breakpoint_from_master with additional argument.
6649 (set_longjmp_breakpoint_for_call_dummy): Call
6650 momentary_breakpoint_from_master with additional argument.
6651 (set_std_terminate_breakpoint): Call
6652 momentary_breakpoint_from_master with additional argument.
6653 (momentary_breakpoint_from_master): Add argument to function
6654 definition and use it to initialize structure member flag.
6655 (clone_momentary_breakpoint): Call
6656 momentary_breakpoint_from_master with additional argument.
6657 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6658 member flags set in momentary_breakpoint_from_master.
6659
6660 2014-06-18 Gary Benson <gbenson@redhat.com>
6661
6662 * i386-nat.c (i386_show_dr): Renamed to
6663 i386_dr_show and made nonstatic. All uses updated.
6664 (i386_length_and_rw_bits): Renamed to
6665 i386_dr_length_and_rw_bits and made nonstatic.
6666 All uses updated.
6667 (i386_insert_aligned_watchpoint): Renamed to
6668 i386_dr_insert_aligned_watchpoint and made nonstatic.
6669 All uses updated.
6670 (i386_remove_aligned_watchpoint): Renamed to
6671 i386_dr_remove_aligned_watchpoint and made nonstatic.
6672 All uses updated.
6673 (i386_update_inferior_debug_regs): Renamed to
6674 i386_dr_update_inferior_debug_regs and made nonstatic.
6675 All uses updated.
6676
6677 2014-06-18 Gary Benson <gbenson@redhat.com>
6678
6679 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6680 (i386_dr_low_can_set_control): Likewise.
6681 (i386_dr_low_set_addr): Likewise.
6682 (i386_dr_low_set_control): Likewise.
6683 (i386_dr_low_get_addr): Likewise.
6684 (i386_dr_low_get_status): Likewise.
6685 (i386_dr_low_get_control): Likewise.
6686 (i386_insert_aligned_watchpoint): Use new macros.
6687 (i386_update_inferior_debug_regs): Likewise.
6688 (i386_stopped_data_address): Likewise.
6689
6690 2014-06-18 Gary Benson <gbenson@redhat.com>
6691
6692 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6693 New parameter. All uses updated.
6694
6695 2014-06-18 Gary Benson <gbenson@redhat.com>
6696
6697 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6698 All uses updated.
6699
6700 2014-06-18 Gary Benson <gbenson@redhat.com>
6701
6702 * i386-nat.c (debug_printf): New macro.
6703 (i386_get_debug_register_length): Likewise.
6704 (TARGET_HAS_DR_LEN_8): Use above macro.
6705 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6706 and printf_unfiltered. Use phex to format values.
6707
6708 2014-06-18 Gary Benson <gbenson@redhat.com>
6709
6710 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6711 Make const.
6712
6713 2014-06-18 Gary Benson <gbenson@redhat.com>
6714
6715 * i386-nat.c: Comment changes.
6716
6717 2014-06-18 Gary Benson <gbenson@redhat.com>
6718
6719 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6720
6721 2014-06-18 Gary Benson <gbenson@redhat.com>
6722
6723 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6724 (i386_insert_aligned_watchpoint): Likewise.
6725 (i386_remove_aligned_watchpoint): Likewise.
6726 (i386_handle_nonaligned_watchpoint): Likewise.
6727
6728 2014-06-18 Gary Benson <gbenson@redhat.com>
6729
6730 * i386-nat.c: Whitespace changes.
6731
6732 2014-06-17 Samuel Bronson <naesten@gmail.com>
6733
6734 * MAINTAINERS: Update Roland McGrath's email address.
6735 Thanks to Sergio Durigan Junior for pointing out that he left
6736 Red Hat a while ago, and giving me a current address.
6737
6738 2014-06-17 Tom Tromey <tromey@redhat.com>
6739
6740 * utils.h (savestring): Remove declaration.
6741
6742 2014-06-17 Tom Tromey <tromey@redhat.com>
6743
6744 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6745
6746 2014-06-16 Keith Seitz <keiths@redhat.com>
6747
6748 PR mi/15863
6749 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6750 to update the varobj if inferior_ptid is null_ptid.
6751
6752 2014-06-16 Tom Tromey <tromey@redhat.com>
6753
6754 * target.h (struct target_ops) <to_info_proc>: Make parameter
6755 const.
6756 (target_info_proc): Update.
6757 * target.c (target_info_proc): Make "args" const.
6758 * procfs.c (procfs_info_proc): Update.
6759 * linux-tdep.c (linux_info_proc): Update.
6760 (linux_core_info_proc_mappings): Make "args" const.
6761 (linux_core_info_proc): Update.
6762 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6763 * gdbarch.c: Rebuild.
6764 * gdbarch.h: Rebuild.
6765 * corelow.c (core_info_proc): Update.
6766
6767 2014-06-16 Tom Tromey <tromey@redhat.com>
6768
6769 * target.h (struct target_ops) <to_disconnect>: Make parameter
6770 const.
6771 (target_disconnect): Update.
6772 * target.c (target_disconnect): Make "args" const.
6773 * target-delegates.c: Rebuild.
6774 * remote.c (remote_disconnect): Update.
6775 * record.h (record_disconnect): Update.
6776 * record.c (record_disconnect): Update.
6777 * inf-child.c (inf_child_disconnect): Update.
6778
6779 2014-06-16 Tom Tromey <tromey@redhat.com>
6780
6781 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6782 * target.c (debug_to_rcmd, default_rcmd): Update.
6783 * target-delegates.c: Rebuild.
6784 * remote.c (remote_rcmd): Update.
6785 * monitor.c (monitor_rcmd): Update.
6786
6787 2014-06-16 Pedro Alves <palves@redhat.com>
6788
6789 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6790 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6791 have OBJF_SHARED set.
6792 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6793 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6794 instead of OBJF_USERLOADED.
6795 * objfiles.h (OBJF_SHARED): Update comment.
6796 (userloaded_objfile_contains_address_p): Rename to ...
6797 (shared_objfile_contains_address_p): ... this, and update
6798 comments.
6799 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6800 new objfile.
6801 (remove_symbol_file_command): Skip objfiles that don't have
6802 OBJF_SHARED set.
6803
6804 2014-06-16 Tom Tromey <tromey@redhat.com>
6805
6806 * minsyms.h (prim_record_minimal_symbol)
6807 (prim_record_minimal_symbol_and_info): Update comments.
6808
6809 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6810
6811 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6812 or --without-guile, according to how GDB was built.
6813
6814 2014-06-13 Tom Tromey <tromey@redhat.com>
6815
6816 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6817 to help_list.
6818 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6819 to help_list.
6820 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6821 help_list.
6822 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6823 help_list.Pass all_commands, not -1, to help_list.
6824 * cli/cli-dump.c (dump_command, append_command)
6825 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6826 (binary_dump_command, binary_append_command): Pass all_commands,
6827 not -1, to help_list.
6828 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6829 -1, to help_list.
6830 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6831 -1, to help_list.
6832 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6833 help_list.
6834 * top.c (set_history): Pass all_commands, not -1, to help_list.
6835 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6836 all_commands, not -1, to help_list.
6837 * symfile.c (overlay_command): Pass all_commands, not -1, to
6838 help_list.
6839 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6840 help_list.
6841 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6842 help_list.
6843 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6844 -1, to help_list.
6845 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6846 not -1, to help_list.
6847 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6848 not -1, to help_list.
6849 * maint.c (maintenance_command, maintenance_info_command)
6850 (maintenance_print_command, maintenance_set_cmd): Pass
6851 all_commands, not -1, to help_list.
6852 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6853 help_list.
6854 * language.c (set_check): Pass all_commands, not -1, to help_list.
6855 * infcmd.c (unset_command): Pass all_commands, not -1, to
6856 help_list.
6857 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6858 help_list.
6859 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6860 help_list.
6861 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6862 help_list.
6863 * breakpoint.c (save_command): Pass all_commands, not -1, to
6864 help_list.
6865 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6866 all_commands, not -1, to help_list.
6867
6868 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6869
6870 * regcache.c (struct register_to_invalidate): New structure.
6871 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6872 functions.
6873 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6874
6875 2014-06-12 Yao Qi <yao@codesourcery.com>
6876
6877 * varobj.c (varobj_get_num_children): Call
6878 varobj_is_dynamic_p.
6879 (varobj_list_children): Likewise.
6880 (varobj_update): Likewise. Update comments.
6881
6882 2014-06-12 Yao Qi <yao@codesourcery.com>
6883
6884 * varobj.c (varobj_pretty_printed_p): Rename to ...
6885 (varobj_is_dynamic_p): ... this. New function.
6886 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6887 (varobj_is_dynamic_p): Declare.
6888 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6889 (mi_print_value_p, varobj_update_one): Likewise.
6890
6891 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6892 Yao Qi <yao@codesourcery.com>
6893
6894 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6895 (varobj_get_iterator): Wrap up code for pretty-printer by
6896 "#if HAVE_PYTHON" and "#endif".
6897 (update_dynamic_varobj_children): Likewise.
6898
6899 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6900 Yao Qi <yao@codesourcery.com>
6901
6902 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6903 gdb_python_initialized is false. Move some code from varobj.c.
6904 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6905 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6906 (struct varobj_item): Moved to varobj-iter.h".
6907 (varobj_clear_saved_item): New function.
6908 (update_dynamic_varobj_children): Move python-related code to
6909 py-varobj.c.
6910 (free_variable): Call varobj_clear_saved_item and
6911 varobj_iter_delete.
6912
6913 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6914 Yao Qi <yao@codesourcery.com>
6915
6916 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6917 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6918 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6919 (py-varobj.o): New rule.
6920 * python/py-varobj.c: New file.
6921 * python/python-internal.h (py_varobj_get_iterator): Declare.
6922 * varobj-iter.h: New file.
6923 * varobj.c: Include "varobj-iter.h"
6924 (struct varobj) <child_iter>: Change its type from "PyObject *"
6925 to "struct varobj_iter *".
6926 <saved_item>: Likewise.
6927 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6928 [HAVE_PYTHON] (varobj_get_iterator): New function.
6929 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6930 python-specific code to python/py-varobj.c.
6931 (install_visualizer): Call varobj_iter_delete instead of
6932 Py_XDECREF.
6933 * varobj.h (varobj_ensure_python_env): Declare.
6934
6935 2014-06-12 Yao Qi <yao@codesourcery.com>
6936
6937 * varobj.c (struct varobj_item): New structure.
6938 (create_child_with_value): Update declaration.
6939 (varobj_add_child): Replace arguments 'name' and 'value' with
6940 'item'. All callers updated.
6941 (install_dynamic_child): Likewise.
6942 (update_dynamic_varobj_children): Likewise.
6943 (varobj_add_child): Likewise.
6944 (create_child_with_value): Likewise.
6945
6946 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6947
6948 * NEWS: Create a new section for the next release branch.
6949 Rename the section of the current branch, now that it has
6950 been cut.
6951
6952 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6953
6954 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6955 * version.in: Bump version to 7.8.50.DATE-cvs.
6956
6957 2014-06-11 Pedro Alves <palves@redhat.com>
6958
6959 PR remote/17028
6960 * ser-mingw.c (net_windows_socket_check_pending): New function.
6961 (net_windows_select_thread): Ignore spurious wakeups. Use
6962 net_windows_socket_check_pending.
6963 (net_windows_wait_handle): Check for pending events with
6964 ioctlsocket, through net_windows_socket_check_pending, instead of
6965 checking the socket's event.
6966
6967 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6968
6969 * python/python-internal.h (gdb_PyObject_GetAttrString)
6970 (gdb_PyObject_HasAttrString): New inline function definitions.
6971 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6972 char * of the second argument to PyObject_GetAttrString.
6973
6974 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6975
6976 * serial.c (serial_write): Fix index of character to be printed
6977 in call to serial_logchar when serial debug traces are enabled.
6978
6979 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6980
6981 * gdbtypes (resolve_dynamic_range): Add function description.
6982
6983 2014-06-09 Pedro Alves <palves@redhat.com>
6984
6985 * linux-nat.c (linux_child_follow_fork): Initialize status with
6986 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6987 inner block. Only pass the signal to PTRACE_DETACH if in pass
6988 state.
6989
6990 2014-06-09 Gary Benson <gbenson@redhat.com>
6991
6992 * common/signals.c (gdb_signal_from_host): Reorder to separate
6993 the always-available ANSI-standard signals from the signals that
6994 require checking.
6995 (do_gdb_signal_to_host): Likewise.
6996 * proc-events.c (signal_table): Likewise.
6997
6998 2014-06-08 Hui Zhu <hui@codesourcery.com>
6999
7000 * common/linux-ptrace.c (linux_disable_event_reporting): New
7001 function.
7002 * common/linux-ptrace.h (linux_disable_event_reporting): New
7003 declaration.
7004 * linux-nat.c (linux_child_follow_fork): Do a single step before
7005 detach.
7006
7007 2014-06-07 Keith Seitz <keiths@redhat.com>
7008
7009 Revert:
7010 PR c++/16253
7011 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7012 from symbol_matches_domain in symtab.c. All local callers
7013 of symbol_matches_domain updated.
7014 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7015 search STRUCT_DOMAIN.
7016 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7017 independently. standard_lookup will do that automatically.
7018 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7019 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7020 (cp_lookup_symbol_in_namespace): Likewise.
7021 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7022 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7023 may return a STRUCT_DOMAIN match.
7024 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7025 * cp-support.c: Include language.h.
7026 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7027 VAR_DOMAIN.
7028 * psymtab.c (match_partial_symbol): Compare the requested
7029 domain with the symbol's domain directly.
7030 (lookup_partial_symbol): Likewise.
7031 * symtab.c (lookup_symbol_in_language): Explain when/why
7032 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7033 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7034 appropriate languages.
7035 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7036 and moved to ada-lang.c
7037 (lookup_block_symbol): Explain that this function only returns
7038 symbol matching the requested DOMAIN.
7039 Compare the requested domain with the symbol's domain directly.
7040 (iterate_over_symbols): Compare the requested domain with the
7041 symbol's domain directly.
7042 * symtab.h (symbol_matches_domain): Remove.
7043
7044 2014-06-06 Doug Evans <xdje42@gmail.com>
7045
7046 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7047 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7048 (gdbscm_guile_version_is_at_least): Declare.
7049 (gdbscm_scm_string_to_int): Declare.
7050 * guile/guile.c (gdbscm_guile_major_version): New global.
7051 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7052 (guile_datadir): New static global.
7053 (gdbscm_guile_data_directory): New function.
7054 (initialize_scheme_side): Update.
7055 (misc_guile_functions): Add guile-data-directory.
7056 (initialize_gdb_module): Fetch guile version number.
7057 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7058 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7059 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7060 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7061 comments.
7062 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7063 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7064 * guile/scm-value.c (gdbscm_value_to_string): Only call
7065 scm_port_conversion_strategy if Guile version >= 2.0.6.
7066
7067 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7068
7069 * main.c (print_gdb_help): Add -q and --silent.
7070
7071 2014-06-06 Gary Benson <gbenson@redhat.com>
7072
7073 * common/signals.c: Remove preprocessor conditionals for
7074 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7075 SIGSEGV and SIGTERM.
7076 * proc-events.c: Likewise.
7077
7078 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7079
7080 * symfile.c (symfile_free_objfile): Remove restriction to
7081 OBJF_USERLOADED.
7082 * symfile-mem.c (symbol_file_add_from_memory): Call
7083 add_target_sections_of_objfile.
7084
7085 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7086
7087 * guile/scm-value.c (gdbscm_history_append_x): Use
7088 'vlscm_get_value_smob_arg_unsafe' instead of
7089 'vlscm_scm_to_value'.
7090
7091 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 PR mi/15806
7094 * utils.c (printchar): Don't escape at all if quoter is NUL.
7095 Update function documentation to clarify effect of parameter
7096 QUOTER.
7097 * remote.c (escape_buffer): Pass '\\' as the quoter to
7098 fputstrn_unfiltered.
7099 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7100 generate the output.
7101 (mi_solib_unloaded): Same.
7102
7103 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7104
7105 * development.sh: Delete.
7106 * Makefile.in (config.status): Adjust dependency on development.sh.
7107 * configure.ac: Adjust development.sh source call.
7108 * configure: Regenerate.
7109
7110 2014-06-04 Doug Evans <xdje42@gmail.com>
7111
7112 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7113 is_scheme_bkpt, spec.
7114 (bpscm_make_breakpoint_smob): Initialize new members.
7115 (gdbscm_create_breakpoint_x): Split into two ...
7116 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7117 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7118 (scheme_function breakpoint_functions): Update.
7119 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7120 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7121 register-breakpoint!.
7122
7123 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7124
7125 PR server/17023
7126 * mem-break.c (z_type_supported): Return zero if
7127 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7128
7129 2014-06-04 Tom Tromey <tromey@redhat.com>
7130
7131 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7132 value_from_contents_and_address_unresolved.
7133 (ada_template_to_fixed_record_type_1): Likewise.
7134 (ada_which_variant_applies): Likewise.
7135 * value.h (value_from_contents_and_address_unresolved): Declare.
7136 * value.c (value_from_contents_and_address_unresolved): New
7137 function.
7138 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7139 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7140 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7141
7142 2014-06-04 Tom Tromey <tromey@redhat.com>
7143
7144 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7145
7146 2014-06-04 Tom Tromey <tromey@redhat.com>
7147
7148 * procfs.c (procfs_attach): Make "args" const.
7149 * windows-nat.c (windows_attach): Make "args" const.
7150 * nto-procfs.c (procfs_attach): Make "args" const.
7151 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7152 * go32-nat.c (go32_attach): Make "args" const.
7153 * gnu-nat.c (gnu_attach): Make "args" const.
7154 * darwin-nat.c (darwin_attach): Make "args" const.
7155 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7156 * linux-nat.c (linux_nat_attach): Make "args" const.
7157 * remote.c (extended_remote_attach_1, extended_remote_attach):
7158 Make "args" const.
7159 * target.h (struct target_ops) <to_attach>: Make "args" const.
7160 (find_default_attach): Likewise.
7161 * utils.c (parse_pid_to_attach): Make "args" const.
7162 * utils.h (parse_pid_to_attach): Update.
7163
7164 2014-06-04 Tom Tromey <tromey@redhat.com>
7165
7166 * target-delegates.c: Rebuild.
7167 * target.c (default_thread_address_space): New function.
7168 (target_thread_address_space): Simplify.
7169 * target.h (struct target_ops) <to_thread_address_space>: Add
7170 TARGET_DEFAULT_FUNC.
7171
7172 2014-06-04 Doug Evans <xdje42@gmail.com>
7173
7174 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7175
7176 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7177
7178 * record-btrace.c: Include event-loop.h and inf-loop.h.
7179 (record_btrace_resume_exec_dir)
7180 (record_btrace_async_inferior_event_handler)
7181 (record_btrace_handle_async_inferior_event): New.
7182 (record_btrace_open): Create async event handler.
7183 (record_btrace_close): Delete async event handler.
7184 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7185 Mark async event handler.
7186 (record_btrace_execution_direction): New.
7187 (init_record_btrace_ops): Initialize to_execution_direction.
7188
7189 2014-06-03 Doug Evans <xdje42@gmail.com>
7190
7191 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7192 (gdbscm_make_parameter): Ditto.
7193
7194 2014-06-03 Doug Evans <dje@google.com>
7195
7196 * exec.c (exec_close_1): Call clear_section_table instead of
7197 resize_section_table.
7198 (clear_section_table): New function.
7199 (resize_section_table): Make static. Rename arg num_added to
7200 adjustment.
7201 * exec.h (clear_section_table): Declare.
7202 (resize_section_table): Delete.
7203 * progspace.c (release_program_space): Call clear_section_table
7204 instead of resize_section_table.
7205
7206 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7207
7208 * NEWS (Python Scripting): Add entry about the new xmethods
7209 feature.
7210
7211 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7212
7213 * python/py-xmethods.c: New file.
7214 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7215 (objfpy_dealloc): XDECREF on the new xmethods field.
7216 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7217 field.
7218 (objfpy_get_xmethods): New function.
7219 (objfile_getset): New entry 'xmethods'.
7220 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7221 (pspy_dealloc): XDECREF on the new xmethods field.
7222 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7223 field.
7224 (pspy_get_xmethods): New function.
7225 (pspace_getset): New entry 'xmethods'.
7226 * python/python-internal.h: Add declarations for new functions.
7227 * python/python.c (_initialize_python): Invoke
7228 gdbpy_initialize_xmethods.
7229 * python/lib/gdb/__init__.py (xmethods): New
7230 attribute.
7231 * python/lib/gdb/xmethod.py: New file.
7232 * python/lib/gdb/command/xmethods.py: New file.
7233
7234 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7235
7236 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7237 best match method returned by find_overload_match is an xmethod.
7238 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7239 the best matching operator returned by find_overload_match is an
7240 xmethod.
7241 * valops.c: #include "extension.h".
7242 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7243 Return void. The list of matching source methods is returned in
7244 "fn_list" and a vector of matching debug method workers is
7245 returned in "xm_worker_vec". Update all callers.
7246 (value_find_oload_method_list): Likewise.
7247 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7248 non-NULL, then the index of the best matching method in this
7249 vector is returned. Update all callers.
7250 (find_overload_match): Include xmethods while performing overload
7251 resolution.
7252
7253 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7254
7255 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7256 * extension-priv.h (struct extension_language_ops): Add the
7257 xmethod interface.
7258 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7259 get_matching_xmethod_workers, get_xmethod_argtypes,
7260 invoke_xmethod, free_xmethod_worker,
7261 free_xmethod_worker_vec): New functions.
7262 * extension.h: #include "common/vec.h".
7263 New function declarations.
7264 (struct xmethod_worker): New struct.
7265 (VEC (xmethod_worker_ptr)): New vector type.
7266 (xmethod_worker_ptr): New typedef.
7267 (xmethod_worker_vec): Likewise.
7268 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7269 builtin_type.
7270 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7271 (struct builtin_type): New field "xmethod".
7272 * valarith.c (value_ptradd): Assert that the value argument is not
7273 lval_xcallable.
7274 * valops.c (value_must_coerce_to_target): Return 0 for
7275 lval_xcallable values.
7276 * value.c (struct value): New field XM_WORKER in the field
7277 LOCATION.
7278 (value_address, value_raw_address): Return 0 for lval_xcallable
7279 values.
7280 (set_value_address): Assert that the value is not an
7281 lval_xcallable.
7282 (value_free): Free the associated xmethod worker when freeing
7283 lval_xcallable values.
7284 (set_value_component_location): Assert that the WHOLE value is not
7285 lval_xcallable.
7286 (value_of_xmethod, call_xmethod): New functions.
7287 * value.h: Declare "struct xmethod_worker".
7288 Declare new functions value_of_xmethod, call_xmethod.
7289
7290 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7291 Pedro Alves <palves@redhat.com>
7292
7293 PR breakpoints/17000
7294 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7295 New function, extracted from software_breakpoint_inserted_here_p.
7296 (software_breakpoint_inserted_here_p): Replace factored out code
7297 by call to find_non_raw_software_breakpoint_inserted_here.
7298 (bp_target_info_copy_insertion_state): New function.
7299 (bkpt_insert_location): Handle the case of a single-step
7300 breakpoint already inserted at the same address.
7301 (bkpt_remove_location): Handle the case of a single-step
7302 breakpoint still inserted at the same address.
7303 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7304 breakpoint already inserted at the same address.
7305 (deprecated_remove_raw_breakpoint): Handle the case of a
7306 non-raw breakpoint still inserted at the same address.
7307 (find_single_step_breakpoint): New function, extracted from
7308 single_step_breakpoint_inserted_here_p.
7309 (find_single_step_breakpoint): New function,
7310 factored out from single_step_breakpoint_inserted_here_p.
7311 (single_step_breakpoint_inserted_here_p): Reimplement.
7312
7313 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7314
7315 Pushed by Joel Brobecker <brobecker@adacore.com>
7316 * source.c (show_substitute_path_command): Fix display of matching
7317 substitution rules.
7318
7319 2014-06-03 Gary Benson <gbenson@redhat.com>
7320
7321 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7322
7323 2014-06-02 Doug Evans <xdje42@gmail.com>
7324
7325 Add parameter support for Guile.
7326 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7327 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7328 (scm-param.o): New rule.
7329 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7330 (gdbscm_misc_error): Declare.
7331 (gdbscm_canonicalize_command_name): Declare.
7332 (gdbscm_scm_to_host_string): Declare.
7333 (gdbscm_scm_from_host_string): Declare.
7334 (gdbscm_initialize_parameters): Declare.
7335 * guile/guile.c (initialize_gdb_module): Call
7336 gdbscm_initialize_parameters.
7337 * guile/lib/gdb.scm: Export parameter symbols.
7338 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7339 cmdscm_canonicalize_name and made public. All callers updated.
7340 * guile/scm-exception.c (gdbscm_misc_error): New function.
7341 * guile/scm-param.c: New file.
7342 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7343 (gdbscm_scm_to_host_string): New function.
7344 (gdbscm_scm_from_host_string): New function.
7345 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7346
7347 2014-06-02 Doug Evans <xdje42@gmail.com>
7348
7349 Add command support for Guile.
7350 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7351 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7352 (scm-cmd.o): New rule.
7353 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7354 (gdbscm_user_error_p): Declare.
7355 (gdbscm_parse_command_name): Declare.
7356 (gdbscm_valid_command_class_p): Declare.
7357 (gdbscm_initialize_commands): Declare.
7358 * guile/guile.c (initialize_gdb_module): Call
7359 gdbscm_initialize_commands.
7360 * guile/lib/gdb.scm: Export command symbols.
7361 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7362 (throw-user-error): New function.
7363 * guile/scm-cmd.c: New file.
7364 * guile/scm-exception.c (user_error_symbol): New static global.
7365 (gdbscm_user_error_p): New function.
7366 (gdbscm_initialize_exceptions): Set user_error_symbol.
7367 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7368
7369 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7370
7371 * top.c (command_loop): Handle comments here...
7372 (command_line_input): ... not here.
7373
7374 2014-06-02 Doug Evans <xdje42@gmail.com>
7375
7376 Add progspace support for Guile.
7377 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7378 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7379 (scm-progspace.o): New rule.
7380 * guile/guile-internal.h (pspace_smob): New typedef.
7381 (psscm_pspace_smob_pretty_printers): Declare.
7382 (psscm_pspace_smob_from_pspace): Declare.
7383 (psscm_scm_from_pspace): Declare.
7384 * guile/guile.c (initialize_gdb_module): Call
7385 gdbscm_initialize_pspaces.
7386 * guile/lib/gdb.scm: Export progspace symbols.
7387 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7388 support.
7389 (append-pretty-printer!): Ditto.
7390 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7391 Implement.
7392 * guile/scm-progspace.c: New file.
7393
7394 2014-06-03 Alan Modra <amodra@gmail.com>
7395
7396 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7397 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7398
7399 2014-06-02 Doug Evans <dje@google.com>
7400
7401 Add support for skeletonless type units.
7402 * dwarf2read.c (struct dwarf2_per_objfile): New member
7403 n_allocated_type_units.
7404 (struct dwarf2_per_objfile) <tu_stats>: New member
7405 nr_all_type_units_reallocs.
7406 (create_signatured_type_table_from_index): Initialize
7407 n_allocated_type_units
7408 (create_all_type_units): Ditto.
7409 (add_type_unit): Move up in file. New arg slot.
7410 All callers updated. Increase space for all_type_units more
7411 efficiently.
7412 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7413 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7414 (lookup_dwp_signatured_type): Ditto.
7415 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7416 All callers updated.
7417 (build_type_psymtabs_1): Leave type_unit_groups as
7418 NULL if no TUs present.
7419 (print_tu_stats): New function.
7420 (process_skeletonless_type_unit): New function.
7421 (process_dwo_file_for_skeletonless_type_units): New
7422 function.
7423 (process_skeletonless_type_units): New function.
7424 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7425 Call print tu_stats if debugging enabled.
7426
7427 2014-06-02 Pedro Alves <palves@redhat.com>
7428
7429 * breakpoint.c (build_target_command_list): Don't build a command
7430 list if we have any duplicate location that isn't a dprintf.
7431
7432 2014-06-02 Pedro Alves <palves@redhat.com>
7433
7434 * breakpoint.c (dprintf_breakpoint_hit): New function.
7435 (initialize_breakpoint_ops): Install it as dprintf's
7436 breakpoint_hit method.
7437
7438 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7439
7440 * source.c (substitute_path_rule_matches): Simplify using
7441 filename_ncmp instead of FILENAME_CMP.
7442
7443 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7444
7445 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7446
7447 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7448
7449 * configure.ac: When Guile is available, check for the
7450 availability of 'scm_new_smob'.
7451 * configure, config.h.in: Regenerate.
7452 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7453 function.
7454
7455 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7456
7457 * frame.c (struct frame_info): Add stop_string field.
7458 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7459 (get_prev_frame_always): Old content moved into
7460 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7461 TRY_CATCH, handle MEMORY_ERROR exceptions.
7462 (frame_stop_reason_string): New function definition.
7463 * frame.h (unwind_stop_reason_to_string): Extend comment to
7464 mention frame_stop_reason_string.
7465 (frame_stop_reason_string): New function declaration.
7466 * stack.c (frame_info): Switch to frame_stop_reason_string.
7467 (backtrace_command_1): Switch to frame_stop_reason_string.
7468 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7469 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7470 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7471
7472 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7473
7474 * frame.c (frame_stop_reason_string): Rename to ...
7475 (unwind_stop_reason_to_string): this.
7476 * frame.h (frame_stop_reason_string): Rename to ...
7477 (unwind_stop_reason_to_string): this.
7478 * stack.c (frame_info): Update call to frame_stop_reason_string.
7479 (backtrace_command_1): Likewise.
7480 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7481 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7482
7483 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7484
7485 * frame.c (remove_prev_frame): New function.
7486 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7487 remove_prev_frame.
7488
7489 2014-05-29 Pedro Alves <palves@redhat.com>
7490
7491 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7492 and make it const. When a single-step decays to a continue,
7493 clear 'step', not 'hw_step'. Pass whether the caller wanted
7494 to step to user_visible_resume_ptid, not what we ask the
7495 target to do.
7496
7497 2014-05-29 Pedro Alves <palves@redhat.com>
7498
7499 * infrun.c (process_event_stop_test, handle_step_into_function)
7500 (handle_step_into_function_backward): Adjust.
7501 Don't set the even thread's stop_step and call stop_waiting before
7502 calling end_stepping_range. Instead do that ...
7503 (end_stepping_range): ... here. Take an ecs pointer parameter.
7504
7505 2014-05-29 Pedro Alves <palves@redhat.com>
7506
7507 * infrun.c (stop_stepping): Rename to ...
7508 (stop_waiting): ... this.
7509 (proceed): Update comment.
7510 (process_event_stop_test, handle_inferior_event)
7511 (handle_signal_stop, handle_step_into_function)
7512 (handle_step_into_function_backward): Update.
7513
7514 2014-05-29 Pedro Alves <palves@redhat.com>
7515
7516 * infcall.c (run_inferior_call): Don't check whether the current
7517 thread is running after the proceed call.
7518
7519 2014-05-29 Pedro Alves <palves@redhat.com>
7520 Tom Tromey <tromey@redhat.com>
7521
7522 * NEWS: Mention "maint set target-async", "set mi-async", and that
7523 background execution commands are now always available.
7524 * target.h (target_async_permitted): Update comment.
7525 * target.c (target_async_permitted, target_async_permitted_1):
7526 Default to 1.
7527 (set_target_async_command): Rename to ...
7528 (maint_set_target_async_command): ... this.
7529 (show_target_async_command): Rename to ...
7530 (maint_show_target_async_command): ... this.
7531 (_initialize_target): Adjust.
7532 * infcmd.c (prepare_execution_command): Make extern.
7533 * inferior.h (prepare_execution_command): Declare.
7534 * infrun.c (set_observer_mode): Leave target async alone.
7535 * mi/mi-interp.c (mi_interpreter_init): Install
7536 mi_on_sync_execution_done as sync_execution_done observer.
7537 (mi_on_sync_execution_done): New function.
7538 (mi_execute_command_input_handler): Don't print the prompt if we
7539 just started a synchronous command with an async target.
7540 (mi_on_resume): Check sync_execution before printing prompt.
7541 * mi/mi-main.h (mi_async_p): Declare.
7542 * mi/mi-main.c: Include gdbcmd.h.
7543 (mi_async_p): New function.
7544 (mi_async, mi_async_1): New globals.
7545 (set_mi_async_command, show_mi_async_command, mi_async): New
7546 functions.
7547 (exec_continue): Call prepare_execution_command.
7548 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7549 (mi_execute_async_cli_command): Use mi_async_p.
7550 (_initialize_mi_main): Install "set mi-async". Make
7551 "target-async" a deprecated alias.
7552
7553 2014-05-29 Pedro Alves <palves@redhat.com>
7554
7555 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7556 (_initialize_cli_interp): Adjust.
7557 * event-loop.c: Include "observer.h".
7558 (start_event_loop): Notify 'command_error' observers instead of
7559 calling display_gdb_prompt. Remove FIXME comment.
7560 * event-top.c (display_gdb_prompt): Remove call into the
7561 interpreters.
7562 * inf-loop.c: Include "observer.h".
7563 (inferior_event_handler): Notify 'command_error' observers instead
7564 of calling display_gdb_prompt.
7565 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7566 observers instead of calling display_gdb_prompt.
7567 * interps.c (interp_set): Don't call display_gdb_prompt.
7568 (current_interp_display_prompt_p): Delete.
7569 * interps.h (interp_prompt_p): Delete declaration.
7570 (interp_prompt_p_ftype): Delete.
7571 (struct interp_procs) <prompt_proc_p>: Delete field.
7572 (current_interp_display_prompt_p): Delete declaration.
7573 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7574 (_initialize_mi_interp): Adjust.
7575 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7576 'command_error' observers.
7577 (tui_on_sync_execution_done, tui_on_command_error): New
7578 functions.
7579 (tui_display_prompt_p): Delete.
7580 (_initialize_tui_interp): Adjust.
7581
7582 2014-05-29 Pedro Alves <palves@redhat.com>
7583
7584 PR gdb/13860
7585 * cli/cli-interp.c: Include infrun.h and observer.h.
7586 (cli_uiout, cli_interp): New globals.
7587 (cli_on_signal_received, cli_on_end_stepping_range)
7588 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7589 functions.
7590 (cli_interpreter_init): Install them as 'end_stepping_range',
7591 'signal_received' 'signal_exited', 'exited' and 'no_history'
7592 observers.
7593 (_initialize_cli_interp): Remove cli_interp local.
7594 * infrun.c (handle_inferior_event): Call the several stop reason
7595 observers instead of printing the stop reason directly.
7596 (end_stepping_range): New function.
7597 (print_end_stepping_range_reason, print_signal_exited_reason)
7598 (print_exited_reason, print_signal_received_reason)
7599 (print_no_history_reason): Make static, and add an uiout
7600 parameter. Print to that instead of to CURRENT_UIOUT.
7601 * infrun.h (print_end_stepping_range_reason)
7602 (print_signal_exited_reason, print_exited_reason)
7603 (print_signal_received_reason print_no_history_reason): New
7604 declarations.
7605 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7606 'mi_uiout'.
7607 <cli_uiout>: New field.
7608 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7609 uiout for CLI output. Install 'signal_received',
7610 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7611 observers.
7612 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7613 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7614 (mi_on_no_history): New functions.
7615 (ui_out_free_cleanup): Delete function.
7616 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7617 instead use the one already stored in the MI interpreter data.
7618 (mi_ui_out): Adjust.
7619 * tui/tui-interp.c: Include infrun.h and observer.h.
7620 (tui_interp): New global.
7621 (tui_on_signal_received, tui_on_end_stepping_range)
7622 (tui_on_signal_exited, tui_on_exited)
7623 (tui_on_no_history): New functions.
7624 (tui_init): Install them as 'end_stepping_range',
7625 'signal_received' 'signal_exited', 'exited' and 'no_history'
7626 observers.
7627 (_initialize_tui_interp): Delete tui_interp local.
7628
7629 2014-05-29 Pedro Alves <palves@redhat.com>
7630
7631 PR gdb/15713
7632 * linux-nat.c (linux_nat_resume_callback): Rename the second
7633 parameter to 'except'. Skip LP if it points to EXCEPT.
7634 (linux_nat_resume): Don't mark the event lwp as not stopped
7635 before resuming sibling lwps. Instead ask
7636 linux_nat_resume_callback to skip the event lwp. Mark it as not
7637 stopped after actually resuming it.
7638 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7639 resuming it.
7640 (wait_lwp): Mark the lwp as stopped here.
7641 (stop_wait_callback): Mark the lwp as not stopped right after
7642 resuming it. Don't mark lwps as stopped here.
7643 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7644 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7645
7646 2014-05-29 Pedro Alves <palves@redhat.com>
7647
7648 PR PR15693
7649 * infrun.c (resume): Determine how much to resume depending on
7650 whether the caller wanted a step, not whether we can hardware step
7651 the target. Mark all threads that we intend to run as running,
7652 unless we're calling an inferior function.
7653 (normal_stop): If the thread is running an infcall, don't finish
7654 thread state.
7655 * target.c (target_resume): Don't mark threads as running here.
7656
7657 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7658
7659 * serial.c (_initialize_serial): Remove support for
7660 the "set remotebaud" and "show remotebaud" commands.
7661 * NEWS: Add entry documenting the removal of that command.
7662
7663 2014-05-28 Yao Qi <yao@codesourcery.com>
7664
7665 * charset.c: Fix typo in comments.
7666
7667 2014-05-27 Gary Benson <gbenson@redhat.com>
7668
7669 * utils.c (internal_vproblem): Prompt for a bug report.
7670
7671 2014-05-26 Andy Wingo <wingo@igalia.com>
7672
7673 * guile/scm-arch.c (arscm_mark_arch_smob):
7674 * guile/scm-block.c (bkscm_mark_block_smob)
7675 (bkscm_mark_block_syms_progress_smob):
7676 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7677 * guile/scm-exception.c (exscm_mark_exception_smob):
7678 * guile/scm-frame.c (frscm_mark_frame_smob):
7679 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7680 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7681 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7682 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7683 (ppscm_mark_pretty_printer_worker_smob):
7684 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7685 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7686 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7687 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7688 mark functions.
7689 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7690 function.
7691
7692 2014-05-26 Andy Wingo <wingo@igalia.com>
7693 Doug Evans <xdje42@gmail.com>
7694
7695 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7696 empty_base_class. All uses updated.
7697 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7698 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7699 Adapt all callers.
7700 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7701 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7702 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7703 (gdbscm_gsmob_has_property_p, add_property_name)
7704 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7705 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7706 (gdb-object-has-property?, gdb-object-properties): Remove.
7707 (gdb-object-kind): Renamed from gsmob-kind.
7708
7709 2014-05-26 Andy Wingo <wingo@igalia.com>
7710
7711 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7712 * configure: Regenerate.
7713
7714 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7715
7716 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7717
7718 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7719
7720 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7721 (replay_memory_access_read_only, replay_memory_access_read_write)
7722 (replay_memory_access_types, replay_memory_access)
7723 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7724 (cmd_set_record_btrace, cmd_show_record_btrace)
7725 (cmd_show_replay_memory_access): New.
7726 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7727 (record_btrace_remove_breakpoint): Replace
7728 record_btrace_allow_memory_access with replay_memory_access.
7729 (_initialize_record_btrace): Add commands.
7730 * NEWS: Announce it.
7731
7732 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7733
7734 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7735
7736 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7737
7738 * MAINTAINERS (Write After Approval): Move self back from
7739 paper trail.
7740
7741 2014-05-22 Pedro Alves <palves@redhat.com>
7742
7743 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7744 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7745 (disable_randomization, enum exec_direction_kind)
7746 (execution_direction, stop_registers, start_remote)
7747 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7748 (wait_for_inferior, normal_stop, get_last_target_status)
7749 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7750 (insert_step_resume_breakpoint_at_sal)
7751 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7752 (set_step_info, print_stop_event, signal_stop_state)
7753 (signal_print_state, signal_pass_state, signal_stop_update)
7754 (signal_print_update, signal_pass_update)
7755 (update_signals_program_target, clear_exit_convenience_vars)
7756 (displaced_step_dump_bytes, update_observer_mode)
7757 (signal_catch_update, gdb_signal_from_command): Move
7758 declarations ...
7759 * infrun.h: ... to this new file.
7760 * amd64-tdep.c: Include infrun.h.
7761 * annotate.c: Include infrun.h.
7762 * arch-utils.c: Include infrun.h.
7763 * arm-linux-tdep.c: Include infrun.h.
7764 * arm-tdep.c: Include infrun.h.
7765 * break-catch-sig.c: Include infrun.h.
7766 * breakpoint.c: Include infrun.h.
7767 * common/agent.c: Include infrun.h instead of inferior.h.
7768 * corelow.c: Include infrun.h.
7769 * event-top.c: Include infrun.h.
7770 * go32-nat.c: Include infrun.h.
7771 * i386-tdep.c: Include infrun.h.
7772 * inf-loop.c: Include infrun.h.
7773 * infcall.c: Include infrun.h.
7774 * infcmd.c: Include infrun.h.
7775 * infrun.c: Include infrun.h.
7776 * linux-fork.c: Include infrun.h.
7777 * linux-nat.c: Include infrun.h.
7778 * linux-thread-db.c: Include infrun.h.
7779 * monitor.c: Include infrun.h.
7780 * nto-tdep.c: Include infrun.h.
7781 * procfs.c: Include infrun.h.
7782 * record-btrace.c: Include infrun.h.
7783 * record-full.c: Include infrun.h.
7784 * remote-m32r-sdi.c: Include infrun.h.
7785 * remote-mips.c: Include infrun.h.
7786 * remote-notif.c: Include infrun.h.
7787 * remote-sim.c: Include infrun.h.
7788 * remote.c: Include infrun.h.
7789 * reverse.c: Include infrun.h.
7790 * rs6000-tdep.c: Include infrun.h.
7791 * s390-linux-tdep.c: Include infrun.h.
7792 * solib-irix.c: Include infrun.h.
7793 * solib-osf.c: Include infrun.h.
7794 * solib-svr4.c: Include infrun.h.
7795 * target.c: Include infrun.h.
7796 * top.c: Include infrun.h.
7797 * windows-nat.c: Include infrun.h.
7798 * mi/mi-interp.c: Include infrun.h.
7799 * mi/mi-main.c: Include infrun.h.
7800 * python/py-threadevent.c: Include infrun.h.
7801
7802 2014-05-22 Pedro Alves <palves@redhat.com>
7803
7804 * infrun.c (handle_inferior_event): Store the exit code for
7805 --return-child-result here, instead of ...
7806 (print_exited_reason): ... here.
7807
7808 2014-05-21 Pedro Alves <palves@redhat.com>
7809
7810 PR gdb/13860
7811 * gdbthread.h (struct thread_control_state): New field
7812 `command_interp'.
7813 * infrun.c (follow_fork): Copy the new thread control field to the
7814 child fork thread.
7815 (clear_proceed_status_thread): Clear the new thread control field.
7816 (proceed): Set the new thread control field.
7817 * interps.h (command_interp): Declare.
7818 * interps.c (command_interpreter): New global.
7819 (command_interp): New function.
7820 (interp_exec): Set `command_interpreter' while here.
7821 * cli-out.c (cli_uiout_dtor): New function.
7822 (cli_ui_out_impl): Install it.
7823 * mi/mi-interp.c: Include cli-out.h.
7824 (mi_cmd_interpreter_exec): Add comment.
7825 (restore_current_uiout_cleanup): New function.
7826 (ui_out_free_cleanup): New function.
7827 (mi_on_normal_stop): If finishing an execution command started by
7828 a CLI command, or any kind of breakpoint-like event triggered,
7829 print the stop event to the output (CLI) stream.
7830 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7831
7832 2014-05-21 Pedro Alves <palves@redhat.com>
7833
7834 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7835 current source line having changed.
7836 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7837 * infrun.c (normal_stop): Adjust call to
7838 set_current_sal_from_frame.
7839 * source.c (clear_lines_listed_range): New function.
7840 (set_current_source_symtab_and_line, identify_source_line): Clear
7841 the lines listed range.
7842 (line_info): Handle the first "info line" after the current source
7843 line having changed.
7844 * stack.c (print_stack_frame): Remove center handling.
7845 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7846 center sal.line.
7847
7848 2014-05-21 Pedro Alves <palves@redhat.com>
7849
7850 * inf-child.c (inf_child_mourn_inferior): New function.
7851 * inf-child.h (inf_child_mourn_inferior): New declaration.
7852 * darwin-nat.c (darwin_mourn_inferior): Use
7853 inf_child_mourn_inferior.
7854 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7855 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7856 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7857 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7858 * windows-nat.c (windows_mourn_inferior): Likewise.
7859
7860 2014-05-21 Doug Evans <xdje42@gmail.com>
7861
7862 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7863
7864 2014-05-21 Doug Evans <xdje42@gmail.com>
7865
7866 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7867 (gdbscm_out_of_range_error): Ditto.
7868 (gdbscm_memory_error): Ditto.
7869 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7870 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7871 (gdbscm_out_of_range_error): Update.
7872 (gdbscm_memory_error): Update.
7873 (gdbscm_scm_to_target_string_unsafe): Delete.
7874
7875 2014-05-21 Pedro Alves <palves@redhat.com>
7876
7877 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7878 globals.
7879 (inf_child_open_target): New function.
7880 (inf_child_open): Use inf_child_open_target to push the target
7881 instead of erroring out.
7882 (inf_child_disconnect, inf_child_close)
7883 (inf_child_maybe_unpush_target): New functions.
7884 (inf_child_target): Install inf_child_disconnect and
7885 inf_child_close. Store a pointer to the returned object.
7886 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7887 declarations.
7888 * target.c (auto_connect_native_target): New global.
7889 (show_default_run_target): New function.
7890 (find_default_run_target): Return NULL if automatically connecting
7891 to the native target is disabled.
7892 (_initialize_target): Install set/show auto-connect-native-target.
7893 * NEWS: Mention "set auto-connect-native-target", and "target
7894 native".
7895 * linux-nat.c (super_close): New global.
7896 (linux_nat_close): Call super_close.
7897 (linux_nat_add_target): Store a pointer to the base class's
7898 to_close method.
7899 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7900 inf_child_maybe_unpush.
7901 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7902 already pushed.
7903 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7904 the inferior. Use inf_child_maybe_unpush_target.
7905 (inf_ttrace_attach): Don't push the target if it is already
7906 pushed.
7907 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7908 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7909 after mourning the inferior. Use inf_child_maybe_unpush_target.
7910 (darwin_attach_pid): Don't push the target if it is already
7911 pushed.
7912 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7913 mourning the inferior. Use inf_child_maybe_unpush_target.
7914 (gnu_detach): Use inf_child_maybe_unpush_target.
7915 * go32-nat.c (go32_create_inferior): Don't push the target if it
7916 is already pushed.
7917 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7918 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7919 (procfs_open): Rename to ...
7920 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7921 comments. Can target_preopen before changing node. Call
7922 inf_child_open_target to push the target explicitly.
7923 (procfs_attach): Don't push the target if it is already pushed.
7924 (procfs_detach): Use inf_child_maybe_unpush_target.
7925 (procfs_create_inferior): Don't push the target if it is already
7926 pushed.
7927 (nto_native_ops): New global.
7928 (procfs_open): Reimplement.
7929 (procfs_native_open): New function.
7930 (init_procfs_targets): Install procfs_native_open as to_open of
7931 "target native". Store a pointer to the "native" target in
7932 nto_native_ops.
7933 * procfs.c (procfs_attach): Don't push the target if it is already
7934 pushed.
7935 (procfs_detach): Use inf_child_maybe_unpush_target.
7936 (procfs_mourn_inferior): Only unpush the target after mourning the
7937 inferior. Use inf_child_maybe_unpush_target.
7938 (procfs_init_inferior): Don't push the target if it is already
7939 pushed.
7940 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7941 if it is already pushed.
7942
7943 2014-05-21 Pedro Alves <palves@redhat.com>
7944
7945 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7946 and "procfs" targets are now called "native" instead.
7947
7948 2014-05-21 Pedro Alves <palves@redhat.com>
7949
7950 * go32-nat.c (go32_open): Delete.
7951 (go32_target): Don't override the to_open method.
7952
7953 2014-05-21 Pedro Alves <palves@redhat.com>
7954
7955 * nto-procfs.c (procfs_can_run): New function.
7956 (nto_procfs_ops): New global.
7957 (init_procfs_targets): New, based on procfs_target. Install
7958 "target native" in addition to "target procfs".
7959 (_initialize_procfs): Call init_procfs_targets instead of adding
7960 the target here.
7961
7962 2014-05-21 Pedro Alves <palves@redhat.com>
7963
7964 * windows-nat.c (windows_target): Don't override to_shortname,
7965 to_longname or to_doc.
7966
7967 2014-05-21 Pedro Alves <palves@redhat.com>
7968
7969 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7970 to_doc.
7971
7972 2014-05-21 Pedro Alves <palves@redhat.com>
7973
7974 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7975 to_shortname, to_longname or to_doc.
7976
7977 2014-05-21 Pedro Alves <palves@redhat.com>
7978
7979 * go32-nat.c (go32_target): Don't override to_shortname,
7980 to_longname or to_doc.
7981
7982 2014-05-21 Pedro Alves <palves@redhat.com>
7983
7984 * inf-child.c (inf_child_open): Remove mention of "child".
7985 (inf_child_target): Rename target to "native" instead of "child".
7986
7987 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7988
7989 * Makefile.in (SFILES): Delete "regset.c".
7990 (COMMON_OBS): Delete "regset.o".
7991 * regset.c: Remove.
7992 * regset.h (regset_alloc): Delete prototype.
7993
7994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7995
7996 * sparc-linux-tdep.c (sparc32_linux_gregset)
7997 (sparc32_linux_fpregset): New static regset structures.
7998 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7999 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8000 'fpregset' fields.
8001 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8002 (sparc64_linux_fpregset): New static regset structures.
8003 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8004 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8005 New static regset structures.
8006 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8007 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8008 New static regset structures.
8009 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8010 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8011 New static regset structures.
8012 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8013 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8014 New static regset structures.
8015 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8016
8017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8018
8019 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8020 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8021 register maps ("regmaps") from "*regset" to "*regmap". Do this
8022 for all regmap types and variables.
8023 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8024 (sparc32_linux_supply_core_gregset)
8025 (sparc32_linux_collect_core_gregset)
8026 (sparc32_linux_supply_core_fpregset)
8027 (sparc32_linux_collect_core_fpregset): Likewise.
8028 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8029 (sparc_gregmap, sparc_fpregmap): ... these.
8030 (sparc_supply_gregset, sparc_collect_gregset)
8031 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8032 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8033 (_initialize_sparc_nat): Rename regmaps.
8034 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8035 (sparc_gregmap, sparc_fpregmap): ... these.
8036 (sparc_supply_gregset, sparc_collect_gregset)
8037 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8038 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8039 Rename macros to...
8040 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8041 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8042 Likewise.
8043 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8044 Rename to...
8045 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8046 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8047 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8048 regmaps.
8049 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8050 (sparc32_bsd_fpregset): Rename to...
8051 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8052 (sparc32_bsd_fpregmap): ... these.
8053 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8054 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8055 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8056 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8057 (struct sparc_gregmap, struct sparc_fpregmap)
8058 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8059 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8060 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8061 (sparc32_supply_regset, sparc32_collect_gregset)
8062 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8063 prototypes.
8064 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8065 (sparc64_linux_ptrace_gregmap): ... this.
8066 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8067 (_initialize_sparc64_linux_nat): Rename regmaps.
8068 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8069 (sparc64_linux_core_gregmap): ... this.
8070 (sparc64_linux_supply_core_gregset)
8071 (sparc64_linux_collect_core_gregset)
8072 (sparc64_linux_supply_core_fpregset)
8073 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8074 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8075 (sparc64_sol2_fpregset): Rename to...
8076 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8077 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8078 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8079 regmaps.
8080 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8081 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8082 (sparc64_bsd_fpregset): Rename to...
8083 (struct sparc_gregmap, sparc64_sol2_gregmap)
8084 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8085 (sparc64_bsd_fpregmap): ... these.
8086 (sparc64_supply_gregset, sparc64_collect_gregset)
8087 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8088 prototypes.
8089 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8090 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8091 (sparc64fbsd_gregmap): ... this.
8092 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8093 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8094 Rename regmaps.
8095 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8096 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8097 (sparc64nbsd_collect_fpregset): Likewise.
8098 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8099 (sparc64nbsd_gregmap): ... this.
8100 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8101 regmaps.
8102 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8103 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8104 (sparc64obsd_gregmap): ... this.
8105 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8106 regmaps.
8107 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8108 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8109 (sparc32nbsd_gregmap): ... this.
8110 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8111 regmaps.
8112
8113 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8114
8115 * score-tdep.c (score7_linux_gregset): New static regset
8116 structure.
8117 (score7_linux_regset_from_core_section): Remove dynamic regset
8118 allocation.
8119 (score_gdbarch_init): Drop allocation of tdep structure.
8120 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8121
8122 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8123
8124 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8125 regset structures.
8126 (am33_regset_from_core_section): Remove dynamic regset
8127 allocations.
8128
8129 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8130
8131 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8132 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8133 structures.
8134 (mips_linux_regset_from_core_section): Remove dynamic regset
8135 allocations.
8136 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8137 'gregset64', 'fpregset', and 'fpregset64'.
8138 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8139 deleted tdep fields.
8140
8141 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8142
8143 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8144 regset structures.
8145 (amd64_regset_from_core_section): Remove dynamic regset
8146 allocations.
8147 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8148 structure.
8149 (amd64obsd_regset_from_core_section): Remove dynamic regset
8150 allocation.
8151 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8152 Likewise.
8153 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8154 x86-common regset supply function.
8155 * i386-tdep.c (i386_collect_gregset): Make static.
8156 (i386_gregset): New global regset structure.
8157 (i386_fpregset, i386_xstateregset): New static regset structures.
8158 (i386_regset_from_core_section): Remove dynamic regset
8159 allocations.
8160 (i386_gdbarch_init): Remove initialization of tdep fields
8161 'gregset', 'fpregset', and 'xstateregset'.
8162 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8163 'fpregset', and 'xstateregset'.
8164 (i386_collect_gregset): Remove prototype.
8165 (i386_gregset): New declaration.
8166 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8167 structure.
8168 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8169 allocation.
8170
8171 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8172
8173 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8174 (arm_linux_vfpregset): New static regset structures.
8175 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8176 regset structures.
8177 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8178 and 'vfpregset' fields.
8179
8180 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8181
8182 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8183 (aarch64_linux_fpregset): New static regset structures.
8184 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8185 of regset structures.
8186 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8187 'fpregset' fields.
8188
8189 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8190
8191 * regset.h (struct regset): Remove gdbarch field.
8192 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8193 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8194 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8195 Likewise.
8196 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8197 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8198 (ppc32_linux_vsxregset): Likewise.
8199 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8200 via the regcache instead of the regset.
8201 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8202 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8203 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8204 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8205 Likewise.
8206
8207 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8208
8209 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8210 Constify structures.
8211 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8212 (alphanbsd_aout_gregset): Likewise.
8213 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8214 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8215 Likewise.
8216 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8217 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8218 Likewise.
8219 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8220 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8221 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8222 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8223 * m88k-tdep.c (m88k_gregset): Likewise.
8224 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8225 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8226 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8227 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8228 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8229 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8230 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8231 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8232 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8233 Likewise.
8234 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8235 * sh-tdep.h (sh_corefile_gregset): Likewise.
8236 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8237 * vax-tdep.c (vax_gregset): Likewise.
8238
8239 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 Fix TLS access for -static -pthread.
8242 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8243 (try_thread_db_load_1): Initialize it.
8244 (thread_db_get_thread_local_address): Call it if LM is zero.
8245 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8246 * target.h (struct target_ops) (to_get_thread_local_address): Add
8247 load_module_addr comment.
8248
8249 2014-05-21 Pedro Alves <palves@redhat.com>
8250
8251 * dcache.c (dcache_read_memory_partial): If reading the cache line
8252 fails, fallback to reading just the memory the caller wanted.
8253
8254 2014-05-20 Doug Evans <dje@google.com>
8255
8256 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8257 instead of get_current_arch.
8258
8259 2014-05-20 Pedro Alves <palves@redhat.com>
8260
8261 * NEWS: Mention that compare-sections now works with all targets.
8262
8263 * remote.c (PACKET_qCRC): New enum value.
8264 (remote_verify_memory): Don't send qCRC if the target has no
8265 execution. Use packet_support/packet_ok. If the target doesn't
8266 support the qCRC packet, fallback to a deep memory copy.
8267 (compare_sections_command): Say "target image" instead of "remote
8268 executable".
8269 (_initialize_remote): Add PACKET_qCRC to the list of config
8270 packets that have no associated command. Extend comment.
8271 * target.c (simple_verify_memory, default_verify_memory): New
8272 function.
8273 * target.h (struct target_ops) <to_verify_memory>: Default to
8274 default_verify_memory.
8275 (simple_verify_memory): New declaration.
8276 * target-delegates.c: Regenerate.
8277
8278 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8279
8280 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8281
8282 2014-05-20 Hui Zhu <hui@codesourcery.com>
8283 Yao Qi <yao@codesourcery.com>
8284
8285 PR backtrace/16558
8286 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8287 and change address of sp and pc.
8288
8289 2014-05-19 Tom Tromey <tromey@redhat.com>
8290
8291 * gdbtypes.c (rank_function): Use XNEWVEC.
8292 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8293
8294 2014-05-19 Doug Evans <dje@google.com>
8295
8296 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8297 build_type_unit_groups and moved closer to only caller. Remove
8298 arguments. All references updated. Remove outdated .gdb_index
8299 comment.
8300 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8301 build_type_psymtabs_1.
8302
8303 2014-05-19 Doug Evans <dje@google.com>
8304
8305 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8306 n_type_unit_groups, all_type_unit_groups. All uses removed.
8307 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8308 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8309 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8310 (add_type_unit_group_to_table): Delete.
8311
8312 2014-05-19 Doug Evans <dje@google.com>
8313
8314 * eval.c (evaluate_subexp_standard): Add some comments.
8315
8316 2014-05-17 Doug Evans <xdje42@gmail.com>
8317
8318 * progspace.c (remove_program_space): Delete, unused.
8319 * progspace.h (remove_program_space): Ditto.
8320
8321 2014-05-17 Doug Evans <xdje42@gmail.com>
8322
8323 * inferior.c (prune_inferiors): Fix comment.
8324 (remove_inferior_command): Call prune_program_spaces.
8325
8326 2014-05-16 Doug Evans <dje@google.com>
8327
8328 New command line option -D.
8329 * NEWS: Mention it.
8330 * main.c (set_gdb_data_directory): New function.
8331 (captured_main): Recognize -D. Flag error for --data-directory "".
8332 Call set_gdb_data_directory.
8333 (print_gdb_help): Print --data-directory, -D.
8334 * main.h (set_gdb_data_directory): Declare.
8335 * top.c (staged_gdb_datadir): New static global.
8336 (set_gdb_datadir): Call set_gdb_data_directory
8337 (show_gdb_datadir): New function.
8338 (init_main): Update init of data-directory parameter.
8339
8340 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8341
8342 Import the "dirfd" gnulib module.
8343 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8344 * gnulib/aclocal.m4: Update.
8345 * gnulib/config.in: Update.
8346 * gnulib/configure: Update.
8347 * gnulib/import/Makefile.am: Update.
8348 * gnulib/import/Makefile.in: Update.
8349 * gnulib/import/dirfd.c: New.
8350 * gnulib/import/m4/dirfd.m4: New.
8351 * gnulib/import/m4/gnulib-cache.m4: Update.
8352 * gnulib/import/m4/gnulib-comp.m4: Update.
8353
8354 2014-05-16 Pierre Muller <muller@sourceware.org>
8355 Yao Qi <yao@codesourcery.com>
8356
8357 * valprint.c (print_wchar): Move the code on checking whether
8358 W is a printable wide char to the default branch of switch
8359 statement below. Call wchar_printable instead of gdb_iswprint.
8360
8361 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8362
8363 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8364 ldr.w and ldrd instructions.
8365
8366 2014-05-15 Doug Evans <dje@google.com>
8367
8368 * dwarf2read.c (read_structure_type): Delete outdated comments.
8369
8370 2014-05-14 Tom Tromey <tromey@redhat.com>
8371
8372 * macrocmd.c (print_macro_definition): Reindent.
8373
8374 2014-05-13 Doug Evans <xdje42@gmail.com>
8375
8376 * python/py-cmd.c (cmdpy_completer): Add comment.
8377 (completers): Make const.
8378
8379 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8380
8381 * infrun.c (resume): Remove should_resume (unused). Move up
8382 declaration of resume_ptid.
8383
8384 2014-05-13 Tom Tromey <tromey@redhat.com>
8385
8386 * language.h (unop_type_check): Remove.
8387 (binop_type_check): Don't declare.
8388
8389 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8390
8391 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8392 call to regcache_raw_collect.
8393
8394 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8395
8396 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8397 mi_console->quote as the quoting character.
8398
8399 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8400
8401 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8402
8403 2014-04-29 Tom Tromey <tromey@redhat.com>
8404
8405 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8406 "show debug varobj".
8407
8408 2014-05-07 Kyle McMartin <kyle@redhat.com>
8409
8410 Pushed by Joel Brobecker <brobecker@adacore.com>.
8411 * aarch64-tdep.c (aarch64_software_single_step): New function.
8412 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8413 with aarch64_software_single_step.
8414
8415 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8416
8417 GDB 7.7.1 released.
8418
8419 2014-05-05 Keith Seitz <keiths@redhat.com>
8420
8421 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8422 variable or history value is successfully parsed.
8423
8424 2014-05-05 Yao Qi <yao@codesourcery.com>
8425 Pedro Alves <palves@redhat.com>
8426
8427 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8428 address of blocks that intersects the requested range. Trim
8429 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8430 sections.
8431 * ctf.c (ctf_xfer_partial): Likewise.
8432
8433 2014-05-05 Yao Qi <yao@codesourcery.com>
8434
8435 * printcmd.c (display_command): Remove the check to
8436 target_has_execution.
8437
8438 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8439
8440 * ppcobsd-nat.c: Include "obsd-nat.h".
8441 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8442 add_target.
8443 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8444
8445 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8446
8447 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8448 and 16-bit signed and unsigned arguments. Update comment.
8449 (stap_parse_probe_arguments): Extend code to handle such
8450 arguments. Use warning instead of complaint to notify about
8451 unrecognized bitness.
8452
8453 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8454
8455 PR breakpoints/16889
8456 * stap-probe.c (stap_parse_probe_arguments): Simplify
8457 check for non-prefixed probes (i.e., probes whose
8458 arguments do not start with "N@"). Always set the
8459 argument type to a sane value.
8460
8461 2014-05-01 David Taylor <dtaylor@emc.com>
8462
8463 * remote.c (compare_sections_command): Add -r option to compare
8464 all loadable read-only sections.
8465
8466 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8467
8468 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8469 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8470 Update all callers.
8471 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8472 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8473 Remove unused CORE_ADDR argument. Update all callers.
8474
8475 2014-04-29 Pedro Alves <palves@redhat.com>
8476
8477 * remote.c (struct packet_config) <detect>: Extend comment.
8478 (add_packet_config_cmd): Don't set the config's detect or support
8479 fields here.
8480 (init_all_packet_configs): Also initialize the config's 'detect'
8481 field.
8482 (reset_all_packet_configs_support): New function.
8483 (remote_open_1): Call reset_all_packet_configs_support instead of
8484 init_all_packet_configs.
8485 (_initialize_remote): Initialize all packet configs. Assert that
8486 all packets have an associated command, except a few known
8487 outliers.
8488
8489 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8490
8491 * dwarf2read.c (read_subrange_type): Handle dynamic
8492 DW_AT_lower_bound attributes.
8493
8494 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8495
8496 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8497 dynamic bounds before computing its upper bound.
8498 (ada_discrete_type_low_bound): Same as above with the lower bound.
8499
8500 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8501
8502 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8503 range types. Adjust the array handling implementation to
8504 take advantage of this change.
8505 (resolve_dynamic_range): New function, mostly extracted from
8506 resolve_dynamic_bounds.
8507 (resolve_dynamic_array): New function, mostly extracted from
8508 resolve_dynamic_bounds.
8509 (resolve_dynamic_bounds): Delete.
8510 (resolve_dynamic_type): Reimplement. Add handling of
8511 TYPE_CODE_RANGE types.
8512
8513 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8514
8515 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8516 handling of parallel ___XA types.
8517
8518 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8519
8520 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8521 unnecessary second call to static_unwrap_type.
8522
8523 2014-04-27 Hui Zhu <hui@codesourcery.com>
8524
8525 * stack.c (print_frame_info): Call do_gdb_disassembly with
8526 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8527
8528 2014-04-26 Doug Evans <xdje42@gmail.com>
8529
8530 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8531
8532 2014-04-25 Pedro Alves <palves@redhat.com>
8533
8534 PR server/16255
8535 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8536 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8537 and newline from built string.
8538 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8539 (linux_ptrace_attach_fail_reason): ... this.
8540 * linux-nat.c (linux_nat_attach): Adjust to use
8541 linux_ptrace_attach_fail_reason.
8542
8543 2014-04-25 Pedro Alves <palves@redhat.com>
8544
8545 * remote.c (struct remote_state): Remove multi_process_aware,
8546 non_stop_aware, cond_tracepoints, cond_breakpoints,
8547 breakpoint_commands, fast_tracepoints, static_tracepoints,
8548 install_in_trace, disconnected_tracing,
8549 enable_disable_tracepoints, string_tracing, and
8550 augmented_libraries_svr4_read fields.
8551 (remote_multi_process_p): Move further below in the file.
8552 (struct packet_config): Add comments.
8553 (update_packet_config): Delete function.
8554 (show_packet_config_cmd): Use packet_config_support.
8555 (add_packet_config_cmd): Use NULL as set callback.
8556 (packet_ok): "set remote foo-packet"-style commands no longer
8557 change config->supported -- adjust.
8558 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8559 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8560 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8561 (PACKET_QNonStop, PACKET_multiprocess_feature)
8562 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8563 (PACKET_DisconnectedTracing_feature)
8564 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8565 (set_remote_protocol_packet_cmd): Delete function.
8566 (packet_config_support, packet_support): New functions.
8567 (set_remote_protocol_Z_packet_cmd): Don't call
8568 update_packet_config.
8569 (remote_query_attached, remote_pass_signals)
8570 (remote_program_signals, remote_threads_info)
8571 (remote_threads_extra_info, remote_start_remote): Use
8572 packet_support.
8573 (remote_start_remote): Use packet_config_support and
8574 packet_support.
8575 (init_all_packet_configs): Set all packets to unknown support,
8576 instead of calling update_packet_config.
8577 (remote_check_symbols): Use packet_support.
8578 (remote_supported_packet): Unconditionally set the packet config's
8579 support status.
8580 (remote_multi_process_feature, remote_non_stop_feature)
8581 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8582 (remote_breakpoint_commands_feature)
8583 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8584 (remote_install_in_trace_feature)
8585 (remote_disconnected_tracing_feature)
8586 (remote_enable_disable_tracepoint_feature)
8587 (remote_string_tracing_feature)
8588 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8589 (remote_protocol_features): Adjust to use remote_supported_packet
8590 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8591 "ConditionalTracepoints", "ConditionalBreakpoints",
8592 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8593 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8594 "EnableDisableTracepoints", and "tracenz".
8595 (remote_query_supported): Use packet_support.
8596 (remote_open_1): Adjust.
8597 (extended_remote_attach_1): Use packet_support. Switch on the
8598 result of packet_ok instead of checking whether the packet ended
8599 up disabled.
8600 (remote_vcont_resume): Use packet_support.
8601 (remote_resume, remote_stop_ns, fetch_register_using_p)
8602 (remote_prepare_to_store, store_register_using_P)
8603 (check_binary_download, remote_write_bytes): Use packet_support.
8604 (remote_vkill): Use packet_support. Switch on the result of
8605 packet_ok instead of checking whether the packet ended up
8606 disabled.
8607 (extended_remote_supports_disable_randomization): Use
8608 packet_support.
8609 (extended_remote_run): Switch on the result of packet_ok instead
8610 of checking whether the packet ended up disabled.
8611 (remote_insert_breakpoint, remote_remove_breakpoint)
8612 (remote_insert_watchpoint, remote_remove_watchpoint)
8613 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8614 packet_support.
8615 (remote_search_memory): Use packet_config_support.
8616 (remote_get_thread_local_address, remote_get_tib_address)
8617 (remote_hostio_send_command, remote_can_execute_reverse): Use
8618 packet_support.
8619 (remote_supports_cond_tracepoints)
8620 (remote_supports_cond_breakpoints)
8621 (remote_supports_fast_tracepoints)
8622 (remote_supports_static_tracepoints)
8623 (remote_supports_install_in_trace)
8624 (remote_supports_enable_disable_tracepoint)
8625 (remote_supports_string_tracing)
8626 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8627 the packet config says the feature is enabled or disabled.
8628 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8629 (remote_get_trace_status): Use packet_support.
8630 (remote_set_disconnected_tracing): Adjust to check whether the
8631 feature is enabled with packet_support.
8632 (remote_set_trace_buffer_size, remote_use_agent)
8633 (remote_can_use_agent, remote_supports_btrace): Use
8634 packet_support.
8635 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8636 Use packet_config_support.
8637 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8638 the packet config says the feature is enabled or disabled.
8639 (set_range_stepping): Use packet_support.
8640
8641 2014-04-25 Tom Tromey <tromey@redhat.com>
8642
8643 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8644 argument.
8645
8646 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8647
8648 * NEWS: Mention support for C99 variable length arrays.
8649
8650 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8651
8652 * ada-lang.c (standard_exc): Expand introductory comment.
8653
8654 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8655 Walfred Tedeschi <walfred.tedeschi@intel.com>
8656
8657 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8658 AVX512 registers.
8659 (amd64_linux_read_description): Add code to handle AVX512 xstate
8660 mask and return respective tdesc.
8661 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8662 and features/i386/x32-avx512-linux.c.
8663 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8664 (amd64_linux_core_read_description): Add code to handle AVX512
8665 xstate mask and return respective tdesc.
8666 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8667 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8668 calculation.
8669 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8670 (tdesc_amd64_avx512_linux): New prototype.
8671 (tdesc_x32_avx512_linux): Likewise.
8672 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8673 features/i386/x32-avx512.c.
8674 (amd64_ymm_avx512_names): New register names for pseudo
8675 registers YMM16-31.
8676 (amd64_ymmh_avx512_names): New register names for raw registers
8677 YMMH16-31.
8678 (amd64_k_names): New register names for K registers.
8679 (amd64_zmmh_names): New register names for ZMM raw registers.
8680 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8681 (amd64_xmm_avx512_names): New register names for XMM16-31
8682 registers.
8683 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8684 registers.
8685 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8686 if feature is present.
8687 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8688 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8689 (AMD64_NUM_REGS): Adjust to new number of registers.
8690 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8691 registers supplied via XSTATE by AVX512 registers.
8692 (i386_linux_read_description): Add case for AVX512.
8693 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8694 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8695 (i386_linux_core_read_description): Add case for AVX512.
8696 (i386_linux_init_abi): Install supported register note section
8697 for AVX512.
8698 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8699 AVX512.
8700 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8701 registers to be number of zmm7h + 1.
8702 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8703 * i386-tdep.c: Include features/i386/i386-avx512.c.
8704 (i386_zmm_names): Add ZMM pseudo register names array.
8705 (i386_zmmh_names): Add ZMM raw register names array.
8706 (i386_k_names): Add K raw register names array.
8707 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8708 registers. AVX512 has 16 more ZMM registers than there are YMM
8709 registers.
8710 (i386_zmmh_regnum_p): Add function to look up register number of
8711 ZMM raw registers.
8712 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8713 (i386_k_regnum_p): Likewise for K raw registers.
8714 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8715 registers added by AVX512.
8716 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8717 registers added by AVX512.
8718 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8719 added by AVX512.
8720 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8721 (i386_pseudo_register_name): Add ZMM pseudo registers.
8722 (i386_zmm_type): Construct and return vector registers type for ZMM
8723 registers.
8724 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8725 ZMM0-31 pseudo registers and K registers.
8726 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8727 and YMM16-31 registers from register cache.
8728 (i386_pseudo_register_write): Add code to write K, ZMM and
8729 YMM16-31 registers.
8730 (i386_register_reggroup_p): Add code to include/exclude AVX512
8731 registers in/from respective register groups.
8732 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8733 registers if feature is present in xcr0.
8734 (i386_gdbarch_init): Add code to initialize AVX512 feature
8735 variables in tdep structure, wire in pseudo registers and call
8736 initialize_tdesc_i386_avx512.
8737 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8738 variables.
8739 (i386_regnum): Add AVX512 registers.
8740 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8741 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8742 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8743 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8744 512 bits wide.
8745 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8746 (i386_ymm_avx512_regnum_p): Likewise.
8747 (i386_k_regnum_p): Likewise.
8748 (i386_zmm_regnum_p): Likewise.
8749 (i386_zmmh_regnum_p): Likewise.
8750 * i387-tdep.c : Update year in copyright notice.
8751 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8752 XSAVE buffer.
8753 (XSAVE_YMM_AVX512_ADDR): New macro.
8754 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8755 XSAVE buffer.
8756 (XSAVE_XMM_AVX512_ADDR): New macro.
8757 (xsave_avx512_k_offset): New table for K register offsets in
8758 XSAVE buffer.
8759 (XSAVE_AVX512_K_ADDR): New macro.
8760 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8761 in XSAVE buffer.
8762 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8763 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8764 buffer.
8765 (i387_collect_xsave): Add code to collect AVX512 registers from
8766 XSAVE buffer.
8767 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8768 of XMM16-31 registers.
8769 (I387_NUM_K_REGS): New define for number of K registers.
8770 (I387_K0_REGNUM): New define for K0 register number.
8771 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8772 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8773 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8774 registers.
8775 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8776 (I387_XMM16_REGNUM): New define for XMM16 register number.
8777 (I387_YMM0_REGNUM): New define for YMM0 register number.
8778 (I387_KEND_REGNUM): New define for last K register number.
8779 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8780 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8781 number.
8782 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8783 number.
8784 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8785 size.
8786 * features/Makefile: Add AVX512 related files.
8787 * features/i386/32bit-avx512.xml: New file.
8788 * features/i386/64bit-avx512.xml: Likewise.
8789 * features/i386/amd64-avx512-linux.c: Likewise.
8790 * features/i386/amd64-avx512-linux.xml: Likewise.
8791 * features/i386/amd64-avx512.c: Likewise.
8792 * features/i386/amd64-avx512.xml: Likewise.
8793 * features/i386/i386-avx512-linux.c: Likewise.
8794 * features/i386/i386-avx512-linux.xml: Likewise.
8795 * features/i386/i386-avx512.c: Likewise.
8796 * features/i386/i386-avx512.xml: Likewise.
8797 * features/i386/x32-avx512-linux.c: Likewise.
8798 * features/i386/x32-avx512-linux.xml: Likewise.
8799 * features/i386/x32-avx512.c: Likewise.
8800 * features/i386/x32-avx512.xml: Likewise.
8801 * regformats/i386/amd64-avx512-linux.dat: New file.
8802 * regformats/i386/amd64-avx512.dat: Likewise.
8803 * regformats/i386/i386-avx512-linux.dat: Likewise.
8804 * regformats/i386/i386-avx512.dat: Likewise.
8805 * regformats/i386/x32-avx512-linux.dat: Likewise.
8806 * regformats/i386/x32-avx512.dat: Likewise.
8807 * NEWS: Add note about new support for AVX512.
8808
8809
8810 2014-04-23 Pedro Alves <palves@redhat.com>
8811
8812 * breakpoint.c (insert_bp_location): Tolerate errors if the
8813 breakpoint is set in a user-loaded objfile.
8814 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8815 location is marked shlib_disabled. If the breakpoint is set in a
8816 user-loaded objfile is a GDB-side memory breakpoint, validate it
8817 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8818 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8819 flag.
8820 * mem-break.c (memory_validate_breakpoint): New function.
8821 * objfiles.c (userloaded_objfile_contains_address_p): New
8822 function.
8823 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8824 * target.h (memory_validate_breakpoint): New declaration.
8825
8826 2014-04-23 Pedro Alves <palves@redhat.com>
8827
8828 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8829 the breakpoint is set in a shared library, only suppress
8830 errors for software breakpoints, not hardware breakpoints.
8831
8832 2014-04-22 Pedro Alves <palves@redhat.com>
8833
8834 * infrun.c (schedlock_applies): New function, factored out from
8835 find_thread_needs_step_over.
8836 (find_thread_needs_step_over): Use it.
8837 (switch_back_to_stepped_thread): Always clear trap_expected if the
8838 step over is finished. Return early if scheduler locking applies.
8839 Look for the stepping thread and a potential step-over thread with
8840 a single loop.
8841 (currently_stepping_or_nexting_callback): Delete.
8842
8843 2014-04-22 Nick Clifton <nickc@redhat.com>
8844
8845 * NEWS: Mention that ARM sim now supports tracing.
8846
8847 2014-04-22 Yao Qi <yao@codesourcery.com>
8848
8849 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8850 to ...
8851 * tracefile.c (tracefile_fetch_registers): ... it. New
8852 function.
8853 * tracefile.h (tracefile_fetch_registers): Declare.
8854 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8855 tracefile_fetch_registers.
8856
8857 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8858
8859 PR gdb/14018
8860 * windows-nat.c (thread_rec): Don't display a warning when
8861 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8862 fails for any reason, set th->suspended to -1, so that we don't
8863 try to resume such a thread. Also, don't return NULL in these
8864 cases, to avoid completely ruin the session due to "PC register is
8865 not available" error.
8866 (do_windows_fetch_inferior_registers): Check errors in
8867 GetThreadContext call.
8868 (windows_continue): Accept an additional argument KILLED; if not
8869 zero, ignore errors in the SetThreadContext call, since the
8870 inferior was killed and is shutting down.
8871 (windows_resume, get_windows_debug_event)
8872 (windows_create_inferior, windows_mourn_inferior)
8873 (windows_kill_inferior): All callers of windows_continue changed
8874 to adjust to its new calling sequence.
8875
8876 2014-04-19 Yao Qi <yao@codesourcery.com>
8877
8878 * ctf.c (ctf_open): Call post_create_inferior.
8879
8880 2014-04-19 Yao Qi <yao@codesourcery.com>
8881
8882 * ctf.c (handle_id): New static variable.
8883 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8884 value. Get the declaration of event "register" and get length
8885 of field "contents".
8886
8887 2014-04-19 Yao Qi <yao@codesourcery.com>
8888
8889 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8890
8891 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8892
8893 * valops.c (oload_method_static): Remove unnecessary argument
8894 METHOD. Update all callers.
8895
8896 2014-04-18 Pedro alves <palves@redhat.com>
8897 Tom Tromey <tromey@redhat.com>
8898
8899 PR backtrace/15558
8900 * frame.c (get_prev_frame_1): Rename to ...
8901 (get_prev_frame_always): ... this, and make extern. Adjust.
8902 (skip_artificial_frames): Use get_prev_frame_always.
8903 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8904 (get_frame_unwind_stop_reason): Adjust to rename.
8905 * frame.h (get_prev_frame_always): Declare.
8906 * inline-frame.c: Include frame.h.
8907 (inline_frame_this_id): Use get_prev_frame_always.
8908
8909 2014-04-18 Tristan Gingold <gingold@adacore.com>
8910
8911 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8912 code by using bfd_mach_o_get_base_address.
8913
8914 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8915
8916 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8917 (spu_ax_pseudo_register_collect): New function.
8918 (spu_ax_pseudo_register_push_stack): Likewise.
8919 (spu_dwarf_reg_to_regnum): Likewise.
8920 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8921
8922 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8923
8924 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8925 Replace FRAME argument with FRAME_ID.
8926 * gdbarch.c, gdbarch.h: Regenerate.
8927 * findvar.c (default_value_from_register): Add GDBARCH argument;
8928 replace FRAME by FRAME_ID. No longer call get_frame_id.
8929 (value_from_register): Update call to gdbarch_value_from_register.
8930 * value.h (default_value_from_register): Update prototype.
8931 * s390-linux-tdep.c (s390_value_from_register): Update interface
8932 and call to default_value_from_register.
8933 * spu-tdep.c (spu_value_from_register): Likewise.
8934
8935 * findvar.c (address_from_register): Remove TYPE argument.
8936 Do not call value_from_register; use gdbarch_value_from_register
8937 with null_frame_id instead.
8938 * value.h (address_from_register): Update prototype.
8939 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8940 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8941 address_from_register interface change.
8942
8943 2014-04-17 Yao Qi <yao@codesourcery.com>
8944
8945 * gdbtypes.h: Update comments to link to types and macros'
8946 definitions.
8947
8948 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8949
8950 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8951
8952 2014-04-16 Keith Seitz <keiths@redhat.com>
8953
8954 PR gdb/15827
8955 * dwarf2read.c (skip_one_die): Check that all relative-offset
8956 sibling DIEs fall within range of the current reader's buffer.
8957 (read_partial_die): Likewise.
8958
8959 2014-04-16 Keith Seitz <keiths@redhat.com>
8960
8961 PR c++/16597
8962 * cp-namespace.c (lookup_symbol_file): If the type name of
8963 `this' is NULL, return immediately.
8964
8965 2014-04-14 Keith Seitz <keiths@redhat.com>
8966
8967 PR c++/16253
8968 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8969 from symbol_matches_domain in symtab.c. All local callers
8970 of symbol_matches_domain updated.
8971 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8972 search STRUCT_DOMAIN.
8973 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8974 independently. standard_lookup will do that automatically.
8975 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8976 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8977 (cp_lookup_symbol_in_namespace): Likewise.
8978 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8979 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8980 may return a STRUCT_DOMAIN match.
8981 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8982 * cp-support.c: Include language.h.
8983 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8984 VAR_DOMAIN.
8985 * psymtab.c (match_partial_symbol): Compare the requested
8986 domain with the symbol's domain directly.
8987 (lookup_partial_symbol): Likewise.
8988 * symtab.c (lookup_symbol_in_language): Explain when/why
8989 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8990 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8991 appropriate languages.
8992 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8993 and moved to ada-lang.c
8994 (lookup_block_symbol): Explain that this function only returns
8995 symbol matching the requested DOMAIN.
8996 Compare the requested domain with the symbol's domain directly.
8997 (iterate_over_symbols): Compare the requested domain with the
8998 symbol's domain directly.
8999 * symtab.h (symbol_matches_domain): Remove.
9000
9001 2014-04-14 Tom Tromey <tromey@redhat.com>
9002
9003 PR c++/15246:
9004 * c-exp.y (type_aggregate_p): New function.
9005 (qualified_name, classify_inner_name): Use it.
9006 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9007 and TYPE_TARGET_TYPE of an enum type.
9008 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9009 an enum type.
9010 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9011 handle TYPE_DECLARED_CLASS.
9012 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9013 types.
9014 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9015 * valops.c (enum_constant_from_type): New function.
9016 (value_aggregate_elt): Use it.
9017 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9018 TYPE_CODE_ENUM.
9019
9020 2014-04-14 Tom Tromey <tromey@redhat.com>
9021
9022 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9023 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9024 const.
9025 * value.h (value_aggregate_elt): Update.
9026
9027 2014-04-14 Tom Tromey <tromey@redhat.com>
9028
9029 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9030
9031 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9032
9033 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9034 (evaluate_subexp_standard): Pass noside argument.
9035 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9036 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9037 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9038 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9039 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9040
9041 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9042
9043 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9044 points to a constant blob.
9045
9046 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9047
9048 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9049 property and store it as the high bound and flag the range accordingly.
9050 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9051 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9052 * gdbtypes.h (enum range_flags): New enum.
9053 (struct range_bounds): Add flags member.
9054
9055 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9056
9057 * c-typeprint.c (c_type_print_varspec_suffix): Added
9058 check for not yet resolved high bound. If unresolved, print
9059 "variable length" string to the console instead of random
9060 length.
9061
9062 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9063
9064 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9065 value.
9066 (ada_template_to_fixed_record_type_1): Likewise.
9067 (ada_to_fixed_type_1): Likewise.
9068 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9069 (cp_print_value): Likewise.
9070 * d-valprint.c (dynamic_array_type): Likewise.
9071 * findvar.c (address_of_variable): Likewise.
9072 * jv-valprint.c (java_value_print): Likewise.
9073 * valops.c (value_ind): Likewise.
9074 * value.c (coerce_ref): Likewise.
9075
9076 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9077
9078 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9079 value and retrieve the dynamic type size.
9080
9081 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9082
9083 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9084 passed to sizeof is dynamic evaluate the argument to compute the length.
9085
9086 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9087 Joel Brobecker <brobecker@adacore.com>
9088
9089 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9090 (dwarf2_evaluate_property): New function.
9091 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9092 * dwarf2read.c (attr_to_dynamic_prop): New function.
9093 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9094 attribute.
9095 * gdbtypes.c: Include dwarf2loc.h.
9096 (is_dynamic_type): New function.
9097 (resolve_dynamic_type): New function.
9098 (resolve_dynamic_bounds): New function.
9099 (get_type_length): New function.
9100 (check_typedef): Use get_type_length to compute type length.
9101 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9102 (TYPE_LOW_BOUND_KIND): New macro.
9103 (is_dynamic_type): New function prototype.
9104 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9105 to resolve dynamic properties of the type. Update comment.
9106 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9107
9108 2014-04-14 Richard Henderson <rth@redhat.com>
9109
9110 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9111
9112 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9113 Doug Evans <xdje42@gmail.com>
9114
9115 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9116 dereference TYPE_CODE_REF values.
9117
9118 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9119
9120 Revert the following changes due to regressions:
9121
9122 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9123 (dwarf2_evaluate_property): New function.
9124 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9125 * dwarf2read.c (attr_to_dynamic_prop): New function.
9126 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9127 attribute.
9128 * gdbtypes.c: Include dwarf2loc.h.
9129 (is_dynamic_type): New function.
9130 (resolve_dynamic_type): New function.
9131 (resolve_dynamic_bounds): New function.
9132 (get_type_length): New function.
9133 (check_typedef): Use get_type_length to compute type length.
9134 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9135 (TYPE_LOW_BOUND_KIND): New macro.
9136 (is_dynamic_type): New function prototype.
9137 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9138 to resolve dynamic properties of the type. Update comment.
9139 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9140
9141 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9142 passed to sizeof is dynamic evaluate the argument to compute the length.
9143
9144 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9145 value and retrieve the dynamic type size.
9146
9147 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9148 (ada_template_to_fixed_record_type_1): Likewise.
9149 (ada_to_fixed_type_1): Likewise.
9150 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9151 (cp_print_value): Likewise.
9152 * d-valprint.c (dynamic_array_type): Likewise.
9153 * eval.c (evaluate_subexp_with_coercion): Likewise.
9154 * findvar.c (address_of_variable): Likewise.
9155 * jv-valprint.c (java_value_print): Likewise.
9156 * valops.c (value_ind): Likewise.
9157 * value.c (coerce_ref): Likewise.
9158
9159 * c-typeprint.c (c_type_print_varspec_suffix): Added
9160 check for not yet resolved high bound. If unresolved, print
9161 "variable length" string to the console instead of random
9162 length.
9163
9164 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9165 property and store it as the high bound and flag the range accordingly.
9166 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9167 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9168 * gdbtypes.h (enum range_flags): New enum.
9169 (struct range_bounds): Add flags member.
9170
9171 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9172 points to a constant blob.
9173
9174 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9175 (evaluate_subexp_standard): Pass noside argument.
9176 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9177 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9178 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9179 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9180 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9181
9182 2014-04-11 Keith Seitz <keiths@redhat.com>
9183
9184 PR c++/16675
9185 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9186 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9187 reference types.
9188
9189 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9190
9191 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9192 (evaluate_subexp_standard): Pass noside argument.
9193 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9194 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9195 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9196 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9197 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9198
9199 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9200
9201 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9202 points to a constant blob.
9203
9204 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9205
9206 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9207 property and store it as the high bound and flag the range accordingly.
9208 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9209 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9210 * gdbtypes.h (enum range_flags): New enum.
9211 (struct range_bounds): Add flags member.
9212
9213 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9214
9215 * c-typeprint.c (c_type_print_varspec_suffix): Added
9216 check for not yet resolved high bound. If unresolved, print
9217 "variable length" string to the console instead of random
9218 length.
9219
9220 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9221
9222 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9223 (ada_template_to_fixed_record_type_1): Likewise.
9224 (ada_to_fixed_type_1): Likewise.
9225 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9226 (cp_print_value): Likewise.
9227 * d-valprint.c (dynamic_array_type): Likewise.
9228 * eval.c (evaluate_subexp_with_coercion): Likewise.
9229 * findvar.c (address_of_variable): Likewise.
9230 * jv-valprint.c (java_value_print): Likewise.
9231 * valops.c (value_ind): Likewise.
9232 * value.c (coerce_ref): Likewise.
9233
9234 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9235
9236 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9237 value and retrieve the dynamic type size.
9238
9239 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9240
9241 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9242 passed to sizeof is dynamic evaluate the argument to compute the length.
9243
9244 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9245
9246 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9247 (dwarf2_evaluate_property): New function.
9248 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9249 * dwarf2read.c (attr_to_dynamic_prop): New function.
9250 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9251 attribute.
9252 * gdbtypes.c: Include dwarf2loc.h.
9253 (is_dynamic_type): New function.
9254 (resolve_dynamic_type): New function.
9255 (resolve_dynamic_bounds): New function.
9256 (get_type_length): New function.
9257 (check_typedef): Use get_type_length to compute type length.
9258 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9259 (TYPE_LOW_BOUND_KIND): New macro.
9260 (is_dynamic_type): New function prototype.
9261 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9262 to resolve dynamic properties of the type. Update comment.
9263 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9264
9265 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9266
9267 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9268 declaring high/low bounds and change uses accordingly. Call
9269 create_range_type instead of create_static_range_type.
9270 * gdbtypes.c (create_range_type): New function.
9271 (create_range_type): Convert bounds into struct bound_prop and pass
9272 them to create_range_type.
9273 * gdbtypes.h (struct bound_prop): New struct.
9274 (create_range_type): New function prototype.
9275 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9276 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9277 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9278 part of the bound.
9279 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9280
9281 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9282
9283 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9284 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9285 * ada-lang.c: All uses of create_range_type updated.
9286 * coffread.c: All uses of create_range_type updated.
9287 * dwarf2read.c: All uses of create_range_type updated.
9288 * f-exp.y: All uses of create_range_type updated.
9289 * m2-valprint.c: All uses of create_range_type updated.
9290 * mdebugread.c: All uses of create_range_type updated.
9291 * stabsread.c: All uses of create_range_type updated.
9292 * valops.c: All uses of create_range_type updated.
9293 * valprint.c: All uses of create_range_type updated.
9294
9295 2014-04-10 Pedro Alves <palves@redhat.com>
9296
9297 * breakpoint.c (single_step_breakpoints)
9298 (single_step_gdbarch): Move up in the file.
9299 (one_breakpoint_xfer_memory): New function, factored out from ...
9300 (breakpoint_xfer_memory): ... here. Also process single-step
9301 breakpoints.
9302
9303 2014-04-09 Tristan Gingold <gingold@adacore.com>
9304
9305 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9306 comments.
9307 (darwin_decode_exception_message): Free port only after use.
9308
9309 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9310
9311 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9312 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9313 when setting the size of call_length.
9314
9315 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9316
9317 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9318 dereference TYPE_CODE_REF values.
9319
9320 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9321
9322 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9323 end of warning message.
9324
9325 2014-04-03 Doug Evans <dje@google.com>
9326
9327 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9328 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9329
9330 2014-04-02 Alan Modra <amodra@gmail.com>
9331
9332 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9333 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9334 (struct symbol_file_add_from_memory_args): Add size field.
9335 (find_vdso_size): New function.
9336 (add_vsyscall_page): Attempt to find vdso size.
9337
9338 2014-04-01 Doug Evans <dje@google.com>
9339
9340 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9341
9342 2014-04-01 Tristan Gingold <gingold@adacore.com>
9343
9344 * darwin-nat.c (darwin_encode_reply): Add prototype.
9345 (darwin_decode_exception_message): Reply to unknown inferiors.
9346 (darwin_decode_message): Handle message by id. Ignore message
9347 to unknown inferior.
9348 (darwin_wait): Discard unknown messages, add debug trace.
9349
9350 2014-03-31 Doug Evans <dje@google.com>
9351
9352 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9353 comp_dir_string.
9354
9355 2014-03-31 Doug Evans <dje@google.com>
9356
9357 New option "set print symbol-loading".
9358 * NEWS: Mention it.
9359 * solib.c (solib_read_symbols): Only print symbol loading messages
9360 if requested.
9361 (solib_add): If symbol loading is in "brief" mode, notify user
9362 symbols are being loaded.
9363 (reload_shared_libraries_1): Ditto.
9364 * symfile.c (print_symbol_loading_off): New static global.
9365 (print_symbol_loading_brief): New static global.
9366 (print_symbol_loading_full): New static global.
9367 (print_symbol_loading_enums): New static global.
9368 (print_symbol_loading): New static global.
9369 (print_symbol_loading_p): New function.
9370 (symbol_file_add_with_addrs): Only print symbol loading messages
9371 if requested.
9372 (_initialize_symfile): Register "print symbol-loading" set/show
9373 command.
9374 * symfile.h (print_symbol_loading_p): Declare.
9375
9376 2014-03-30 Doug Evans <xdje42@gmail.com>
9377
9378 * infrun.c (set_last_target_status): New function.
9379 (handle_inferior_event): Call it.
9380
9381 2014-03-30 Doug Evans <xdje42@gmail.com>
9382
9383 * inferior.h (enum stop_kind): Improve comment.
9384
9385 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9386
9387 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9388 a reference, strip the reference layer before calling
9389 the lang_ops value_has_mutated callback.
9390
9391 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9392
9393 Remove some globals from our parser.
9394 * language.c (unk_lang_parser): Add "struct parser_state"
9395 argument.
9396 * language.h (struct language_defn) <la_parser>: Likewise.
9397 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9398 (initialize_expout): Add "struct parser_state" argument.
9399 Rewrite function to use the parser state.
9400 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9401 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9402 write_exp_elt_longcst, write_exp_elt_dblcst,
9403 write_exp_elt_decfloatcst, write_exp_elt_type,
9404 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9405 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9406 write_dollar_variable): Likewise.
9407 (parse_exp_in_context_1): Use parser state.
9408 (insert_type_address_space): Add "struct parser_state" argument.
9409 Use parser state.
9410 (increase_expout_size): New function.
9411 * parser-defs.h: Forward declare "struct language_defn" and
9412 "struct parser_state".
9413 (expout, expout_size, expout_ptr): Remove extern declarations.
9414 (parse_gdbarch, parse_language): Rewrite macro declarations to
9415 accept the parser state.
9416 (struct parser_state): New struct.
9417 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9418 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9419 write_exp_elt_decfloatcst, write_exp_elt_type,
9420 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9421 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9422 write_exp_msymbol, write_dollar_variable,
9423 mark_struct_expression, insert_type_address_space): Add "struct
9424 parser_state" argument.
9425 (increase_expout_size): New function.
9426 * utils.c (do_clear_parser_state): New function.
9427 (make_cleanup_clear_parser_state): Likewise.
9428 * utils.h (make_cleanup_clear_parser_state): New function
9429 prototype.
9430 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9431 Update calls to write_exp* in order to pass the parser state.
9432 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9433 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9434 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9435 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9436 * stap-probe.c (stap_parse_register_operand): Likewise.
9437 (stap_parse_single_operand): Likewise.
9438 (stap_parse_argument_1): Likewise.
9439 (stap_parse_argument): Use parser state.
9440 * stap-probe.h: Include "parser-defs.h".
9441 (struct stap_parse_info) <pstate>: New field.
9442 * c-exp.y (parse_type): Rewrite to use parser state.
9443 (yyparse): Redefine to c_parse_internal.
9444 (pstate): New global variable.
9445 (parse_number): Add "struct parser_state" argument.
9446 (write_destructor_name): Likewise.
9447 (type_exp): Update calls to write_exp* and similars in order to
9448 use parser state.
9449 (exp1, exp, variable, qualified_name, space_identifier,
9450 typename, typebase): Likewise.
9451 (write_destructor_name, parse_number, lex_one_token,
9452 classify_name, classify_inner_name, c_parse): Add "struct
9453 parser_state" argument. Update function to use parser state.
9454 * c-lang.h: Forward declare "struct parser_state".
9455 (c_parse): Add "struct parser_state" argument.
9456 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9457 (yyparse): Redefine macro to ada_parse_internal.
9458 (pstate): New variable.
9459 (write_int, write_object_renaming, write_var_or_type,
9460 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9461 type_int, type_long, type_long_long, type_float, type_double,
9462 type_long_double, type_char, type_boolean, type_system_address):
9463 Add "struct parser_state" argument.
9464 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9465 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9466 var_or_type, aggregate, aggregate_component_list,
9467 positional_list, others, component_group,
9468 component_associations): Update calls to write_exp* and similar
9469 functions in order to use parser state.
9470 (ada_parse, write_var_from_sym, write_int,
9471 write_exp_op_with_string, write_object_renaming,
9472 find_primitive_type, write_selectors, write_ambiguous_var,
9473 write_var_or_type, write_name_assoc, type_int, type_long,
9474 type_long_long, type_float, type_double, type_long_double,
9475 type_char, type_boolean, type_system_address): Add "struct
9476 parser_state" argument. Adjust function to use parser state.
9477 * ada-lang.c (parse): Likewise.
9478 * ada-lang.h: Forward declare "struct parser_state".
9479 (ada_parse): Add "struct parser_state" argument.
9480 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9481 calls to both functions.
9482 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9483 parser state.
9484 (yyparse): Redefine macro to f_parse_internal.
9485 (pstate): New variable.
9486 (parse_number): Add "struct parser_state" argument.
9487 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9488 and similars in order to use parser state.
9489 (parse_number): Adjust code to use parser state.
9490 (yylex): Likewise.
9491 (f_parse): New function.
9492 * f-lang.h: Forward declare "struct parser_state".
9493 (f_parse): Add "struct parser_state" argument.
9494 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9495 parser state.
9496 (yyparse): Redefine macro for java_parse_internal.
9497 (pstate): New variable.
9498 (push_expression_name, push_expression_name, insert_exp): Add
9499 "struct parser_state" argument.
9500 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9501 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9502 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9503 PostIncrementExpression, PostDecrementExpression,
9504 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9505 UnaryExpressionNotPlusMinus, CastExpression,
9506 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9507 RelationalExpression, EqualityExpression, AndExpression,
9508 ExclusiveOrExpression, InclusiveOrExpression,
9509 ConditionalAndExpression, ConditionalOrExpression,
9510 ConditionalExpression, Assignment, LeftHandSide): Update
9511 calls to write_exp* and similars in order to use parser state.
9512 (parse_number): Ajust code to use parser state.
9513 (yylex): Likewise.
9514 (java_parse): New function.
9515 (push_variable): Add "struct parser_state" argument. Adjust
9516 code to user parser state.
9517 (push_fieldnames, push_qualified_expression_name,
9518 push_expression_name, insert_exp): Likewise.
9519 * jv-lang.h: Forward declare "struct parser_state".
9520 (java_parse): Add "struct parser_state" argument.
9521 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9522 parser state.
9523 (yyparse): Redefine macro to m2_parse_internal.
9524 (pstate): New variable.
9525 (type_exp, exp, fblock, variable, type): Update calls to
9526 write_exp* and similars to use parser state.
9527 (yylex): Likewise.
9528 (m2_parse): New function.
9529 * m2-lang.h: Forward declare "struct parser_state".
9530 (m2_parse): Add "struct parser_state" argument.
9531 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9532 * objc-lang.h: Forward declare "struct parser_state".
9533 (end_msglist): Add "struct parser_state" argument.
9534 * p-exp.y (parse_type): Rewrite macro to use parser state.
9535 (yyparse): Redefine macro to pascal_parse_internal.
9536 (pstate): New variable.
9537 (parse_number): Add "struct parser_state" argument.
9538 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9539 write_exp* and similars in order to use parser state.
9540 (parse_number, yylex): Adjust code to use parser state.
9541 (pascal_parse): New function.
9542 * p-lang.h: Forward declare "struct parser_state".
9543 (pascal_parse): Add "struct parser_state" argument.
9544 * go-exp.y (parse_type): Rewrite macro to use parser state.
9545 (yyparse): Redefine macro to go_parse_internal.
9546 (pstate): New variable.
9547 (parse_number): Add "struct parser_state" argument.
9548 (type_exp, exp1, exp, variable, type): Update calls to
9549 write_exp* and similars in order to use parser state.
9550 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9551 to use parser state.
9552 (go_parse): Likewise.
9553 * go-lang.h: Forward declare "struct parser_state".
9554 (go_parse): Add "struct parser_state" argument.
9555
9556 2014-03-27 Doug Evans <dje@google.com>
9557
9558 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9559
9560 2014-03-27 Doug Evans <dje@google.com>
9561
9562 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9563 Remove argument abbrev_section. All callers updated.
9564
9565 2014-03-27 Doug Evans <dje@google.com>
9566
9567 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9568 addr_base, ranges_base.
9569
9570 2014-03-26 Keith Seitz <keiths@redhat.com>
9571
9572 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9573 types, not VAR_DOMAIN.
9574
9575 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9576
9577 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9578 "ra" registers.
9579 * features/nios2-linux.c: Regenerated.
9580 * features/nios2.c: Regenerated.
9581
9582 2014-03-25 Pedro Alves <palves@redhat.com>
9583
9584 * cli/cli-script.c (script_from_file): Force the interpreter to
9585 sync mode.
9586
9587 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9588
9589 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9590 small stack allocation.
9591
9592 2014-03-24 Tristan Gingold <gingold@adacore.com>
9593
9594 * darwin-nat.c (exc_server): Remove unused prototype.
9595 (darwin_dump_message): Correctly display data on x86_64.
9596 (darwin_encode_reply): Fix style.
9597 Add comments and fix indentation.
9598
9599 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9600
9601 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9602
9603 2014-03-22 Doug Evans <xdje42@gmail.com>
9604
9605 * infcmd.c: Whitespace fixes.
9606 (interrupt_command): Merge two function comments into one.
9607
9608 2014-03-22 Doug Evans <xdje42@gmail.com>
9609
9610 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9611 All uses updated.
9612
9613 2014-03-22 Yao Qi <yao@codesourcery.com>
9614
9615 * remote.c (target_read_live_memory): Remove.
9616 (memory_xfer_live_readonly_partial): Rename it to
9617 remote_xfer_live_readonly_partial. Remove argument 'object'.
9618 All callers updated. Call remote_read_bytes_1
9619 instead of target_read_live_memory.
9620 * tracepoint.c (set_traceframe_number): Remove.
9621 (make_cleanup_restore_traceframe_number): Likewise .
9622 * tracepoint.h (set_traceframe_number): Remove declaration.
9623 (make_cleanup_restore_traceframe_number): Likewise.
9624
9625 2014-03-22 Yao Qi <yao@codesourcery.com>
9626
9627 * remote.c (remote_read_bytes): Move code on reading from the
9628 remote stub to ...
9629 (remote_read_bytes_1): ... here. New function.
9630
9631 2014-03-22 Yao Qi <yao@codesourcery.com>
9632
9633 * ctf.c (ctf_xfer_partial): Check the return value of
9634 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9635 return TARGET_XFER_UNAVAILABLE.
9636 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9637 * target.c (target_read_live_memory): Move it to remote.c.
9638 (memory_xfer_live_readonly_partial): Likewise.
9639 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9640 * remote.c (target_read_live_memory): Moved from target.c.
9641 (memory_xfer_live_readonly_partial): Likewise.
9642 (remote_read_bytes): Factored out from
9643 memory_xfer_partial_1.
9644
9645 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9646
9647 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9648 NULL pointer.
9649
9650 2014-03-21 Pedro Alves <palves@redhat.com>
9651
9652 * infrun.c (normal_stop): Extend comment.
9653
9654 2014-03-21 Hui Zhu <hui@codesourcery.com>
9655 Pedro Alves <palves@redhat.com>
9656
9657 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9658 static buffer.
9659 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9660 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9661 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9662
9663 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9664
9665 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9666 `z' formatted output modifier.
9667
9668 2014-03-20 Tom Tromey <tromey@redhat.com>
9669 Sergio Durigan Junior <sergiodj@redhat.com>
9670
9671 * probe.c (parse_probes): Turn assert into an ordinary error.
9672 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9673 exceptions when parsing probes. Rearrange the code for clarity.
9674
9675 2014-03-20 Tom Tromey <tromey@redhat.com>
9676
9677 PR gdb/14135
9678 * top.c (execute_command): Only dispatch events if the command
9679 started the target.
9680
9681 2014-03-20 Tom Tromey <tromey@redhat.com>
9682
9683 PR cli/15718
9684 * infcall.c: Include event-top.h.
9685 (run_inferior_call): Call async_disable_stdin if needed.
9686
9687 2014-03-20 Pedro Alves <palves@redhat.com>
9688
9689 * infrun.c (prepare_to_proceed): Delete.
9690 (thread_still_needs_step_over): New function.
9691 (find_thread_needs_step_over): New function.
9692 (proceed): If the current thread needs a step-over, set its
9693 steping_over_breakpoint flag. Adjust to use
9694 find_thread_needs_step_over instead of prepare_to_proceed.
9695 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9696 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9697 breakpoint.
9698 (switch_back_to_stepped_thread): Step over breakpoints of all
9699 threads not the stepping thread, before switching back to the
9700 stepping thread.
9701
9702 2014-03-20 Pedro Alves <palves@redhat.com>
9703
9704 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9705 extern.
9706 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9707 * infrun.c (saved_singlestep_ptid)
9708 (stepping_past_singlestep_breakpoint): Delete.
9709 (resume): Remove stepping_past_singlestep_breakpoint handling.
9710 (proceed): Store the prev_pc of the stepping thread too.
9711 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9712 singlestep_pc.
9713 (enum infwait_states): Delete infwait_thread_hop_state.
9714 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9715 field.
9716 (handle_inferior_event): Adjust.
9717 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9718 handling and the thread-hop code. Before removing single-step
9719 breakpoints, check whether the thread hit a single-step breakpoint
9720 of another thread. If it did, the trap is not a random signal.
9721 (switch_back_to_stepped_thread): If the event thread hit a
9722 single-step breakpoint, unblock it before switching to the
9723 stepping thread. Handle the case of the stepped thread having
9724 advanced already.
9725 (keep_going): Handle the case of the current thread moving past a
9726 single-step breakpoint.
9727
9728 2014-03-20 Pedro Alves <palves@redhat.com>
9729
9730 PR breakpoints/7143
9731 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9732 are being stepped over.
9733 (breakpoint_address_match): Make extern.
9734 * breakpoint.h (breakpoint_address_match): New declaration.
9735 * inferior.h (stepping_past_instruction_at): New declaration.
9736 * infrun.c (struct step_over_info): New type.
9737 (step_over_info): New global.
9738 (set_step_over_info, clear_step_over_info)
9739 (stepping_past_instruction_at): New functions.
9740 (handle_inferior_event): Clear the step-over info when
9741 trap_expected is cleared.
9742 (resume): Remove now stale comment.
9743 (clear_proceed_status): Clear step-over info.
9744 (proceed): Adjust step-over handling to set or clear the step-over
9745 info instead of removing all breakpoints.
9746 (handle_signal_stop): When setting up a thread-hop, don't remove
9747 breakpoints here.
9748 (stop_stepping): Clear step-over info.
9749 (keep_going): Adjust step-over handling to set or clear step-over
9750 info and then always inserting breakpoints, instead of removing
9751 all breakpoints when stepping over one.
9752
9753 2014-03-20 Pedro Alves <palves@redhat.com>
9754
9755 * infrun.c (previous_inferior_ptid): Adjust comment.
9756 (deferred_step_ptid): Delete.
9757 (infrun_thread_ptid_changed, prepare_to_proceed)
9758 (init_wait_for_inferior): Adjust.
9759 (handle_signal_stop): Delete deferred_step_ptid handling.
9760
9761 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 PR gdb/15358
9764 * defs.h (sync_quit_force_run): New declaration.
9765 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9766 * event-top.c (async_sigterm_handler): New declaration.
9767 (async_sigterm_token): New variable.
9768 (async_init_signals): Create also async_sigterm_token.
9769 (async_sigterm_handler): New function.
9770 (sync_quit_force_run): New variable.
9771 (handle_sigterm): Replace quit_force call by other calls.
9772 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9773
9774 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9775
9776 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9777 offset into SPE pseudo registers.
9778
9779 2014-03-18 Pedro Alves <palves@redhat.com>
9780
9781 PR gdb/13860
9782 * inferior.h (print_stop_event): Declare.
9783 * infrun.c (print_stop_event): New, factored out from ...
9784 (normal_stop): ... this.
9785 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9786 of bpstat_print/print_stack_frame.
9787
9788 2014-03-17 Tom Tromey <tromey@redhat.com>
9789
9790 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9791
9792 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9793
9794 * ada-lang.c (decode_constrained_packed_array): Perform a
9795 minimal coercion for reference with coerce_ref instead of
9796 ada_coerce_ref.
9797
9798 2014-03-17 Tristan Gingold <gingold@adacore.com>
9799
9800 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9801 (darwin_solib_create_inferior_hook): Emit a warning if version
9802 is unhandled.
9803
9804 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9805
9806 * python/py-value.c (get_field_flag): Cast flag_name argument to
9807 PyObject_GetAttrString to support Python 2.4.
9808
9809 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9812 (Global Maintainers): Remove Jan Kratochvil.
9813
9814 2014-03-14 Pedro Alves <palves@redhat.com>
9815
9816 * inferior.h (terminal_ours_for_output): Rename to ...
9817 (child_terminal_ours_for_output): ... this.
9818 (terminal_save_ours): Rename to ...
9819 (child_terminal_save_ours): ... this.
9820 (terminal_ours): Rename to ...
9821 (child_terminal_ours): ... this.
9822 (terminal_inferior): Rename to ...
9823 (child_terminal_inferior): ... this.
9824 (terminal_init_inferior): Rename to ...
9825 (child_terminal_init_inferior): ... this.
9826 (terminal_init_inferior_with_pgrp): Rename to ...
9827 (child_terminal_init_inferior_with_pgrp): ... this.
9828 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9829 (child_terminal_init_with_pgrp): ... this.
9830 (terminal_save_ours): Rename to ...
9831 (child_terminal_save_ours): ... this.
9832 (terminal_init_inferior): Rename to ...
9833 (child_terminal_init): ... this. Adjust.
9834 (terminal_inferior): Rename to ...
9835 (child_terminal_inferior): ... this.
9836 (terminal_ours_for_output): Rename to ...
9837 (child_terminal_ours_for_output): ... this. Adjust.
9838 (terminal_ours): Rename to ...
9839 (child_terminal_ours): ... this.
9840 (terminal_ours_1): Rename to ...
9841 (child_terminal_ours_1): ... this. Adjust.
9842 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9843 * windows-nat.c (do_initial_windows_stuff): Adjust.
9844 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9845 (gnu_terminal_init): ... this. Adjust.
9846 (gnu_target): Adjust.
9847 * inf-child.c (inf_child_target): Adjust.
9848
9849 2014-03-13 Doug Evans <xdje42@gmail.com>
9850
9851 PR guile/16612
9852 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9853 new eq?-hashtab.
9854
9855 2014-03-13 Doug Evans <xdje42@gmail.com>
9856
9857 * value.c (record_latest_value): Call release_value_or_incref
9858 instead of release_value.
9859
9860 2014-03-13 Pedro Alves <palves@redhat.com>
9861
9862 * procfs.c (procfs_target): Don't override to_shortname,
9863 to_longname or to_doc.
9864
9865 2014-03-13 Pedro Alves <palves@redhat.com>
9866
9867 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9868 Unix in user visible strings.
9869
9870 2014-03-12 Stan Shebs <stan@codesourcery.com>
9871
9872 * gdbtypes.h: Annotate comments for Doxygen, add a page
9873 block comment with some general info.
9874
9875 2014-03-12 Pedro Alves <palves@redhat.com>
9876
9877 * infcmd.c (prepare_execution_command): New function, factored out
9878 from several execution commands.
9879 (run_command_1, continue_command, step_1, jump_command)
9880 (signal_command, until_command, advance_command, finish_command)
9881 (attach_command): Use prepare_execution_command.
9882
9883 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9884
9885 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9886 (MAX_BPTS): Define.
9887 (MAX_WPTS): Define.
9888 (struct arm_linux_thread_points): Removed.
9889 (struct arm_linux_process_info): New.
9890 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9891 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9892 (arm_linux_find_breakpoints_by_tid): Removed.
9893 (struct arch_lwp_info): New.
9894 (arm_linux_find_process_pid): New functions.
9895 (arm_linux_add_process): New functions.
9896 (arm_linux_process_info_get): New functions.
9897 (arm_linux_forget_process): New function.
9898 (arm_linux_get_debug_reg_state): New function.
9899 (struct update_registers_data): New.
9900 (update_registers_callback): New function.
9901 (arm_linux_insert_hw_breakpoint1): Updated.
9902 (arm_linux_remove_hw_breakpoint1): Updated.
9903 (arm_linux_insert_hw_breakpoint): Updated.
9904 (arm_linux_remove_hw_breakpoint): Updated.
9905 (arm_linux_insert_watchpoint): Updated.
9906 (arm_linux_remove_watchpoint): Updated.
9907 (arm_linux_new_thread): Updated.
9908 (arm_linux_prepare_to_resume): New function.
9909 (arm_linux_new_fork): New function.
9910 (_initialize_arm_linux_nat): Updated.
9911
9912 2014-03-12 Pedro Alves <palves@redhat.com>
9913
9914 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9915
9916 2014-03-12 Tom Tromey <tromey@redhat.com>
9917
9918 * inf-child.c (return_zero): New function.
9919 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9920 * aix-thread.c (aix_thread_inferior_created): New function.
9921 (aix_thread_attach): Remove.
9922 (init_aix_thread_ops): Don't set to_attach.
9923 (_initialize_aix_thread): Register inferior_created observer.
9924 * corelow.c (init_core_ops): Don't set to_attach or
9925 to_create_inferior.
9926 * exec.c (init_exec_ops): Don't set to_attach or
9927 to_create_inferior.
9928 * infcmd.c (run_command_1): Use find_run_target. Make direct
9929 target calls.
9930 (attach_command): Use find_attach_target. Make direct target
9931 calls.
9932 * record-btrace.c (init_record_btrace_ops): Don't set
9933 to_create_inferior.
9934 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9935 Remove.
9936 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9937 set to_create_inferior.
9938 * target.c (complete_target_initialization): Add assertion.
9939 (target_create_inferior): Remove.
9940 (find_default_attach, find_default_create_inferior): Remove.
9941 (find_attach_target, find_run_target): New functions.
9942 (find_default_is_async_p, find_default_can_async_p)
9943 (target_supports_non_stop, target_attach): Remove.
9944 (init_dummy_target): Don't set to_create_inferior or
9945 to_supports_non_stop.
9946 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9947 TARGET_DEFAULT_FUNC.
9948 <to_create_inferior>: Add comment.
9949 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9950 TARGET_DEFAULT_RETURN.
9951 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9952 (find_attach_target, find_run_target): Declare.
9953 (target_create_inferior): Remove.
9954 (target_has_execution_1): Update comment.
9955 (target_supports_non_stop): Remove.
9956 * target-delegates.c: Rebuild.
9957
9958 2014-03-12 Pedro Alves <palves@redhat.com>
9959
9960 * inf-child.h: Update comment to not mention Unix.
9961
9962 2014-03-12 Pedro Alves <palves@redhat.com>
9963
9964 * inf-child.c: Update top comment to not mention Unix. Add
9965 generic comment describing how this target is meant to be used.
9966 (inf_child_post_attach, inf_child_post_startup_inferior)
9967 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9968 Unix in comment.
9969
9970 2014-03-12 Pedro Alves <palves@redhat.com>
9971
9972 * nto-procfs.c: Include inf-child.h.
9973 (procfs_ops): Delete global.
9974 (procfs_can_run): Delete method.
9975 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9976 target pointer instead of referencing procfs_ops.
9977 (procfs_prepare_to_store): Delete.
9978 (init_procfs_ops): Delete function.
9979 (procfs_target): New function, based on init_procfs_ops, but
9980 inherit inf_child_target.
9981 (_initialize_procfs): Use procfs_target.
9982
9983 2014-03-12 Pedro Alves <palves@redhat.com>
9984
9985 * windows-nat.c: Include inf-child.h.
9986 (windows_ops): Delete global.
9987 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9988 methods.
9989 (init_windows_ops): Delete function.
9990 (windows_target): New function, based on init_windows_ops, but
9991 inherit inf_child_target.
9992 (_initialize_windows_nat): Use windows_target. Install x86
9993 specific target methods here.
9994
9995 2014-03-10 Doug Evans <xdje42@gmail.com>
9996
9997 * guile/guile.c (call_initialize_gdb_module): New function.
9998 (initialize_guile): Replace call to scm_init_guile with call to
9999 scm_with_guile.
10000
10001 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10002
10003 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10004 in call to TYPE_CODE macro.
10005
10006 2014-03-10 Jerome Guitton <guitton@adacore.com>
10007
10008 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10009 Resolve tagged types to full view.
10010
10011 2014-03-10 Hui Zhu <hui@codesourcery.com>
10012
10013 * target.h (target_insert_breakpoint): Remove "hardware" from its
10014 comments.
10015
10016 2014-03-07 Doug Evans <dje@google.com>
10017
10018 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10019
10020 2014-03-07 Doug Evans <dje@google.com>
10021
10022 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10023 Remove unused local comp_dir_attr. Assert exactly one of
10024 stub_comp_unit_die, stub_comp_dir is non-NULL.
10025
10026 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10027
10028 * target.h (complete_target_initialization, add_target):
10029 Add comment.
10030
10031 2014-03-07 Pedro Alves <palves@redhat.com>
10032
10033 * go32-nat.c: Include inf-child.h.
10034 (go32_ops): Delete global.
10035 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10036 Delete methods.
10037 (go32_create_inferior): Push the passed in target pointer instead
10038 of referencing go32_ops.
10039 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10040 (go32_target): New function, based on init_go32_ops, but inherit
10041 inf_child_target.
10042 (_initialize_go32_nat): Use go32_target. Move parts of
10043 init_go32_ops here.
10044
10045 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10046
10047 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10048 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10049 SYMBOL_VALUE_ADDRESS.
10050 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10051
10052 2014-03-06 Yao Qi <yao@codesourcery.com>
10053
10054 * breakpoint.c (get_tracepoint_by_number): Remove argument
10055 optional_p. All callers updated. Adjust comments. Update
10056 output message.
10057 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10058
10059 2014-03-06 Yao Qi <yao@codesourcery.com>
10060
10061 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10062 early if get_number returns zero. Use 'p' instead of 'args'.
10063
10064 2014-03-06 Yao Qi <yao@codesourcery.com>
10065
10066 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10067 message.
10068
10069 2014-03-06 Yao Qi <yao@codesourcery.com>
10070
10071 PR breakpoints/16508
10072 * tracepoint.c (check_trace_running): New function.
10073 (trace_find_command): Move code to check_trace_running and
10074 call check_trace_running.
10075 (trace_find_pc_command): Likewise.
10076 (trace_find_tracepoint_command): Likewise.
10077 (trace_find_line_command): Likewise.
10078 (trace_find_range_command): Likewise.
10079 * tracepoint.h (check_trace_running): Likewise.
10080 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10081
10082 2014-03-06 Yao Qi <yao@codesourcery.com>
10083
10084 * target.h (struct target_ops) <to_traceframe_info>: Use
10085 TARGET_DEFAULT_NORETURN (tcomplain ()).
10086 * target-delegates.c: Regenerated.
10087
10088 2014-03-05 Pedro Alves <palves@redhat.com>
10089
10090 PR gdb/16575
10091 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10092 void. Update comment.
10093 (dcache_xfer_memory): Delete.
10094 (dcache_read_memory_partial): New, based on the read bits of
10095 dcache_xfer_memory.
10096 (dcache_update): Add status parameter. Use ULONGEST for len, and
10097 adjust. Discard cache lines if the reason for the update was
10098 error.
10099 * dcache.h (dcache_xfer_memory): Delete declaration.
10100 (dcache_read_memory_partial): New declaration.
10101 (dcache_update): Update prototype.
10102 * target.c (raw_memory_xfer_partial): Update the dcache here.
10103 (memory_xfer_partial_1): Don't handle dcache writes here.
10104
10105 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10106
10107 * remote-sim.c (gdbsim_load): Add const to prog.
10108
10109 2014-03-03 Tom Tromey <tromey@redhat.com>
10110
10111 * elfread.c (probe_key): Change to bfd_data.
10112 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10113 now per-BFD, not per-objfile.
10114 * stap-probe.c (stap_probe_destroy): Update comment.
10115 (handle_stap_probe): Allocate on the per-BFD obstack.
10116
10117 2014-03-03 Tom Tromey <tromey@redhat.com>
10118
10119 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10120 * breakpoint.c (create_longjmp_master_breakpoint): Use
10121 get_probe_address.
10122 (add_location_to_breakpoint, bkpt_probe_insert_location)
10123 (bkpt_probe_remove_location): Update.
10124 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10125 * elfread.c (elf_symfile_relocate_probe): Remove.
10126 (elf_probe_fns): Update.
10127 (insert_exception_resume_breakpoint): Change type of "probe"
10128 parameter to bound_probe.
10129 (check_exception_resume): Update.
10130 * objfiles.c (objfile_relocate1): Don't relocate probes.
10131 * probe.c (bound_probe_s): New typedef.
10132 (parse_probes): Use get_probe_address. Set sal's objfile.
10133 (find_probe_by_pc): Return a bound_probe.
10134 (collect_probes): Return a VEC(bound_probe_s).
10135 (compare_probes): Update.
10136 (gen_ui_out_table_header_info): Change type of "probes"
10137 parameter. Update.
10138 (info_probes_for_ops): Update.
10139 (get_probe_address): New function.
10140 (probe_safe_evaluate_at_pc): Update.
10141 * probe.h (struct probe_ops) <get_probe_address>: New field.
10142 <set_semaphore, clear_semaphore>: Add objfile parameter.
10143 (struct probe) <objfile>: Remove field.
10144 <arch>: New field.
10145 <address>: Update comment.
10146 (struct bound_probe): New.
10147 (find_probe_by_pc): Return a bound_probe.
10148 (get_probe_address): Declare.
10149 * solib-svr4.c (struct probe_and_action) <address>: New field.
10150 (hash_probe_and_action, equal_probe_and_action): Update.
10151 (register_solib_event_probe): Add address parameter.
10152 (solib_event_probe_at): Update.
10153 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10154 get_probe_address.
10155 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10156 (stap_get_probe_address): New function.
10157 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10158 (compile_probe_arg): Update.
10159 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10160 address.
10161 (handle_stap_probe): Don't relocate the probe.
10162 (stap_relocate): Remove.
10163 (stap_gen_info_probes_table_values): Update.
10164 (stap_probe_ops): Remove stap_relocate.
10165 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10166 (debug_sym_probe_fns): Update.
10167 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10168 * symtab.c (init_sal): Use memset.
10169 * symtab.h (struct symtab_and_line) <objfile>: New field.
10170 * tracepoint.c (start_tracing, stop_tracing): Update.
10171
10172 2014-03-03 Tom Tromey <tromey@redhat.com>
10173
10174 * probe.h (parse_probes, find_probe_by_pc)
10175 (find_probes_in_objfile): Fix comments.
10176
10177 2014-03-02 Doug Evans <xdje42@gmail.com>
10178
10179 * infrun.c (handle_signal_stop): Replace test for
10180 TARGET_WAITKIND_STOPPED with an assert.
10181
10182 2014-03-02 Doug Evans <xdje42@gmail.com>
10183
10184 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10185
10186 2014-03-02 Doug Evans <xdje42@gmail.com>
10187
10188 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10189
10190 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10191
10192 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10193
10194 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10195
10196 * i386obsd-nat.c: Include "obsd-nat.h".
10197 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10198 add_target.
10199 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10200
10201 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10202
10203 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10204
10205 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10206
10207 * mips64obsd-nat.c: Include "obsd-nath".
10208 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10209 add_target
10210 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10211
10212 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10213
10214 * amd64obsd-nat.c: Include "obsd-nat,h.
10215 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10216 add_target.
10217 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10218
10219 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10220
10221 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10222 (find_overload_match): Update call to find_oload_champ.
10223 (find_oload_champ_namespace_loop): Likewise
10224
10225 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10226
10227 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10228
10229 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10230 * config/sparc/obsd64.mh: New file.
10231 * sparc64obsd-nat.c: New file.
10232
10233 * obsd-nat.h: New file.
10234 * obsd-nat.c: New file.
10235 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10236 (ALLDEPFILES): Add obsd-nat.c.
10237
10238 2014-02-28 Tom Tromey <tromey@redhat.com>
10239
10240 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10241 * cli-out.h (cli_ui_out_impl): Now const.
10242 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10243 * ui-out.c (struct ui_out) <impl>: Now const.
10244 (default_ui_out_impl): Now const.
10245 (ui_out_new): Make 'impl' parameter const.
10246 * ui-out.h (ui_out_new): Update.
10247
10248 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10249
10250 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10251
10252 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10253
10254 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10255
10256 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10257
10258 Additional PR 8882 fix.
10259 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10260
10261 2014-02-27 Pedro Alves <palves@redhat.com>
10262
10263 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10264 isn't set.
10265
10266 2014-02-27 Pedro Alves <palves@redhat.com>
10267
10268 PR 12702
10269 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10270 * nat/linux-waitpid.c: Include string.h.
10271 (status_to_str): Moved here and made extern.
10272 * nat/linux-waitpid.h (status_to_str): New declaration.
10273
10274 2014-02-27 Hui Zhu <hui@codesourcery.com>
10275
10276 PR 12702
10277 * infrun.c (ptid_match): Move ...
10278 * common/ptid.c (ptid_match): ... here.
10279 * inferior.h (ptid_match): Move ...
10280 * common/ptid.h (ptid_match): ... here.
10281
10282 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10283
10284 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10285 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10286 gdb_target_obs.
10287
10288 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10289
10290 * obsd-tdep.c (obsd_auxv_parse): New function.
10291 (obsd_init_abi): Set auxv_parse.
10292
10293 * gdbarch.sh (auxv_parse): New.
10294 * gdbarch.h: Regenerated.
10295 * gdbarch.c: Regenerated.
10296 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10297
10298 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10299
10300 * guile/scm-value.c (gdbscm_history_append_x): New function.
10301 (value_functions): Add it.
10302
10303 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10304
10305 * dwarf2read.c (attr_value_as_address): New function.
10306 (dwarf2_find_base_address, read_call_site_scope): Use
10307 attr_value_as_address in place of DW_ADDR.
10308 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10309 the low and high addresses. Slight rework of the handling
10310 of the high pc being a constant form, and limit it to
10311 DWARF verson 4 or higher.
10312 (dwarf2_record_block_ranges): Likewise.
10313 (read_partial_die): Likewise.
10314 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10315
10316 2014-02-26 Tom Tromey <tromey@redhat.com>
10317
10318 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10319
10320 2014-02-26 Tom Tromey <tromey@redhat.com>
10321
10322 * elfread.c (elf_read_minimal_symbols): Return early if
10323 minimal symbols have already been read. Add "ei" parameter.
10324 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10325 * minsyms.c (prim_record_minimal_symbol_full): Update.
10326 * objfiles.h (struct objstats) <n_minsyms>: Move...
10327 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10328 * symmisc.c (print_objfile_statistics): Update.
10329
10330 2014-02-26 Tom Tromey <tromey@redhat.com>
10331
10332 * elfread.c (elf_read_minimal_symbols): New function, from
10333 elf_symfile_read.
10334 (elf_symfile_read): Call it.
10335
10336 2014-02-26 Tom Tromey <tromey@redhat.com>
10337
10338 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10339 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10340 (lookup_minimal_symbol_solib_trampoline)
10341 (lookup_minimal_symbol_by_pc_section_1)
10342 (lookup_minimal_symbol_and_objfile): Update.
10343 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10344 Don't allocate a minimal symbol if minsyms have already been read.
10345 (build_minimal_symbol_hash_tables): Update.
10346 (install_minimal_symbols): Do nothing if minsyms already read.
10347 Use the per-BFD obstack.
10348 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10349 * objfiles.c (allocate_objfile): Call
10350 terminate_minimal_symbol_table later.
10351 (have_minimal_symbols): Update.
10352 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10353 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10354 Move from struct objfile.
10355 <minsyms_read>: New field.
10356 (struct objfile) <msymbols, minimal_symbol_count,
10357 msymbol_hash, msymbol_demangled_hash>: Move.
10358 (ALL_OBJFILE_MSYMBOLS): Update.
10359 * symfile.c (read_symbols): Set minsyms_read.
10360 (reread_symbols): Update.
10361 * symmisc.c (dump_objfile, dump_msymbols): Update.
10362
10363 2014-02-26 Tom Tromey <tromey@redhat.com>
10364
10365 * minsyms.c (msymbols_sort): Remove.
10366 * minsyms.h (msymbols_sort): Remove.
10367 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10368 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10369 * elfread.c (elf_symtab_read): Don't add section offsets.
10370 * xcoffread.c (record_minimal_symbol): Don't add section offset
10371 to minimal symbol address.
10372 * somread.c (text_offset, data_offset): Remove.
10373 (som_symtab_read): Don't add section offsets to minimal symbol
10374 addresses.
10375 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10376 Don't add section offsets to minimal symbols.
10377 * coffread.c (coff_symtab_read): Don't add section offsets
10378 to minimal symbol addresses.
10379 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10380 to minimal symbol addresses.
10381 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10382 section offset to minimal symbol addresses.
10383 * mdebugread.c (parse_partial_symbols): Don't add section
10384 offset to minimal symbol addresses.
10385 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10386 offset to minimal symbol addresses.
10387
10388 2014-02-26 Tom Tromey <tromey@redhat.com>
10389
10390 * ada-lang.c (ada_main_name): Update.
10391 (ada_add_standard_exceptions): Update.
10392 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10393 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10394 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10395 * auxv.c (ld_so_xfer_auxv): Update.
10396 * avr-tdep.c (avr_scan_prologue): Update.
10397 * ax-gdb.c (gen_var_ref): Update.
10398 * blockframe.c (get_pc_function_start)
10399 (find_pc_partial_function_gnu_ifunc): Update.
10400 * breakpoint.c (create_overlay_event_breakpoint)
10401 (create_longjmp_master_breakpoint)
10402 (create_std_terminate_master_breakpoint)
10403 (create_exception_master_breakpoint): Update.
10404 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10405 * c-valprint.c (c_val_print): Update.
10406 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10407 * common/agent.c (agent_look_up_symbols): Update.
10408 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10409 * dwarf2loc.c (call_site_to_target_addr): Update.
10410 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10411 * elfread.c (elf_gnu_ifunc_record_cache)
10412 (elf_gnu_ifunc_resolve_by_got): Update.
10413 * findvar.c (default_read_var_value): Update.
10414 * frame.c (inside_main_func): Update.
10415 * frv-tdep.c (frv_frame_this_id): Update.
10416 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10417 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10418 Update.
10419 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10420 (hppa_hpux_find_dummy_bpaddr): Update.
10421 * hppa-tdep.c (hppa_symbol_address): Update.
10422 * infcmd.c (until_next_command): Update.
10423 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10424 Update.
10425 * linespec.c (minsym_found, add_minsym): Update.
10426 * linux-nat.c (get_signo): Update.
10427 * linux-thread-db.c (inferior_has_bug): Update.
10428 * m32c-tdep.c (m32c_return_value)
10429 (m32c_m16c_address_to_pointer): Update.
10430 * m32r-tdep.c (m32r_frame_this_id): Update.
10431 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10432 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10433 * maint.c (maintenance_translate_address): Update.
10434 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10435 (frob_address): New function.
10436 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10437 frob_address. Rename parameter to "pc_in".
10438 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10439 addresses.
10440 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10441 Update.
10442 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10443 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10444 * objc-lang.c (find_objc_msgsend): Update.
10445 * objfiles.c (objfile_relocate1): Update.
10446 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10447 * p-valprint.c (pascal_val_print): Update.
10448 * parse.c (write_exp_msymbol): Update.
10449 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10450 (ppc_elfv2_skip_entrypoint): Update.
10451 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10452 * printcmd.c (build_address_symbolic, msym_info)
10453 (address_info): Update.
10454 * proc-service.c (ps_pglobal_lookup): Update.
10455 * psymtab.c (find_pc_sect_psymtab_closer)
10456 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10457 Change msymbol parameter to bound_minimal_symbol.
10458 * ravenscar-thread.c (get_running_thread_id): Update.
10459 * remote.c (remote_check_symbols): Update.
10460 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10461 address.
10462 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10463 * solib-dsbt.c (lm_base): Update.
10464 * solib-frv.c (lm_base, main_got): Update.
10465 * solib-irix.c (locate_base): Update.
10466 * solib-som.c (som_solib_create_inferior_hook)
10467 (link_map_start): Update.
10468 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10469 * solib-svr4.c (elf_locate_base, enable_break): Update.
10470 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10471 (flush_ea_cache): Update.
10472 * stabsread.c (define_symbol, scan_file_globals): Update.
10473 * stack.c (find_frame_funname): Update.
10474 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10475 (debug_qf_find_pc_sect_symtab): Update.
10476 * symfile.c (simple_read_overlay_table)
10477 (simple_overlay_update): Update.
10478 * symfile.h (struct quick_symbol_functions)
10479 <find_pc_sect_symtab>: Change type of msymbol to
10480 bound_minimal_symbol.
10481 * symmisc.c (dump_msymbols): Update.
10482 * symtab.c (find_pc_sect_symtab_via_partial)
10483 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10484 (search_symbols, print_msymbol_info): Update.
10485 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10486 (MSYMBOL_VALUE_ADDRESS): Redefine.
10487 (BMSYMBOL_VALUE_ADDRESS): New macro.
10488 * tracepoint.c (scope_info): Update.
10489 * tui/tui-disasm.c (tui_find_disassembly_address)
10490 (tui_get_begin_asm_address): Update.
10491 * valops.c (find_function_in_inferior): Update.
10492 * value.c (value_static_field, value_fn_field): Update.
10493
10494 2014-02-26 Tom Tromey <tromey@redhat.com>
10495
10496 * ada-lang.c (ada_update_initial_language): Update.
10497 (ada_main_name, ada_has_this_exception_support): Update.
10498 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10499 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10500 * arm-tdep.c (arm_skip_stub): Update.
10501 * auxv.c (ld_so_xfer_auxv): Update.
10502 * avr-tdep.c (avr_scan_prologue): Update.
10503 * ax-gdb.c (gen_var_ref): Update.
10504 * breakpoint.c (struct breakpoint_objfile_data)
10505 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10506 type to bound_minimal_symbol.
10507 (create_overlay_event_breakpoint)
10508 (create_longjmp_master_breakpoint)
10509 (create_std_terminate_master_breakpoint)
10510 (create_exception_master_breakpoint): Update.
10511 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10512 * c-exp.y (classify_name): Update.
10513 * coffread.c (coff_symfile_read): Update.
10514 * common/agent.c (agent_look_up_symbols): Update.
10515 * d-lang.c (d_main_name): Update.
10516 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10517 * dec-thread.c (enable_dec_thread): Update.
10518 * dwarf2loc.c (call_site_to_target_addr): Update.
10519 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10520 * eval.c (evaluate_subexp_standard): Update.
10521 * findvar.c (struct minsym_lookup_data) <result>: Change type
10522 to bound_minimal_symbol.
10523 <objfile>: Remove.
10524 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10525 * frame.c (inside_main_func): Update.
10526 * frv-tdep.c (frv_frame_this_id): Update.
10527 * gcore.c (call_target_sbrk): Update.
10528 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10529 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10530 Update.
10531 * go-lang.c (go_main_name): Update.
10532 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10533 (hppa_hpux_find_import_stub_for_addr): Update.
10534 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10535 Update. Change return type.
10536 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10537 type.
10538 * jit.c (jit_breakpoint_re_set_internal): Update.
10539 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10540 Update.
10541 * linux-nat.c (get_signo): Update.
10542 * linux-thread-db.c (inferior_has_bug): Update
10543 * m32c-tdep.c (m32c_return_value)
10544 (m32c_m16c_address_to_pointer): Update.
10545 * m32r-tdep.c (m32r_frame_this_id): Update.
10546 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10547 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10548 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10549 lookup_minimal_symbol. Change return type.
10550 (lookup_minimal_symbol): Remove.
10551 (lookup_bound_minimal_symbol): Update.
10552 (lookup_minimal_symbol_text): Change return type.
10553 (lookup_minimal_symbol_solib_trampoline): Change return type.
10554 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10555 (lookup_minimal_symbol_solib_trampoline): Change return type.
10556 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10557 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10558 (value_nsstring, find_imps): Update.
10559 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10560 * p-lang.c (pascal_main_name): Update.
10561 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10562 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10563 * proc-service.c (ps_pglobal_lookup): Update.
10564 * ravenscar-thread.c (get_running_thread_msymbol): Change
10565 return type.
10566 (has_ravenscar_runtime, get_running_thread_id): Update.
10567 * remote.c (remote_check_symbols): Update.
10568 * sol-thread.c (ps_pglobal_lookup): Update.
10569 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10570 * solib-dsbt.c (lm_base): Update.
10571 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10572 Update.
10573 * solib-irix.c (locate_base): Update.
10574 * solib-som.c (som_solib_create_inferior_hook)
10575 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10576 Update.
10577 * solib-spu.c (spu_enable_break): Update.
10578 * solib-svr4.c (elf_locate_base, enable_break): Update.
10579 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10580 (flush_ea_cache): Update.
10581 * stabsread.c (define_symbol): Update.
10582 * symfile.c (simple_read_overlay_table): Update.
10583 * symtab.c (find_pc_sect_line): Update.
10584 * tracepoint.c (scope_info): Update.
10585 * tui-disasm.c (tui_get_begin_asm_address): Update.
10586 * value.c (value_static_field): Update.
10587
10588 2014-02-26 Tom Tromey <tromey@redhat.com>
10589
10590 * minsyms.c (prim_record_minimal_symbol_full): Use
10591 SET_MSYMBOL_VALUE_ADDRESS.
10592 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10593 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10594 SET_MSYMBOL_VALUE_ADDRESS.
10595 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10596 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10597
10598 2014-02-26 Tom Tromey <tromey@redhat.com>
10599
10600 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10601 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10602 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10603 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10604 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10605 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10606 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10607 * ada-lang.c (ada_main_name): Update.
10608 (ada_lookup_simple_minsym): Update.
10609 (ada_make_symbol_completion_list): Update.
10610 (ada_add_standard_exceptions): Update.
10611 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10612 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10613 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10614 * arm-tdep.c (skip_prologue_function): Update.
10615 (arm_skip_stack_protector, arm_skip_stub): Update.
10616 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10617 (arm_wince_skip_main_prologue): Update.
10618 * auxv.c (ld_so_xfer_auxv): Update.
10619 * avr-tdep.c (avr_scan_prologue): Update.
10620 * ax-gdb.c (gen_var_ref): Update.
10621 * block.c (call_site_for_pc): Update.
10622 * blockframe.c (get_pc_function_start): Update.
10623 (find_pc_partial_function_gnu_ifunc): Update.
10624 * breakpoint.c (create_overlay_event_breakpoint): Update.
10625 (create_longjmp_master_breakpoint): Update.
10626 (create_std_terminate_master_breakpoint): Update.
10627 (create_exception_master_breakpoint): Update.
10628 (resolve_sal_pc): Update.
10629 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10630 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10631 Update.
10632 * c-valprint.c (c_val_print): Update.
10633 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10634 * coffread.c (coff_symfile_read): Update.
10635 * common/agent.c (agent_look_up_symbols): Update.
10636 * dbxread.c (find_stab_function_addr): Update.
10637 (end_psymtab): Update.
10638 * dwarf2loc.c (call_site_to_target_addr): Update.
10639 (func_verify_no_selftailcall): Update.
10640 (tailcall_dump): Update.
10641 (call_site_find_chain_1): Update.
10642 (dwarf_expr_reg_to_entry_parameter): Update.
10643 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10644 (elf_gnu_ifunc_resolve_by_got): Update.
10645 * f-valprint.c (info_common_command): Update.
10646 * findvar.c (read_var_value): Update.
10647 * frame.c (get_prev_frame_1): Update.
10648 (inside_main_func): Update.
10649 * frv-tdep.c (frv_skip_main_prologue): Update.
10650 (frv_frame_this_id): Update.
10651 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10652 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10653 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10654 (gnuv3_skip_trampoline): Update.
10655 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10656 (hppa64_hpux_in_solib_call_trampoline): Update.
10657 (hppa_hpux_skip_trampoline_code): Update.
10658 (hppa64_hpux_search_dummy_call_sequence): Update.
10659 (hppa_hpux_find_import_stub_for_addr): Update.
10660 (hppa_hpux_find_dummy_bpaddr): Update.
10661 * hppa-tdep.c (hppa_symbol_address)
10662 (hppa_lookup_stub_minimal_symbol): Update.
10663 * i386-tdep.c (i386_skip_main_prologue): Update.
10664 (i386_pe_skip_trampoline_code): Update.
10665 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10666 * infcall.c (get_function_name): Update.
10667 * infcmd.c (until_next_command): Update.
10668 * jit.c (jit_breakpoint_re_set_internal): Update.
10669 (jit_inferior_init): Update.
10670 * linespec.c (minsym_found): Update.
10671 (add_minsym): Update.
10672 * linux-fork.c (info_checkpoints_command): Update.
10673 * linux-nat.c (get_signo): Update.
10674 * linux-thread-db.c (inferior_has_bug): Update.
10675 * m32c-tdep.c (m32c_return_value): Update.
10676 (m32c_m16c_address_to_pointer): Update.
10677 (m32c_m16c_pointer_to_address): Update.
10678 * m32r-tdep.c (m32r_frame_this_id): Update.
10679 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10680 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10681 * maint.c (maintenance_translate_address): Update.
10682 * minsyms.c (add_minsym_to_hash_table): Update.
10683 (add_minsym_to_demangled_hash_table): Update.
10684 (msymbol_objfile): Update.
10685 (lookup_minimal_symbol): Update.
10686 (iterate_over_minimal_symbols): Update.
10687 (lookup_minimal_symbol_text): Update.
10688 (lookup_minimal_symbol_by_pc_name): Update.
10689 (lookup_minimal_symbol_solib_trampoline): Update.
10690 (lookup_minimal_symbol_by_pc_section_1): Update.
10691 (lookup_minimal_symbol_and_objfile): Update.
10692 (prim_record_minimal_symbol_full): Update.
10693 (compare_minimal_symbols): Update.
10694 (compact_minimal_symbols): Update.
10695 (build_minimal_symbol_hash_tables): Update.
10696 (install_minimal_symbols): Update.
10697 (terminate_minimal_symbol_table): Update.
10698 (find_solib_trampoline_target): Update.
10699 (minimal_symbol_upper_bound): Update.
10700 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10701 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10702 (mips_skip_pic_trampoline_code): Update.
10703 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10704 * objc-lang.c (selectors_info): Update.
10705 (classes_info): Update.
10706 (find_methods): Update.
10707 (find_imps): Update.
10708 (find_objc_msgsend): Update.
10709 * objfiles.c (objfile_relocate1): Update.
10710 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10711 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10712 * p-valprint.c (pascal_val_print): Update.
10713 * parse.c (write_exp_msymbol): Update.
10714 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10715 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10716 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10717 * printcmd.c (build_address_symbolic): Update.
10718 (sym_info): Update.
10719 (address_info): Update.
10720 * proc-service.c (ps_pglobal_lookup): Update.
10721 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10722 (find_pc_sect_psymtab): Update.
10723 * python/py-framefilter.c (py_print_frame): Update.
10724 * ravenscar-thread.c (get_running_thread_id): Update.
10725 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10726 Update.
10727 * remote.c (remote_check_symbols): Update.
10728 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10729 (rs6000_skip_trampoline_code): Update.
10730 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10731 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10732 * solib-dsbt.c (lm_base): Update.
10733 * solib-frv.c (lm_base): Update.
10734 (main_got): Update.
10735 * solib-irix.c (locate_base): Update.
10736 * solib-som.c (som_solib_create_inferior_hook): Update.
10737 (som_solib_desire_dynamic_linker_symbols): Update.
10738 (link_map_start): Update.
10739 * solib-spu.c (spu_enable_break): Update.
10740 (ocl_enable_break): Update.
10741 * solib-svr4.c (elf_locate_base): Update.
10742 (enable_break): Update.
10743 * spu-tdep.c (spu_get_overlay_table): Update.
10744 (spu_catch_start): Update.
10745 (flush_ea_cache): Update.
10746 * stabsread.c (define_symbol): Update.
10747 (scan_file_globals): Update.
10748 * stack.c (find_frame_funname): Update.
10749 (frame_info): Update.
10750 * symfile.c (simple_read_overlay_table): Update.
10751 (simple_overlay_update): Update.
10752 * symmisc.c (dump_msymbols): Update.
10753 * symtab.c (fixup_section): Update.
10754 (find_pc_sect_line): Update.
10755 (skip_prologue_sal): Update.
10756 (search_symbols): Update.
10757 (print_msymbol_info): Update.
10758 (rbreak_command): Update.
10759 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10760 (completion_list_objc_symbol): Update.
10761 (default_make_symbol_completion_list_break_on): Update.
10762 * tracepoint.c (scope_info): Update.
10763 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10764 (tui_get_begin_asm_address): Update.
10765 * valops.c (find_function_in_inferior): Update.
10766 * value.c (value_static_field): Update.
10767 (value_fn_field): Update.
10768
10769 2014-02-26 Tom Tromey <tromey@redhat.com>
10770
10771 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10772 bound minimal symbols. Move code that knows about minsym
10773 table layout...
10774 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10775 function.
10776 * minsyms.h (minimal_symbol_upper_bound): Declare.
10777 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10778 minimal_symbol_upper_bound.
10779
10780 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10781
10782 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10783 Use the type's name if its basic type does not have a tag.
10784
10785 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10786
10787 * dwarf2read.c (read_subrange_type): Add comment.
10788
10789 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10790
10791 * dwarf2read.c (update_enumeration_type_from_children): New
10792 function, mostly extracted from process_structure_scope.
10793 (read_enumeration_type): Call update_enumeration_type_from_children.
10794 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10795 and flag_flag_enum fields.
10796
10797 2014-02-26 Pedro Alves <palves@redhat.com>
10798
10799 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10800 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10801 to_xfer_partial method.
10802
10803 2014-02-26 Pedro Alves <palves@redhat.com>
10804
10805 * target.c (complete_target_initialization): Don't install
10806 default_xfer_partial as to_xfer_partial hook.
10807 (nomemory): Delete.
10808 (update_current_target): Don't INHERIT nor de_fault
10809 deprecated_xfer_memory. Delete de_fault macro.
10810 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10811 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10812 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10813 field.
10814
10815 2014-02-26 Pedro Alves <palves@redhat.com>
10816
10817 * go32-nat.c (my_write_child): New function.
10818 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10819 (go32_xfer_partial): New function.
10820 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10821 Instead install a to_xfer_partial hook.
10822
10823 2014-02-26 Pedro Alves <palves@redhat.com>
10824
10825 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10826 to_xfer_partial helper. Rewrite.
10827 (procfs_xfer_partial): New function.
10828 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10829 Install a to_xfer_partial hook.
10830
10831 2014-02-26 Pedro Alves <palves@redhat.com>
10832
10833 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10834 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10835 (m32r_xfer_partial): New function.
10836 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10837 Install a to_xfer_partial hook.
10838
10839 2014-02-26 Pedro Alves <palves@redhat.com>
10840
10841 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10842 helper.
10843 (mips_xfer_partial): New function.
10844 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10845 hook. Install a to_xfer_partial hook.
10846
10847 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10848
10849 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10850 * gdbtypes.c (create_array_type_with_stride): New function,
10851 renaming create_array_type, but with an added parameter
10852 called "bit_stride".
10853 (create_array_type): Re-implement using
10854 create_array_type_with_stride.
10855 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10856 and DW_AT_bit_stride attributes.
10857
10858 2014-02-26 Pedro Alves <palves@redhat.com>
10859
10860 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10861 task-specific breakpoints.
10862
10863 2014-02-25 Pedro Alves <palves@redhat.com>
10864
10865 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10866 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10867
10868 2014-02-25 Stan Shebs <stan@codesourcery.com>
10869
10870 * defs.h: Annotate comments for Doxygen.
10871
10872 2014-02-25 Tom Tromey <tromey@redhat.com>
10873
10874 * target.h (target_ignore): Don't declare.
10875 * target.c (target_ignore): Remove.
10876
10877 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10878
10879 PR gdb/16626
10880 * auto-load.c (auto_load_objfile_script_1): Change filename to
10881 debugfile.
10882
10883 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10884
10885 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10886 documentation. Adjust prototype to match the target_ops
10887 to_xfer_partial method. Adjust implementation accordingly.
10888
10889 2014-02-25 Hui Zhu <hui@codesourcery.com>
10890
10891 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10892 to_traceframe_info.
10893
10894 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10895
10896 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10897 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10898 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10899 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10900 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10901 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10902 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10903 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10904 New constants.
10905 (rl78_register_type): Use a data pointer type for SP and
10906 new pseudo registers mentioned above. Use a 16 bit integer
10907 type for all other register pairs.
10908 (rl78_register_name, rl78_g10_register_name): Update for
10909 new pseudo registers.
10910 (rl78_pseudo_register_read): Likewise.
10911 (rl78_pseudo_register_write): Likewise.
10912 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10913 to the newly added pseudo registers.
10914
10915 2014-02-24 Doug Evans <dje@google.com>
10916
10917 * value.c (record_latest_value): Fix comment.
10918 * printcmd.c (print_command_1): Remove code to handle -1 return from
10919 record_latest_value.
10920
10921 2014-02-24 Pedro Alves <palves@redhat.com>
10922
10923 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10924 deprecated_xfer_memory hook.
10925 (procfs_xfer_partial): Call procfs_xfer_memory instead
10926 of the deprecated_xfer_memory target hook.
10927 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10928 helper.
10929
10930 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10931
10932 * windows-nat.c (windows_xfer_shared_libraries): Return
10933 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10934 requested object is TARGET_OBJECT_LIBRARIES.
10935
10936 2014-02-24 Yao Qi <yao@codesourcery.com>
10937
10938 * target.h (enum target_xfer_status)
10939 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10940 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10941 explicitly. New.
10942 * corefile.c (memory_error_message): User updated.
10943 * exec.c (section_table_read_available_memory): Likewise.
10944 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10945 * target.c (target_xfer_status_to_string): Likewise.
10946 (raw_memory_xfer_partial): Likewise.
10947 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10948 * valops.c (read_value_memory): Likewise.
10949 * exec.h: Update comments.
10950
10951 2014-02-24 Yao Qi <yao@codesourcery.com>
10952
10953 * target.c (target_xfer_status_to_string): Rename argument err
10954 to status.
10955 * target.h (target_xfer_status_to_string): Update declaration.
10956 Replace target_xfer_error_to_string with
10957 target_xfer_status_to_string in comment.
10958
10959 2014-02-24 Yao Qi <yao@codesourcery.com>
10960
10961 * mips-linux-nat.c (super_close): Update its type.
10962 (mips_linux_close): Pass 'self' to super_close.
10963
10964 2014-02-24 Yao Qi <yao@codesourcery.com>
10965
10966 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10967 * corefile.c (read_memory): Adjusted.
10968 * target.c (target_write_with_progress): Adjusted.
10969
10970 2014-02-23 Yao Qi <yao@codesourcery.com>
10971
10972 Revert two patches:
10973
10974 2013-10-25 Yao Qi <yao@codesourcery.com>
10975
10976 * remote.c (remote_traceframe_info): Return early if
10977 traceframe is not selected.
10978
10979 2013-07-19 Yao Qi <yao@codesourcery.com>
10980
10981 * target.c (update_current_target): Change the default action
10982 of 'to_traceframe_info' from tcomplain to return_zero.
10983 * target.h (struct target_ops) <to_traceframe_info>: Add more
10984 comments.
10985
10986 2014-02-23 Yao Qi <yao@codesourcery.com>
10987
10988 * valops.c (read_value_memory): Rewrite it. Call
10989 target_xfer_partial in a loop.
10990 * exec.h (section_table_available_memory): Remove declaration.
10991 Move comments to ...
10992 * exec.c (section_table_available_memory): ... here. Make it
10993 static.
10994
10995 2014-02-23 Yao Qi <yao@codesourcery.com>
10996
10997 * exec.c (section_table_read_available_memory): New function.
10998 * exec.h (section_table_read_available_memory): Declare.
10999 * ctf.c (ctf_xfer_partial): Call
11000 section_table_read_available_memory.
11001 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11002
11003 2014-02-23 Yao Qi <yao@codesourcery.com>
11004
11005 * ctf.c (ctf_xfer_partial): Move code to ...
11006 * exec.c (exec_read_partial_read_only): ... it. New function.
11007 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11008 * tracefile.c: Include "exec.h".
11009 * exec.h (exec_read_partial_read_only): Declare.
11010
11011 2014-02-23 Yao Qi <yao@codesourcery.com>
11012
11013 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11014 (tfile_has_memory): Remove.
11015 (init_tfile_ops): Don't set fields to_has_all_memory and
11016 to_has_memory of tfile_ops.
11017 * tracefile.c (tracefile_has_all_memory): New function.
11018 (tracefile_has_memory): New function.
11019 (init_tracefile_ops): Initialize fields to_has_all_memory and
11020 to_has_memory of 'ops'.
11021
11022 2014-02-23 Yao Qi <yao@codesourcery.com>
11023
11024 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11025 (ctf_thread_alive, ctf_get_trace_status): Remove.
11026 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11027 init_tracefile_ops.
11028 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11029 (tfile_has_stack, tfile_has_registers): Remove.
11030 (tfile_thread_alive): Remove.
11031 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11032 init_tracefile_ops.
11033 * tracefile.c (tracefile_has_stack): New function.
11034 (tracefile_has_registers): New function.
11035 (tracefile_thread_alive): New function.
11036 (tracefile_get_trace_status): New function.
11037 (init_tracefile_ops): New function.
11038 * tracefile.h (init_tracefile_ops): Declare.
11039
11040 2014-02-23 Yao Qi <yao@codesourcery.com>
11041
11042 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11043 (O_LARGEFILE): Likewise.
11044 (tfile_ops): Likewise.
11045 (TRACE_HEADER_SIZE): Likewise.
11046 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11047 (cur_data_size): Likewise.
11048 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11049 (tfile_close, tfile_files_info): Likewise.
11050 (tfile_get_trace_status): Likewise.
11051 (tfile_get_tracepoint_status): Likewise.
11052 (tfile_get_traceframe_address): Likewise.
11053 (tfile_trace_find, match_blocktype): Likewise.
11054 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11055 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11056 (tfile_get_trace_state_variable_value): Likewise.
11057 (tfile_has_all_memory, tfile_has_memory): Likewise.
11058 (tfile_has_stack, tfile_has_registers): Likewise.
11059 (tfile_thread_alive, build_traceframe_info): Likewise.
11060 (tfile_traceframe_info, init_tfile_ops): Likewise.
11061 (_initialize_tracepoint): Don't call init_tfile_ops
11062 and add_target_with_completer.
11063 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11064 exec.h, completer.h and filenames.h.
11065 (_initialize_tracefile_tfile): New function.
11066
11067 2014-02-23 Yao Qi <yao@codesourcery.com>
11068
11069 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11070 tracefile-tfile.o.
11071 (HFILES_NO_SRCDIR): Add tracefile.h.
11072 * ctf.c: Include "tracefile.h".
11073 * tracefile.h: New file.
11074 * tracefile.c: New file
11075 * tracefile-tfile.c: New file.
11076 * tracepoint.c: Include "tracefile.h".
11077 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11078 (stop_reason_names): Add const.
11079 (trace_file_writer_xfree): Move it to tracefile.c.
11080 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11081 (trace_save_ctf): Likewise.
11082 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11083 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11084 (tfile_write_header, tfile_write_regblock_type): Likewise.
11085 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11086 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11087 (tfile_write_raw_data, tfile_end): Likewise.
11088 (tfile_trace_file_writer_new): Likewise.
11089 (free_uploaded_tp): Make it extern.
11090 (free_uploaded_tsv): Make it extern.
11091 (_initialize_tracepoint): Move code to register command 'tsave'
11092 to tracefile.c.
11093 * tracepoint.h (stop_reason_names): Declare.
11094 (struct trace_frame_write_ops): Move it to tracefile.h.
11095 (struct trace_file_write_ops): Likewise.
11096 (struct trace_file_writer): Likewise.
11097 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11098
11099 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 PR gdb/16594
11102 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11103 process name.
11104 (get_cores_used_by_process): New parameter num_cores, use it.
11105 (linux_xfer_osdata_processes): Pass num_cores to it.
11106 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11107 process name.
11108
11109 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11110
11111 * target.c (memory_xfer_partial): Fix length arg in call to
11112 breakpoint_xfer_memory.
11113
11114 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11115
11116 PR tdep/16397
11117 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11118 number comes after the + or - signs. Adjust length of register
11119 name to be extracted.
11120
11121 2014-02-20 Tom Tromey <tromey@redhat.com>
11122
11123 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11124 (ada_varobj_ops): Mark "extern".
11125
11126 2014-02-20 Tom Tromey <tromey@redhat.com>
11127
11128 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11129
11130 2014-02-20 Doug Evans <xdje42@gmail.com>
11131
11132 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11133 All callers updated.
11134 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11135 All callers updated.
11136 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11137 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11138
11139 2014-02-20 lin zuojian <manjian2006@gmail.com>
11140 Joel Brobecker <brobecker@adacore.com>
11141 Doug Evans <xdje42@gmail.com>
11142
11143 PR symtab/16581
11144 * dwarf2read.c (struct die_info): New member in_process.
11145 (reset_die_in_process): New function.
11146 (process_die): Set it at the start, reset when returning.
11147 (inherit_abstract_dies): Only call process_die if origin_child_die
11148 not already being processed.
11149
11150 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11151
11152 * windows-nat.c (handle_unload_dll): Add function documentation.
11153 (do_initial_windows_stuff): Add comment explaining why we wait
11154 until after inferior initialization has finished before
11155 processing all DLLs.
11156
11157 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11158
11159 * windows-nat.c (get_module_name): Delete.
11160 (windows_get_exec_module_filename): New function, mostly
11161 inspired from get_module_name.
11162 (windows_pid_to_exec_file): Replace call to get_module_name
11163 by call to windows_get_exec_module_filename.
11164
11165 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11166
11167 * windows-nat.c (handle_load_dll): Rewrite this function's
11168 introductory comment. Remove code using get_module_name
11169 to get the DLL's name.
11170
11171 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11172
11173 * windows-nat.c (get_windows_debug_event): Ignore
11174 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11175 if windows_initialization_done == 0.
11176 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11177 Adjust implementation to always load all DLLs.
11178 (do_initial_windows_stuff): Replace call to
11179 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11180
11181 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11182
11183 * windows-nat.c (_initialize_windows_nat): Deprecate the
11184 "dll-symbols" command. Turn the "add-shared-symbol-files"
11185 and "assf" aliases into commands, and deprecate them as well.
11186 * NEWS: Add entry explaining that "dll-symbols" and its two
11187 aliases are now deprecated.
11188
11189 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11190
11191 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11192 new-line in debug string. Remove trailing spaces.
11193
11194 2014-02-19 Stan Shebs <stan@codesourcery.com>
11195
11196 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11197
11198 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11199
11200 * NEWS: Add entry for the new feature
11201 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11202 and class values.
11203
11204 2014-02-19 Stan Shebs <stan@codesourcery.com>
11205
11206 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11207
11208 2014-02-19 Pedro Alves <palves@redhat.com>
11209
11210 * common/ptid.h (struct ptid): Mention that process_stratum
11211 targets should prefer ptid.lwp.
11212
11213 2014-02-19 Pedro Alves <palves@redhat.com>
11214
11215 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11216 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11217 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11218 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11219 store remote thread ids rather than ptid.tid.
11220 (_initialize_remote): Adjust.
11221
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.c (target_get_unwinder): Rewrite.
11225 (target_get_tailcall_unwinder): Rewrite.
11226 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11227 (record_btrace_to_get_tailcall_unwinder): New function.
11228 (init_record_btrace_ops): Update.
11229 * target.h (struct target_ops) <to_get_unwinder,
11230 to_get_tailcall_unwinder>: Now function pointers. Use
11231 TARGET_DEFAULT_RETURN.
11232
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11236 argument.
11237 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11238
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11242 directly.
11243 * target-delegates.c: Rebuild.
11244 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11245 TARGET_DEFAULT_FUNC.
11246 * target.c (default_target_decr_pc_after_break): Rename from
11247 forward_target_decr_pc_after_break. Simplify.
11248 (target_decr_pc_after_break): Rely on delegation.
11249
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target.c (update_current_target): Do not INHERIT to_doc or
11253 to_magic. Do not de_fault to_open or to_close.
11254
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * gcore.h (objfile_find_memory_regions): Declare.
11258 * gcore.c (objfile_find_memory_regions): No longer static. Add
11259 "self" argument.
11260 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11261 * exec.c: Include gcore.h.
11262 (exec_set_find_memory_regions): Remove.
11263 (exec_find_memory_regions): Remove.
11264 (exec_do_find_memory_regions): Remove.
11265 (init_exec_ops): Update.
11266 * defs.h (exec_set_find_memory_regions): Remove.
11267
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target-delegates.c: Rebuild.
11271 * target.h (struct target_ops) <to_extra_thread_info,
11272 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11273 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11274 not 0, in TARGET_DEFAULT_RETURN.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.c (complete_target_initialization): Remove casts. Use
11279 return_zero_has_execution.
11280 (return_zero): Add "ignore" argument.
11281 (return_zero_has_execution): New function.
11282 (init_dummy_target): Remove casts. Use
11283 return_zero_has_execution.
11284
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target.c (update_current_target): Update comments. Do not
11288 INHERIT to_stratum.
11289
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11293 needed.
11294 * corelow.c (core_read_description): Delegate when needed.
11295 * remote.c (remote_read_description): Delegate when needed.
11296 * target-delegates.c: Rebuild.
11297 * target.c (target_read_description): Rewrite.
11298 * target.h (struct target_ops) <to_read_description>: Update
11299 comment. Use TARGET_DEFAULT_RETURN.
11300
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target-delegates.c: Rebuild.
11304 * target.c (update_current_target): Don't inherit or default
11305 to_can_run.
11306 (find_default_run_target): Check against delegate_can_run.
11307 * target.h (struct target_ops) <to_can_run>: Use
11308 TARGET_DEFAULT_RETURN.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (target_disconnect): Unconditionally delegate.
11314 * target.h (struct target_ops) <to_disconnect>: Use
11315 TARGET_DEFAULT_NORETURN.
11316
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * record.c (record_stop): Unconditionally delegate.
11320 * target-delegates.c: Rebuild.
11321 * target.c (target_stop_recording): Unconditionally delegate.
11322 * target.h (struct target_ops) <to_stop_recording>: Use
11323 TARGET_DEFAULT_IGNORE.
11324
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target-delegates.c: Rebuild.
11328 * target.c (target_enable_btrace): Unconditionally delegate.
11329 * target.h (struct target_ops) <to_enable_btrace>: Use
11330 TARGET_DEFAULT_NORETURN.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target-delegates.c: Rebuild.
11335 * target.c (target_read_btrace): Unconditionally delegate.
11336 * target.h (struct target_ops) <to_read_btrace>: Use
11337 TARGET_DEFAULT_NORETURN.
11338
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target-delegates.c: Rebuild.
11342 * target.c (target_teardown_btrace): Unconditionally delegate.
11343 * target.h (struct target_ops) <to_teardown_btrace>: Use
11344 TARGET_DEFAULT_NORETURN.
11345
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target-delegates.c: Rebuild.
11349 * target.c (target_disable_btrace): Unconditionally delegate.
11350 * target.h (struct target_ops) <to_disable_btrace>: Use
11351 TARGET_DEFAULT_NORETURN.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target-delegates.c: Rebuild.
11356 * target.c (default_search_memory): New function.
11357 (simple_search_memory): Update comment.
11358 (target_search_memory): Unconditionally delegate.
11359 * target.h (struct target_ops) <to_search_memory>: Use
11360 TARGET_DEFAULT_FUNC.
11361
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * auxv.c (default_auxv_parse): No longer static.
11365 (target_auxv_parse): Unconditionally delegate.
11366 * auxv.h (default_auxv_parse): Declare.
11367 * target-delegates.c: Rebuild.
11368 * target.c: Include auxv.h.
11369 * target.h (struct target_ops) <to_auxv_parse>: Use
11370 TARGET_DEFAULT_FUNC.
11371
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * target-delegates.c: Rebuild.
11375 * target.c (target_memory_map): Unconditionally delegate.
11376 * target.h (struct target_ops) <to_memory_map>: Use
11377 TARGET_DEFAULT_RETURN.
11378
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target-delegates.c: Rebuild.
11382 * target.c (target_thread_alive): Unconditionally delegate.
11383 * target.h (struct target_ops) <to_thread_alive>: Use
11384 TARGET_DEFAULT_RETURN.
11385
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target-delegates.c: Rebuild.
11389 * target.c (target_save_record): Unconditionally delegate.
11390 * target.h (struct target_ops) <to_save_record>: Use
11391 TARGET_DEFAULT_NORETURN.
11392
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (target_delete_record): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_delete_record>: Use
11398 TARGET_DEFAULT_NORETURN.
11399
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (target_record_is_replaying): Unconditionally
11404 delegate.
11405 * target.h (struct target_ops) <to_record_is_replaying>: Use
11406 TARGET_DEFAULT_RETURN.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (target_goto_record_begin): Unconditionally delegate.
11412 * target.h (struct target_ops) <to_goto_record_begin>: Use
11413 TARGET_DEFAULT_NORETURN.
11414
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (target_goto_record_end): Unconditionally delegate.
11419 * target.h (struct target_ops) <to_goto_record_end>: Use
11420 TARGET_DEFAULT_NORETURN.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (target_goto_record): Unconditionally delegate.
11426 * target.h (struct target_ops) <to_goto_record>: Use
11427 TARGET_DEFAULT_NORETURN.
11428
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target-delegates.c: Rebuild.
11432 * target.c (target_insn_history): Unconditionally delegate.
11433 * target.h (struct target_ops) <to_insn_history>: Use
11434 TARGET_DEFAULT_NORETURN.
11435
11436 2014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target-delegates.c: Rebuild.
11439 * target.c (target_insn_history_from): Unconditionally delegate.
11440 * target.h (struct target_ops) <to_insn_history_from>: Use
11441 TARGET_DEFAULT_NORETURN.
11442
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11444
11445 * target-delegates.c: Rebuild.
11446 * target.c (target_insn_history_range): Unconditionally delegate.
11447 * target.h (struct target_ops) <to_insn_history_range>: Use
11448 TARGET_DEFAULT_NORETURN.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (target_call_history): Unconditionally delegate.
11454 * target.h (struct target_ops) <to_call_history>: Use
11455 TARGET_DEFAULT_NORETURN.
11456
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target-delegates.c: Rebuild.
11460 * target.c (target_call_history_from): Unconditionally delegate.
11461 * target.h (struct target_ops) <to_call_history_from>: Use
11462 TARGET_DEFAULT_NORETURN.
11463
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (target_call_history_range): Unconditionally delegate.
11468 * target.h (struct target_ops) <to_call_history_range>: Use
11469 TARGET_DEFAULT_NORETURN.
11470
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_verify_memory): Unconditionally delegate.
11475 * target.h (struct target_ops) <to_verify_memory>: Use
11476 TARGET_DEFAULT_NORETURN.
11477
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (target_core_of_thread): Unconditionally delegate.
11482 * target.h (struct target_ops) <to_core_of_thread>: Use
11483 TARGET_DEFAULT_RETURN.
11484
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target-delegates.c: Rebuild.
11488 * target.c (target_flash_done): Unconditionally delegate.
11489 * target.h (struct target_ops) <to_flash_done>: Use
11490 TARGET_DEFAULT_NORETURN.
11491
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target-delegates.c: Rebuild.
11495 * target.c (target_flash_erase): Unconditionally delegate.
11496 * target.h (struct target_ops) <to_flash_erase>: Use
11497 TARGET_DEFAULT_NORETURN.
11498
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (target_get_section_table): Unconditionally delegate.
11503 * target.h (struct target_ops) <to_get_section_table>: Use
11504 TARGET_DEFAULT_RETURN.
11505
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (target_pid_to_str): Unconditionally delegate.
11510 (init_dummy_target): Don't initialize to_pid_to_str.
11511 (default_pid_to_str): Rename from dummy_pid_to_str.
11512 * target.h (struct target_ops) <to_pid_to_str>: Use
11513 TARGET_DEFAULT_FUNC.
11514
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (target_find_new_threads): Unconditionally delegate.
11519 * target.h (struct target_ops) <to_find_new_threads>: Use
11520 TARGET_DEFAULT_RETURN.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (target_program_signals): Unconditionally delegate.
11526 * target.h (struct target_ops) <to_program_signals>: Use
11527 TARGET_DEFAULT_IGNORE.
11528
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target-delegates.c: Rebuild.
11532 * target.c (target_pass_signals): Unconditionally delegate.
11533 * target.h (struct target_ops) <to_pass_signals>: Use
11534 TARGET_DEFAULT_IGNORE.
11535
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (default_mourn_inferior): New function.
11540 (target_mourn_inferior): Unconditionally delegate.
11541 * target.h (struct target_ops) <to_mourn_inferior>: Use
11542 TARGET_DEFAULT_FUNC.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (default_follow_fork): New function.
11548 (target_follow_fork): Unconditionally delegate.
11549 * target.h (struct target_ops) <to_follow_fork>: Use
11550 TARGET_DEFAULT_FUNC.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (target_kill): Unconditionally delegate.
11556 * target.h (struct target_ops) <to_kill>: Use
11557 TARGET_DEFAULT_NORETURN.
11558
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (target_masked_watch_num_registers): Unconditionally
11563 delegate.
11564 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11565 Use TARGET_DEFAULT_RETURN.
11566
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (target_remove_mask_watchpoint): Unconditionally
11571 delegate.
11572 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11573 TARGET_DEFAULT_RETURN.
11574
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (target_insert_mask_watchpoint): Unconditionally
11579 delegate.
11580 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11581 TARGET_DEFAULT_RETURN.
11582
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target-delegates.c: Rebuild.
11586 * target.c (target_ranged_break_num_registers): Unconditionally
11587 delegate.
11588 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11589 Use TARGET_DEFAULT_RETURN.
11590
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target-delegates.c: Rebuild.
11594 * target.c (target_fetch_registers): Unconditionally delegate.
11595 * target.h (struct target_ops) <to_fetch_registers>: Use
11596 TARGET_DEFAULT_NORETURN.
11597
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target-delegates.c: Rebuild.
11601 * target.c (update_current_target): Don't inherit or default
11602 to_stop.
11603 * target.h (struct target_ops) <to_stop>: Use
11604 TARGET_DEFAULT_IGNORE.
11605
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target-delegates.c: Rebuild.
11609 * target.c (update_current_target): Don't inherit or default
11610 to_can_run_breakpoint_commands.
11611 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11612 Use TARGET_DEFAULT_RETURN.
11613
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (update_current_target): Don't inherit or default
11618 to_supports_evaluation_of_breakpoint_conditions.
11619 * target.h (struct target_ops)
11620 <to_supports_evaluation_of_breakpoint_conditions>: Use
11621 TARGET_DEFAULT_RETURN.
11622
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11627 to_augmented_libraries_svr4_read.
11628 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11629 Use TARGET_DEFAULT_RETURN.
11630
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target-delegates.c: Rebuild.
11634 * target.c (update_current_target): Don't inherit or default
11635 to_can_use_agent.
11636 * target.h (struct target_ops) <to_can_use_agent>: Use
11637 TARGET_DEFAULT_RETURN.
11638
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target-delegates.c: Rebuild.
11642 * target.c (update_current_target): Don't inherit or default
11643 to_use_agent.
11644 * target.h (struct target_ops) <to_use_agent>: Use
11645 TARGET_DEFAULT_NORETURN.
11646
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target-delegates.c: Rebuild.
11650 * target.c (update_current_target): Don't inherit or default
11651 to_traceframe_info.
11652 (return_null): Remove.
11653 * target.h (struct target_ops) <to_traceframe_info>: Use
11654 TARGET_DEFAULT_RETURN.
11655
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_static_tracepoint_markers_by_strid.
11661 * target.h (struct target_ops)
11662 <to_static_tracepoint_markers_by_strid>: Use
11663 TARGET_DEFAULT_NORETURN.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_static_tracepoint_marker_at.
11670 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11671 Use TARGET_DEFAULT_RETURN.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_set_permissions.
11678 * target.h (struct target_ops) <to_set_permissions>: Use
11679 TARGET_DEFAULT_IGNORE.
11680
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_get_tib_address.
11686 * target.h (struct target_ops) <to_get_tib_address>: Use
11687 TARGET_DEFAULT_NORETURN.
11688
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_set_trace_notes.
11694 * target.h (struct target_ops) <to_set_trace_notes>: Use
11695 TARGET_DEFAULT_RETURN.
11696
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't initialize
11701 to_set_trace_buffer_size.
11702 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11703 TARGET_DEFAULT_IGNORE.
11704
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_set_circular_trace_buffer.
11710 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11711 TARGET_DEFAULT_IGNORE.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_set_disconnected_tracing.
11718 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11719 TARGET_DEFAULT_IGNORE.
11720
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_get_min_fast_tracepoint_insn_len.
11726 (return_minus_one): Remove.
11727 * target.h (struct target_ops)
11728 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11729
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11734 to_get_raw_trace_data.
11735 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11736 TARGET_DEFAULT_NORETURN.
11737
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11739
11740 * target-delegates.c: Rebuild.
11741 * target.c (update_current_target): Don't inherit or default
11742 to_upload_trace_state_variables.
11743 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11744 Use TARGET_DEFAULT_RETURN.
11745
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11747
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_upload_tracepoints.
11751 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11752 TARGET_DEFAULT_RETURN.
11753
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_save_trace_data.
11759 * target.h (struct target_ops) <to_save_trace_data>: Use
11760 TARGET_DEFAULT_NORETURN.
11761
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_get_trace_state_variable_value.
11767 * target.h (struct target_ops)
11768 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_trace_find.
11775 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11776
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target-delegates.c: Rebuild.
11780 * target.c (update_current_target): Don't inherit or default
11781 to_trace_stop.
11782 * target.h (struct target_ops) <to_trace_stop>: Use
11783 TARGET_DEFAULT_NORETURN.
11784
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target-delegates.c: Rebuild.
11788 * target.c (update_current_target): Don't inherit or default
11789 to_get_tracepoint_status.
11790 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11791 TARGET_DEFAULT_NORETURN.
11792
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target-delegates.c: Rebuild.
11796 * target.c (update_current_target): Don't inherit or default
11797 to_get_trace_status.
11798 * target.h (struct target_ops) <to_get_trace_status>: Use
11799 TARGET_DEFAULT_RETURN.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_trace_start.
11806 * target.h (struct target_ops) <to_trace_start>: Use
11807 TARGET_DEFAULT_NORETURN.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_trace_set_readonly_regions.
11814 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11815 Use TARGET_DEFAULT_NORETURN.
11816
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_disable_tracepoint.
11822 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11823 TARGET_DEFAULT_NORETURN.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_enable_tracepoint.
11830 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11831 TARGET_DEFAULT_NORETURN.
11832
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_download_trace_state_variable.
11838 * target.h (struct target_ops) <to_download_trace_state_variable>:
11839 Use TARGET_DEFAULT_NORETURN.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_can_download_tracepoint.
11846 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11847 TARGET_DEFAULT_RETURN.
11848
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_download_tracepoint.
11854 * target.h (struct target_ops) <to_download_tracepoint>: Use
11855 TARGET_DEFAULT_NORETURN.
11856
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11861 to_trace_init.
11862 * target.h (struct target_ops) <to_trace_init>: Use
11863 TARGET_DEFAULT_RETURN.
11864
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target-delegates.c: Rebuild.
11868 * target.c (update_current_target): Don't inherit or default
11869 to_supports_string_tracing.
11870 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11871 TARGET_DEFAULT_RETURN.
11872
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target-delegates.c: Rebuild.
11876 * target.c (update_current_target): Don't inherit or default
11877 to_supports_enable_disable_tracepoint.
11878 * target.h (struct target_ops)
11879 <to_supports_enable_disable_tracepoint>: Use
11880 TARGET_DEFAULT_RETURN.
11881
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_supports_multi_process.
11887 * target.h (struct target_ops) <to_supports_multi_process>: Use
11888 TARGET_DEFAULT_RETURN.
11889
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11894 to_get_ada_task_ptid.
11895 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11896 TARGET_DEFAULT_FUNC.
11897
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11902 to_thread_architecture.
11903 * target.h (struct target_ops) <to_thread_architecture>: Use
11904 TARGET_DEFAULT_FUNC.
11905
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target-delegates.c: Rebuild.
11909 * target.c (update_current_target): Don't inherit or default
11910 to_execution_direction.
11911 * target.h (struct target_ops) <to_execution_direction>: Use
11912 TARGET_DEFAULT_FUNC.
11913
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_can_execute_reverse.
11919 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11920 TARGET_DEFAULT_RETURN.
11921 (target_can_execute_reverse): Unconditionally delegate.
11922
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target-delegates.c: Rebuild.
11926 * target.c (update_current_target): Don't inherit or default
11927 to_goto_bookmark.
11928 (dummy_goto_bookmark): Remove.
11929 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11930 * target.h (struct target_ops) <to_goto_bookmark>: Use
11931 TARGET_DEFAULT_NORETURN.
11932
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_get_bookmark.
11938 (dummy_get_bookmark): Remove.
11939 (init_dummy_target): Don't inherit or default to_get_bookmark.
11940 * target.h (struct target_ops) <to_get_bookmark>: Use
11941 TARGET_DEFAULT_NORETURN
11942
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11947 to_make_corefile_notes.
11948 (init_dummy_target): Don't initialize to_make_corefile_notes.
11949 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11950 TARGET_DEFAULT_FUNC.
11951
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_find_memory_regions.
11957 (init_dummy_target): Don't initialize to_find_memory_regions.
11958 * target.h (struct target_ops) <to_find_memory_regions>: Use
11959 TARGET_DEFAULT_FUNC.
11960
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11965 to_log_command.
11966 * target.h (struct target_ops) <to_log_command>: Use
11967 TARGET_DEFAULT_IGNORE.
11968 (target_log_command): Unconditionally delegate.
11969
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_pid_to_exec_file.
11975 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11976 TARGET_DEFAULT_RETURN.
11977
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_thread_name.
11983 (target_thread_name): Unconditionally delegate.
11984 * target.h (struct target_ops) <to_thread_name>: Use
11985 TARGET_DEFAULT_RETURN.
11986
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_extra_thread_info.
11992 * target.h (struct target_ops) <to_extra_thread_info>: Use
11993 TARGET_DEFAULT_RETURN.
11994
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
11999 to_has_exited.
12000 * target.h (struct target_ops) <to_has_exited>: Use
12001 TARGET_DEFAULT_RETURN..
12002
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_set_syscall_catchpoint.
12008 (return_one): Remove.
12009 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12010 TARGET_DEFAULT_RETURN.
12011
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_insert_exec_catchpoint.
12017 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12018 TARGET_DEFAULT_RETURN.
12019
12020 2014-01-08 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_insert_exec_catchpoint.
12025 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12026 TARGET_DEFAULT_RETURN.
12027
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_remove_vfork_catchpoint.
12033 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12034 TARGET_DEFAULT_RETURN.
12035
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_insert_vfork_catchpoint.
12041 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12042 TARGET_DEFAULT_RETURN.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_remove_fork_catchpoint.
12049 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12050 TARGET_DEFAULT_RETURN.
12051
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_insert_fork_catchpoint.
12057 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12059
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_post_startup_inferior.
12065 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12066 TARGET_DEFAULT_IGNORE.
12067
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_load.
12073 * target.h (struct target_ops) <to_load>: Use
12074 TARGET_DEFAULT_NORETURN.
12075
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_terminal_info.
12081 * target.h (struct target_ops) <to_terminal_info>: Use
12082 TARGET_DEFAULT_FUNC.
12083
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_terminal_save_ours.
12089 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12090 TARGET_DEFAULT_IGNORE.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_terminal_ours.
12097 * target.h (struct target_ops) <to_terminal_ours>: Use
12098 TARGET_DEFAULT_IGNORE.
12099
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12104 to_terminal_ours_for_output.
12105 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12106 TARGET_DEFAULT_IGNORE.
12107
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12112 to_terminal_inferior.
12113 * target.h (struct target_ops) <to_terminal_inferior>: Use
12114 TARGET_DEFAULT_IGNORE.
12115
12116 2014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * target-delegates.c: Rebuild.
12119 * target.c (update_current_target): Don't inherit or default
12120 to_terminal_init.
12121 * target.h (struct target_ops) <to_terminal_init>: Use
12122 TARGET_DEFAULT_IGNORE.
12123
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target-delegates.c: Rebuild.
12127 * target.c (update_current_target): Don't inherit or default
12128 to_can_accel_watchpoint_condition.
12129 * target.h (struct target_ops)
12130 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12131
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * target-delegates.c: Rebuild.
12135 * target.c (update_current_target): Don't inherit or default
12136 to_region_ok_for_hw_watchpoint.
12137 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12138 Use TARGET_DEFAULT_FUNC.
12139
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target-delegates.c: Rebuild.
12143 * target.c (update_current_target): Don't inherit or default
12144 to_watchpoint_addr_within_range.
12145 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12146 Use TARGET_DEFAULT_FUNC.
12147
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * target-delegates.c: Rebuild.
12151 * target.c (update_current_target): Don't inherit or default
12152 to_remove_watchpoint.
12153 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12154 TARGET_DEFAULT_NORETURN.
12155
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target-delegates.c: Rebuild.
12159 * target.c (update_current_target): Don't inherit or default
12160 to_insert_watchpoint.
12161 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12162 TARGET_DEFAULT_RETURN.
12163
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target-delegates.c: Rebuild.
12167 * target.c (update_current_target): Don't inherit or default
12168 to_remove_hw_breakpoint.
12169 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12170 TARGET_DEFAULT_RETURN.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target-delegates.c: Rebuild.
12175 * target.c (update_current_target): Don't inherit or default
12176 to_insert_hw_breakpoint.
12177 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12178 TARGET_DEFAULT_RETURN.
12179
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target-delegates.c: Rebuild.
12183 * target.c (update_current_target): Don't inherit or default
12184 to_can_use_hw_breakpoint.
12185 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12186 TARGET_DEFAULT_RETURN.
12187
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12189
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12192 to_files_info.
12193 * target.h (struct target_ops) <to_files_info>: Use
12194 TARGET_DEFAULT_IGNORE.
12195
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target-delegates.c: Rebuild.
12199 * target.c (update_current_target): Don't inherit or default
12200 to_store.
12201 * target.h (struct target_ops) <to_store>: Use
12202 TARGET_DEFAULT_NORETURN.
12203
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_post_attach.
12209 * target.h (struct target_ops) <to_post_attach>: Use
12210 TARGET_DEFAULT_IGNORE.
12211
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12216 to_rcmd.
12217 (default_rcmd): New function.
12218 (do_monitor_command): Unconditionally delegate.
12219 * target.h (struct target_ops) <to_rmcd>: Use
12220 TARGET_DEFAULT_FUNC.
12221
12222 2014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target-delegates.c: Rebuild.
12225 * target.c (init_dummy_target): Don't initialize to_attach.
12226 (target_attach): Unconditionally delegate.
12227 * target.h (struct target_ops) <to_attach>: Use
12228 TARGET_DEFAULT_FUNC.
12229
12230 2014-02-19 Tom Tromey <tromey@redhat.com>
12231
12232 * target-delegates.c: Rebuild.
12233 * target.c (target_detach): Unconditionally delegate.
12234 (init_dummy_target): Don't initialize to_detach.
12235 * target.h (struct target_ops) <to_detach>: Use
12236 TARGET_DEFAULT_IGNORE.
12237
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12241 Add argument.
12242 (target_augmented_libraries_svr4_read): Add argument.
12243 * target.c (update_current_target): Update.
12244 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12245 argument.
12246
12247 2014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target.h (struct target_ops) <to_call_history_range>: Add
12250 argument.
12251 * target.c (target_call_history_range): Add argument.
12252 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12253 argument.
12254 (record_btrace_call_history_from): Update.
12255
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_call_history_from>: Add
12259 argument.
12260 * target.c (target_call_history_from): Add argument.
12261 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12262 argument.
12263
12264 2014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target.h (struct target_ops) <to_call_history>: Add argument.
12267 * target.c (target_call_history): Add argument.
12268 * record-btrace.c (record_btrace_call_history): Add 'self'
12269 argument.
12270
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12272
12273 * target.h (struct target_ops) <to_insn_history_range>: Add
12274 argument.
12275 * target.c (target_insn_history_range): Add argument.
12276 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12277 argument.
12278 (record_btrace_insn_history_from): Update.
12279
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_insn_history_from>: Add
12283 argument.
12284 * target.c (target_insn_history_from): Add argument.
12285 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12286 argument.
12287
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_insn_history>: Add argument.
12291 * target.c (target_insn_history): Add argument.
12292 * record-btrace.c (record_btrace_insn_history): Add 'self'
12293 argument.
12294
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12296
12297 * target.h (struct target_ops) <to_goto_record>: Add argument.
12298 * target.c (target_goto_record): Add argument.
12299 * record-full.c (record_full_goto): Add 'self' argument.
12300 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12301
12302 2014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12305 * target.c (target_goto_record_end): Add argument.
12306 * record-full.c (record_full_goto_end): Add 'self' argument.
12307 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12308
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target.h (struct target_ops) <to_goto_record_begin>: Add
12312 argument.
12313 * target.c (target_goto_record_begin): Add argument.
12314 * record-full.c (record_full_goto_begin): Add 'self' argument.
12315 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12316 argument.
12317
12318 2014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * target.h (struct target_ops) <to_record_is_replaying>: Add
12321 argument.
12322 * target.c (target_record_is_replaying): Add argument.
12323 * record-full.c (record_full_is_replaying): Add 'self' argument.
12324 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12325 argument.
12326 (record_btrace_xfer_partial, record_btrace_store_registers)
12327 (record_btrace_prepare_to_store, record_btrace_resume)
12328 (record_btrace_wait, record_btrace_decr_pc_after_break)
12329 (record_btrace_find_new_threads, record_btrace_thread_alive):
12330 Update.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_delete_record>: Add argument.
12335 * target.c (target_delete_record): Add argument.
12336 * record-full.c (record_full_delete): Add 'self' argument.
12337
12338 2014-02-19 Tom Tromey <tromey@redhat.com>
12339
12340 * target.h (struct target_ops) <to_save_record>: Add argument.
12341 * target.c (target_save_record): Add argument.
12342 * record-full.c (record_full_save): Add 'self' argument.
12343 (record_full_save): Add 'self' argument.
12344
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target.h (struct target_ops) <to_info_record>: Add argument.
12348 * target.c (target_info_record): Add argument.
12349 * record.c (info_record_command): Add argument.
12350 * record-full.c (record_full_info): Add 'self' argument.
12351 * record-btrace.c (record_btrace_info): Add 'self' argument.
12352
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12356 * target.c (target_stop_recording): Add argument.
12357 * record.c (record_stop): Add argument.
12358 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12359 argument.
12360
12361 2014-02-19 Tom Tromey <tromey@redhat.com>
12362
12363 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12364 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12365 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12366 argument.
12367 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12368 (_initialize_amd64_linux_nat): Use it.
12369 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12370 (_initialize_i386_linux_nat): Use it.
12371
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12375 * target.c (target_teardown_btrace): Add argument.
12376 * remote.c (remote_teardown_btrace): Add 'self' argument.
12377 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12378 argument.
12379 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12380 argument.
12381
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12385 * target.c (target_disable_btrace): Add argument.
12386 * remote.c (remote_disable_btrace): Add 'self' argument.
12387 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12388 argument.
12389 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12390 argument.
12391
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12395 * target.c (target_enable_btrace): Add argument.
12396 * remote.c (remote_enable_btrace): Add 'self' argument.
12397 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12398 argument.
12399 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12400 argument.
12401
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12403
12404 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12405 (target_can_use_agent): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_can_use_agent): Add 'self' argument.
12408 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12409
12410 2014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target.h (struct target_ops) <to_use_agent>: Add argument.
12413 (target_use_agent): Add argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (remote_use_agent): Add 'self' argument.
12416 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12417
12418 2014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12421 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12422 (target_traceframe_info): Add argument.
12423 * target.c (update_current_target): Update.
12424 * remote.c (remote_traceframe_info): Add 'self' argument.
12425 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12426
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * target.h (target_static_tracepoint_markers_by_strid): Add
12430 argument.
12431 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12432 'self' argument.
12433 * target.c (update_current_target): Update.
12434 * remote.c (struct target_ops)
12435 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12436 * linux-nat.c (struct target_ops)
12437 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12438
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12442 Add argument.
12443 (target_static_tracepoint_marker_at): Add argument.
12444 * target.c (update_current_target): Update.
12445 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12446 argument.
12447
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12451 (target_set_permissions): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_set_permissions): Add 'self' argument.
12454 (remote_start_remote): Update.
12455
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12459 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12460 (target_get_tib_address): Add argument.
12461 * target.c (update_current_target): Update.
12462 * remote.c (remote_get_tib_address): Add 'self' argument.
12463
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12467 (target_set_trace_notes): Add argument.
12468 * target.c (update_current_target): Update.
12469 * remote.c (remote_set_trace_notes): Add 'self' argument.
12470
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12474 argument.
12475 (target_set_trace_buffer_size): Add argument.
12476 * target.c (update_current_target): Update.
12477 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12478
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12480
12481 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12482 argument.
12483 (target_set_circular_trace_buffer): Add argument.
12484 * target.c (update_current_target): Update.
12485 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12486 argument.
12487
12488 2014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12491 argument.
12492 (target_set_disconnected_tracing): Add argument.
12493 * target.c (update_current_target): Update.
12494 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12495
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12497
12498 * target.h (struct target_ops)
12499 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12500 (target_get_min_fast_tracepoint_insn_len): Add argument.
12501 * target.c (update_current_target): Update.
12502 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12503 argument.
12504
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12506
12507 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12508 argument.
12509 (target_get_raw_trace_data): Add argument.
12510 * target.c (update_current_target): Update.
12511 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12512
12513 2014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12516 Add argument.
12517 (target_upload_trace_state_variables): Add argument.
12518 * target.c (update_current_target): Update.
12519 * remote.c (remote_upload_trace_state_variables): Add 'self'
12520 argument.
12521 (remote_start_remote): Update.
12522
12523 2014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12526 argument.
12527 (target_upload_tracepoints): Add argument.
12528 * target.c (update_current_target): Update.
12529 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12530 (remote_start_remote): Update.
12531
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12535 (target_save_trace_data): Add argument.
12536 * target.c (update_current_target): Update.
12537 * remote.c (remote_save_trace_data): Add 'self' argument.
12538
12539 2014-02-19 Tom Tromey <tromey@redhat.com>
12540
12541 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12542 argument.
12543 * target.h (struct target_ops)
12544 <to_get_trace_state_variable_value>: Add argument.
12545 (target_get_trace_state_variable_value): Add argument.
12546 * target.c (update_current_target): Update.
12547 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12548 argument.
12549 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12550
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12554 * target.h (struct target_ops) <to_trace_find>: Add argument.
12555 (target_trace_find): Add argument.
12556 * target.c (update_current_target): Update.
12557 * remote.c (remote_trace_find): Add 'self' argument.
12558 * ctf.c (ctf_trace_find): Add 'self' argument.
12559
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12563 (target_trace_stop): Add argument.
12564 * target.c (update_current_target): Update.
12565 * remote.c (remote_trace_stop): Add 'self' argument.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12570 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12571 argument.
12572 (target_get_tracepoint_status): Add argument.
12573 * target.c (update_current_target): Update.
12574 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12575
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12579 * target.h (struct target_ops) <to_get_trace_status>: Add
12580 argument.
12581 (target_get_trace_status): Add argument.
12582 * target.c (update_current_target): Update.
12583 * remote.c (remote_get_trace_status): Add 'self' argument.
12584 (remote_start_remote, remote_can_download_tracepoint): Update.
12585 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12586
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12588
12589 * target.h (struct target_ops) <to_trace_start>: Add argument.
12590 (target_trace_start): Add argument.
12591 * target.c (update_current_target): Update.
12592 * remote.c (remote_trace_start): Add 'self' argument.
12593
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12597 Add argument.
12598 (target_trace_set_readonly_regions): Add argument.
12599 * target.c (update_current_target): Update.
12600 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12601 argument.
12602
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12606 argument.
12607 (target_disable_tracepoint): Add argument.
12608 * target.c (update_current_target): Update.
12609 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12610
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12614 argument.
12615 (target_enable_tracepoint): Add argument.
12616 * target.c (update_current_target): Update.
12617 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12618
12619 2014-02-19 Tom Tromey <tromey@redhat.com>
12620
12621 * target.h (struct target_ops) <to_download_trace_state_variable>:
12622 Add argument.
12623 (target_download_trace_state_variable): Add argument.
12624 * target.c (update_current_target): Update.
12625 * remote.c (remote_download_trace_state_variable): Add 'self'
12626 argument.
12627
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12631 argument.
12632 (target_can_download_tracepoint): Add argument.
12633 * target.c (update_current_target): Update.
12634 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12635
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_download_tracepoint>: Add
12639 argument.
12640 (target_download_tracepoint): Add argument.
12641 * target.c (update_current_target): Update.
12642 * remote.c (remote_download_tracepoint): Add 'self' argument.
12643
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target.h (struct target_ops) <to_trace_init>: Add argument.
12647 (target_trace_init): Add argument.
12648 * target.c (update_current_target): Update.
12649 * remote.c (remote_trace_init): Add 'self' argument.
12650
12651 2014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12654 * target.c (target_fileio_readlink): Add argument.
12655 * remote.c (remote_hostio_readlink): Add 'self' argument.
12656 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12657
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12661 * target.c (target_fileio_unlink): Add argument.
12662 * remote.c (remote_hostio_unlink): Add 'self' argument.
12663 (remote_file_delete): Update.
12664 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12665
12666 2014-02-19 Tom Tromey <tromey@redhat.com>
12667
12668 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12669 * target.c (target_fileio_close): Add argument.
12670 * remote.c (remote_hostio_close): Add 'self' argument.
12671 (remote_hostio_close_cleanup): Update.
12672 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12673 Update.
12674 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12679 * target.c (target_fileio_pread): Add argument.
12680 * remote.c (remote_hostio_pread): Add 'self' argument.
12681 (remote_bfd_iovec_pread, remote_file_get): Update.
12682 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12683
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12687 * target.c (target_fileio_pwrite): Add argument.
12688 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12689 (remote_file_put): Update.
12690 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12691
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12695 * target.c (target_fileio_open): Add argument.
12696 * remote.c (remote_hostio_open): Add 'self' argument.
12697 (remote_bfd_iovec_open): Add 'self' argument.
12698 (remote_file_put): Add 'self' argument.
12699 (remote_file_get): Add 'self' argument.
12700 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12701
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12703
12704 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12705 Add argument.
12706 (target_can_run_breakpoint_commands): Add argument.
12707 * target.c (update_current_target): Update.
12708 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12709 argument.
12710 (remote_insert_breakpoint): Add 'self' argument.
12711 (remote_insert_hw_breakpoint): Add 'self' argument.
12712 (remote_can_run_breakpoint_commands): Add 'self' argument.
12713
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops)
12717 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12718 (target_supports_evaluation_of_breakpoint_conditions): Add
12719 argument.
12720 * target.c (update_current_target): Update.
12721 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12722 argument.
12723 (remote_insert_breakpoint): Add 'self' argument.
12724 (remote_insert_hw_breakpoint): Add 'self' argument.
12725 (remote_supports_cond_breakpoints): Add 'self' argument.
12726
12727 2014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12730 argument.
12731 (target_supports_string_tracing): Add argument.
12732 * target.c (update_current_target): Update.
12733 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12734
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12736
12737 * target.h (struct target_ops)
12738 <to_supports_disable_randomization>: Add argument.
12739 * target.c (find_default_supports_disable_randomization): Add
12740 argument.
12741 (target_supports_disable_randomization): Add argument.
12742 (find_default_supports_disable_randomization): Add 'self'
12743 argument.
12744 * remote.c (extended_remote_supports_disable_randomization): Add
12745 'self' argument.
12746 (remote_supports_disable_randomization): Add 'self' argument.
12747 (extended_remote_create_inferior): Update.
12748 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12749 'self' argument.
12750
12751 2014-02-19 Tom Tromey <tromey@redhat.com>
12752
12753 * target.h (struct target_ops)
12754 <to_supports_enable_disable_tracepoint>: Add argument.
12755 (target_supports_enable_disable_tracepoint): Add argument.
12756 * target.c (update_current_target): Update.
12757 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12758 argument.
12759
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops) <to_supports_multi_process>: Add
12763 argument.
12764 (target_supports_multi_process): Add argument.
12765 * target.c (update_current_target): Update.
12766 * remote.c (remote_supports_multi_process): Add 'self' argument.
12767 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12768 argument.
12769 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12770 argument.
12771
12772 2014-02-19 Tom Tromey <tromey@redhat.com>
12773
12774 * target.h (struct target_ops) <to_execution_direction>: Add
12775 argument.
12776 (target_execution_direction): Add argument.
12777 * target.c (default_execution_direction): Add 'self' argument.
12778 * record-full.c (record_full_execution_direction): Add 'self'
12779 argument.
12780
12781 2014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12784 argument.
12785 (target_can_execute_reverse): Add argument.
12786 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12787 * record-full.c (record_full_can_execute_reverse): Add 'self'
12788 argument.
12789 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12790 argument.
12791
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12795 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12796 argument.
12797 (target_get_ada_task_ptid): Add argument.
12798 * target.c (update_current_target): Update.
12799 (default_get_ada_task_ptid): Add 'self' argument.
12800 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12801 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12802 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12803 argument.
12804 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12805 argument.
12806 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12807 argument.
12808 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12809 argument.
12810 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12811 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12812 argument.
12813
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12815
12816 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12817 (target_goto_bookmark): Add argument.
12818 * target.c (dummy_goto_bookmark): Add 'self' argument.
12819 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12820
12821 2014-02-19 Tom Tromey <tromey@redhat.com>
12822
12823 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12824 (target_get_bookmark): Add argument.
12825 * target.c (dummy_get_bookmark): Add 'self' argument.
12826 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12827
12828 2014-02-19 Tom Tromey <tromey@redhat.com>
12829
12830 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12831 argument.
12832 (target_make_corefile_notes): Add argument.
12833 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12834 * procfs.c (procfs_make_note_section): Add 'self' argument.
12835 (procfs_make_note_section): Add 'self' argument.
12836 (procfs_make_note_section): Add 'self' argument.
12837 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12838 argument.
12839 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12840 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12841 * exec.c (exec_make_note_section): Add 'self' argument.
12842 (exec_make_note_section): Add 'self' argument.
12843
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12845
12846 * target.h (struct target_ops) <to_find_memory_regions>: Add
12847 argument.
12848 (target_find_memory_regions): Add argument.
12849 * target.c (dummy_find_memory_regions): Add 'self' argument.
12850 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12851 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12852 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12853 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12854 * exec. (exec_do_find_memory_regions): New global.
12855 (exec_set_find_memory_regions): Rewrite.
12856 (exec_find_memory_regions): New function.
12857 (init_exec_ops): Use exec_find_memory_regions.
12858
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12860
12861 * target.h (struct target_ops) <to_supports_non_stop>: Add
12862 argument.
12863 * target.c (find_default_supports_non_stop): Add argument.
12864 (target_supports_non_stop): Add argument.
12865 (find_default_supports_non_stop): Add 'self' argument.
12866 * remote.c (remote_supports_non_stop): Add 'self' argument.
12867 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12868
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12870
12871 * target.h (struct target_ops) <to_log_command>: Add argument.
12872 (target_log_command): Add argument.
12873 * serial.h (serial_log_command): Add 'self' argument.
12874 * serial.c (serial_log_command): Add 'self' argument.
12875
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12879 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12880 argument.
12881 (target_pid_to_exec_file): Add argument.
12882 * target.c (debug_to_pid_to_exec_file): Add argument.
12883 (update_current_target): Update.
12884 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12885 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12886 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12887 (linux_handle_extended_wait): Update.
12888 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12889 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12890 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12891 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_rcmd>: Add argument.
12896 (target_rcmd): Add argument.
12897 * target.c (debug_to_rcmd): Add argument.
12898 (update_current_target, do_monitor_command): Update.
12899 * remote.c (remote_rcmd): Add 'self' argument.
12900 * monitor.c (monitor_rcmd): Add 'self' argument.
12901
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * windows-nat.c (windows_stop): Add 'self' argument.
12905 * target.h (struct target_ops) <to_stop>: Add argument.
12906 * target.c (target_stop): Add argument.
12907 (debug_to_stop): Add argument.
12908 (update_current_target): Update.
12909 * remote.c (remote_stop): Add 'self' argument.
12910 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12911 (gdbsim_cntrl_c): Update.
12912 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12913 * procfs.c (procfs_stop): Add 'self' argument.
12914 * nto-procfs.c (procfs_stop): Add 'self' argument.
12915 * monitor.c (monitor_stop): Add 'self' argument.
12916 (monitor_open): Update.
12917 * linux-nat.c (linux_nat_stop): Add argument.
12918 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12919 * gnu-nat.c (gnu_stop): Add 'self' argument.
12920 * darwin-nat.c (darwin_stop): Add 'self' argument.
12921
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_thread_name>: Add argument.
12925 * target.c (target_thread_name): Add argument.
12926 (update_current_target): Update.
12927 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12928
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * target.h (struct target_ops) <to_extra_thread_info>: Add
12932 argument.
12933 (target_extra_thread_info): Add argument.
12934 * target.c (update_current_target): Update.
12935 * remote.c (remote_threads_extra_info): Add 'self' argument.
12936 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12937 argument.
12938 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12939 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12940 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12941 argument.
12942 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12943 argument.
12944 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12945 argument.
12946 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12947 argument.
12948
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_program_signals>: Add argument.
12952 * target.c (target_program_signals): Add argument.
12953 * remote.c (remote_program_signals): Add 'self' argument.
12954
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12958 * target.c (target_pass_signals): Add argument.
12959 * remote.c (remote_pass_signals): Add 'self' argument.
12960 (remote_start_remote): Update.
12961 * procfs.c (procfs_pass_signals): Add 'self' argument.
12962 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12963 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12964 (linux_nat_create_inferior, linux_nat_attach): Update.
12965
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12967
12968 * windows-nat.c (windows_can_run): Add 'self' argument.
12969 * target.h (struct target_ops) <to_can_run>: Add argument.
12970 (target_can_run): Add argument.
12971 * target.c (debug_to_can_run): Add argument.
12972 (update_current_target): Update.
12973 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12974 * inf-child.c (inf_child_can_run): Add 'self' argument.
12975 * go32-nat.c (go32_can_run): Add 'self' argument.
12976
12977 2014-02-19 Tom Tromey <tromey@redhat.com>
12978
12979 * target.h (struct target_ops) <to_has_exited>: Add argument.
12980 (target_has_exited): Add argument.
12981 * target.c (debug_to_has_exited): Add argument.
12982 (update_current_target): Update.
12983
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12987 argument.
12988 (target_set_syscall_catchpoint): Add argument.
12989 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12990 argument.
12991 * target.c (update_current_target): Update.
12992
12993 2014-02-19 Tom Tromey <tromey@redhat.com>
12994
12995 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12996 argument.
12997 (target_remove_exec_catchpoint): Add argument.
12998 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12999 (update_current_target): Update.
13000 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13001 argument.
13002
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13006 argument.
13007 (target_insert_exec_catchpoint): Add argument.
13008 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13009 (update_current_target): Update.
13010 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13011 argument.
13012
13013 2014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13016 argument.
13017 (target_remove_vfork_catchpoint): Add argument.
13018 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13019 (update_current_target): Update.
13020 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13021 argument.
13022
13023 2014-02-19 Tom Tromey <tromey@redhat.com>
13024
13025 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13026 argument.
13027 (target_insert_vfork_catchpoint): Add argument.
13028 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13029 (update_current_target): Update.
13030 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13031 argument.
13032
13033 2014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13036 argument.
13037 (target_remove_fork_catchpoint): Add argument.
13038 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13039 (update_current_target): Update.
13040 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13041 argument.
13042
13043 2014-02-19 Tom Tromey <tromey@redhat.com>
13044
13045 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13046 argument.
13047 (target_insert_fork_catchpoint): Add argument.
13048 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13049 (update_current_target): Update.
13050 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13051 argument.
13052
13053 2014-02-19 Tom Tromey <tromey@redhat.com>
13054
13055 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13056 argument.
13057 (target_post_startup_inferior): Add argument.
13058 * target.c (debug_to_post_startup_inferior): Add argument.
13059 (update_current_target): Update.
13060 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13061 argument.
13062 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13063 argument.
13064 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13065 argument.
13066 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13067 argument.
13068 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13069 'self' argument.
13070 (super_post_startup_inferior): Likewise.
13071 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13072 'self' argument.
13073 (super_post_startup_inferior): Likewise.
13074 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13075 Add 'self' argument.
13076 (super_post_startup_inferior): Likewise.
13077
13078 2014-02-19 Tom Tromey <tromey@redhat.com>
13079
13080 * target.h (struct target_ops) <to_load>: Add argument.
13081 * target.c (target_load): Add argument.
13082 (debug_to_load): Add argument.
13083 (update_current_target): Update.
13084 * remote.c (remote_load): Add 'self' argument.
13085 * remote-sim.c (gdbsim_load): Add 'self' argument.
13086 * remote-mips.c (mips_load): Add 'self' argument.
13087 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13088 * monitor.c (monitor_load): Add 'self' argument.
13089 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13090
13091 2014-02-19 Tom Tromey <tromey@redhat.com>
13092
13093 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13094 (target_terminal_info): Add argument.
13095 * target.c (debug_to_terminal_info): Add argument.
13096 (default_terminal_info): Likewise.
13097 * inflow.c (child_terminal_info): Add 'self' argument.
13098 * inferior.h (child_terminal_info): Add 'self' argument.
13099 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13100
13101 2014-02-19 Tom Tromey <tromey@redhat.com>
13102
13103 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13104 argument.
13105 (target_terminal_save_ours): Add argument.
13106 * target.c (debug_to_terminal_save_ours): Add argument.
13107 (update_current_target): Update.
13108 * inflow.c (terminal_save_ours): Add 'self' argument.
13109 * inferior.h (terminal_save_ours): Add 'self' argument.
13110
13111 2014-02-19 Tom Tromey <tromey@redhat.com>
13112
13113 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13114 (target_terminal_ours): Add argument.
13115 * target.c (debug_to_terminal_ours): Add argument.
13116 (update_current_target): Update.
13117 * remote.c (remote_terminal_ours): Add 'self' argument.
13118 (remote_close): Update.
13119 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13120 * inflow.c (terminal_ours): Add 'self' argument.
13121 * inferior.h (terminal_ours): Add 'self' argument.
13122 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13123
13124 2014-02-19 Pedro Alves <palves@redhat.com>
13125 Tom Tromey <tromey@redhat.com>
13126
13127 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13128 argument.
13129 (target_terminal_ours_for_output): Add argument.
13130 * target.c (debug_to_terminal_ours_for_output): Add argument.
13131 (update_current_target): Update.
13132 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13133 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13134 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13135
13136 2014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops) <to_terminal_inferior>: Add
13139 argument.
13140 * target.c (target_terminal_inferior): Add argument.
13141 (update_current_target): Update.
13142 * remote.c (remote_terminal_inferior): Add 'self' argument.
13143 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13144 * inflow.c (terminal_inferior): Add 'self' argument.
13145 * inferior.h (terminal_inferior): Add 'self' argument.
13146 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13147 (go32_terminal_inferior): Add 'self' argument.
13148
13149 2014-02-19 Tom Tromey <tromey@redhat.com>
13150
13151 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13152 (target_terminal_init): Add argument.
13153 * target.c (debug_to_terminal_init): Add argument.
13154 (update_current_target): Update.
13155 * inflow.c (terminal_init_inferior): Add 'self' argument.
13156 * inferior.h (terminal_init_inferior): Add 'self' argument.
13157 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13158 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13159
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13161
13162 * target.h (struct target_ops)
13163 <to_can_accel_watchpoint_condition>: Add argument.
13164 (target_can_accel_watchpoint_condition): Add argument.
13165 * target.c (debug_to_can_accel_watchpoint_condition): Add
13166 argument.
13167 (update_current_target): Update.
13168 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13169 'self' argument.
13170
13171 2014-02-19 Tom Tromey <tromey@redhat.com>
13172
13173 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13174 Add argument.
13175 (target_region_ok_for_hw_watchpoint): Add argument.
13176 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13177 (default_region_ok_for_hw_watchpoint): Add argument.
13178 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13179 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13180 argument.
13181 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13182 argument.
13183 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13184 argument.
13185 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13186 'self' argument.
13187 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13188 'self' argument.
13189 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13190 'self' argument.
13191 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13192 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13193 'self' argument.
13194 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13195 Add 'self' argument.
13196
13197 2014-02-19 Tom Tromey <tromey@redhat.com>
13198
13199 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13200 argument.
13201 (target_insert_watchpoint): Add argument.
13202 * target.c (debug_to_insert_watchpoint): Add argument.
13203 (update_current_target): Update.
13204 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13205 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13206 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13207 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13208 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13209 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13210 argument.
13211 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13212 (procfs_insert_hw_watchpoint): Add 'self' argument.
13213 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13214 argument.
13215 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13216 argument.
13217 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13218 argument.
13219 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13220 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13221 argument.
13222 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13223 'self' argument.
13224
13225 2014-02-19 Tom Tromey <tromey@redhat.com>
13226
13227 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13228 argument.
13229 (target_remove_watchpoint): Add argument.
13230 * target.c (debug_to_remove_watchpoint): Add argument.
13231 (update_current_target): Update.
13232 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13233 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13234 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13235 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13236 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13237 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13238 argument.
13239 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13240 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13241 argument.
13242 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13243 argument.
13244 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13245 argument.
13246 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13247 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13248 argument.
13249 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13250 'self' argument.
13251
13252 2014-02-19 Tom Tromey <tromey@redhat.com>
13253
13254 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13255 argument.
13256 (target_remove_hw_breakpoint): Add argument.
13257 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13258 (update_current_target): Update.
13259 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13260 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13261 argument.
13262 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13263 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13264 argument.
13265 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13266 'self' argument.
13267
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13269
13270 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13271 argument.
13272 (target_insert_hw_breakpoint): Add argument.
13273 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13274 (update_current_target): Update.
13275 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13276 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13277 argument.
13278 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13279 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13280 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13281 argument.
13282 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13283 'self' argument.
13284
13285 2014-02-19 Tom Tromey <tromey@redhat.com>
13286
13287 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13288 argument.
13289 (target_can_use_hardware_watchpoint): Add argument.
13290 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13291 (update_current_target): Update.
13292 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13293 argument.
13294 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13295 argument.
13296 * remote.c (remote_check_watch_resources): Add 'self' argument.
13297 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13298 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13299 argument.
13300 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13301 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13302 argument.
13303 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13304 argument.
13305 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13306 argument.
13307 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13308 argument.
13309 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13310 argument.
13311 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13312 argument.
13313 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13314 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13315 argument.
13316 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13317 'self' argument.
13318
13319 2014-02-19 Tom Tromey <tromey@redhat.com>
13320
13321 * target.h (struct target_ops) <to_post_attach>: Add argument.
13322 (target_post_attach): Add argument.
13323 * target.c (debug_to_post_attach): Add argument.
13324 (update_current_target): Update.
13325 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13326 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13327 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13328 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13329 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13330
13331 2014-02-19 Tom Tromey <tromey@redhat.com>
13332
13333 * windows-nat.c (windows_close): Add 'self' argument.
13334 * tracepoint.c (tfile_close): Add 'self' argument.
13335 * target.h (struct target_ops) <to_close>: Add argument.
13336 * target.c (target_close): Add argument.
13337 (update_current_target): Update.
13338 * remote.c (remote_close): Add 'self' argument.
13339 * remote-sim.c (gdbsim_close): Add 'self' argument.
13340 * remote-mips.c (mips_close): Add 'self' argument.
13341 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13342 * record-full.c (record_full_close): Add 'self' argument.
13343 * record-btrace.c (record_btrace_close): Add 'self' argument.
13344 * monitor.h (monitor_close): Add 'self' argument.
13345 * monitor.c (monitor_close): Add 'self' argument.
13346 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13347 * linux-nat.c (linux_nat_close): Add argument.
13348 * go32-nat.c (go32_close): Add 'self' argument.
13349 * exec.c (exec_close_1): Add 'self' argument.
13350 * ctf.c (ctf_close): Add 'self' argument.
13351 * corelow.c (core_close): Add 'self' argument.
13352 (core_close_cleanup): Update.
13353 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13354 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13355
13356 2014-02-19 Tom Tromey <tromey@redhat.com>
13357
13358 * remote.c (remote_load): New function.
13359 (init_remote_ops): Use it.
13360
13361 2014-02-19 Tom Tromey <tromey@redhat.com>
13362
13363 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13364 argument.
13365 * common/linux-btrace.h (linux_supports_btrace): Update.
13366 * remote.c (remote_supports_btrace): Add "self" argument.
13367 * target-delegates.c: Rebuild.
13368 * target.c (target_supports_btrace): Remove.
13369 * target.h (struct target_ops) <to_supports_btrace>: Add
13370 target_ops argument.
13371 (target_supports_btrace): New define.
13372
13373 2014-02-19 Tom Tromey <tromey@redhat.com>
13374
13375 * record-full.c (record_full_beneath_to_resume_ops)
13376 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13377 (record_full_beneath_to_wait)
13378 (record_full_beneath_to_store_registers_ops)
13379 (record_full_beneath_to_store_registers)
13380 (record_full_beneath_to_xfer_partial_ops)
13381 (record_full_beneath_to_xfer_partial)
13382 (record_full_beneath_to_insert_breakpoint_ops)
13383 (record_full_beneath_to_insert_breakpoint)
13384 (record_full_beneath_to_remove_breakpoint_ops)
13385 (record_full_beneath_to_remove_breakpoint)
13386 (record_full_beneath_to_stopped_by_watchpoint)
13387 (record_full_beneath_to_stopped_data_address)
13388 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13389 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13390 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13391 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13392 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13393 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13394 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13395 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13396 (record_full_resume, record_full_wait_1)
13397 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13398 (record_full_store_registers, record_full_xfer_partial)
13399 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13400 (record_full_async, record_full_core_xfer_partial): Use target
13401 delegation.
13402 * target-delegates.c: Rebuild.
13403 * target.c (current_xfer_partial): Remove.
13404 (update_current_target): Do not INHERIT or de_fault
13405 to_insert_breakpoint, to_remove_breakpoint,
13406 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13407 to_is_async_p, to_async. Do not set to_xfer_partial field.
13408 (default_xfer_partial): Simplify.
13409 (current_xfer_partial): Remove.
13410 (target_wait, target_resume): Simplify.
13411 (find_default_can_async_p, find_default_is_async_p): Update.
13412 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13413 to_xfer_partial, to_stopped_by_watchpoint,
13414 to_stopped_data_address.
13415 (target_store_registers): Simplify.
13416 (forward_target_remove_breakpoint)
13417 (forward_target_insert_breakpoint): Remove.
13418 (target_remove_breakpoint, target_insert_breakpoint)
13419 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13420 * target.h (struct target_ops) <to_resume, to_wait,
13421 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13422 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13423 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13424 markup.
13425 (forward_target_remove_breakpoint)
13426 (forward_target_insert_breakpoint): Remove.
13427 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13428 directly.
13429 (record_btrace_insert_breakpoint): Delegate directly.
13430
13431 2014-02-19 Tom Tromey <tromey@redhat.com>
13432
13433 PR build/7701:
13434 * target-delegates.c: New file.
13435 * target.c: Include target-delegates.c.
13436 (init_dummy_target): Call install_dummy_methods.
13437 (complete_target_initialization): Call install_delegators.
13438 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13439 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13440 * make-target-delegates: New file.
13441
13442 2014-02-19 Tom Tromey <tromey@redhat.com>
13443
13444 * record.c (find_record_target): Use find_target_at.
13445 * target.c (find_target_at): New function.
13446 * target.h (find_target_at): Declare.
13447
13448 2014-02-19 Tom Tromey <tromey@redhat.com>
13449
13450 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13451 Add 'ops' argument.
13452 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13453 'ops' argument.
13454 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13455 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13456 'ops' argument.
13457 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13458 argument.
13459 * linux-nat.c (save_sigtrap): Update.
13460 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13461 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13462 (linux_nat_close): Update.
13463 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13464 argument.
13465 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13466 argument.
13467 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13468 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13469 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13470 (tmp_to_async): Add 'ops' argument.
13471 (record_full_stopped_by_watchpoint, record_full_async)
13472 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13473 argument.
13474 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13475 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13476 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13477 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13478 (remote_is_async_p, remote_async): Add 'ops' argument.
13479 (remote_stopped_data_address): Update.
13480 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13481 * target.c (update_current_target)
13482 (find_default_can_async_p, find_default_is_async_p): Update.
13483 (init_dummy_target): Update.
13484 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13485 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13486 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13487 (target_can_async_p, target_is_async_p, target_async)
13488 (target_stopped_by_watchpoint): Update.
13489
13490 2014-02-19 Yao Qi <yao@codesourcery.com>
13491
13492 PR gdb/16220
13493 * gdbarch.sh: Remove startup_gdbarch.
13494 * gdbarch.c: Regenerated.
13495 * gdbarch.h: Likewise.
13496
13497 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13498
13499 * rl78-tdep.c (rl78_g10_register_name): New function.
13500 (rl78_return_value): Add g10 support.
13501 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13502 g10.
13503
13504 2014-02-17 Doug Evans <xdje42@gmail.com>
13505
13506 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13507 (SUBDIR_GUILE_SRCS): Ditto.
13508 (scm-gsmob.o): Ditto.
13509
13510 2014-02-17 Yao Qi <yao@codesourcery.com>
13511
13512 * gnu-nat.c (ILL_RPC): Declare defined function.
13513
13514 2014-02-17 Yao Qi <yao@codesourcery.com>
13515
13516 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13517 mach_msg_type_number_t.
13518 (gnu_write_inferior): Likewise.
13519
13520 2014-02-17 Yao Qi <yao@codesourcery.com>
13521
13522 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13523 in format string.
13524 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13525 (inf_validate_procs, inf_signal): Likewise.
13526 (S_exception_raise_request): Likewise.
13527 (do_mach_notify_dead_name): Likewise.
13528 (steal_exc_port): Likewise.
13529 (gnu_read_inferior): Change 'copy_count''s type to
13530 mach_msg_type_number_t.
13531 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13532 format string.
13533
13534 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13535
13536 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13537 flag. Adjust all users; in particular...
13538 (gnu_wait): ..., don't decrement its value in here...
13539 (gnu_create_inferior): ..., and instead set the flag in here,
13540 around the startup_inferior call, and call that one with
13541 START_INFERIOR_TRAPS_EXPECTED.
13542
13543 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13544 (ILL_RPC): ... new macro.
13545 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13546 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13547 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13548 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13549 functions with ILL_RPC macro.
13550 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13551 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13552 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13553 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13554 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13555 (S_proc_getlogin_reply, S_proc_getsid_reply)
13556 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13557 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13558 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13559 (S_proc_getnports_reply, S_proc_is_important_reply)
13560 (S_proc_get_code_reply): New stub functions, generated with
13561 ILL_RPC macro.
13562
13563 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13564 collected the type check structures.
13565
13566 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13567
13568 2014-02-14 Doug Evans <dje@google.com>
13569
13570 * target.c (target_write_partial): Fix result type.
13571
13572 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13573
13574 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13575 the proper offsets to access fpregset_t.
13576
13577 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13578
13579 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13580 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13581 * h8300-tdep.c (setmachinelist): Remove global.
13582 * hppa-tdep.c (hppa_sigtramp): Remove global.
13583 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13584 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13585 * ravenscar-thread.c (update_target_observer): Remove global.
13586 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13587
13588 2014-02-12 Tom Tromey <tromey@redhat.com>
13589
13590 * common/rsp-low.c: Update comments.
13591 * common/rsp-low.h: Update comments.
13592
13593 2014-02-12 Tom Tromey <tromey@redhat.com>
13594
13595 * common/rsp-low.c (convert_ascii_to_int): Remove.
13596 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13597
13598 2014-02-12 Tom Tromey <tromey@redhat.com>
13599
13600 * common/rsp-low.h (unhexify): Don't declare.
13601 * common/rsp-low.c (unhexify): Remove.
13602
13603 2014-02-12 Tom Tromey <tromey@redhat.com>
13604
13605 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13606 * common/rsp-low.c (convert_int_to_ascii): Remove.
13607
13608 2014-02-12 Tom Tromey <tromey@redhat.com>
13609
13610 * common/rsp-low.h (hexify): Don't declare.
13611 * common/rsp-low.c (hexify): Remove.
13612
13613 2014-02-12 Tom Tromey <tromey@redhat.com>
13614
13615 * common/rsp-low.c (hexify): Never take strlen of argument.
13616
13617 2014-02-12 Tom Tromey <tromey@redhat.com>
13618
13619 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13620 * remote.c (extended_remote_run, remote_rcmd)
13621 (remote_download_trace_state_variable, remote_save_trace_data)
13622 (remote_set_trace_notes): Update.
13623 * tracepoint.c (encode_source_string, tfile_write_status)
13624 (tfile_write_uploaded_tsv): Update.
13625
13626 2014-02-12 Tom Tromey <tromey@redhat.com>
13627
13628 * tracepoint.c: Include rsp-low.h.
13629 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13630 * remote.c: Include rsp-low.h.
13631 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13632 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13633 (remote_unescape_input): Move to common/rsp-low.c.
13634 * common/rsp-low.h: New file.
13635 * common/rsp-low.c: New file.
13636 * Makefile.in (SFILES): Add common/rsp-low.c.
13637 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13638 (COMMON_OBS): Add rsp-low.o.
13639 (rsp-low.o): New target.
13640
13641 2014-02-12 Tom Tromey <tromey@redhat.com>
13642
13643 * utils.h: Include print-utils.h.
13644 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13645 (int_string, core_addr_to_string, core_addr_to_string_nz)
13646 (hex_string, hex_string_custom): Don't declare.
13647 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13648 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13649 (hex_string_custom, int_string, core_addr_to_string)
13650 (core_addr_to_string_nz, host_address_to_string): Move to
13651 common/print-utils.c.
13652 * common/print-utils.h: New file.
13653 * common/print-utils.c: New file
13654 * Makefile.in (SFILES): Add common/print-utils.c.
13655 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13656 (COMMON_OBS): Add print-utils.o.
13657 (print-utils.o): New target.
13658
13659 2014-02-12 Tom Tromey <tromey@redhat.com>
13660
13661 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13662
13663 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13664
13665 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13666
13667 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13668
13669 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13670 if a PT_IO ptrace request returns sucessfully but indicates that 0
13671 bytes were transferred.
13672
13673 2014-02-12 Pedro Alves <palves@redhat.com>
13674 Kevin Buettner <kevinb@redhat.com>
13675
13676 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13677 TYPE_INSTANCE_FLAG_CODE_SPACE.
13678
13679 2014-02-12 Pedro Alves <palves@redhat.com>
13680
13681 * h8300-tdep.c (pseudo_from_raw_register)
13682 (raw_from_pseudo_register): New functions.
13683 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13684 them.
13685
13686 2014-02-12 Pedro Alves <palves@redhat.com>
13687
13688 * h8300-tdep.c (h8300_register_sim_regno): New function.
13689 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13690 gdbarch_register_sim_regno hook.
13691
13692 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13693
13694 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13695
13696 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13697
13698 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13699
13700 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13701
13702 * obsd-tdep.h (obsd_init_abi): New prototype.
13703 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13704 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13705 (obsd_init_abi): New functions.
13706 * i386obsd-tdep.c: Include "obsd-tdep.h".
13707 (i386obsd_init_abi): Call obsd_init_abi.
13708 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13709 (amd64obsd_init_abi): Call obsd_init_abi.
13710 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13711 obsd-tdep.c to gdb_target_obs.
13712
13713 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13714
13715 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13716 double float arguments to 16-byte in the argument slots.
13717
13718 2014-02-11 Doug Evans <xdje42@gmail.com>
13719
13720 * configure.ac: Don't crash if pkg-config is not found and guile
13721 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13722 in guile checks.
13723 * configure: Regenerate.
13724
13725 2014-02-11 Yao Qi <yao@codesourcery.com>
13726
13727 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13728 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13729 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13730 * gnu-nat.c (gnu_xfer_memory): Likewise.
13731 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13732 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13733 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13734 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13735
13736 2014-02-11 Yao Qi <yao@codesourcery.com>
13737
13738 * target.h (enum target_xfer_error): Rename to ...
13739 (enum target_xfer_status): ... it. New. All users updated.
13740 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13741 New.
13742 (TARGET_XFER_STATUS_ERROR_P): New macro.
13743 (target_xfer_error_to_string): Remove declaration.
13744 (target_xfer_status_to_string): Declare.
13745 (target_xfer_partial_ftype): Adjust it.
13746 (struct target_ops) <to_xfer_partial>: Return
13747 target_xfer_status. Add argument xfered_len. Update
13748 comments.
13749 * target.c (target_xfer_error_to_string): Rename to ...
13750 (target_xfer_status_to_string): ... it. New. All callers
13751 updated.
13752 (target_read_live_memory): Likewise. Call target_xfer_partial
13753 instead of target_read.
13754 (memory_xfer_live_readonly_partial): Return
13755 target_xfer_status. Add argument xfered_len.
13756 (raw_memory_xfer_partial): Likewise.
13757 (memory_xfer_partial_1): Likewise.
13758 (memory_xfer_partial): Likewise.
13759 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13760 properly. Update debug message.
13761 (default_xfer_partial, current_xfer_partial): Likewise.
13762 (target_write_partial): Likewise.
13763 (target_read_partial): Likewise. All callers updated.
13764 (read_whatever_is_readable): Likewise.
13765 (target_write_with_progress): Likewise.
13766 (target_read_alloc_1): Likewise.
13767
13768 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13769 * auxv.c (procfs_xfer_auxv): Likewise.
13770 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13771 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13772 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13773 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13774 * corefile.c (read_memory): Adjust.
13775 * corelow.c (core_xfer_partial): Likewise.
13776 * ctf.c (ctf_xfer_partial): Likewise.
13777 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13778 updated.
13779 (darwin_xfer_partial): Likewise.
13780 * exec.c (section_table_xfer_memory_partial): Likewise. All
13781 callers updated.
13782 (exec_xfer_partial): Likewise.
13783 * exec.h (section_table_xfer_memory_partial): Update
13784 declaration.
13785 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13786 negative.
13787 (gnu_xfer_partial): Likewise.
13788 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13789 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13790 (ia64_hpux_xfer_solib_got): Likewise.
13791 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13792 type of 'partial_len' to ULONGEST.
13793 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13794 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13795 (linux_nat_xfer_partial): Likewise.
13796 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13797 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13798 * monitor.c (monitor_xfer_memory): Likewise.
13799 (monitor_xfer_partial): Likewise.
13800 * procfs.c (procfs_xfer_partial): Likewise.
13801 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13802 * record-full.c (record_full_xfer_partial): Likewise.
13803 (record_full_core_xfer_partial): Likewise.
13804 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13805 (gdbsim_xfer_partial): Likewise.
13806 * remote.c (remote_write_bytes_aux): Likewise. All callers
13807 updated.
13808 (remote_write_bytes, remote_read_bytes): Likewise. All
13809 callers updated.
13810 (remote_flash_erase): Likewise. All callers updated.
13811 (remote_write_qxfer): Likewise. All callers updated.
13812 (remote_read_qxfer): Likewise. All callers updated.
13813 (remote_xfer_partial): Likewise.
13814 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13815 (rs6000_xfer_shared_libraries): Likewise.
13816 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13817 (sol_thread_xfer_partial): Likewise.
13818 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13819 (sparc_xfer_partial): Likewise.
13820 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13821 updated.
13822 (spu_xfer_partial): Likewise.
13823 * spu-multiarch.c (spu_xfer_partial): Likewise.
13824 * tracepoint.c (tfile_xfer_partial): Likewise.
13825 * windows-nat.c (windows_xfer_memory): Likewise.
13826 (windows_xfer_shared_libraries): Likewise.
13827 (windows_xfer_partial): Likewise.
13828 * valprint.c: Replace 'target_xfer_error' with
13829 'target_xfer_status' in comments.
13830
13831 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13832
13833 Checked in by Joel Brobecker <brobecker@adacore.com>.
13834 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13835
13836 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13837
13838 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13839 function parameters.
13840
13841 2014-02-10 Will Newton <will.newton@linaro.org>
13842
13843 * elfread.c (elf_rel_plt_read): Look for a .got section if
13844 looking up .got.plt fails.
13845 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13846 on address passed to elf_gnu_ifunc_record_cache.
13847 (elf_gnu_ifunc_resolve_addr): Likewise.
13848 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13849
13850 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13851
13852 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13853 (X_RETTURN): New macro.
13854 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13855
13856 * sparc64-tdep.c (sparc64_init_abi): Hook
13857 sparc_in_function_epilogue_p.
13858
13859 2014-02-10 Gary Benson <gbenson@redhat.com>
13860
13861 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13862 Rename name_matcher to symbol_matcher.
13863
13864 2014-02-10 Gary Benson <gbenson@redhat.com>
13865
13866 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13867 Use expand_symtabs_file_matcher_ftype and
13868 expand_symtabs_symbol_matcher_ftype.
13869
13870 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13871
13872 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13873 (struct ada_symbol_cache): New.
13874 (ada_free_symbol_cache): Forward declare.
13875 (struct ada_pspace_data): New.
13876 (ada_pspace_data_handle): New static global.
13877 (get_ada_pspace_data, ada_pspace_data_cleanup)
13878 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13879 (cache_space, cache): Delete, now folded inside struct
13880 ada_pspace_data.
13881 (ada_get_symbol_cache): New function.
13882 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13883 implementation.
13884 (_initialize_ada_language): Remove initialization of cache_space.
13885 Move call to observer_attach_inferior_exit up, grouping it
13886 with the other observer registrations inside this function.
13887 Rename command to be more general. Add call to
13888 register_program_space_data_with_cleanup.
13889
13890 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13891
13892 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13893 ada_new_objfile_observer.
13894 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13895 (_initialize_tasks): Update uses of ada_new_objfile_observer
13896 and ada_tasks_normal_stop_observer.
13897
13898 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13899
13900 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13901 returned by the 'Length attribute to integer.
13902
13903 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13904
13905 * ada-lang.c (_initialize_ada_language): Initialize
13906 cache_space obstack.
13907
13908 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13909
13910 * ada-lang.c (HASH_SIZE): New macro.
13911 (struct cache_entry): New type.
13912 (cache_space, cache): New static globals.
13913 (ada_clear_symbol_cache, find_entry): New functions.
13914 (lookup_cached_symbol, cache_symbol): Implement.
13915 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13916 (_initialize_ada_language): Attach ada_new_objfile_observer
13917 and ada_free_objfile_observer.
13918
13919 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13920
13921 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13922 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13923 struct block * parameter.
13924 (ada_lookup_symbol_list_worker): Constify local variable "block".
13925 Remove cast which is no longer necessary.
13926
13927 2014-02-10 Doug Evans <xdje42@gmail.com>
13928
13929 Add Guile as an extension language.
13930 * NEWS: Mention Guile scripting.
13931 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13932 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13933 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13934 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13935 (CLIBS): Add GUILE_LIBS.
13936 (install-guile): New rule.
13937 (guile.o): New rule.
13938 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13939 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13940 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13941 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13942 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13943 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13944 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13945 * configure.ac: New option --with-guile.
13946 * configure: Regenerate.
13947 * config.in: Regenerate.
13948 * auto-load.c: Remove #include "python/python.h". Add #include
13949 "gdb/section-scripts.h".
13950 (source_section_scripts): Handle Guile scripts.
13951 (_initialize_auto_load): Add name of Guile objfile script to
13952 scripts-directory help text.
13953 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13954 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13955 (struct breakpoint): New member scm_bp_object.
13956 * defs.h (enum command_control_type): New value guile_control.
13957 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13958 "extension.h".
13959 (show_user): Update comment.
13960 (_initialize_cli_cmds): Update help text for "show user". Update help
13961 text for max-user-call-depth.
13962 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13963 "extension.h".
13964 (multi_line_command_p): Add guile_control.
13965 (print_command_lines): Handle guile_control.
13966 (execute_control_command, recurse_read_control_structure): Ditto.
13967 (process_next_line): Recognize "guile" commands.
13968 * disasm.c (gdb_disassemble_info): Make non-static.
13969 * disasm.h: #include "dis-asm.h".
13970 (struct gdbarch): Add forward decl.
13971 (gdb_disassemble_info): Declare.
13972 * extension.c: #include "guile/guile.h".
13973 (extension_languages): Add guile.
13974 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13975 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13976 * gdbtypes.c (get_unsigned_type_max): New function.
13977 (get_signed_type_minmax): New function.
13978 * gdbtypes.h (get_unsigned_type_max): Declare.
13979 (get_signed_type_minmax): Declare.
13980 * guile/README: New file.
13981 * guile/guile-internal.h: New file.
13982 * guile/guile.c: New file.
13983 * guile/guile.h: New file.
13984 * guile/scm-arch.c: New file.
13985 * guile/scm-auto-load.c: New file.
13986 * guile/scm-block.c: New file.
13987 * guile/scm-breakpoint.c: New file.
13988 * guile/scm-disasm.c: New file.
13989 * guile/scm-exception.c: New file.
13990 * guile/scm-frame.c: New file.
13991 * guile/scm-gsmob.c: New file.
13992 * guile/scm-iterator.c: New file.
13993 * guile/scm-lazy-string.c: New file.
13994 * guile/scm-math.c: New file.
13995 * guile/scm-objfile.c: New file.
13996 * guile/scm-ports.c: New file.
13997 * guile/scm-pretty-print.c: New file.
13998 * guile/scm-safe-call.c: New file.
13999 * guile/scm-string.c: New file.
14000 * guile/scm-symbol.c: New file.
14001 * guile/scm-symtab.c: New file.
14002 * guile/scm-type.c: New file.
14003 * guile/scm-utils.c: New file.
14004 * guile/scm-value.c: New file.
14005 * guile/lib/gdb.scm: New file.
14006 * guile/lib/gdb/boot.scm: New file.
14007 * guile/lib/gdb/experimental.scm: New file.
14008 * guile/lib/gdb/init.scm: New file.
14009 * guile/lib/gdb/iterator.scm: New file.
14010 * guile/lib/gdb/printing.scm: New file.
14011 * guile/lib/gdb/types.scm: New file.
14012 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14013 (VPATH): Add $(GUILE_SRCDIR).
14014 (GUILE_DIR): New variable.
14015 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14016 (all): Add stamp-guile dependency.
14017 (stamp-guile): New rule.
14018 (clean-guile, install-guile, uninstall-guile): New rules.
14019 (install-only): Add install-guile dependency.
14020 (uninstall): Add uninstall-guile dependency.
14021 (clean): Add clean-guile dependency.
14022
14023 2014-02-09 Doug Evans <xdje42@gmail.com>
14024
14025 Revert this patch (which I approved, mea culpa).
14026
14027 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14028
14029 * Makefile.in (all-lib): Remove.
14030 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14031
14032 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14033
14034 Fix Python stack corruption.
14035 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14036 gdb_py_longest.
14037
14038 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14039
14040 * Makefile.in (all-lib): Remove.
14041 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14042
14043 2014-02-07 Doug Evans <dje@google.com>
14044
14045 * extension-priv.h (extension_language_script_ops): Add comment.
14046 (extension_language_ops): Add comment.
14047 (active_ext_lang_state): Fix typo in comment.
14048
14049 2014-02-07 Pedro Alves <palves@redhat.com>
14050
14051 PR breakpoints/16292
14052 * infrun.c (handle_signal_stop) <signal arrives while stepping
14053 over a breakpoint>: Switch back to the stepping thread.
14054
14055 2014-02-07 Yao Qi <yao@codesourcery.com>
14056
14057 * target.c (target_xfer_partial): Return zero if LEN is zero.
14058
14059 2014-02-07 Yao Qi <yao@codesourcery.com>
14060
14061 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14062 (ld_so_xfer_auxv): Likewise.
14063 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14064 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14065 * corelow.c (core_xfer_partial): Likewise.
14066 * ctf.c (ctf_xfer_partial): Likewise.
14067 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14068 (darwin_xfer_partial): Likewise.
14069 * exec.c (exec_xfer_partial): Likewise.
14070 * gnu-nat.c (gnu_xfer_partial): Likewise.
14071 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14072 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14073 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14074 * linux-nat.c (linux_xfer_siginfo): Likewise.
14075 (linux_proc_xfer_spu): Likewise.
14076 * procfs.c (procfs_xfer_partial): Likewise.
14077 * record-full.c (record_full_xfer_partial): Likewise.
14078 (record_full_core_xfer_partial): Likewise.
14079 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14080 * remote.c (remote_write_qxfer): Likewise.
14081 (remote_write_qxfer, remote_read_qxfer): Likewise.
14082 (remote_xfer_partial): Likewise.
14083 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14084 (rs6000_xfer_shared_libraries): Likewise.
14085 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14086 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14087 (spu_xfer_partial): Likewise.
14088 * target.c (memory_xfer_partial_1): Likewise.
14089 * tracepoint.c (tfile_xfer_partial): Likewise.
14090 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14091 (windows_xfer_partial): Likewise.
14092
14093 2014-02-07 Yao Qi <yao@codesourcery.com>
14094
14095 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14096 comments.
14097 (core_xfer_shared_libraries_aix): Likewise.
14098 * gdbarch.c, gdbarch.h: Regenerated.
14099 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14100 ULONGEST. Change 'len_avail' type to ULONGEST.
14101 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14102 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14103 declaration.
14104 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14105
14106 2014-02-07 Yao Qi <yao@codesourcery.com>
14107
14108 * corefile.c (memory_error): Get 'exception' from ERR and pass
14109 'exception' to throw_error.
14110
14111 2014-02-06 Doug Evans <xdje42@gmail.com>
14112
14113 * configure.ac (libpython checking): Remove all but python.o from
14114 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14115 * configure: Regenerate.
14116
14117 * Makefile.in (SFILES): Add extension.c.
14118 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14119 (COMMON_OBS): Add extension.o.
14120 * extension.h: New file.
14121 * extension-priv.h: New file.
14122 * extension.c: New file.
14123
14124 * python/python-internal.h: #include "extension.h".
14125 (gdbpy_auto_load_enabled): Declare.
14126 (gdbpy_apply_val_pretty_printer): Declare.
14127 (gdbpy_apply_frame_filter): Declare.
14128 (gdbpy_preserve_values): Declare.
14129 (gdbpy_breakpoint_cond_says_stop): Declare.
14130 (gdbpy_breakpoint_has_cond): Declare.
14131 (void source_python_script_for_objfile): Delete.
14132 * python/python.c: #include "extension-priv.h".
14133 Delete inclusion of "observer.h".
14134 (extension_language_python): Moved here and renamed from
14135 script_language_python in py-auto-load.c.
14136 Redefined to be of type extension_language_defn.
14137 (python_extension_script_ops): New global.
14138 (python_extension_ops): New global.
14139 (struct python_env): New member previous_active.
14140 (restore_python_env): Call restore_active_ext_lang.
14141 (ensure_python_env): Call set_active_ext_lang.
14142 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14143 New arg extlang.
14144 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14145 New arg extlang.
14146 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14147 New arg extlang.
14148 (gdbpy_eval_from_control_command): Renamed from
14149 eval_python_from_control_command, made static. New arg extlang.
14150 (gdbpy_source_script) Renamed from source_python_script, made static.
14151 New arg extlang.
14152 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14153 result to int. New arg extlang.
14154 (gdbpy_source_objfile_script): Renamed from
14155 source_python_script_for_objfile, made static. New arg extlang.
14156 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14157 static. New args extlang, extlang_printers. Change result type to
14158 "void".
14159 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14160 static. New arg extlang. Rename arg printers to extlang_printers
14161 and change type to ext_lang_type_printers *.
14162 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14163 static. Replace argument arg with extlang, extlang_printers.
14164 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14165 (!HAVE_PYTHON, source_python_script): Delete.
14166 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14167 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14168 (!HAVE_PYTHON, start_type_printers): Delete.
14169 (!HAVE_PYTHON, apply_type_printers): Delete.
14170 (!HAVE_PYTHON, free_type_printers): Delete.
14171 (_initialize_python): Delete call to observer_attach_before_prompt.
14172 (finalize_python): Set/restore active extension language.
14173 (gdbpy_finish_initialization) Renamed from
14174 finish_python_initialization, made static. New arg extlang.
14175 (gdbpy_initialized): New function.
14176 * python/python.h: #include "extension.h". Delete #include
14177 "value.h", "mi/mi-cmds.h".
14178 (extension_language_python): Declare.
14179 (GDBPY_AUTO_FILE_NAME): Delete.
14180 (enum py_bt_status): Moved to extension.h and renamed to
14181 ext_lang_bt_status.
14182 (enum frame_filter_flags): Moved to extension.h.
14183 (enum py_frame_args): Moved to extension.h and renamed to
14184 ext_lang_frame_args.
14185 (finish_python_initialization): Delete.
14186 (eval_python_from_control_command): Delete.
14187 (source_python_script): Delete.
14188 (apply_val_pretty_printer): Delete.
14189 (apply_frame_filter): Delete.
14190 (preserve_python_values): Delete.
14191 (gdbpy_script_language_defn): Delete.
14192 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14193 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14194
14195 * auto-load.c: #include "extension.h".
14196 (GDB_AUTO_FILE_NAME): Delete.
14197 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14198 (script_language_gdb): Delete, moved to extension.c and renamed to
14199 extension_language_gdb.
14200 (source_gdb_script_for_objfile): Delete.
14201 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14202 (loaded_script): Change type of language member to
14203 struct extension_language_defn *.
14204 (init_loaded_scripts_info): Initialize
14205 unsupported_script_warning_printed.
14206 (maybe_add_script): Make static. Change type of language arg to
14207 struct extension_language_defn *.
14208 (clear_section_scripts): Reset unsupported_script_warning_printed.
14209 (auto_load_objfile_script_1): Rewrite to use extension language API.
14210 (auto_load_objfile_script): Make public. Remove support-compiled-in
14211 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14212 (source_section_scripts): Rewrite to use extension language API.
14213 (load_auto_scripts_for_objfile): Rewrite to use
14214 auto_load_scripts_for_objfile.
14215 (collect_matching_scripts_data): Change type of language member to
14216 struct extension_language_defn *.
14217 (auto_load_info_scripts): Change type of language arg to
14218 struct extension_language_defn *.
14219 (unsupported_script_warning_print): New function.
14220 (script_not_found_warning_print): Make static.
14221 (_initialize_auto_load): Rewrite construction of scripts-directory
14222 help.
14223 * auto-load.h (struct objfile): Add forward decl.
14224 (struct script_language): Delete.
14225 (struct auto_load_pspace_info): Add forward decl.
14226 (struct extension_language_defn): Add forward decl.
14227 (maybe_add_script): Delete.
14228 (auto_load_objfile_script): Declare.
14229 (script_not_found_warning_print): Delete.
14230 (auto_load_info_scripts): Update prototype.
14231 (auto_load_gdb_scripts_enabled): Declare.
14232 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14233 auto_load_python_scripts_enabled and made public.
14234 (script_language_python): Delete, moved to python.c.
14235 (gdbpy_script_language_defn): Delete.
14236 (info_auto_load_python_scripts): Update to use
14237 extension_language_python.
14238
14239 * breakpoint.c (condition_command): Replace call to
14240 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14241 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14242 with call to breakpoint_ext_lang_cond_says_stop.
14243 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14244 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14245 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14246 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14247 New arg slang.
14248 (local_setattro): Print name of extension language with existing
14249 stop condition.
14250
14251 * valprint.c (val_print, value_print): Update to call
14252 apply_ext_lang_val_pretty_printer.
14253 * cp-valprint.c (cp_print_value): Update call to
14254 apply_ext_lang_val_pretty_printer.
14255 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14256 (gdbpy_apply_val_pretty_printer): Renamed from
14257 apply_val_pretty_printer. New arg extlang.
14258 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14259
14260 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14261 extension language API.
14262 * cli/cli-script.c (execute_control_command): Update to call
14263 eval_ext_lang_from_control_command.
14264
14265 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14266 enum ext_lang_bt_status values. Update call to
14267 apply_ext_lang_frame_filter.
14268 (mi_cmd_stack_list_locals): Ditto.
14269 (mi_cmd_stack_list_args): Ditto.
14270 (mi_cmd_stack_list_variables): Ditto.
14271 * mi/mi-main.c: Delete #include "python/python-internal.h".
14272 Add #include "extension.h".
14273 (mi_cmd_list_features): Replace reference to python internal variable
14274 gdb_python_initialized with call to ext_lang_initialized_p.
14275
14276 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14277 Update to use enum ext_lang_frame_args. Update to call
14278 apply_ext_lang_frame_filter.
14279 * python/py-framefilter.c (extract_sym): Update to use enum
14280 ext_lang_bt_status.
14281 (extract_value, py_print_type, py_print_value): Ditto.
14282 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14283 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14284 (py_print_frame): Ditto.
14285 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14286 New arg extlang. Update to use enum ext_lang_bt_status.
14287
14288 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14289 finish_python_initialization. Replace with call to
14290 finish_ext_lang_initialization.
14291
14292 * typeprint.c (do_free_global_table): Update to call
14293 free_ext_lang_type_printers.
14294 (create_global_typedef_table): Update to call
14295 start_ext_lang_type_printers.
14296 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14297 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14298 (type_print_options): Change type of global_printers from "void *"
14299 to "struct ext_lang_type_printers *".
14300
14301 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14302 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14303 (gdbpy_preserve_values): Renamed from preserve_python_values.
14304 New arg extlang.
14305 (!HAVE_PYTHON, preserve_python_values): Delete.
14306
14307 * utils.c (quit_flag): Delete, moved to extension.c.
14308 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14309 extension.c.
14310
14311 * eval.c: Delete #include "python/python.h".
14312 * main.c: Delete #include "python/python.h".
14313
14314 * defs.h: Update comment.
14315
14316 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14317
14318 GDB 7.7 released.
14319
14320 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14321
14322 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14323 defined.
14324
14325 2014-02-05 Yao Qi <yao@codesourcery.com>
14326
14327 * remote.c (remote_pass_signals): Remove local 'buf' and use
14328 rs->buf.
14329 (remote_program_signals): Likewise.
14330
14331 2014-02-05 Yao Qi <yao@codesourcery.com>
14332
14333 * ctf.c: Include "inferior.h" and "gdbthread.h".
14334 (CTF_PID): A new macro.
14335 (ctf_open): Call inferior_appeared and add_thread_silent.
14336 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14337 (ctf_thread_alive): New function.
14338 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14339
14340 2014-02-05 Yao Qi <yao@codesourcery.com>
14341
14342 Revert this patch:
14343
14344 2013-05-24 Yao Qi <yao@codesourcery.com>
14345
14346 * tracepoint.c (TFILE_PID): Remove.
14347 (tfile_open): Don't add thread and inferior.
14348 (tfile_close): Don't set 'inferior_ptid'. Don't call
14349 exit_inferior_silent.
14350 (tfile_thread_alive): Remove.
14351 (init_tfile_ops): Don't set field 'to_thread_alive' of
14352 tfile_ops.
14353
14354 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14355
14356 * remote.c (remote_start_remote): Call remote_check_symbols even
14357 if only symbol-file (not file) has been given.
14358
14359 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14360
14361 * gdbarch.sh (skip_entrypoint): New callback.
14362 * gdbarch.c, gdbarch.h: Regenerate.
14363 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14364 * infrun.c (fill_in_stop_func): Likewise.
14365 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14366 (ppc_elfv2_elf_make_msymbol_special): New function.
14367 (ppc_elfv2_skip_entrypoint): Likewise.
14368 (ppc_linux_init_abi): Install them for ELFv2.
14369
14370 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14371
14372 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14373 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14374 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14375 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14376 structures returned in GPRs.
14377
14378 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14379
14380 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14381 offset to the stack parameter list for the ELFv2 ABI.
14382
14383 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14384
14385 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14386 set_gdbarch_convert_from_func_ptr_addr and
14387 set_gdbarch_elf_make_msymbol_special for ELFv1.
14388 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14389 function descriptors on ELFv1.
14390 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14391 set up r12 at function entry.
14392
14393 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14394
14395 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14396 (struct gdbarch_tdep): New member elf_abi.
14397
14398 * rs6000-tdep.c: Include "elf/ppc64.h".
14399 (rs6000_gdbarch_init): Detect ELF ABI version.
14400
14401 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14402
14403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14404 within a register pair holding a DFP 128-bit value on little-endian.
14405 (ppc64_sysv_abi_return_value_base): Likewise.
14406 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14407 (dfp_pseudo_register_write): Likewise.
14408
14409 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14410
14411 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14412 offset on little-endian when passing _Decimal32.
14413 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14414
14415 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14416
14417 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14418 of the overlapped FP register within the VSX register on little-
14419 endian platforms.
14420 (efpr_pseudo_register_write): Likewise.
14421
14422 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14423
14424 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14425 offset on little-endian when passing small structures.
14426
14427 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14428
14429 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14430 (struct ppc64_sysv_argpos): New data structure.
14431 (ppc64_sysv_abi_push_float): Remove.
14432 (ppc64_sysv_abi_push_val): New function.
14433 (ppc64_sysv_abi_push_integer): Likewise.
14434 (ppc64_sysv_abi_push_freg): Likewise.
14435 (ppc64_sysv_abi_push_vreg): Likewise.
14436 (ppc64_sysv_abi_push_param): Likewise.
14437 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14438 (ppc64_sysv_abi_return_value_base): New function.
14439 (ppc64_sysv_abi_return_value): Refactor to use it.
14440
14441 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14442
14443 * NEWS: Document new target powerpc64le-*-linux*.
14444
14445 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14446
14447 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14448 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14449 core dumps.
14450 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14451 register set used in ELF core dumps. Add floating-point register set.
14452
14453 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14454
14455 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14456 dwarf2_to_gdb[] table using symbolic constants. Adjust
14457 penultimate entry from number representing the PC register
14458 to symbolic constant representing the MDR register. Add
14459 constant for the PC register to the end of the table.
14460
14461 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14462
14463 * bsd-kvm.c: Include <sys/param.h>
14464
14465 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14466
14467 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14468
14469 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14470
14471 * ada-lang.h (clear_ada_sym_cache): Delete.
14472
14473 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14474
14475 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14476
14477 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14478
14479 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14480 the sigreturn register save area only if the syscall is
14481 sigreturn.
14482
14483 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14484
14485 * valops.c (value_slice): Minor reformatting.
14486
14487 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14488
14489 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14490
14491 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14492
14493 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14494 New static globals.
14495 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14496 (ada_ignore_descriptive_types_p): New static global.
14497 (find_parallel_type_by_descriptive_type): Return immediately
14498 if ada_ignore_descriptive_types_p is set.
14499 (_initialize_ada_language): Register new commands "maintenance
14500 set ada", "maintenance show ada", "maintenance set ada
14501 ignore-descriptive-types" and "maintenance show ada
14502 ignore-descriptive-types".
14503 * NEWS: Add entry for new "maint ada set/show
14504 ignore-descriptive-types" commands.
14505
14506 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14507
14508 * record-btrace.c (record_btrace_close): Call btrace_teardown
14509 for all threads.
14510
14511 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14512
14513 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14514 "ui-out.h".
14515
14516 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14517
14518 * ada-typeprint (type_is_full_subrange_of_target_type):
14519 New function.
14520 (print_range): Add parameter bounds_prefered_p. If not set,
14521 try printing range types using the name of their base type.
14522 (print_range_type): Add parameter bounds_prefered_p.
14523 Use it in call to print_range.
14524 (print_array_type, ada_print_type): Update calls to print_range
14525 and print_range_type.
14526
14527 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14528
14529 * ada-typeprint.c (print_array_type, print_choices, print_range)
14530 (print_range_bound, print_dynamic_range_bound, print_range_type):
14531 Remove declaration.
14532
14533 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14534
14535 * ada-typeprint.c (print_range): Add missing empty line
14536 after local declaration.
14537
14538 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14539
14540 * ada-valprint.c (print_optional_low_bound): Get index_type's
14541 target type for as long as it is a TYPE_CODE_RANGE.
14542
14543 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14544
14545 * procfs.c (procfs_make_note_section): Remove assertion and
14546 associated comment.
14547
14548 2014-01-24 Yao Qi <yao@codesourcery.com>
14549
14550 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14551 * corelow.c (get_core_siginfo): Likewise.
14552
14553 2014-01-24 Yao Qi <yao@codesourcery.com>
14554
14555 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14556 ULONGEST. Don't check 'len' is negative.
14557 (remote_write_bytes): Change type of 'len' to ULONGEST.
14558
14559 2014-01-23 Tom Tromey <tromey@redhat.com>
14560
14561 PR python/16485:
14562 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14563 Handle exception from frame.block.
14564 (FrameVars.fetch_frame_locals): Likewise.
14565
14566 2014-01-23 Tom Tromey <tromey@redhat.com>
14567
14568 PR python/16487:
14569 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14570 on a NULL pointer. Move "goto error" to correct place.
14571
14572 2014-01-23 Tom Tromey <tromey@redhat.com>
14573
14574 PR python/16491:
14575 * python/py-framefilter.c (apply_frame_filter): Call
14576 ensure_python_env after computing gdbarch.
14577
14578 2014-01-23 Yao Qi <yao@codesourcery.com>
14579
14580 * target.c (raw_memory_xfer_partial): Change argument type
14581 from void * to gdb_byte *.
14582 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14583
14584 2014-01-22 Doug Evans <dje@google.com>
14585
14586 New gdbserver option --debug-format=timestamp.
14587 * NEWS: Mention it.
14588
14589 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14590
14591 * syscalls/s390x-linux.xml: New file.
14592 * syscalls/s390-linux.xml: New file.
14593 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14594 (XML_SYSCALL_FILENAME_S390X): Likewise.
14595 (op_svc): New enum value for SVC opcode.
14596 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14597 (s390_linux_get_syscall_number): New function.
14598 (s390_gdbarch_init): Register '*get_syscall_number' and the
14599 syscall xml file name.
14600 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14601 "s390-linux.xml" and "s390x-linux.xml".
14602 * NEWS: Announce new feature.
14603
14604 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14605
14606 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14607
14608 2014-01-22 Pedro Alves <palves@redhat.com>
14609
14610 * xtensa-config.c: Include defs.h.
14611
14612 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14613
14614 * common/common-utils.h: Add "ARI:" comment beside __func__
14615 reference.
14616
14617 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14618
14619 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14620 documentation a bit.
14621
14622 2014-01-21 Roland McGrath <mcgrathr@google.com>
14623
14624 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14625 * configure: Regenerate.
14626 * aclocal.m4: Regenerate.
14627 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14628 New substituted variables.
14629 (install-strip): New target.
14630 (INSTALL_SCRIPT): New substituted variable.
14631 (FLAGS_TO_PASS): Add it.
14632 (install-only): Use $(INSTALL_SCRIPT) rather than
14633 $(INSTALL_PROGRAM) for gcore.
14634
14635 2014-01-20 Tom Tromey <tromey@redhat.com>
14636
14637 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14638 together.
14639
14640 2014-01-20 Tom Tromey <tromey@redhat.com>
14641
14642 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14643 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14644 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14645 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14646 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14647 (struct cmd_list_element) <flags>: Remove.
14648 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14649 doc_allocated>: New fields.
14650 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14651 bitfields.
14652 * maint.c (maintenance_do_deprecate): Update.
14653 * top.c (execute_command): Update.
14654
14655 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14656
14657 * xtensa-linux-nat.c: Include asm/ptrace.h.
14658
14659 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14660
14661 * Makefile.in (SFILES): Add d-support.c.
14662 (COMMON_OBS): Add d-support.o.
14663 * d-lang.h (d_parse_symbol): Add comment, now defined in
14664 d-support.c.
14665 * d-lang.c (parse_call_convention)
14666 (parse_attributes, parse_function_types)
14667 (parse_function_args, parse_type, parse_identifier)
14668 (call_convention_p, d_parse_symbol): Move functions to ...
14669 * d-support.c: ... New file.
14670
14671 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14672
14673 * d-lang.h (d_parse_symbol): Add declaration.
14674 * d-lang.c (extract_identifiers)
14675 (extract_type_info): Remove functions.
14676 (parse_call_convention, parse_attributes)
14677 (parse_function_types, parse_function_args)
14678 (parse_type, parse_identifier, call_convention_p)
14679 (d_parse_symbol): New functions.
14680 (d_demangle): Use d_parse_symbol to demangle D symbols.
14681
14682 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14683
14684 * d-lang.h (struct builtin_d_type): New data type.
14685 (builtin_d_type): Add declaration.
14686 * d-lang.c (d_language_arch_info, build_d_types)
14687 (builtin_d_type): New functions.
14688 (enum d_primitive_types): New data type.
14689 (d_language_defn): Change c_language_arch_info to
14690 d_language_arch_info.
14691 (d_type_data): New static variable.
14692 (_initialize_d_language): Initialize d_type_data.
14693
14694 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14695
14696 * d-lang.h (d_main_name): Add declaration.
14697 * d-lang.c (d_main_name): New function.
14698 * symtab.c (find_main_name): Add call to d_main_name.
14699
14700 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14701
14702 * d-lang.c (d_language_defn): Change macro_expansion_c to
14703 macro_expansion_no.
14704
14705 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14706
14707 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14708
14709 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14710
14711 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14712 gdb_exception" declaration.
14713 * remote.c (getpkt_or_notif_sane): Likewise.
14714
14715 2014-01-17 Doug Evans <dje@google.com>
14716
14717 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14718 function, contents of dirnames_to_char_ptr_vec_append moved here.
14719 (delim_string_to_char_ptr_vec): New function.
14720 (dirnames_to_char_ptr_vec_append): Rewrite.
14721 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14722
14723 2014-01-17 Doug Evans <dje@google.com>
14724
14725 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14726 and moved here ...
14727 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14728 #include "common-utils.h".
14729 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14730 * common/vec.h (VEC_ASSERT_PASS): Update.
14731 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14732 (MACH_CHECK_ERROR): Update.
14733
14734 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14735
14736 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14737 comments.
14738 * gdbarch.h: Regenerate.
14739
14740 2014-01-16 Tom Tromey <tromey@redhat.com>
14741
14742 * value.c (struct value) <regnum>: Move earlier.
14743
14744 2014-01-16 Tom Tromey <tromey@redhat.com>
14745
14746 * remote.c (extended_remote_create_inferior): Rename from
14747 extended_remote_create_inferior_1. Add "ops" argument. Remove
14748 old implementation.
14749
14750 2014-01-16 Pedro Alves <palves@redhat.com>
14751
14752 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14753 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14754 the backchain.
14755
14756 2014-01-16 Doug Evans <dje@google.com>
14757
14758 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14759
14760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14761
14762 * btrace.h (btrace_thread_flag): New.
14763 (struct btrace_thread_info) <flags>: New.
14764 * record-btrace.c (record_btrace_resume_thread)
14765 (record_btrace_find_thread_to_move, btrace_step_no_history)
14766 (btrace_step_stopped, record_btrace_start_replaying)
14767 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14768 (record_btrace_find_resume_thread): New.
14769 (record_btrace_resume, record_btrace_wait): Extend.
14770 (record_btrace_can_execute_reverse): New.
14771 (record_btrace_open): Fail in non-stop mode.
14772 (record_btrace_set_replay): Split into this, ...
14773 (record_btrace_stop_replaying): ... this, ...
14774 (record_btrace_clear_histories): ... and this.
14775 (init_record_btrace_ops): Init to_can_execute_reverse.
14776 * NEWS: Announce it.
14777
14778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14779
14780 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14781 (forward_target_decr_pc_after_break)
14782 (target_decr_pc_after_break): New.
14783 * target.c (forward_target_decr_pc_after_break)
14784 (target_decr_pc_after_break): New.
14785 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14786 instead of gdbarch_decr_pc_after_break.
14787 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14788 instead of gdbarch_decr_pc_after_break.
14789 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14790 instead of gdbarch_decr_pc_after_break.
14791 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14792 instead of gdbarch_decr_pc_after_break.
14793 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14794 instead of gdbarch_decr_pc_after_break.
14795 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14796 instead of gdbarch_decr_pc_after_break.
14797
14798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14799
14800 * btrace.c: Include regcache.h.
14801 (btrace_add_pc): New.
14802 (btrace_enable): Call btrace_add_pc.
14803 (btrace_is_empty): New.
14804 * btrace.h (btrace_is_empty): New.
14805 * record-btrace.c (require_btrace, record_btrace_info): Call
14806 btrace_is_empty.
14807
14808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14809
14810 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14811 Support delta reads.
14812 (linux_disable_btrace): Change return type.
14813 * common/linux-btrace.h (linux_read_btrace): Change parameters
14814 and return type to allow error reporting. Update users.
14815 (linux_disable_btrace): Change return type. Update users.
14816 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14817 New.
14818 (btrace_error): New.
14819 (btrace_block) <begin>: Comment on BEGIN == 0.
14820 * btrace.c (btrace_compute_ftrace): Start from the end of
14821 the current trace.
14822 (btrace_stitch_trace, btrace_clear_history): New.
14823 (btrace_fetch): Read delta trace, return if replaying.
14824 (btrace_clear): Move clear history code to btrace_clear_history.
14825 (parse_xml_btrace): Throw an error if parsing failed.
14826 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14827 and return type to allow error reporting.
14828 (target_read_btrace): Change parameters and return type to allow
14829 error reporting.
14830 * target.c (target_read_btrace): Update.
14831 * remote.c (remote_read_btrace): Support delta reads. Pass
14832 errors on.
14833 * NEWS: Announce it.
14834
14835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14836
14837 * record.h (record_btrace_frame_unwind)
14838 (record_btrace_tailcall_frame_unwind): New declarations.
14839 * dwarf2-frame: Include record.h
14840 (dwarf2_frame_cfa): Throw an error for btrace frames.
14841 * record-btrace.c: Include hashtab.h.
14842 (btrace_get_bfun_name): New.
14843 (btrace_call_history): Call btrace_get_bfun_name.
14844 (struct btrace_frame_cache): New.
14845 (bfcache): New.
14846 (bfcache_hash, bfcache_eq, bfcache_new): New.
14847 (btrace_get_frame_function): New.
14848 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14849 (record_btrace_frame_this_id): Compute own id.
14850 (record_btrace_frame_prev_register): Provide PC, throw_error
14851 for all other registers.
14852 (record_btrace_frame_sniffer): Detect btrace frames.
14853 (record_btrace_tailcall_frame_sniffer): New.
14854 (record_btrace_frame_dealloc_cache): New.
14855 (record_btrace_frame_unwind): Add new functions.
14856 (record_btrace_tailcall_frame_unwind): New.
14857 (_initialize_record_btrace): Allocate cache.
14858 * btrace.c (btrace_clear): Call reinit_frame_cache.
14859 * NEWS: Announce it.
14860
14861 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14862
14863 * record-btrace.c (record_btrace_set_replay)
14864 (record_btrace_goto_begin, record_btrace_goto_end)
14865 (record_btrace_goto): New.
14866 (init_record_btrace_ops): Initialize them.
14867 * NEWS: Announce it.
14868
14869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14870
14871 * record-btrace.c (record_btrace_find_new_threads)
14872 (record_btrace_thread_alive): New.
14873 (init_record_btrace_ops): Initialize to_find_new_threads and
14874 to_thread_alive.
14875
14876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14877
14878 * record-btrace.c (record_btrace_resume): New.
14879 (record_btrace_wait): New.
14880 (init_record_btrace_ops): Initialize to_wait and to_resume.
14881
14882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14883
14884 * record-btrace.c (record_btrace_xfer_partial)
14885 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14886 (record_btrace_allow_memory_access): New.
14887 (init_record_btrace_ops): Initialize new methods.
14888 * target.c (raw_memory_xfer_partial): Bail out if target reports
14889 that this memory is not available.
14890
14891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14892
14893 * target.h (target_ops) <to_insert_breakpoint>
14894 <to_remove_breakpoint>: Add target_ops parameter.
14895 (forward_target_insert_breakpoint): New.
14896 (forward_target_remove_breakpoint): New.
14897 (memory_remove_breakpoint, memory_insert_breakpoint):
14898 Add target_ops parameter.
14899 * target.c (target_insert_breakpoint): Split into this and ...
14900 (forward_target_insert_breakpoint): ... this.
14901 (target_remove_breakpoint): Split into this and ...
14902 (forward_target_remove_breakpoint): ... this.
14903 (debug_to_insert_breakpoint): Add target_ops parameter.
14904 Call forward_target_insert_breakpoint.
14905 (debug_to_remove_breakpoint): Add target_ops parameter.
14906 Call forward_target_remove_breakpoint.
14907 (update_current_target): Do not inherit or default to_insert_breakpoint
14908 and to_remove_breakpoint.
14909 * corelow.c (ignore): Add target_ops parameter.
14910 * exec.c (ignore): Add target_ops parameter.
14911 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14912 Add target_ops parameter.
14913 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14914 Add target_ops parameter.
14915 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14916 Add target_ops parameter.
14917 * record-full.c (record_full_beneath_to_insert_breakpoint)
14918 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14919 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14920 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14921 (record_full_core_remove_breakpoint): Add target_ops parameter.
14922 Update users.
14923 (record_full_beneath_to_insert_breakpoint_ops)
14924 (record_full_beneath_to_remove_breakpoint_ops)
14925 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14926 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14927 tmp_to_remove_breakpoint_ops,
14928 record_full_beneath_to_insert_breakpoint_ops, and
14929 record_full_beneath_to_remove_breakpoint_ops.
14930 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14931 (m32r_remove_breakpoint): Add target_ops parameter.
14932 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14933 Add target_ops parameter.
14934 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14935 Add target_ops parameter.
14936
14937 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14938 Markus Metzger <markus.t.metzger@intel.com>
14939
14940 * record-btrace.c: Include frame-unwind.h.
14941 (record_btrace_frame_unwind_stop_reason)
14942 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14943 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14944 New.
14945 (init_record_btrace_ops): Install it.
14946
14947 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14948
14949 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14950 get_prev_frame_1.
14951
14952 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14953
14954 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14955 earlier.
14956
14957 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14958
14959 * frame-unwind.c: Include target.h.
14960 (frame_unwind_try_unwinder): New function with code from ...
14961 (frame_unwind_find_by_frame): ... here. New variable
14962 unwinder_from_target, call also target_get_unwinder)
14963 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14964 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14965 * target.h (struct target_ops): New fields to_get_unwinder and
14966 to_get_tailcall_unwinder.
14967 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14968
14969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14970
14971 * record-btrace.c (record_btrace_fetch_registers)
14972 (record_btrace_store_registers)
14973 (record_btrace_to_prepare_to_store): New.
14974 (init_record_btrace_ops): Add the above.
14975
14976 2014-01-16 Tom Tromey <tromey@redhat.com>
14977
14978 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14979 * target.h (struct target_ops) <to_prepare_to_store>: Add
14980 argument.
14981 (target_prepare_to_store): Add argument.
14982 * target.c (debug_to_prepare_to_store): Add argument.
14983 (update_current_target): Update.
14984 * remote.c (remote_prepare_to_store): Add 'self' argument.
14985 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14986 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14987 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14988 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14989 argument.
14990 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14991 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14992 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14993 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14994 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14995
14996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14997
14998 * btrace.h (replay) <replay>: New.
14999 (btrace_is_replaying): New.
15000 * btrace.c (btrace_clear): Free replay iterator.
15001 (btrace_is_replaying): New.
15002 * record-btrace.c (record_btrace_is_replaying): New.
15003 (record_btrace_info): Print insn number if replaying.
15004 (record_btrace_insn_history): Start at replay position.
15005 (record_btrace_call_history): Start at replay position.
15006 (init_record_btrace_ops): Init to_record_is_replaying.
15007
15008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15009
15010 * record-btrace.c (record_btrace_insn_history_range): Include
15011 end.
15012 (record_btrace_insn_history_from): Adjust range.
15013 (record_btrace_call_history_range): Include
15014 end.
15015 (record_btrace_call_history_from): Adjust range.
15016 * NEWS: Announce changes.
15017
15018 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15019
15020 * record.h (enum record_print_flag)
15021 <record_print_indent_calls>: New.
15022 * record.c (get_call_history_modifiers): Recognize /c modifier.
15023 (_initialize_record): Document /c modifier.
15024 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15025 Reorder fields. Optionally indent the function name. Update
15026 all users.
15027 * NEWS: Announce changes.
15028
15029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15030
15031 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15032
15033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15034
15035 * btrace.c (ftrace_new_function): Start counting at one.
15036 * record-btrace.c (record_btrace_info): Adjust number of calls
15037 and insns.
15038 * NEWS: Announce it.
15039
15040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15041
15042 * record-btrace.c (btrace_call_history_insn_range): Print
15043 insn range as [begin, end].
15044
15045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15046
15047 * btrace.h (struct btrace_func_link): New.
15048 (enum btrace_function_flag): New.
15049 (struct btrace_inst): Rename to ...
15050 (struct btrace_insn): ...this. Update all users.
15051 (struct btrace_func) <ibegin, iend>: Remove.
15052 (struct btrace_func_link): New.
15053 (struct btrace_func): Rename to ...
15054 (struct btrace_function): ...this. Update all users.
15055 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15056 (number, level, flags>: New.
15057 (struct btrace_insn_iterator): Rename to ...
15058 (struct btrace_insn_history): ...this.
15059 Update all users.
15060 (struct btrace_insn_iterator, btrace_call_iterator): New.
15061 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15062 (struct btrace_target_info) <begin, end, level>
15063 <insn_history, call_history>: New.
15064 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15065 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15066 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15067 (btrace_call_number, btrace_call_begin, btrace_call_end)
15068 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15069 (btrace_find_function_by_number, btrace_set_insn_history)
15070 (btrace_set_call_history): New.
15071 * btrace.c (btrace_init_insn_iterator)
15072 (btrace_init_func_iterator, compute_itrace): Remove.
15073 (ftrace_print_function_name, ftrace_print_filename)
15074 (ftrace_skip_file): Change
15075 parameter to const.
15076 (ftrace_init_func): Remove.
15077 (ftrace_debug): Use new btrace_function fields.
15078 (ftrace_function_switched): Also consider gaining and
15079 losing symbol information).
15080 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15081 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15082 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15083 New.
15084 (ftrace_new_function): Move. Remove debug print.
15085 (ftrace_update_lines, ftrace_update_insns): New.
15086 (ftrace_update_function): Check for call, ret, and jump.
15087 (compute_ftrace): Renamed to ...
15088 (btrace_compute_ftrace): ...this. Rewritten to compute call
15089 stack.
15090 (btrace_fetch, btrace_clear): Updated.
15091 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15092 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15093 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15094 (btrace_call_number, btrace_call_begin, btrace_call_end)
15095 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15096 (btrace_find_function_by_number, btrace_set_insn_history)
15097 (btrace_set_call_history): New.
15098 * record-btrace.c (require_btrace): Use new btrace thread
15099 info fields.
15100 (record_btrace_info, btrace_insn_history)
15101 (record_btrace_insn_history, record_btrace_insn_history_range):
15102 Use new btrace thread info fields and new iterator.
15103 (btrace_func_history_src_line): Rename to ...
15104 (btrace_call_history_src_line): ...this. Use new btrace
15105 thread info fields.
15106 (btrace_func_history): Rename to ...
15107 (btrace_call_history): ...this. Use new btrace thread info
15108 fields and new iterator.
15109 (record_btrace_call_history, record_btrace_call_history_range):
15110 Use new btrace thread info fields and new iterator.
15111
15112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15113
15114 * frame.h (frame_id_build_unavailable_stack_special): New.
15115 * frame.c (frame_id_build_unavailable_stack_special): New.
15116
15117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15118
15119 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15120 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15121 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15122 to gdbarch.
15123 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15124 (i386_insn_is_jump, i386_jmp_p): New.
15125 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15126 insn_is_jump to gdbarch.
15127 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15128 * gdbarch.h: Regenerated.
15129 * gdbarch.c: Regenerated.
15130 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15131 (default_insn_is_jump): New.
15132 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15133 (default_insn_is_jump): New.
15134
15135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15136
15137 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15138 Change to ...
15139 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15140 (btrace_read_type) <btrace_read_new>: Change to ...
15141 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15142
15143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15144
15145 * common/linux-btrace.c (linux_read_btrace): Free trace from
15146 previous iteration.
15147
15148 2014-01-15 Doug Evans <dje@google.com>
15149
15150 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15151 uint32_t.
15152
15153 2014-01-15 Tom Tromey <tromey@redhat.com>
15154
15155 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15156 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15157 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15158 (set_objfile_main_name): New function.
15159 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15160 language_of_main>: New fields.
15161 (set_objfile_main_name): Declare.
15162 * symtab.c (find_main_name): Loop over objfiles to find the main
15163 name and language.
15164 (set_main_name): Now static.
15165 (get_main_info): Add comment.
15166 * symtab.h (set_main_name): Don't declare.
15167
15168 2014-01-15 Tom Tromey <tromey@redhat.com>
15169
15170 * symtab.c (main_progspace_key): New global.
15171 (struct main_info): New.
15172 (name_of_main, language_of_main): Remove.
15173 (get_main_info, main_info_cleanup): New function.
15174 (set_main_name, main_name, main_language): Use get_main_info.
15175 (_initialize_symtab): Initialize main_progspace_key.
15176
15177 2014-01-15 Tom Tromey <tromey@redhat.com>
15178
15179 * dbxread.c (process_one_symbol): Update.
15180 * dwarf2read.c (read_partial_die): Update.
15181 * symfile.c (set_initial_language): Call main_language.
15182 * symtab.c (language_of_main): Now static.
15183 (set_main_name): Add 'lang' parameter.
15184 (find_main_name): Update.
15185 (main_language): New function.
15186 (symtab_observer_executable_changed): Update.
15187 * symtab.h (set_main_name): Update.
15188 (language_of_main): Remove.
15189 (main_language): Declare.
15190
15191 2014-01-15 Tom Tromey <tromey@redhat.com>
15192
15193 * symfile.c (init_entry_point_info): Use new "initialized" field.
15194 Update.
15195 * objfiles.h (struct entry_point) <initialized>: New field.
15196 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15197 (struct objfile) <ei>: ...here. Remove.
15198 * objfiles.c (entry_point_address_query): Update.
15199
15200 2014-01-15 Tom Tromey <tromey@redhat.com>
15201
15202 * objfiles.c (entry_point_address_query): Relocate entry point
15203 address.
15204 (objfile_relocate1): Do not relocate entry point address.
15205 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15206 <the_bfd_section_index>: New field.
15207 * symfile.c (init_entry_point_info): Find the entry point's
15208 section.
15209
15210 2014-01-15 Tom Tromey <tromey@redhat.com>
15211
15212 * solib-frv.c (enable_break): Use entry_point_address_query.
15213
15214 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15215
15216 * NEWS: Add note on improved process record-replay on
15217 arm*-linux* targets.
15218
15219 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15220
15221 * arm-tdep.c (enum arm_record_result): New enum.
15222 (arm_record_unsupported_insn): New function.
15223 (arm_record_coproc_data_proc): Removed.
15224 (thumb2_record_ld_st_multiple): New function.
15225 (thumb2_record_ld_st_dual_ex_tbb): New function.
15226 (thumb2_record_data_proc_sreg_mimm): New function.
15227 (thumb2_record_ps_dest_generic): New function.
15228 (thumb2_record_branch_misc_cntrl): New function.
15229 (thumb2_record_str_single_data): New function.
15230 (thumb2_record_ld_mem_hints): New function.
15231 (thumb2_record_ld_word): New function.
15232 (thumb2_record_lmul_lmla_div): New function.
15233 (thumb2_record_decode_insn_handler): New function.
15234 (decode_insn): Add thumb32 instruction handlers.
15235
15236 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15237
15238 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15239 (struct arm_linux_record_tdep): Declare.
15240 (arm_canonicalize_syscall): New function.
15241 (arm_all_but_pc_registers_record): New function.
15242 (arm_linux_syscall_record): New function.
15243 (arm_linux_init_abi): Add syscall recording constructs.
15244 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15245 decoding. (arm_record_coproc_data_proc): Update arm syscall
15246 decoding.
15247 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15248 <arm_syscall_record>: New field.
15249 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15250 gdb_target_obs.
15251
15252 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15253
15254 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15255 register for push instruction recording.
15256
15257 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15258
15259 * arm-tdep.c (thumb_record_misc): Update to correct logical
15260 error while recording ldm, ldmia and pop instructions.
15261
15262 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15263
15264 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15265
15266 2014-01-15 Pedro Alves <palves@redhat.com>
15267
15268 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15269 (go32_resume, go32_fetch_registers, store_register)
15270 (go32_store_registers, go32_prepare_to_store)
15271 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15272 (go32_create_inferior, go32_can_run, go32_terminal_init)
15273 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15274 declarations.
15275
15276 2014-01-15 Tom Tromey <tromey@redhat.com>
15277
15278 * target.h (async_callback_ftype): New typedef.
15279 (struct target_ops) <to_async>: Use it.
15280
15281 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15282
15283 * python/py-value.c (get_field_type): Remove unnecessary curly
15284 braces for single-statement if block.
15285
15286 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15287
15288 * python/py-type.c (convert_field): Add missing empty line
15289 after declarations.
15290
15291 2014-01-14 Doug Evans <dje@google.com>
15292
15293 * symfile.h (expand_symtabs_matching): Renamed from
15294 expand_partial_symbol_names. Update prototype.
15295 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15296 * symfile.c (expand_symtabs_matching): Renamed from
15297 expand_partial_symbol_names. New args file_matcher, kind.
15298 Rename arg fun to symbol_matcher.
15299 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15300 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15301 ada_expand_partial_symbol_name.
15302 (ada_make_symbol_completion_list): Update to call
15303 expand_symtabs_matching.
15304 (ada_add_global_exceptions): Call expand_symtabs_matching.
15305 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15306 call map_symbol_filenames.
15307 * symtab.c (sources_info): Update to call map_symbol_filenames.
15308 (search_symbols): Call expand_symtabs_matching.
15309 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15310 (default_make_symbol_completion_list_break_on): Update to call
15311 expand_symtabs_matching.
15312 (make_source_files_completion_list): Update to call
15313 map_symbol_filenames.
15314
15315 2014-01-14 Doug Evans <dje@google.com>
15316
15317 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15318 (expand_symtabs_symbol_matcher_ftype): New typedef.
15319 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15320 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15321 * symfile.c (expand_partial_symbol_names): Update to use
15322 expand_symtabs_symbol_matcher_ftype.
15323 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15324 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15325 Arg name_matcher renamed to symbol_matcher.
15326 * psymtab.c (recursively_search_psymtabs): Update to use
15327 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15328 sym_matcher.
15329 (expand_symtabs_matching_via_partial): Update to use
15330 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15331 Arg name_matcher renamed to symbol_matcher.
15332
15333 2014-01-14 Doug Evans <dje@google.com>
15334
15335 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15336 (map_partial_symbol_filenames): Ditto.
15337 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15338 (map_partial_symbol_filenames): Ditto.
15339 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15340 (map_partial_symbol_filenames): Ditto.
15341 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15342 (map_partial_symbol_filenames): Ditto.
15343 * symtab.c: Delete #include "psymtab.h".
15344
15345 2014-01-14 Pedro Alves <palves@redhat.com>
15346 Tom Tromey <tromey@redhat.com>
15347
15348 * infrun.c (use_displaced_stepping): Use find_record_target
15349 instead of RECORD_IS_USED.
15350 (adjust_pc_after_break): Use record_full_is_used instead of
15351 RECORD_IS_USED.
15352 * record-btrace.c (record_btrace_open): Call record_preopen
15353 instead of checking RECORD_IS_USED.
15354 * record-full.c (record_full_shortname)
15355 (record_full_core_shortname): New globals.
15356 (record_full_is_used): New function.
15357 (find_full_open): Call record_preopen instead of checking
15358 RECORD_IS_USED.
15359 (init_record_full_ops): Set the target's shortname to
15360 record_full_shortname.
15361 (init_record_full_core_ops): Set the target's shortname to
15362 record_full_core_shortname.
15363 * record-full.h (record_full_is_used): Declare.
15364 * record.c (find_record_target): Make extern.
15365 (record_preopen): New function.
15366 * record.h (RECORD_IS_USED): Delete macro.
15367 (find_record_target, record_preopen): Declare functions.
15368
15369 2014-01-14 Yao Qi <yao@codesourcery.com>
15370
15371 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15372 'len''s type to ULONGEST.
15373 (core_xfer_shared_libraries_aix): Likewise.
15374 * gdbarch.c, gdbarch.h: Regenerated.
15375 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15376 Change type of 'len' to ULONGEST.
15377 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15378 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15379
15380 2014-01-14 Yao Qi <yao@codesourcery.com>
15381
15382 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15383 type of 'len' to ULONGEST.
15384 (linux_xfer_osdata_processgroups): Likewise.
15385 (linux_xfer_osdata_threads): Likewise.
15386 (linux_xfer_osdata_fds): Likewise.
15387 (linux_xfer_osdata_isockets): Likewise.
15388 (linux_xfer_osdata_shm): Likewise.
15389 (linux_xfer_osdata_sem): Likewise.
15390 (linux_xfer_osdata_msg): Likewise.
15391 (linux_common_xfer_osdata): Likewise.
15392 (struct osdata_type) <getter>: Likewise.
15393 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15394 the declaration.
15395
15396 2014-01-14 Yao Qi <yao@codesourcery.com>
15397
15398 * target.h (target_xfer_partial_ftype): Update.
15399 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15400 ULONGEST.
15401 * aix-thread.c (aix_thread_xfer_partial): Change type of
15402 argument 'len' to ULONGEST.
15403 * auxv.c (procfs_xfer_auxv): Likewise.
15404 (ld_so_xfer_auxv): Likewise.
15405 (memory_xfer_auxv): Likewise.
15406 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15407 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15408 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15409 * corelow.c (core_xfer_partial): Likewise.
15410 * ctf.c (ctf_xfer_partial): Likewise.
15411 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15412 '%u'.
15413 (darwin_read_dyld_info): Likewise.
15414 (darwin_xfer_partial): Likewise.
15415 * exec.c (section_table_xfer_memory_partial): Likewise.
15416 (exec_xfer_partial): Likewise.
15417 * exec.h (section_table_xfer_memory_partial): Update
15418 declaration.
15419 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15420 instead of plongest.
15421 (gnu_xfer_partial): Likewise.
15422 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15423 (ia64_hpux_xfer_solib_got): Likewise.
15424 (ia64_hpux_xfer_partial): Likewise.
15425 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15426 * inf-ptrace.c (inf_ptrace_xfer_partial):
15427 * inf-ttrace.c (inf_ttrace_xfer_partial):
15428 * linux-nat.c (linux_xfer_siginfo): Likewise.
15429 (linux_nat_xfer_partial): Likewise.
15430 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15431 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15432 * monitor.c (monitor_xfer_memory): Likewise.
15433 (monitor_xfer_partial): Likewise.
15434 * procfs.c (procfs_xfer_partial): Likewise.
15435 * record-full.c (record_full_xfer_partial): Likewise.
15436 (record_full_core_xfer_partial): Likewise.
15437 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15438 instead of plongest.
15439 (gdbsim_xfer_partial): Likewise.
15440 * remote.c (remote_xfer_partial): Likewise.
15441 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15442 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15443 declaration.
15444 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15445 (rs6000_xfer_shared_libraries): Likewise.
15446 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15447 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15448 (sparc_xfer_partial): Likewise.
15449 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15450 (spu_xfer_partial): Likewise.
15451 * spu-multiarch.c (spu_xfer_partial): Likewise.
15452 * target.c (target_read_live_memory): Likewise.
15453 (memory_xfer_live_readonly_partial): Likewise.
15454 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15455 (target_xfer_partial, default_xfer_partial): Likewise.
15456 (current_xfer_partial): Likewise.
15457 * tracepoint.c (tfile_xfer_partial): Likewise.
15458 * windows-nat.c (windows_xfer_memory): Likewise. Call
15459 pulongest instead of plongest.
15460 (windows_xfer_partial): Likewise.
15461 (windows_xfer_shared_libraries): Likewise.
15462
15463 2014-01-14 Yao Qi <yao@codesourcery.com>
15464
15465 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15466 target_xfer_partial_ftype.
15467
15468 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15469
15470 PR python/15464
15471 PR python/16113
15472 * valops.c (value_struct_elt_bitpos): New function
15473 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15474 object to 'None' if the field name is an empty string ("").
15475 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15476 attribute to look for a field when 'name' is 'None'.
15477 (get_field_type): New function
15478
15479 2014-01-13 Doug Evans <dje@google.com>
15480
15481 PR symtab/16426
15482 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15483 (try_open_dwop_file): Ditto.
15484 * gdb_bfd.c: #include "vec.h".
15485 (bfdp): New typedef.
15486 (struct gdb_bfd_data): New member included_bfds.
15487 (gdb_bfd_unref): Unref all included bfds.
15488 (gdb_bfd_record_inclusion): New function.
15489 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15490
15491 2014-01-13 Tom Tromey <tromey@redhat.com>
15492
15493 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15494
15495 2014-01-13 Tom Tromey <tromey@redhat.com>
15496
15497 * defs.h (use_windows): Remove.
15498 * gdb.c (main): Update.
15499 * main.c (captured_main, gdb_main): Update.
15500 * main.h (struct captured_main_args) <use_windows>: Remove.
15501 * top.c (use_windows): Remove.
15502
15503 2014-01-13 Tom Tromey <tromey@redhat.com>
15504
15505 * defs.h (deprecated_flush_hook): Remove.
15506
15507 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15508
15509 PR threads/16216
15510 * linux-thread-db.c (try_thread_db_load): Add parameter
15511 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15512 (try_thread_db_load_from_pdir_1): Move it there from here.
15513 (try_thread_db_load_from_sdir): Update caller.
15514 (try_thread_db_load_from_dir): Move it there from here.
15515
15516 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15517
15518 * regformats/regdat.sh: Always rewrite the register file.
15519
15520 2014-01-13 Pedro Alves <palves@redhat.com>
15521
15522 * Makefile.in (CHECK_HEADERS): New variable.
15523 (check-headers:): New rule.
15524
15525 2014-01-13 Tom Tromey <tromey@redhat.com>
15526
15527 * cli/cli-setshow.c (do_set_command): Update.
15528 * defs.h (deprecated_set_hook): Remove.
15529 * top.c (deprecated_set_hook): Remove.
15530
15531 2014-01-13 Pedro Alves <palves@redhat.com>
15532
15533 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15534 the tracepoint if the PC is a pseudo-register.
15535
15536 2014-01-13 Tom Tromey <tromey@redhat.com>
15537
15538 * defs.h (XCALLOC): Remove.
15539 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15540 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15541 * dwarf2loc.c (allocate_piece_closure): Likewise.
15542 * elfread.c (elf_symfile_segments): Likewise.
15543 (elf_symfile_segments): Likewise.
15544 * gdbtypes.c (copy_type_recursive): Likewise.
15545 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15546 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15547 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15548 XCALLOC.
15549 * mt-tdep.c (mt_gdbarch_init): Likewise.
15550 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15551 XCALLOC.
15552 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15553 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15554 * registry.c (registry_alloc_data): Likewise.
15555 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15556 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15557 * serial.c (serial_fdopen_ops): Likewise.
15558 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15559 XCALLOC.
15560 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15561 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15562 not XCALLOC.
15563
15564 2014-01-13 Tom Tromey <tromey@redhat.com>
15565
15566 * defs.h (XMALLOC): Remove.
15567 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15568 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15569 * cli-out.c (struct ui_out *): Likewise.
15570 * cli/cli-dump.c (add_dump_command): Likewise.
15571 (add_dump_command): Likewise.
15572 * complaints.c (get_complaints): Likewise.
15573 (find_complaint): Likewise.
15574 * dwarf2-frame.c (execute_cfa_program): Likewise.
15575 * dwarf2read.c (abbrev_table_read_table): Likewise.
15576 * gdbarch.sh: Likewise.
15577 * gdbarch.c: Rebuild.
15578 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15579 * interps.c (interp_new): Likewise.
15580 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15581 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15582 * mi/mi-console.c (mi_console_file_new): Likewise.
15583 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15584 * mi/mi-out.c (mi_out_new): Likewise.
15585 * mi/mi-parse.c (mi_parse): Likewise.
15586 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15587 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15588 * observer.c (xalloc_observer_list_node): Likewise.
15589 * regcache.c (regcache_xmalloc_1): Likewise.
15590 * reggroups.c (reggroup_new): Likewise.
15591 (_initialize_reggroup): Likewise.
15592 * registry.c (register_data_with_cleanup): Likewise.
15593 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15594 * ser-base.c (serial_ttystate): Likewise.
15595 * ser-mingw.c (make_pipe_state): Likewise.
15596 * ser-pipe.c (pipe_open): Likewise.
15597 * serial.c (serial_open): Likewise.
15598 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15599 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15600 (tui_alloc_win_info): Likewise.
15601 (tui_add_content_elements): Likewise.
15602 * tui/tui-file.c (tui_file_new): Likewise.
15603 * tui/tui-out.c (tui_out_new): Likewise.
15604 * ui-file.c (mem_file_new): Likewise.
15605 * ui-out.c (push_level): Likewise.
15606 (make_cleanup_ui_out_end): Likewise.
15607 (append_header_to_list): Likewise.
15608 (ui_out_new): Likewise.
15609 * user-regs.c (user_reg_add_builtin): Likewise.
15610
15611 2014-01-13 Tom Tromey <tromey@redhat.com>
15612
15613 * defs.h (XZALLOC): Remove.
15614 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15615 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15616 (get_ada_tasks_inferior_data): Likewise.
15617 * auto-load.c (get_auto_load_pspace_data): Likewise.
15618 * auxv.c (get_auxv_inferior_data): Likewise.
15619 * bfd-target.c (target_bfd_reopen): Likewise.
15620 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15621 (deprecated_insert_raw_breakpoint): Likewise.
15622 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15623 * corelow.c (core_open): Likewise.
15624 * darwin-nat.c (darwin_check_new_threads): Likewise.
15625 (darwin_attach_pid): Likewise.
15626 * dummy-frame.c (dummy_frame_push): Likewise.
15627 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15628 * dwarf2loc.c (allocate_piece_closure): Likewise.
15629 * elfread.c (elf_symfile_segments): Likewise.
15630 * eval.c (ptrmath_type_p): Likewise.
15631 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15632 * gdbtypes.c (alloc_type_arch): Likewise.
15633 (alloc_type_instance): Likewise.
15634 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15635 * inf-child.c (inf_child_can_use_agent): Likewise.
15636 * inflow.c (get_inflow_inferior_data): Likewise.
15637 * infrun.c (save_infcall_suspend_state): Likewise.
15638 * jit.c (jit_reader_load): Likewise.
15639 (get_jit_objfile_data): Likewise.
15640 (get_jit_program_space_data): Likewise.
15641 (jit_object_open_impl): Likewise.
15642 (jit_symtab_open_impl): Likewise.
15643 (jit_block_open_impl): Likewise.
15644 (jit_frame_sniffer): Likewise.
15645 * linux-fork.c (add_fork): Likewise.
15646 * maint.c (make_command_stats_cleanup): Likewise.
15647 * objfiles.c (get_objfile_pspace_data): Likewise.
15648 * opencl-lang.c (struct lval_closure): Likewise.
15649 * osdata.c (osdata_start_osdata): Likewise.
15650 * progspace.c (new_address_space): Likewise.
15651 (add_program_space): Likewise.
15652 * remote-sim.c (get_sim_inferior_data): Likewise.
15653 * sh-tdep.c (sh_gdbarch_init): Likewise.
15654 * skip.c (Ignore): Likewise.
15655 (skip_delete_command): Likewise.
15656 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15657 (library_list_start_library): Likewise.
15658 (solib_aix_current_sos): Likewise.
15659 * solib-darwin.c (get_darwin_info): Likewise.
15660 (darwin_current_sos): Likewise.
15661 * solib-dsbt.c (get_dsbt_info): Likewise.
15662 * solib-ia64-hpux.c (new_so_list): Likewise.
15663 (ia64_hpux_get_solib_linkage_addr): Likewise.
15664 * solib-spu.c (append_ocl_sos): Likewise.
15665 (spu_current_sos): Likewise.
15666 * solib-svr4.c (get_svr4_info): Likewise.
15667 (svr4_keep_data_in_core): Likewise.
15668 (library_list_start_library): Likewise.
15669 (svr4_default_sos): Likewise.
15670 (svr4_read_so_list): Likewise.
15671 * solib-target.c (library_list_start_library): Likewise.
15672 (solib_target_current_sos): Likewise.
15673 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15674 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15675 * symfile.c (default_symfile_segments): Likewise.
15676 * target-descriptions.c (tdesc_data_init): Likewise.
15677 (tdesc_create_reg): Likewise.
15678 (struct tdesc_type *): Likewise.
15679 (tdesc_create_vector): Likewise.
15680 (tdesc_set_struct_size): Likewise.
15681 (struct tdesc_type *): Likewise.
15682 (tdesc_free_feature): Likewise.
15683 (tdesc_create_feature): Likewise.
15684 * windows-nat.c (windows_add_thread): Likewise.
15685 (windows_make_so): Likewise.
15686 * xml-support.c (gdb_xml_body_text): Likewise.
15687 (gdb_xml_create_parser_and_cleanup): Likewise.
15688 (xml_process_xincludes): Likewise.
15689 * xml-syscall.c (allocate_syscalls_info): Likewise.
15690 (syscall_create_syscall_desc): Likewise.
15691
15692 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15693
15694 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15695 function, with code from i386_stap_parse_special_token.
15696 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15697 (i386_stap_parse_special_token): Move code to the two functions
15698 above; simplify it.
15699
15700 2014-01-09 Pedro Alves <palves@redhat.com>
15701 Hui Zhu <hui@codesourcery.com>
15702
15703 PR gdb/16101
15704 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15705 bp_err_string. Don't mark the location shlib_disabled if the
15706 error thrown wasn't a generic or memory error. Catch errors
15707 thrown while inserting breakpoints in overlayed code. Output
15708 error message of software breakpoints.
15709 * remote.c (remote_insert_breakpoint): If this breakpoint has
15710 target-side commands but this stub doesn't support Z0 packets,
15711 throw NOT_SUPPORTED_ERROR error.
15712 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15713 * target.h (target_insert_breakpoint): Extend comment.
15714 (target_insert_hw_breakpoint): Add comment.
15715
15716 2014-01-08 Pedro Alves <palves@redhat.com>
15717
15718 * remote.c (remote_add_thread): Add threads silently if starting
15719 up.
15720 (remote_notice_new_inferior): If in all-stop, and starting up,
15721 don't call notice_new_inferior.
15722 (get_current_thread): New function, factored out from ...
15723 (add_current_inferior_and_thread): ... this. Adjust.
15724 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15725 found any thread, then select the remote's current thread as GDB's
15726 current thread too.
15727
15728 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15729
15730 * NEWS: Create a new section for the next release branch.
15731 Rename the section of the current branch, now that it has
15732 been cut.
15733
15734 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15735
15736 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15737 * version.in: Bump version to 7.7.50.DATE-cvs.
15738
15739 2014-01-08 Yao Qi <yao@codesourcery.com>
15740
15741 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15742 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15743 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15744
15745 2014-01-08 Yao Qi <yao@codesourcery.com>
15746
15747 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15748 return value of bfd_get_filename to symbol_file_add_from_bfd.
15749
15750 2014-01-08 Pierre Muller <muller@sourceware.org>
15751
15752 Fix PR16201.
15753 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15754 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15755 to prim_record_mininal_symbol_and_info.
15756 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15757 in call to prim_record_minimal_symbol_and_info.
15758 (read_pe_exported_syms): Set index field of section_data.
15759
15760 2014-01-07 Andrew Pinski <apinski@cavium.com>
15761
15762 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15763 * features/aarch64.c: Regenerate.
15764
15765 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15766
15767 * target.c (return_null): Define.
15768 (update_current_target): Use it instead of return_zero for
15769 functions that return a pointer.
15770
15771 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15772
15773 * source.c (add_path): Fix check for duplicated paths in the previously
15774 included paths.
15775
15776 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15777
15778 * ada-lang.c: Remove duplicated include statements.
15779 * alphabsd-nat.c: Ditto.
15780 * amd64-darwin-tdep.c: Ditto.
15781 * amd64fbsd-nat.c: Ditto.
15782 * auto-load.c: Ditto.
15783 * ax-gdb.c: Ditto.
15784 * breakpoint.c: Ditto.
15785 * dbxread.c: Ditto.
15786 * fork-child.c: Ditto.
15787 * gdb_usleep.c: Ditto.
15788 * i386-darwin-tdep.c: Ditto.
15789 * i386fbsd-nat.c: Ditto.
15790 * infcmd.c: Ditto.
15791 * inferior.c: Ditto.
15792 * jv-lang.c: Ditto.
15793 * linux-nat.c: Ditto.
15794 * linux-tdep.c: Ditto.
15795 * m68kbsd-nat.c: Ditto.
15796 * m68klinux-nat.c: Ditto.
15797 * microblaze-tdep.c: Ditto.
15798 * mips-linux-tdep.c: Ditto.
15799 * mn10300-tdep.c: Ditto.
15800 * nto-tdep.c: Ditto.
15801 * opencl-lang.c: Ditto.
15802 * osdata.c: Ditto.
15803 * printcmd.c: Ditto.
15804 * regcache.c: Ditto.
15805 * remote-m32r-sdi.c: Ditto.
15806 * remote.c: Ditto.
15807 * symfile.c: Ditto.
15808 * symtab.c: Ditto.
15809 * tilegx-linux-nat.c: Ditto.
15810 * tilegx-tdep.c: Ditto.
15811 * tracepoint.c: Ditto.
15812 * valops.c: Ditto.
15813 * vaxbsd-nat.c: Ditto.
15814 * windows-nat.c: Ditto.
15815 * xtensa-tdep.c: Ditto.
15816
15817 2014-01-07 Yao Qi <yao@codesourcery.com>
15818
15819 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15820
15821 2014-01-07 Yao Qi <yao@codesourcery.com>
15822 Joel Brobecker <brobecker@adacore.com>
15823
15824 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15825 (pdc_write_regs): Likewise.
15826 (fetch_regs_kernel_thread): Likewise.
15827 (store_regs_kernel_thread): Likewise.
15828
15829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15830
15831 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15832 tagged type objects to their actual type.
15833
15834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15835
15836 * ada-valprint.c (print_field_values): Add "language" parameter.
15837 Update calls to print_field_values and print_variant_part.
15838 Pass new parameter "language" in call to val_print instead
15839 of "current_language". Replace call to ada_val_print by call
15840 to val_print.
15841 (print_variant_part): Add "language" parameter.
15842 (ada_val_print_struct_union): Update call to print_field_values.
15843
15844 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15845
15846 * ada-valprint.c (ui_memcpy): Delete.
15847 (ada_print_floating): Update documentation. Add empty line
15848 between between function documentation and implementation.
15849 Delete variable "buffer". Use ui_file_xstrdup in place of
15850 ui_file_put. Minor adjustments following this change.
15851
15852 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15853
15854 * ada-valprint.c (ada_val_print_string): New function,
15855 extracted from ada_val_print_array.
15856 (ada_val_print_array): Replace extracted code by call
15857 to ada_val_print_string followed by a return. Move
15858 "else" branch to the function's top block.
15859
15860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15861
15862 * ada-valprint.c (ada_val_print_array): Move implementation
15863 down. Rename parameter "offset" and "val" into "offset_aligned"
15864 and "original_value" respectively. Add parameter "offset".
15865
15866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15867
15868 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15869 re-organizing the code. Change the "???" message printed
15870 when target type is a TYPE_CODE_UNDEF into
15871 "<ref to undefined type>".
15872
15873 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15874
15875 * ada-valprint.c (print_record): Delete, implementation inlined...
15876 (ada_val_print_struct_union): ... here. Remove call to
15877 ada_check_typedef in inlined implementation.
15878
15879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15880
15881 * ada-valprint.c (ada_val_print_gnat_array): New function,
15882 extracted from ada_val_print_1;
15883 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15884 (ada_val_print_flt, ada_val_print_struct_union)
15885 (ada_val_print_ref): Likewise.
15886 (ada_val_print_1): Delete variables i and elttype.
15887 Replace extracted-out code by call to corresponding
15888 new functions.
15889
15890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15891
15892 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15893
15894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15895
15896 * ada-valprint.c (ada_val_print_1): Replace calls to
15897 ada_val_print_1 by calls to val_print.
15898
15899 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15900
15901 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15902 Update calls to self accordingly. Replace calls to c_val_print
15903 by calls to val_print.
15904
15905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15906
15907 * ada-valprint.c (print_record): Delete declaration.
15908 (adjust_type_signedness, ada_val_print_1): Likewise.
15909 (ada_val_print): Move function implementation down.
15910 (print_variant_part, print_field_values, print_record):
15911 Move function implementation up.
15912
15913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15914
15915 * python/py-type.c (typy_get_name): New function.
15916 (type_object_getset): Add entry for attribute "name".
15917 * NEWS: Add entry mentioning this new attribute.
15918
15919 2014-01-07 Yao Qi <yao@codesourcery.com>
15920
15921 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15922 statement.
15923
15924 2014-01-07 Yao Qi <yao@codesourcery.com>
15925
15926 * gnu-nat.c (info_port_rights): Add qualifier const to
15927 argument args.
15928
15929 2014-01-07 Yao Qi <yao@codesourcery.com>
15930
15931 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15932
15933 2014-01-07 Yao Qi <yao@codesourcery.com>
15934
15935 * gnu-nat.c (make_inf) Update declaration.
15936 (make_inf): Make it static.
15937 (inf_set_traced): Likewise.
15938 (inf_port_to_thread, inf_task_died_status): Likewise.
15939
15940 2014-01-07 Yao Qi <yao@codesourcery.com>
15941
15942 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15943
15944 2014-01-07 Yao Qi <yao@codesourcery.com>
15945
15946 * gnu-nat.c (_initialize_gnu_nat): Declare.
15947
15948 2014-01-07 Yao Qi <yao@codesourcery.com>
15949
15950 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15951 'enum bfd_endian'.
15952 (struct gdbarch_info) <byte_order>: Change type to
15953 'enum bfd_endian'.
15954 <byte_order_for_code>: Likewise.
15955 * gdbarch.c, gdbarch.h: Regenerated.
15956
15957 2014-01-06 Sasha Smundak <asmundak@google.com>
15958
15959 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15960
15961 2014-01-06 Tom Tromey <tromey@redhat.com>
15962
15963 * doublest.c (convert_doublest_to_floatformat): Use const, not
15964 CONST.
15965 * somread.c (som_symtab_read): Likewise.
15966
15967 2014-01-07 Hui Zhu <hui@codesourcery.com>
15968
15969 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15970 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15971 (gdb_bfd_fopen): Ditto.
15972 (gdb_bfd_openr): Ditto.
15973 (gdb_bfd_openw): Ditto.
15974 (gdb_bfd_openr_iovec): Ditto.
15975 (gdb_bfd_fdopenr): Ditto.
15976 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15977 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15978 with xstrdup.
15979 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15980 with xstrdup.
15981 * symfile-mem.c (symbol_file_add_from_memory): Removed
15982 gdb_bfd_stash_filename.
15983
15984 2014-01-03 Doug Evans <dje@google.com>
15985
15986 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15987 output.
15988
15989 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15990
15991 Update year range in copyright notice of all files.
15992
15993 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15994
15995 * top.c (print_gdb_version): Set copyright year to 2014.
15996
15997 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15998
15999 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16000
16001 For older changes see ChangeLog-2013.
16002 \f
16003 Local Variables:
16004 mode: change-log
16005 left-margin: 8
16006 fill-column: 74
16007 version-control: never
16008 coding: utf-8
16009 End:
This page took 0.505192 seconds and 4 git commands to generate.